diff --git a/cmd/edgex-ui-server/res/configuration.yaml b/cmd/edgex-ui-server/res/configuration.yaml index 8f68cd0a..856cf3de 100644 --- a/cmd/edgex-ui-server/res/configuration.yaml +++ b/cmd/edgex-ui-server/res/configuration.yaml @@ -8,6 +8,8 @@ Service: HealthCheckInterval: 10s MaxRequestSize: 0 RequestTimeout: 5s +ServiceOptions: + ProxyMode: automatic Clients: core-data: Protocol: http diff --git a/cmd/edgex-ui-server/res/docker/configuration.yaml b/cmd/edgex-ui-server/res/docker/configuration.yaml index 49b4690b..382abe28 100644 --- a/cmd/edgex-ui-server/res/docker/configuration.yaml +++ b/cmd/edgex-ui-server/res/docker/configuration.yaml @@ -8,6 +8,8 @@ Service: StartupMsg: edgex-ui-go service started MaxRequestSize: 0 RequestTimeout: 5s +ServiceOptions: + ProxyMode: automatic Clients: core-data: Protocol: http diff --git a/cmd/edgex-ui-server/static/web/en-US/10.6738023b8487d81b9158.js b/cmd/edgex-ui-server/static/web/en-US/10.6738023b8487d81b9158.js deleted file mode 100644 index 71c27b12..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/10.6738023b8487d81b9158.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[10],{4010:(i_,b,d)=>{d.r(b),d.d(b,{MetadataModule:()=>Xe});var n=d(8583),a=d(3092),T=d(9502),_=d(476);let x=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-metadata"]],decls:14,vars:0,consts:function(){let E,e,t;return E="Device Service",e="Device",t="Device Profile",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./device-service-list","routerLinkActive","active",1,"nav-link"],E,["routerLink","./device-center","routerLinkActive","active",1,"nav-link"],e,["routerLink","./device-profile-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.SDv(5,5),_.qZA(),_.qZA(),_.TgZ(6,"li",3),_.TgZ(7,"a",6),_.SDv(8,7),_.qZA(),_.qZA(),_.TgZ(9,"li",3),_.TgZ(10,"a",8),_.SDv(11,9),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"div",10),_._UZ(13,"router-outlet"),_.qZA(),_.qZA())},directives:[T.yS,T.Od,T.lC],styles:[".active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}"]}),i})();var u=d(2437),V=d(7822);function S(i,E){if(1&i&&(_.TgZ(0,"p"),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.description)}}function m(i,E){1&i&&(_.TgZ(0,"p",20),_._uU(1,"no description."),_.qZA())}function G(i,E){if(1&i&&(_.TgZ(0,"span",21),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function U(i,E){if(1&i&&(_.TgZ(0,"span",22),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function X(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"a",23),_.NdJ("click",function(){_.CHM(e);const o=_.oxw().$implicit;return _.oxw().associatedDevicesSkip(o.name)}),_._UZ(1,"i",24),_.TgZ(2,"span"),_.SDv(3,25),_.qZA(),_._uU(4),_.qZA()}if(2&i){const e=_.oxw().$implicit,t=_.oxw();_.xp6(4),_.hij("\xa0 ",t.associatedDevices.get(e.name)," ")}}function e_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"li",3),_.TgZ(1,"div",4),_.TgZ(2,"div",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"div",7),_.TgZ(5,"div",8),_.TgZ(6,"h5",9),_._uU(7),_.qZA(),_.qZA(),_.YNc(8,S,2,1,"p",10),_.YNc(9,m,2,0,"ng-template",null,11,_.W1O),_.TgZ(11,"div"),_.TgZ(12,"span",12),_._uU(13),_.qZA(),_.TgZ(14,"span",13),_.YNc(15,G,2,1,"span",14),_.YNc(16,U,2,1,"span",15),_.qZA(),_.YNc(17,X,5,1,"a",16),_.TgZ(18,"span",17),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw().edit(c)}),_._UZ(19,"i",18),_.TgZ(20,"span"),_.SDv(21,19),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.MAs(10),o=_.oxw();_.xp6(7),_.Oqu(e.name),_.xp6(1),_.Q6J("ngIf",e.description)("ngIfElse",t),_.xp6(5),_.hij("Port ",o.getSvcPort(e.baseAddress),""),_.xp6(1),_.Q6J("ngSwitch",e.adminState),_.xp6(1),_.Q6J("ngSwitchCase","UNLOCKED"),_.xp6(2),_.Q6J("ngIf",o.associatedDevices.size)}}function I(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",26),_.TgZ(1,"div",27),_._UZ(2,"i",28),_.TgZ(3,"span"),_.SDv(4,29),_.qZA(),_.TgZ(5,"span",30),_._uU(6),_.qZA(),_.TgZ(7,"button",31),_.NdJ("click",function(){return _.CHM(e),_.oxw().updateSvc()}),_.SDv(8,32),_.qZA(),_.qZA(),_.TgZ(9,"div",33),_.TgZ(10,"form"),_.TgZ(11,"div",34),_.TgZ(12,"label",35),_.SDv(13,36),_.qZA(),_.TgZ(14,"div",37),_.TgZ(15,"input",38),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceSvcSelected.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(16,"div",34),_.TgZ(17,"label",39),_.SDv(18,40),_.qZA(),_.TgZ(19,"div",37),_.TgZ(20,"select",41),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceSvcSelected.adminState=o}),_.TgZ(21,"option",42),_._uU(22,"UNLOCKED"),_.qZA(),_.TgZ(23,"option",43),_._uU(24,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(6),_.Oqu(e.deviceSvcSelected.name),_.xp6(9),_.Q6J("ngModel",e.deviceSvcSelected.description),_.xp6(5),_.Q6J("ngModel",e.deviceSvcSelected.adminState)}}let R=(()=>{class i{constructor(e,t,o,c){this.metaSvc=e,this.msgSvc=t,this.router=o,this.route=c,this.deviceServiceList=[],this.associatedDevices=new Map}ngOnInit(){this.metaSvc.allDeviceServices().subscribe(e=>{this.deviceServiceList=e.services,this.deviceServiceList.forEach(t=>{this.metaSvc.findDevicesByServiceName(0,20,t.name).subscribe(o=>{this.associatedDevices.set(t.name,o.devices.length>20?"20+":String(o.devices.length))})})})}getSvcPort(e){return new URL(e).port}edit(e){this.deviceSvcSelected=e}updateSvc(){this.metaSvc.updateDeviceService(this.deviceSvcSelected).subscribe(()=>{var e;this.msgSvc.success("update device service",`name: ${null===(e=this.deviceSvcSelected)||void 0===e?void 0:e.name}`),this.deviceSvcSelected=void 0})}associatedDevicesSkip(e){this.router.navigate(["../device-center"],{queryParams:{svcName:e},relativeTo:this.route})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-service-media-list"]],decls:3,vars:2,consts:function(){let E,e,t,o,c,s;return E="Setting",e="Associated Devices",t="edit",o="Save",c="Description",s="AdminState",[[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[4,"ngIf","ngIfElse"],["nodesc",""],[1,"badge","badge-info","mr-3"],[3,"ngSwitch"],["class","badge badge-success mr-3",4,"ngSwitchCase"],["class","badge badge-danger mr-3",4,"ngSwitchDefault"],["class","badge badge-primary","role","button",3,"click",4,"ngIf"],["role","button",1,"badge","badge-secondary","float-right",3,"click"],[1,"fa","fa-cog","mr-1"],E,[1,"my-1"],[1,"badge","badge-success","mr-3"],[1,"badge","badge-danger","mr-3"],["role","button",1,"badge","badge-primary",3,"click"],[1,"fa","fa-sitemap","mr-1"],e,[1,"card","mt-3"],[1,"card-header"],[1,"fa","fa-edit","mr-1","text-danger"],t,[1,"ml-1"],[1,"btn","btn-success","btn-sm","float-right",3,"click"],o,[1,"card-body"],[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],c,[1,"col-md-10"],["type","text","name","deviceSvcDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],s,["name","deviceSvcAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"]]},template:function(e,t){1&e&&(_.TgZ(0,"ul",0),_.YNc(1,e_,22,7,"li",1),_.qZA(),_.YNc(2,I,25,3,"div",2)),2&e&&(_.xp6(1),_.Q6J("ngForOf",t.deviceServiceList),_.xp6(1),_.Q6J("ngIf",t.deviceSvcSelected))},directives:[n.sg,n.O5,n.RF,n.n9,n.ED,a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),i})(),l=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[T.lC],styles:[""]}),i})();var r=d(7982);function g(i,E){1&i&&_._UZ(0,"div")}function Z(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"li",20),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw(2).selectCmd(c)}),_._uU(1),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw(2);_.ekj("list-group-item-info",(null==t.selectedCmd?null:t.selectedCmd.name)===e.name),_.xp6(1),_.Oqu(e.name)}}function q(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw(3).issueGetCmd()}),_._uU(1,"try"),_.qZA()}}function J(i,E){1&i&&_._UZ(0,"div")}function y(i,E){if(1&i&&(_.TgZ(0,"span",41),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.hij(" ",e.cmdGetResponse,"")}}function B(i,E){if(1&i&&(_.TgZ(0,"pre",42),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdGetResponseRaw)}}function W(i,E){if(1&i&&(_.TgZ(0,"div"),_.TgZ(1,"span",35),_.SDv(2,36),_.qZA(),_.YNc(3,y,2,1,"span",37),_.qZA(),_.TgZ(4,"div",38),_.TgZ(5,"span",35),_.SDv(6,39),_.qZA(),_.YNc(7,B,2,1,"pre",40),_.qZA()),2&i){const e=_.oxw(3);_.xp6(3),_.Q6J("ngIf",e.cmdGetResponse),_.xp6(4),_.Q6J("ngIf",e.cmdGetResponseRaw)}}function H(i,E){1&i&&(_.TgZ(0,"h6",43),_._UZ(1,"i",44),_.TgZ(2,"span"),_.SDv(3,45),_.qZA(),_.qZA())}function w(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw(3).issueSetCmd()}),_._uU(1,"try"),_.qZA()}}function F(i,E){1&i&&_._UZ(0,"div")}function k(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"label",56),_._uU(2),_.qZA(),_.TgZ(3,"select",57),_.NdJ("ngModelChange",function(o){_.CHM(e);const c=_.oxw().index;return _.oxw(6).parameterBearerList[c].value=o}),_.TgZ(4,"option",58),_._uU(5,"false"),_.qZA(),_.TgZ(6,"option",58),_._uU(7,"true"),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(),t=e.$implicit,o=e.index,c=_.oxw(6);_.xp6(1),_.s9C("for",t.resourceName),_.xp6(1),_.hij(" ",t.resourceName," "),_.xp6(1),_.s9C("id",t.resourceName),_.s9C("name",t.resourceName),_.Q6J("ngModel",c.parameterBearerList[o].value),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function z(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"label",56),_._uU(1),_.qZA(),_.TgZ(2,"input",59),_.NdJ("ngModelChange",function(o){_.CHM(e);const c=_.oxw().index;return _.oxw(6).parameterBearerList[c].value=o}),_.qZA()}if(2&i){const e=_.oxw(),t=e.$implicit,o=e.index,c=_.oxw(6);_.s9C("for",t.resourceName),_.xp6(1),_.Oqu(t.resourceName),_.xp6(1),_.s9C("id",t.resourceName),_.s9C("name",t.resourceName),_.MGl("placeholder","valueType: ",t.valueType,""),_.Q6J("ngModel",c.parameterBearerList[o].value)}}function Y(i,E){if(1&i&&(_.TgZ(0,"div",53),_.YNc(1,k,8,7,"div",54),_.YNc(2,z,3,6,"ng-template",null,55,_.W1O),_.qZA()),2&i){const e=E.$implicit,t=_.MAs(3);_.xp6(1),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function Q(i,E){if(1&i&&(_.TgZ(0,"div",51),_.YNc(1,Y,4,2,"div",52),_.qZA()),2&i){const e=_.oxw(5);_.xp6(1),_.Q6J("ngForOf",e.selectedCmdSetParams)}}function j(i,E){if(1&i&&(_.TgZ(0,"div",12),_.TgZ(1,"div",4),_.SDv(2,49),_.qZA(),_.TgZ(3,"div",9),_.YNc(4,Q,2,1,"div",50),_.qZA(),_.qZA()),2&i){const e=_.oxw(4);_.xp6(4),_.Q6J("ngIf",e.selectedCmd)}}function M(i,E){if(1&i&&(_.TgZ(0,"span",41),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdSetResponse)}}function m_(i,E){if(1&i&&(_.TgZ(0,"pre",42),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdSetResponseRaw)}}function v_(i,E){if(1&i&&(_.YNc(0,j,5,1,"div",46),_.TgZ(1,"div"),_.TgZ(2,"div"),_.TgZ(3,"span",35),_.SDv(4,47),_.qZA(),_.YNc(5,M,2,1,"span",37),_.qZA(),_.TgZ(6,"div",38),_.TgZ(7,"span",35),_.SDv(8,48),_.qZA(),_.YNc(9,m_,2,1,"pre",40),_.qZA(),_.qZA()),2&i){const e=_.oxw(3);_.Q6J("ngIf",e.selectedCmdSetParams),_.xp6(5),_.Q6J("ngIf",e.cmdSetResponse),_.xp6(4),_.Q6J("ngIf",e.cmdSetResponseRaw)}}function N_(i,E){1&i&&(_.TgZ(0,"h6",43),_._UZ(1,"i",44),_.TgZ(2,"span"),_.SDv(3,60),_.qZA(),_.qZA())}function M_(i,E){if(1&i&&(_.TgZ(0,"div",21),_.TgZ(1,"div",4),_.TgZ(2,"span",22),_._UZ(3,"i",23),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,24),_.qZA(),_.qZA(),_.TgZ(7,"div",25),_.TgZ(8,"div",10),_.TgZ(9,"div",26),_.TgZ(10,"div",12),_.TgZ(11,"div",4),_._uU(12," Get "),_.YNc(13,q,2,0,"button",27),_.qZA(),_.TgZ(14,"div",28),_.YNc(15,J,1,0,"div",0),_.YNc(16,W,8,2,"ng-template",null,29,_.W1O),_.YNc(18,H,4,0,"ng-template",null,30,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.TgZ(20,"div",31),_.TgZ(21,"div",21),_.TgZ(22,"div",4),_._uU(23," Set "),_.YNc(24,w,2,0,"button",27),_.qZA(),_.TgZ(25,"div",9),_.YNc(26,F,1,0,"div",0),_.YNc(27,v_,10,3,"ng-template",null,32,_.W1O),_.YNc(29,N_,4,0,"ng-template",null,33,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.MAs(17),t=_.MAs(19),o=_.MAs(28),c=_.MAs(30),s=_.oxw(2);_.xp6(4),_.hij(" ",s.selectedCmd.name," method:"),_.xp6(9),_.Q6J("ngIf",s.selectedCmd.get),_.xp6(2),_.Q6J("ngIf",s.selectedCmd.get)("ngIfThen",e)("ngIfElse",t),_.xp6(9),_.Q6J("ngIf",s.selectedCmd.set),_.xp6(2),_.Q6J("ngIf",s.selectedCmd.set)("ngIfThen",o)("ngIfElse",c)}}function P_(i,E){if(1&i&&(_.TgZ(0,"div",3),_.TgZ(1,"div",4),_.TgZ(2,"span",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"span",7),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,8),_.qZA(),_.qZA(),_.TgZ(8,"div",9),_.TgZ(9,"div",10),_.TgZ(10,"div",11),_.TgZ(11,"div",12),_.TgZ(12,"div",13),_.SDv(13,14),_.qZA(),_.TgZ(14,"div",15),_.TgZ(15,"ul",16),_.YNc(16,Z,2,3,"li",17),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",18),_.YNc(18,M_,31,9,"div",19),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(5),_.Oqu(e.associatedCmdDeviceName),_.xp6(11),_.Q6J("ngForOf",e.deviceCoreCommand),_.xp6(2),_.Q6J("ngIf",e.selectedCmd)}}function O_(i,E){if(1&i&&(_.TgZ(0,"div",3),_.TgZ(1,"div",4),_.TgZ(2,"span",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"span",7),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,61),_.qZA(),_.qZA(),_.TgZ(8,"div",62),_.TgZ(9,"h5",43),_._UZ(10,"i",63),_.TgZ(11,"span"),_.SDv(12,64),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(5),_.Oqu(e.associatedCmdDeviceName)}}let G_=(()=>{class i{constructor(e,t){this.cmdSvc=e,this.metadataSvc=t,this.selectedCmd={},this.selectedCmdSetParams=[],this.parameterBearerList=[]}ngOnInit(){}ngOnChanges(){!this.deviceName||(this.resetResponse(),this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(this.deviceName).subscribe(e=>{this.associatedCmdDeviceName=e.deviceCoreCommand.deviceName,this.deviceCoreCommand=e.deviceCoreCommand.coreCommands,this.deviceCoreCommand&&0!==this.deviceCoreCommand.length&&(this.selectedCmd=this.deviceCoreCommand[0],this.selectedCmdSetParams=this.selectedCmd.parameters,this.setParameterBearerList(),this.getAssociatedDeviceProfile(e.deviceCoreCommand.profileName))}))}getAssociatedDeviceProfile(e){this.metadataSvc.findProfileByName(e).subscribe(t=>this.associateDeviceProfile=t.profile)}selectCmd(e){this.selectedCmd=e,this.selectedCmdSetParams=this.selectedCmd.parameters,this.resetResponse(),this.setParameterBearerList()}setParameterBearerList(){this.parameterBearerList=[],this.selectedCmdSetParams.forEach(e=>{this.parameterBearerList.push({key:e.resourceName,value:""})})}resetResponse(){this.cmdGetResponse="",this.cmdGetResponseRaw="",this.cmdSetResponse="",this.cmdSetResponseRaw="",this.cmdBinaryResponse=!0,this.cmdBinaryResponseURL=""}isBinaryResource(){let e=!1;return this.associateDeviceProfile.deviceResources.forEach(t=>{t.name!==this.selectedCmd.name||"Binary"!==t.properties.valueType||(e=!0)}),e||(this.associateDeviceProfile.deviceCommands.forEach(t=>{t.name===this.selectedCmd.name&&t.resourceOperations.forEach(o=>{this.associateDeviceProfile.deviceResources.forEach(c=>{o.deviceResource!==c.name||"Binary"!==c.properties.valueType||(e=!0)})})}),e)}issueGetCmd(){this.cmdSvc.issueGetCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(e=>{if(this.cmdGetResponseRaw=JSON.stringify(e.event.readings,null,3),this.isBinaryResource())return void(this.cmdGetResponse="Binary resource is not supported for preview");let t=[];e.event.readings.forEach(o=>{t.push(o.value)}),this.cmdGetResponse=t.join(",")})}issueGetCmdOfBinaryResource(){this.cmdSvc.issueGetBinaryCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(e=>{let t=CBOR.decode(e);"image/jpeg"===t.mediaType||"image/jpg"===t.mediaType||"image/png"===t.mediaType?(this.cmdBinaryResponse=t.binaryValue,this.cmdBinaryResponseURL=URL.createObjectURL(this.cmdBinaryResponse)):this.cmdBinaryResponse="only image binary is supported"})}issueSetCmd(){var e;let t={};this.parameterBearerList.forEach(o=>{t[o.key]=o.value}),this.cmdSvc.issueSetCmd(this.associatedCmdDeviceName,null===(e=this.selectedCmd)||void 0===e?void 0:e.name,t).subscribe(o=>{this.cmdSetResponseRaw=JSON.stringify(o,null,3),this.cmdSetResponse=o.message})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(r.V),_.Y36(u.D))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-command-viewer"]],inputs:{deviceName:"deviceName"},features:[_.TTD],decls:5,vars:3,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f;return E="Associated Commands",e=" Command Name List ",t="Get and Set",o="Response:",c="ResponseRaw:",s="no Get method",C="Response:",v="ResponseRaw:",D="Set Parameters",p="no Set method",h="Associated Commands",f="no associated commands",[[4,"ngIf","ngIfThen","ngIfElse"],["hasAssociatedCommand",""],["noAssociatedCommand",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"text-primary","mx-2","font-weight-bold"],E,[1,"card-body"],[1,"row"],[1,"col-md-2","col-lg-2"],[1,"card","mb-2"],[1,"card-header","font-weight-bold"],e,[1,"card-body","p-0"],[1,"list-group","list-group-flush"],["role","button","class","list-group-item list-group-item-action",3,"list-group-item-info","click",4,"ngFor","ngForOf"],[1,"col-md-10","col-lg-10"],["class","card",4,"ngIf"],["role","button",1,"list-group-item","list-group-item-action",3,"click"],[1,"card"],[1,"text-primary","font-weight-bold","mr-2"],[1,"fa","fa-thumb-tack","text-danger","mr-1"],t,[1,"card-body","px-2"],[1,"col-md-5","col-lg-5"],["class","btn btn-primary btn-sm float-right",3,"click",4,"ngIf"],[1,"card-body","overflow-auto"],["hasGetMethod",""],["noGetMethod",""],[1,"col-md-7","col-lg-7"],["hasSetMethod",""],["noSetMethod",""],[1,"btn","btn-primary","btn-sm","float-right",3,"click"],[1,"badge","badge-info"],o,["class","ml-2 text-primary",4,"ngIf"],[1,"mt-3"],c,["class","mt-2 bg-secondary p-2 text-light rounded",4,"ngIf"],[1,"ml-2","text-primary"],[1,"mt-2","bg-secondary","p-2","text-light","rounded"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],s,["class","card mb-2",4,"ngIf"],C,v,D,["class","d-flex flex-column bd-highlight",4,"ngIf"],[1,"d-flex","flex-column","bd-highlight"],["class","form p-2 bd-highlight",4,"ngFor","ngForOf"],[1,"form","p-2","bd-highlight"],[4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[3,"for"],[1,"custom-select","custom-select-sm",3,"id","name","ngModel","ngModelChange"],[3,"ngValue"],[1,"form-control","form-control-sm",3,"id","name","ngModel","placeholder","ngModelChange"],p,h,[1,"card-body","text-center"],[1,"fa","fa-warning"],f]},template:function(e,t){if(1&e&&(_.YNc(0,g,1,0,"div",0),_.YNc(1,P_,19,3,"ng-template",null,1,_.W1O),_.YNc(3,O_,13,1,"ng-template",null,2,_.W1O)),2&e){const o=_.MAs(2),c=_.MAs(4);_.Q6J("ngIf",t.deviceCoreCommand)("ngIfThen",o)("ngIfElse",c)}},directives:[n.O5,n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr,a.Fj],styles:[""]}),i})();function h_(i,E){if(1&i&&(_.TgZ(0,"span"),_.TgZ(1,"span",67),_.SDv(2,68),_.qZA(),_.TgZ(3,"span",69),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,70),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(4),_.Oqu(e.associatedSvcName)}}function R_(i,E){if(1&i&&(_.TgZ(0,"span"),_.TgZ(1,"span",67),_.SDv(2,71),_.qZA(),_.TgZ(3,"span",69),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,72),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(4),_.Oqu(e.associatedProfileName)}}function Z_(i,E){1&i&&(_.TgZ(0,"span"),_.SDv(1,73),_.qZA())}function U_(i,E){if(1&i&&(_.TgZ(0,"span",85),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function V_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function L_(i,E){if(1&i&&(_.TgZ(0,"span",85),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}function b_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}function $_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}const x_=function(i){return{profileName:i}};function q_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(o){const s=_.CHM(e).$implicit;return _.oxw().selectOne(o,s)}),_.qZA(),_.qZA(),_.TgZ(3,"td",74),_._uU(4),_.qZA(),_.TgZ(5,"td",74),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_.TgZ(12,"span",75),_.YNc(13,U_,2,1,"span",76),_.YNc(14,V_,2,1,"span",77),_.qZA(),_.qZA(),_.TgZ(15,"td",78),_.TgZ(16,"span",75),_.YNc(17,L_,2,1,"span",76),_.YNc(18,b_,2,1,"span",79),_.YNc(19,$_,2,1,"span",77),_.qZA(),_.qZA(),_.TgZ(20,"td",78),_.TgZ(21,"span",80),_.NdJ("click",function(){const c=_.CHM(e).$implicit,s=_.oxw();return s.setSpecialFeatureViewer(c,s.FEATURE_COMMAND)}),_._UZ(22,"i",81),_.qZA(),_.qZA(),_.TgZ(23,"td",78),_.TgZ(24,"span",80),_.NdJ("click",function(){const c=_.CHM(e).$implicit,s=_.oxw();return s.setSpecialFeatureViewer(c,s.FEATURE_AUTOEVENT)}),_._UZ(25,"i",82),_.qZA(),_.qZA(),_.TgZ(26,"td"),_.TgZ(27,"a",83),_._uU(28),_.qZA(),_.qZA(),_.TgZ(29,"td"),_.TgZ(30,"a",84),_._uU(31),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.id)||t.specialFeatureAssociatedDeviceName===e.name),_.xp6(2),_.Q6J("checked",t.isChecked(e.id)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Q6J("ngSwitch",e.adminState),_.xp6(1),_.Q6J("ngSwitchCase","UNLOCKED"),_.xp6(3),_.Q6J("ngSwitch",e.operatingState),_.xp6(1),_.Q6J("ngSwitchCase","UP"),_.xp6(1),_.Q6J("ngSwitchCase","DOWN"),_.xp6(3),_.ekj("badge-danger",t.specialFeatureName===t.FEATURE_COMMAND&&t.specialFeatureAssociatedDeviceName===e.name),_.xp6(3),_.ekj("badge-danger",t.specialFeatureName===t.FEATURE_AUTOEVENT&&t.specialFeatureAssociatedDeviceName===e.name),_.xp6(3),_.Q6J("queryParams",_.VKq(19,x_,e.profileName)),_.xp6(1),_.Oqu(e.profileName),_.xp6(3),_.Oqu(e.serviceName)}}function X_(i,E){if(1&i&&(_.TgZ(0,"tr"),_.TgZ(1,"td"),_._uU(2),_.qZA(),_.TgZ(3,"td"),_.TgZ(4,"span",99),_._uU(5),_.qZA(),_.qZA(),_.TgZ(6,"td"),_.TgZ(7,"span",100),_._uU(8),_.qZA(),_.qZA(),_.qZA()),2&i){const e=E.$implicit;_.xp6(2),_.Oqu(e.sourceName),_.xp6(3),_.Oqu(e.interval),_.xp6(3),_.Oqu(e.onChange)}}function J_(i,E){if(1&i&&(_.TgZ(0,"div"),_.TgZ(1,"div",89),_.TgZ(2,"div",90),_.TgZ(3,"span",91),_._UZ(4,"i",82),_.qZA(),_.TgZ(5,"span",92),_._uU(6),_.qZA(),_.TgZ(7,"span"),_.SDv(8,93),_.qZA(),_.qZA(),_.TgZ(9,"div",94),_.TgZ(10,"div",19),_.TgZ(11,"table",20),_.TgZ(12,"thead",21),_.TgZ(13,"th",22),_.SDv(14,95),_.qZA(),_.TgZ(15,"th",22),_.SDv(16,96),_.qZA(),_.TgZ(17,"th",22),_.SDv(18,97),_.qZA(),_.qZA(),_.TgZ(19,"tbody"),_.YNc(20,X_,9,3,"tr",98),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw(2);_.xp6(6),_.hij(" ",e.specialFeatureAssociatedDeviceName,""),_.xp6(14),_.Q6J("ngForOf",e.autoEvents)}}function y_(i,E){if(1&i&&(_.TgZ(0,"div",89),_.TgZ(1,"div",90),_.TgZ(2,"span",91),_._UZ(3,"i",82),_.qZA(),_.TgZ(4,"span",92),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,101),_.qZA(),_.qZA(),_.TgZ(8,"div",102),_.TgZ(9,"h5",103),_._UZ(10,"i",58),_.TgZ(11,"span"),_.SDv(12,104),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw(2);_.xp6(5),_.hij(" ",e.specialFeatureAssociatedDeviceName,"")}}function B_(i,E){if(1&i&&(_.TgZ(0,"div"),_.YNc(1,J_,21,2,"div",87),_.YNc(2,y_,13,1,"ng-template",null,88,_.W1O),_.qZA()),2&i){const e=_.MAs(3),t=_.oxw();_.xp6(1),_.Q6J("ngIf",t.autoEvents)("ngIfElse",e)}}function W_(i,E){if(1&i&&(_.TgZ(0,"div"),_._UZ(1,"app-device-command-viewer",105),_.qZA()),2&i){const e=_.oxw();_.xp6(1),_.Q6J("deviceName",e.specialFeatureAssociatedDeviceName)}}let H_=(()=>{class i{constructor(e,t,o,c){this.metaSvc=e,this.msgSvc=t,this.route=o,this.router=c,this.toolbars=!0,this.enableSelectAll=!0,this.deviceList=[],this.associatedSvcName="",this.associatedProfileName="",this.selectedDevice=[],this.FEATURE_AUTOEVENT="autoevent",this.FEATURE_COMMAND="command",this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>e.svcName?(this.associatedSvcName=e.svcName,void this.getDeviceListByAssociatedSvc(this.associatedSvcName)):e.profileName?(this.associatedProfileName=e.profileName,void this.getDeviceListByAssociatedProfile(this.associatedProfileName)):(this.associatedSvcName="",this.associatedProfileName="",void this.getDeviceListPagination()))}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},250)}getDeviceList(){""===this.associatedSvcName?""===this.associatedProfileName?this.getDeviceListPagination():this.getDeviceListByAssociatedProfile(this.associatedSvcName):this.getDeviceListByAssociatedSvc(this.associatedSvcName)}getDeviceListByAssociatedSvc(e){this.metaSvc.findDevicesByServiceName(this.pageOffset,this.pageLimit,e).subscribe(t=>this.deviceList=t.devices)}getDeviceListByAssociatedProfile(e){this.metaSvc.findDevicesByProfileName(this.pageOffset,this.pageLimit,e).subscribe(t=>this.deviceList=t.devices)}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.deviceList=e.devices})}refresh(){this.associatedProfileName="",this.associatedSvcName="",this.metaSvc.allDevicesPagination(0,this.pageLimit).subscribe(e=>{this.deviceList=e.devices,this.msgSvc.success("refresh"),this.resetPagination()})}edit(){this.router.navigate(["../edit-device"],{relativeTo:this.route,queryParams:{deviceName:this.selectedDevice[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedDevice.forEach((e,t)=>{this.metaSvc.deleteOneDeviceByName(e.name).subscribe(()=>{this.selectedDevice.splice(t,1),this.deviceList.forEach((o,c)=>{if(o.id===e.id)return this.deviceList.splice(c,1),void this.msgSvc.success("remove device ",` Name: ${o.name}`)})})}),this.specialFeatureName=void 0,$("#deleteConfirmDialog").modal("hide")}setSpecialFeatureViewer(e,t){switch(this.specialFeatureAssociatedDeviceName=e.name,this.specialFeatureName=t,this.specialFeatureName){case this.FEATURE_AUTOEVENT:this.autoEvents=e.autoEvents}}isCheckedAll(){let e=!0;return this.deviceList&&0===this.deviceList.length&&(e=!1),this.deviceList.forEach(t=>{-1===this.selectedDevice.findIndex(o=>o.name===t.name)&&(e=!1)}),e}selectAll(e){this.deviceList.forEach(e.target.checked?o=>{-1===this.selectedDevice.findIndex(c=>c.name===o.name)&&this.selectedDevice.push(o)}:o=>{this.selectedDevice.forEach((c,s)=>{c.name===o.name&&this.selectedDevice.splice(s,1)})})}isChecked(e){return this.selectedDevice.findIndex(t=>t.id===e)>=0}selectOne(e,t){e.target.checked?this.selectedDevice.push(t):this.selectedDevice.forEach((c,s)=>{c.name===t.name&&this.selectedDevice.splice(s,1)})}onPageSelected(){this.resetPagination(),this.getDeviceList()}prePage(){this.setPagination(-1),this.getDeviceList()}nextPage(){this.setPagination(1),this.getDeviceList()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(T.gz),_.Y36(T.F0))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-list"]],inputs:{toolbars:"toolbars",enableSelectAll:"enableSelectAll"},decls:98,vars:12,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L,P,O,c_,s_,a_,l_,r_,A_,d_,C_,T_,g_,D_,S_,I_,p_,u_,f_;return E="Refresh",e="Add",t="Edit",o="Delete",c="ID",s="Name",C="Description",v="Labels",D="AdminState",p="OperatingState",h="Command",f="AutoEvents",N="AssociatedProfile",L="AssociatedService",P="items per page",O="Previous",c_="Next",s_="Warning",a_=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",l_="Cancel",r_="Confirm",A_="DeviceService",d_="Associated Device List",C_="DeviceProfile",T_="Associated Device List",g_="Device List",D_="Associated AutoEvents",S_="Resource",I_="Interval",p_="Onchange",u_="Associated AutoEvents",f_="no associated AutoEvents",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],[4,"ngIf"],[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["data-testid","device-list-refresh-btn",1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],E,["type","button","routerLink","../add-device",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],e,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],t,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],o,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],c,s,C,v,D,p,h,f,N,L,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],P,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],O,[1,"page-item"],c_,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],s_,[1,"modal-body"],a_,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],l_,["type","button",1,"btn","btn-danger",3,"click"],r_,[1,"mr-1"],A_,[1,"text-danger","mr-1"],d_,C_,T_,g_,[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"fa","fa-calendar-check-o","font-weight-bolder"],["routerLink","../../device-profile-center",3,"queryParams"],["routerLink","../../device-service-list"],[1,"badge","badge-success"],[1,"badge","badge-danger"],[4,"ngIf","ngIfElse"],["noAutoEvents",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"text-primary","mx-2","font-weight-bold"],D_,[1,"card-body","p-0"],S_,I_,p_,[4,"ngFor","ngForOf"],[1,"badge","badge-secondary","badge-pill"],[1,""],u_,[1,"card-body","text-center"],[1,"text-warning"],f_,[3,"deviceName"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.YNc(3,h_,7,1,"span",3),_.YNc(4,R_,7,1,"span",3),_.YNc(5,Z_,2,0,"span",3),_.qZA(),_.TgZ(6,"div",4),_.TgZ(7,"div",5),_.TgZ(8,"div",6),_.TgZ(9,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(10,"span"),_._UZ(11,"i",8),_.TgZ(12,"span"),_.SDv(13,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(14,"button",10),_.TgZ(15,"span"),_._UZ(16,"i",11),_.TgZ(17,"span"),_.SDv(18,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(20,"span"),_._UZ(21,"i",14),_.TgZ(22,"span"),_.SDv(23,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(25,"span"),_._UZ(26,"i",17),_.TgZ(27,"span"),_.SDv(28,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(29,"div",19),_.TgZ(30,"table",20),_.TgZ(31,"thead",21),_.TgZ(32,"tr"),_.TgZ(33,"th",22),_.TgZ(34,"input",23),_.NdJ("click",function(c){return t.selectAll(c)}),_.qZA(),_.qZA(),_.TgZ(35,"th",22),_.SDv(36,24),_.qZA(),_.TgZ(37,"th",22),_.SDv(38,25),_.qZA(),_.TgZ(39,"th",22),_.SDv(40,26),_.qZA(),_.TgZ(41,"th",22),_.SDv(42,27),_.qZA(),_.TgZ(43,"th",22),_.SDv(44,28),_.qZA(),_.TgZ(45,"th",22),_.SDv(46,29),_.qZA(),_.TgZ(47,"th",22),_.SDv(48,30),_.qZA(),_.TgZ(49,"th",22),_.SDv(50,31),_.qZA(),_.TgZ(51,"th",22),_.SDv(52,32),_.qZA(),_.TgZ(53,"th",22),_.SDv(54,33),_.qZA(),_.qZA(),_.qZA(),_.TgZ(55,"tbody"),_.YNc(56,q_,32,21,"tr",34),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(57,"div",35),_.TgZ(58,"nav",36),_.TgZ(59,"ul",37),_.TgZ(60,"li",38),_.TgZ(61,"span",39),_.SDv(62,40),_.qZA(),_.qZA(),_.TgZ(63,"li",41),_.TgZ(64,"select",42),_.NdJ("ngModelChange",function(c){return t.pageLimit=c})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(65,"option",43),_._uU(66,"5"),_.qZA(),_.TgZ(67,"option",44),_._uU(68,"10"),_.qZA(),_.TgZ(69,"option",45),_._uU(70,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(71,"li",46),_.TgZ(72,"button",47),_.NdJ("click",function(){return t.prePage()}),_._UZ(73,"i",48),_.TgZ(74,"span"),_.SDv(75,49),_.qZA(),_.qZA(),_.qZA(),_.TgZ(76,"li",50),_.TgZ(77,"button",47),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(78,"span"),_.SDv(79,51),_.qZA(),_._UZ(80,"i",52),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(81,B_,4,2,"div",3),_.YNc(82,W_,2,1,"div",3),_.TgZ(83,"div",53),_.TgZ(84,"div",54),_.TgZ(85,"div",55),_.TgZ(86,"div",56),_.TgZ(87,"h5",57),_._UZ(88,"i",58),_.TgZ(89,"span"),_.SDv(90,59),_.qZA(),_.qZA(),_.qZA(),_.TgZ(91,"div",60),_.SDv(92,61),_.qZA(),_.TgZ(93,"div",62),_.TgZ(94,"button",63),_.SDv(95,64),_.qZA(),_.TgZ(96,"button",65),_.NdJ("click",function(){return t.delete()}),_.SDv(97,66),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(3),_.Q6J("ngIf",""!==t.associatedSvcName),_.xp6(1),_.Q6J("ngIf",""!==t.associatedProfileName),_.xp6(1),_.Q6J("ngIf",""===t.associatedProfileName&&""===t.associatedSvcName),_.xp6(14),_.Q6J("disabled",1!==t.selectedDevice.length),_.xp6(5),_.Q6J("disabled",0===t.selectedDevice.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(22),_.Q6J("ngForOf",t.deviceList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.deviceList.length),_.xp6(4),_.Q6J("ngIf",t.specialFeatureName===t.FEATURE_AUTOEVENT),_.xp6(1),_.Q6J("ngIf",t.specialFeatureName===t.FEATURE_COMMAND))},directives:[n.O5,T.rH,n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr,n.RF,n.n9,n.ED,T.yS,G_],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();class w_{constructor(){this.Schema="",this.Host="",this.Port="",this.User="",this.Password="",this.ClientId="",this.CommandTopic=""}}class F_{constructor(){this.Address="",this.Port="",this.UnitID="",this.Timeout="",this.IdleTimeout=""}}class k_{constructor(){this.Address="",this.UnitID="",this.BaudRate="",this.DataBits="",this.StopBits="",this.Parity="",this.Timeout="",this.IdleTimeout=""}}class z_{constructor(){this.Address="",this.Port=""}}class Y_{constructor(){this.Address="",this.Port="",this.MACAddress=""}}class Q_{constructor(){this.host="",this.port=""}}function j_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",10),_.TgZ(1,"span",11),_.NdJ("click",function(){_.CHM(e);const o=_.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_BUILT_IN)}),_._UZ(2,"i",12),_.TgZ(3,"span"),_.SDv(4,13),_.qZA(),_.qZA(),_.TgZ(5,"span",14),_.NdJ("click",function(){_.CHM(e);const o=_.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_CUSTOM)}),_._UZ(6,"i",12),_.TgZ(7,"span"),_.SDv(8,15),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(2);_.xp6(1),_.ekj("badge-primary",e.protocolTemplateMode===e.TEMPLATE_BUILT_IN)("badge-secondary",e.protocolTemplateMode!==e.TEMPLATE_BUILT_IN),_.xp6(1),_.ekj("fa-check-square",e.protocolTemplateMode===e.TEMPLATE_BUILT_IN),_.xp6(3),_.ekj("badge-primary",e.protocolTemplateMode===e.TEMPLATE_CUSTOM)("badge-secondary",e.protocolTemplateMode!==e.TEMPLATE_CUSTOM),_.xp6(1),_.ekj("fa-check-square",e.protocolTemplateMode===e.TEMPLATE_CUSTOM)}}function K_(i,E){1&i&&_._UZ(0,"div")}function _e(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form",34),_.TgZ(2,"div",35),_.TgZ(3,"div",36),_.TgZ(4,"span",37),_.SDv(5,38),_.qZA(),_.qZA(),_._UZ(6,"input",39),_.qZA(),_.TgZ(7,"div",40),_._UZ(8,"i",41),_.qZA(),_.TgZ(9,"div",35),_.TgZ(10,"div",36),_.TgZ(11,"span",37),_.SDv(12,42),_.qZA(),_.qZA(),_.TgZ(13,"input",43),_.NdJ("ngModelChange",function(o){const s=_.CHM(e).$implicit;return _.oxw(4).builtinProtocolTemplateSelected[s]=o}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw(4);_.xp6(6),_.Q6J("value",e),_.xp6(7),_.Q6J("ngModel",t.builtinProtocolTemplateSelected[e])}}function ee(i,E){if(1&i&&(_.TgZ(0,"div"),_.YNc(1,_e,14,2,"div",33),_.qZA()),2&i){const e=_.oxw(3);_.xp6(1),_.Q6J("ngForOf",e.builtinProtocolTemplateProperties)}}function te(i,E){1&i&&(_.TgZ(0,"h5",48),_._UZ(1,"i",49),_.TgZ(2,"span"),_.SDv(3,50),_.qZA(),_.qZA())}function ie(i,E){if(1&i&&(_.TgZ(0,"div"),_._UZ(1,"span",44),_.TgZ(2,"span",45),_.SDv(3,46),_.qZA(),_.qZA(),_.YNc(4,te,4,0,"h5",47)),2&i){const e=_.oxw(3);_.xp6(4),_.Q6J("ngIf",0===e.builtinProtocolTemplateProperties.length&&e.builtinProtocolName)}}function ne(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",16),_.TgZ(1,"div",17),_.TgZ(2,"form"),_.TgZ(3,"div",18),_.TgZ(4,"label"),_.SDv(5,19),_.qZA(),_.TgZ(6,"select",20),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw(2).builtinProtocolName=o})("ngModelChange",function(){return _.CHM(e),_.oxw(2).onSelectBuiltinProtocolTemplate()}),_.TgZ(7,"option",21),_._uU(8,"device-mqtt"),_.qZA(),_.TgZ(9,"option",22),_._uU(10,"device-rest"),_.qZA(),_.TgZ(11,"option",23),_._uU(12,"device-virtual"),_.qZA(),_.TgZ(13,"option",24),_._uU(14,"device-modbus-tcp"),_.qZA(),_.TgZ(15,"option",25),_._uU(16,"device-modbus-rtu"),_.qZA(),_.TgZ(17,"option",26),_._uU(18,"device-onvif-camera"),_.qZA(),_.TgZ(19,"option",27),_._uU(20,"device-rfid-llrp"),_.qZA(),_.qZA(),_.TgZ(21,"div",28),_.TgZ(22,"small"),_.SDv(23,29),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"div",30),_.YNc(25,ee,2,1,"div",31),_.YNc(26,ie,5,1,"ng-template",null,32,_.W1O),_.qZA(),_.qZA()}if(2&i){const e=_.MAs(27),t=_.oxw(2);_.xp6(6),_.ekj("is-invalid",!t.builtinProtocolName)("is-valid",t.builtinProtocolName),_.Q6J("ngModel",t.builtinProtocolName),_.xp6(19),_.Q6J("ngIf",0!==t.builtinProtocolTemplateProperties.length)("ngIfElse",e)}}function oe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form",34),_.TgZ(2,"div",35),_.TgZ(3,"div",36),_.TgZ(4,"span",37),_.SDv(5,60),_.qZA(),_.qZA(),_.TgZ(6,"input",61),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.propertyName=o}),_.qZA(),_.qZA(),_.TgZ(7,"div",40),_._UZ(8,"i",41),_.qZA(),_.TgZ(9,"div",35),_.TgZ(10,"div",36),_.TgZ(11,"span",37),_.SDv(12,62),_.qZA(),_.qZA(),_.TgZ(13,"input",63),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.propertyValue=o}),_.qZA(),_.qZA(),_.TgZ(14,"div",64),_.TgZ(15,"button",65),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw(3).removeCustomProtocolProperty(c)}),_._UZ(16,"i",66),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit;_.xp6(6),_.Q6J("ngModel",e.propertyName),_.xp6(7),_.Q6J("ngModel",e.propertyValue)}}function Ee(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",16),_.TgZ(1,"div",51),_.TgZ(2,"div",18),_.TgZ(3,"label"),_.SDv(4,52),_.qZA(),_.TgZ(5,"input",53),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw(2).customProtocolName=o})("ngModelChange",function(){return _.CHM(e),_.oxw(2).onCustomProtocolNameChange()}),_.qZA(),_.TgZ(6,"div",28),_.TgZ(7,"small"),_.SDv(8,54),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",55),_.TgZ(10,"div"),_.TgZ(11,"p",56),_._UZ(12,"span",57),_.TgZ(13,"span",58),_.NdJ("click",function(){return _.CHM(e),_.oxw(2).addCustomProtocolProperty()}),_.SDv(14,59),_.qZA(),_.qZA(),_.qZA(),_.YNc(15,oe,17,2,"div",33),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(2);_.xp6(5),_.ekj("is-invalid",!e.customProtocolName)("is-valid",e.customProtocolName),_.Q6J("ngModel",e.customProtocolName),_.xp6(10),_.Q6J("ngForOf",e.customProtocolPropertyBearer)}}function ce(i,E){if(1&i&&(_.TgZ(0,"div",0),_.TgZ(1,"div",4),_.YNc(2,j_,9,12,"div",6),_.YNc(3,K_,1,0,"div",7),_.YNc(4,ne,28,7,"ng-template",null,8,_.W1O),_.YNc(6,Ee,16,6,"ng-template",null,9,_.W1O),_.qZA(),_.qZA()),2&i){const e=_.MAs(5),t=_.MAs(7),o=_.oxw();_.xp6(2),_.Q6J("ngIf",o.mode===o.MODE_ADD),_.xp6(1),_.Q6J("ngIf",o.protocolTemplateMode===o.TEMPLATE_CUSTOM)("ngIfThen",t)("ngIfElse",e)}}let K=(()=>{class i{constructor(){this.MODE_ADD="add",this.MODE_EDIT="edit",this.deviceProtocols={},this.isValid=!1,this.isValidChange=new _.vpe,this.TEMPLATE_CUSTOM="custom",this.TEMPLATE_BUILT_IN="built-in",this.customProtocolPropertyBearer=[],this.builtinProtocolTemplateProperties=[]}ngOnInit(){if(this.mode){if(this.mode==this.MODE_EDIT)return this.protocolTemplateMode=this.TEMPLATE_CUSTOM,this.extractProtocolName(),this.customProtocolName=this.protocolName?this.protocolName:"",void this.setCustomProtocolPropertysBearer();this.mode==this.MODE_ADD&&(this.protocolTemplateMode=this.TEMPLATE_BUILT_IN),this.validate()}}extractProtocolName(){!this.deviceProtocols||0===Object.keys(this.deviceProtocols).length||(this.protocolName=Object.keys(this.deviceProtocols)[0])}onSelectBuiltinProtocolTemplate(){switch(this.validate(),this.builtinProtocolName){case"mqtt":this.builtinProtocolTemplateSelected=new w_;break;case"modbus-tcp":this.builtinProtocolTemplateSelected=new F_;break;case"modbus-rtu":this.builtinProtocolTemplateSelected=new k_;break;case"other":this.builtinProtocolTemplateSelected=new z_;break;case"other-rest":this.builtinProtocolTemplateSelected={};break;case"Onvif":this.builtinProtocolTemplateSelected=new Y_;break;case"tcp":this.builtinProtocolTemplateSelected=new Q_;break;default:this.builtinProtocolTemplateSelected={}}this.builtinProtocolTemplateProperties=Object.keys(this.builtinProtocolTemplateSelected)}changeProtocolTemplateMode(e){this.protocolTemplateMode=e,this.validate()}onCustomProtocolNameChange(){this.validate()}setCustomProtocolPropertysBearer(){if(this.customProtocolName)for(const[e,t]of Object.entries(this.deviceProtocols[this.customProtocolName]))this.customProtocolPropertyBearer.push({propertyName:e,propertyValue:t})}addCustomProtocolProperty(){this.customProtocolPropertyBearer.push({propertyName:"",propertyValue:""})}removeCustomProtocolProperty(e){this.customProtocolPropertyBearer.splice(this.customProtocolPropertyBearer.indexOf(e),1)}getDeviceProtocols(){if(this.deviceProtocols={},this.protocolTemplateMode===this.TEMPLATE_BUILT_IN)this.deviceProtocols[this.builtinProtocolName]=Object.assign({},this.builtinProtocolTemplateSelected);else{let e={};this.customProtocolPropertyBearer.forEach(t=>{e[t.propertyName]=t.propertyValue}),this.deviceProtocols[this.customProtocolName]=e}return this.deviceProtocols}validate(){switch(this.isValid=!0,this.protocolTemplateMode){case this.TEMPLATE_BUILT_IN:this.builtinProtocolName||(this.isValid=!1);break;default:this.customProtocolName||(this.isValid=!1)}this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-protocol"]],inputs:{mode:"mode",deviceProtocols:"deviceProtocols",isValid:"isValid"},outputs:{isValidChange:"isValidChange"},decls:7,vars:1,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L;return E="Device Protocol",e="Avaliable Protocol Templates",t="Custom Protocol Templates",o="Protocol Name",c="the protocol name can't be empty!",s="PropertyName",C="PropertyVaule",v=" all built-in protocol templates refer to the device service released by edgex, such as device-virtual, device-rest, device-mqtt, device-modbus ",D="this device service doesn't need to set protocol properties",p="Protocol Name",h="the protocol name can't be empty!",f="Add Protocol Property",N="PropertyName",L="PropertyValue",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],E,[1,"card-body"],["class","card",4,"ngIf"],["class","mb-2",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["builtinProtocolTemplate",""],["customProtocolTemplate",""],[1,"mb-2"],["role","button",1,"user-select-none","badge","font-weight-bold","mr-3",3,"click"],[1,"fa","fa-square-o","mr-1"],e,["role","button",1,"user-select-none","badge","font-weight-bold",3,"click"],t,[1,"row","border","border-secondary","p-2","rounded-lg","mx-1"],[1,"col-md-2","border-right","border-info"],[1,"form-group"],o,["type","text","name","builtinProtocolName","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","mqtt"],["value","other-rest"],["value","other"],["value","modbus-tcp"],["value","modbus-rtu"],["value","Onvif"],["value","tcp"],[1,"invalid-feedback"],c,[1,"col-md-10"],[4,"ngIf","ngIfElse"],["noBuiltinProperties",""],[4,"ngFor","ngForOf"],[1,"form-inline","mb-1"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],s,["type","text","disabled","",1,"form-control",2,"width","300px",3,"value"],[1,"form-group","mx-2"],[1,"fa","fa-long-arrow-right"],C,["type","text","name","property",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"fa","fa-info-circle","fa-lg","text-success","font-weight-bold","mr-1"],[1,"text-muted"],v,["class","text-warning",4,"ngIf"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],D,[1,"col-md-2","col-lg-2","border-right","border-secondary"],p,["type","text","name","customProtocolName",1,"form-control",3,"ngModel","ngModelChange"],h,[1,"col-md-10","col-lg-10"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],f,N,["type","text","name","propertyName",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],L,["type","text","name","PropertyValue",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.YNc(6,ce,8,4,"div",5),_.qZA(),_.qZA()),2&e&&(_.xp6(6),_.Q6J("ngIf",t.mode))},directives:[n.O5,a._Y,a.JL,a.F,a.EJ,a.Q7,a.JJ,a.On,a.YN,a.Kr,n.sg,a.Fj],styles:[""]}),i})();var __=d(4889);function se(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",35),_.NdJ("click",function(o){const s=_.CHM(e).$implicit;return _.oxw().selectOneSvc(o,s.name)}),_.qZA(),_.qZA(),_.TgZ(3,"td"),_._uU(4),_.qZA(),_.TgZ(5,"td"),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.ALo(15,"date"),_.qZA(),_.TgZ(16,"td"),_._uU(17),_.ALo(18,"date"),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.ekj("table-active",t.isSvcChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isSvcChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Oqu(e.adminState),_.xp6(2),_.Oqu(_.xi3(15,10,e.created,"yyyy-MM-dd hh:mm:ss")),_.xp6(3),_.Oqu(_.xi3(18,13,e.modified,"yyyy-MM-dd hh:mm:ss"))}}let n_=(()=>{class i{constructor(e){this.metaSvc=e,this.singleDeviceSvcSelectedEvent=new _.vpe,this.deviceServiceList=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllDeviceSvcPagination()}findAllDeviceSvcPagination(){this.metaSvc.findAllDeviceServicesPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.deviceServiceList=e.services})}onSingleDeviceSvcSelectedEmitter(){this.singleDeviceSvcSelectedEvent.emit(this.deviceSvcSelected)}isSvcChecked(e){var t;return(null===(t=this.deviceSvcSelected)||void 0===t?void 0:t.name)===e}selectOneSvc(e,t){let c=this;e.target.checked?this.deviceServiceList.forEach(function(s){s.name===t&&(c.deviceSvcSelected=s)}):this.deviceSvcSelected=void 0,this.onSingleDeviceSvcSelectedEmitter()}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceSvcPagination()}prePage(){this.setPagination(-1),this.findAllDeviceSvcPagination()}nextPage(){this.setPagination(1),this.findAllDeviceSvcPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-service-list"]],inputs:{deviceSvcSelected:"deviceSvcSelected"},outputs:{singleDeviceSvcSelectedEvent:"singleDeviceSvcSelectedEvent"},decls:52,vars:4,consts:function(){let E,e,t,o,c,s,C,v,D,p,h;return E="Device Service List",e="ID",t="Name",o="Description",c="Labels",s="AdminState",C="Created",v="Modified",D="items per page",p="Previous",h="Next",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","mr-2","text-danger"],E,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],e,t,o,c,s,C,v,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],D,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],p,[1,"page-item"],h,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"table",6),_.TgZ(8,"thead",7),_.TgZ(9,"tr"),_.TgZ(10,"th",8),_._uU(11,"#"),_.qZA(),_.TgZ(12,"th",8),_.SDv(13,9),_.qZA(),_.TgZ(14,"th",8),_.SDv(15,10),_.qZA(),_.TgZ(16,"th",8),_.SDv(17,11),_.qZA(),_.TgZ(18,"th",8),_.SDv(19,12),_.qZA(),_.TgZ(20,"th",8),_.SDv(21,13),_.qZA(),_.TgZ(22,"th",8),_.SDv(23,14),_.qZA(),_.TgZ(24,"th",8),_.SDv(25,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"tbody"),_.YNc(27,se,19,16,"tr",16),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",17),_.TgZ(29,"nav",18),_.TgZ(30,"ul",19),_.TgZ(31,"li",20),_.TgZ(32,"span",21),_.SDv(33,22),_.qZA(),_.qZA(),_.TgZ(34,"li",23),_.TgZ(35,"select",24),_.NdJ("ngModelChange",function(c){return t.pageLimit=c})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(36,"option",25),_._uU(37,"5"),_.qZA(),_.TgZ(38,"option",26),_._uU(39,"10"),_.qZA(),_.TgZ(40,"option",27),_._uU(41,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(42,"li",28),_.TgZ(43,"button",29),_.NdJ("click",function(){return t.prePage()}),_._UZ(44,"i",30),_.TgZ(45,"span"),_.SDv(46,31),_.qZA(),_.qZA(),_.qZA(),_.TgZ(47,"li",32),_.TgZ(48,"button",29),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(49,"span"),_.SDv(50,33),_.qZA(),_._UZ(51,"i",34),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(27),_.Q6J("ngForOf",t.deviceServiceList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.deviceServiceList.length))},directives:[n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr],pipes:[n.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();var t_=d(2822);function ae(i,E){if(1&i&&(_.TgZ(0,"option",37),_._uU(1),_.qZA()),2&i){const e=E.$implicit;_.s9C("value",e),_.xp6(1),_.Oqu(e)}}function le(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",10),_.TgZ(1,"div",4),_.TgZ(2,"form"),_.TgZ(3,"div",11),_.TgZ(4,"label",12),_.SDv(5,13),_.qZA(),_.TgZ(6,"div",14),_.TgZ(7,"div",15),_.TgZ(8,"input",16),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.interval=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.qZA(),_.TgZ(9,"div",17),_.TgZ(10,"select",18),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.unit=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.TgZ(11,"option",19),_._uU(12,"millisecond"),_.qZA(),_.TgZ(13,"option",20),_._uU(14,"second"),_.qZA(),_.TgZ(15,"option",21),_._uU(16,"minute"),_.qZA(),_.TgZ(17,"option",22),_._uU(18,"hour"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",23),_.SDv(20,24),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(21,"div",25),_.TgZ(22,"label",12),_.SDv(23,26),_.qZA(),_.TgZ(24,"div",14),_.TgZ(25,"select",27),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.onChange=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.TgZ(26,"option",28),_._uU(27,"true"),_.qZA(),_.TgZ(28,"option",29),_._uU(29,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",25),_.TgZ(31,"label",12),_.SDv(32,30),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"select",31),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.resource=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.YNc(35,ae,2,2,"option",32),_.qZA(),_.TgZ(36,"div",23),_.SDv(37,33),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"button",34),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw().removeAutoEvent(c)}),_._UZ(39,"i",35),_.TgZ(40,"span"),_.SDv(41,36),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.xp6(8),_.ekj("is-invalid",!t.eventIntervalNumType(e.interval))("is-valid",t.eventIntervalNumType(e.interval)),_.Q6J("ngModel",e.interval),_.xp6(2),_.Q6J("ngModel",e.unit),_.xp6(15),_.Q6J("ngModel",e.onChange),_.xp6(9),_.ekj("is-invalid",""===e.resource)("is-valid",""!==e.resource),_.Q6J("ngModel",e.resource),_.xp6(1),_.Q6J("ngForOf",t.autoEventResourceNameSet)}}let o_=(()=>{class i{constructor(){this.autoEvents=[],this.autoEventsChange=new _.vpe,this.isValid=!1,this.isValidChange=new _.vpe,this.autoEventDecoratorBearer=[],this.autoEventResourceNameSet=[]}ngOnInit(){}ngOnChanges(){this.resetAutoEventDecoratorBearer(),this.setAutoEventDecorator(this.autoEvents),this.setupAutoEventResourceNameSet(this.deviceProfile),this.resumeOriginalAutoEvents()}onValueChange(){this.resumeOriginalAutoEvents()}resetAutoEventDecoratorBearer(){this.autoEventDecoratorBearer.splice(0,this.autoEventDecoratorBearer.length)}addAutoEvent(){this.autoEventDecoratorBearer.push({interval:"",onChange:!1,resource:"",unit:"ms"}),this.resumeOriginalAutoEvents()}removeAutoEvent(e){this.autoEventDecoratorBearer.splice(this.autoEventDecoratorBearer.indexOf(e),1),this.resumeOriginalAutoEvents()}setupAutoEventResourceNameSet(e){!e||(this.autoEventResourceNameSet.splice(0,this.autoEventResourceNameSet.length),e.deviceResources.forEach((t,o)=>{this.autoEventResourceNameSet.push(t.name)}),e.deviceCommands.forEach((t,o)=>{this.autoEventResourceNameSet.push(t.name)}))}eventIntervalNumType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}setAutoEventDecorator(e){!e||e.forEach(t=>{let o=0;-1!==t.interval.indexOf("ms")?o=t.interval.indexOf("ms"):-1!==t.interval.indexOf("s")?o=t.interval.indexOf("s"):-1!==t.interval.indexOf("m")?o=t.interval.indexOf("m"):-1!==t.interval.indexOf("h")&&(o=t.interval.indexOf("h")),this.autoEventDecoratorBearer.push({interval:t.interval.slice(0,o),onChange:!!t.onChange&&t.onChange,resource:t.sourceName,unit:t.interval.substring(o)})})}resumeOriginalAutoEvents(){this.autoEvents?this.autoEvents.splice(0,this.autoEvents.length):this.autoEvents=[],this.autoEventDecoratorBearer.forEach(e=>{this.autoEvents.push({interval:`${e.interval}${e.unit}`,onChange:!!e.onChange,sourceName:e.resource})}),this.validate(),this.autoEventsChange.emit(this.autoEvents)}validate(){this.isValid=!0,0!==this.autoEventDecoratorBearer.length&&this.autoEventDecoratorBearer.forEach(e=>{this.eventIntervalNumType(e.interval)&&""!==e.resource||(this.isValid=!1)}),this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-auto-event"]],inputs:{autoEvents:"autoEvents",deviceProfile:"deviceProfile",isValid:"isValid"},outputs:{autoEventsChange:"autoEventsChange",isValidChange:"isValidChange"},features:[_.TTD],decls:11,vars:1,consts:function(){let E,e,t,o,c,s,C,v;return E="AutoEvents",e="Add More AutoEvent",t="Interval",o=" can only be a pure integer number ",c="onchange",s="resource",C=" resource can't be empty ",v="Remove",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],E,[1,"card-body"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],e,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"form-group","row","has-validation"],[1,"col-md-2","col-form-label"],t,[1,"col-md-10"],[1,"input-group","mb-3",2,"width","250px"],["type","text","name","interval","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["name","eventIntervalUnit","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","ms"],["value","s"],["value","m"],["value","h"],[1,"invalid-feedback"],o,[1,"form-group","row"],c,["name","onchange",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],["value","true"],["value","false"],s,["name","resource","required","",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],C,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],v,[3,"value"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"p",5),_._UZ(7,"span",6),_.TgZ(8,"span",7),_.NdJ("click",function(){return t.addAutoEvent()}),_.SDv(9,8),_.qZA(),_.qZA(),_.YNc(10,le,42,13,"div",9),_.qZA(),_.qZA()),2&e&&(_.xp6(10),_.Q6J("ngForOf",t.autoEventDecoratorBearer))},directives:[n.sg,a._Y,a.JL,a.F,a.Fj,a.Q7,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),i})();function re(i,E){1&i&&_._UZ(0,"i",33)}function Ae(i,E){1&i&&_._UZ(0,"i",33)}function de(i,E){1&i&&_._UZ(0,"i",33)}function Ce(i,E){1&i&&_._UZ(0,"i",33)}function Te(i,E){1&i&&_._UZ(0,"i",33)}function ge(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw().previous()}),_._UZ(1,"i",35),_.TgZ(2,"span"),_.SDv(3,36),_.qZA(),_.qZA()}}function De(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",37),_.NdJ("click",function(){return _.CHM(e),_.oxw().next()}),_.TgZ(1,"span"),_.SDv(2,38),_.qZA(),_._UZ(3,"i",39),_.qZA()}if(2&i){const e=_.oxw();_.Q6J("disabled",e.stepStateLock())}}function Se(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",40),_.NdJ("click",function(){return _.CHM(e),_.oxw().submit()}),_._UZ(1,"i",41),_.TgZ(2,"span"),_.SDv(3,42),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.Q6J("disabled",e.stepStateLock())}}function Ie(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",43),_.TgZ(1,"app-device-service-list",44),_.NdJ("singleDeviceSvcSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleDeviceSvcSelected(o)}),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(1),_.Q6J("deviceSvcSelected",e.selectedSvc)}}function pe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",43),_.TgZ(1,"app-device-profile-list",45),_.NdJ("singleProfileSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleProfileSelected(o)}),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(1),_.Q6J("singleProfileSelected",e.selectedProfile)("enableSelectAll",!1)("toolbars",!1)("associatedDeviceColumn",!1)}}function ue(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"form",46),_.TgZ(1,"div",47),_.TgZ(2,"label",48),_.SDv(3,49),_.qZA(),_.TgZ(4,"div",50),_.TgZ(5,"input",51),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.name=o}),_.qZA(),_.TgZ(6,"div",52),_.TgZ(7,"small"),_.SDv(8,53),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",54),_.TgZ(10,"label",55),_.SDv(11,56),_.qZA(),_.TgZ(12,"div",50),_.TgZ(13,"input",57),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(14,"div",54),_.TgZ(15,"label",58),_.SDv(16,59),_.qZA(),_.TgZ(17,"div",50),_.TgZ(18,"input",60),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceLabels=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",54),_.TgZ(20,"label",61),_.SDv(21,62),_.qZA(),_.TgZ(22,"div",50),_.TgZ(23,"select",63),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.adminState=o}),_.TgZ(24,"option",64),_._uU(25,"UNLOCKED"),_.qZA(),_.TgZ(26,"option",65),_._uU(27,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(5),_.ekj("is-invalid",!e.newDevice.name)("is-valid",e.newDevice.name),_.Q6J("ngModel",e.newDevice.name),_.xp6(8),_.Q6J("ngModel",e.newDevice.description),_.xp6(5),_.Q6J("ngModel",e.deviceLabels),_.xp6(5),_.Q6J("ngModel",e.newDevice.adminState)}}function fe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",30),_.TgZ(1,"div",1),_.TgZ(2,"span",66),_.SDv(3,67),_.qZA(),_.qZA(),_.TgZ(4,"div",31),_.TgZ(5,"app-device-auto-event",68),_.NdJ("autoEventsChange",function(o){return _.CHM(e),_.oxw().newDevice.autoEvents=o})("isValidChange",function(o){return _.CHM(e),_.oxw().isAutoEventsValid=o}),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(5),_.Q6J("deviceProfile",e.selectedProfile)("autoEvents",e.newDevice.autoEvents)("isValid",e.isAutoEventsValid)}}let me=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errorSvc=o,this.router=c,this.route=s,this.deviceLabels="",this.currentStep=0,this.selectedClass="text-white rounded px-2 bg-success font-weight-bold",this.noSelectedClass="text-white rounded px-2 bg-secondary font-weight-bold",this.isProtocolValid=!1,this.isAutoEventsValid=!1,this.newDevice={adminState:"UNLOCKED",operatingState:"UP"}}ngOnInit(){}onSingleProfileSelected(e){this.selectedProfile=e}onSingleDeviceSvcSelected(e){this.selectedSvc=e}stepStateLock(){switch(this.currentStep){case 0:return void 0===this.selectedSvc;case 1:return void 0===this.selectedProfile;case 2:return!this.newDevice.name;case 3:return!this.isAutoEventsValid;case 4:return!this.isProtocolValid;default:return!1}}next(){this.currentStep+=1}previous(){this.currentStep=this.currentStep-1}submit(){var e,t,o;this.newDevice.labels=null===(e=this.deviceLabels)||void 0===e?void 0:e.split(","),this.newDevice.serviceName=null===(t=this.selectedSvc)||void 0===t?void 0:t.name,this.newDevice.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.newDevice.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.addDevice(this.newDevice).subscribe(c=>{this.errorSvc.handleErrorForAPI(c)||(this.msgSvc.success("Add device",`name: ${this.newDevice.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-device"]],viewQuery:function(e,t){if(1&e&&_.Gf(K,5),2&e){let o;_.iGM(o=_.CRH())&&(t.deviceProtocols=o.first)}},decls:54,vars:22,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L,P;return E="Add Device Wizard",e="SelectDeviceService",t="SelectDeviceProfile",o="DevicePrimary",c="CreateAutoEvent",s="CreateDeviceProtocol",C="Previous",v="Next",D="Submit",p="Name",h="the device name can't be empty!",f="Description",N="Labels",L="AdminState",P=" this step is optional, you can skip it then set it later in edit mode.",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-lightbulb-o","fa-lg","mr-2","text-danger"],[1,"text-secondary"],E,[1,"card-header","py-2"],["aria-label","breadcrumb",1,"mb-0","p-0"],[1,"breadcrumb","p-1","mb-0","bg-light"],[1,"breadcrumb-item"],[3,"ngClass"],e,["class","fa fa-check ml-1",4,"ngIf"],t,o,c,[1,"breadcrumb-item","active"],s,[1,"card-header","py-1"],["class","btn btn-info btn-sm",3,"click",4,"ngIf"],["class","btn btn-primary btn-sm float-right",3,"disabled","click",4,"ngIf","ngIfElse"],["stepDone",""],[1,"card-body","p-0"],[3,"ngSwitch"],[3,"ngSwitchCase"],["SelectDeviceService",""],["SelectDeviceProfile",""],["DevicePrimary",""],["CreateAutoEvent",""],["CreateDeviceProtocol",""],[1,"card","border-0"],[1,"card-body"],[3,"mode","isValid","isValidChange"],[1,"fa","fa-check","ml-1"],[1,"btn","btn-info","btn-sm",3,"click"],[1,"fa","fa-long-arrow-left","mr-1"],C,[1,"btn","btn-primary","btn-sm","float-right",3,"disabled","click"],v,[1,"fa","fa-long-arrow-right","ml-1"],[1,"btn","btn-success","btn-sm","ml-4","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],D,[1,"p-2"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"singleProfileSelected","enableSelectAll","toolbars","associatedDeviceColumn","singleProfileSelectedEvent"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","deviceName","required","",1,"col-md-2","col-form-label"],p,[1,"col-md-10"],["type","text","id","validationDeviceNameFeedback","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationDeviceNameFeedback",1,"invalid-feedback"],h,[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],f,["type","text","name","deviceDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","deviceLabels",1,"col-md-2","col-form-label"],N,["type","text","name","deviceLabels","placeholder","Multiple Labels are separated by commas: label1,label2,label3",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],L,["name","deviceAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],[1,"fa","fa-info-circle","text-warning","font-weight-bold"],P,[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(e,t){if(1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span",2),_._UZ(3,"span",3),_.TgZ(4,"span",4),_.SDv(5,5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(6,"div",6),_.TgZ(7,"nav",7),_.TgZ(8,"ol",8),_.TgZ(9,"li",9),_.TgZ(10,"span",10),_.TgZ(11,"span"),_.SDv(12,11),_.qZA(),_.YNc(13,re,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(14,"li",9),_.TgZ(15,"span",10),_.TgZ(16,"span"),_.SDv(17,13),_.qZA(),_.YNc(18,Ae,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(19,"li",9),_.TgZ(20,"span",10),_.TgZ(21,"span"),_.SDv(22,14),_.qZA(),_.YNc(23,de,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(24,"li",9),_.TgZ(25,"span",10),_.TgZ(26,"span"),_.SDv(27,15),_.qZA(),_.YNc(28,Ce,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(29,"li",16),_.TgZ(30,"span",10),_.TgZ(31,"span"),_.SDv(32,17),_.qZA(),_.YNc(33,Te,1,0,"i",12),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(34,"div",18),_.YNc(35,ge,4,0,"button",19),_.YNc(36,De,4,1,"button",20),_.YNc(37,Se,4,1,"ng-template",null,21,_.W1O),_.qZA(),_.TgZ(39,"div",22),_.TgZ(40,"div",23),_.YNc(41,Ie,2,1,"ng-template",24,25,_.W1O),_.YNc(43,pe,2,4,"ng-template",24,26,_.W1O),_.YNc(45,ue,28,8,"ng-template",24,27,_.W1O),_.YNc(47,fe,6,3,"ng-template",24,28,_.W1O),_.TgZ(49,"div",null,29),_.TgZ(51,"div",30),_.TgZ(52,"div",31),_.TgZ(53,"app-device-protocol",32),_.NdJ("isValidChange",function(c){return t.isProtocolValid=c}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e){const o=_.MAs(38);_.xp6(10),_.Q6J("ngClass",t.currentStep>=0?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=1),_.xp6(2),_.Q6J("ngClass",t.currentStep>=1?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=2),_.xp6(2),_.Q6J("ngClass",t.currentStep>=2?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=3),_.xp6(2),_.Q6J("ngClass",t.currentStep>=3?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=4),_.xp6(2),_.Q6J("ngClass",t.currentStep>=4?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=5),_.xp6(2),_.Q6J("ngIf",t.currentStep),_.xp6(1),_.Q6J("ngIf",4>t.currentStep)("ngIfElse",o),_.xp6(4),_.Q6J("ngSwitch",t.currentStep),_.xp6(1),_.Q6J("ngSwitchCase",0),_.xp6(2),_.Q6J("ngSwitchCase",1),_.xp6(2),_.Q6J("ngSwitchCase",2),_.xp6(2),_.Q6J("ngSwitchCase",3),_.xp6(2),_.Udp("display",4===t.currentStep?"":"none"),_.xp6(4),_.Q6J("mode","add")("isValid",t.isProtocolValid)}},directives:[n.mk,n.O5,n.RF,n.n9,K,n_,t_.f,a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr,o_],styles:['.breadcrumb[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:before{color:inherit;font-weight:inherit;content:">>";padding:0 5px}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}']}),i})();function ve(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"div",2),_._UZ(2,"i",3),_.TgZ(3,"span",4),_.SDv(4,5),_.qZA(),_.TgZ(5,"span",6),_._uU(6),_.qZA(),_.TgZ(7,"button",7),_.NdJ("click",function(){return _.CHM(e),_.oxw().save()}),_.TgZ(8,"span"),_._UZ(9,"i",8),_.TgZ(10,"span"),_.SDv(11,9),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"div",11),_.TgZ(14,"div",2),_._UZ(15,"i",12),_.TgZ(16,"span"),_.SDv(17,13),_.qZA(),_.qZA(),_.TgZ(18,"div",10),_.TgZ(19,"form"),_.TgZ(20,"div",14),_.TgZ(21,"label",15),_.SDv(22,16),_.qZA(),_.TgZ(23,"div",17),_.TgZ(24,"input",18),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.name=o}),_.qZA(),_.TgZ(25,"div",19),_.SDv(26,20),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",14),_.TgZ(28,"label",15),_.SDv(29,21),_.qZA(),_.TgZ(30,"div",17),_.TgZ(31,"input",22),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(32,"div",14),_.TgZ(33,"label",15),_.SDv(34,23),_.qZA(),_.TgZ(35,"div",17),_.TgZ(36,"input",24),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceLabels=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(37,"div",14),_.TgZ(38,"label",25),_.SDv(39,26),_.qZA(),_.TgZ(40,"div",17),_.TgZ(41,"select",27),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.adminState=o}),_.TgZ(42,"option",28),_._uU(43,"UNLOCKED"),_.qZA(),_.TgZ(44,"option",29),_._uU(45,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(46,"div",14),_.TgZ(47,"label",30),_.SDv(48,31),_.qZA(),_.TgZ(49,"div",17),_._UZ(50,"input",32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",33),_.TgZ(52,"app-device-service-list",34),_.NdJ("singleDeviceSvcSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleDeviceSvcSelected(o)}),_.qZA(),_.qZA(),_.TgZ(53,"div",33),_.TgZ(54,"app-device-profile-list",35),_.NdJ("singleProfileSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleProfileSelected(o)}),_.qZA(),_.qZA(),_.TgZ(55,"div",33),_.TgZ(56,"app-device-protocol",36),_.NdJ("isValidChange",function(o){return _.CHM(e),_.oxw().isProtocolValid=o}),_.qZA(),_.qZA(),_.TgZ(57,"div",33),_.TgZ(58,"app-device-auto-event",37),_.NdJ("autoEventsChange",function(o){return _.CHM(e),_.oxw().device.autoEvents=o})("isValidChange",function(o){return _.CHM(e),_.oxw().isAutoEventsValid=o}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(6),_.Oqu(e.device.name),_.xp6(1),_.Q6J("disabled",e.validateBeforeSave()),_.xp6(17),_.ekj("is-invalid",""===e.device.name),_.Q6J("ngModel",e.device.name),_.xp6(7),_.Q6J("ngModel",e.device.description),_.xp6(5),_.Q6J("ngModel",e.deviceLabels),_.xp6(5),_.Q6J("ngModel",e.device.adminState),_.xp6(9),_.Q6J("value",e.device.operatingState),_.xp6(2),_.Q6J("deviceSvcSelected",e.selectedSvc),_.xp6(2),_.Q6J("enableSelectAll",!1)("toolbars",!1)("singleProfileSelected",e.selectedProfile)("associatedDeviceColumn",!1),_.xp6(2),_.Q6J("mode","edit")("deviceProtocols",e.device.protocols)("isValid",e.isProtocolValid),_.xp6(2),_.Q6J("deviceProfile",e.selectedProfile)("autoEvents",e.device.autoEvents)("isValid",e.isAutoEventsValid)}}let Ne=(()=>{class i{constructor(e,t,o,c,s){this.router=e,this.route=t,this.metaSvc=o,this.msgSvc=c,this.errorSvc=s,this.isProtocolValid=!0,this.isAutoEventsValid=!0}ngOnInit(){this.route.queryParams.subscribe(e=>{!e.deviceName||this.metaSvc.findDeviceByName(e.deviceName).subscribe(o=>{var c;this.device=o.device,this.deviceLabels=null===(c=this.device.labels)||void 0===c?void 0:c.join(","),this.setDefaultDeviceSvcSelected(this.device.serviceName),this.setDefaultDeviceProfileSelected(this.device.profileName)})})}onSingleProfileSelected(e){this.selectedProfile=e}onSingleDeviceSvcSelected(e){this.selectedSvc=e}setDefaultDeviceSvcSelected(e){this.metaSvc.findDevcieServiceByName(e).subscribe(t=>{this.selectedSvc=t.service})}setDefaultDeviceProfileSelected(e){this.metaSvc.findProfileByName(e).subscribe(t=>{this.selectedProfile=t.profile})}validateBeforeSave(){return""===this.device.name||!this.isAutoEventsValid||!this.isProtocolValid}save(){var e,t,o;this.device.labels=null===(e=this.deviceLabels)||void 0===e?void 0:e.split(","),this.device.serviceName=null===(t=this.selectedSvc)||void 0===t?void 0:t.name,this.device.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.device.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.updateDevice(this.device).subscribe(c=>{var s;this.errorSvc.handleErrorForAPI(c)||(this.msgSvc.success("update device",`name: ${null===(s=this.device)||void 0===s?void 0:s.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(T.F0),_.Y36(T.gz),_.Y36(u.D),_.Y36(V.e),_.Y36(__.T))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-device"]],viewQuery:function(e,t){if(1&e&&_.Gf(K,5),2&e){let o;_.iGM(o=_.CRH())&&(t.deviceProtocols=o.first)}},decls:1,vars:1,consts:function(){let E,e,t,o,c,s,C,v,D;return E="Edit Device",e="Save",t="Device Primary",o="DeviceName",c=" device name can't not be empty! ",s="Description",C="Labels",v="AdminState",D="OperatingState",[["class","card",4,"ngIf"],[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","text-danger","fa-lg"],[1,"mx-2"],E,[1,"text-primary"],["type","button",1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],e,[1,"card-body"],[1,"card","mb-3"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],t,[1,"form-group","row"],[1,"col-md-2","col-form-label"],o,[1,"col-md-10"],["type","text","name","name","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],c,s,["type","text","name","description",1,"form-control",3,"ngModel","ngModelChange"],C,["type","text","name","labels",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],v,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","operatingState",1,"col-md-2","col-form-label"],D,["type","text","name","operatingState","disabled","",1,"form-control",3,"value"],[1,"mb-3"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"enableSelectAll","toolbars","singleProfileSelected","associatedDeviceColumn","singleProfileSelectedEvent"],[3,"mode","deviceProtocols","isValid","isValidChange"],[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(e,t){1&e&&_.YNc(0,ve,59,20,"div",0),2&e&&_.Q6J("ngIf",t.device)},directives:[n.O5,a._Y,a.JL,a.F,a.Fj,a.Q7,a.JJ,a.On,a.EJ,a.YN,a.Kr,n_,t_.f,K,o_],styles:["input[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})(),Me=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-profile-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[T.lC],styles:[""]}),i})(),Pe=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errSvc=o,this.router=c,this.route=s}ngOnInit(){this.renderYamlSource()}renderYamlSource(){let e=document.getElementById("editor");this.codeMirrorEditor=CodeMirror.fromTextArea(e,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px"),this.codeMirrorEditor.on("drop",(t,o)=>{var c;this.yamlFile=null===(c=o.dataTransfer)||void 0===c?void 0:c.files[0]}),this.codeMirrorEditor.on("paste",(t,o)=>{})}submit(){this.profileYamlSource=this.codeMirrorEditor.getValue(),this.metaSvc.addProfileYamlByNameViaUIBackend(this.profileYamlSource).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add profile"),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-profile"]],decls:15,vars:0,consts:function(){let E,e,t;return E="Add Profile",e="\xA0drag-and-drop is enabled",t="Submit",[[1,"card"],[1,"card-header"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],E,[1,"fa","fa-info-circle","text-success","font-weight-bold"],e,[1,"float-right"],["type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],["id","editor","name","editor"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span"),_._UZ(3,"span",2),_.TgZ(4,"span",3),_.SDv(5,4),_.qZA(),_.TgZ(6,"span",5),_.SDv(7,6),_.qZA(),_.qZA(),_.TgZ(8,"span",7),_.TgZ(9,"button",8),_.NdJ("click",function(){return t.submit()}),_._UZ(10,"i",9),_.TgZ(11,"span"),_.SDv(12,10),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"div",11),_._UZ(14,"textarea",12),_.qZA(),_.qZA())},styles:[""]}),i})(),Oe=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errSvc=o,this.router=c,this.route=s}ngOnInit(){this.renderYamlSource(),this.route.queryParams.subscribe(e=>{e.profileName&&(this.profileName=e.profileName,this.metaSvc.findProfileYamlByNameViaUIBackend(e.profileName).subscribe(t=>{this.codeMirrorEditor.setValue(t),this.codeMirrorEditor.refresh()}))})}update(){this.codeMirrorEditor.refresh(),this.metaSvc.updateProfileYamlContentViaUIBackend(this.codeMirrorEditor.getValue()).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update profile",`name: ${this.profileName}`),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}renderYamlSource(){let e=document.getElementById("editor-edit");this.codeMirrorEditor=CodeMirror.fromTextArea(e,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px")}ngOnDestroy(){this.codeMirrorEditor=null}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-profile"]],decls:13,vars:1,consts:function(){let E;return E="Save",[[1,"card"],[1,"card-header"],[1,"text-danger","fa","fa-edit","mr-2"],[1,"float-right"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],E,[1,"card-body","p-0"],["id","editor-edit","name","editor"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span"),_._UZ(3,"span",2),_._uU(4),_.qZA(),_.TgZ(5,"span",3),_.TgZ(6,"button",4),_.NdJ("click",function(){return t.update()}),_.TgZ(7,"span"),_._UZ(8,"i",5),_.TgZ(9,"span"),_.SDv(10,6),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",7),_._UZ(12,"textarea",8),_.qZA(),_.qZA()),2&e&&(_.xp6(4),_.hij("",t.profileName," "))},styles:[""]}),i})(),Ge=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-provision-watcher-center"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"provision-watcher-center works!"),_.qZA())},styles:[""]}),i})(),he=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-provision-watcher-list"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"provision-watcher-list works!"),_.qZA())},styles:[""]}),i})(),Re=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-provision-watcher"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"add-provision-watcher works!"),_.qZA())},styles:[""]}),i})(),Ze=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-provision-watcher"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"edit-provision-watcher works!"),_.qZA())},styles:[""]}),i})();var Ue=d(8253),Ve=d(1964),Le=d(4294),be=d(5894),$e=d(7216);let E_=(()=>{class i{constructor(e,t){this.router=e,this.metadataSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.metadataSvc.ping().pipe((0,Le.q)(1),(0,be.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"metadata",routerPath:`/${t.url.split("/")[1]}`}})),(0,$e.z)(()=>(0,Ve.of)(!0)))}}return i.\u0275fac=function(e){return new(e||i)(_.LFG(T.F0),_.LFG(u.D))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const xe=[{path:"",component:x,canActivate:[Ue.a,E_],canActivateChild:[E_],children:[{path:"",redirectTo:"device-service-list",pathMatch:"full"},{path:"device-service-list",component:R},{path:"device-center",component:l,children:[{path:"",redirectTo:"device-list",pathMatch:"full"},{path:"device-list",component:H_},{path:"add-device",component:me},{path:"edit-device",component:Ne}]},{path:"device-profile-center",component:Me,children:[{path:"",redirectTo:"device-profile-list",pathMatch:"full"},{path:"device-profile-list",component:t_.f},{path:"edit-profile",component:Oe},{path:"add-profile",component:Pe}]},{path:"provision-watcher-center",component:Ge,children:[{path:"",redirectTo:"provision-watcher-list",pathMatch:"full"},{path:"provision-watcher-list",component:he},{path:"edit-provision-watcher",component:Ze},{path:"add-provision-watcher",component:Re}]}]}];let qe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[T.Bz.forChild(xe)],T.Bz]}),i})(),Xe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[n.ez,a.u5,qe,a.UX]]}),i})()},2822:(i_,b,d)=>{d.d(b,{f:()=>e_});var n=d(476),a=d(2437),T=d(7822),_=d(9502),x=d(8583),u=d(3092);function V(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"div",50),n.TgZ(1,"div",51),n.TgZ(2,"button",52),n.NdJ("click",function(){return n.CHM(l),n.oxw().refresh()}),n.TgZ(3,"span"),n._UZ(4,"i",53),n.TgZ(5,"span"),n.SDv(6,54),n.qZA(),n.qZA(),n.qZA(),n.TgZ(7,"button",55),n.TgZ(8,"span"),n._UZ(9,"i",56),n.TgZ(10,"span"),n.SDv(11,57),n.qZA(),n.qZA(),n.qZA(),n.TgZ(12,"button",58),n.NdJ("click",function(){return n.CHM(l),n.oxw().edit()}),n.TgZ(13,"span"),n._UZ(14,"i",59),n.TgZ(15,"span"),n.SDv(16,60),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"button",61),n.NdJ("click",function(){return n.CHM(l),n.oxw().deleteConfirm()}),n.TgZ(18,"span"),n._UZ(19,"i",62),n.TgZ(20,"span"),n.SDv(21,63),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&I){const l=n.oxw();n.xp6(12),n.Q6J("disabled",1!==l.multiProfilesSelected.length),n.xp6(5),n.Q6J("disabled",0===l.multiProfilesSelected.length)}}function S(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"input",64),n.NdJ("click",function(g){return n.CHM(l),n.oxw().selectAll(g)}),n.qZA()}if(2&I){const l=n.oxw();n.Q6J("checked",l.isCheckedAll())}}function m(I,R){1&I&&(n.TgZ(0,"th",9),n.SDv(1,65),n.qZA())}const G=function(I){return{profileName:I}};function U(I,R){if(1&I&&(n.TgZ(0,"td",69),n.TgZ(1,"a",70),n._UZ(2,"i",71),n.qZA(),n.qZA()),2&I){const l=n.oxw().$implicit;n.xp6(1),n.Q6J("queryParams",n.VKq(1,G,l.name))}}function X(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"tr"),n.TgZ(1,"td"),n.TgZ(2,"input",66),n.NdJ("click",function(g){const q=n.CHM(l).$implicit;return n.oxw().selectOne(g,q.name)}),n.qZA(),n.qZA(),n.TgZ(3,"td",67),n._uU(4),n.qZA(),n.TgZ(5,"td",67),n._uU(6),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.YNc(9,U,3,3,"td",68),n.TgZ(10,"td"),n._uU(11),n.qZA(),n.TgZ(12,"td"),n._uU(13),n.qZA(),n.TgZ(14,"td"),n._uU(15),n.qZA(),n.qZA()}if(2&I){const l=R.$implicit,r=n.oxw();n.ekj("table-active",r.isChecked(l.name)),n.xp6(2),n.s9C("value",l.name),n.Q6J("checked",r.isChecked(l.name)),n.xp6(2),n.Oqu(l.id),n.xp6(2),n.Oqu(l.name),n.xp6(2),n.Oqu(l.description),n.xp6(1),n.Q6J("ngIf",r.associatedDeviceColumn),n.xp6(2),n.Oqu(l.labels),n.xp6(2),n.Oqu(l.manufacturer),n.xp6(2),n.Oqu(l.model)}}let e_=(()=>{class I{constructor(l,r,g,Z){this.metaSvc=l,this.msgSvc=r,this.route=g,this.router=Z,this.associatedDeviceColumn=!0,this.toolbars=!0,this.enableSelectAll=!0,this.singleProfileSelectedEvent=new n.vpe,this.multipleProfileSelectedEvent=new n.vpe,this.profileList=[],this.multiProfilesSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(l=>{l.profileName?this.metaSvc.findProfileByName(l.profileName).subscribe(r=>{this.profileList=[],this.profileList.push(r.profile)}):this.findAllDeviceProfilesPagination()})}findAllDeviceProfilesPagination(){this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}onSingleProfileSelectedEmitter(){this.singleProfileSelectedEvent.emit(this.singleProfileSelected)}onMultipleProfileSelectedEmitter(){this.multipleProfileSelectedEvent.emit(this.multiProfilesSelected)}refresh(){this.metaSvc.allDeviceProfolesPagination(0,this.pageLimit).subscribe(l=>{this.profileList=l.profiles,this.msgSvc.success("refresh"),this.pagination=1,this.resetCheckbox()})}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceProfilesPagination()}prePage(){this.setPagination(-1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}nextPage(){this.setPagination(1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}setPageLimit(l){this.pageLimit=l}setPagination(l){1===l?this.pagination+=1:-1===l&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit,this.resetCheckbox()}resetPagination(){this.pagination=1,this.resetCheckbox()}resetCheckbox(){}edit(){this.router.navigate(["../edit-profile"],{relativeTo:this.route,queryParams:{profileName:this.multiProfilesSelected[0]}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.multiProfilesSelected.forEach(l=>{this.metaSvc.deleteProfileByName(l).subscribe(()=>{this.multiProfilesSelected=[],this.profileList.forEach((r,g)=>{r.name==l&&(this.profileList.splice(g,1),this.msgSvc.success("delete",` Name: ${r.name}`))})})}),$("#deleteConfirmDialog").modal("hide")}isSingleProfileChecked(l){var r;return(null===(r=this.singleProfileSelected)||void 0===r?void 0:r.name)===l}selectSingleProfile(l,r){l.target.checked?this.profileList.forEach(Z=>{Z.name===r&&(this.singleProfileSelected=Z)}):this.singleProfileSelected=void 0,this.onSingleProfileSelectedEmitter()}isCheckedAll(){let l=!0;return this.profileList&&0===this.profileList.length&&(l=!1),this.profileList.forEach(r=>{-1===this.multiProfilesSelected.indexOf(r.name)&&(l=!1)}),l}selectAll(l){this.profileList.forEach(l.target.checked?g=>{this.multiProfilesSelected.includes(g.name)||this.multiProfilesSelected.push(g.name)}:g=>{this.multiProfilesSelected.includes(g.name)&&this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(g.name),1)}),this.onMultipleProfileSelectedEmitter()}isChecked(l){return this.enableSelectAll?this.multiProfilesSelected.includes(l):this.isSingleProfileChecked(l)}selectOne(l,r){this.enableSelectAll?(l.target.checked?this.multiProfilesSelected.push(r):this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(r),1),this.onMultipleProfileSelectedEmitter()):this.selectSingleProfile(l,r)}}return I.\u0275fac=function(l){return new(l||I)(n.Y36(a.D),n.Y36(T.e),n.Y36(_.gz),n.Y36(_.F0))},I.\u0275cmp=n.Xpm({type:I,selectors:[["app-device-profile-list"]],inputs:{associatedDeviceColumn:"associatedDeviceColumn",toolbars:"toolbars",enableSelectAll:"enableSelectAll",multiProfilesSelected:"multiProfilesSelected",singleProfileSelected:"singleProfileSelected"},outputs:{singleProfileSelectedEvent:"singleProfileSelectedEvent",multipleProfileSelectedEvent:"multipleProfileSelectedEvent"},decls:67,vars:7,consts:function(){let R,l,r,g,Z,q,J,y,B,W,H,w,F,k,z,Y,Q,j;return R="Device Profile List",l="Name",r="Description",g="Labels",Z="Manufacturer",q="Model",J="items per page",y="Previous",B="Next",W="Warning",H=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",w="Cancel",F="Confirm",k="Refresh",z="Add",Y="Edit",Q="Delete",j="AssociatedDevice",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],R,[1,"card-body","p-0"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox",3,"checked","click",4,"ngIf"],l,r,["scope","col",4,"ngIf"],g,Z,q,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],J,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],y,[1,"page-item"],B,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],W,[1,"modal-body"],H,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],w,["type","button",1,"btn","btn-danger",3,"click"],F,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],k,["type","button","routerLink","../add-profile",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],z,["type","button","data-toggle","tooltip","data-placement","top","title","only one should be selected",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],Y,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],Q,["type","checkbox",3,"checked","click"],j,["type","checkbox",3,"value","checked","click"],[1,"user-select-all"],["class","text-center",4,"ngIf"],[1,"text-center"],["routerLink","../../device-center",1,"badge","badge-pill","badge-primary",3,"queryParams"],[1,"fa","fa-sitemap"]]},template:function(l,r){1&l&&(n.TgZ(0,"div",0),n.TgZ(1,"div",1),n._UZ(2,"i",2),n.TgZ(3,"span"),n.SDv(4,3),n.qZA(),n.qZA(),n.TgZ(5,"div",4),n.YNc(6,V,22,2,"div",5),n.TgZ(7,"div",6),n.TgZ(8,"table",7),n.TgZ(9,"thead",8),n.TgZ(10,"tr"),n.TgZ(11,"th",9),n.YNc(12,S,1,1,"input",10),n.qZA(),n.TgZ(13,"th",9),n._uU(14,"ID"),n.qZA(),n.TgZ(15,"th",9),n.SDv(16,11),n.qZA(),n.TgZ(17,"th",9),n.SDv(18,12),n.qZA(),n.YNc(19,m,2,0,"th",13),n.TgZ(20,"th",9),n.SDv(21,14),n.qZA(),n.TgZ(22,"th",9),n.SDv(23,15),n.qZA(),n.TgZ(24,"th",9),n.SDv(25,16),n.qZA(),n.qZA(),n.qZA(),n.TgZ(26,"tbody"),n.YNc(27,X,16,11,"tr",17),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(28,"div",18),n.TgZ(29,"nav",19),n.TgZ(30,"ul",20),n.TgZ(31,"li",21),n.TgZ(32,"span",22),n.SDv(33,23),n.qZA(),n.qZA(),n.TgZ(34,"li",24),n.TgZ(35,"select",25),n.NdJ("ngModelChange",function(Z){return r.pageLimit=Z})("ngModelChange",function(){return r.onPageSelected()}),n.TgZ(36,"option",26),n._uU(37,"5"),n.qZA(),n.TgZ(38,"option",27),n._uU(39,"10"),n.qZA(),n.TgZ(40,"option",28),n._uU(41,"20"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(42,"li",29),n.TgZ(43,"button",30),n.NdJ("click",function(){return r.prePage()}),n._UZ(44,"i",31),n.TgZ(45,"span"),n.SDv(46,32),n.qZA(),n.qZA(),n.qZA(),n.TgZ(47,"li",33),n.TgZ(48,"button",30),n.NdJ("click",function(){return r.nextPage()}),n.TgZ(49,"span"),n.SDv(50,34),n.qZA(),n._UZ(51,"i",35),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(52,"div",36),n.TgZ(53,"div",37),n.TgZ(54,"div",38),n.TgZ(55,"div",39),n.TgZ(56,"h5",40),n._UZ(57,"i",41),n.TgZ(58,"span"),n.SDv(59,42),n.qZA(),n.qZA(),n.qZA(),n.TgZ(60,"div",43),n.SDv(61,44),n.qZA(),n.TgZ(62,"div",45),n.TgZ(63,"button",46),n.SDv(64,47),n.qZA(),n.TgZ(65,"button",48),n.NdJ("click",function(){return r.delete()}),n.SDv(66,49),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&l&&(n.xp6(6),n.Q6J("ngIf",r.toolbars),n.xp6(6),n.Q6J("ngIf",r.enableSelectAll),n.xp6(7),n.Q6J("ngIf",r.associatedDeviceColumn),n.xp6(8),n.Q6J("ngForOf",r.profileList),n.xp6(8),n.Q6J("ngModel",r.pageLimit),n.xp6(8),n.Q6J("disabled",1===r.pagination),n.xp6(5),n.Q6J("disabled",r.pageLimit>r.profileList.length))},directives:[x.O5,x.sg,u.EJ,u.JJ,u.On,u.YN,u.Kr,_.rH,_.yS],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),I})()},7982:(i_,b,d)=>{d.d(b,{V:()=>x});var n=d(1841),a=d(5894),T=d(476),_=d(4889);let x=(()=>{class u{constructor(S,m){this.http=S,this.errorSvc=m,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new n.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,a.K)(m=>this.errorSvc.handleError(m)))}findCommnadsByDeviceId(S){return this.http.get(`${this.commandsByDeviceIdUrl}${S}`).pipe((0,a.K)(G=>this.errorSvc.handleError(G)))}allDeviceCoreCommandsPagination(S,m){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${S}&limit=${m}`).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}findDeviceAssociatedCommnadsByDeviceName(S){return this.http.get(`${this.commandsByDeviceNameUrl}${S}`).pipe((0,a.K)(G=>this.errorSvc.handleError(G)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,a.K)(m=>this.errorSvc.handleError(m)))}issueGetBinaryCmd(S,m){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${S}/command/${m}`,{responseType:"arraybuffer"}).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}issueGetCmd(S,m){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${S}/${m}?ds-pushevent=true&ds-returnevent=true`).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}issueSetCmd(S,m,G){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${S}/${m}`,JSON.stringify(G),this.httpPostOrPutJSONOptions).pipe((0,a.K)(X=>this.errorSvc.handleError(X)))}}return u.\u0275fac=function(S){return new(S||u)(T.LFG(n.eN),T.LFG(_.T))},u.\u0275prov=T.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/10.6895e8a3e17d7e2e257b.js b/cmd/edgex-ui-server/static/web/en-US/10.6895e8a3e17d7e2e257b.js new file mode 100644 index 00000000..3266a9c2 --- /dev/null +++ b/cmd/edgex-ui-server/static/web/en-US/10.6895e8a3e17d7e2e257b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[10],{4010:(ie,q,T)=>{T.r(q),T.d(q,{MetadataModule:()=>Gt});var n=T(8583),l=T(3092),C=T(9502),e=T(476);let y=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-metadata"]],decls:14,vars:0,consts:function(){let c,t,_;return c="Device Service",t="Device",_="Device Profile",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./device-service-list","routerLinkActive","active",1,"nav-link"],c,["routerLink","./device-center","routerLinkActive","active",1,"nav-link"],t,["routerLink","./device-profile-center","routerLinkActive","active",1,"nav-link"],_,[1,"card-body"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.qZA(),e.TgZ(6,"li",3),e.TgZ(7,"a",6),e.SDv(8,7),e.qZA(),e.qZA(),e.TgZ(9,"li",3),e.TgZ(10,"a",8),e.SDv(11,9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",10),e._UZ(13,"router-outlet"),e.qZA(),e.qZA())},directives:[C.yS,C.Od,C.lC],styles:[".active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}"]}),i})();var D=T(2437),b=T(7822);function u(i,c){if(1&i&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.description)}}function S(i,c){1&i&&(e.TgZ(0,"p",20),e._uU(1,"no description."),e.qZA())}function Z(i,c){if(1&i&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.adminState)}}function R(i,c){if(1&i&&(e.TgZ(0,"span",22),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.adminState)}}function G(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"a",23),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().associatedDevicesSkip(o.name)}),e._UZ(1,"i",24),e.TgZ(2,"span"),e.SDv(3,25),e.qZA(),e._uU(4),e.qZA()}if(2&i){const t=e.oxw().$implicit,_=e.oxw();e.xp6(4),e.hij("\xa0 ",_.associatedDevices.get(t.name)," ")}}function te(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"li",3),e.TgZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"div",7),e.TgZ(5,"div",8),e.TgZ(6,"h5",9),e._uU(7),e.qZA(),e.qZA(),e.YNc(8,u,2,1,"p",10),e.YNc(9,S,2,0,"ng-template",null,11,e.W1O),e.TgZ(11,"div"),e.TgZ(12,"span",12),e._uU(13),e.qZA(),e.TgZ(14,"span",13),e.YNc(15,Z,2,1,"span",14),e.YNc(16,R,2,1,"span",15),e.qZA(),e.YNc(17,G,5,1,"a",16),e.TgZ(18,"span",17),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().edit(s)}),e._UZ(19,"i",18),e.TgZ(20,"span"),e.SDv(21,19),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit,_=e.MAs(10),o=e.oxw();e.xp6(7),e.Oqu(t.name),e.xp6(1),e.Q6J("ngIf",t.description)("ngIfElse",_),e.xp6(5),e.hij("Port ",o.getSvcPort(t.baseAddress),""),e.xp6(1),e.Q6J("ngSwitch",t.adminState),e.xp6(1),e.Q6J("ngSwitchCase","UNLOCKED"),e.xp6(2),e.Q6J("ngIf",o.associatedDevices.size)}}function f(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",26),e.TgZ(1,"div",27),e._UZ(2,"i",28),e.TgZ(3,"span"),e.SDv(4,29),e.qZA(),e.TgZ(5,"span",30),e._uU(6),e.qZA(),e.TgZ(7,"button",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().updateSvc()}),e.SDv(8,32),e.qZA(),e.qZA(),e.TgZ(9,"div",33),e.TgZ(10,"form"),e.TgZ(11,"div",34),e.TgZ(12,"label",35),e.SDv(13,36),e.qZA(),e.TgZ(14,"div",37),e.TgZ(15,"input",38),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().deviceSvcSelected.description=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"div",34),e.TgZ(17,"label",39),e.SDv(18,40),e.qZA(),e.TgZ(19,"div",37),e.TgZ(20,"select",41),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().deviceSvcSelected.adminState=o}),e.TgZ(21,"option",42),e._uU(22,"UNLOCKED"),e.qZA(),e.TgZ(23,"option",43),e._uU(24,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(6),e.Oqu(t.deviceSvcSelected.name),e.xp6(9),e.Q6J("ngModel",t.deviceSvcSelected.description),e.xp6(5),e.Q6J("ngModel",t.deviceSvcSelected.adminState)}}let V=(()=>{class i{constructor(t,_,o,s){this.metaSvc=t,this.msgSvc=_,this.router=o,this.route=s,this.deviceServiceList=[],this.associatedDevices=new Map}ngOnInit(){this.metaSvc.allDeviceServices().subscribe(t=>{this.deviceServiceList=t.services,this.deviceServiceList.forEach(_=>{this.metaSvc.findDevicesByServiceName(0,20,_.name).subscribe(o=>{this.associatedDevices.set(_.name,o.devices.length>20?"20+":String(o.devices.length))})})})}getSvcPort(t){return new URL(t).port}edit(t){this.deviceSvcSelected=t}updateSvc(){this.metaSvc.updateDeviceService(this.deviceSvcSelected).subscribe(()=>{var t;this.msgSvc.success("update device service",`name: ${null===(t=this.deviceSvcSelected)||void 0===t?void 0:t.name}`),this.deviceSvcSelected=void 0})}associatedDevicesSkip(t){this.router.navigate(["../device-center"],{queryParams:{svcName:t},relativeTo:this.route})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D),e.Y36(b.e),e.Y36(C.F0),e.Y36(C.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-service-media-list"]],decls:3,vars:2,consts:function(){let c,t,_,o,s,a;return c="Setting",t="Associated Devices",_="edit",o="Save",s="Description",a="AdminState",[[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[4,"ngIf","ngIfElse"],["nodesc",""],[1,"badge","badge-info","mr-3"],[3,"ngSwitch"],["class","badge badge-success mr-3",4,"ngSwitchCase"],["class","badge badge-danger mr-3",4,"ngSwitchDefault"],["class","badge badge-primary","role","button",3,"click",4,"ngIf"],["role","button",1,"badge","badge-secondary","float-right",3,"click"],[1,"fa","fa-cog","mr-1"],c,[1,"my-1"],[1,"badge","badge-success","mr-3"],[1,"badge","badge-danger","mr-3"],["role","button",1,"badge","badge-primary",3,"click"],[1,"fa","fa-sitemap","mr-1"],t,[1,"card","mt-3"],[1,"card-header"],[1,"fa","fa-edit","mr-1","text-danger"],_,[1,"ml-1"],[1,"btn","btn-success","btn-sm","float-right",3,"click"],o,[1,"card-body"],[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],s,[1,"col-md-10"],["type","text","name","deviceSvcDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],a,["name","deviceSvcAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"]]},template:function(t,_){1&t&&(e.TgZ(0,"ul",0),e.YNc(1,te,22,7,"li",1),e.qZA(),e.YNc(2,f,25,3,"div",2)),2&t&&(e.xp6(1),e.Q6J("ngForOf",_.deviceServiceList),e.xp6(1),e.Q6J("ngIf",_.deviceSvcSelected))},directives:[n.sg,n.O5,n.RF,n.n9,n.ED,l._Y,l.JL,l.F,l.Fj,l.JJ,l.On,l.EJ,l.YN,l.Kr],styles:[""]}),i})(),r=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[C.lC],styles:[""]}),i})();var E=T(7982);function A(i,c){1&i&&e._UZ(0,"div")}function L(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"li",20),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).selectCmd(s)}),e._uU(1),e.qZA()}if(2&i){const t=c.$implicit,_=e.oxw(2);e.ekj("list-group-item-info",(null==_.selectedCmd?null:_.selectedCmd.name)===t.name),e.xp6(1),e.Oqu(t.name)}}function w(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).issueGetCmd()}),e._uU(1,"try"),e.qZA()}}function X(i,c){1&i&&e._UZ(0,"div")}function U(i,c){if(1&i&&(e.TgZ(0,"span",41),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.cmdGetResponse,"")}}function F(i,c){if(1&i&&(e.TgZ(0,"pre",42),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.Oqu(t.cmdGetResponseRaw)}}function k(i,c){if(1&i&&(e.TgZ(0,"div"),e.TgZ(1,"span",35),e.SDv(2,36),e.qZA(),e.YNc(3,U,2,1,"span",37),e.qZA(),e.TgZ(4,"div",38),e.TgZ(5,"span",35),e.SDv(6,39),e.qZA(),e.YNc(7,F,2,1,"pre",40),e.qZA()),2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("ngIf",t.cmdGetResponse),e.xp6(4),e.Q6J("ngIf",t.cmdGetResponseRaw)}}function J(i,c){1&i&&(e.TgZ(0,"h6",43),e._UZ(1,"i",44),e.TgZ(2,"span"),e.SDv(3,45),e.qZA(),e.qZA())}function z(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).issueSetCmd()}),e._uU(1,"try"),e.qZA()}}function Y(i,c){1&i&&e._UZ(0,"div")}function Q(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"label",56),e._uU(2),e.qZA(),e.TgZ(3,"select",57),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw().index;return e.oxw(6).parameterBearerList[s].value=o}),e.TgZ(4,"option",58),e._uU(5,"false"),e.qZA(),e.TgZ(6,"option",58),e._uU(7,"true"),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(),_=t.$implicit,o=t.index,s=e.oxw(6);e.xp6(1),e.s9C("for",_.resourceName),e.xp6(1),e.hij(" ",_.resourceName," "),e.xp6(1),e.s9C("id",_.resourceName),e.s9C("name",_.resourceName),e.Q6J("ngModel",s.parameterBearerList[o].value),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function B(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"label",56),e._uU(1),e.qZA(),e.TgZ(2,"input",59),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw().index;return e.oxw(6).parameterBearerList[s].value=o}),e.qZA()}if(2&i){const t=e.oxw(),_=t.$implicit,o=t.index,s=e.oxw(6);e.s9C("for",_.resourceName),e.xp6(1),e.Oqu(_.resourceName),e.xp6(1),e.s9C("id",_.resourceName),e.s9C("name",_.resourceName),e.MGl("placeholder","valueType: ",_.valueType,""),e.Q6J("ngModel",s.parameterBearerList[o].value)}}function W(i,c){if(1&i&&(e.TgZ(0,"div",53),e.YNc(1,Q,8,7,"div",54),e.YNc(2,B,3,6,"ng-template",null,55,e.W1O),e.qZA()),2&i){const t=c.$implicit,_=e.MAs(3);e.xp6(1),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",_)}}function H(i,c){if(1&i&&(e.TgZ(0,"div",51),e.YNc(1,W,4,2,"div",52),e.qZA()),2&i){const t=e.oxw(5);e.xp6(1),e.Q6J("ngForOf",t.selectedCmdSetParams)}}function j(i,c){if(1&i&&(e.TgZ(0,"div",12),e.TgZ(1,"div",4),e.SDv(2,49),e.qZA(),e.TgZ(3,"div",9),e.YNc(4,H,2,1,"div",50),e.qZA(),e.qZA()),2&i){const t=e.oxw(4);e.xp6(4),e.Q6J("ngIf",t.selectedCmd)}}function P(i,c){if(1&i&&(e.TgZ(0,"span",41),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.Oqu(t.cmdSetResponse)}}function Se(i,c){if(1&i&&(e.TgZ(0,"pre",42),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.Oqu(t.cmdSetResponseRaw)}}function Ie(i,c){if(1&i&&(e.YNc(0,j,5,1,"div",46),e.TgZ(1,"div"),e.TgZ(2,"div"),e.TgZ(3,"span",35),e.SDv(4,47),e.qZA(),e.YNc(5,P,2,1,"span",37),e.qZA(),e.TgZ(6,"div",38),e.TgZ(7,"span",35),e.SDv(8,48),e.qZA(),e.YNc(9,Se,2,1,"pre",40),e.qZA(),e.qZA()),2&i){const t=e.oxw(3);e.Q6J("ngIf",t.selectedCmdSetParams),e.xp6(5),e.Q6J("ngIf",t.cmdSetResponse),e.xp6(4),e.Q6J("ngIf",t.cmdSetResponseRaw)}}function Me(i,c){1&i&&(e.TgZ(0,"h6",43),e._UZ(1,"i",44),e.TgZ(2,"span"),e.SDv(3,60),e.qZA(),e.qZA())}function Pe(i,c){if(1&i&&(e.TgZ(0,"div",21),e.TgZ(1,"div",4),e.TgZ(2,"span",22),e._UZ(3,"i",23),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,24),e.qZA(),e.qZA(),e.TgZ(7,"div",25),e.TgZ(8,"div",10),e.TgZ(9,"div",26),e.TgZ(10,"div",12),e.TgZ(11,"div",4),e._uU(12," Get "),e.YNc(13,w,2,0,"button",27),e.qZA(),e.TgZ(14,"div",28),e.YNc(15,X,1,0,"div",0),e.YNc(16,k,8,2,"ng-template",null,29,e.W1O),e.YNc(18,J,4,0,"ng-template",null,30,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",31),e.TgZ(21,"div",21),e.TgZ(22,"div",4),e._uU(23," Set "),e.YNc(24,z,2,0,"button",27),e.qZA(),e.TgZ(25,"div",9),e.YNc(26,Y,1,0,"div",0),e.YNc(27,Ie,10,3,"ng-template",null,32,e.W1O),e.YNc(29,Me,4,0,"ng-template",null,33,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.MAs(17),_=e.MAs(19),o=e.MAs(28),s=e.MAs(30),a=e.oxw(2);e.xp6(4),e.hij(" ",a.selectedCmd.name," method:"),e.xp6(9),e.Q6J("ngIf",a.selectedCmd.get),e.xp6(2),e.Q6J("ngIf",a.selectedCmd.get)("ngIfThen",t)("ngIfElse",_),e.xp6(9),e.Q6J("ngIf",a.selectedCmd.set),e.xp6(2),e.Q6J("ngIf",a.selectedCmd.set)("ngIfThen",o)("ngIfElse",s)}}function he(i,c){if(1&i&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"span",7),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,8),e.qZA(),e.qZA(),e.TgZ(8,"div",9),e.TgZ(9,"div",10),e.TgZ(10,"div",11),e.TgZ(11,"div",12),e.TgZ(12,"div",13),e.SDv(13,14),e.qZA(),e.TgZ(14,"div",15),e.TgZ(15,"ul",16),e.YNc(16,L,2,3,"li",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",18),e.YNc(18,Pe,31,9,"div",19),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(5),e.Oqu(t.associatedCmdDeviceName),e.xp6(11),e.Q6J("ngForOf",t.deviceCoreCommand),e.xp6(2),e.Q6J("ngIf",t.selectedCmd)}}function Ne(i,c){if(1&i&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"span",7),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,61),e.qZA(),e.qZA(),e.TgZ(8,"div",62),e.TgZ(9,"h5",43),e._UZ(10,"i",63),e.TgZ(11,"span"),e.SDv(12,64),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(5),e.Oqu(t.associatedCmdDeviceName)}}let Ze=(()=>{class i{constructor(t,_){this.cmdSvc=t,this.metadataSvc=_,this.selectedCmd={},this.selectedCmdSetParams=[],this.parameterBearerList=[]}ngOnInit(){}ngOnChanges(){!this.deviceName||(this.resetResponse(),this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(this.deviceName).subscribe(t=>{this.associatedCmdDeviceName=t.deviceCoreCommand.deviceName,this.deviceCoreCommand=t.deviceCoreCommand.coreCommands,this.deviceCoreCommand&&0!==this.deviceCoreCommand.length&&(this.selectedCmd=this.deviceCoreCommand[0],this.selectedCmdSetParams=this.selectedCmd.parameters,this.setParameterBearerList(),this.getAssociatedDeviceProfile(t.deviceCoreCommand.profileName))}))}getAssociatedDeviceProfile(t){this.metadataSvc.findProfileByName(t).subscribe(_=>this.associateDeviceProfile=_.profile)}selectCmd(t){this.selectedCmd=t,this.selectedCmdSetParams=this.selectedCmd.parameters,this.resetResponse(),this.setParameterBearerList()}setParameterBearerList(){this.parameterBearerList=[],this.selectedCmdSetParams.forEach(t=>{this.parameterBearerList.push({key:t.resourceName,value:""})})}resetResponse(){this.cmdGetResponse="",this.cmdGetResponseRaw="",this.cmdSetResponse="",this.cmdSetResponseRaw="",this.cmdBinaryResponse=!0,this.cmdBinaryResponseURL=""}isBinaryResource(){let t=!1;return this.associateDeviceProfile.deviceResources.forEach(_=>{_.name!==this.selectedCmd.name||"Binary"!==_.properties.valueType||(t=!0)}),t||(this.associateDeviceProfile.deviceCommands.forEach(_=>{_.name===this.selectedCmd.name&&_.resourceOperations.forEach(o=>{this.associateDeviceProfile.deviceResources.forEach(s=>{o.deviceResource!==s.name||"Binary"!==s.properties.valueType||(t=!0)})})}),t)}issueGetCmd(){this.cmdSvc.issueGetCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(t=>{if(this.cmdGetResponseRaw=JSON.stringify(t.event.readings,null,3),this.isBinaryResource())return void(this.cmdGetResponse="Binary resource is not supported for preview");let _=[];t.event.readings.forEach(o=>{_.push(o.value)}),this.cmdGetResponse=_.join(",")})}issueGetCmdOfBinaryResource(){this.cmdSvc.issueGetBinaryCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(t=>{let _=CBOR.decode(t);"image/jpeg"===_.mediaType||"image/jpg"===_.mediaType||"image/png"===_.mediaType?(this.cmdBinaryResponse=_.binaryValue,this.cmdBinaryResponseURL=URL.createObjectURL(this.cmdBinaryResponse)):this.cmdBinaryResponse="only image binary is supported"})}issueSetCmd(){var t;let _={};this.parameterBearerList.forEach(o=>{_[o.key]=o.value}),this.cmdSvc.issueSetCmd(this.associatedCmdDeviceName,null===(t=this.selectedCmd)||void 0===t?void 0:t.name,_).subscribe(o=>{this.cmdSetResponseRaw=JSON.stringify(o,null,3),this.cmdSetResponse=o.message})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.V),e.Y36(D.D))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-command-viewer"]],inputs:{deviceName:"deviceName"},features:[e.TTD],decls:5,vars:3,consts:function(){let c,t,_,o,s,a,g,I,p,m,O,v;return c="Associated Commands",t=" Command Name List ",_="Get and Set",o="Response:",s="ResponseRaw:",a="no Get method",g="Response:",I="ResponseRaw:",p="Set Parameters",m="no Set method",O="Associated Commands",v="no associated commands",[[4,"ngIf","ngIfThen","ngIfElse"],["hasAssociatedCommand",""],["noAssociatedCommand",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"text-primary","mx-2","font-weight-bold"],c,[1,"card-body"],[1,"row"],[1,"col-md-2","col-lg-2"],[1,"card","mb-2"],[1,"card-header","font-weight-bold"],t,[1,"card-body","p-0"],[1,"list-group","list-group-flush"],["role","button","class","list-group-item list-group-item-action",3,"list-group-item-info","click",4,"ngFor","ngForOf"],[1,"col-md-10","col-lg-10"],["class","card",4,"ngIf"],["role","button",1,"list-group-item","list-group-item-action",3,"click"],[1,"card"],[1,"text-primary","font-weight-bold","mr-2"],[1,"fa","fa-thumb-tack","text-danger","mr-1"],_,[1,"card-body","px-2"],[1,"col-md-5","col-lg-5"],["class","btn btn-primary btn-sm float-right",3,"click",4,"ngIf"],[1,"card-body","overflow-auto"],["hasGetMethod",""],["noGetMethod",""],[1,"col-md-7","col-lg-7"],["hasSetMethod",""],["noSetMethod",""],[1,"btn","btn-primary","btn-sm","float-right",3,"click"],[1,"badge","badge-info"],o,["class","ml-2 text-primary",4,"ngIf"],[1,"mt-3"],s,["class","mt-2 bg-secondary p-2 text-light rounded",4,"ngIf"],[1,"ml-2","text-primary"],[1,"mt-2","bg-secondary","p-2","text-light","rounded"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],a,["class","card mb-2",4,"ngIf"],g,I,p,["class","d-flex flex-column bd-highlight",4,"ngIf"],[1,"d-flex","flex-column","bd-highlight"],["class","form p-2 bd-highlight",4,"ngFor","ngForOf"],[1,"form","p-2","bd-highlight"],[4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[3,"for"],[1,"custom-select","custom-select-sm",3,"id","name","ngModel","ngModelChange"],[3,"ngValue"],[1,"form-control","form-control-sm",3,"id","name","ngModel","placeholder","ngModelChange"],m,O,[1,"card-body","text-center"],[1,"fa","fa-warning"],v]},template:function(t,_){if(1&t&&(e.YNc(0,A,1,0,"div",0),e.YNc(1,he,19,3,"ng-template",null,1,e.W1O),e.YNc(3,Ne,13,1,"ng-template",null,2,e.W1O)),2&t){const o=e.MAs(2),s=e.MAs(4);e.Q6J("ngIf",_.deviceCoreCommand)("ngIfThen",o)("ngIfElse",s)}},directives:[n.O5,n.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,l.Fj],styles:[""]}),i})();function Oe(i,c){if(1&i&&(e.TgZ(0,"span"),e.TgZ(1,"span",67),e.SDv(2,68),e.qZA(),e.TgZ(3,"span",69),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,70),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(4),e.Oqu(t.associatedSvcName)}}function Ve(i,c){if(1&i&&(e.TgZ(0,"span"),e.TgZ(1,"span",67),e.SDv(2,71),e.qZA(),e.TgZ(3,"span",69),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,72),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(4),e.Oqu(t.associatedProfileName)}}function Le(i,c){1&i&&(e.TgZ(0,"span"),e.SDv(1,73),e.qZA())}function Re(i,c){if(1&i&&(e.TgZ(0,"span",85),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.adminState)}}function be(i,c){if(1&i&&(e.TgZ(0,"span",86),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.adminState)}}function $e(i,c){if(1&i&&(e.TgZ(0,"span",85),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.operatingState,"")}}function xe(i,c){if(1&i&&(e.TgZ(0,"span",86),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.operatingState,"")}}function qe(i,c){if(1&i&&(e.TgZ(0,"span",86),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.operatingState,"")}}const ye=function(i){return{profileName:i}};function we(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",23),e.NdJ("click",function(o){const a=e.CHM(t).$implicit;return e.oxw().selectOne(o,a)}),e.qZA(),e.qZA(),e.TgZ(3,"td",74),e._uU(4),e.qZA(),e.TgZ(5,"td",74),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e.TgZ(12,"span",75),e.YNc(13,Re,2,1,"span",76),e.YNc(14,be,2,1,"span",77),e.qZA(),e.qZA(),e.TgZ(15,"td",78),e.TgZ(16,"span",75),e.YNc(17,$e,2,1,"span",76),e.YNc(18,xe,2,1,"span",79),e.YNc(19,qe,2,1,"span",77),e.qZA(),e.qZA(),e.TgZ(20,"td",78),e.TgZ(21,"span",80),e.NdJ("click",function(){const s=e.CHM(t).$implicit,a=e.oxw();return a.setSpecialFeatureViewer(s,a.FEATURE_COMMAND)}),e._UZ(22,"i",81),e.qZA(),e.qZA(),e.TgZ(23,"td",78),e.TgZ(24,"span",80),e.NdJ("click",function(){const s=e.CHM(t).$implicit,a=e.oxw();return a.setSpecialFeatureViewer(s,a.FEATURE_AUTOEVENT)}),e._UZ(25,"i",82),e.qZA(),e.qZA(),e.TgZ(26,"td"),e.TgZ(27,"a",83),e._uU(28),e.qZA(),e.qZA(),e.TgZ(29,"td"),e.TgZ(30,"a",84),e._uU(31),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit,_=e.oxw();e.ekj("table-active",_.isChecked(t.id)||_.specialFeatureAssociatedDeviceName===t.name),e.xp6(2),e.Q6J("checked",_.isChecked(t.id)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.description),e.xp6(2),e.Oqu(t.labels),e.xp6(2),e.Q6J("ngSwitch",t.adminState),e.xp6(1),e.Q6J("ngSwitchCase","UNLOCKED"),e.xp6(3),e.Q6J("ngSwitch",t.operatingState),e.xp6(1),e.Q6J("ngSwitchCase","UP"),e.xp6(1),e.Q6J("ngSwitchCase","DOWN"),e.xp6(3),e.ekj("badge-danger",_.specialFeatureName===_.FEATURE_COMMAND&&_.specialFeatureAssociatedDeviceName===t.name),e.xp6(3),e.ekj("badge-danger",_.specialFeatureName===_.FEATURE_AUTOEVENT&&_.specialFeatureAssociatedDeviceName===t.name),e.xp6(3),e.Q6J("queryParams",e.VKq(19,ye,t.profileName)),e.xp6(1),e.Oqu(t.profileName),e.xp6(3),e.Oqu(t.serviceName)}}function Ge(i,c){if(1&i&&(e.TgZ(0,"tr"),e.TgZ(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e.TgZ(4,"span",99),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"td"),e.TgZ(7,"span",100),e._uU(8),e.qZA(),e.qZA(),e.qZA()),2&i){const t=c.$implicit;e.xp6(2),e.Oqu(t.sourceName),e.xp6(3),e.Oqu(t.interval),e.xp6(3),e.Oqu(t.onChange)}}function Xe(i,c){if(1&i&&(e.TgZ(0,"div"),e.TgZ(1,"div",89),e.TgZ(2,"div",90),e.TgZ(3,"span",91),e._UZ(4,"i",82),e.qZA(),e.TgZ(5,"span",92),e._uU(6),e.qZA(),e.TgZ(7,"span"),e.SDv(8,93),e.qZA(),e.qZA(),e.TgZ(9,"div",94),e.TgZ(10,"div",19),e.TgZ(11,"table",20),e.TgZ(12,"thead",21),e.TgZ(13,"th",22),e.SDv(14,95),e.qZA(),e.TgZ(15,"th",22),e.SDv(16,96),e.qZA(),e.TgZ(17,"th",22),e.SDv(18,97),e.qZA(),e.qZA(),e.TgZ(19,"tbody"),e.YNc(20,Ge,9,3,"tr",98),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw(2);e.xp6(6),e.hij(" ",t.specialFeatureAssociatedDeviceName,""),e.xp6(14),e.Q6J("ngForOf",t.autoEvents)}}function Ue(i,c){if(1&i&&(e.TgZ(0,"div",89),e.TgZ(1,"div",90),e.TgZ(2,"span",91),e._UZ(3,"i",82),e.qZA(),e.TgZ(4,"span",92),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,101),e.qZA(),e.qZA(),e.TgZ(8,"div",102),e.TgZ(9,"h5",103),e._UZ(10,"i",58),e.TgZ(11,"span"),e.SDv(12,104),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw(2);e.xp6(5),e.hij(" ",t.specialFeatureAssociatedDeviceName,"")}}function Fe(i,c){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Xe,21,2,"div",87),e.YNc(2,Ue,13,1,"ng-template",null,88,e.W1O),e.qZA()),2&i){const t=e.MAs(3),_=e.oxw();e.xp6(1),e.Q6J("ngIf",_.autoEvents)("ngIfElse",t)}}function ke(i,c){if(1&i&&(e.TgZ(0,"div"),e._UZ(1,"app-device-command-viewer",105),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("deviceName",t.specialFeatureAssociatedDeviceName)}}let Je=(()=>{class i{constructor(t,_,o,s){this.metaSvc=t,this.msgSvc=_,this.route=o,this.router=s,this.toolbars=!0,this.enableSelectAll=!0,this.deviceList=[],this.associatedSvcName="",this.associatedProfileName="",this.selectedDevice=[],this.FEATURE_AUTOEVENT="autoevent",this.FEATURE_COMMAND="command",this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(t=>t.svcName?(this.associatedSvcName=t.svcName,void this.getDeviceListByAssociatedSvc(this.associatedSvcName)):t.profileName?(this.associatedProfileName=t.profileName,void this.getDeviceListByAssociatedProfile(this.associatedProfileName)):(this.associatedSvcName="",this.associatedProfileName="",void this.getDeviceListPagination()))}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},250)}getDeviceList(){""===this.associatedSvcName?""===this.associatedProfileName?this.getDeviceListPagination():this.getDeviceListByAssociatedProfile(this.associatedSvcName):this.getDeviceListByAssociatedSvc(this.associatedSvcName)}getDeviceListByAssociatedSvc(t){this.metaSvc.findDevicesByServiceName(this.pageOffset,this.pageLimit,t).subscribe(_=>this.deviceList=_.devices)}getDeviceListByAssociatedProfile(t){this.metaSvc.findDevicesByProfileName(this.pageOffset,this.pageLimit,t).subscribe(_=>this.deviceList=_.devices)}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.deviceList=t.devices})}refresh(){this.associatedProfileName="",this.associatedSvcName="",this.metaSvc.allDevicesPagination(0,this.pageLimit).subscribe(t=>{this.deviceList=t.devices,this.msgSvc.success("refresh"),this.resetPagination()})}edit(){this.router.navigate(["../edit-device"],{relativeTo:this.route,queryParams:{deviceName:this.selectedDevice[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedDevice.forEach((t,_)=>{this.metaSvc.deleteOneDeviceByName(t.name).subscribe(()=>{this.selectedDevice.splice(_,1),this.deviceList.forEach((o,s)=>{if(o.id===t.id)return this.deviceList.splice(s,1),void this.msgSvc.success("remove device ",` Name: ${o.name}`)})})}),this.specialFeatureName=void 0,$("#deleteConfirmDialog").modal("hide")}setSpecialFeatureViewer(t,_){switch(this.specialFeatureAssociatedDeviceName=t.name,this.specialFeatureName=_,this.specialFeatureName){case this.FEATURE_AUTOEVENT:this.autoEvents=t.autoEvents}}isCheckedAll(){let t=!0;return this.deviceList&&0===this.deviceList.length&&(t=!1),this.deviceList.forEach(_=>{-1===this.selectedDevice.findIndex(o=>o.name===_.name)&&(t=!1)}),t}selectAll(t){this.deviceList.forEach(t.target.checked?o=>{-1===this.selectedDevice.findIndex(s=>s.name===o.name)&&this.selectedDevice.push(o)}:o=>{this.selectedDevice.forEach((s,a)=>{s.name===o.name&&this.selectedDevice.splice(a,1)})})}isChecked(t){return this.selectedDevice.findIndex(_=>_.id===t)>=0}selectOne(t,_){t.target.checked?this.selectedDevice.push(_):this.selectedDevice.forEach((s,a)=>{s.name===_.name&&this.selectedDevice.splice(a,1)})}onPageSelected(){this.resetPagination(),this.getDeviceList()}prePage(){this.setPagination(-1),this.getDeviceList()}nextPage(){this.setPagination(1),this.getDeviceList()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D),e.Y36(b.e),e.Y36(C.gz),e.Y36(C.F0))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-list"]],inputs:{toolbars:"toolbars",enableSelectAll:"enableSelectAll"},decls:98,vars:12,consts:function(){let c,t,_,o,s,a,g,I,p,m,O,v,M,x,h,N,se,ae,le,re,Ee,de,Te,ge,Ce,Ae,pe,ue,fe,me,De,ve;return c="Refresh",t="Add",_="Edit",o="Delete",s="ID",a="Name",g="Description",I="Labels",p="AdminState",m="OperatingState",O="Command",v="AutoEvents",M="AssociatedProfile",x="AssociatedService",h="items per page",N="Previous",se="Next",ae="Warning",le=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",re="Cancel",Ee="Confirm",de="DeviceService",Te="Associated Device List",ge="DeviceProfile",Ce="Associated Device List",Ae="Device List",pe="Associated AutoEvents",ue="Resource",fe="Interval",me="Onchange",De="Associated AutoEvents",ve="no associated AutoEvents",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],[4,"ngIf"],[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["data-testid","device-list-refresh-btn",1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],c,["type","button","routerLink","../add-device",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],t,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],_,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],o,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],s,a,g,I,p,m,O,v,M,x,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],h,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],N,[1,"page-item"],se,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],ae,[1,"modal-body"],le,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],re,["type","button",1,"btn","btn-danger",3,"click"],Ee,[1,"mr-1"],de,[1,"text-danger","mr-1"],Te,ge,Ce,Ae,[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"fa","fa-calendar-check-o","font-weight-bolder"],["routerLink","../../device-profile-center",3,"queryParams"],["routerLink","../../device-service-list"],[1,"badge","badge-success"],[1,"badge","badge-danger"],[4,"ngIf","ngIfElse"],["noAutoEvents",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"text-primary","mx-2","font-weight-bold"],pe,[1,"card-body","p-0"],ue,fe,me,[4,"ngFor","ngForOf"],[1,"badge","badge-secondary","badge-pill"],[1,""],De,[1,"card-body","text-center"],[1,"text-warning"],ve,[3,"deviceName"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.YNc(3,Oe,7,1,"span",3),e.YNc(4,Ve,7,1,"span",3),e.YNc(5,Le,2,0,"span",3),e.qZA(),e.TgZ(6,"div",4),e.TgZ(7,"div",5),e.TgZ(8,"div",6),e.TgZ(9,"button",7),e.NdJ("click",function(){return _.refresh()}),e.TgZ(10,"span"),e._UZ(11,"i",8),e.TgZ(12,"span"),e.SDv(13,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"button",10),e.TgZ(15,"span"),e._UZ(16,"i",11),e.TgZ(17,"span"),e.SDv(18,12),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"button",13),e.NdJ("click",function(){return _.edit()}),e.TgZ(20,"span"),e._UZ(21,"i",14),e.TgZ(22,"span"),e.SDv(23,15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"button",16),e.NdJ("click",function(){return _.deleteConfirm()}),e.TgZ(25,"span"),e._UZ(26,"i",17),e.TgZ(27,"span"),e.SDv(28,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"div",19),e.TgZ(30,"table",20),e.TgZ(31,"thead",21),e.TgZ(32,"tr"),e.TgZ(33,"th",22),e.TgZ(34,"input",23),e.NdJ("click",function(s){return _.selectAll(s)}),e.qZA(),e.qZA(),e.TgZ(35,"th",22),e.SDv(36,24),e.qZA(),e.TgZ(37,"th",22),e.SDv(38,25),e.qZA(),e.TgZ(39,"th",22),e.SDv(40,26),e.qZA(),e.TgZ(41,"th",22),e.SDv(42,27),e.qZA(),e.TgZ(43,"th",22),e.SDv(44,28),e.qZA(),e.TgZ(45,"th",22),e.SDv(46,29),e.qZA(),e.TgZ(47,"th",22),e.SDv(48,30),e.qZA(),e.TgZ(49,"th",22),e.SDv(50,31),e.qZA(),e.TgZ(51,"th",22),e.SDv(52,32),e.qZA(),e.TgZ(53,"th",22),e.SDv(54,33),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"tbody"),e.YNc(56,we,32,21,"tr",34),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(57,"div",35),e.TgZ(58,"nav",36),e.TgZ(59,"ul",37),e.TgZ(60,"li",38),e.TgZ(61,"span",39),e.SDv(62,40),e.qZA(),e.qZA(),e.TgZ(63,"li",41),e.TgZ(64,"select",42),e.NdJ("ngModelChange",function(s){return _.pageLimit=s})("ngModelChange",function(){return _.onPageSelected()}),e.TgZ(65,"option",43),e._uU(66,"5"),e.qZA(),e.TgZ(67,"option",44),e._uU(68,"10"),e.qZA(),e.TgZ(69,"option",45),e._uU(70,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(71,"li",46),e.TgZ(72,"button",47),e.NdJ("click",function(){return _.prePage()}),e._UZ(73,"i",48),e.TgZ(74,"span"),e.SDv(75,49),e.qZA(),e.qZA(),e.qZA(),e.TgZ(76,"li",50),e.TgZ(77,"button",47),e.NdJ("click",function(){return _.nextPage()}),e.TgZ(78,"span"),e.SDv(79,51),e.qZA(),e._UZ(80,"i",52),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(81,Fe,4,2,"div",3),e.YNc(82,ke,2,1,"div",3),e.TgZ(83,"div",53),e.TgZ(84,"div",54),e.TgZ(85,"div",55),e.TgZ(86,"div",56),e.TgZ(87,"h5",57),e._UZ(88,"i",58),e.TgZ(89,"span"),e.SDv(90,59),e.qZA(),e.qZA(),e.qZA(),e.TgZ(91,"div",60),e.SDv(92,61),e.qZA(),e.TgZ(93,"div",62),e.TgZ(94,"button",63),e.SDv(95,64),e.qZA(),e.TgZ(96,"button",65),e.NdJ("click",function(){return _.delete()}),e.SDv(97,66),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngIf",""!==_.associatedSvcName),e.xp6(1),e.Q6J("ngIf",""!==_.associatedProfileName),e.xp6(1),e.Q6J("ngIf",""===_.associatedProfileName&&""===_.associatedSvcName),e.xp6(14),e.Q6J("disabled",1!==_.selectedDevice.length),e.xp6(5),e.Q6J("disabled",0===_.selectedDevice.length),e.xp6(10),e.Q6J("checked",_.isCheckedAll()),e.xp6(22),e.Q6J("ngForOf",_.deviceList),e.xp6(8),e.Q6J("ngModel",_.pageLimit),e.xp6(8),e.Q6J("disabled",1===_.pagination),e.xp6(5),e.Q6J("disabled",_.pageLimit>_.deviceList.length),e.xp6(4),e.Q6J("ngIf",_.specialFeatureName===_.FEATURE_AUTOEVENT),e.xp6(1),e.Q6J("ngIf",_.specialFeatureName===_.FEATURE_COMMAND))},directives:[n.O5,C.rH,n.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,n.RF,n.n9,n.ED,C.yS,Ze],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();class ze{constructor(){this.Schema="",this.Host="",this.Port="",this.User="",this.Password="",this.ClientId="",this.CommandTopic=""}}class Ye{constructor(){this.Address="",this.Port="",this.UnitID="",this.Timeout="",this.IdleTimeout=""}}class Qe{constructor(){this.Address="",this.UnitID="",this.BaudRate="",this.DataBits="",this.StopBits="",this.Parity="",this.Timeout="",this.IdleTimeout=""}}class Be{constructor(){this.Address="",this.Port=""}}class We{constructor(){this.Address="",this.Port="",this.MACAddress=""}}class He{constructor(){this.host="",this.port=""}}function je(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",10),e.TgZ(1,"span",11),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_BUILT_IN)}),e._UZ(2,"i",12),e.TgZ(3,"span"),e.SDv(4,13),e.qZA(),e.qZA(),e.TgZ(5,"span",14),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_CUSTOM)}),e._UZ(6,"i",12),e.TgZ(7,"span"),e.SDv(8,15),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.ekj("badge-primary",t.protocolTemplateMode===t.TEMPLATE_BUILT_IN)("badge-secondary",t.protocolTemplateMode!==t.TEMPLATE_BUILT_IN),e.xp6(1),e.ekj("fa-check-square",t.protocolTemplateMode===t.TEMPLATE_BUILT_IN),e.xp6(3),e.ekj("badge-primary",t.protocolTemplateMode===t.TEMPLATE_CUSTOM)("badge-secondary",t.protocolTemplateMode!==t.TEMPLATE_CUSTOM),e.xp6(1),e.ekj("fa-check-square",t.protocolTemplateMode===t.TEMPLATE_CUSTOM)}}function Ke(i,c){1&i&&e._UZ(0,"div")}function et(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",34),e.TgZ(2,"div",35),e.TgZ(3,"div",36),e.TgZ(4,"span",37),e.SDv(5,38),e.qZA(),e.qZA(),e._UZ(6,"input",39),e.qZA(),e.TgZ(7,"div",40),e._UZ(8,"i",41),e.qZA(),e.TgZ(9,"div",35),e.TgZ(10,"div",36),e.TgZ(11,"span",37),e.SDv(12,42),e.qZA(),e.qZA(),e.TgZ(13,"input",43),e.NdJ("ngModelChange",function(o){const a=e.CHM(t).$implicit;return e.oxw(4).builtinProtocolTemplateSelected[a]=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit,_=e.oxw(4);e.xp6(6),e.Q6J("value",t),e.xp6(7),e.Q6J("ngModel",_.builtinProtocolTemplateSelected[t])}}function tt(i,c){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,et,14,2,"div",33),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.builtinProtocolTemplateProperties)}}function _t(i,c){1&i&&(e.TgZ(0,"h5",48),e._UZ(1,"i",49),e.TgZ(2,"span"),e.SDv(3,50),e.qZA(),e.qZA())}function it(i,c){if(1&i&&(e.TgZ(0,"div"),e._UZ(1,"span",44),e.TgZ(2,"span",45),e.SDv(3,46),e.qZA(),e.qZA(),e.YNc(4,_t,4,0,"h5",47)),2&i){const t=e.oxw(3);e.xp6(4),e.Q6J("ngIf",0===t.builtinProtocolTemplateProperties.length&&t.builtinProtocolName)}}function nt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.TgZ(2,"form"),e.TgZ(3,"div",18),e.TgZ(4,"label"),e.SDv(5,19),e.qZA(),e.TgZ(6,"select",20),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).builtinProtocolName=o})("ngModelChange",function(){return e.CHM(t),e.oxw(2).onSelectBuiltinProtocolTemplate()}),e.TgZ(7,"option",21),e._uU(8,"device-mqtt"),e.qZA(),e.TgZ(9,"option",22),e._uU(10,"device-rest"),e.qZA(),e.TgZ(11,"option",23),e._uU(12,"device-virtual"),e.qZA(),e.TgZ(13,"option",24),e._uU(14,"device-modbus-tcp"),e.qZA(),e.TgZ(15,"option",25),e._uU(16,"device-modbus-rtu"),e.qZA(),e.TgZ(17,"option",26),e._uU(18,"device-onvif-camera"),e.qZA(),e.TgZ(19,"option",27),e._uU(20,"device-rfid-llrp"),e.qZA(),e.qZA(),e.TgZ(21,"div",28),e.TgZ(22,"small"),e.SDv(23,29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",30),e.YNc(25,tt,2,1,"div",31),e.YNc(26,it,5,1,"ng-template",null,32,e.W1O),e.qZA(),e.qZA()}if(2&i){const t=e.MAs(27),_=e.oxw(2);e.xp6(6),e.ekj("is-invalid",!_.builtinProtocolName)("is-valid",_.builtinProtocolName),e.Q6J("ngModel",_.builtinProtocolName),e.xp6(19),e.Q6J("ngIf",0!==_.builtinProtocolTemplateProperties.length)("ngIfElse",t)}}function ot(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",34),e.TgZ(2,"div",35),e.TgZ(3,"div",36),e.TgZ(4,"span",37),e.SDv(5,60),e.qZA(),e.qZA(),e.TgZ(6,"input",61),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.propertyName=o}),e.qZA(),e.qZA(),e.TgZ(7,"div",40),e._UZ(8,"i",41),e.qZA(),e.TgZ(9,"div",35),e.TgZ(10,"div",36),e.TgZ(11,"span",37),e.SDv(12,62),e.qZA(),e.qZA(),e.TgZ(13,"input",63),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.propertyValue=o}),e.qZA(),e.qZA(),e.TgZ(14,"div",64),e.TgZ(15,"button",65),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(3).removeCustomProtocolProperty(s)}),e._UZ(16,"i",66),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit;e.xp6(6),e.Q6J("ngModel",t.propertyName),e.xp6(7),e.Q6J("ngModel",t.propertyValue)}}function ct(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",51),e.TgZ(2,"div",18),e.TgZ(3,"label"),e.SDv(4,52),e.qZA(),e.TgZ(5,"input",53),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).customProtocolName=o})("ngModelChange",function(){return e.CHM(t),e.oxw(2).onCustomProtocolNameChange()}),e.qZA(),e.TgZ(6,"div",28),e.TgZ(7,"small"),e.SDv(8,54),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",55),e.TgZ(10,"div"),e.TgZ(11,"p",56),e._UZ(12,"span",57),e.TgZ(13,"span",58),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).addCustomProtocolProperty()}),e.SDv(14,59),e.qZA(),e.qZA(),e.qZA(),e.YNc(15,ot,17,2,"div",33),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(5),e.ekj("is-invalid",!t.customProtocolName)("is-valid",t.customProtocolName),e.Q6J("ngModel",t.customProtocolName),e.xp6(10),e.Q6J("ngForOf",t.customProtocolPropertyBearer)}}function st(i,c){if(1&i&&(e.TgZ(0,"div",0),e.TgZ(1,"div",4),e.YNc(2,je,9,12,"div",6),e.YNc(3,Ke,1,0,"div",7),e.YNc(4,nt,28,7,"ng-template",null,8,e.W1O),e.YNc(6,ct,16,6,"ng-template",null,9,e.W1O),e.qZA(),e.qZA()),2&i){const t=e.MAs(5),_=e.MAs(7),o=e.oxw();e.xp6(2),e.Q6J("ngIf",o.mode===o.MODE_ADD),e.xp6(1),e.Q6J("ngIf",o.protocolTemplateMode===o.TEMPLATE_CUSTOM)("ngIfThen",_)("ngIfElse",t)}}let K=(()=>{class i{constructor(){this.MODE_ADD="add",this.MODE_EDIT="edit",this.deviceProtocols={},this.isValid=!1,this.isValidChange=new e.vpe,this.TEMPLATE_CUSTOM="custom",this.TEMPLATE_BUILT_IN="built-in",this.customProtocolPropertyBearer=[],this.builtinProtocolTemplateProperties=[]}ngOnInit(){if(this.mode){if(this.mode==this.MODE_EDIT)return this.protocolTemplateMode=this.TEMPLATE_CUSTOM,this.extractProtocolName(),this.customProtocolName=this.protocolName?this.protocolName:"",void this.setCustomProtocolPropertysBearer();this.mode==this.MODE_ADD&&(this.protocolTemplateMode=this.TEMPLATE_BUILT_IN),this.validate()}}extractProtocolName(){!this.deviceProtocols||0===Object.keys(this.deviceProtocols).length||(this.protocolName=Object.keys(this.deviceProtocols)[0])}onSelectBuiltinProtocolTemplate(){switch(this.validate(),this.builtinProtocolName){case"mqtt":this.builtinProtocolTemplateSelected=new ze;break;case"modbus-tcp":this.builtinProtocolTemplateSelected=new Ye;break;case"modbus-rtu":this.builtinProtocolTemplateSelected=new Qe;break;case"other":this.builtinProtocolTemplateSelected=new Be;break;case"other-rest":this.builtinProtocolTemplateSelected={};break;case"Onvif":this.builtinProtocolTemplateSelected=new We;break;case"tcp":this.builtinProtocolTemplateSelected=new He;break;default:this.builtinProtocolTemplateSelected={}}this.builtinProtocolTemplateProperties=Object.keys(this.builtinProtocolTemplateSelected)}changeProtocolTemplateMode(t){this.protocolTemplateMode=t,this.validate()}onCustomProtocolNameChange(){this.validate()}setCustomProtocolPropertysBearer(){if(this.customProtocolName)for(const[t,_]of Object.entries(this.deviceProtocols[this.customProtocolName]))this.customProtocolPropertyBearer.push({propertyName:t,propertyValue:_})}addCustomProtocolProperty(){this.customProtocolPropertyBearer.push({propertyName:"",propertyValue:""})}removeCustomProtocolProperty(t){this.customProtocolPropertyBearer.splice(this.customProtocolPropertyBearer.indexOf(t),1)}getDeviceProtocols(){if(this.deviceProtocols={},this.protocolTemplateMode===this.TEMPLATE_BUILT_IN)this.deviceProtocols[this.builtinProtocolName]=Object.assign({},this.builtinProtocolTemplateSelected);else{let t={};this.customProtocolPropertyBearer.forEach(_=>{t[_.propertyName]=_.propertyValue}),this.deviceProtocols[this.customProtocolName]=t}return this.deviceProtocols}validate(){switch(this.isValid=!0,this.protocolTemplateMode){case this.TEMPLATE_BUILT_IN:this.builtinProtocolName||(this.isValid=!1);break;default:this.customProtocolName||(this.isValid=!1)}this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-protocol"]],inputs:{mode:"mode",deviceProtocols:"deviceProtocols",isValid:"isValid"},outputs:{isValidChange:"isValidChange"},decls:7,vars:1,consts:function(){let c,t,_,o,s,a,g,I,p,m,O,v,M,x;return c="Device Protocol",t="Avaliable Protocol Templates",_="Custom Protocol Templates",o="Protocol Name",s="the protocol name can't be empty!",a="PropertyName",g="PropertyVaule",I=" all built-in protocol templates refer to the device service released by edgex, such as device-virtual, device-rest, device-mqtt, device-modbus ",p="this device service doesn't need to set protocol properties",m="Protocol Name",O="the protocol name can't be empty!",v="Add Protocol Property",M="PropertyName",x="PropertyValue",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],c,[1,"card-body"],["class","card",4,"ngIf"],["class","mb-2",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["builtinProtocolTemplate",""],["customProtocolTemplate",""],[1,"mb-2"],["role","button",1,"user-select-none","badge","font-weight-bold","mr-3",3,"click"],[1,"fa","fa-square-o","mr-1"],t,["role","button",1,"user-select-none","badge","font-weight-bold",3,"click"],_,[1,"row","border","border-secondary","p-2","rounded-lg","mx-1"],[1,"col-md-2","border-right","border-info"],[1,"form-group"],o,["type","text","name","builtinProtocolName","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","mqtt"],["value","other-rest"],["value","other"],["value","modbus-tcp"],["value","modbus-rtu"],["value","Onvif"],["value","tcp"],[1,"invalid-feedback"],s,[1,"col-md-10"],[4,"ngIf","ngIfElse"],["noBuiltinProperties",""],[4,"ngFor","ngForOf"],[1,"form-inline","mb-1"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],a,["type","text","disabled","",1,"form-control",2,"width","300px",3,"value"],[1,"form-group","mx-2"],[1,"fa","fa-long-arrow-right"],g,["type","text","name","property",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"fa","fa-info-circle","fa-lg","text-success","font-weight-bold","mr-1"],[1,"text-muted"],I,["class","text-warning",4,"ngIf"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],p,[1,"col-md-2","col-lg-2","border-right","border-secondary"],m,["type","text","name","customProtocolName",1,"form-control",3,"ngModel","ngModelChange"],O,[1,"col-md-10","col-lg-10"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],v,M,["type","text","name","propertyName",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],x,["type","text","name","PropertyValue",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.YNc(6,st,8,4,"div",5),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",_.mode))},directives:[n.O5,l._Y,l.JL,l.F,l.EJ,l.Q7,l.JJ,l.On,l.YN,l.Kr,n.sg,l.Fj],styles:[""]}),i})();var ee=T(4889);function at(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",35),e.NdJ("click",function(o){const a=e.CHM(t).$implicit;return e.oxw().selectOneSvc(o,a.name)}),e.qZA(),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.ALo(15,"date"),e.qZA(),e.TgZ(16,"td"),e._uU(17),e.ALo(18,"date"),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit,_=e.oxw();e.ekj("table-active",_.isSvcChecked(t.name)),e.xp6(2),e.Q6J("checked",_.isSvcChecked(t.name)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.description),e.xp6(2),e.Oqu(t.labels),e.xp6(2),e.Oqu(t.adminState),e.xp6(2),e.Oqu(e.xi3(15,10,t.created,"yyyy-MM-dd hh:mm:ss")),e.xp6(3),e.Oqu(e.xi3(18,13,t.modified,"yyyy-MM-dd hh:mm:ss"))}}let ne=(()=>{class i{constructor(t){this.metaSvc=t,this.singleDeviceSvcSelectedEvent=new e.vpe,this.deviceServiceList=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllDeviceSvcPagination()}findAllDeviceSvcPagination(){this.metaSvc.findAllDeviceServicesPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.deviceServiceList=t.services})}onSingleDeviceSvcSelectedEmitter(){this.singleDeviceSvcSelectedEvent.emit(this.deviceSvcSelected)}isSvcChecked(t){var _;return(null===(_=this.deviceSvcSelected)||void 0===_?void 0:_.name)===t}selectOneSvc(t,_){let s=this;t.target.checked?this.deviceServiceList.forEach(function(a){a.name===_&&(s.deviceSvcSelected=a)}):this.deviceSvcSelected=void 0,this.onSingleDeviceSvcSelectedEmitter()}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceSvcPagination()}prePage(){this.setPagination(-1),this.findAllDeviceSvcPagination()}nextPage(){this.setPagination(1),this.findAllDeviceSvcPagination()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-service-list"]],inputs:{deviceSvcSelected:"deviceSvcSelected"},outputs:{singleDeviceSvcSelectedEvent:"singleDeviceSvcSelectedEvent"},decls:52,vars:4,consts:function(){let c,t,_,o,s,a,g,I,p,m,O;return c="Device Service List",t="ID",_="Name",o="Description",s="Labels",a="AdminState",g="Created",I="Modified",p="items per page",m="Previous",O="Next",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","mr-2","text-danger"],c,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],t,_,o,s,a,g,I,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],p,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],m,[1,"page-item"],O,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"table",6),e.TgZ(8,"thead",7),e.TgZ(9,"tr"),e.TgZ(10,"th",8),e._uU(11,"#"),e.qZA(),e.TgZ(12,"th",8),e.SDv(13,9),e.qZA(),e.TgZ(14,"th",8),e.SDv(15,10),e.qZA(),e.TgZ(16,"th",8),e.SDv(17,11),e.qZA(),e.TgZ(18,"th",8),e.SDv(19,12),e.qZA(),e.TgZ(20,"th",8),e.SDv(21,13),e.qZA(),e.TgZ(22,"th",8),e.SDv(23,14),e.qZA(),e.TgZ(24,"th",8),e.SDv(25,15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"tbody"),e.YNc(27,at,19,16,"tr",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",17),e.TgZ(29,"nav",18),e.TgZ(30,"ul",19),e.TgZ(31,"li",20),e.TgZ(32,"span",21),e.SDv(33,22),e.qZA(),e.qZA(),e.TgZ(34,"li",23),e.TgZ(35,"select",24),e.NdJ("ngModelChange",function(s){return _.pageLimit=s})("ngModelChange",function(){return _.onPageSelected()}),e.TgZ(36,"option",25),e._uU(37,"5"),e.qZA(),e.TgZ(38,"option",26),e._uU(39,"10"),e.qZA(),e.TgZ(40,"option",27),e._uU(41,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"li",28),e.TgZ(43,"button",29),e.NdJ("click",function(){return _.prePage()}),e._UZ(44,"i",30),e.TgZ(45,"span"),e.SDv(46,31),e.qZA(),e.qZA(),e.qZA(),e.TgZ(47,"li",32),e.TgZ(48,"button",29),e.NdJ("click",function(){return _.nextPage()}),e.TgZ(49,"span"),e.SDv(50,33),e.qZA(),e._UZ(51,"i",34),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(27),e.Q6J("ngForOf",_.deviceServiceList),e.xp6(8),e.Q6J("ngModel",_.pageLimit),e.xp6(8),e.Q6J("disabled",1===_.pagination),e.xp6(5),e.Q6J("disabled",_.pageLimit>_.deviceServiceList.length))},directives:[n.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr],pipes:[n.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();var _e=T(2822);function lt(i,c){if(1&i&&(e.TgZ(0,"option",37),e._uU(1),e.qZA()),2&i){const t=c.$implicit;e.s9C("value",t),e.xp6(1),e.Oqu(t)}}function rt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",10),e.TgZ(1,"div",4),e.TgZ(2,"form"),e.TgZ(3,"div",11),e.TgZ(4,"label",12),e.SDv(5,13),e.qZA(),e.TgZ(6,"div",14),e.TgZ(7,"div",15),e.TgZ(8,"input",16),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.interval=o})("ngModelChange",function(){return e.CHM(t),e.oxw().onValueChange()}),e.qZA(),e.TgZ(9,"div",17),e.TgZ(10,"select",18),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.unit=o})("ngModelChange",function(){return e.CHM(t),e.oxw().onValueChange()}),e.TgZ(11,"option",19),e._uU(12,"millisecond"),e.qZA(),e.TgZ(13,"option",20),e._uU(14,"second"),e.qZA(),e.TgZ(15,"option",21),e._uU(16,"minute"),e.qZA(),e.TgZ(17,"option",22),e._uU(18,"hour"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",23),e.SDv(20,24),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",25),e.TgZ(22,"label",12),e.SDv(23,26),e.qZA(),e.TgZ(24,"div",14),e.TgZ(25,"select",27),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.onChange=o})("ngModelChange",function(){return e.CHM(t),e.oxw().onValueChange()}),e.TgZ(26,"option",28),e._uU(27,"true"),e.qZA(),e.TgZ(28,"option",29),e._uU(29,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",25),e.TgZ(31,"label",12),e.SDv(32,30),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"select",31),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.resource=o})("ngModelChange",function(){return e.CHM(t),e.oxw().onValueChange()}),e.YNc(35,lt,2,2,"option",32),e.qZA(),e.TgZ(36,"div",23),e.SDv(37,33),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"button",34),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().removeAutoEvent(s)}),e._UZ(39,"i",35),e.TgZ(40,"span"),e.SDv(41,36),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit,_=e.oxw();e.xp6(8),e.ekj("is-invalid",!_.eventIntervalNumType(t.interval))("is-valid",_.eventIntervalNumType(t.interval)),e.Q6J("ngModel",t.interval),e.xp6(2),e.Q6J("ngModel",t.unit),e.xp6(15),e.Q6J("ngModel",t.onChange),e.xp6(9),e.ekj("is-invalid",""===t.resource)("is-valid",""!==t.resource),e.Q6J("ngModel",t.resource),e.xp6(1),e.Q6J("ngForOf",_.autoEventResourceNameSet)}}let oe=(()=>{class i{constructor(){this.autoEvents=[],this.autoEventsChange=new e.vpe,this.isValid=!1,this.isValidChange=new e.vpe,this.autoEventDecoratorBearer=[],this.autoEventResourceNameSet=[]}ngOnInit(){}ngOnChanges(){this.resetAutoEventDecoratorBearer(),this.setAutoEventDecorator(this.autoEvents),this.setupAutoEventResourceNameSet(this.deviceProfile),this.resumeOriginalAutoEvents()}onValueChange(){this.resumeOriginalAutoEvents()}resetAutoEventDecoratorBearer(){this.autoEventDecoratorBearer.splice(0,this.autoEventDecoratorBearer.length)}addAutoEvent(){this.autoEventDecoratorBearer.push({interval:"",onChange:!1,resource:"",unit:"ms"}),this.resumeOriginalAutoEvents()}removeAutoEvent(t){this.autoEventDecoratorBearer.splice(this.autoEventDecoratorBearer.indexOf(t),1),this.resumeOriginalAutoEvents()}setupAutoEventResourceNameSet(t){!t||(this.autoEventResourceNameSet.splice(0,this.autoEventResourceNameSet.length),t.deviceResources.forEach((_,o)=>{this.autoEventResourceNameSet.push(_.name)}),t.deviceCommands.forEach((_,o)=>{this.autoEventResourceNameSet.push(_.name)}))}eventIntervalNumType(t){return!isNaN(t)&&parseFloat(t)===parseInt(t)}setAutoEventDecorator(t){!t||t.forEach(_=>{let o=0;-1!==_.interval.indexOf("ms")?o=_.interval.indexOf("ms"):-1!==_.interval.indexOf("s")?o=_.interval.indexOf("s"):-1!==_.interval.indexOf("m")?o=_.interval.indexOf("m"):-1!==_.interval.indexOf("h")&&(o=_.interval.indexOf("h")),this.autoEventDecoratorBearer.push({interval:_.interval.slice(0,o),onChange:!!_.onChange&&_.onChange,resource:_.sourceName,unit:_.interval.substring(o)})})}resumeOriginalAutoEvents(){this.autoEvents?this.autoEvents.splice(0,this.autoEvents.length):this.autoEvents=[],this.autoEventDecoratorBearer.forEach(t=>{this.autoEvents.push({interval:`${t.interval}${t.unit}`,onChange:!!t.onChange,sourceName:t.resource})}),this.validate(),this.autoEventsChange.emit(this.autoEvents)}validate(){this.isValid=!0,0!==this.autoEventDecoratorBearer.length&&this.autoEventDecoratorBearer.forEach(t=>{this.eventIntervalNumType(t.interval)&&""!==t.resource||(this.isValid=!1)}),this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-auto-event"]],inputs:{autoEvents:"autoEvents",deviceProfile:"deviceProfile",isValid:"isValid"},outputs:{autoEventsChange:"autoEventsChange",isValidChange:"isValidChange"},features:[e.TTD],decls:11,vars:1,consts:function(){let c,t,_,o,s,a,g,I;return c="AutoEvents",t="Add More AutoEvent",_="Interval",o=" can only be a pure integer number ",s="onchange",a="resource",g=" resource can't be empty ",I="Remove",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],c,[1,"card-body"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],t,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"form-group","row","has-validation"],[1,"col-md-2","col-form-label"],_,[1,"col-md-10"],[1,"input-group","mb-3",2,"width","250px"],["type","text","name","interval","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["name","eventIntervalUnit","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","ms"],["value","s"],["value","m"],["value","h"],[1,"invalid-feedback"],o,[1,"form-group","row"],s,["name","onchange",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],["value","true"],["value","false"],a,["name","resource","required","",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],g,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],I,[3,"value"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"p",5),e._UZ(7,"span",6),e.TgZ(8,"span",7),e.NdJ("click",function(){return _.addAutoEvent()}),e.SDv(9,8),e.qZA(),e.qZA(),e.YNc(10,rt,42,13,"div",9),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("ngForOf",_.autoEventDecoratorBearer))},directives:[n.sg,l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr],styles:[""]}),i})();function Et(i,c){1&i&&e._UZ(0,"i",33)}function dt(i,c){1&i&&e._UZ(0,"i",33)}function Tt(i,c){1&i&&e._UZ(0,"i",33)}function gt(i,c){1&i&&e._UZ(0,"i",33)}function Ct(i,c){1&i&&e._UZ(0,"i",33)}function At(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){return e.CHM(t),e.oxw().previous()}),e._UZ(1,"i",35),e.TgZ(2,"span"),e.SDv(3,36),e.qZA(),e.qZA()}}function pt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){return e.CHM(t),e.oxw().next()}),e.TgZ(1,"span"),e.SDv(2,38),e.qZA(),e._UZ(3,"i",39),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.stepStateLock())}}function ut(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().submit()}),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.stepStateLock())}}function ft(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",43),e.TgZ(1,"app-device-service-list",44),e.NdJ("singleDeviceSvcSelectedEvent",function(o){return e.CHM(t),e.oxw().onSingleDeviceSvcSelected(o)}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("deviceSvcSelected",t.selectedSvc)}}function mt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",43),e.TgZ(1,"app-device-profile-list",45),e.NdJ("singleProfileSelectedEvent",function(o){return e.CHM(t),e.oxw().onSingleProfileSelected(o)}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("singleProfileSelected",t.selectedProfile)("enableSelectAll",!1)("toolbars",!1)("associatedDeviceColumn",!1)}}function Dt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"form",46),e.TgZ(1,"div",47),e.TgZ(2,"label",48),e.SDv(3,49),e.qZA(),e.TgZ(4,"div",50),e.TgZ(5,"input",51),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().newDevice.name=o}),e.qZA(),e.TgZ(6,"div",52),e.TgZ(7,"small"),e.SDv(8,53),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",54),e.TgZ(10,"label",55),e.SDv(11,56),e.qZA(),e.TgZ(12,"div",50),e.TgZ(13,"input",57),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().newDevice.description=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",54),e.TgZ(15,"label",58),e.SDv(16,59),e.qZA(),e.TgZ(17,"div",50),e.TgZ(18,"input",60),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().deviceLabels=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",54),e.TgZ(20,"label",61),e.SDv(21,62),e.qZA(),e.TgZ(22,"div",50),e.TgZ(23,"select",63),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().newDevice.adminState=o}),e.TgZ(24,"option",64),e._uU(25,"UNLOCKED"),e.qZA(),e.TgZ(26,"option",65),e._uU(27,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(5),e.ekj("is-invalid",!t.newDevice.name)("is-valid",t.newDevice.name),e.Q6J("ngModel",t.newDevice.name),e.xp6(8),e.Q6J("ngModel",t.newDevice.description),e.xp6(5),e.Q6J("ngModel",t.deviceLabels),e.xp6(5),e.Q6J("ngModel",t.newDevice.adminState)}}function vt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",30),e.TgZ(1,"div",1),e.TgZ(2,"span",66),e.SDv(3,67),e.qZA(),e.qZA(),e.TgZ(4,"div",31),e.TgZ(5,"app-device-auto-event",68),e.NdJ("autoEventsChange",function(o){return e.CHM(t),e.oxw().newDevice.autoEvents=o})("isValidChange",function(o){return e.CHM(t),e.oxw().isAutoEventsValid=o}),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(5),e.Q6J("deviceProfile",t.selectedProfile)("autoEvents",t.newDevice.autoEvents)("isValid",t.isAutoEventsValid)}}let St=(()=>{class i{constructor(t,_,o,s,a){this.metaSvc=t,this.msgSvc=_,this.errorSvc=o,this.router=s,this.route=a,this.deviceLabels="",this.currentStep=0,this.selectedClass="text-white rounded px-2 bg-success font-weight-bold",this.noSelectedClass="text-white rounded px-2 bg-secondary font-weight-bold",this.isProtocolValid=!1,this.isAutoEventsValid=!1,this.newDevice={adminState:"UNLOCKED",operatingState:"UP"}}ngOnInit(){}onSingleProfileSelected(t){this.selectedProfile=t}onSingleDeviceSvcSelected(t){this.selectedSvc=t}stepStateLock(){switch(this.currentStep){case 0:return void 0===this.selectedSvc;case 1:return void 0===this.selectedProfile;case 2:return!this.newDevice.name;case 3:return!this.isAutoEventsValid;case 4:return!this.isProtocolValid;default:return!1}}next(){this.currentStep+=1}previous(){this.currentStep=this.currentStep-1}submit(){var t,_,o;this.newDevice.labels=null===(t=this.deviceLabels)||void 0===t?void 0:t.split(","),this.newDevice.serviceName=null===(_=this.selectedSvc)||void 0===_?void 0:_.name,this.newDevice.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.newDevice.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.addDevice(this.newDevice).subscribe(s=>{this.errorSvc.handleErrorForAPI(s)||(this.msgSvc.success("Add device",`name: ${this.newDevice.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D),e.Y36(b.e),e.Y36(ee.T),e.Y36(C.F0),e.Y36(C.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-add-device"]],viewQuery:function(t,_){if(1&t&&e.Gf(K,5),2&t){let o;e.iGM(o=e.CRH())&&(_.deviceProtocols=o.first)}},decls:54,vars:22,consts:function(){let c,t,_,o,s,a,g,I,p,m,O,v,M,x,h;return c="Add Device Wizard",t="SelectDeviceService",_="SelectDeviceProfile",o="DevicePrimary",s="CreateAutoEvent",a="CreateDeviceProtocol",g="Previous",I="Next",p="Submit",m="Name",O="the device name can't be empty!",v="Description",M="Labels",x="AdminState",h=" this step is optional, you can skip it then set it later in edit mode.",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-lightbulb-o","fa-lg","mr-2","text-danger"],[1,"text-secondary"],c,[1,"card-header","py-2"],["aria-label","breadcrumb",1,"mb-0","p-0"],[1,"breadcrumb","p-1","mb-0","bg-light"],[1,"breadcrumb-item"],[3,"ngClass"],t,["class","fa fa-check ml-1",4,"ngIf"],_,o,s,[1,"breadcrumb-item","active"],a,[1,"card-header","py-1"],["class","btn btn-info btn-sm",3,"click",4,"ngIf"],["class","btn btn-primary btn-sm float-right",3,"disabled","click",4,"ngIf","ngIfElse"],["stepDone",""],[1,"card-body","p-0"],[3,"ngSwitch"],[3,"ngSwitchCase"],["SelectDeviceService",""],["SelectDeviceProfile",""],["DevicePrimary",""],["CreateAutoEvent",""],["CreateDeviceProtocol",""],[1,"card","border-0"],[1,"card-body"],[3,"mode","isValid","isValidChange"],[1,"fa","fa-check","ml-1"],[1,"btn","btn-info","btn-sm",3,"click"],[1,"fa","fa-long-arrow-left","mr-1"],g,[1,"btn","btn-primary","btn-sm","float-right",3,"disabled","click"],I,[1,"fa","fa-long-arrow-right","ml-1"],[1,"btn","btn-success","btn-sm","ml-4","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],p,[1,"p-2"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"singleProfileSelected","enableSelectAll","toolbars","associatedDeviceColumn","singleProfileSelectedEvent"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","deviceName","required","",1,"col-md-2","col-form-label"],m,[1,"col-md-10"],["type","text","id","validationDeviceNameFeedback","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationDeviceNameFeedback",1,"invalid-feedback"],O,[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],v,["type","text","name","deviceDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","deviceLabels",1,"col-md-2","col-form-label"],M,["type","text","name","deviceLabels","placeholder","Multiple Labels are separated by commas: label1,label2,label3",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],x,["name","deviceAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],[1,"fa","fa-info-circle","text-warning","font-weight-bold"],h,[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(t,_){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"nav",7),e.TgZ(8,"ol",8),e.TgZ(9,"li",9),e.TgZ(10,"span",10),e.TgZ(11,"span"),e.SDv(12,11),e.qZA(),e.YNc(13,Et,1,0,"i",12),e.qZA(),e.qZA(),e.TgZ(14,"li",9),e.TgZ(15,"span",10),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.YNc(18,dt,1,0,"i",12),e.qZA(),e.qZA(),e.TgZ(19,"li",9),e.TgZ(20,"span",10),e.TgZ(21,"span"),e.SDv(22,14),e.qZA(),e.YNc(23,Tt,1,0,"i",12),e.qZA(),e.qZA(),e.TgZ(24,"li",9),e.TgZ(25,"span",10),e.TgZ(26,"span"),e.SDv(27,15),e.qZA(),e.YNc(28,gt,1,0,"i",12),e.qZA(),e.qZA(),e.TgZ(29,"li",16),e.TgZ(30,"span",10),e.TgZ(31,"span"),e.SDv(32,17),e.qZA(),e.YNc(33,Ct,1,0,"i",12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",18),e.YNc(35,At,4,0,"button",19),e.YNc(36,pt,4,1,"button",20),e.YNc(37,ut,4,1,"ng-template",null,21,e.W1O),e.qZA(),e.TgZ(39,"div",22),e.TgZ(40,"div",23),e.YNc(41,ft,2,1,"ng-template",24,25,e.W1O),e.YNc(43,mt,2,4,"ng-template",24,26,e.W1O),e.YNc(45,Dt,28,8,"ng-template",24,27,e.W1O),e.YNc(47,vt,6,3,"ng-template",24,28,e.W1O),e.TgZ(49,"div",null,29),e.TgZ(51,"div",30),e.TgZ(52,"div",31),e.TgZ(53,"app-device-protocol",32),e.NdJ("isValidChange",function(s){return _.isProtocolValid=s}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(38);e.xp6(10),e.Q6J("ngClass",_.currentStep>=0?_.selectedClass:_.noSelectedClass),e.xp6(3),e.Q6J("ngIf",_.currentStep>=1),e.xp6(2),e.Q6J("ngClass",_.currentStep>=1?_.selectedClass:_.noSelectedClass),e.xp6(3),e.Q6J("ngIf",_.currentStep>=2),e.xp6(2),e.Q6J("ngClass",_.currentStep>=2?_.selectedClass:_.noSelectedClass),e.xp6(3),e.Q6J("ngIf",_.currentStep>=3),e.xp6(2),e.Q6J("ngClass",_.currentStep>=3?_.selectedClass:_.noSelectedClass),e.xp6(3),e.Q6J("ngIf",_.currentStep>=4),e.xp6(2),e.Q6J("ngClass",_.currentStep>=4?_.selectedClass:_.noSelectedClass),e.xp6(3),e.Q6J("ngIf",_.currentStep>=5),e.xp6(2),e.Q6J("ngIf",_.currentStep),e.xp6(1),e.Q6J("ngIf",4>_.currentStep)("ngIfElse",o),e.xp6(4),e.Q6J("ngSwitch",_.currentStep),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(2),e.Q6J("ngSwitchCase",1),e.xp6(2),e.Q6J("ngSwitchCase",2),e.xp6(2),e.Q6J("ngSwitchCase",3),e.xp6(2),e.Udp("display",4===_.currentStep?"":"none"),e.xp6(4),e.Q6J("mode","add")("isValid",_.isProtocolValid)}},directives:[n.mk,n.O5,n.RF,n.n9,K,ne,_e.f,l._Y,l.JL,l.F,l.Fj,l.JJ,l.On,l.EJ,l.YN,l.Kr,oe],styles:['.breadcrumb[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:before{color:inherit;font-weight:inherit;content:">>";padding:0 5px}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}']}),i})();function It(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"div",2),e._UZ(2,"i",3),e.TgZ(3,"span",4),e.SDv(4,5),e.qZA(),e.TgZ(5,"span",6),e._uU(6),e.qZA(),e.TgZ(7,"button",7),e.NdJ("click",function(){return e.CHM(t),e.oxw().save()}),e.TgZ(8,"span"),e._UZ(9,"i",8),e.TgZ(10,"span"),e.SDv(11,9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",10),e.TgZ(13,"div",11),e.TgZ(14,"div",2),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.TgZ(18,"div",10),e.TgZ(19,"form"),e.TgZ(20,"div",14),e.TgZ(21,"label",15),e.SDv(22,16),e.qZA(),e.TgZ(23,"div",17),e.TgZ(24,"input",18),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().device.name=o}),e.qZA(),e.TgZ(25,"div",19),e.SDv(26,20),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",14),e.TgZ(28,"label",15),e.SDv(29,21),e.qZA(),e.TgZ(30,"div",17),e.TgZ(31,"input",22),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().device.description=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"div",14),e.TgZ(33,"label",15),e.SDv(34,23),e.qZA(),e.TgZ(35,"div",17),e.TgZ(36,"input",24),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().deviceLabels=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"div",14),e.TgZ(38,"label",25),e.SDv(39,26),e.qZA(),e.TgZ(40,"div",17),e.TgZ(41,"select",27),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().device.adminState=o}),e.TgZ(42,"option",28),e._uU(43,"UNLOCKED"),e.qZA(),e.TgZ(44,"option",29),e._uU(45,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",14),e.TgZ(47,"label",30),e.SDv(48,31),e.qZA(),e.TgZ(49,"div",17),e._UZ(50,"input",32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",33),e.TgZ(52,"app-device-service-list",34),e.NdJ("singleDeviceSvcSelectedEvent",function(o){return e.CHM(t),e.oxw().onSingleDeviceSvcSelected(o)}),e.qZA(),e.qZA(),e.TgZ(53,"div",33),e.TgZ(54,"app-device-profile-list",35),e.NdJ("singleProfileSelectedEvent",function(o){return e.CHM(t),e.oxw().onSingleProfileSelected(o)}),e.qZA(),e.qZA(),e.TgZ(55,"div",33),e.TgZ(56,"app-device-protocol",36),e.NdJ("isValidChange",function(o){return e.CHM(t),e.oxw().isProtocolValid=o}),e.qZA(),e.qZA(),e.TgZ(57,"div",33),e.TgZ(58,"app-device-auto-event",37),e.NdJ("autoEventsChange",function(o){return e.CHM(t),e.oxw().device.autoEvents=o})("isValidChange",function(o){return e.CHM(t),e.oxw().isAutoEventsValid=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(6),e.Oqu(t.device.name),e.xp6(1),e.Q6J("disabled",t.validateBeforeSave()),e.xp6(17),e.ekj("is-invalid",""===t.device.name),e.Q6J("ngModel",t.device.name),e.xp6(7),e.Q6J("ngModel",t.device.description),e.xp6(5),e.Q6J("ngModel",t.deviceLabels),e.xp6(5),e.Q6J("ngModel",t.device.adminState),e.xp6(9),e.Q6J("value",t.device.operatingState),e.xp6(2),e.Q6J("deviceSvcSelected",t.selectedSvc),e.xp6(2),e.Q6J("enableSelectAll",!1)("toolbars",!1)("singleProfileSelected",t.selectedProfile)("associatedDeviceColumn",!1),e.xp6(2),e.Q6J("mode","edit")("deviceProtocols",t.device.protocols)("isValid",t.isProtocolValid),e.xp6(2),e.Q6J("deviceProfile",t.selectedProfile)("autoEvents",t.device.autoEvents)("isValid",t.isAutoEventsValid)}}let Mt=(()=>{class i{constructor(t,_,o,s,a){this.router=t,this.route=_,this.metaSvc=o,this.msgSvc=s,this.errorSvc=a,this.isProtocolValid=!0,this.isAutoEventsValid=!0}ngOnInit(){this.route.queryParams.subscribe(t=>{!t.deviceName||this.metaSvc.findDeviceByName(t.deviceName).subscribe(o=>{var s;this.device=o.device,this.deviceLabels=null===(s=this.device.labels)||void 0===s?void 0:s.join(","),this.setDefaultDeviceSvcSelected(this.device.serviceName),this.setDefaultDeviceProfileSelected(this.device.profileName)})})}onSingleProfileSelected(t){this.selectedProfile=t}onSingleDeviceSvcSelected(t){this.selectedSvc=t}setDefaultDeviceSvcSelected(t){this.metaSvc.findDevcieServiceByName(t).subscribe(_=>{this.selectedSvc=_.service})}setDefaultDeviceProfileSelected(t){this.metaSvc.findProfileByName(t).subscribe(_=>{this.selectedProfile=_.profile})}validateBeforeSave(){return""===this.device.name||!this.isAutoEventsValid||!this.isProtocolValid}save(){var t,_,o;this.device.labels=null===(t=this.deviceLabels)||void 0===t?void 0:t.split(","),this.device.serviceName=null===(_=this.selectedSvc)||void 0===_?void 0:_.name,this.device.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.device.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.updateDevice(this.device).subscribe(s=>{var a;this.errorSvc.handleErrorForAPI(s)||(this.msgSvc.success("update device",`name: ${null===(a=this.device)||void 0===a?void 0:a.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(C.F0),e.Y36(C.gz),e.Y36(D.D),e.Y36(b.e),e.Y36(ee.T))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edit-device"]],viewQuery:function(t,_){if(1&t&&e.Gf(K,5),2&t){let o;e.iGM(o=e.CRH())&&(_.deviceProtocols=o.first)}},decls:1,vars:1,consts:function(){let c,t,_,o,s,a,g,I,p;return c="Edit Device",t="Save",_="Device Primary",o="DeviceName",s=" device name can't not be empty! ",a="Description",g="Labels",I="AdminState",p="OperatingState",[["class","card",4,"ngIf"],[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","text-danger","fa-lg"],[1,"mx-2"],c,[1,"text-primary"],["type","button",1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body"],[1,"card","mb-3"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],_,[1,"form-group","row"],[1,"col-md-2","col-form-label"],o,[1,"col-md-10"],["type","text","name","name","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],s,a,["type","text","name","description",1,"form-control",3,"ngModel","ngModelChange"],g,["type","text","name","labels",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],I,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","operatingState",1,"col-md-2","col-form-label"],p,["type","text","name","operatingState","disabled","",1,"form-control",3,"value"],[1,"mb-3"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"enableSelectAll","toolbars","singleProfileSelected","associatedDeviceColumn","singleProfileSelectedEvent"],[3,"mode","deviceProtocols","isValid","isValidChange"],[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(t,_){1&t&&e.YNc(0,It,59,20,"div",0),2&t&&e.Q6J("ngIf",_.device)},directives:[n.O5,l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr,ne,_e.f,K,oe],styles:["input[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})(),Pt=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-profile-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[C.lC],styles:[""]}),i})(),ht=(()=>{class i{constructor(t,_,o,s,a){this.metaSvc=t,this.msgSvc=_,this.errSvc=o,this.router=s,this.route=a}ngOnInit(){this.renderYamlSource()}renderYamlSource(){let t=document.getElementById("editor");this.codeMirrorEditor=CodeMirror.fromTextArea(t,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px"),this.codeMirrorEditor.on("drop",(_,o)=>{var s;this.yamlFile=null===(s=o.dataTransfer)||void 0===s?void 0:s.files[0]}),this.codeMirrorEditor.on("paste",(_,o)=>{})}submit(){this.profileYamlSource=this.codeMirrorEditor.getValue(),this.metaSvc.addProfileYamlByNameViaUIBackend(this.profileYamlSource).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("Add profile"),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D),e.Y36(b.e),e.Y36(ee.T),e.Y36(C.F0),e.Y36(C.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-add-profile"]],decls:15,vars:0,consts:function(){let c,t,_;return c="Add Profile",t="\xA0drag-and-drop is enabled",_="Submit",[[1,"card"],[1,"card-header"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],c,[1,"fa","fa-info-circle","text-success","font-weight-bold"],t,[1,"float-right"],["type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],_,[1,"card-body","p-0"],["id","editor","name","editor"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span"),e._UZ(3,"span",2),e.TgZ(4,"span",3),e.SDv(5,4),e.qZA(),e.TgZ(6,"span",5),e.SDv(7,6),e.qZA(),e.qZA(),e.TgZ(8,"span",7),e.TgZ(9,"button",8),e.NdJ("click",function(){return _.submit()}),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",11),e._UZ(14,"textarea",12),e.qZA(),e.qZA())},styles:[""]}),i})(),Nt=(()=>{class i{constructor(t,_,o,s,a){this.metaSvc=t,this.msgSvc=_,this.errSvc=o,this.router=s,this.route=a}ngOnInit(){this.renderYamlSource(),this.route.queryParams.subscribe(t=>{t.profileName&&(this.profileName=t.profileName,this.metaSvc.findProfileYamlByNameViaUIBackend(t.profileName).subscribe(_=>{this.codeMirrorEditor.setValue(_),this.codeMirrorEditor.refresh()}))})}update(){this.codeMirrorEditor.refresh(),this.metaSvc.updateProfileYamlContentViaUIBackend(this.codeMirrorEditor.getValue()).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("Update profile",`name: ${this.profileName}`),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}renderYamlSource(){let t=document.getElementById("editor-edit");this.codeMirrorEditor=CodeMirror.fromTextArea(t,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px")}ngOnDestroy(){this.codeMirrorEditor=null}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D),e.Y36(b.e),e.Y36(ee.T),e.Y36(C.F0),e.Y36(C.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edit-profile"]],decls:13,vars:1,consts:function(){let c;return c="Save",[[1,"card"],[1,"card-header"],[1,"text-danger","fa","fa-edit","mr-2"],[1,"float-right"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],c,[1,"card-body","p-0"],["id","editor-edit","name","editor"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span"),e._UZ(3,"span",2),e._uU(4),e.qZA(),e.TgZ(5,"span",3),e.TgZ(6,"button",4),e.NdJ("click",function(){return _.update()}),e.TgZ(7,"span"),e._UZ(8,"i",5),e.TgZ(9,"span"),e.SDv(10,6),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",7),e._UZ(12,"textarea",8),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.hij("",_.profileName," "))},styles:[""]}),i})(),Zt=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-provision-watcher-center"]],decls:2,vars:0,template:function(t,_){1&t&&(e.TgZ(0,"p"),e._uU(1,"provision-watcher-center works!"),e.qZA())},styles:[""]}),i})(),Ot=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-provision-watcher-list"]],decls:2,vars:0,template:function(t,_){1&t&&(e.TgZ(0,"p"),e._uU(1,"provision-watcher-list works!"),e.qZA())},styles:[""]}),i})(),Vt=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-add-provision-watcher"]],decls:2,vars:0,template:function(t,_){1&t&&(e.TgZ(0,"p"),e._uU(1,"add-provision-watcher works!"),e.qZA())},styles:[""]}),i})(),Lt=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edit-provision-watcher"]],decls:2,vars:0,template:function(t,_){1&t&&(e.TgZ(0,"p"),e._uU(1,"edit-provision-watcher works!"),e.qZA())},styles:[""]}),i})();var Rt=T(8253),bt=T(1964),$t=T(4294),xt=T(5894),qt=T(7216);let ce=(()=>{class i{constructor(t,_){this.router=t,this.metadataSvc=_}canActivate(t,_){return this.checkAvailable(t,_)}canActivateChild(t,_){return this.canActivate(t,_)}checkAvailable(t,_){return this.metadataSvc.ping().pipe((0,$t.q)(1),(0,xt.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"metadata",routerPath:`/${_.url.split("/")[1]}`}})),(0,qt.z)(()=>(0,bt.of)(!0)))}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(C.F0),e.LFG(D.D))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const yt=[{path:"",component:y,canActivate:[Rt.a,ce],canActivateChild:[ce],children:[{path:"",redirectTo:"device-service-list",pathMatch:"full"},{path:"device-service-list",component:V},{path:"device-center",component:r,children:[{path:"",redirectTo:"device-list",pathMatch:"full"},{path:"device-list",component:Je},{path:"add-device",component:St},{path:"edit-device",component:Mt}]},{path:"device-profile-center",component:Pt,children:[{path:"",redirectTo:"device-profile-list",pathMatch:"full"},{path:"device-profile-list",component:_e.f},{path:"edit-profile",component:Nt},{path:"add-profile",component:ht}]},{path:"provision-watcher-center",component:Zt,children:[{path:"",redirectTo:"provision-watcher-list",pathMatch:"full"},{path:"provision-watcher-list",component:Ot},{path:"edit-provision-watcher",component:Lt},{path:"add-provision-watcher",component:Vt}]}]}];let wt=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[C.Bz.forChild(yt)],C.Bz]}),i})(),Gt=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[n.ez,l.u5,wt,l.UX]]}),i})()},2822:(ie,q,T)=>{T.d(q,{f:()=>te});var n=T(476),l=T(2437),C=T(7822),e=T(9502),y=T(8583),D=T(3092);function b(f,V){if(1&f){const r=n.EpF();n.TgZ(0,"div",50),n.TgZ(1,"div",51),n.TgZ(2,"button",52),n.NdJ("click",function(){return n.CHM(r),n.oxw().refresh()}),n.TgZ(3,"span"),n._UZ(4,"i",53),n.TgZ(5,"span"),n.SDv(6,54),n.qZA(),n.qZA(),n.qZA(),n.TgZ(7,"button",55),n.TgZ(8,"span"),n._UZ(9,"i",56),n.TgZ(10,"span"),n.SDv(11,57),n.qZA(),n.qZA(),n.qZA(),n.TgZ(12,"button",58),n.NdJ("click",function(){return n.CHM(r),n.oxw().edit()}),n.TgZ(13,"span"),n._UZ(14,"i",59),n.TgZ(15,"span"),n.SDv(16,60),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"button",61),n.NdJ("click",function(){return n.CHM(r),n.oxw().deleteConfirm()}),n.TgZ(18,"span"),n._UZ(19,"i",62),n.TgZ(20,"span"),n.SDv(21,63),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&f){const r=n.oxw();n.xp6(12),n.Q6J("disabled",1!==r.multiProfilesSelected.length),n.xp6(5),n.Q6J("disabled",0===r.multiProfilesSelected.length)}}function u(f,V){if(1&f){const r=n.EpF();n.TgZ(0,"input",64),n.NdJ("click",function(A){return n.CHM(r),n.oxw().selectAll(A)}),n.qZA()}if(2&f){const r=n.oxw();n.Q6J("checked",r.isCheckedAll())}}function S(f,V){1&f&&(n.TgZ(0,"th",9),n.SDv(1,65),n.qZA())}const Z=function(f){return{profileName:f}};function R(f,V){if(1&f&&(n.TgZ(0,"td",69),n.TgZ(1,"a",70),n._UZ(2,"i",71),n.qZA(),n.qZA()),2&f){const r=n.oxw().$implicit;n.xp6(1),n.Q6J("queryParams",n.VKq(1,Z,r.name))}}function G(f,V){if(1&f){const r=n.EpF();n.TgZ(0,"tr"),n.TgZ(1,"td"),n.TgZ(2,"input",66),n.NdJ("click",function(A){const w=n.CHM(r).$implicit;return n.oxw().selectOne(A,w.name)}),n.qZA(),n.qZA(),n.TgZ(3,"td",67),n._uU(4),n.qZA(),n.TgZ(5,"td",67),n._uU(6),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.YNc(9,R,3,3,"td",68),n.TgZ(10,"td"),n._uU(11),n.qZA(),n.TgZ(12,"td"),n._uU(13),n.qZA(),n.TgZ(14,"td"),n._uU(15),n.qZA(),n.qZA()}if(2&f){const r=V.$implicit,E=n.oxw();n.ekj("table-active",E.isChecked(r.name)),n.xp6(2),n.s9C("value",r.name),n.Q6J("checked",E.isChecked(r.name)),n.xp6(2),n.Oqu(r.id),n.xp6(2),n.Oqu(r.name),n.xp6(2),n.Oqu(r.description),n.xp6(1),n.Q6J("ngIf",E.associatedDeviceColumn),n.xp6(2),n.Oqu(r.labels),n.xp6(2),n.Oqu(r.manufacturer),n.xp6(2),n.Oqu(r.model)}}let te=(()=>{class f{constructor(r,E,A,L){this.metaSvc=r,this.msgSvc=E,this.route=A,this.router=L,this.associatedDeviceColumn=!0,this.toolbars=!0,this.enableSelectAll=!0,this.singleProfileSelectedEvent=new n.vpe,this.multipleProfileSelectedEvent=new n.vpe,this.profileList=[],this.multiProfilesSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(r=>{r.profileName?this.metaSvc.findProfileByName(r.profileName).subscribe(E=>{this.profileList=[],this.profileList.push(E.profile)}):this.findAllDeviceProfilesPagination()})}findAllDeviceProfilesPagination(){this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(r=>{this.profileList=r.profiles})}onSingleProfileSelectedEmitter(){this.singleProfileSelectedEvent.emit(this.singleProfileSelected)}onMultipleProfileSelectedEmitter(){this.multipleProfileSelectedEvent.emit(this.multiProfilesSelected)}refresh(){this.metaSvc.allDeviceProfolesPagination(0,this.pageLimit).subscribe(r=>{this.profileList=r.profiles,this.msgSvc.success("refresh"),this.pagination=1,this.resetCheckbox()})}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceProfilesPagination()}prePage(){this.setPagination(-1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(r=>{this.profileList=r.profiles})}nextPage(){this.setPagination(1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(r=>{this.profileList=r.profiles})}setPageLimit(r){this.pageLimit=r}setPagination(r){1===r?this.pagination+=1:-1===r&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit,this.resetCheckbox()}resetPagination(){this.pagination=1,this.resetCheckbox()}resetCheckbox(){}edit(){this.router.navigate(["../edit-profile"],{relativeTo:this.route,queryParams:{profileName:this.multiProfilesSelected[0]}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.multiProfilesSelected.forEach(r=>{this.metaSvc.deleteProfileByName(r).subscribe(()=>{this.multiProfilesSelected=[],this.profileList.forEach((E,A)=>{E.name==r&&(this.profileList.splice(A,1),this.msgSvc.success("delete",` Name: ${E.name}`))})})}),$("#deleteConfirmDialog").modal("hide")}isSingleProfileChecked(r){var E;return(null===(E=this.singleProfileSelected)||void 0===E?void 0:E.name)===r}selectSingleProfile(r,E){r.target.checked?this.profileList.forEach(L=>{L.name===E&&(this.singleProfileSelected=L)}):this.singleProfileSelected=void 0,this.onSingleProfileSelectedEmitter()}isCheckedAll(){let r=!0;return this.profileList&&0===this.profileList.length&&(r=!1),this.profileList.forEach(E=>{-1===this.multiProfilesSelected.indexOf(E.name)&&(r=!1)}),r}selectAll(r){this.profileList.forEach(r.target.checked?A=>{this.multiProfilesSelected.includes(A.name)||this.multiProfilesSelected.push(A.name)}:A=>{this.multiProfilesSelected.includes(A.name)&&this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(A.name),1)}),this.onMultipleProfileSelectedEmitter()}isChecked(r){return this.enableSelectAll?this.multiProfilesSelected.includes(r):this.isSingleProfileChecked(r)}selectOne(r,E){this.enableSelectAll?(r.target.checked?this.multiProfilesSelected.push(E):this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(E),1),this.onMultipleProfileSelectedEmitter()):this.selectSingleProfile(r,E)}}return f.\u0275fac=function(r){return new(r||f)(n.Y36(l.D),n.Y36(C.e),n.Y36(e.gz),n.Y36(e.F0))},f.\u0275cmp=n.Xpm({type:f,selectors:[["app-device-profile-list"]],inputs:{associatedDeviceColumn:"associatedDeviceColumn",toolbars:"toolbars",enableSelectAll:"enableSelectAll",multiProfilesSelected:"multiProfilesSelected",singleProfileSelected:"singleProfileSelected"},outputs:{singleProfileSelectedEvent:"singleProfileSelectedEvent",multipleProfileSelectedEvent:"multipleProfileSelectedEvent"},decls:67,vars:7,consts:function(){let V,r,E,A,L,w,X,U,F,k,J,z,Y,Q,B,W,H,j;return V="Device Profile List",r="Name",E="Description",A="Labels",L="Manufacturer",w="Model",X="items per page",U="Previous",F="Next",k="Warning",J=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",z="Cancel",Y="Confirm",Q="Refresh",B="Add",W="Edit",H="Delete",j="AssociatedDevice",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],V,[1,"card-body","p-0"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox",3,"checked","click",4,"ngIf"],r,E,["scope","col",4,"ngIf"],A,L,w,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],X,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],U,[1,"page-item"],F,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],k,[1,"modal-body"],J,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],z,["type","button",1,"btn","btn-danger",3,"click"],Y,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],Q,["type","button","routerLink","../add-profile",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],B,["type","button","data-toggle","tooltip","data-placement","top","title","only one should be selected",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],W,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],H,["type","checkbox",3,"checked","click"],j,["type","checkbox",3,"value","checked","click"],[1,"user-select-all"],["class","text-center",4,"ngIf"],[1,"text-center"],["routerLink","../../device-center",1,"badge","badge-pill","badge-primary",3,"queryParams"],[1,"fa","fa-sitemap"]]},template:function(r,E){1&r&&(n.TgZ(0,"div",0),n.TgZ(1,"div",1),n._UZ(2,"i",2),n.TgZ(3,"span"),n.SDv(4,3),n.qZA(),n.qZA(),n.TgZ(5,"div",4),n.YNc(6,b,22,2,"div",5),n.TgZ(7,"div",6),n.TgZ(8,"table",7),n.TgZ(9,"thead",8),n.TgZ(10,"tr"),n.TgZ(11,"th",9),n.YNc(12,u,1,1,"input",10),n.qZA(),n.TgZ(13,"th",9),n._uU(14,"ID"),n.qZA(),n.TgZ(15,"th",9),n.SDv(16,11),n.qZA(),n.TgZ(17,"th",9),n.SDv(18,12),n.qZA(),n.YNc(19,S,2,0,"th",13),n.TgZ(20,"th",9),n.SDv(21,14),n.qZA(),n.TgZ(22,"th",9),n.SDv(23,15),n.qZA(),n.TgZ(24,"th",9),n.SDv(25,16),n.qZA(),n.qZA(),n.qZA(),n.TgZ(26,"tbody"),n.YNc(27,G,16,11,"tr",17),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(28,"div",18),n.TgZ(29,"nav",19),n.TgZ(30,"ul",20),n.TgZ(31,"li",21),n.TgZ(32,"span",22),n.SDv(33,23),n.qZA(),n.qZA(),n.TgZ(34,"li",24),n.TgZ(35,"select",25),n.NdJ("ngModelChange",function(L){return E.pageLimit=L})("ngModelChange",function(){return E.onPageSelected()}),n.TgZ(36,"option",26),n._uU(37,"5"),n.qZA(),n.TgZ(38,"option",27),n._uU(39,"10"),n.qZA(),n.TgZ(40,"option",28),n._uU(41,"20"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(42,"li",29),n.TgZ(43,"button",30),n.NdJ("click",function(){return E.prePage()}),n._UZ(44,"i",31),n.TgZ(45,"span"),n.SDv(46,32),n.qZA(),n.qZA(),n.qZA(),n.TgZ(47,"li",33),n.TgZ(48,"button",30),n.NdJ("click",function(){return E.nextPage()}),n.TgZ(49,"span"),n.SDv(50,34),n.qZA(),n._UZ(51,"i",35),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(52,"div",36),n.TgZ(53,"div",37),n.TgZ(54,"div",38),n.TgZ(55,"div",39),n.TgZ(56,"h5",40),n._UZ(57,"i",41),n.TgZ(58,"span"),n.SDv(59,42),n.qZA(),n.qZA(),n.qZA(),n.TgZ(60,"div",43),n.SDv(61,44),n.qZA(),n.TgZ(62,"div",45),n.TgZ(63,"button",46),n.SDv(64,47),n.qZA(),n.TgZ(65,"button",48),n.NdJ("click",function(){return E.delete()}),n.SDv(66,49),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&r&&(n.xp6(6),n.Q6J("ngIf",E.toolbars),n.xp6(6),n.Q6J("ngIf",E.enableSelectAll),n.xp6(7),n.Q6J("ngIf",E.associatedDeviceColumn),n.xp6(8),n.Q6J("ngForOf",E.profileList),n.xp6(8),n.Q6J("ngModel",E.pageLimit),n.xp6(8),n.Q6J("disabled",1===E.pagination),n.xp6(5),n.Q6J("disabled",E.pageLimit>E.profileList.length))},directives:[y.O5,y.sg,D.EJ,D.JJ,D.On,D.YN,D.Kr,e.rH,e.yS],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),f})()},7982:(ie,q,T)=>{T.d(q,{V:()=>y});var n=T(1841),l=T(5894),C=T(476),e=T(4889);let y=(()=>{class D{constructor(u,S){this.http=u,this.errorSvc=S,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new n.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,l.K)(S=>this.errorSvc.handleError(S)))}findCommnadsByDeviceId(u){return this.http.get(`${this.commandsByDeviceIdUrl}${u}`).pipe((0,l.K)(Z=>this.errorSvc.handleError(Z)))}allDeviceCoreCommandsPagination(u,S){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${u}&limit=${S}`).pipe((0,l.K)(R=>this.errorSvc.handleError(R)))}findDeviceAssociatedCommnadsByDeviceName(u){return this.http.get(`${this.commandsByDeviceNameUrl}${u}`).pipe((0,l.K)(Z=>this.errorSvc.handleError(Z)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,l.K)(S=>this.errorSvc.handleError(S)))}issueGetBinaryCmd(u,S){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${u}/command/${S}`,{responseType:"arraybuffer"}).pipe((0,l.K)(R=>this.errorSvc.handleError(R)))}issueGetCmd(u,S){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${u}/${S}?ds-pushevent=true&ds-returnevent=true`).pipe((0,l.K)(R=>this.errorSvc.handleError(R)))}issueSetCmd(u,S,Z){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${u}/${S}`,JSON.stringify(Z),this.httpPostOrPutJSONOptions).pipe((0,l.K)(G=>this.errorSvc.handleError(G)))}}return D.\u0275fac=function(u){return new(u||D)(C.LFG(n.eN),C.LFG(e.T))},D.\u0275prov=C.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/10.86cd78dbb35d3933fb18.js b/cmd/edgex-ui-server/static/web/en-US/10.86cd78dbb35d3933fb18.js deleted file mode 100644 index 81c7bb4c..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/10.86cd78dbb35d3933fb18.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[10],{4010:(i_,b,d)=>{d.r(b),d.d(b,{MetadataModule:()=>Xe});var n=d(8583),a=d(3092),T=d(9502),_=d(476);let x=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-metadata"]],decls:14,vars:0,consts:function(){let E,e,t;return E="Device Service",e="Device",t="Device Profile",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./device-service-list","routerLinkActive","active",1,"nav-link"],E,["routerLink","./device-center","routerLinkActive","active",1,"nav-link"],e,["routerLink","./device-profile-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.SDv(5,5),_.qZA(),_.qZA(),_.TgZ(6,"li",3),_.TgZ(7,"a",6),_.SDv(8,7),_.qZA(),_.qZA(),_.TgZ(9,"li",3),_.TgZ(10,"a",8),_.SDv(11,9),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"div",10),_._UZ(13,"router-outlet"),_.qZA(),_.qZA())},directives:[T.yS,T.Od,T.lC],styles:[".active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}"]}),i})();var u=d(2437),V=d(7822);function S(i,E){if(1&i&&(_.TgZ(0,"p"),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.description)}}function m(i,E){1&i&&(_.TgZ(0,"p",20),_._uU(1,"no description."),_.qZA())}function G(i,E){if(1&i&&(_.TgZ(0,"span",21),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function U(i,E){if(1&i&&(_.TgZ(0,"span",22),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function X(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"a",23),_.NdJ("click",function(){_.CHM(e);const o=_.oxw().$implicit;return _.oxw().associatedDevicesSkip(o.name)}),_._UZ(1,"i",24),_.TgZ(2,"span"),_.SDv(3,25),_.qZA(),_._uU(4),_.qZA()}if(2&i){const e=_.oxw().$implicit,t=_.oxw();_.xp6(4),_.hij("\xa0 ",t.associatedDevices.get(e.name)," ")}}function e_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"li",3),_.TgZ(1,"div",4),_.TgZ(2,"div",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"div",7),_.TgZ(5,"div",8),_.TgZ(6,"h5",9),_._uU(7),_.qZA(),_.qZA(),_.YNc(8,S,2,1,"p",10),_.YNc(9,m,2,0,"ng-template",null,11,_.W1O),_.TgZ(11,"div"),_.TgZ(12,"span",12),_._uU(13),_.qZA(),_.TgZ(14,"span",13),_.YNc(15,G,2,1,"span",14),_.YNc(16,U,2,1,"span",15),_.qZA(),_.YNc(17,X,5,1,"a",16),_.TgZ(18,"span",17),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw().edit(c)}),_._UZ(19,"i",18),_.TgZ(20,"span"),_.SDv(21,19),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.MAs(10),o=_.oxw();_.xp6(7),_.Oqu(e.name),_.xp6(1),_.Q6J("ngIf",e.description)("ngIfElse",t),_.xp6(5),_.hij("Port ",o.getSvcPort(e.baseAddress),""),_.xp6(1),_.Q6J("ngSwitch",e.adminState),_.xp6(1),_.Q6J("ngSwitchCase","UNLOCKED"),_.xp6(2),_.Q6J("ngIf",o.associatedDevices.size)}}function I(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",26),_.TgZ(1,"div",27),_._UZ(2,"i",28),_.TgZ(3,"span"),_.SDv(4,29),_.qZA(),_.TgZ(5,"span",30),_._uU(6),_.qZA(),_.TgZ(7,"button",31),_.NdJ("click",function(){return _.CHM(e),_.oxw().updateSvc()}),_.SDv(8,32),_.qZA(),_.qZA(),_.TgZ(9,"div",33),_.TgZ(10,"form"),_.TgZ(11,"div",34),_.TgZ(12,"label",35),_.SDv(13,36),_.qZA(),_.TgZ(14,"div",37),_.TgZ(15,"input",38),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceSvcSelected.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(16,"div",34),_.TgZ(17,"label",39),_.SDv(18,40),_.qZA(),_.TgZ(19,"div",37),_.TgZ(20,"select",41),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceSvcSelected.adminState=o}),_.TgZ(21,"option",42),_._uU(22,"UNLOCKED"),_.qZA(),_.TgZ(23,"option",43),_._uU(24,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(6),_.Oqu(e.deviceSvcSelected.name),_.xp6(9),_.Q6J("ngModel",e.deviceSvcSelected.description),_.xp6(5),_.Q6J("ngModel",e.deviceSvcSelected.adminState)}}let R=(()=>{class i{constructor(e,t,o,c){this.metaSvc=e,this.msgSvc=t,this.router=o,this.route=c,this.deviceServiceList=[],this.associatedDevices=new Map}ngOnInit(){this.metaSvc.allDeviceServices().subscribe(e=>{this.deviceServiceList=e.services,this.deviceServiceList.forEach(t=>{this.metaSvc.findDevicesByServiceName(0,20,t.name).subscribe(o=>{this.associatedDevices.set(t.name,o.devices.length>20?"20+":String(o.devices.length))})})})}getSvcPort(e){return new URL(e).port}edit(e){this.deviceSvcSelected=e}updateSvc(){this.metaSvc.updateDeviceService(this.deviceSvcSelected).subscribe(()=>{var e;this.msgSvc.success("update device service",`name: ${null===(e=this.deviceSvcSelected)||void 0===e?void 0:e.name}`),this.deviceSvcSelected=void 0})}associatedDevicesSkip(e){this.router.navigate(["../device-center"],{queryParams:{svcName:e},relativeTo:this.route})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-service-media-list"]],decls:3,vars:2,consts:function(){let E,e,t,o,c,s;return E="Setting",e="Associated Devices",t="edit",o="Save",c="Description",s="AdminState",[[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[4,"ngIf","ngIfElse"],["nodesc",""],[1,"badge","badge-info","mr-3"],[3,"ngSwitch"],["class","badge badge-success mr-3",4,"ngSwitchCase"],["class","badge badge-danger mr-3",4,"ngSwitchDefault"],["class","badge badge-primary","role","button",3,"click",4,"ngIf"],["role","button",1,"badge","badge-secondary","float-right",3,"click"],[1,"fa","fa-cog","mr-1"],E,[1,"my-1"],[1,"badge","badge-success","mr-3"],[1,"badge","badge-danger","mr-3"],["role","button",1,"badge","badge-primary",3,"click"],[1,"fa","fa-sitemap","mr-1"],e,[1,"card","mt-3"],[1,"card-header"],[1,"fa","fa-edit","mr-1","text-danger"],t,[1,"ml-1"],[1,"btn","btn-success","btn-sm","float-right",3,"click"],o,[1,"card-body"],[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],c,[1,"col-md-10"],["type","text","name","deviceSvcDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],s,["name","deviceSvcAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"]]},template:function(e,t){1&e&&(_.TgZ(0,"ul",0),_.YNc(1,e_,22,7,"li",1),_.qZA(),_.YNc(2,I,25,3,"div",2)),2&e&&(_.xp6(1),_.Q6J("ngForOf",t.deviceServiceList),_.xp6(1),_.Q6J("ngIf",t.deviceSvcSelected))},directives:[n.sg,n.O5,n.RF,n.n9,n.ED,a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),i})(),l=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[T.lC],styles:[""]}),i})();var r=d(7982);function g(i,E){1&i&&_._UZ(0,"div")}function Z(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"li",20),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw(2).selectCmd(c)}),_._uU(1),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw(2);_.ekj("list-group-item-info",(null==t.selectedCmd?null:t.selectedCmd.name)===e.name),_.xp6(1),_.Oqu(e.name)}}function q(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw(3).issueGetCmd()}),_._uU(1,"try"),_.qZA()}}function J(i,E){1&i&&_._UZ(0,"div")}function y(i,E){if(1&i&&(_.TgZ(0,"span",41),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.hij(" ",e.cmdGetResponse,"")}}function B(i,E){if(1&i&&(_.TgZ(0,"pre",42),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdGetResponseRaw)}}function W(i,E){if(1&i&&(_.TgZ(0,"div"),_.TgZ(1,"span",35),_.SDv(2,36),_.qZA(),_.YNc(3,y,2,1,"span",37),_.qZA(),_.TgZ(4,"div",38),_.TgZ(5,"span",35),_.SDv(6,39),_.qZA(),_.YNc(7,B,2,1,"pre",40),_.qZA()),2&i){const e=_.oxw(3);_.xp6(3),_.Q6J("ngIf",e.cmdGetResponse),_.xp6(4),_.Q6J("ngIf",e.cmdGetResponseRaw)}}function H(i,E){1&i&&(_.TgZ(0,"h6",43),_._UZ(1,"i",44),_.TgZ(2,"span"),_.SDv(3,45),_.qZA(),_.qZA())}function w(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw(3).issueSetCmd()}),_._uU(1,"try"),_.qZA()}}function F(i,E){1&i&&_._UZ(0,"div")}function k(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"label",56),_._uU(2),_.qZA(),_.TgZ(3,"select",57),_.NdJ("ngModelChange",function(o){_.CHM(e);const c=_.oxw().index;return _.oxw(6).parameterBearerList[c].value=o}),_.TgZ(4,"option",58),_._uU(5,"false"),_.qZA(),_.TgZ(6,"option",58),_._uU(7,"true"),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(),t=e.$implicit,o=e.index,c=_.oxw(6);_.xp6(1),_.s9C("for",t.resourceName),_.xp6(1),_.hij(" ",t.resourceName," "),_.xp6(1),_.s9C("id",t.resourceName),_.s9C("name",t.resourceName),_.Q6J("ngModel",c.parameterBearerList[o].value),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function z(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"label",56),_._uU(1),_.qZA(),_.TgZ(2,"input",59),_.NdJ("ngModelChange",function(o){_.CHM(e);const c=_.oxw().index;return _.oxw(6).parameterBearerList[c].value=o}),_.qZA()}if(2&i){const e=_.oxw(),t=e.$implicit,o=e.index,c=_.oxw(6);_.s9C("for",t.resourceName),_.xp6(1),_.Oqu(t.resourceName),_.xp6(1),_.s9C("id",t.resourceName),_.s9C("name",t.resourceName),_.MGl("placeholder","valueType: ",t.valueType,""),_.Q6J("ngModel",c.parameterBearerList[o].value)}}function Y(i,E){if(1&i&&(_.TgZ(0,"div",53),_.YNc(1,k,8,7,"div",54),_.YNc(2,z,3,6,"ng-template",null,55,_.W1O),_.qZA()),2&i){const e=E.$implicit,t=_.MAs(3);_.xp6(1),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function Q(i,E){if(1&i&&(_.TgZ(0,"div",51),_.YNc(1,Y,4,2,"div",52),_.qZA()),2&i){const e=_.oxw(5);_.xp6(1),_.Q6J("ngForOf",e.selectedCmdSetParams)}}function j(i,E){if(1&i&&(_.TgZ(0,"div",12),_.TgZ(1,"div",4),_.SDv(2,49),_.qZA(),_.TgZ(3,"div",9),_.YNc(4,Q,2,1,"div",50),_.qZA(),_.qZA()),2&i){const e=_.oxw(4);_.xp6(4),_.Q6J("ngIf",e.selectedCmd)}}function M(i,E){if(1&i&&(_.TgZ(0,"span",41),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdSetResponse)}}function m_(i,E){if(1&i&&(_.TgZ(0,"pre",42),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdSetResponseRaw)}}function v_(i,E){if(1&i&&(_.YNc(0,j,5,1,"div",46),_.TgZ(1,"div"),_.TgZ(2,"div"),_.TgZ(3,"span",35),_.SDv(4,47),_.qZA(),_.YNc(5,M,2,1,"span",37),_.qZA(),_.TgZ(6,"div",38),_.TgZ(7,"span",35),_.SDv(8,48),_.qZA(),_.YNc(9,m_,2,1,"pre",40),_.qZA(),_.qZA()),2&i){const e=_.oxw(3);_.Q6J("ngIf",e.selectedCmdSetParams),_.xp6(5),_.Q6J("ngIf",e.cmdSetResponse),_.xp6(4),_.Q6J("ngIf",e.cmdSetResponseRaw)}}function N_(i,E){1&i&&(_.TgZ(0,"h6",43),_._UZ(1,"i",44),_.TgZ(2,"span"),_.SDv(3,60),_.qZA(),_.qZA())}function M_(i,E){if(1&i&&(_.TgZ(0,"div",21),_.TgZ(1,"div",4),_.TgZ(2,"span",22),_._UZ(3,"i",23),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,24),_.qZA(),_.qZA(),_.TgZ(7,"div",25),_.TgZ(8,"div",10),_.TgZ(9,"div",26),_.TgZ(10,"div",12),_.TgZ(11,"div",4),_._uU(12," Get "),_.YNc(13,q,2,0,"button",27),_.qZA(),_.TgZ(14,"div",28),_.YNc(15,J,1,0,"div",0),_.YNc(16,W,8,2,"ng-template",null,29,_.W1O),_.YNc(18,H,4,0,"ng-template",null,30,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.TgZ(20,"div",31),_.TgZ(21,"div",21),_.TgZ(22,"div",4),_._uU(23," Set "),_.YNc(24,w,2,0,"button",27),_.qZA(),_.TgZ(25,"div",9),_.YNc(26,F,1,0,"div",0),_.YNc(27,v_,10,3,"ng-template",null,32,_.W1O),_.YNc(29,N_,4,0,"ng-template",null,33,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.MAs(17),t=_.MAs(19),o=_.MAs(28),c=_.MAs(30),s=_.oxw(2);_.xp6(4),_.hij(" ",s.selectedCmd.name," method:"),_.xp6(9),_.Q6J("ngIf",s.selectedCmd.get),_.xp6(2),_.Q6J("ngIf",s.selectedCmd.get)("ngIfThen",e)("ngIfElse",t),_.xp6(9),_.Q6J("ngIf",s.selectedCmd.set),_.xp6(2),_.Q6J("ngIf",s.selectedCmd.set)("ngIfThen",o)("ngIfElse",c)}}function P_(i,E){if(1&i&&(_.TgZ(0,"div",3),_.TgZ(1,"div",4),_.TgZ(2,"span",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"span",7),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,8),_.qZA(),_.qZA(),_.TgZ(8,"div",9),_.TgZ(9,"div",10),_.TgZ(10,"div",11),_.TgZ(11,"div",12),_.TgZ(12,"div",13),_.SDv(13,14),_.qZA(),_.TgZ(14,"div",15),_.TgZ(15,"ul",16),_.YNc(16,Z,2,3,"li",17),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",18),_.YNc(18,M_,31,9,"div",19),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(5),_.Oqu(e.associatedCmdDeviceName),_.xp6(11),_.Q6J("ngForOf",e.deviceCoreCommand),_.xp6(2),_.Q6J("ngIf",e.selectedCmd)}}function O_(i,E){if(1&i&&(_.TgZ(0,"div",3),_.TgZ(1,"div",4),_.TgZ(2,"span",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"span",7),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,61),_.qZA(),_.qZA(),_.TgZ(8,"div",62),_.TgZ(9,"h5",43),_._UZ(10,"i",63),_.TgZ(11,"span"),_.SDv(12,64),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(5),_.Oqu(e.associatedCmdDeviceName)}}let G_=(()=>{class i{constructor(e,t){this.cmdSvc=e,this.metadataSvc=t,this.selectedCmd={},this.selectedCmdSetParams=[],this.parameterBearerList=[]}ngOnInit(){}ngOnChanges(){!this.deviceName||(this.resetResponse(),this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(this.deviceName).subscribe(e=>{this.associatedCmdDeviceName=e.deviceCoreCommand.deviceName,this.deviceCoreCommand=e.deviceCoreCommand.coreCommands,this.deviceCoreCommand&&0!==this.deviceCoreCommand.length&&(this.selectedCmd=this.deviceCoreCommand[0],this.selectedCmdSetParams=this.selectedCmd.parameters,this.setParameterBearerList(),this.getAssociatedDeviceProfile(e.deviceCoreCommand.profileName))}))}getAssociatedDeviceProfile(e){this.metadataSvc.findProfileByName(e).subscribe(t=>this.associateDeviceProfile=t.profile)}selectCmd(e){this.selectedCmd=e,this.selectedCmdSetParams=this.selectedCmd.parameters,this.resetResponse(),this.setParameterBearerList()}setParameterBearerList(){this.parameterBearerList=[],this.selectedCmdSetParams.forEach(e=>{this.parameterBearerList.push({key:e.resourceName,value:""})})}resetResponse(){this.cmdGetResponse="",this.cmdGetResponseRaw="",this.cmdSetResponse="",this.cmdSetResponseRaw="",this.cmdBinaryResponse=!0,this.cmdBinaryResponseURL=""}isBinaryResource(){let e=!1;return this.associateDeviceProfile.deviceResources.forEach(t=>{t.name!==this.selectedCmd.name||"Binary"!==t.properties.valueType||(e=!0)}),e||(this.associateDeviceProfile.deviceCommands.forEach(t=>{t.name===this.selectedCmd.name&&t.resourceOperations.forEach(o=>{this.associateDeviceProfile.deviceResources.forEach(c=>{o.deviceResource!==c.name||"Binary"!==c.properties.valueType||(e=!0)})})}),e)}issueGetCmd(){this.cmdSvc.issueGetCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(e=>{if(this.cmdGetResponseRaw=JSON.stringify(e.event.readings,null,3),this.isBinaryResource())return void(this.cmdGetResponse="Binary resource is not supported for preview");let t=[];e.event.readings.forEach(o=>{t.push(o.value)}),this.cmdGetResponse=t.join(",")})}issueGetCmdOfBinaryResource(){this.cmdSvc.issueGetBinaryCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(e=>{let t=CBOR.decode(e);"image/jpeg"===t.mediaType||"image/jpg"===t.mediaType||"image/png"===t.mediaType?(this.cmdBinaryResponse=t.binaryValue,this.cmdBinaryResponseURL=URL.createObjectURL(this.cmdBinaryResponse)):this.cmdBinaryResponse="only image binary is supported"})}issueSetCmd(){var e;let t={};this.parameterBearerList.forEach(o=>{t[o.key]=o.value}),this.cmdSvc.issueSetCmd(this.associatedCmdDeviceName,null===(e=this.selectedCmd)||void 0===e?void 0:e.name,t).subscribe(o=>{this.cmdSetResponseRaw=JSON.stringify(o,null,3),this.cmdSetResponse=o.message})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(r.V),_.Y36(u.D))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-command-viewer"]],inputs:{deviceName:"deviceName"},features:[_.TTD],decls:5,vars:3,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f;return E="Associated Commands",e=" Command Name List ",t="Get and Set",o="Response:",c="ResponseRaw:",s="no Get method",C="Response:",v="ResponseRaw:",D="Set Parameters",p="no Set method",h="Associated Commands",f="no associated commands",[[4,"ngIf","ngIfThen","ngIfElse"],["hasAssociatedCommand",""],["noAssociatedCommand",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"text-primary","mx-2","font-weight-bold"],E,[1,"card-body"],[1,"row"],[1,"col-md-2","col-lg-2"],[1,"card","mb-2"],[1,"card-header","font-weight-bold"],e,[1,"card-body","p-0"],[1,"list-group","list-group-flush"],["role","button","class","list-group-item list-group-item-action",3,"list-group-item-info","click",4,"ngFor","ngForOf"],[1,"col-md-10","col-lg-10"],["class","card",4,"ngIf"],["role","button",1,"list-group-item","list-group-item-action",3,"click"],[1,"card"],[1,"text-primary","font-weight-bold","mr-2"],[1,"fa","fa-thumb-tack","text-danger","mr-1"],t,[1,"card-body","px-2"],[1,"col-md-5","col-lg-5"],["class","btn btn-primary btn-sm float-right",3,"click",4,"ngIf"],[1,"card-body","overflow-auto"],["hasGetMethod",""],["noGetMethod",""],[1,"col-md-7","col-lg-7"],["hasSetMethod",""],["noSetMethod",""],[1,"btn","btn-primary","btn-sm","float-right",3,"click"],[1,"badge","badge-info"],o,["class","ml-2 text-primary",4,"ngIf"],[1,"mt-3"],c,["class","mt-2 bg-secondary p-2 text-light rounded",4,"ngIf"],[1,"ml-2","text-primary"],[1,"mt-2","bg-secondary","p-2","text-light","rounded"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],s,["class","card mb-2",4,"ngIf"],C,v,D,["class","d-flex flex-column bd-highlight",4,"ngIf"],[1,"d-flex","flex-column","bd-highlight"],["class","form p-2 bd-highlight",4,"ngFor","ngForOf"],[1,"form","p-2","bd-highlight"],[4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[3,"for"],[1,"custom-select","custom-select-sm",3,"id","name","ngModel","ngModelChange"],[3,"ngValue"],[1,"form-control","form-control-sm",3,"id","name","ngModel","placeholder","ngModelChange"],p,h,[1,"card-body","text-center"],[1,"fa","fa-warning"],f]},template:function(e,t){if(1&e&&(_.YNc(0,g,1,0,"div",0),_.YNc(1,P_,19,3,"ng-template",null,1,_.W1O),_.YNc(3,O_,13,1,"ng-template",null,2,_.W1O)),2&e){const o=_.MAs(2),c=_.MAs(4);_.Q6J("ngIf",t.deviceCoreCommand)("ngIfThen",o)("ngIfElse",c)}},directives:[n.O5,n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr,a.Fj],styles:[""]}),i})();function h_(i,E){if(1&i&&(_.TgZ(0,"span"),_.TgZ(1,"span",67),_.SDv(2,68),_.qZA(),_.TgZ(3,"span",69),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,70),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(4),_.Oqu(e.associatedSvcName)}}function R_(i,E){if(1&i&&(_.TgZ(0,"span"),_.TgZ(1,"span",67),_.SDv(2,71),_.qZA(),_.TgZ(3,"span",69),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,72),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(4),_.Oqu(e.associatedProfileName)}}function Z_(i,E){1&i&&(_.TgZ(0,"span"),_.SDv(1,73),_.qZA())}function U_(i,E){if(1&i&&(_.TgZ(0,"span",85),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function V_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function L_(i,E){if(1&i&&(_.TgZ(0,"span",85),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}function b_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}function $_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}const x_=function(i){return{profileName:i}};function q_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(o){const s=_.CHM(e).$implicit;return _.oxw().selectOne(o,s)}),_.qZA(),_.qZA(),_.TgZ(3,"td",74),_._uU(4),_.qZA(),_.TgZ(5,"td",74),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_.TgZ(12,"span",75),_.YNc(13,U_,2,1,"span",76),_.YNc(14,V_,2,1,"span",77),_.qZA(),_.qZA(),_.TgZ(15,"td",78),_.TgZ(16,"span",75),_.YNc(17,L_,2,1,"span",76),_.YNc(18,b_,2,1,"span",79),_.YNc(19,$_,2,1,"span",77),_.qZA(),_.qZA(),_.TgZ(20,"td",78),_.TgZ(21,"span",80),_.NdJ("click",function(){const c=_.CHM(e).$implicit,s=_.oxw();return s.setSpecialFeatureViewer(c,s.FEATURE_COMMAND)}),_._UZ(22,"i",81),_.qZA(),_.qZA(),_.TgZ(23,"td",78),_.TgZ(24,"span",80),_.NdJ("click",function(){const c=_.CHM(e).$implicit,s=_.oxw();return s.setSpecialFeatureViewer(c,s.FEATURE_AUTOEVENT)}),_._UZ(25,"i",82),_.qZA(),_.qZA(),_.TgZ(26,"td"),_.TgZ(27,"a",83),_._uU(28),_.qZA(),_.qZA(),_.TgZ(29,"td"),_.TgZ(30,"a",84),_._uU(31),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.id)||t.specialFeatureAssociatedDeviceName===e.name),_.xp6(2),_.Q6J("checked",t.isChecked(e.id)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Q6J("ngSwitch",e.adminState),_.xp6(1),_.Q6J("ngSwitchCase","UNLOCKED"),_.xp6(3),_.Q6J("ngSwitch",e.operatingState),_.xp6(1),_.Q6J("ngSwitchCase","UP"),_.xp6(1),_.Q6J("ngSwitchCase","DOWN"),_.xp6(3),_.ekj("badge-danger",t.specialFeatureName===t.FEATURE_COMMAND&&t.specialFeatureAssociatedDeviceName===e.name),_.xp6(3),_.ekj("badge-danger",t.specialFeatureName===t.FEATURE_AUTOEVENT&&t.specialFeatureAssociatedDeviceName===e.name),_.xp6(3),_.Q6J("queryParams",_.VKq(19,x_,e.profileName)),_.xp6(1),_.Oqu(e.profileName),_.xp6(3),_.Oqu(e.serviceName)}}function X_(i,E){if(1&i&&(_.TgZ(0,"tr"),_.TgZ(1,"td"),_._uU(2),_.qZA(),_.TgZ(3,"td"),_.TgZ(4,"span",99),_._uU(5),_.qZA(),_.qZA(),_.TgZ(6,"td"),_.TgZ(7,"span",100),_._uU(8),_.qZA(),_.qZA(),_.qZA()),2&i){const e=E.$implicit;_.xp6(2),_.Oqu(e.sourceName),_.xp6(3),_.Oqu(e.interval),_.xp6(3),_.Oqu(e.onChange)}}function J_(i,E){if(1&i&&(_.TgZ(0,"div"),_.TgZ(1,"div",89),_.TgZ(2,"div",90),_.TgZ(3,"span",91),_._UZ(4,"i",82),_.qZA(),_.TgZ(5,"span",92),_._uU(6),_.qZA(),_.TgZ(7,"span"),_.SDv(8,93),_.qZA(),_.qZA(),_.TgZ(9,"div",94),_.TgZ(10,"div",19),_.TgZ(11,"table",20),_.TgZ(12,"thead",21),_.TgZ(13,"th",22),_.SDv(14,95),_.qZA(),_.TgZ(15,"th",22),_.SDv(16,96),_.qZA(),_.TgZ(17,"th",22),_.SDv(18,97),_.qZA(),_.qZA(),_.TgZ(19,"tbody"),_.YNc(20,X_,9,3,"tr",98),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw(2);_.xp6(6),_.hij(" ",e.specialFeatureAssociatedDeviceName,""),_.xp6(14),_.Q6J("ngForOf",e.autoEvents)}}function y_(i,E){if(1&i&&(_.TgZ(0,"div",89),_.TgZ(1,"div",90),_.TgZ(2,"span",91),_._UZ(3,"i",82),_.qZA(),_.TgZ(4,"span",92),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,101),_.qZA(),_.qZA(),_.TgZ(8,"div",102),_.TgZ(9,"h5",103),_._UZ(10,"i",58),_.TgZ(11,"span"),_.SDv(12,104),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw(2);_.xp6(5),_.hij(" ",e.specialFeatureAssociatedDeviceName,"")}}function B_(i,E){if(1&i&&(_.TgZ(0,"div"),_.YNc(1,J_,21,2,"div",87),_.YNc(2,y_,13,1,"ng-template",null,88,_.W1O),_.qZA()),2&i){const e=_.MAs(3),t=_.oxw();_.xp6(1),_.Q6J("ngIf",t.autoEvents)("ngIfElse",e)}}function W_(i,E){if(1&i&&(_.TgZ(0,"div"),_._UZ(1,"app-device-command-viewer",105),_.qZA()),2&i){const e=_.oxw();_.xp6(1),_.Q6J("deviceName",e.specialFeatureAssociatedDeviceName)}}let H_=(()=>{class i{constructor(e,t,o,c){this.metaSvc=e,this.msgSvc=t,this.route=o,this.router=c,this.toolbars=!0,this.enableSelectAll=!0,this.deviceList=[],this.associatedSvcName="",this.associatedProfileName="",this.selectedDevice=[],this.FEATURE_AUTOEVENT="autoevent",this.FEATURE_COMMAND="command",this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>e.svcName?(this.associatedSvcName=e.svcName,void this.getDeviceListByAssociatedSvc(this.associatedSvcName)):e.profileName?(this.associatedProfileName=e.profileName,void this.getDeviceListByAssociatedProfile(this.associatedProfileName)):(this.associatedSvcName="",this.associatedProfileName="",void this.getDeviceListPagination()))}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},250)}getDeviceList(){""===this.associatedSvcName?""===this.associatedProfileName?this.getDeviceListPagination():this.getDeviceListByAssociatedProfile(this.associatedSvcName):this.getDeviceListByAssociatedSvc(this.associatedSvcName)}getDeviceListByAssociatedSvc(e){this.metaSvc.findDevicesByServiceName(this.pageOffset,this.pageLimit,e).subscribe(t=>this.deviceList=t.devices)}getDeviceListByAssociatedProfile(e){this.metaSvc.findDevicesByProfileName(this.pageOffset,this.pageLimit,e).subscribe(t=>this.deviceList=t.devices)}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.deviceList=e.devices})}refresh(){this.associatedProfileName="",this.associatedSvcName="",this.metaSvc.allDevicesPagination(0,this.pageLimit).subscribe(e=>{this.deviceList=e.devices,this.msgSvc.success("refresh"),this.resetPagination()})}edit(){this.router.navigate(["../edit-device"],{relativeTo:this.route,queryParams:{deviceName:this.selectedDevice[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedDevice.forEach((e,t)=>{this.metaSvc.deleteOneDeviceByName(e.name).subscribe(()=>{this.selectedDevice.splice(t,1),this.deviceList.forEach((o,c)=>{if(o.id===e.id)return this.deviceList.splice(c,1),void this.msgSvc.success("remove device ",` Name: ${o.name}`)})})}),this.specialFeatureName=void 0,$("#deleteConfirmDialog").modal("hide")}setSpecialFeatureViewer(e,t){switch(this.specialFeatureAssociatedDeviceName=e.name,this.specialFeatureName=t,this.specialFeatureName){case this.FEATURE_AUTOEVENT:this.autoEvents=e.autoEvents}}isCheckedAll(){let e=!0;return this.deviceList&&0===this.deviceList.length&&(e=!1),this.deviceList.forEach(t=>{-1===this.selectedDevice.findIndex(o=>o.name===t.name)&&(e=!1)}),e}selectAll(e){this.deviceList.forEach(e.target.checked?o=>{-1===this.selectedDevice.findIndex(c=>c.name===o.name)&&this.selectedDevice.push(o)}:o=>{this.selectedDevice.forEach((c,s)=>{c.name===o.name&&this.selectedDevice.splice(s,1)})})}isChecked(e){return this.selectedDevice.findIndex(t=>t.id===e)>=0}selectOne(e,t){e.target.checked?this.selectedDevice.push(t):this.selectedDevice.forEach((c,s)=>{c.name===t.name&&this.selectedDevice.splice(s,1)})}onPageSelected(){this.resetPagination(),this.getDeviceList()}prePage(){this.setPagination(-1),this.getDeviceList()}nextPage(){this.setPagination(1),this.getDeviceList()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(T.gz),_.Y36(T.F0))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-list"]],inputs:{toolbars:"toolbars",enableSelectAll:"enableSelectAll"},decls:98,vars:12,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L,P,O,c_,s_,a_,l_,r_,A_,d_,C_,T_,g_,D_,S_,I_,p_,u_,f_;return E="Refresh",e="Add",t="Edit",o="Delete",c="ID",s="Name",C="Description",v="Labels",D="AdminState",p="OperatingState",h="Command",f="AutoEvents",N="AssociatedProfile",L="AssociatedService",P="items per page",O="Previous",c_="Next",s_="Warning",a_=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",l_="Cancel",r_="Confirm",A_="DeviceService",d_="Associated Device List",C_="DeviceProfile",T_="Associated Device List",g_="Device List",D_="Associated AutoEvents",S_="Resource",I_="Interval",p_="Onchange",u_="Associated AutoEvents",f_="no associated AutoEvents",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],[4,"ngIf"],[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["data-testid","device-list-refresh-btn",1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],E,["type","button","routerLink","../add-device",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],e,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],t,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],o,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],c,s,C,v,D,p,h,f,N,L,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],P,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],O,[1,"page-item"],c_,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],s_,[1,"modal-body"],a_,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],l_,["type","button",1,"btn","btn-danger",3,"click"],r_,[1,"mr-1"],A_,[1,"text-danger","mr-1"],d_,C_,T_,g_,[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"fa","fa-calendar-check-o","font-weight-bolder"],["routerLink","../../device-profile-center",3,"queryParams"],["routerLink","../../device-service-list"],[1,"badge","badge-success"],[1,"badge","badge-danger"],[4,"ngIf","ngIfElse"],["noAutoEvents",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"text-primary","mx-2","font-weight-bold"],D_,[1,"card-body","p-0"],S_,I_,p_,[4,"ngFor","ngForOf"],[1,"badge","badge-secondary","badge-pill"],[1,""],u_,[1,"card-body","text-center"],[1,"text-warning"],f_,[3,"deviceName"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.YNc(3,h_,7,1,"span",3),_.YNc(4,R_,7,1,"span",3),_.YNc(5,Z_,2,0,"span",3),_.qZA(),_.TgZ(6,"div",4),_.TgZ(7,"div",5),_.TgZ(8,"div",6),_.TgZ(9,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(10,"span"),_._UZ(11,"i",8),_.TgZ(12,"span"),_.SDv(13,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(14,"button",10),_.TgZ(15,"span"),_._UZ(16,"i",11),_.TgZ(17,"span"),_.SDv(18,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(20,"span"),_._UZ(21,"i",14),_.TgZ(22,"span"),_.SDv(23,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(25,"span"),_._UZ(26,"i",17),_.TgZ(27,"span"),_.SDv(28,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(29,"div",19),_.TgZ(30,"table",20),_.TgZ(31,"thead",21),_.TgZ(32,"tr"),_.TgZ(33,"th",22),_.TgZ(34,"input",23),_.NdJ("click",function(c){return t.selectAll(c)}),_.qZA(),_.qZA(),_.TgZ(35,"th",22),_.SDv(36,24),_.qZA(),_.TgZ(37,"th",22),_.SDv(38,25),_.qZA(),_.TgZ(39,"th",22),_.SDv(40,26),_.qZA(),_.TgZ(41,"th",22),_.SDv(42,27),_.qZA(),_.TgZ(43,"th",22),_.SDv(44,28),_.qZA(),_.TgZ(45,"th",22),_.SDv(46,29),_.qZA(),_.TgZ(47,"th",22),_.SDv(48,30),_.qZA(),_.TgZ(49,"th",22),_.SDv(50,31),_.qZA(),_.TgZ(51,"th",22),_.SDv(52,32),_.qZA(),_.TgZ(53,"th",22),_.SDv(54,33),_.qZA(),_.qZA(),_.qZA(),_.TgZ(55,"tbody"),_.YNc(56,q_,32,21,"tr",34),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(57,"div",35),_.TgZ(58,"nav",36),_.TgZ(59,"ul",37),_.TgZ(60,"li",38),_.TgZ(61,"span",39),_.SDv(62,40),_.qZA(),_.qZA(),_.TgZ(63,"li",41),_.TgZ(64,"select",42),_.NdJ("ngModelChange",function(c){return t.pageLimit=c})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(65,"option",43),_._uU(66,"5"),_.qZA(),_.TgZ(67,"option",44),_._uU(68,"10"),_.qZA(),_.TgZ(69,"option",45),_._uU(70,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(71,"li",46),_.TgZ(72,"button",47),_.NdJ("click",function(){return t.prePage()}),_._UZ(73,"i",48),_.TgZ(74,"span"),_.SDv(75,49),_.qZA(),_.qZA(),_.qZA(),_.TgZ(76,"li",50),_.TgZ(77,"button",47),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(78,"span"),_.SDv(79,51),_.qZA(),_._UZ(80,"i",52),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(81,B_,4,2,"div",3),_.YNc(82,W_,2,1,"div",3),_.TgZ(83,"div",53),_.TgZ(84,"div",54),_.TgZ(85,"div",55),_.TgZ(86,"div",56),_.TgZ(87,"h5",57),_._UZ(88,"i",58),_.TgZ(89,"span"),_.SDv(90,59),_.qZA(),_.qZA(),_.qZA(),_.TgZ(91,"div",60),_.SDv(92,61),_.qZA(),_.TgZ(93,"div",62),_.TgZ(94,"button",63),_.SDv(95,64),_.qZA(),_.TgZ(96,"button",65),_.NdJ("click",function(){return t.delete()}),_.SDv(97,66),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(3),_.Q6J("ngIf",""!==t.associatedSvcName),_.xp6(1),_.Q6J("ngIf",""!==t.associatedProfileName),_.xp6(1),_.Q6J("ngIf",""===t.associatedProfileName&&""===t.associatedSvcName),_.xp6(14),_.Q6J("disabled",1!==t.selectedDevice.length),_.xp6(5),_.Q6J("disabled",0===t.selectedDevice.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(22),_.Q6J("ngForOf",t.deviceList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.deviceList.length),_.xp6(4),_.Q6J("ngIf",t.specialFeatureName===t.FEATURE_AUTOEVENT),_.xp6(1),_.Q6J("ngIf",t.specialFeatureName===t.FEATURE_COMMAND))},directives:[n.O5,T.rH,n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr,n.RF,n.n9,n.ED,T.yS,G_],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();class w_{constructor(){this.Schema="",this.Host="",this.Port="",this.User="",this.Password="",this.ClientId="",this.CommandTopic=""}}class F_{constructor(){this.Address="",this.Port="",this.UnitID="",this.Timeout="",this.IdleTimeout=""}}class k_{constructor(){this.Address="",this.UnitID="",this.BaudRate="",this.DataBits="",this.StopBits="",this.Parity="",this.Timeout="",this.IdleTimeout=""}}class z_{constructor(){this.Address="",this.Port=""}}class Y_{constructor(){this.Address="",this.Port="",this.MACAddress=""}}class Q_{constructor(){this.host="",this.port=""}}function j_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",10),_.TgZ(1,"span",11),_.NdJ("click",function(){_.CHM(e);const o=_.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_BUILT_IN)}),_._UZ(2,"i",12),_.TgZ(3,"span"),_.SDv(4,13),_.qZA(),_.qZA(),_.TgZ(5,"span",14),_.NdJ("click",function(){_.CHM(e);const o=_.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_CUSTOM)}),_._UZ(6,"i",12),_.TgZ(7,"span"),_.SDv(8,15),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(2);_.xp6(1),_.ekj("badge-primary",e.protocolTemplateMode===e.TEMPLATE_BUILT_IN)("badge-secondary",e.protocolTemplateMode!==e.TEMPLATE_BUILT_IN),_.xp6(1),_.ekj("fa-check-square",e.protocolTemplateMode===e.TEMPLATE_BUILT_IN),_.xp6(3),_.ekj("badge-primary",e.protocolTemplateMode===e.TEMPLATE_CUSTOM)("badge-secondary",e.protocolTemplateMode!==e.TEMPLATE_CUSTOM),_.xp6(1),_.ekj("fa-check-square",e.protocolTemplateMode===e.TEMPLATE_CUSTOM)}}function K_(i,E){1&i&&_._UZ(0,"div")}function _e(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form",34),_.TgZ(2,"div",35),_.TgZ(3,"div",36),_.TgZ(4,"span",37),_.SDv(5,38),_.qZA(),_.qZA(),_._UZ(6,"input",39),_.qZA(),_.TgZ(7,"div",40),_._UZ(8,"i",41),_.qZA(),_.TgZ(9,"div",35),_.TgZ(10,"div",36),_.TgZ(11,"span",37),_.SDv(12,42),_.qZA(),_.qZA(),_.TgZ(13,"input",43),_.NdJ("ngModelChange",function(o){const s=_.CHM(e).$implicit;return _.oxw(4).builtinProtocolTemplateSelected[s]=o}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw(4);_.xp6(6),_.Q6J("value",e),_.xp6(7),_.Q6J("ngModel",t.builtinProtocolTemplateSelected[e])}}function ee(i,E){if(1&i&&(_.TgZ(0,"div"),_.YNc(1,_e,14,2,"div",33),_.qZA()),2&i){const e=_.oxw(3);_.xp6(1),_.Q6J("ngForOf",e.builtinProtocolTemplateProperties)}}function te(i,E){1&i&&(_.TgZ(0,"h5",48),_._UZ(1,"i",49),_.TgZ(2,"span"),_.SDv(3,50),_.qZA(),_.qZA())}function ie(i,E){if(1&i&&(_.TgZ(0,"div"),_._UZ(1,"span",44),_.TgZ(2,"span",45),_.SDv(3,46),_.qZA(),_.qZA(),_.YNc(4,te,4,0,"h5",47)),2&i){const e=_.oxw(3);_.xp6(4),_.Q6J("ngIf",0===e.builtinProtocolTemplateProperties.length&&e.builtinProtocolName)}}function ne(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",16),_.TgZ(1,"div",17),_.TgZ(2,"form"),_.TgZ(3,"div",18),_.TgZ(4,"label"),_.SDv(5,19),_.qZA(),_.TgZ(6,"select",20),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw(2).builtinProtocolName=o})("ngModelChange",function(){return _.CHM(e),_.oxw(2).onSelectBuiltinProtocolTemplate()}),_.TgZ(7,"option",21),_._uU(8,"device-mqtt"),_.qZA(),_.TgZ(9,"option",22),_._uU(10,"device-rest"),_.qZA(),_.TgZ(11,"option",23),_._uU(12,"device-virtual"),_.qZA(),_.TgZ(13,"option",24),_._uU(14,"device-modbus-tcp"),_.qZA(),_.TgZ(15,"option",25),_._uU(16,"device-modbus-rtu"),_.qZA(),_.TgZ(17,"option",26),_._uU(18,"device-onvif-camera"),_.qZA(),_.TgZ(19,"option",27),_._uU(20,"device-rfid-llrp"),_.qZA(),_.qZA(),_.TgZ(21,"div",28),_.TgZ(22,"small"),_.SDv(23,29),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"div",30),_.YNc(25,ee,2,1,"div",31),_.YNc(26,ie,5,1,"ng-template",null,32,_.W1O),_.qZA(),_.qZA()}if(2&i){const e=_.MAs(27),t=_.oxw(2);_.xp6(6),_.ekj("is-invalid",!t.builtinProtocolName)("is-valid",t.builtinProtocolName),_.Q6J("ngModel",t.builtinProtocolName),_.xp6(19),_.Q6J("ngIf",0!==t.builtinProtocolTemplateProperties.length)("ngIfElse",e)}}function oe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form",34),_.TgZ(2,"div",35),_.TgZ(3,"div",36),_.TgZ(4,"span",37),_.SDv(5,60),_.qZA(),_.qZA(),_.TgZ(6,"input",61),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.propertyName=o}),_.qZA(),_.qZA(),_.TgZ(7,"div",40),_._UZ(8,"i",41),_.qZA(),_.TgZ(9,"div",35),_.TgZ(10,"div",36),_.TgZ(11,"span",37),_.SDv(12,62),_.qZA(),_.qZA(),_.TgZ(13,"input",63),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.propertyValue=o}),_.qZA(),_.qZA(),_.TgZ(14,"div",64),_.TgZ(15,"button",65),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw(3).removeCustomProtocolProperty(c)}),_._UZ(16,"i",66),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit;_.xp6(6),_.Q6J("ngModel",e.propertyName),_.xp6(7),_.Q6J("ngModel",e.propertyValue)}}function Ee(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",16),_.TgZ(1,"div",51),_.TgZ(2,"div",18),_.TgZ(3,"label"),_.SDv(4,52),_.qZA(),_.TgZ(5,"input",53),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw(2).customProtocolName=o})("ngModelChange",function(){return _.CHM(e),_.oxw(2).onCustomProtocolNameChange()}),_.qZA(),_.TgZ(6,"div",28),_.TgZ(7,"small"),_.SDv(8,54),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",55),_.TgZ(10,"div"),_.TgZ(11,"p",56),_._UZ(12,"span",57),_.TgZ(13,"span",58),_.NdJ("click",function(){return _.CHM(e),_.oxw(2).addCustomProtocolProperty()}),_.SDv(14,59),_.qZA(),_.qZA(),_.qZA(),_.YNc(15,oe,17,2,"div",33),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(2);_.xp6(5),_.ekj("is-invalid",!e.customProtocolName)("is-valid",e.customProtocolName),_.Q6J("ngModel",e.customProtocolName),_.xp6(10),_.Q6J("ngForOf",e.customProtocolPropertyBearer)}}function ce(i,E){if(1&i&&(_.TgZ(0,"div",0),_.TgZ(1,"div",4),_.YNc(2,j_,9,12,"div",6),_.YNc(3,K_,1,0,"div",7),_.YNc(4,ne,28,7,"ng-template",null,8,_.W1O),_.YNc(6,Ee,16,6,"ng-template",null,9,_.W1O),_.qZA(),_.qZA()),2&i){const e=_.MAs(5),t=_.MAs(7),o=_.oxw();_.xp6(2),_.Q6J("ngIf",o.mode===o.MODE_ADD),_.xp6(1),_.Q6J("ngIf",o.protocolTemplateMode===o.TEMPLATE_CUSTOM)("ngIfThen",t)("ngIfElse",e)}}let K=(()=>{class i{constructor(){this.MODE_ADD="add",this.MODE_EDIT="edit",this.deviceProtocols={},this.isValid=!1,this.isValidChange=new _.vpe,this.TEMPLATE_CUSTOM="custom",this.TEMPLATE_BUILT_IN="built-in",this.customProtocolPropertyBearer=[],this.builtinProtocolTemplateProperties=[]}ngOnInit(){if(this.mode){if(this.mode==this.MODE_EDIT)return this.protocolTemplateMode=this.TEMPLATE_CUSTOM,this.extractProtocolName(),this.customProtocolName=this.protocolName?this.protocolName:"",void this.setCustomProtocolPropertysBearer();this.mode==this.MODE_ADD&&(this.protocolTemplateMode=this.TEMPLATE_BUILT_IN),this.validate()}}extractProtocolName(){!this.deviceProtocols||0===Object.keys(this.deviceProtocols).length||(this.protocolName=Object.keys(this.deviceProtocols)[0])}onSelectBuiltinProtocolTemplate(){switch(this.validate(),this.builtinProtocolName){case"mqtt":this.builtinProtocolTemplateSelected=new w_;break;case"modbus-tcp":this.builtinProtocolTemplateSelected=new F_;break;case"modbus-rtu":this.builtinProtocolTemplateSelected=new k_;break;case"other":this.builtinProtocolTemplateSelected=new z_;break;case"other-rest":this.builtinProtocolTemplateSelected={};break;case"Onvif":this.builtinProtocolTemplateSelected=new Y_;break;case"tcp":this.builtinProtocolTemplateSelected=new Q_;break;default:this.builtinProtocolTemplateSelected={}}this.builtinProtocolTemplateProperties=Object.keys(this.builtinProtocolTemplateSelected)}changeProtocolTemplateMode(e){this.protocolTemplateMode=e,this.validate()}onCustomProtocolNameChange(){this.validate()}setCustomProtocolPropertysBearer(){if(this.customProtocolName)for(const[e,t]of Object.entries(this.deviceProtocols[this.customProtocolName]))this.customProtocolPropertyBearer.push({propertyName:e,propertyValue:t})}addCustomProtocolProperty(){this.customProtocolPropertyBearer.push({propertyName:"",propertyValue:""})}removeCustomProtocolProperty(e){this.customProtocolPropertyBearer.splice(this.customProtocolPropertyBearer.indexOf(e),1)}getDeviceProtocols(){if(this.deviceProtocols={},this.protocolTemplateMode===this.TEMPLATE_BUILT_IN)this.deviceProtocols[this.builtinProtocolName]=Object.assign({},this.builtinProtocolTemplateSelected);else{let e={};this.customProtocolPropertyBearer.forEach(t=>{e[t.propertyName]=t.propertyValue}),this.deviceProtocols[this.customProtocolName]=e}return this.deviceProtocols}validate(){switch(this.isValid=!0,this.protocolTemplateMode){case this.TEMPLATE_BUILT_IN:this.builtinProtocolName||(this.isValid=!1);break;default:this.customProtocolName||(this.isValid=!1)}this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-protocol"]],inputs:{mode:"mode",deviceProtocols:"deviceProtocols",isValid:"isValid"},outputs:{isValidChange:"isValidChange"},decls:7,vars:1,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L;return E="Device Protocol",e="Avaliable Protocol Templates",t="Custom Protocol Templates",o="Protocol Name",c="the protocol name can't be empty!",s="PropertyName",C="PropertyVaule",v=" all built-in protocol templates refer to the device service released by edgex, such as device-virtual, device-rest, device-mqtt, device-modbus ",D="this device service doesn't need to set protocol properties",p="Protocol Name",h="the protocol name can't be empty!",f="Add Protocol Property",N="PropertyName",L="PropertyValue",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],E,[1,"card-body"],["class","card",4,"ngIf"],["class","mb-2",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["builtinProtocolTemplate",""],["customProtocolTemplate",""],[1,"mb-2"],["role","button",1,"user-select-none","badge","font-weight-bold","mr-3",3,"click"],[1,"fa","fa-square-o","mr-1"],e,["role","button",1,"user-select-none","badge","font-weight-bold",3,"click"],t,[1,"row","border","border-secondary","p-2","rounded-lg","mx-1"],[1,"col-md-2","border-right","border-info"],[1,"form-group"],o,["type","text","name","builtinProtocolName","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","mqtt"],["value","other-rest"],["value","other"],["value","modbus-tcp"],["value","modbus-rtu"],["value","Onvif"],["value","tcp"],[1,"invalid-feedback"],c,[1,"col-md-10"],[4,"ngIf","ngIfElse"],["noBuiltinProperties",""],[4,"ngFor","ngForOf"],[1,"form-inline","mb-1"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],s,["type","text","disabled","",1,"form-control",2,"width","300px",3,"value"],[1,"form-group","mx-2"],[1,"fa","fa-long-arrow-right"],C,["type","text","name","property",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"fa","fa-info-circle","fa-lg","text-success","font-weight-bold","mr-1"],[1,"text-muted"],v,["class","text-warning",4,"ngIf"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],D,[1,"col-md-2","col-lg-2","border-right","border-secondary"],p,["type","text","name","customProtocolName",1,"form-control",3,"ngModel","ngModelChange"],h,[1,"col-md-10","col-lg-10"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],f,N,["type","text","name","propertyName",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],L,["type","text","name","PropertyValue",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.YNc(6,ce,8,4,"div",5),_.qZA(),_.qZA()),2&e&&(_.xp6(6),_.Q6J("ngIf",t.mode))},directives:[n.O5,a._Y,a.JL,a.F,a.EJ,a.Q7,a.JJ,a.On,a.YN,a.Kr,n.sg,a.Fj],styles:[""]}),i})();var __=d(4889);function se(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",35),_.NdJ("click",function(o){const s=_.CHM(e).$implicit;return _.oxw().selectOneSvc(o,s.name)}),_.qZA(),_.qZA(),_.TgZ(3,"td"),_._uU(4),_.qZA(),_.TgZ(5,"td"),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.ALo(15,"date"),_.qZA(),_.TgZ(16,"td"),_._uU(17),_.ALo(18,"date"),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.ekj("table-active",t.isSvcChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isSvcChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Oqu(e.adminState),_.xp6(2),_.Oqu(_.xi3(15,10,e.created,"yyyy-MM-dd hh:mm:ss")),_.xp6(3),_.Oqu(_.xi3(18,13,e.modified,"yyyy-MM-dd hh:mm:ss"))}}let n_=(()=>{class i{constructor(e){this.metaSvc=e,this.singleDeviceSvcSelectedEvent=new _.vpe,this.deviceServiceList=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllDeviceSvcPagination()}findAllDeviceSvcPagination(){this.metaSvc.findAllDeviceServicesPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.deviceServiceList=e.services})}onSingleDeviceSvcSelectedEmitter(){this.singleDeviceSvcSelectedEvent.emit(this.deviceSvcSelected)}isSvcChecked(e){var t;return(null===(t=this.deviceSvcSelected)||void 0===t?void 0:t.name)===e}selectOneSvc(e,t){let c=this;e.target.checked?this.deviceServiceList.forEach(function(s){s.name===t&&(c.deviceSvcSelected=s)}):this.deviceSvcSelected=void 0,this.onSingleDeviceSvcSelectedEmitter()}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceSvcPagination()}prePage(){this.setPagination(-1),this.findAllDeviceSvcPagination()}nextPage(){this.setPagination(1),this.findAllDeviceSvcPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-service-list"]],inputs:{deviceSvcSelected:"deviceSvcSelected"},outputs:{singleDeviceSvcSelectedEvent:"singleDeviceSvcSelectedEvent"},decls:52,vars:4,consts:function(){let E,e,t,o,c,s,C,v,D,p,h;return E="Device Service List",e="ID",t="Name",o="Description",c="Labels",s="AdminState",C="Created",v="Modified",D="items per page",p="Previous",h="Next",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","mr-2","text-danger"],E,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],e,t,o,c,s,C,v,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],D,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],p,[1,"page-item"],h,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"table",6),_.TgZ(8,"thead",7),_.TgZ(9,"tr"),_.TgZ(10,"th",8),_._uU(11,"#"),_.qZA(),_.TgZ(12,"th",8),_.SDv(13,9),_.qZA(),_.TgZ(14,"th",8),_.SDv(15,10),_.qZA(),_.TgZ(16,"th",8),_.SDv(17,11),_.qZA(),_.TgZ(18,"th",8),_.SDv(19,12),_.qZA(),_.TgZ(20,"th",8),_.SDv(21,13),_.qZA(),_.TgZ(22,"th",8),_.SDv(23,14),_.qZA(),_.TgZ(24,"th",8),_.SDv(25,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"tbody"),_.YNc(27,se,19,16,"tr",16),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",17),_.TgZ(29,"nav",18),_.TgZ(30,"ul",19),_.TgZ(31,"li",20),_.TgZ(32,"span",21),_.SDv(33,22),_.qZA(),_.qZA(),_.TgZ(34,"li",23),_.TgZ(35,"select",24),_.NdJ("ngModelChange",function(c){return t.pageLimit=c})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(36,"option",25),_._uU(37,"5"),_.qZA(),_.TgZ(38,"option",26),_._uU(39,"10"),_.qZA(),_.TgZ(40,"option",27),_._uU(41,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(42,"li",28),_.TgZ(43,"button",29),_.NdJ("click",function(){return t.prePage()}),_._UZ(44,"i",30),_.TgZ(45,"span"),_.SDv(46,31),_.qZA(),_.qZA(),_.qZA(),_.TgZ(47,"li",32),_.TgZ(48,"button",29),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(49,"span"),_.SDv(50,33),_.qZA(),_._UZ(51,"i",34),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(27),_.Q6J("ngForOf",t.deviceServiceList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.deviceServiceList.length))},directives:[n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr],pipes:[n.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();var t_=d(2822);function ae(i,E){if(1&i&&(_.TgZ(0,"option",37),_._uU(1),_.qZA()),2&i){const e=E.$implicit;_.s9C("value",e),_.xp6(1),_.Oqu(e)}}function le(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",10),_.TgZ(1,"div",4),_.TgZ(2,"form"),_.TgZ(3,"div",11),_.TgZ(4,"label",12),_.SDv(5,13),_.qZA(),_.TgZ(6,"div",14),_.TgZ(7,"div",15),_.TgZ(8,"input",16),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.interval=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.qZA(),_.TgZ(9,"div",17),_.TgZ(10,"select",18),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.unit=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.TgZ(11,"option",19),_._uU(12,"millisecond"),_.qZA(),_.TgZ(13,"option",20),_._uU(14,"second"),_.qZA(),_.TgZ(15,"option",21),_._uU(16,"minute"),_.qZA(),_.TgZ(17,"option",22),_._uU(18,"hour"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",23),_.SDv(20,24),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(21,"div",25),_.TgZ(22,"label",12),_.SDv(23,26),_.qZA(),_.TgZ(24,"div",14),_.TgZ(25,"select",27),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.onChange=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.TgZ(26,"option",28),_._uU(27,"true"),_.qZA(),_.TgZ(28,"option",29),_._uU(29,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",25),_.TgZ(31,"label",12),_.SDv(32,30),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"select",31),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.resource=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.YNc(35,ae,2,2,"option",32),_.qZA(),_.TgZ(36,"div",23),_.SDv(37,33),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"button",34),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw().removeAutoEvent(c)}),_._UZ(39,"i",35),_.TgZ(40,"span"),_.SDv(41,36),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.xp6(8),_.ekj("is-invalid",!t.eventIntervalNumType(e.interval))("is-valid",t.eventIntervalNumType(e.interval)),_.Q6J("ngModel",e.interval),_.xp6(2),_.Q6J("ngModel",e.unit),_.xp6(15),_.Q6J("ngModel",e.onChange),_.xp6(9),_.ekj("is-invalid",""===e.resource)("is-valid",""!==e.resource),_.Q6J("ngModel",e.resource),_.xp6(1),_.Q6J("ngForOf",t.autoEventResourceNameSet)}}let o_=(()=>{class i{constructor(){this.autoEvents=[],this.autoEventsChange=new _.vpe,this.isValid=!1,this.isValidChange=new _.vpe,this.autoEventDecoratorBearer=[],this.autoEventResourceNameSet=[]}ngOnInit(){}ngOnChanges(){this.resetAutoEventDecoratorBearer(),this.setAutoEventDecorator(this.autoEvents),this.setupAutoEventResourceNameSet(this.deviceProfile),this.resumeOriginalAutoEvents()}onValueChange(){this.resumeOriginalAutoEvents()}resetAutoEventDecoratorBearer(){this.autoEventDecoratorBearer.splice(0,this.autoEventDecoratorBearer.length)}addAutoEvent(){this.autoEventDecoratorBearer.push({interval:"",onChange:!1,resource:"",unit:"ms"}),this.resumeOriginalAutoEvents()}removeAutoEvent(e){this.autoEventDecoratorBearer.splice(this.autoEventDecoratorBearer.indexOf(e),1),this.resumeOriginalAutoEvents()}setupAutoEventResourceNameSet(e){!e||(this.autoEventResourceNameSet.splice(0,this.autoEventResourceNameSet.length),e.deviceResources.forEach((t,o)=>{this.autoEventResourceNameSet.push(t.name)}),e.deviceCommands.forEach((t,o)=>{this.autoEventResourceNameSet.push(t.name)}))}eventIntervalNumType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}setAutoEventDecorator(e){!e||e.forEach(t=>{let o=0;-1!==t.interval.indexOf("ms")?o=t.interval.indexOf("ms"):-1!==t.interval.indexOf("s")?o=t.interval.indexOf("s"):-1!==t.interval.indexOf("m")?o=t.interval.indexOf("m"):-1!==t.interval.indexOf("h")&&(o=t.interval.indexOf("h")),this.autoEventDecoratorBearer.push({interval:t.interval.slice(0,o),onChange:!!t.onChange&&t.onChange,resource:t.sourceName,unit:t.interval.substring(o)})})}resumeOriginalAutoEvents(){this.autoEvents?this.autoEvents.splice(0,this.autoEvents.length):this.autoEvents=[],this.autoEventDecoratorBearer.forEach(e=>{this.autoEvents.push({interval:`${e.interval}${e.unit}`,onChange:!!e.onChange,sourceName:e.resource})}),this.validate(),this.autoEventsChange.emit(this.autoEvents)}validate(){this.isValid=!0,0!==this.autoEventDecoratorBearer.length&&this.autoEventDecoratorBearer.forEach(e=>{this.eventIntervalNumType(e.interval)&&""!==e.resource||(this.isValid=!1)}),this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-auto-event"]],inputs:{autoEvents:"autoEvents",deviceProfile:"deviceProfile",isValid:"isValid"},outputs:{autoEventsChange:"autoEventsChange",isValidChange:"isValidChange"},features:[_.TTD],decls:11,vars:1,consts:function(){let E,e,t,o,c,s,C,v;return E="AutoEvents",e="Add More AutoEvent",t="Interval",o=" can only be a pure integer number ",c="onchange",s="resource",C=" resource can't be empty ",v="Remove",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],E,[1,"card-body"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],e,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"form-group","row","has-validation"],[1,"col-md-2","col-form-label"],t,[1,"col-md-10"],[1,"input-group","mb-3",2,"width","250px"],["type","text","name","interval","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["name","eventIntervalUnit","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","ms"],["value","s"],["value","m"],["value","h"],[1,"invalid-feedback"],o,[1,"form-group","row"],c,["name","onchange",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],["value","true"],["value","false"],s,["name","resource","required","",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],C,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],v,[3,"value"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"p",5),_._UZ(7,"span",6),_.TgZ(8,"span",7),_.NdJ("click",function(){return t.addAutoEvent()}),_.SDv(9,8),_.qZA(),_.qZA(),_.YNc(10,le,42,13,"div",9),_.qZA(),_.qZA()),2&e&&(_.xp6(10),_.Q6J("ngForOf",t.autoEventDecoratorBearer))},directives:[n.sg,a._Y,a.JL,a.F,a.Fj,a.Q7,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),i})();function re(i,E){1&i&&_._UZ(0,"i",33)}function Ae(i,E){1&i&&_._UZ(0,"i",33)}function de(i,E){1&i&&_._UZ(0,"i",33)}function Ce(i,E){1&i&&_._UZ(0,"i",33)}function Te(i,E){1&i&&_._UZ(0,"i",33)}function ge(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw().previous()}),_._UZ(1,"i",35),_.TgZ(2,"span"),_.SDv(3,36),_.qZA(),_.qZA()}}function De(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",37),_.NdJ("click",function(){return _.CHM(e),_.oxw().next()}),_.TgZ(1,"span"),_.SDv(2,38),_.qZA(),_._UZ(3,"i",39),_.qZA()}if(2&i){const e=_.oxw();_.Q6J("disabled",e.stepStateLock())}}function Se(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",40),_.NdJ("click",function(){return _.CHM(e),_.oxw().submit()}),_._UZ(1,"i",41),_.TgZ(2,"span"),_.SDv(3,42),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.Q6J("disabled",e.stepStateLock())}}function Ie(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",43),_.TgZ(1,"app-device-service-list",44),_.NdJ("singleDeviceSvcSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleDeviceSvcSelected(o)}),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(1),_.Q6J("deviceSvcSelected",e.selectedSvc)}}function pe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",43),_.TgZ(1,"app-device-profile-list",45),_.NdJ("singleProfileSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleProfileSelected(o)}),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(1),_.Q6J("singleProfileSelected",e.selectedProfile)("enableSelectAll",!1)("toolbars",!1)("associatedDeviceColumn",!1)}}function ue(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"form",46),_.TgZ(1,"div",47),_.TgZ(2,"label",48),_.SDv(3,49),_.qZA(),_.TgZ(4,"div",50),_.TgZ(5,"input",51),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.name=o}),_.qZA(),_.TgZ(6,"div",52),_.TgZ(7,"small"),_.SDv(8,53),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",54),_.TgZ(10,"label",55),_.SDv(11,56),_.qZA(),_.TgZ(12,"div",50),_.TgZ(13,"input",57),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(14,"div",54),_.TgZ(15,"label",58),_.SDv(16,59),_.qZA(),_.TgZ(17,"div",50),_.TgZ(18,"input",60),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceLabels=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",54),_.TgZ(20,"label",61),_.SDv(21,62),_.qZA(),_.TgZ(22,"div",50),_.TgZ(23,"select",63),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.adminState=o}),_.TgZ(24,"option",64),_._uU(25,"UNLOCKED"),_.qZA(),_.TgZ(26,"option",65),_._uU(27,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(5),_.ekj("is-invalid",!e.newDevice.name)("is-valid",e.newDevice.name),_.Q6J("ngModel",e.newDevice.name),_.xp6(8),_.Q6J("ngModel",e.newDevice.description),_.xp6(5),_.Q6J("ngModel",e.deviceLabels),_.xp6(5),_.Q6J("ngModel",e.newDevice.adminState)}}function fe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",30),_.TgZ(1,"div",1),_.TgZ(2,"span",66),_.SDv(3,67),_.qZA(),_.qZA(),_.TgZ(4,"div",31),_.TgZ(5,"app-device-auto-event",68),_.NdJ("autoEventsChange",function(o){return _.CHM(e),_.oxw().newDevice.autoEvents=o})("isValidChange",function(o){return _.CHM(e),_.oxw().isAutoEventsValid=o}),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(5),_.Q6J("deviceProfile",e.selectedProfile)("autoEvents",e.newDevice.autoEvents)("isValid",e.isAutoEventsValid)}}let me=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errorSvc=o,this.router=c,this.route=s,this.deviceLabels="",this.currentStep=0,this.selectedClass="text-white rounded px-2 bg-success font-weight-bold",this.noSelectedClass="text-white rounded px-2 bg-secondary font-weight-bold",this.isProtocolValid=!1,this.isAutoEventsValid=!1,this.newDevice={adminState:"UNLOCKED",operatingState:"UP"}}ngOnInit(){}onSingleProfileSelected(e){this.selectedProfile=e}onSingleDeviceSvcSelected(e){this.selectedSvc=e}stepStateLock(){switch(this.currentStep){case 0:return void 0===this.selectedSvc;case 1:return void 0===this.selectedProfile;case 2:return!this.newDevice.name;case 3:return!this.isAutoEventsValid;case 4:return!this.isProtocolValid;default:return!1}}next(){this.currentStep+=1}previous(){this.currentStep=this.currentStep-1}submit(){var e,t,o;this.newDevice.labels=null===(e=this.deviceLabels)||void 0===e?void 0:e.split(","),this.newDevice.serviceName=null===(t=this.selectedSvc)||void 0===t?void 0:t.name,this.newDevice.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.newDevice.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.addDevice(this.newDevice).subscribe(c=>{this.errorSvc.handleErrorForAPI(c)||(this.msgSvc.success("Add device",`name: ${this.newDevice.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-device"]],viewQuery:function(e,t){if(1&e&&_.Gf(K,5),2&e){let o;_.iGM(o=_.CRH())&&(t.deviceProtocols=o.first)}},decls:54,vars:22,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L,P;return E="Add Device Wizard",e="SelectDeviceService",t="SelectDeviceProfile",o="DevicePrimary",c="CreateAutoEvent",s="CreateDeviceProtocol",C="Previous",v="Next",D="Submit",p="Name",h="the device name can't be empty!",f="Description",N="Labels",L="AdminState",P=" this step is optional, you can skip it then set it later in edit mode.",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-lightbulb-o","fa-lg","mr-2","text-danger"],[1,"text-secondary"],E,[1,"card-header","py-2"],["aria-label","breadcrumb",1,"mb-0","p-0"],[1,"breadcrumb","p-1","mb-0","bg-light"],[1,"breadcrumb-item"],[3,"ngClass"],e,["class","fa fa-check ml-1",4,"ngIf"],t,o,c,[1,"breadcrumb-item","active"],s,[1,"card-header","py-1"],["class","btn btn-info btn-sm",3,"click",4,"ngIf"],["class","btn btn-primary btn-sm float-right",3,"disabled","click",4,"ngIf","ngIfElse"],["stepDone",""],[1,"card-body","p-0"],[3,"ngSwitch"],[3,"ngSwitchCase"],["SelectDeviceService",""],["SelectDeviceProfile",""],["DevicePrimary",""],["CreateAutoEvent",""],["CreateDeviceProtocol",""],[1,"card","border-0"],[1,"card-body"],[3,"mode","isValid","isValidChange"],[1,"fa","fa-check","ml-1"],[1,"btn","btn-info","btn-sm",3,"click"],[1,"fa","fa-long-arrow-left","mr-1"],C,[1,"btn","btn-primary","btn-sm","float-right",3,"disabled","click"],v,[1,"fa","fa-long-arrow-right","ml-1"],[1,"btn","btn-success","btn-sm","ml-4","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],D,[1,"p-2"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"singleProfileSelected","enableSelectAll","toolbars","associatedDeviceColumn","singleProfileSelectedEvent"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","deviceName","required","",1,"col-md-2","col-form-label"],p,[1,"col-md-10"],["type","text","id","validationDeviceNameFeedback","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationDeviceNameFeedback",1,"invalid-feedback"],h,[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],f,["type","text","name","deviceDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","deviceLabels",1,"col-md-2","col-form-label"],N,["type","text","name","deviceLabels","placeholder","Multiple Labels are separated by commas: label1,label2,label3",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],L,["name","deviceAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],[1,"fa","fa-info-circle","text-warning","font-weight-bold"],P,[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(e,t){if(1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span",2),_._UZ(3,"span",3),_.TgZ(4,"span",4),_.SDv(5,5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(6,"div",6),_.TgZ(7,"nav",7),_.TgZ(8,"ol",8),_.TgZ(9,"li",9),_.TgZ(10,"span",10),_.TgZ(11,"span"),_.SDv(12,11),_.qZA(),_.YNc(13,re,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(14,"li",9),_.TgZ(15,"span",10),_.TgZ(16,"span"),_.SDv(17,13),_.qZA(),_.YNc(18,Ae,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(19,"li",9),_.TgZ(20,"span",10),_.TgZ(21,"span"),_.SDv(22,14),_.qZA(),_.YNc(23,de,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(24,"li",9),_.TgZ(25,"span",10),_.TgZ(26,"span"),_.SDv(27,15),_.qZA(),_.YNc(28,Ce,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(29,"li",16),_.TgZ(30,"span",10),_.TgZ(31,"span"),_.SDv(32,17),_.qZA(),_.YNc(33,Te,1,0,"i",12),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(34,"div",18),_.YNc(35,ge,4,0,"button",19),_.YNc(36,De,4,1,"button",20),_.YNc(37,Se,4,1,"ng-template",null,21,_.W1O),_.qZA(),_.TgZ(39,"div",22),_.TgZ(40,"div",23),_.YNc(41,Ie,2,1,"ng-template",24,25,_.W1O),_.YNc(43,pe,2,4,"ng-template",24,26,_.W1O),_.YNc(45,ue,28,8,"ng-template",24,27,_.W1O),_.YNc(47,fe,6,3,"ng-template",24,28,_.W1O),_.TgZ(49,"div",null,29),_.TgZ(51,"div",30),_.TgZ(52,"div",31),_.TgZ(53,"app-device-protocol",32),_.NdJ("isValidChange",function(c){return t.isProtocolValid=c}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e){const o=_.MAs(38);_.xp6(10),_.Q6J("ngClass",t.currentStep>=0?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=1),_.xp6(2),_.Q6J("ngClass",t.currentStep>=1?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=2),_.xp6(2),_.Q6J("ngClass",t.currentStep>=2?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=3),_.xp6(2),_.Q6J("ngClass",t.currentStep>=3?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=4),_.xp6(2),_.Q6J("ngClass",t.currentStep>=4?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=5),_.xp6(2),_.Q6J("ngIf",t.currentStep),_.xp6(1),_.Q6J("ngIf",4>t.currentStep)("ngIfElse",o),_.xp6(4),_.Q6J("ngSwitch",t.currentStep),_.xp6(1),_.Q6J("ngSwitchCase",0),_.xp6(2),_.Q6J("ngSwitchCase",1),_.xp6(2),_.Q6J("ngSwitchCase",2),_.xp6(2),_.Q6J("ngSwitchCase",3),_.xp6(2),_.Udp("display",4===t.currentStep?"":"none"),_.xp6(4),_.Q6J("mode","add")("isValid",t.isProtocolValid)}},directives:[n.mk,n.O5,n.RF,n.n9,K,n_,t_.f,a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr,o_],styles:['.breadcrumb[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:before{color:inherit;font-weight:inherit;content:">>";padding:0 5px}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}']}),i})();function ve(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"div",2),_._UZ(2,"i",3),_.TgZ(3,"span",4),_.SDv(4,5),_.qZA(),_.TgZ(5,"span",6),_._uU(6),_.qZA(),_.TgZ(7,"button",7),_.NdJ("click",function(){return _.CHM(e),_.oxw().save()}),_.TgZ(8,"span"),_._UZ(9,"i",8),_.TgZ(10,"span"),_.SDv(11,9),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"div",11),_.TgZ(14,"div",2),_._UZ(15,"i",12),_.TgZ(16,"span"),_.SDv(17,13),_.qZA(),_.qZA(),_.TgZ(18,"div",10),_.TgZ(19,"form"),_.TgZ(20,"div",14),_.TgZ(21,"label",15),_.SDv(22,16),_.qZA(),_.TgZ(23,"div",17),_.TgZ(24,"input",18),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.name=o}),_.qZA(),_.TgZ(25,"div",19),_.SDv(26,20),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",14),_.TgZ(28,"label",15),_.SDv(29,21),_.qZA(),_.TgZ(30,"div",17),_.TgZ(31,"input",22),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(32,"div",14),_.TgZ(33,"label",15),_.SDv(34,23),_.qZA(),_.TgZ(35,"div",17),_.TgZ(36,"input",24),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceLabels=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(37,"div",14),_.TgZ(38,"label",25),_.SDv(39,26),_.qZA(),_.TgZ(40,"div",17),_.TgZ(41,"select",27),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.adminState=o}),_.TgZ(42,"option",28),_._uU(43,"UNLOCKED"),_.qZA(),_.TgZ(44,"option",29),_._uU(45,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(46,"div",14),_.TgZ(47,"label",30),_.SDv(48,31),_.qZA(),_.TgZ(49,"div",17),_._UZ(50,"input",32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",33),_.TgZ(52,"app-device-service-list",34),_.NdJ("singleDeviceSvcSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleDeviceSvcSelected(o)}),_.qZA(),_.qZA(),_.TgZ(53,"div",33),_.TgZ(54,"app-device-profile-list",35),_.NdJ("singleProfileSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleProfileSelected(o)}),_.qZA(),_.qZA(),_.TgZ(55,"div",33),_.TgZ(56,"app-device-protocol",36),_.NdJ("isValidChange",function(o){return _.CHM(e),_.oxw().isProtocolValid=o}),_.qZA(),_.qZA(),_.TgZ(57,"div",33),_.TgZ(58,"app-device-auto-event",37),_.NdJ("autoEventsChange",function(o){return _.CHM(e),_.oxw().device.autoEvents=o})("isValidChange",function(o){return _.CHM(e),_.oxw().isAutoEventsValid=o}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(6),_.Oqu(e.device.name),_.xp6(1),_.Q6J("disabled",e.validateBeforeSave()),_.xp6(17),_.ekj("is-invalid",""===e.device.name),_.Q6J("ngModel",e.device.name),_.xp6(7),_.Q6J("ngModel",e.device.description),_.xp6(5),_.Q6J("ngModel",e.deviceLabels),_.xp6(5),_.Q6J("ngModel",e.device.adminState),_.xp6(9),_.Q6J("value",e.device.operatingState),_.xp6(2),_.Q6J("deviceSvcSelected",e.selectedSvc),_.xp6(2),_.Q6J("enableSelectAll",!1)("toolbars",!1)("singleProfileSelected",e.selectedProfile)("associatedDeviceColumn",!1),_.xp6(2),_.Q6J("mode","edit")("deviceProtocols",e.device.protocols)("isValid",e.isProtocolValid),_.xp6(2),_.Q6J("deviceProfile",e.selectedProfile)("autoEvents",e.device.autoEvents)("isValid",e.isAutoEventsValid)}}let Ne=(()=>{class i{constructor(e,t,o,c,s){this.router=e,this.route=t,this.metaSvc=o,this.msgSvc=c,this.errorSvc=s,this.isProtocolValid=!0,this.isAutoEventsValid=!0}ngOnInit(){this.route.queryParams.subscribe(e=>{!e.deviceName||this.metaSvc.findDeviceByName(e.deviceName).subscribe(o=>{var c;this.device=o.device,this.deviceLabels=null===(c=this.device.labels)||void 0===c?void 0:c.join(","),this.setDefaultDeviceSvcSelected(this.device.serviceName),this.setDefaultDeviceProfileSelected(this.device.profileName)})})}onSingleProfileSelected(e){this.selectedProfile=e}onSingleDeviceSvcSelected(e){this.selectedSvc=e}setDefaultDeviceSvcSelected(e){this.metaSvc.findDevcieServiceByName(e).subscribe(t=>{this.selectedSvc=t.service})}setDefaultDeviceProfileSelected(e){this.metaSvc.findProfileByName(e).subscribe(t=>{this.selectedProfile=t.profile})}validateBeforeSave(){return""===this.device.name||!this.isAutoEventsValid||!this.isProtocolValid}save(){var e,t,o;this.device.labels=null===(e=this.deviceLabels)||void 0===e?void 0:e.split(","),this.device.serviceName=null===(t=this.selectedSvc)||void 0===t?void 0:t.name,this.device.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.device.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.updateDevice(this.device).subscribe(c=>{var s;this.errorSvc.handleErrorForAPI(c)||(this.msgSvc.success("update device",`name: ${null===(s=this.device)||void 0===s?void 0:s.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(T.F0),_.Y36(T.gz),_.Y36(u.D),_.Y36(V.e),_.Y36(__.T))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-device"]],viewQuery:function(e,t){if(1&e&&_.Gf(K,5),2&e){let o;_.iGM(o=_.CRH())&&(t.deviceProtocols=o.first)}},decls:1,vars:1,consts:function(){let E,e,t,o,c,s,C,v,D;return E="Edit Device",e="Save",t="Device Primary",o="DeviceName",c=" device name can't not be empty! ",s="Description",C="Labels",v="AdminState",D="OperatingState",[["class","card",4,"ngIf"],[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","text-danger","fa-lg"],[1,"mx-2"],E,[1,"text-primary"],["type","button",1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],e,[1,"card-body"],[1,"card","mb-3"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],t,[1,"form-group","row"],[1,"col-md-2","col-form-label"],o,[1,"col-md-10"],["type","text","name","name","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],c,s,["type","text","name","description",1,"form-control",3,"ngModel","ngModelChange"],C,["type","text","name","labels",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],v,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","operatingState",1,"col-md-2","col-form-label"],D,["type","text","name","operatingState","disabled","",1,"form-control",3,"value"],[1,"mb-3"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"enableSelectAll","toolbars","singleProfileSelected","associatedDeviceColumn","singleProfileSelectedEvent"],[3,"mode","deviceProtocols","isValid","isValidChange"],[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(e,t){1&e&&_.YNc(0,ve,59,20,"div",0),2&e&&_.Q6J("ngIf",t.device)},directives:[n.O5,a._Y,a.JL,a.F,a.Fj,a.Q7,a.JJ,a.On,a.EJ,a.YN,a.Kr,n_,t_.f,K,o_],styles:["input[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})(),Me=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-profile-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[T.lC],styles:[""]}),i})(),Pe=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errSvc=o,this.router=c,this.route=s}ngOnInit(){this.renderYamlSource()}renderYamlSource(){let e=document.getElementById("editor");this.codeMirrorEditor=CodeMirror.fromTextArea(e,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px"),this.codeMirrorEditor.on("drop",(t,o)=>{var c;this.yamlFile=null===(c=o.dataTransfer)||void 0===c?void 0:c.files[0]}),this.codeMirrorEditor.on("paste",(t,o)=>{})}submit(){this.profileYamlSource=this.codeMirrorEditor.getValue(),this.metaSvc.addProfileYamlByNameViaUIBackend(this.profileYamlSource).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add profile"),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-profile"]],decls:15,vars:0,consts:function(){let E,e,t;return E="Add Profile",e="\xA0drag-and-drop is enabled",t="Submit",[[1,"card"],[1,"card-header"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],E,[1,"fa","fa-info-circle","text-success","font-weight-bold"],e,[1,"float-right"],["type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],["id","editor","name","editor"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span"),_._UZ(3,"span",2),_.TgZ(4,"span",3),_.SDv(5,4),_.qZA(),_.TgZ(6,"span",5),_.SDv(7,6),_.qZA(),_.qZA(),_.TgZ(8,"span",7),_.TgZ(9,"button",8),_.NdJ("click",function(){return t.submit()}),_._UZ(10,"i",9),_.TgZ(11,"span"),_.SDv(12,10),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"div",11),_._UZ(14,"textarea",12),_.qZA(),_.qZA())},styles:[""]}),i})(),Oe=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errSvc=o,this.router=c,this.route=s}ngOnInit(){this.renderYamlSource(),this.route.queryParams.subscribe(e=>{e.profileName&&(this.profileName=e.profileName,this.metaSvc.findProfileYamlByNameViaUIBackend(e.profileName).subscribe(t=>{this.codeMirrorEditor.setValue(t),this.codeMirrorEditor.refresh()}))})}update(){this.codeMirrorEditor.refresh(),this.metaSvc.updateProfileYamlContentViaUIBackend(this.codeMirrorEditor.getValue()).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update profile",`name: ${this.profileName}`),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}renderYamlSource(){let e=document.getElementById("editor-edit");this.codeMirrorEditor=CodeMirror.fromTextArea(e,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px")}ngOnDestroy(){this.codeMirrorEditor=null}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-profile"]],decls:13,vars:1,consts:function(){let E;return E="Save",[[1,"card"],[1,"card-header"],[1,"text-danger","fa","fa-edit","mr-2"],[1,"float-right"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],E,[1,"card-body","p-0"],["id","editor-edit","name","editor"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span"),_._UZ(3,"span",2),_._uU(4),_.qZA(),_.TgZ(5,"span",3),_.TgZ(6,"button",4),_.NdJ("click",function(){return t.update()}),_.TgZ(7,"span"),_._UZ(8,"i",5),_.TgZ(9,"span"),_.SDv(10,6),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",7),_._UZ(12,"textarea",8),_.qZA(),_.qZA()),2&e&&(_.xp6(4),_.hij("",t.profileName," "))},styles:[""]}),i})(),Ge=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-provision-watcher-center"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"provision-watcher-center works!"),_.qZA())},styles:[""]}),i})(),he=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-provision-watcher-list"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"provision-watcher-list works!"),_.qZA())},styles:[""]}),i})(),Re=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-provision-watcher"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"add-provision-watcher works!"),_.qZA())},styles:[""]}),i})(),Ze=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-provision-watcher"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"edit-provision-watcher works!"),_.qZA())},styles:[""]}),i})();var Ue=d(8253),Ve=d(1964),Le=d(4294),be=d(5894),$e=d(7216);let E_=(()=>{class i{constructor(e,t){this.router=e,this.metadataSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.metadataSvc.ping().pipe((0,Le.q)(1),(0,be.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"metadata",routerPath:`/${t.url.split("/")[1]}`}})),(0,$e.z)(()=>(0,Ve.of)(!0)))}}return i.\u0275fac=function(e){return new(e||i)(_.LFG(T.F0),_.LFG(u.D))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const xe=[{path:"",component:x,canActivate:[Ue.a,E_],canActivateChild:[E_],children:[{path:"",redirectTo:"device-service-list",pathMatch:"full"},{path:"device-service-list",component:R},{path:"device-center",component:l,children:[{path:"",redirectTo:"device-list",pathMatch:"full"},{path:"device-list",component:H_},{path:"add-device",component:me},{path:"edit-device",component:Ne}]},{path:"device-profile-center",component:Me,children:[{path:"",redirectTo:"device-profile-list",pathMatch:"full"},{path:"device-profile-list",component:t_.f},{path:"edit-profile",component:Oe},{path:"add-profile",component:Pe}]},{path:"provision-watcher-center",component:Ge,children:[{path:"",redirectTo:"provision-watcher-list",pathMatch:"full"},{path:"provision-watcher-list",component:he},{path:"edit-provision-watcher",component:Ze},{path:"add-provision-watcher",component:Re}]}]}];let qe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[T.Bz.forChild(xe)],T.Bz]}),i})(),Xe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[n.ez,a.u5,qe,a.UX]]}),i})()},2822:(i_,b,d)=>{d.d(b,{f:()=>e_});var n=d(476),a=d(2437),T=d(7822),_=d(9502),x=d(8583),u=d(3092);function V(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"div",50),n.TgZ(1,"div",51),n.TgZ(2,"button",52),n.NdJ("click",function(){return n.CHM(l),n.oxw().refresh()}),n.TgZ(3,"span"),n._UZ(4,"i",53),n.TgZ(5,"span"),n.SDv(6,54),n.qZA(),n.qZA(),n.qZA(),n.TgZ(7,"button",55),n.TgZ(8,"span"),n._UZ(9,"i",56),n.TgZ(10,"span"),n.SDv(11,57),n.qZA(),n.qZA(),n.qZA(),n.TgZ(12,"button",58),n.NdJ("click",function(){return n.CHM(l),n.oxw().edit()}),n.TgZ(13,"span"),n._UZ(14,"i",59),n.TgZ(15,"span"),n.SDv(16,60),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"button",61),n.NdJ("click",function(){return n.CHM(l),n.oxw().deleteConfirm()}),n.TgZ(18,"span"),n._UZ(19,"i",62),n.TgZ(20,"span"),n.SDv(21,63),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&I){const l=n.oxw();n.xp6(12),n.Q6J("disabled",1!==l.multiProfilesSelected.length),n.xp6(5),n.Q6J("disabled",0===l.multiProfilesSelected.length)}}function S(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"input",64),n.NdJ("click",function(g){return n.CHM(l),n.oxw().selectAll(g)}),n.qZA()}if(2&I){const l=n.oxw();n.Q6J("checked",l.isCheckedAll())}}function m(I,R){1&I&&(n.TgZ(0,"th",9),n.SDv(1,65),n.qZA())}const G=function(I){return{profileName:I}};function U(I,R){if(1&I&&(n.TgZ(0,"td",69),n.TgZ(1,"a",70),n._UZ(2,"i",71),n.qZA(),n.qZA()),2&I){const l=n.oxw().$implicit;n.xp6(1),n.Q6J("queryParams",n.VKq(1,G,l.name))}}function X(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"tr"),n.TgZ(1,"td"),n.TgZ(2,"input",66),n.NdJ("click",function(g){const q=n.CHM(l).$implicit;return n.oxw().selectOne(g,q.name)}),n.qZA(),n.qZA(),n.TgZ(3,"td",67),n._uU(4),n.qZA(),n.TgZ(5,"td",67),n._uU(6),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.YNc(9,U,3,3,"td",68),n.TgZ(10,"td"),n._uU(11),n.qZA(),n.TgZ(12,"td"),n._uU(13),n.qZA(),n.TgZ(14,"td"),n._uU(15),n.qZA(),n.qZA()}if(2&I){const l=R.$implicit,r=n.oxw();n.ekj("table-active",r.isChecked(l.name)),n.xp6(2),n.s9C("value",l.name),n.Q6J("checked",r.isChecked(l.name)),n.xp6(2),n.Oqu(l.id),n.xp6(2),n.Oqu(l.name),n.xp6(2),n.Oqu(l.description),n.xp6(1),n.Q6J("ngIf",r.associatedDeviceColumn),n.xp6(2),n.Oqu(l.labels),n.xp6(2),n.Oqu(l.manufacturer),n.xp6(2),n.Oqu(l.model)}}let e_=(()=>{class I{constructor(l,r,g,Z){this.metaSvc=l,this.msgSvc=r,this.route=g,this.router=Z,this.associatedDeviceColumn=!0,this.toolbars=!0,this.enableSelectAll=!0,this.singleProfileSelectedEvent=new n.vpe,this.multipleProfileSelectedEvent=new n.vpe,this.profileList=[],this.multiProfilesSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(l=>{l.profileName?this.metaSvc.findProfileByName(l.profileName).subscribe(r=>{this.profileList=[],this.profileList.push(r.profile)}):this.findAllDeviceProfilesPagination()})}findAllDeviceProfilesPagination(){this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}onSingleProfileSelectedEmitter(){this.singleProfileSelectedEvent.emit(this.singleProfileSelected)}onMultipleProfileSelectedEmitter(){this.multipleProfileSelectedEvent.emit(this.multiProfilesSelected)}refresh(){this.metaSvc.allDeviceProfolesPagination(0,this.pageLimit).subscribe(l=>{this.profileList=l.profiles,this.msgSvc.success("refresh"),this.pagination=1,this.resetCheckbox()})}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceProfilesPagination()}prePage(){this.setPagination(-1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}nextPage(){this.setPagination(1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}setPageLimit(l){this.pageLimit=l}setPagination(l){1===l?this.pagination+=1:-1===l&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit,this.resetCheckbox()}resetPagination(){this.pagination=1,this.resetCheckbox()}resetCheckbox(){}edit(){this.router.navigate(["../edit-profile"],{relativeTo:this.route,queryParams:{profileName:this.multiProfilesSelected[0]}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.multiProfilesSelected.forEach(l=>{this.metaSvc.deleteProfileByName(l).subscribe(()=>{this.multiProfilesSelected=[],this.profileList.forEach((r,g)=>{r.name==l&&(this.profileList.splice(g,1),this.msgSvc.success("delete",` Name: ${r.name}`))})})}),$("#deleteConfirmDialog").modal("hide")}isSingleProfileChecked(l){var r;return(null===(r=this.singleProfileSelected)||void 0===r?void 0:r.name)===l}selectSingleProfile(l,r){l.target.checked?this.profileList.forEach(Z=>{Z.name===r&&(this.singleProfileSelected=Z)}):this.singleProfileSelected=void 0,this.onSingleProfileSelectedEmitter()}isCheckedAll(){let l=!0;return this.profileList&&0===this.profileList.length&&(l=!1),this.profileList.forEach(r=>{-1===this.multiProfilesSelected.indexOf(r.name)&&(l=!1)}),l}selectAll(l){this.profileList.forEach(l.target.checked?g=>{this.multiProfilesSelected.includes(g.name)||this.multiProfilesSelected.push(g.name)}:g=>{this.multiProfilesSelected.includes(g.name)&&this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(g.name),1)}),this.onMultipleProfileSelectedEmitter()}isChecked(l){return this.enableSelectAll?this.multiProfilesSelected.includes(l):this.isSingleProfileChecked(l)}selectOne(l,r){this.enableSelectAll?(l.target.checked?this.multiProfilesSelected.push(r):this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(r),1),this.onMultipleProfileSelectedEmitter()):this.selectSingleProfile(l,r)}}return I.\u0275fac=function(l){return new(l||I)(n.Y36(a.D),n.Y36(T.e),n.Y36(_.gz),n.Y36(_.F0))},I.\u0275cmp=n.Xpm({type:I,selectors:[["app-device-profile-list"]],inputs:{associatedDeviceColumn:"associatedDeviceColumn",toolbars:"toolbars",enableSelectAll:"enableSelectAll",multiProfilesSelected:"multiProfilesSelected",singleProfileSelected:"singleProfileSelected"},outputs:{singleProfileSelectedEvent:"singleProfileSelectedEvent",multipleProfileSelectedEvent:"multipleProfileSelectedEvent"},decls:67,vars:7,consts:function(){let R,l,r,g,Z,q,J,y,B,W,H,w,F,k,z,Y,Q,j;return R="Device Profile List",l="Name",r="Description",g="Labels",Z="Manufacturer",q="Model",J="items per page",y="Previous",B="Next",W="Warning",H=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",w="Cancel",F="Confirm",k="Refresh",z="Add",Y="Edit",Q="Delete",j="AssociatedDevice",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],R,[1,"card-body","p-0"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox",3,"checked","click",4,"ngIf"],l,r,["scope","col",4,"ngIf"],g,Z,q,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],J,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],y,[1,"page-item"],B,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],W,[1,"modal-body"],H,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],w,["type","button",1,"btn","btn-danger",3,"click"],F,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],k,["type","button","routerLink","../add-profile",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],z,["type","button","data-toggle","tooltip","data-placement","top","title","only one should be selected",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],Y,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],Q,["type","checkbox",3,"checked","click"],j,["type","checkbox",3,"value","checked","click"],[1,"user-select-all"],["class","text-center",4,"ngIf"],[1,"text-center"],["routerLink","../../device-center",1,"badge","badge-pill","badge-primary",3,"queryParams"],[1,"fa","fa-sitemap"]]},template:function(l,r){1&l&&(n.TgZ(0,"div",0),n.TgZ(1,"div",1),n._UZ(2,"i",2),n.TgZ(3,"span"),n.SDv(4,3),n.qZA(),n.qZA(),n.TgZ(5,"div",4),n.YNc(6,V,22,2,"div",5),n.TgZ(7,"div",6),n.TgZ(8,"table",7),n.TgZ(9,"thead",8),n.TgZ(10,"tr"),n.TgZ(11,"th",9),n.YNc(12,S,1,1,"input",10),n.qZA(),n.TgZ(13,"th",9),n._uU(14,"ID"),n.qZA(),n.TgZ(15,"th",9),n.SDv(16,11),n.qZA(),n.TgZ(17,"th",9),n.SDv(18,12),n.qZA(),n.YNc(19,m,2,0,"th",13),n.TgZ(20,"th",9),n.SDv(21,14),n.qZA(),n.TgZ(22,"th",9),n.SDv(23,15),n.qZA(),n.TgZ(24,"th",9),n.SDv(25,16),n.qZA(),n.qZA(),n.qZA(),n.TgZ(26,"tbody"),n.YNc(27,X,16,11,"tr",17),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(28,"div",18),n.TgZ(29,"nav",19),n.TgZ(30,"ul",20),n.TgZ(31,"li",21),n.TgZ(32,"span",22),n.SDv(33,23),n.qZA(),n.qZA(),n.TgZ(34,"li",24),n.TgZ(35,"select",25),n.NdJ("ngModelChange",function(Z){return r.pageLimit=Z})("ngModelChange",function(){return r.onPageSelected()}),n.TgZ(36,"option",26),n._uU(37,"5"),n.qZA(),n.TgZ(38,"option",27),n._uU(39,"10"),n.qZA(),n.TgZ(40,"option",28),n._uU(41,"20"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(42,"li",29),n.TgZ(43,"button",30),n.NdJ("click",function(){return r.prePage()}),n._UZ(44,"i",31),n.TgZ(45,"span"),n.SDv(46,32),n.qZA(),n.qZA(),n.qZA(),n.TgZ(47,"li",33),n.TgZ(48,"button",30),n.NdJ("click",function(){return r.nextPage()}),n.TgZ(49,"span"),n.SDv(50,34),n.qZA(),n._UZ(51,"i",35),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(52,"div",36),n.TgZ(53,"div",37),n.TgZ(54,"div",38),n.TgZ(55,"div",39),n.TgZ(56,"h5",40),n._UZ(57,"i",41),n.TgZ(58,"span"),n.SDv(59,42),n.qZA(),n.qZA(),n.qZA(),n.TgZ(60,"div",43),n.SDv(61,44),n.qZA(),n.TgZ(62,"div",45),n.TgZ(63,"button",46),n.SDv(64,47),n.qZA(),n.TgZ(65,"button",48),n.NdJ("click",function(){return r.delete()}),n.SDv(66,49),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&l&&(n.xp6(6),n.Q6J("ngIf",r.toolbars),n.xp6(6),n.Q6J("ngIf",r.enableSelectAll),n.xp6(7),n.Q6J("ngIf",r.associatedDeviceColumn),n.xp6(8),n.Q6J("ngForOf",r.profileList),n.xp6(8),n.Q6J("ngModel",r.pageLimit),n.xp6(8),n.Q6J("disabled",1===r.pagination),n.xp6(5),n.Q6J("disabled",r.pageLimit>r.profileList.length))},directives:[x.O5,x.sg,u.EJ,u.JJ,u.On,u.YN,u.Kr,_.rH,_.yS],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),I})()},7982:(i_,b,d)=>{d.d(b,{V:()=>x});var n=d(1841),a=d(5894),T=d(476),_=d(4889);let x=(()=>{class u{constructor(S,m){this.http=S,this.errorSvc=m,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new n.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,a.K)(m=>this.errorSvc.handleError(m)))}findCommnadsByDeviceId(S){return this.http.get(`${this.commandsByDeviceIdUrl}${S}`).pipe((0,a.K)(G=>this.errorSvc.handleError(G)))}allDeviceCoreCommandsPagination(S,m){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${S}&limit=${m}`).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}findDeviceAssociatedCommnadsByDeviceName(S){return this.http.get(`${this.commandsByDeviceNameUrl}${S}`).pipe((0,a.K)(G=>this.errorSvc.handleError(G)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,a.K)(m=>this.errorSvc.handleError(m)))}issueGetBinaryCmd(S,m){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${S}/command/${m}`,{responseType:"arraybuffer"}).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}issueGetCmd(S,m){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${S}/${m}?ds-pushevent=yes&ds-returnevent=yes`).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}issueSetCmd(S,m,G){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${S}/${m}`,JSON.stringify(G),this.httpPostOrPutJSONOptions).pipe((0,a.K)(X=>this.errorSvc.handleError(X)))}}return u.\u0275fac=function(S){return new(S||u)(T.LFG(n.eN),T.LFG(_.T))},u.\u0275prov=T.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/155.99bd04e59759370573ae.js b/cmd/edgex-ui-server/static/web/en-US/155.99bd04e59759370573ae.js deleted file mode 100644 index ba137ad2..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/155.99bd04e59759370573ae.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[155],{4155:(pt,N,d)=>{d.r(N),d.d(N,{RuleEngineModule:()=>ut});var p=d(8583),s=d(3092),c=d(9502),e=d(476);let X=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rule-engine"]],decls:11,vars:0,consts:function(){let a,t;return a="Stream",t="Rules",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./stream-center","routerLinkActive","active",1,"nav-link"],a,["routerLink","./rules-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.qZA(),e.TgZ(6,"li",3),e.TgZ(7,"a",6),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e._UZ(10,"router-outlet"),e.qZA(),e.qZA())},directives:[c.yS,c.Od,c.lC],styles:[""]}),o})();var A=d(4791),f=d(7822),w=d(6322),B=d(1302);function Q(o,a){1&o&&e._UZ(0,"i",26)}function H(o,a){1&o&&e._UZ(0,"i",27)}let W=(()=>{class o{constructor(){this.collapseToggleStatus=!1,this.optionalChange=new e.vpe,this._optional={Qos:"0",Retained:"false",SkipCertVerify:"true",AutoReconnect:"true",CleanSession:"true"}}get optional(){return this._optional}set optional(t){Object.assign(this._optional,t)}ngOnInit(){}ngOnChanges(){this.optionalChange.emit(this.optional)}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edgex-sink-optional"]],inputs:{optional:"optional"},outputs:{optionalChange:"optionalChange"},features:[e.TTD],decls:102,vars:27,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["id","collapse-edgex-sink-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Password",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["type","number","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retained",1,"custom-select",3,"ngModel","ngModelChange"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","CleanSession",1,"custom-select",3,"ngModel","ngModelChange"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","CertFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","CertPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return _.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink Options Setting"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,Q,1,0,"i",5),e.YNc(7,H,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e._uU(12,"ClientId"),e.qZA(),e.TgZ(13,"div",10),e.TgZ(14,"input",11),e.NdJ("ngModelChange",function(i){return _.optional.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",8),e.TgZ(16,"label",9),e._uU(17,"Username"),e.qZA(),e.TgZ(18,"div",10),e.TgZ(19,"input",12),e.NdJ("ngModelChange",function(i){return _.optional.Username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",8),e.TgZ(21,"label",9),e._uU(22,"Password"),e.qZA(),e.TgZ(23,"div",10),e.TgZ(24,"input",13),e.NdJ("ngModelChange",function(i){return _.optional.Password=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",8),e.TgZ(26,"label",9),e._uU(27,"Qos"),e.qZA(),e.TgZ(28,"div",10),e.TgZ(29,"select",14),e.NdJ("ngModelChange",function(i){return _.optional.Qos=i}),e.TgZ(30,"option",15),e._uU(31,"0"),e.qZA(),e.TgZ(32,"option",15),e._uU(33,"1"),e.qZA(),e.TgZ(34,"option",15),e._uU(35,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e.TgZ(37,"label",9),e._uU(38,"KeepAlive"),e.qZA(),e.TgZ(39,"div",10),e.TgZ(40,"input",16),e.NdJ("ngModelChange",function(i){return _.optional.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e._uU(43,"Retained"),e.qZA(),e.TgZ(44,"div",10),e.TgZ(45,"select",17),e.NdJ("ngModelChange",function(i){return _.optional.Retained=i}),e.TgZ(46,"option",15),e._uU(47,"false"),e.qZA(),e.TgZ(48,"option",15),e._uU(49,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",8),e.TgZ(51,"label",9),e._uU(52,"AutoReconnect"),e.qZA(),e.TgZ(53,"div",10),e.TgZ(54,"select",18),e.NdJ("ngModelChange",function(i){return _.optional.AutoReconnect=i}),e.TgZ(55,"option",15),e._uU(56,"false"),e.qZA(),e.TgZ(57,"option",15),e._uU(58,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",8),e.TgZ(60,"label",9),e._uU(61,"ConnectTimeout"),e.qZA(),e.TgZ(62,"div",10),e.TgZ(63,"input",19),e.NdJ("ngModelChange",function(i){return _.optional.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",8),e.TgZ(65,"label",9),e._uU(66,"CleanSession"),e.qZA(),e.TgZ(67,"div",10),e.TgZ(68,"select",20),e.NdJ("ngModelChange",function(i){return _.optional.CleanSession=i}),e.TgZ(69,"option",15),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",15),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e._uU(75,"SkipCertVerify"),e.qZA(),e.TgZ(76,"div",10),e.TgZ(77,"select",21),e.NdJ("ngModelChange",function(i){return _.optional.SkipCertVerify=i}),e.TgZ(78,"option",15),e._uU(79,"true"),e.qZA(),e.TgZ(80,"option",15),e._uU(81,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",8),e.TgZ(83,"label",9),e._uU(84,"CertFile"),e.qZA(),e.TgZ(85,"div",10),e.TgZ(86,"input",22),e.NdJ("ngModelChange",function(i){return _.optional.CertFile=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",8),e.TgZ(88,"label",9),e._uU(89,"KeyFile"),e.qZA(),e.TgZ(90,"div",10),e.TgZ(91,"input",23),e.NdJ("ngModelChange",function(i){return _.optional.KeyFile=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(92,"div",8),e.TgZ(93,"label",9),e._uU(94,"CertPEMBlock"),e.qZA(),e.TgZ(95,"div",10),e.TgZ(96,"input",24),e.NdJ("ngModelChange",function(i){return _.optional.CertPEMBlock=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(97,"div",8),e.TgZ(98,"label",9),e._uU(99,"KeyPEMBlock"),e.qZA(),e.TgZ(100,"div",10),e.TgZ(101,"input",25),e.NdJ("ngModelChange",function(i){return _.optional.KeyPEMBlock=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(7),e.Q6J("ngModel",_.optional.ClientId),e.xp6(5),e.Q6J("ngModel",_.optional.Username),e.xp6(5),e.Q6J("ngModel",_.optional.Password),e.xp6(5),e.Q6J("ngModel",_.optional.Qos),e.xp6(1),e.Q6J("value",0),e.xp6(2),e.Q6J("value",1),e.xp6(2),e.Q6J("value",2),e.xp6(6),e.Q6J("ngModel",_.optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",_.optional.Retained),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.AutoReconnect),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",_.optional.CleanSession),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.SkipCertVerify),e.xp6(1),e.Q6J("value",!0),e.xp6(2),e.Q6J("value",!1),e.xp6(6),e.Q6J("ngModel",_.optional.CertFile),e.xp6(5),e.Q6J("ngModel",_.optional.KeyFile),e.xp6(5),e.Q6J("ngModel",_.optional.CertPEMBlock),e.xp6(5),e.Q6J("ngModel",_.optional.KeyPEMBlock))},directives:[p.O5,s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,s.EJ,s.YN,s.Kr,s.wV],styles:[""]}),o})();var h=d(9162),V=function(o){function a(t,_){return o.call(this)||this}return(0,h.ZT)(a,o),a.prototype.schedule=function(t,_){return void 0===_&&(_=0),this},a}(d(8839).w0),Z={setInterval:function(){for(var o=[],a=0;a{class o{constructor(){this.collapseToggleStatus=!1,this.sinkBasePropertiesForm=new s.cw({concurrency:new s.NI(1),bufferLength:new s.NI(1024),runAsync:new s.NI(!1),retryInterval:new s.NI(1e3),retryCount:new s.NI(0),cacheLength:new s.NI(1024),cacheSaveInterval:new s.NI(1e3),omitIfEmpty:new s.NI(!1)}),this.sinkBasePropertiesChange=new e.vpe,this.sinkBaseProperties={}}ngOnChanges(){delete this.sinkBaseProperties.sendSingle,delete this.sinkBaseProperties.dataTemplate;let t={};for(const[_,n]of Object.entries(this.sinkBaseProperties))this.sinkBasePropertiesForm.value.hasOwnProperty(_)&&n&&(t[_]=n);this.sinkBasePropertiesForm.patchValue(t)}ngAfterViewInit(){this.sinkBasePropertiesForm.valueChanges.pipe(I(400),q()).subscribe(()=>{Object.assign(this.sinkBaseProperties,this.sinkBasePropertiesForm.value),this.sinkBasePropertiesChange.emit(this.sinkBaseProperties)})}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-sink-base-properties"]],inputs:{sinkBaseProperties:"sinkBaseProperties"},outputs:{sinkBasePropertiesChange:"sinkBasePropertiesChange"},features:[e.TTD],decls:74,vars:7,consts:function(){let a;return a="Sink Advanced Options",[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],a,[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["id","collapse-sink-base",1,"card-body","collapse"],[3,"formGroup"],[1,"form-group","row"],[1,"col","col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many instances of the sink will be run. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["type","number","name","concurrency","formControlName","concurrency",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory. If the buffered messages exceed the limit, the sink will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength","formControlName","bufferLength",1,"form-control"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many milliseconds will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryInterval","formControlName","retryInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryCount","formControlName","retryCount",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be cached. The cached messages will be resent to external system until the data sent out successfully. The cached message will be sent in order except in runAsync or concurrent mode. The cached message will be saved to disk in fixed intervals.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheLength","formControlName","cacheLength",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the interval to save cached message to the disk. Notice that, if the rule is closed in plan, all the cached messages will be saved at close. A larger value can reduce the saving overhead but may lose more cache messages when the system is interrupted in error.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheSaveInterval","formControlName","cacheSaveInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether the sink will run asynchronously for better performance. If it is true, the sink result order is not promised.",1,"fa","fa-question-circle-o","fa-lg"],["name","runAsync","formControlName","runAsync",1,"custom-select"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","If the configuration item is set to true, when SELECT result is empty, then the result will not feed to sink operator.",1,"fa","fa-question-circle-o","fa-lg"],["name","omitIfEmpty","formControlName","omitIfEmpty",1,"custom-select"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-up","fa-lg"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return _.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"span",5),e.YNc(6,_e,1,0,"i",6),e.YNc(7,ne,1,0,"i",7),e.qZA(),e.qZA(),e.TgZ(8,"div",8),e.TgZ(9,"form",9),e.TgZ(10,"div",10),e.TgZ(11,"label",11),e.TgZ(12,"span",12),e._uU(13,"concurrency"),e.qZA(),e._UZ(14,"span",13),e.qZA(),e.TgZ(15,"div",14),e._UZ(16,"input",15),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.TgZ(18,"label",11),e.TgZ(19,"span",12),e._uU(20,"bufferLength"),e.qZA(),e._UZ(21,"span",16),e.qZA(),e.TgZ(22,"div",14),e._UZ(23,"input",17),e.qZA(),e.qZA(),e.TgZ(24,"div",10),e.TgZ(25,"label",18),e.TgZ(26,"span",12),e._uU(27,"retryInterval"),e.qZA(),e._UZ(28,"span",19),e.qZA(),e.TgZ(29,"div",14),e._UZ(30,"input",20),e.qZA(),e.qZA(),e.TgZ(31,"div",10),e.TgZ(32,"label",18),e.TgZ(33,"span",12),e._uU(34,"retryCount"),e.qZA(),e._UZ(35,"span",21),e.qZA(),e.TgZ(36,"div",14),e._UZ(37,"input",22),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",18),e.TgZ(40,"span",12),e._uU(41,"cacheLength"),e.qZA(),e._UZ(42,"span",23),e.qZA(),e.TgZ(43,"div",14),e._UZ(44,"input",24),e.qZA(),e.qZA(),e.TgZ(45,"div",10),e.TgZ(46,"label",18),e.TgZ(47,"span",12),e._uU(48,"cacheSaveInterval"),e.qZA(),e._UZ(49,"span",25),e.qZA(),e.TgZ(50,"div",14),e._UZ(51,"input",26),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",18),e.TgZ(54,"span",12),e._uU(55,"runAsync"),e.qZA(),e._UZ(56,"span",27),e.qZA(),e.TgZ(57,"div",14),e.TgZ(58,"select",28),e.TgZ(59,"option",29),e._uU(60,"false"),e.qZA(),e.TgZ(61,"option",29),e._uU(62,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",10),e.TgZ(64,"label",18),e.TgZ(65,"span",12),e._uU(66,"omitIfEmpty"),e.qZA(),e._UZ(67,"span",30),e.qZA(),e.TgZ(68,"div",14),e.TgZ(69,"select",31),e.TgZ(70,"option",29),e._uU(71,"false"),e.qZA(),e.TgZ(72,"option",29),e._uU(73,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(2),e.Q6J("formGroup",_.sinkBasePropertiesForm),e.xp6(50),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(9),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,s._Y,s.JL,s.sg,s.wV,s.Fj,s.JJ,s.u,s.EJ,s.YN,s.Kr],styles:[""]}),o})(),oe=(()=>{class o{constructor(){this.sinkBaseProperties={},this.edgeXSinkChange=new e.vpe,this._edgeXSink={type:"redis",protocol:"redis",host:"edgex-redis",port:6379,contentType:"application/json",messageType:"event",sendSingle:!1}}get edgeXSink(){return this._edgeXSink}set edgeXSink(t){Object.assign(this._edgeXSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.edgeXSink)}ngOnChanges(){this.edgeXSinkChange.emit(this.edgeXSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.edgeXSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edgex-sink"]],inputs:{edgeXSink:"edgeXSink"},outputs:{edgeXSinkChange:"edgeXSinkChange"},features:[e.TTD],decls:117,vars:20,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","the type of EdgeX message bus",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","type",1,"custom-select",3,"ngModel","ngModelChange"],["value","redis"],["value","zero"],["value","mqtt"],["type","text","name","protocol",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","host",1,"form-control",3,"ngModel","ngModelChange"],["type","number","name","port",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The topic to be published. The topic is static across all messages. To use dynamic topic, leave this empty and specify the topicPrefix property. Only one of the topic and topicPrefix properties can be specified. If both are not specified, then use default topic value application.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The prefix of a dynamic topic to be published. The topic will become a concatenation of $topicPrefix/$profileName/$deviceName/$sourceName.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topicPrefix",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","contentType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The EdgeX message model type. To publish the message as an event like EdgeX application service, use event. Otherwise, to publish the message as an event request like EdgeX device service or core data service, use request. If not specified, then use the default value event.",1,"fa","fa-question-circle-o","fa-lg"],["name","messageType",1,"custom-select",3,"ngModel","ngModelChange"],["value","event"],["value","request"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The property is a field name that allows user to specify a field name of SQL select clause, the field name should use meta(*) AS xxx to select all of EdgeX metadata from message.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","metadata",1,"form-control",3,"ngModel","ngModelChange"],[3,"singleSelectionMode","singleProfileSelected","singleProfileSelectedChange"],[3,"singleSelectionMode","singleDeviceSelected","singleDeviceSelectedChange"],["type","text","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","EdgeX Message bus connection optional",1,"fa","fa-question-circle-o","fa-lg"],[3,"optional","optionalChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e.TgZ(9,"span",7),e._uU(10,"Type"),e.qZA(),e._UZ(11,"span",8),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"select",10),e.NdJ("ngModelChange",function(i){return _.edgeXSink.type=i}),e.TgZ(14,"option",11),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",12),e._uU(17,"zero"),e.qZA(),e.TgZ(18,"option",13),e._uU(19,"mqtt"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",5),e.TgZ(21,"label",6),e._uU(22,"Protocol"),e.qZA(),e.TgZ(23,"div",9),e.TgZ(24,"input",14),e.NdJ("ngModelChange",function(i){return _.edgeXSink.protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",5),e.TgZ(26,"label",6),e._uU(27,"Host"),e.qZA(),e.TgZ(28,"div",9),e.TgZ(29,"input",15),e.NdJ("ngModelChange",function(i){return _.edgeXSink.host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",5),e.TgZ(31,"label",6),e._uU(32,"Port"),e.qZA(),e.TgZ(33,"div",9),e.TgZ(34,"input",16),e.NdJ("ngModelChange",function(i){return _.edgeXSink.port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",5),e.TgZ(36,"label",6),e.TgZ(37,"span",7),e._uU(38,"Topic"),e.qZA(),e._UZ(39,"span",17),e.qZA(),e.TgZ(40,"div",9),e.TgZ(41,"input",18),e.NdJ("ngModelChange",function(i){return _.edgeXSink.topic=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",5),e.TgZ(43,"label",6),e.TgZ(44,"span",7),e._uU(45,"TopicPrefix"),e.qZA(),e._UZ(46,"span",19),e.qZA(),e.TgZ(47,"div",9),e.TgZ(48,"input",20),e.NdJ("ngModelChange",function(i){return _.edgeXSink.topicPrefix=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",5),e.TgZ(50,"label",6),e._uU(51,"ContentType"),e.qZA(),e.TgZ(52,"div",9),e.TgZ(53,"input",21),e.NdJ("ngModelChange",function(i){return _.edgeXSink.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",5),e.TgZ(55,"label",6),e.TgZ(56,"span",7),e._uU(57,"MessageType"),e.qZA(),e._UZ(58,"span",22),e.qZA(),e.TgZ(59,"div",9),e.TgZ(60,"select",23),e.NdJ("ngModelChange",function(i){return _.edgeXSink.messageType=i}),e.TgZ(61,"option",24),e._uU(62,"event"),e.qZA(),e.TgZ(63,"option",25),e._uU(64,"request"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(65,"div",5),e.TgZ(66,"label",6),e.TgZ(67,"span",7),e._uU(68,"Metadata"),e.qZA(),e._UZ(69,"span",26),e.qZA(),e.TgZ(70,"div",9),e.TgZ(71,"input",27),e.NdJ("ngModelChange",function(i){return _.edgeXSink.metadata=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",5),e.TgZ(73,"label",6),e._uU(74,"ProfileName"),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"app-device-profile-combo-list",28),e.NdJ("singleProfileSelectedChange",function(i){return _.edgeXSink.profileName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",5),e.TgZ(78,"label",6),e._uU(79,"DeviceName"),e.qZA(),e.TgZ(80,"div",9),e.TgZ(81,"app-device-combo-list",29),e.NdJ("singleDeviceSelectedChange",function(i){return _.edgeXSink.deviceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",5),e.TgZ(83,"label",6),e._uU(84,"SourceName"),e.qZA(),e.TgZ(85,"div",9),e.TgZ(86,"input",30),e.NdJ("ngModelChange",function(i){return _.edgeXSink.sourceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",5),e.TgZ(88,"label",6),e.TgZ(89,"span",7),e._uU(90,"SendSingle"),e.qZA(),e._UZ(91,"span",31),e.qZA(),e.TgZ(92,"div",9),e.TgZ(93,"select",32),e.NdJ("ngModelChange",function(i){return _.edgeXSink.sendSingle=i}),e.TgZ(94,"option",33),e._uU(95,"false"),e.qZA(),e.TgZ(96,"option",33),e._uU(97,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(98,"div",5),e.TgZ(99,"label",6),e.TgZ(100,"span",7),e._uU(101,"DataTemplate"),e.qZA(),e._UZ(102,"span",34),e.qZA(),e.TgZ(103,"div",9),e.TgZ(104,"input",35),e.NdJ("ngModelChange",function(i){return _.edgeXSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(105,"div",5),e.TgZ(106,"label",6),e.TgZ(107,"span",7),e._uU(108,"EdgeX Sink Options"),e.qZA(),e._UZ(109,"span",36),e.qZA(),e.TgZ(110,"div",9),e.TgZ(111,"app-edgex-sink-optional",37),e.NdJ("optionalChange",function(i){return _.edgeXSink.optional=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",5),e.TgZ(113,"label",6),e._uU(114,"Advanced Options"),e.qZA(),e.TgZ(115,"div",9),e.TgZ(116,"app-sink-base-properties",38),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(13),e.Q6J("ngModel",_.edgeXSink.type),e.xp6(11),e.Q6J("ngModel",_.edgeXSink.protocol),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.host),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.port),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.topic),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.topicPrefix),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.contentType),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.messageType),e.xp6(11),e.Q6J("ngModel",_.edgeXSink.metadata),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleProfileSelected",_.edgeXSink.profileName),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleDeviceSelected",_.edgeXSink.deviceName),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.sourceName),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.edgeXSink.dataTemplate),e.xp6(7),e.Q6J("optional",_.edgeXSink.optional),e.xp6(5),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,s.wV,w.o,B.h,W,C],styles:[""]}),o})(),ie=(()=>{class o{constructor(){this.sinkBaseProperties={},this.mqttSinkChange=new e.vpe,this._mqttSink={server:"tcp://127.0.0.1:1883",protocolVersion:"3.1",qos:0,insecureSkipVerify:!0,retained:!1,sendSingle:!1}}get mqttSink(){return this._mqttSink}set mqttSink(t){Object.assign(this._mqttSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.mqttSink)}ngOnChanges(){this.mqttSinkChange.emit(this.mqttSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.mqttSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-mqtt-sink"]],inputs:{mqttSink:"mqttSink"},outputs:{mqttSinkChange:"mqttSinkChange"},features:[e.TTD],decls:114,vars:32,consts:function(){let a,t,_,n;return a="the mqtt server address can't be empty!",t="the topic can't be empty!",_="Username",n="Password",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row","has-validation"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","server",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],a,["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],t,[1,"form-group","row"],["type","text","name","clientId",1,"form-control",3,"ngModel","ngModelChange"],["name","protocolVersion",1,"custom-select",3,"ngModel","ngModelChange"],["value","3.1"],["value","3.1.1"],["name","qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],_,["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],n,["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["name","retained",1,"custom-select",3,"ngModel","ngModelChange"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"MQTT Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e._uU(9,"Server"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",8),e.NdJ("ngModelChange",function(i){return _.mqttSink.server=i}),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"small"),e.SDv(14,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",5),e.TgZ(16,"label",6),e._uU(17,"Topic"),e.qZA(),e.TgZ(18,"div",7),e.TgZ(19,"input",11),e.NdJ("ngModelChange",function(i){return _.mqttSink.topic=i}),e.qZA(),e.TgZ(20,"div",9),e.TgZ(21,"small"),e.SDv(22,12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",13),e.TgZ(24,"label",6),e._uU(25,"ClientId"),e.qZA(),e.TgZ(26,"div",7),e.TgZ(27,"input",14),e.NdJ("ngModelChange",function(i){return _.mqttSink.clientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",13),e.TgZ(29,"label",6),e._uU(30,"ProtocolVersion"),e.qZA(),e.TgZ(31,"div",7),e.TgZ(32,"select",15),e.NdJ("ngModelChange",function(i){return _.mqttSink.protocolVersion=i}),e.TgZ(33,"option",16),e._uU(34,"3.1"),e.qZA(),e.TgZ(35,"option",17),e._uU(36,"3.1.1"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"div",13),e.TgZ(38,"label",6),e._uU(39,"Qos"),e.qZA(),e.TgZ(40,"div",7),e.TgZ(41,"select",18),e.NdJ("ngModelChange",function(i){return _.mqttSink.qos=i}),e.TgZ(42,"option",19),e._uU(43,"0"),e.qZA(),e.TgZ(44,"option",19),e._uU(45,"1"),e.qZA(),e.TgZ(46,"option",19),e._uU(47,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",13),e.TgZ(49,"label",6),e.SDv(50,20),e.qZA(),e.TgZ(51,"div",7),e.TgZ(52,"input",21),e.NdJ("ngModelChange",function(i){return _.mqttSink.username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",13),e.TgZ(54,"label",6),e.SDv(55,22),e.qZA(),e.TgZ(56,"div",7),e.TgZ(57,"input",23),e.NdJ("ngModelChange",function(i){return _.mqttSink.password=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",13),e.TgZ(59,"label",6),e._uU(60,"Retained"),e.qZA(),e.TgZ(61,"div",7),e.TgZ(62,"select",24),e.NdJ("ngModelChange",function(i){return _.mqttSink.retained=i}),e.TgZ(63,"option",19),e._uU(64,"false"),e.qZA(),e.TgZ(65,"option",19),e._uU(66,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",13),e.TgZ(68,"label",6),e.TgZ(69,"span",25),e._uU(70,"sendSingle"),e.qZA(),e._UZ(71,"span",26),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"select",27),e.NdJ("ngModelChange",function(i){return _.mqttSink.sendSingle=i}),e.TgZ(74,"option",19),e._uU(75,"false"),e.qZA(),e.TgZ(76,"option",19),e._uU(77,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(78,"div",13),e.TgZ(79,"label",6),e.TgZ(80,"span",25),e._uU(81,"dataTemplate"),e.qZA(),e._UZ(82,"span",28),e.qZA(),e.TgZ(83,"div",7),e.TgZ(84,"input",29),e.NdJ("ngModelChange",function(i){return _.mqttSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",13),e.TgZ(86,"label",6),e._uU(87,"InsecureSkipVerify"),e.qZA(),e.TgZ(88,"div",7),e.TgZ(89,"select",30),e.NdJ("ngModelChange",function(i){return _.mqttSink.insecureSkipVerify=i}),e.TgZ(90,"option",19),e._uU(91,"true"),e.qZA(),e.TgZ(92,"option",19),e._uU(93,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(94,"div",13),e.TgZ(95,"label",6),e._uU(96,"CertificationPath"),e.qZA(),e.TgZ(97,"div",7),e.TgZ(98,"input",31),e.NdJ("ngModelChange",function(i){return _.mqttSink.certificationPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(99,"div",13),e.TgZ(100,"label",6),e._uU(101,"PrivateKeyPath"),e.qZA(),e.TgZ(102,"div",7),e.TgZ(103,"input",32),e.NdJ("ngModelChange",function(i){return _.mqttSink.privateKeyPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(104,"div",13),e.TgZ(105,"label",6),e._uU(106,"RootCaPath"),e.qZA(),e.TgZ(107,"div",7),e.TgZ(108,"input",33),e.NdJ("ngModelChange",function(i){return _.mqttSink.rootCaPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(109,"div",13),e.TgZ(110,"label",6),e._uU(111,"Advanced Options"),e.qZA(),e.TgZ(112,"div",7),e.TgZ(113,"app-sink-base-properties",34),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(11),e.ekj("is-invalid",!_.mqttSink.server)("is-valid",_.mqttSink.server),e.Q6J("ngModel",_.mqttSink.server),e.xp6(8),e.ekj("is-invalid",!_.mqttSink.topic)("is-valid",_.mqttSink.topic),e.Q6J("ngModel",_.mqttSink.topic),e.xp6(8),e.Q6J("ngModel",_.mqttSink.clientId),e.xp6(5),e.Q6J("ngModel",_.mqttSink.protocolVersion),e.xp6(9),e.Q6J("ngModel",_.mqttSink.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(6),e.Q6J("ngModel",_.mqttSink.username),e.xp6(5),e.Q6J("ngModel",_.mqttSink.password),e.xp6(5),e.Q6J("ngModel",_.mqttSink.retained),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.mqttSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.mqttSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",_.mqttSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",_.mqttSink.certificationPath),e.xp6(5),e.Q6J("ngModel",_.mqttSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",_.mqttSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,s.EJ,s.YN,s.Kr,C],styles:[""]}),o})();var ae=d(2437),se=d(7982),re=d(9549);function le(o,a){1&o&&(e.TgZ(0,"div",21),e._UZ(1,"i",22),e.TgZ(2,"span"),e.SDv(3,23),e.qZA(),e.qZA())}function de(o,a){1&o&&(e.TgZ(0,"div"),e.TgZ(1,"span"),e.SDv(2,32),e.qZA(),e.qZA())}function ge(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"select",37),e.NdJ("change",function(n){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(n)}),e.TgZ(1,"option",38),e._uU(2,"false"),e.qZA(),e.TgZ(3,"option",38),e._uU(4,"true"),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function ce(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"input",39),e.NdJ("change",function(n){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(n)}),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.MGl("placeholder","valueType: ",t.valueType,"")}}function ue(o,a){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.cmdParametersValueRender()," ")}}function pe(o,a){if(1&o&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",2),e.TgZ(3,"label",33),e.SDv(4,34),e.qZA(),e.TgZ(5,"div",6),e.YNc(6,ge,5,4,"select",35),e.YNc(7,ce,1,3,"ng-template",null,36,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.YNc(9,ue,2,1,"ng-container",30),e.qZA()),2&o){const t=a.$implicit,_=a.last,n=e.MAs(8);e.xp6(3),e.s9C("for",t.resourceName),e.xp6(1),e.pQV(t.resourceName),e.QtT(4),e.xp6(2),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",_)}}function Se(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,de,3,0,"div",30),e.YNc(2,pe,10,5,"div",31),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",0==t.cmdSvcInfo.parametersOfPutCommand.length),e.xp6(1),e.Q6J("ngForOf",t.cmdSvcInfo.parametersOfPutCommand)}}function Ee(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",2),e.TgZ(1,"label",40),e.TgZ(2,"span",4),e.SDv(3,41),e.qZA(),e._UZ(4,"span",42),e.qZA(),e.TgZ(5,"div",6),e.TgZ(6,"select",43),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(2).cmdSvcInfo.pushEventOfGetCmdParamter=n}),e.TgZ(7,"option",44),e._uU(8,"yes"),e.qZA(),e.TgZ(9,"option",45),e._uU(10,"no"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"label",46),e.TgZ(13,"span",4),e.SDv(14,47),e.qZA(),e._UZ(15,"span",48),e.qZA(),e.TgZ(16,"div",6),e.TgZ(17,"select",49),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(2).cmdSvcInfo.returnEventOfGetCmdParamter=n}),e.TgZ(18,"option",44),e._uU(19,"yes"),e.qZA(),e.TgZ(20,"option",45),e._uU(21,"no"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(6),e.Q6J("ngModel",t.cmdSvcInfo.pushEventOfGetCmdParamter),e.xp6(11),e.Q6J("ngModel",t.cmdSvcInfo.returnEventOfGetCmdParamter)}}function me(o,a){if(1&o&&(e.TgZ(0,"div",2),e.TgZ(1,"label",18),e._uU(2,"Parameters"),e.qZA(),e.TgZ(3,"div",6),e.TgZ(4,"div",24),e.TgZ(5,"div",25),e.TgZ(6,"span"),e.SDv(7,26),e.qZA(),e.qZA(),e.TgZ(8,"div",27),e.YNc(9,Se,3,2,"div",28),e.YNc(10,Ee,22,2,"ng-template",null,29,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&o){const t=e.MAs(11),_=e.oxw();e.xp6(9),e.Q6J("ngIf","PUT"==_.cmdSvcInfo.httpMethod)("ngIfElse",t)}}let b=(()=>{class o{constructor(t,_){this.metedataSvc=t,this.cmdSvc=_,this.cmdURLFixedPrefix="/api/v3/device/name/",this.notCommandPathMsgShow=!1,this.deviceName="",this.commandName="",this.parameter={},this._url="",this._httpMethod="",this._requestBodyJSONStr="",this.cmdSvcInfoChange=new e.vpe,this.profileForm=new s.cw({host:new s.NI(""),port:new s.NI(""),path:new s.NI(""),httpMethod:new s.NI(""),pushEventOfGetCmdParamter:new s.NI(""),returnEventOfGetCmdParamter:new s.NI("")}),this.cmdSvcInfo={host:"edgex-core-command",port:59882,path:"",pushEventOfGetCmdParamter:"yes",returnEventOfGetCmdParamter:"yes",parametersOfPutCommand:[]}}get url(){return this._url}set url(t){this._url=t,this._url&&this.urlParser(t)}get httpMethod(){return this._httpMethod}set httpMethod(t){this._httpMethod=t,this.cmdSvcInfo.httpMethod=this._httpMethod}get requestBodyJSONStr(){return this._requestBodyJSONStr}set requestBodyJSONStr(t){this._requestBodyJSONStr=t}ngOnInit(){}ngAfterViewInit(){this.profileForm.valueChanges.pipe(I(400),q()).subscribe(()=>{this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}),this.renderPopoverComponent()}urlParser(t){let _={};try{_=new URL(t)}catch(n){return void(this.notCommandPathMsgShow=!0)}if(_.pathname.startsWith(this.cmdURLFixedPrefix)){let n=_.pathname.substring(this.cmdURLFixedPrefix.length).split("/");if(2===n.length)return this.deviceName=n[0],this.commandName=n[1],this.getCommandParameterByDeviceAndCommandName(this.deviceName,this.commandName),this.cmdSvcInfo.path=_.pathname,this.cmdSvcInfo.host=_.hostname,this.cmdSvcInfo.port=Number(_.port),this.cmdSvcInfo.pushEventOfGetCmdParamter=_.searchParams.get("ds-pushevent")||"yes",void(this.cmdSvcInfo.returnEventOfGetCmdParamter=_.searchParams.get("ds-returnevent")||"yes")}this.notCommandPathMsgShow=!0}getCommandParameterByDeviceAndCommandName(t,_){this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(t).subscribe(n=>{n.deviceCoreCommand.coreCommands.forEach(i=>{i.name===_&&(this.cmdSvcInfo.parametersOfPutCommand=i.parameters)})})}cmdParametersValueRender(){let t={};try{t=JSON.parse(this.requestBodyJSONStr)}catch(_){return}for(const[_,n]of Object.entries(t))this.cmdSvcInfo.parametersOfPutCommand.forEach(i=>{i.resourceName===_&&$(`#cmd-param-${_}`).val(n)})}onValueOfPutParamsChange(t){this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onCmdMethodSelected(t){this.cmdSvcInfo.httpMethod=t,this.cmdSvcInfoChange.emit(this.cmdSvcInfo),setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(t){this.cmdSvcInfo.path=t.path,this.cmdSvcInfo.parametersOfPutCommand=t.parameters}requestBodyAssemble(){let t={};return this.cmdSvcInfo.parametersOfPutCommand.forEach(_=>{!_||!$(`#cmd-param-${_.resourceName}`).val()||""!==$(`#cmd-param-${_.resourceName}`).val().trim()&&(t[_.resourceName]=$(`#cmd-param-${_.resourceName}`).val().trim())}),JSON.stringify(t)}resetPathParameterSuffix(){(-1!==this.cmdSvcInfo.path.indexOf("ds-pushevent")||-1!==this.cmdSvcInfo.path.indexOf("ds-returnevent"))&&(this.cmdSvcInfo.path=this.cmdSvcInfo.path.split("?")[0]),this.cmdSvcInfo.path=`${this.cmdSvcInfo.path}?ds-pushevent=${this.cmdSvcInfo.pushEventOfGetCmdParamter}&ds-returnevent=${this.cmdSvcInfo.returnEventOfGetCmdParamter}`}getHttpMethod(){return this.cmdSvcInfo.httpMethod}getRequestBodyJSONStr(){return this.requestBodyAssemble()}getUrl(){return"GET"===this.cmdSvcInfo.httpMethod&&this.resetPathParameterSuffix(),`http://${this.cmdSvcInfo.host}:${this.cmdSvcInfo.port}${this.cmdSvcInfo.path}`}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(ae.D),e.Y36(se.V))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-command-service-template"]],inputs:{url:"url",httpMethod:"httpMethod",requestBodyJSONStr:"requestBodyJSONStr",cmdSvcInfo:"cmdSvcInfo"},outputs:{cmdSvcInfoChange:"cmdSvcInfoChange"},decls:33,vars:19,consts:function(){let a,t,_,n,i,r,l,S;return a="the REST address host can't be empty!",t="the REST address port can't be empty and only pure integer is supported!",_=" Invalid command service url, please don't use this template for custom http request, or select one new valid command path if you insist on using the template! ",n="Command Parameters Setting",i="no paramters.",r="" + "\ufffd0\ufffd" + "",l="pushevent",S="returnevent",[["class","alert alert-danger","role","alert",4,"ngIf"],[3,"formGroup"],[1,"form-group","row"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","name","httpMethod","formControlName","httpMethod","readonly","true","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"form-group","row","has-validation"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressHostREST","name","addressHost","formControlName","host","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],a,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","number","id","addressPortREST","name","addressPort","formControlName","port","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],t,["for","addressPath","required","",1,"col-md-2","col-form-label"],[3,"validate","deviceName","commandName","httpMethod","commandPath","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"],_,[1,"card"],[1,"card-header"],n,[1,"card-body"],[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngIf"],[4,"ngFor","ngForOf"],i,[1,"col-md-2","col-form-label",3,"for"],r,["class","custom-select",3,"id","name","change",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name","change"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder","change"],["for","ds-pushevent",1,"col-md-2","col-form-label"],l,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent","formControlName","pushEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],S,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent","formControlName","returnEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(t,_){1&t&&(e.YNc(0,le,4,0,"div",0),e.TgZ(1,"form",1),e.TgZ(2,"div",2),e.TgZ(3,"label",3),e.TgZ(4,"span",4),e._uU(5,"HttpMethod"),e.qZA(),e._UZ(6,"span",5),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.httpMethod=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"label",9),e.TgZ(11,"span",4),e._uU(12,"Host"),e.qZA(),e._UZ(13,"span",10),e.qZA(),e.TgZ(14,"div",6),e.TgZ(15,"input",11),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.host=i}),e.qZA(),e.TgZ(16,"div",12),e.TgZ(17,"small"),e.SDv(18,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",8),e.TgZ(20,"label",14),e._uU(21,"Port"),e.qZA(),e.TgZ(22,"div",6),e.TgZ(23,"input",15),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.port=i}),e.qZA(),e.TgZ(24,"div",16),e.TgZ(25,"small"),e.SDv(26,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"label",18),e._uU(29,"Path"),e.qZA(),e.TgZ(30,"div",6),e.TgZ(31,"app-device-core-command-combo-list",19),e.NdJ("cmdMethodEvent",function(i){return _.onCmdMethodSelected(i)})("commandSelectedEvent",function(i){return _.onCommandSelected(i)}),e.qZA(),e.qZA(),e.qZA(),e.YNc(32,me,12,2,"div",20),e.qZA()),2&t&&(e.Q6J("ngIf",_.notCommandPathMsgShow),e.xp6(1),e.Q6J("formGroup",_.profileForm),e.xp6(7),e.Q6J("ngModel",_.cmdSvcInfo.httpMethod),e.xp6(7),e.ekj("is-invalid",!_.cmdSvcInfo.host)("is-valid",_.cmdSvcInfo.host),e.Q6J("ngModel",_.cmdSvcInfo.host),e.xp6(8),e.ekj("is-invalid",!_.cmdSvcInfo.port)("is-valid",_.cmdSvcInfo.port),e.Q6J("ngModel",_.cmdSvcInfo.port),e.xp6(8),e.Q6J("validate",!0)("deviceName",_.deviceName)("commandName",_.commandName)("httpMethod",_.cmdSvcInfo.httpMethod)("commandPath",_.cmdSvcInfo.path),e.xp6(1),e.Q6J("ngIf",_.cmdSvcInfo.path&&_.cmdSvcInfo.httpMethod&&0!==_.cmdSvcInfo.parametersOfPutCommand.length))},directives:[p.O5,s._Y,s.JL,s.sg,s.Fj,s.JJ,s.u,s.Q7,s.wV,re.P,p.sg,s.F,s.YN,s.Kr,s.EJ],styles:[""]}),o})();function Te(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-command-service-template",8),e.NdJ("cmdSvcInfoChange",function(n){return e.CHM(t),e.oxw().onCmdSvcTemplateInfoChange(n)}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(1),e.Q6J("url",t.restSink.url)("httpMethod",t.restSink.method)("requestBodyJSONStr",t.restSink.dataTemplate?t.restSink.dataTemplate:"")}}function Ae(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",51),e.TgZ(2,"div",52),e.TgZ(3,"div",53),e.TgZ(4,"span",54),e._uU(5,"Key"),e.qZA(),e.qZA(),e.TgZ(6,"input",55),e.NdJ("ngModelChange",function(n){return e.CHM(t).$implicit.key=n})("ngModelChange",function(n){return e.CHM(t),e.oxw(2).requestHeaderChange(n)}),e.qZA(),e.qZA(),e.TgZ(7,"div",56),e._UZ(8,"i",57),e.qZA(),e.TgZ(9,"div",58),e.TgZ(10,"div",53),e.TgZ(11,"span",54),e._uU(12,"Value"),e.qZA(),e.qZA(),e.TgZ(13,"input",59),e.NdJ("ngModelChange",function(n){return e.CHM(t).$implicit.value=n})("ngModelChange",function(n){return e.CHM(t),e.oxw(2).requestHeaderChange(n)}),e.qZA(),e.qZA(),e.TgZ(14,"div",60),e.TgZ(15,"button",61),e.NdJ("click",function(){const i=e.CHM(t).index;return e.oxw(2).removeRequestHeader(i)}),e._UZ(16,"i",62),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit;e.xp6(6),e.Q6J("ngModel",t.key),e.xp6(7),e.Q6J("ngModel",t.value)}}function fe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",9),e.TgZ(3,"label",10),e._uU(4,"Method"),e.qZA(),e.TgZ(5,"div",11),e.TgZ(6,"select",12),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.method=n}),e.TgZ(7,"option",13),e._uU(8,"GET"),e.qZA(),e.TgZ(9,"option",14),e._uU(10,"POST"),e.qZA(),e.TgZ(11,"option",15),e._uU(12,"PUT"),e.qZA(),e.TgZ(13,"option",16),e._uU(14,"DELETE"),e.qZA(),e.TgZ(15,"option",17),e._uU(16,"PATCH"),e.qZA(),e.TgZ(17,"option",18),e._uU(18,"HEAD"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",19),e.TgZ(20,"label",10),e._uU(21,"URL"),e.qZA(),e.TgZ(22,"div",11),e.TgZ(23,"input",20),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.url=n}),e.qZA(),e.TgZ(24,"div",21),e.TgZ(25,"small"),e.SDv(26,22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",9),e.TgZ(28,"label",10),e._uU(29,"BodyType"),e.qZA(),e.TgZ(30,"div",11),e.TgZ(31,"select",23),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.bodyType=n}),e.TgZ(32,"option",24),e._uU(33,"none"),e.qZA(),e.TgZ(34,"option",25),e._uU(35,"json"),e.qZA(),e.TgZ(36,"option",26),e._uU(37,"text"),e.qZA(),e.TgZ(38,"option",27),e._uU(39,"html"),e.qZA(),e.TgZ(40,"option",28),e._uU(41,"xml"),e.qZA(),e.TgZ(42,"option",29),e._uU(43,"javascript"),e.qZA(),e.TgZ(44,"option",30),e._uU(45,"form"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",9),e.TgZ(47,"label",10),e._uU(48,"Headers"),e.qZA(),e.TgZ(49,"div",11),e.TgZ(50,"div",0),e.TgZ(51,"div",6),e.TgZ(52,"p",31),e._UZ(53,"span",32),e.TgZ(54,"span",33),e.NdJ("click",function(){return e.CHM(t),e.oxw().addRequestHeader()}),e.SDv(55,34),e.qZA(),e.qZA(),e.YNc(56,Ae,17,2,"div",35),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(57,"div",9),e.TgZ(58,"label",10),e.TgZ(59,"span",36),e._uU(60,"timeout"),e.qZA(),e._UZ(61,"span",37),e.qZA(),e.TgZ(62,"div",11),e.TgZ(63,"input",38),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.timeout=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",9),e.TgZ(65,"label",10),e.TgZ(66,"span",36),e._uU(67,"DebugResp"),e.qZA(),e._UZ(68,"span",39),e.qZA(),e.TgZ(69,"div",11),e.TgZ(70,"select",40),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.debugResp=n}),e.TgZ(71,"option",41),e._uU(72,"false"),e.qZA(),e.TgZ(73,"option",41),e._uU(74,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"label",10),e.TgZ(77,"span",36),e._uU(78,"sendSingle"),e.qZA(),e._UZ(79,"span",42),e.qZA(),e.TgZ(80,"div",11),e.TgZ(81,"select",43),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.sendSingle=n}),e.TgZ(82,"option",41),e._uU(83,"false"),e.qZA(),e.TgZ(84,"option",41),e._uU(85,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(86,"div",9),e.TgZ(87,"label",10),e.TgZ(88,"span",36),e._uU(89,"dataTemplate"),e.qZA(),e._UZ(90,"span",44),e.qZA(),e.TgZ(91,"div",11),e.TgZ(92,"input",45),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.dataTemplate=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(93,"div",9),e.TgZ(94,"label",10),e._uU(95,"InsecureSkipVerify"),e.qZA(),e.TgZ(96,"div",11),e.TgZ(97,"select",46),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.insecureSkipVerify=n}),e.TgZ(98,"option",41),e._uU(99,"true"),e.qZA(),e.TgZ(100,"option",41),e._uU(101,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",9),e.TgZ(103,"label",10),e._uU(104,"CertificationPath"),e.qZA(),e.TgZ(105,"div",11),e.TgZ(106,"input",47),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.certificationPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(107,"div",9),e.TgZ(108,"label",10),e._uU(109,"PrivateKeyPath"),e.qZA(),e.TgZ(110,"div",11),e.TgZ(111,"input",48),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.privateKeyPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",9),e.TgZ(113,"label",10),e._uU(114,"RootCaPath"),e.qZA(),e.TgZ(115,"div",11),e.TgZ(116,"input",49),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.rootCaPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(117,"div",9),e.TgZ(118,"label",10),e._uU(119,"Advanced Options"),e.qZA(),e.TgZ(120,"div",11),e.TgZ(121,"app-sink-base-properties",50),e.NdJ("sinkBasePropertiesChange",function(n){return e.CHM(t),e.oxw().onSinkBasePropertiesChange(n)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.restSink.method),e.xp6(17),e.ekj("is-invalid",!t.restSink.url)("is-valid",t.restSink.url),e.Q6J("ngModel",t.restSink.url),e.xp6(8),e.Q6J("ngModel",t.restSink.bodyType),e.xp6(25),e.Q6J("ngForOf",t.requestHeaderList),e.xp6(7),e.Q6J("ngModel",t.restSink.timeout),e.xp6(7),e.Q6J("ngModel",t.restSink.debugResp),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",t.restSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",t.restSink.certificationPath),e.xp6(5),e.Q6J("ngModel",t.restSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",t.restSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",t.sinkBaseProperties)}}let he=(()=>{class o{constructor(){this.SVC_TYPE_COMMAND="command",this.SVC_TYPE_CUSTOM="custom",this.templateTypeSelected=this.SVC_TYPE_COMMAND,this.sinkBaseProperties={},this.restSinkChange=new e.vpe,this.requestHeaderList=[],this._restSink={method:"GET",bodyType:"json",debugResp:!1,insecureSkipVerify:!0,timeout:5e3,sendSingle:!1,dataTemplate:""}}get restSink(){return this._restSink}set restSink(t){Object.assign(this._restSink,t)}ngOnInit(){if(Object.assign(this.sinkBaseProperties,this.restSink),this.restSink.headers)for(const[t,_]of Object.entries(this.restSink.headers))this.requestHeaderList.push({key:t,value:_});this.renderPopoverComponent()}ngOnChanges(){this.restSinkChange.emit(this.restSink)}ngAfterViewInit(){}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}templateTypeToggle(t){this.templateTypeSelected=t,window.setTimeout(()=>{this.renderPopoverComponent()},1e3)}requestHeaderChange(t){this.headersResovler()}headersResovler(){let t={};this.requestHeaderList.forEach(_=>{t[`${_.key}`]=`${_.value}`}),this.restSink.headers=t,this.restSinkChange.emit(this.restSink)}addRequestHeader(){this.requestHeaderList.push({key:"",value:""})}removeRequestHeader(t,_){this.requestHeaderList.splice(t,1),this.headersResovler()}onSinkBasePropertiesChange(t){Object.assign(this.restSink,t)}onCmdSvcTemplateInfoChange(t){this.getValuesSettingAllOfCommandTemplate()}getValuesSettingAllOfCommandTemplate(){this.restSink.method=this.cmdSvcTemplate.getHttpMethod(),this.restSink.url=this.cmdSvcTemplate.getUrl(),this.restSink.dataTemplate=this.cmdSvcTemplate.getRequestBodyJSONStr()}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rest-sink"]],viewQuery:function(t,_){if(1&t&&e.Gf(b,5),2&t){let n;e.iGM(n=e.CRH())&&(_.cmdSvcTemplate=n.first)}},inputs:{restSink:"restSink"},outputs:{restSinkChange:"restSinkChange"},features:[e.TTD],decls:17,vars:10,consts:function(){let a,t;return a="the url can't be empty!",t="Add Headers KV",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body"],[4,"ngIf"],[3,"url","httpMethod","requestBodyJSONStr","cmdSvcInfoChange"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["name","method",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],[1,"form-group","row","has-validation"],["type","text","name","url",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],a,["name","bodyType",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","json"],["value","text"],["value","html"],["value","xml"],["value","javascript"],["value","form"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],t,[4,"ngFor","ngForOf"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The timeout (milliseconds) for a HTTP request, defaults to 5000 ms",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","timeout",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Control if print the response information into the console. If set it to true, then print response; If set to false, then skip print log. The default is false.",1,"fa","fa-question-circle-o","fa-lg"],["name","debugResp",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here be treated as http post or put RequestBody,The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"],[1,"form-inline","mb-1"],[1,"input-group","mb-1"],[1,"input-group-prepend"],[1,"input-group-text"],["type","text","name","headerKey",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","mx-2"],[1,"fa","fa-long-arrow-right"],[1,"input-group"],["type","text","name","headerValue",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"REST Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",1),e.TgZ(6,"span",4),e.NdJ("click",function(){return _.templateTypeToggle(_.SVC_TYPE_COMMAND)}),e._UZ(7,"i",5),e.TgZ(8,"span"),e._uU(9,"EdgeXCommandServiceTemplate"),e.qZA(),e.qZA(),e.TgZ(10,"span",4),e.NdJ("click",function(){return _.templateTypeToggle(_.SVC_TYPE_CUSTOM)}),e._UZ(11,"i",5),e.TgZ(12,"span"),e._uU(13,"CustomHttpServiceTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",6),e.YNc(15,Te,2,3,"div",7),e.YNc(16,fe,122,23,"div",7),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.ekj("badge-info",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(3),e.ekj("badge-info",_.templateTypeSelected===_.SVC_TYPE_CUSTOM),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.SVC_TYPE_CUSTOM),e.xp6(4),e.Q6J("ngIf",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(1),e.Q6J("ngIf",_.templateTypeSelected===_.SVC_TYPE_CUSTOM))},directives:[p.O5,b,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,p.sg,s.wV,C],styles:[""]}),o})(),Ze=(()=>{class o{constructor(){this.sinkBaseProperties={},this.logSinkChange=new e.vpe,this._logSink={sendSingle:!1}}get logSink(){return this._logSink}set logSink(t){Object.assign(this._logSink,t)}ngOnInit(){Object.assign(this.sinkBaseProperties,this.logSink),this.renderPopoverComponent()}ngOnChanges(){this.logSinkChange.emit(this.logSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.logSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-log-sink"]],inputs:{logSink:"logSink"},outputs:{logSinkChange:"logSinkChange"},features:[e.TTD],decls:35,vars:5,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"text-info","mb-2"],[1,"fa","fa-info-circle","mr-1"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Log Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"p",5),e._UZ(7,"i",6),e._uU(8," The action is used for print output message into log file, the log file is at $eKuiper_install/log/stream.log by default."),e._UZ(9,"br"),e._uU(10," No properties can be specified for the action. "),e.qZA(),e.TgZ(11,"div",7),e.TgZ(12,"label",8),e.TgZ(13,"span",9),e._uU(14,"sendSingle"),e.qZA(),e._UZ(15,"span",10),e.qZA(),e.TgZ(16,"div",11),e.TgZ(17,"select",12),e.NdJ("ngModelChange",function(i){return _.logSink.sendSingle=i}),e.TgZ(18,"option",13),e._uU(19,"false"),e.qZA(),e.TgZ(20,"option",13),e._uU(21,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",7),e.TgZ(23,"label",8),e.TgZ(24,"span",9),e._uU(25,"dataTemplate"),e.qZA(),e._UZ(26,"span",14),e.qZA(),e.TgZ(27,"div",11),e.TgZ(28,"input",15),e.NdJ("ngModelChange",function(i){return _.logSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"form"),e.TgZ(30,"div",7),e.TgZ(31,"label",8),e._uU(32,"Advanced Options"),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"app-sink-base-properties",16),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngModel",_.logSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.logSink.dataTemplate),e.xp6(6),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,s._Y,s.JL,s.F,C],styles:[""]}),o})();function Ce(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"li",9),e.TgZ(1,"span",10),e._uU(2),e.qZA(),e.TgZ(3,"span",11),e.TgZ(4,"span",12),e.NdJ("click",function(){const n=e.CHM(t),i=n.$implicit,r=n.index;return e.oxw(2).editSinkTransfer(i,r)}),e._UZ(5,"i",13),e.qZA(),e.TgZ(6,"span",14),e.NdJ("click",function(){const n=e.CHM(t),i=n.$implicit,r=n.index;return e.oxw(2).deleteSink(i,r)}),e._UZ(7,"i",15),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit,_=a.index,n=e.oxw(2);e.ekj("list-group-item-light",_!==n.selectedSinkIndex)("list-group-item-secondary",_===n.selectedSinkIndex),e.xp6(2),e.Oqu(n.getSinkTypeOfAction(t))}}function Ne(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"p",2),e.TgZ(2,"span",3),e.NdJ("click",function(){return e.CHM(t),e.oxw().addSinkTransfer()}),e._UZ(3,"span",4),e.TgZ(4,"span",5),e.SDv(5,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"ul",7),e.YNc(7,Ce,8,5,"li",8),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(7),e.Q6J("ngForOf",t.ruleActions)}}function Me(o,a){1&o&&(e.TgZ(0,"span",33),e._uU(1,"Edit Sink"),e.qZA())}function ve(o,a){if(1&o&&(e.TgZ(0,"span"),e._UZ(1,"i",32),e.TgZ(2,"span",33),e._uU(3,"Add Sink"),e.qZA(),e.YNc(4,Me,2,0,"span",34),e.qZA()),2&o){const t=e.oxw(2);e.xp6(4),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT)}}function Re(o,a){1&o&&(e.TgZ(0,"span"),e._UZ(1,"i",35),e.TgZ(2,"span",33),e._uU(3,"Edit Sink"),e.qZA(),e.qZA())}function Ue(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).addOneNewSink()}),e._uU(1,"Add"),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function Ie(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).updateSink()}),e._uU(1,"Update"),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function qe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-edgex-sink",37),e.NdJ("edgeXSinkChange",function(n){return e.CHM(t),e.oxw(2).edgeXSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("edgeXSink",t.edgeXSink)}}function be(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-mqtt-sink",38),e.NdJ("mqttSinkChange",function(n){return e.CHM(t),e.oxw(2).mqttSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("mqttSink",t.mqttSink)}}function Ge(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-rest-sink",39),e.NdJ("restSinkChange",function(n){return e.CHM(t),e.oxw(2).restSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("restSink",t.restSink)}}function Le(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-log-sink",40),e.NdJ("logSinkChange",function(n){return e.CHM(t),e.oxw(2).logSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("logSink",t.logSink)}}function Oe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.YNc(2,ve,5,1,"span",0),e.YNc(3,Re,4,0,"span",0),e.TgZ(4,"span",11),e.YNc(5,Ue,2,1,"button",18),e.YNc(6,Ie,2,1,"button",18),e.TgZ(7,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e._uU(8,"Cancel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",20),e.TgZ(10,"form",21),e.TgZ(11,"div",22),e.TgZ(12,"label",23),e.SDv(13,24),e.qZA(),e.TgZ(14,"div",25),e.TgZ(15,"select",26),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().selectedSinkType=n}),e.TgZ(16,"option",27),e._uU(17),e.qZA(),e.TgZ(18,"option",27),e._uU(19),e.qZA(),e.TgZ(20,"option",27),e._uU(21),e.qZA(),e.TgZ(22,"option",27),e._uU(23),e.qZA(),e.qZA(),e.TgZ(24,"div",28),e.TgZ(25,"small"),e.SDv(26,29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",30),e.YNc(28,qe,2,1,"div",31),e.YNc(29,be,2,1,"div",31),e.YNc(30,Ge,2,1,"div",31),e.YNc(31,Le,2,1,"div",31),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(9),e.ekj("is-invalid",!t.selectedSinkType),e.Q6J("ngModel",t.selectedSinkType),e.xp6(1),e.s9C("value",t.EdgeX_SINK),e.xp6(1),e.Oqu(t.EdgeX_SINK),e.xp6(1),e.s9C("value",t.MQTT_SINK),e.xp6(1),e.Oqu(t.MQTT_SINK),e.xp6(1),e.s9C("value",t.REST_SINK),e.xp6(1),e.Oqu(t.REST_SINK),e.xp6(1),e.s9C("value",t.LOG_SINK),e.xp6(1),e.Oqu(t.LOG_SINK),e.xp6(4),e.Q6J("ngSwitch",t.selectedSinkType),e.xp6(1),e.Q6J("ngSwitchCase",t.EdgeX_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.MQTT_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.REST_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.LOG_SINK)}}let G=(()=>{class o{constructor(){this.EdgeX_SINK="edgex",this.MQTT_SINK="mqtt",this.REST_SINK="rest",this.LOG_SINK="log",this.NOP_SINK="nop",this.ruleActionsChange=new e.vpe,this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={},this.selectedSinkIndex=-1,this.selectedSinkType="",this.sinkAddOrEditStatus=!1,this.sinkOperation_ADD="add",this.sinkOperation_EDIT="edit",this.sinkAddOrEditOperation="",this.updateTimestamp="",this._ruleActions=[]}get ruleActions(){return this._ruleActions}set ruleActions(t){!t||(this._ruleActions=t)}ngOnInit(){}ngOnChanges(){this.ruleActionsChange.emit(this.ruleActions)}resetSinksConcreteAll(){this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={}}getSinkTypeOfAction(t){let _=Object.keys(t);return 0===_.length?"":_[0]}getSinkByType(t){let _={};switch(t){case this.EdgeX_SINK:_.edgex=this.edgeXSink;break;case this.MQTT_SINK:_.mqtt=this.mqttSink;break;case this.REST_SINK:_.rest=this.restSink;break;case this.LOG_SINK:_.log=this.logSink;break;default:_.nop=this.nopSink}return _}sinkConcreteExtractor(t){let _=this.getSinkTypeOfAction(t);switch(this.selectedSinkType=_,_){case this.EdgeX_SINK:this.edgeXSink=t.edgex;break;case this.MQTT_SINK:this.mqttSink=t.mqtt;break;case this.REST_SINK:this.restSink=t.rest;break;case this.LOG_SINK:this.logSink=t.log;break;default:this.nopSink=t.nop}}addSinkTransfer(){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_ADD,this.selectedSinkIndex=-1,this.selectedSinkType="",this.resetSinksConcreteAll()}editSinkTransfer(t,_){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_EDIT,this.selectedSinkIndex=_,this.sinkConcreteExtractor(t),this.selectedSinkType=this.getSinkTypeOfAction(t)}addOneNewSink(){this.ruleActions.push(this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}updateSink(){this.ruleActions.splice(this.selectedSinkIndex,1,this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}deleteSink(t,_){this.ruleActions.splice(_,1),this.selectedSinkIndex=-1}cancel(){this.sinkAddOrEditStatus=!1}validate(){if(!this.selectedSinkType)return!1;switch(this.selectedSinkType){case this.MQTT_SINK:if(!this.mqttSink.server||!this.mqttSink.topic)return!1;break;case this.REST_SINK:if(!this.restSink.url)return!1}return!0}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-sink-list"]],inputs:{ruleActions:"ruleActions"},outputs:{ruleActionsChange:"ruleActionsChange"},features:[e.TTD],decls:2,vars:2,consts:function(){let a,t,_;return a="Add Sink",t="Sink Type",_="please select a valid Sink Type !",[[4,"ngIf"],["class","card",4,"ngIf"],[1,"badge","badge-secondary","font-weight-bold"],[3,"click"],[1,"fa","fa-plus-circle","mr-1"],["role","button",1,"user-select-none"],a,[1,"list-group"],["class","list-group-item list-group-item-action ",3,"list-group-item-light","list-group-item-secondary",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action"],[1,"text-dark","mr-2"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit"],["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash"],[1,"card"],[1,"card-header","p-2"],["class","btn btn-success btn-sm mr-2",3,"disabled","click",4,"ngIf"],[1,"btn","btn-secondary","btn-sm",3,"click"],[1,"card-body"],[1,"mb-2"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],t,[1,"col-sm-9"],["name","SinkType",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["id","validationSinkTypeFeedback",1,"invalid-feedback"],_,[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"fa","fa-plus","mr-2","text-info"],[1,"font-weight-bold"],["class","font-weight-bold",4,"ngIf"],[1,"fa","fa-edit","mr-2","text-info"],[1,"btn","btn-success","btn-sm","mr-2",3,"disabled","click"],[3,"edgeXSink","edgeXSinkChange"],[3,"mqttSink","mqttSinkChange"],[3,"restSink","restSinkChange"],[3,"logSink","logSinkChange"]]},template:function(t,_){1&t&&(e.YNc(0,Ne,8,1,"div",0),e.YNc(1,Oe,32,20,"div",1)),2&t&&(e.Q6J("ngIf",!_.sinkAddOrEditStatus),e.xp6(1),e.Q6J("ngIf",_.sinkAddOrEditStatus))},directives:[p.O5,p.sg,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,p.RF,p.n9,oe,ie,he,Ze],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function ke(o,a){1&o&&e._UZ(0,"i",29)}function Pe(o,a){1&o&&e._UZ(0,"i",30)}let L=(()=>{class o{constructor(){this.collapseToggleStatus=!1,this.ruleOptionsChange=new e.vpe,this._ruleOptions={isEventTime:!1,sendMetaToSink:!1,sendError:!0,qos:0}}get ruleOptions(){return this._ruleOptions}set ruleOptions(t){Object.assign(this._ruleOptions,t)}ngOnInit(){}ngOnChanges(){this.ruleOptionsChange.emit(this.ruleOptions)}collapseToggle(t){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rule-advanced-options"]],inputs:{ruleOptions:"ruleOptions"},outputs:{ruleOptionsChange:"ruleOptionsChange"},features:[e.TTD],decls:84,vars:19,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"font-weight-bold","text-primary"],[1,"text-primary","ml-2"],["aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["id","clllapse-rule-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to use event time or processing time as the timestamp for an event. If event time is used, the timestamp will be extracted from the payload. The timestamp filed must be specified by the stream definition.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","isEventTime",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the qos of the stream. The options are 0: At most once; 1: At least once and 2: Exactly once. If qos is bigger than 0, the checkpoint mechanism will be activated to save states periodically so that the rule can be resumed from errors.",1,"fa","fa-question-circle-o","fa-lg"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","When working with event-time windowing, it can happen that elements arrive late. LateTolerance can specify by how much time(unit is millisecond) elements can be late before they are dropped. By default, the value is 0 which means late elements are dropped.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","lateTolerance",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","A rule is processed by several phases of plans according to the sql statement. This option will specify how many instances will be run for each plan. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","concurrency",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory for each plan. If the buffered messages exceed the limit, the plan will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit. A bigger value will accommodate more throughput but will also take up more memory footprint.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the time interval in milliseconds to trigger a checkpoint. This is only effective when qos is bigger than 0.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","checkpointInterval",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify whether the meta data of an event will be sent to the sink. If true, the sink can get te meta data information.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendMetaToSink",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to send the error to sink. If true, any runtime error will be sent through the whole rule into sinks. Otherwise, the error will only be printed out in the log.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendError",1,"custom-select",3,"ngModel","ngModelChange"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-down","fa-lg"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(i){return _.collapseToggle(i)}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Rule Advanced Options"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,ke,1,0,"i",5),e.YNc(7,Pe,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span",10),e._uU(13,"IsEventTime"),e.qZA(),e._UZ(14,"span",11),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"select",13),e.NdJ("ngModelChange",function(i){return _.ruleOptions.isEventTime=i}),e.TgZ(17,"option",14),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span",10),e._uU(24,"Qos"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",12),e.TgZ(27,"select",16),e.NdJ("ngModelChange",function(i){return _.ruleOptions.qos=i}),e.TgZ(28,"option",14),e._uU(29,"0"),e.qZA(),e.TgZ(30,"option",14),e._uU(31,"1"),e.qZA(),e.TgZ(32,"option",14),e._uU(33,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",8),e.TgZ(35,"label",9),e.TgZ(36,"span",10),e._uU(37,"LateTolerance"),e.qZA(),e._UZ(38,"span",17),e.qZA(),e.TgZ(39,"div",12),e.TgZ(40,"input",18),e.NdJ("ngModelChange",function(i){return _.ruleOptions.lateTolerance=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e.TgZ(43,"span",10),e._uU(44,"Concurrency"),e.qZA(),e._UZ(45,"span",19),e.qZA(),e.TgZ(46,"div",12),e.TgZ(47,"input",20),e.NdJ("ngModelChange",function(i){return _.ruleOptions.concurrency=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",8),e.TgZ(49,"label",9),e.TgZ(50,"span",10),e._uU(51,"BufferLength"),e.qZA(),e._UZ(52,"span",21),e.qZA(),e.TgZ(53,"div",12),e.TgZ(54,"input",22),e.NdJ("ngModelChange",function(i){return _.ruleOptions.bufferLength=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",8),e.TgZ(56,"label",9),e.TgZ(57,"span",10),e._uU(58,"CheckpointInterval"),e.qZA(),e._UZ(59,"span",23),e.qZA(),e.TgZ(60,"div",12),e.TgZ(61,"input",24),e.NdJ("ngModelChange",function(i){return _.ruleOptions.checkpointInterval=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",8),e.TgZ(63,"label",9),e.TgZ(64,"span",10),e._uU(65,"SendMetaToSink"),e.qZA(),e._UZ(66,"span",25),e.qZA(),e.TgZ(67,"div",12),e.TgZ(68,"select",26),e.NdJ("ngModelChange",function(i){return _.ruleOptions.sendMetaToSink=i}),e.TgZ(69,"option",14),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",14),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e.TgZ(75,"span",10),e._uU(76,"SendError"),e.qZA(),e._UZ(77,"span",27),e.qZA(),e.TgZ(78,"div",12),e.TgZ(79,"select",28),e.NdJ("ngModelChange",function(i){return _.ruleOptions.sendError=i}),e.TgZ(80,"option",14),e._uU(81,"false"),e.qZA(),e.TgZ(82,"option",14),e._uU(83,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(9),e.Q6J("ngModel",_.ruleOptions.isEventTime),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.lateTolerance),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.concurrency),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.bufferLength),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.checkpointInterval),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.sendMetaToSink),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.sendError),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.wV,s.Fj],styles:[""]}),o})();function De(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}function ye(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,43),e.qZA(),e.qZA())}let Je=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}submit(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.addRule(this.rule).subscribe(()=>{this.msgSvc.success("Add rule",`Name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-rules"]],decls:59,vars:18,consts:function(){let a,t,_,n,i,r,l,S,g,u,m;return a="Add Rule",t="Submit",_="Name",n="the rule name can't be empty!",i="RuleSQL",r="SQL Editor",l="Action",S="Add Action",g="Options",u="SQL can't be empty!",m="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],a,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],n,["for","ruleSql",1,"col-md-2","col-form-label"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],r,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],l,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],S,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u,m]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return _.submit()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(i){return _.rule.id=i}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,De,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,ye,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(i){return _.rule.actions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(i){return _.rule.options=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!_.validate()),e.xp6(12),e.ekj("is-invalid",!_.rule.id)("is-valid",_.rule.id),e.Q6J("ngModel",_.rule.id),e.xp6(11),e.ekj("border",!_.sqlEditor.getValue())("border-danger",!_.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!_.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!_.rule.actions||0===_.rule.actions.length)("border-danger",!_.rule.actions||0===_.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!_.rule.actions||0===_.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",_.rule.actions),e.xp6(7),e.Q6J("ruleOptions",_.rule.options))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,p.O5,G,L],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function xe(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e._uU(3,"SQL can't be empty!"),e.qZA(),e.qZA())}function $e(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}let Xe=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.ruleID&&this.getRuleByID(t.ruleID)}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}getRuleByID(t){this.ruleSvc.findRuleById(t).subscribe(_=>{this.rule=_,this.sqlEditor.setValue(this.rule.sql)})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}update(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.updateRule(this.rule).subscribe(()=>{this.msgSvc.success("update",`name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edit-rules"]],decls:59,vars:18,consts:function(){let a,t,_,n,i,r,l,S,g,u;return a="Edit Rule",t="Update",_="Name",n="the rule name can't be empty!",i="RuleSQL",r="SQL Editor",l="Action",S="Add Action",g="Options",u="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],a,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],n,["for","ruleSql",1,"col-md-2","col-form-label"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],r,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],l,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],S,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return _.update()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(i){return _.rule.id=i}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,xe,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,$e,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(i){return _.rule.actions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(i){return _.rule.options=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!_.validate()),e.xp6(12),e.ekj("is-invalid",!_.rule.id)("is-valid",_.rule.id),e.Q6J("ngModel",_.rule.id),e.xp6(11),e.ekj("border",!_.sqlEditor.getValue())("border-danger",!_.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!_.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!_.rule.actions||0===_.rule.actions.length)("border-danger",!_.rule.actions||0===_.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!_.rule.actions||0===_.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",_.rule.actions),e.xp6(7),e.Q6J("ruleOptions",_.rule.options))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,p.O5,G,L],styles:[""]}),o})(),we=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rules-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),o})();function Be(o,a){1&o&&(e.TgZ(0,"span"),e.TgZ(1,"div",50),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function Qe(o,a){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.status," ")}}function He(o,a){1&o&&(e.TgZ(0,"span"),e.TgZ(1,"div",52),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.TgZ(4,"div",53),e.TgZ(5,"span",51),e._uU(6,"Loading..."),e.qZA(),e.qZA(),e.TgZ(7,"div",54),e.TgZ(8,"span",51),e._uU(9,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function We(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",55),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"start")}),e.SDv(2,56),e.qZA(),e.TgZ(3,"span",57),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"restart")}),e.SDv(4,58),e.qZA(),e.TgZ(5,"span",59),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"stop")}),e.SDv(6,60),e.qZA(),e.qZA()}}function Fe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",24),e.NdJ("click",function(n){const r=e.CHM(t).$implicit;return e.oxw().selectOne(n,r)}),e.qZA(),e.qZA(),e.TgZ(3,"td",46),e._uU(4),e.qZA(),e.TgZ(5,"td"),e.YNc(6,Be,4,0,"span",47),e.YNc(7,Qe,2,1,"span",47),e.qZA(),e.TgZ(8,"td",48),e.TgZ(9,"i",49),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().statusMetrics(i.id)}),e.qZA(),e.qZA(),e.TgZ(10,"td"),e.YNc(11,He,10,0,"span",47),e.YNc(12,We,7,0,"span",47),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit,_=e.oxw();e.ekj("table-active",_.isChecked(t.id)),e.xp6(2),e.Q6J("checked",_.isChecked(t.id)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Q6J("ngIf",_.operationStatus),e.xp6(1),e.Q6J("ngIf",!_.operationStatus),e.xp6(2),e.ekj("text-info",_.statusMetricsRuleID===t.id),e.xp6(2),e.Q6J("ngIf",_.operationStatus),e.xp6(1),e.Q6J("ngIf",!_.operationStatus)}}function Ve(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",61),e.TgZ(1,"div",1),e._UZ(2,"i",62),e.TgZ(3,"span",63),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,64),e.qZA(),e.TgZ(7,"span",65),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return n.statusMetricsRefresh(n.statusMetricsRuleID)}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,66),e.qZA(),e.qZA(),e.TgZ(11,"span",67),e.TgZ(12,"i",68),e.NdJ("click",function(){return e.CHM(t),e.oxw().statusMetricsShowClose()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",69),e.TgZ(14,"pre",70),e._uU(15),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(4),e.Oqu(t.statusMetricsRuleID),e.xp6(11),e.Oqu(t.ruleStatusMetrics)}}let Ke=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.route=n,this.router=i,this.rulesList=[],this.selectedRules=[],this.ruleStatusMetrics="",this.statusMetricsRuleID="",this.operationStatus=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{this.getRulesList()})}getRulesList(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t})}refresh(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t,this.msgSvc.success("refresh")})}edit(){this.router.navigate(["../edit-rules"],{relativeTo:this.route,queryParams:{ruleID:this.selectedRules[0].id}})}statusMetrics(t){this.statusMetricsRuleID="",this.ruleStatusMetrics="",this.ruleSvc.getRuleStatusMetricsById(t).subscribe(_=>{let n;this.statusMetricsRuleID=t;try{n=JSON.parse(_)}catch(i){return void(this.ruleStatusMetrics=_)}this.ruleStatusMetrics=JSON.stringify(n,null,3)})}statusMetricsShowClose(){this.statusMetricsRuleID="",this.ruleStatusMetrics=""}statusMetricsRefresh(t){this.statusMetrics(t)}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedRules.forEach((t,_)=>{this.ruleSvc.deleteOneRuleById(t.id).subscribe(()=>{this.selectedRules.splice(_,1),this.rulesList.forEach((n,i)=>{n.id===t.id&&(this.rulesList.splice(i,1),this.msgSvc.success("remove rule ",` Id: ${t.id}`))})})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let t=!0;return this.rulesList&&0===this.rulesList.length&&(t=!1),this.rulesList.forEach(_=>{-1===this.selectedRules.findIndex(n=>n.id===_.id)&&(t=!1)}),t}selectAll(t){this.rulesList.forEach(t.target.checked?n=>{-1===this.selectedRules.findIndex(i=>i.id===n.id)&&this.selectedRules.push(n)}:n=>{let i=this.selectedRules.findIndex(r=>r.id===n.id);-1!==i&&this.selectedRules.splice(i,1)})}isChecked(t){return this.selectedRules.findIndex(_=>_.id===t)>=0}selectOne(t,_){if(t.target.checked)return void this.selectedRules.push(_);let i=this.selectedRules.findIndex(r=>r.id===_.id);-1!==i&&this.selectedRules.splice(i,1)}execute(t,_){this.operationStatus=!0,this.ruleSvc.executeRuleCommand(t,_).subscribe({next:()=>{this.operationStatus=!1,this.msgSvc.success(`${_} ${t}`),this.getRulesList()},error:()=>this.operationStatus=!1})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.gz),e.Y36(c.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rules-list"]],decls:56,vars:5,consts:function(){let a,t,_,n,i,r,l,S,g,u,m,T,k,P,D,y,J,x;return a="Rule List",t="Refresh",_="Add",n="Edit",i="Delete",r="ID",l="Status",S="Status Metrics",g="Operaion",u="Warning",m=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",T="Cancel",k="Confirm",P="start",D="restart",y="stop",J="Status Metrics",x="refresh",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],[1,"font-weight-bold"],a,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],t,["type","button","routerLink","../add-rules",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],_,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],r,l,["scope","col",1,"text-center"],S,g,[3,"table-active",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],u,[1,"modal-body"],m,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],T,["type","button",1,"btn","btn-danger",3,"click"],k,[1,"user-select-all"],[4,"ngIf"],[1,"text-center"],["role","button",1,"fa","fa-line-chart","text-primary",3,"click"],["role","status",1,"spinner-border","spinner-border-sm","text-secondary"],[1,"sr-only"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-success"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-info"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-danger"],["role","button",1,"badge","badge-success","mr-1",3,"click"],P,["role","button",1,"badge","badge-info","mr-1",3,"click"],D,["role","button",1,"badge","badge-danger","mr-1",3,"click"],y,[1,"card","mt-3"],[1,"fa","fa-line-chart","mr-2","text-info"],[1,"mr-2","font-weight-bold"],J,["role","button",1,"badge","badge-primary","mx-2",3,"click"],x,["role","button",1,"align-bottom"],[1,"fa","fa-window-close","fa-lg","text-danger","float-right","mt-1",3,"click"],[1,"card-body"],[1,"p-2"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"div",6),e.TgZ(7,"button",7),e.NdJ("click",function(){return _.refresh()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.TgZ(11,"button",10),e._UZ(12,"i",11),e.TgZ(13,"span"),e.SDv(14,12),e.qZA(),e.qZA(),e.TgZ(15,"button",13),e.NdJ("click",function(){return _.edit()}),e._UZ(16,"i",14),e.TgZ(17,"span"),e.SDv(18,15),e.qZA(),e.qZA(),e.TgZ(19,"button",16),e.NdJ("click",function(){return _.deleteConfirm()}),e._UZ(20,"i",17),e.TgZ(21,"span"),e.SDv(22,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",19),e.TgZ(24,"div",20),e.TgZ(25,"table",21),e.TgZ(26,"thead",22),e.TgZ(27,"tr"),e.TgZ(28,"th",23),e.TgZ(29,"input",24),e.NdJ("click",function(i){return _.selectAll(i)}),e.qZA(),e.qZA(),e.TgZ(30,"th",23),e.SDv(31,25),e.qZA(),e.TgZ(32,"th",23),e.SDv(33,26),e.qZA(),e.TgZ(34,"th",27),e.SDv(35,28),e.qZA(),e.TgZ(36,"th",23),e.SDv(37,29),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"tbody"),e.YNc(39,Fe,13,10,"tr",30),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(40,Ve,16,2,"div",31),e.TgZ(41,"div",32),e.TgZ(42,"div",33),e.TgZ(43,"div",34),e.TgZ(44,"div",35),e.TgZ(45,"h5",36),e._UZ(46,"i",37),e.TgZ(47,"span"),e.SDv(48,38),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",39),e.SDv(50,40),e.qZA(),e.TgZ(51,"div",41),e.TgZ(52,"button",42),e.SDv(53,43),e.qZA(),e.TgZ(54,"button",44),e.NdJ("click",function(){return _.delete()}),e.SDv(55,45),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(15),e.Q6J("disabled",1!==_.selectedRules.length),e.xp6(4),e.Q6J("disabled",0===_.selectedRules.length),e.xp6(10),e.Q6J("checked",_.isCheckedAll()),e.xp6(10),e.Q6J("ngForOf",_.rulesList),e.xp6(1),e.Q6J("ngIf",_.ruleStatusMetrics&&_.statusMetricsRuleID))},directives:[c.rH,p.sg,p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function Ye(o,a){1&o&&(e.TgZ(0,"div",18),e._UZ(1,"i",19),e.TgZ(2,"span"),e.SDv(3,20),e.qZA(),e.qZA())}let ze=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.EDGEX="edgex",this.CUSTOM="custom",this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.templateTypeSelected=this.EDGEX,this.edgexStreamDataTemplate='CREATE STREAM EdgeXStream () WITH ( FORMAT = "JSON", TYPE = "edgex" )',this.customStreamDataTemplate='CREATE STREAM demo ( field1 bigint, field2 float ) WITH ( DATASOURCE = "", KEY = "", FORMAT = "JSON", CONF_KEY = "", TYPE = "edgex", STRICT_VALIDATION = "true", TIMESTAMP = "", TIMESTAMP_FORMAT = "", RETAIN_SIZE = "0", SHARED = "false" )',this.streamIsNullMsg=!1}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}templateTypeToggle(t){this.templateTypeSelected=t,t===this.EDGEX?this.sqlEditor.setValue(this.edgexStreamDataTemplate):(this.sqlEditor.setValue(this.customStreamDataTemplate),this.formatSql())}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})}),this.sqlEditor.setValue(this.edgexStreamDataTemplate)}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}documentShow(){$("#stream-document").modal("show")}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.addStream(JSON.stringify({sql:t})).subscribe(()=>{this.msgSvc.success("Add Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-stream"]],decls:25,vars:9,consts:function(){let a,t,_;return a="Add Stream",t="Submit",_="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,""],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],a,["type","button",1,"btn","btn-success","btn-sm","float-right",3,"click"],[1,"fa","fa-save","mr-1"],t,[1,"card-header"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],_]},template:function(t,_){1&t&&(e.YNc(0,Ye,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"span",5),e.SDv(6,6),e.qZA(),e.qZA(),e.TgZ(7,"button",7),e.NdJ("click",function(){return _.submit()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",10),e.TgZ(12,"span",11),e.NdJ("click",function(){return _.templateTypeToggle(_.EDGEX)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e._uU(15,"EdgeXStreamTemplate"),e.qZA(),e.qZA(),e.TgZ(16,"span",11),e.NdJ("click",function(){return _.templateTypeToggle(_.CUSTOM)}),e._UZ(17,"i",12),e.TgZ(18,"span"),e._uU(19,"CustomStreamTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",13),e.TgZ(21,"div",14),e.TgZ(22,"span",15),e.TgZ(23,"i",16),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(24,"textarea",17),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",_.streamIsNullMsg),e.xp6(12),e.ekj("badge-info",_.templateTypeSelected===_.EDGEX),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.EDGEX),e.xp6(3),e.ekj("badge-info",_.templateTypeSelected===_.CUSTOM),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.CUSTOM))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function je(o,a){1&o&&(e.TgZ(0,"div",16),e._UZ(1,"i",17),e.TgZ(2,"span"),e.SDv(3,18),e.qZA(),e.qZA())}let et=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.streamName="",this.streamStringFormatObj="",this.streamIsNullMsg=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{t.streamName&&(this.streamName=t.streamName,this.getStreamByNameOrID())}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}getStreamByNameOrID(){this.ruleSvc.findStreamByName(this.streamName).subscribe(t=>{this.streamJSONFormatObj=t,this.dataFormatJSONToStringConvertor(),this.sqlEditor.setValue(this.streamStringFormatObj),this.formatSql()})}dataFormatJSONToStringConvertor(){var t,_,n;if(!this.streamJSONFormatObj)return;let i=[];null===(_=null===(t=this.streamJSONFormatObj)||void 0===t?void 0:t.StreamFields)||void 0===_||_.forEach((l,S)=>{i.push(`${l.Name} ${l.FieldType}`)});let r=[];for(const[l,S]of Object.entries(this.streamJSONFormatObj.Options))r.push(`${l} = "${S}"`);this.streamStringFormatObj=`CREATE STREAM ${null===(n=this.streamJSONFormatObj)||void 0===n?void 0:n.Name} ( ${i.join(", ")} ) WITH ( ${r.join(", ")} )`}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.updateStream(JSON.stringify({sql:t}),this.streamName).subscribe(()=>{this.msgSvc.success("Update Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edit-stream"]],decls:19,vars:3,consts:function(){let a,t,_;return a="Edit Stream",t="Submit",_="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-2"],a,[1,"font-weight-bold"],[1,"float-right"],["type","button",1,"btn","btn-success","btn-sm",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],_]},template:function(t,_){1&t&&(e.YNc(0,je,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span"),e._UZ(4,"span",3),e.TgZ(5,"span",4),e.SDv(6,5),e.qZA(),e.TgZ(7,"span",6),e._uU(8),e.qZA(),e.qZA(),e.TgZ(9,"span",7),e.TgZ(10,"button",8),e.NdJ("click",function(){return _.submit()}),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e.TgZ(16,"span",13),e.TgZ(17,"i",14),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(18,"textarea",15),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",_.streamIsNullMsg),e.xp6(8),e.Oqu(_.streamName),e.xp6(2),e.Q6J("disabled",!_.streamStringFormatObj))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),tt=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-stream-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),o})();function _t(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"li",29),e.TgZ(1,"div",30),e.TgZ(2,"div",31),e._UZ(3,"i",32),e.qZA(),e.TgZ(4,"div",33),e.TgZ(5,"div",34),e.TgZ(6,"h5",35),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",36),e.TgZ(10,"span",37),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().edit(i)}),e._UZ(11,"i",38),e.TgZ(12,"span"),e.SDv(13,39),e.qZA(),e.qZA(),e.TgZ(14,"span",40),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().deleteConfirm(i)}),e._UZ(15,"i",41),e.TgZ(16,"span"),e.SDv(17,42),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit;e.xp6(7),e.Oqu(t)}}let nt=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.route=n,this.router=i,this.streamList=[],this.selectedStream=""}ngOnInit(){this.getStreamList()}getStreamList(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t})}refresh(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t,this.msgSvc.success("refresh")})}add(){this.router.navigate(["../add-stream"],{relativeTo:this.route})}edit(t){this.router.navigate(["../edit-stream"],{relativeTo:this.route,queryParams:{streamName:t}})}deleteConfirm(t){this.selectedStream=t,$("#deleteConfirmDialog").modal("show")}delete(){$("#deleteConfirmDialog").modal("hide"),this.ruleSvc.deleteOneStreamById(this.selectedStream).subscribe(()=>{this.msgSvc.success("delete",`name: ${this.selectedStream}`),this.streamList.forEach((t,_)=>{t===this.selectedStream&&this.streamList.splice(_,1)})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.gz),e.Y36(c.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-stream-list"]],decls:33,vars:1,consts:function(){let a,t,_,n,i,r,l,S,g;return a="Stream List",t="Refresh",_="Add",n="Warning",i=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",r="Cancel",l="Confirm",S="Edit",g="Delete",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],a,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-refresh","mr-1"],t,[1,"btn","btn-success","btn-sm",3,"click"],[1,"fa","fa-plus-circle","mr-1"],_,[1,"card-body","p-0"],[1,"list-group","p-0","border-0"],["class","list-group-item list-group-item-action list-group-item-light border-top-0 border-left-0 border-right-0",4,"ngFor","ngForOf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],n,[1,"modal-body"],i,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],r,["type","button",1,"btn","btn-danger",3,"click"],l,[1,"list-group-item","list-group-item-action","list-group-item-light","border-top-0","border-left-0","border-right-0"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit","mr-1"],S,["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash","mr-1"],g]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return _.refresh()}),e._UZ(8,"i",7),e.TgZ(9,"span"),e.SDv(10,8),e.qZA(),e.qZA(),e.TgZ(11,"button",9),e.NdJ("click",function(){return _.add()}),e._UZ(12,"i",10),e.TgZ(13,"span"),e.SDv(14,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"ul",13),e.YNc(17,_t,18,1,"li",14),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",15),e.TgZ(19,"div",16),e.TgZ(20,"div",17),e.TgZ(21,"div",18),e.TgZ(22,"h5",19),e._UZ(23,"i",20),e.TgZ(24,"span"),e.SDv(25,21),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",22),e.SDv(27,23),e.qZA(),e.TgZ(28,"div",24),e.TgZ(29,"button",25),e.SDv(30,26),e.qZA(),e.TgZ(31,"button",27),e.NdJ("click",function(){return _.delete()}),e.SDv(32,28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngForOf",_.streamList))},directives:[p.sg],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}#addStreamDialog[_ngcontent-%COMP%] #editStreamDialog[_ngcontent-%COMP%]{margin-top:10%}"]}),o})();var ot=d(8253),it=d(1964),at=d(4294),st=d(5894),rt=d(7216);let O=(()=>{class o{constructor(t,_){this.router=t,this.ruleSvc=_}canActivate(t,_){return this.checkAvailable(t,_)}canActivateChild(t,_){return this.canActivate(t,_)}checkAvailable(t,_){return this.ruleSvc.ping().pipe((0,at.q)(1),(0,st.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"rule engine",routerPath:`/${_.url.split("/")[1]}`}})),(0,rt.z)(()=>(0,it.of)(!0)))}}return o.\u0275fac=function(t){return new(t||o)(e.LFG(c.F0),e.LFG(A.n))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const lt=[{path:"",component:X,canActivate:[ot.a,O],canActivateChild:[O],children:[{path:"",redirectTo:"stream-center",pathMatch:"full"},{path:"stream-center",component:tt,children:[{path:"",redirectTo:"stream-list",pathMatch:"full"},{path:"stream-list",component:nt},{path:"add-stream",component:ze},{path:"edit-stream",component:et}]},{path:"rules-center",component:we,children:[{path:"",redirectTo:"rules-list",pathMatch:"full"},{path:"rules-list",component:Ke},{path:"add-rules",component:Je},{path:"edit-rules",component:Xe}]}]}];let dt=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[c.Bz.forChild(lt)],c.Bz]}),o})();var gt=d(6342),ct=d(4010);let ut=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.ez,s.u5,s.UX,dt,gt.Y,ct.MetadataModule]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/155.c74e9dbdebada850abed.js b/cmd/edgex-ui-server/static/web/en-US/155.c74e9dbdebada850abed.js new file mode 100644 index 00000000..d2242ad6 --- /dev/null +++ b/cmd/edgex-ui-server/static/web/en-US/155.c74e9dbdebada850abed.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[155],{4155:(pt,M,_)=>{_.r(M),_.d(M,{RuleEngineModule:()=>ut});var p=_(8583),r=_(3092),c=_(9502),e=_(476);let G=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-rule-engine"]],decls:11,vars:0,consts:function(){let s,t;return s="Stream",t="Rules",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./stream-center","routerLinkActive","active",1,"nav-link"],s,["routerLink","./rules-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.qZA(),e.TgZ(6,"li",3),e.TgZ(7,"a",6),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e._UZ(10,"router-outlet"),e.qZA(),e.qZA())},directives:[c.yS,c.Od,c.lC],styles:[""]}),i})();var E=_(4791),h=_(7822),X=_(6322),Q=_(1302);function F(i,s){1&i&&e._UZ(0,"i",26)}function V(i,s){1&i&&e._UZ(0,"i",27)}let K=(()=>{class i{constructor(){this.collapseToggleStatus=!1,this.optionalChange=new e.vpe,this._optional={Qos:"0",Retained:"false",SkipCertVerify:"true",AutoReconnect:"true",CleanSession:"true"}}get optional(){return this._optional}set optional(t){Object.assign(this._optional,t)}ngOnInit(){}ngOnChanges(){this.optionalChange.emit(this.optional)}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edgex-sink-optional"]],inputs:{optional:"optional"},outputs:{optionalChange:"optionalChange"},features:[e.TTD],decls:102,vars:27,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["id","collapse-edgex-sink-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Password",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["type","number","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retained",1,"custom-select",3,"ngModel","ngModelChange"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","CleanSession",1,"custom-select",3,"ngModel","ngModelChange"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","CertFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","CertPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return n.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink Options Setting"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,F,1,0,"i",5),e.YNc(7,V,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e._uU(12,"ClientId"),e.qZA(),e.TgZ(13,"div",10),e.TgZ(14,"input",11),e.NdJ("ngModelChange",function(a){return n.optional.ClientId=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",8),e.TgZ(16,"label",9),e._uU(17,"Username"),e.qZA(),e.TgZ(18,"div",10),e.TgZ(19,"input",12),e.NdJ("ngModelChange",function(a){return n.optional.Username=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",8),e.TgZ(21,"label",9),e._uU(22,"Password"),e.qZA(),e.TgZ(23,"div",10),e.TgZ(24,"input",13),e.NdJ("ngModelChange",function(a){return n.optional.Password=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",8),e.TgZ(26,"label",9),e._uU(27,"Qos"),e.qZA(),e.TgZ(28,"div",10),e.TgZ(29,"select",14),e.NdJ("ngModelChange",function(a){return n.optional.Qos=a}),e.TgZ(30,"option",15),e._uU(31,"0"),e.qZA(),e.TgZ(32,"option",15),e._uU(33,"1"),e.qZA(),e.TgZ(34,"option",15),e._uU(35,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e.TgZ(37,"label",9),e._uU(38,"KeepAlive"),e.qZA(),e.TgZ(39,"div",10),e.TgZ(40,"input",16),e.NdJ("ngModelChange",function(a){return n.optional.KeepAlive=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e._uU(43,"Retained"),e.qZA(),e.TgZ(44,"div",10),e.TgZ(45,"select",17),e.NdJ("ngModelChange",function(a){return n.optional.Retained=a}),e.TgZ(46,"option",15),e._uU(47,"false"),e.qZA(),e.TgZ(48,"option",15),e._uU(49,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",8),e.TgZ(51,"label",9),e._uU(52,"AutoReconnect"),e.qZA(),e.TgZ(53,"div",10),e.TgZ(54,"select",18),e.NdJ("ngModelChange",function(a){return n.optional.AutoReconnect=a}),e.TgZ(55,"option",15),e._uU(56,"false"),e.qZA(),e.TgZ(57,"option",15),e._uU(58,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",8),e.TgZ(60,"label",9),e._uU(61,"ConnectTimeout"),e.qZA(),e.TgZ(62,"div",10),e.TgZ(63,"input",19),e.NdJ("ngModelChange",function(a){return n.optional.ConnectTimeout=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",8),e.TgZ(65,"label",9),e._uU(66,"CleanSession"),e.qZA(),e.TgZ(67,"div",10),e.TgZ(68,"select",20),e.NdJ("ngModelChange",function(a){return n.optional.CleanSession=a}),e.TgZ(69,"option",15),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",15),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e._uU(75,"SkipCertVerify"),e.qZA(),e.TgZ(76,"div",10),e.TgZ(77,"select",21),e.NdJ("ngModelChange",function(a){return n.optional.SkipCertVerify=a}),e.TgZ(78,"option",15),e._uU(79,"true"),e.qZA(),e.TgZ(80,"option",15),e._uU(81,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",8),e.TgZ(83,"label",9),e._uU(84,"CertFile"),e.qZA(),e.TgZ(85,"div",10),e.TgZ(86,"input",22),e.NdJ("ngModelChange",function(a){return n.optional.CertFile=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",8),e.TgZ(88,"label",9),e._uU(89,"KeyFile"),e.qZA(),e.TgZ(90,"div",10),e.TgZ(91,"input",23),e.NdJ("ngModelChange",function(a){return n.optional.KeyFile=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(92,"div",8),e.TgZ(93,"label",9),e._uU(94,"CertPEMBlock"),e.qZA(),e.TgZ(95,"div",10),e.TgZ(96,"input",24),e.NdJ("ngModelChange",function(a){return n.optional.CertPEMBlock=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(97,"div",8),e.TgZ(98,"label",9),e._uU(99,"KeyPEMBlock"),e.qZA(),e.TgZ(100,"div",10),e.TgZ(101,"input",25),e.NdJ("ngModelChange",function(a){return n.optional.KeyPEMBlock=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!n.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",n.collapseToggleStatus),e.xp6(7),e.Q6J("ngModel",n.optional.ClientId),e.xp6(5),e.Q6J("ngModel",n.optional.Username),e.xp6(5),e.Q6J("ngModel",n.optional.Password),e.xp6(5),e.Q6J("ngModel",n.optional.Qos),e.xp6(1),e.Q6J("value",0),e.xp6(2),e.Q6J("value",1),e.xp6(2),e.Q6J("value",2),e.xp6(6),e.Q6J("ngModel",n.optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",n.optional.Retained),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",n.optional.AutoReconnect),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",n.optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",n.optional.CleanSession),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",n.optional.SkipCertVerify),e.xp6(1),e.Q6J("value",!0),e.xp6(2),e.Q6J("value",!1),e.xp6(6),e.Q6J("ngModel",n.optional.CertFile),e.xp6(5),e.Q6J("ngModel",n.optional.KeyFile),e.xp6(5),e.Q6J("ngModel",n.optional.CertPEMBlock),e.xp6(5),e.Q6J("ngModel",n.optional.KeyPEMBlock))},directives:[p.O5,r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,r.wV],styles:[""]}),i})();var Z=_(9162),Y=function(i){function s(t,n){return i.call(this)||this}return(0,Z.ZT)(s,i),s.prototype.schedule=function(t,n){return void 0===n&&(n=0),this},s}(_(8839).w0),A={setInterval:function(){for(var i=[],s=0;s{class i{constructor(){this.collapseToggleStatus=!1,this.sinkBasePropertiesForm=new r.cw({concurrency:new r.NI(1),bufferLength:new r.NI(1024),runAsync:new r.NI(!1),retryInterval:new r.NI(1e3),retryCount:new r.NI(0),cacheLength:new r.NI(1024),cacheSaveInterval:new r.NI(1e3),omitIfEmpty:new r.NI(!1)}),this.sinkBasePropertiesChange=new e.vpe,this.sinkBaseProperties={}}ngOnChanges(){delete this.sinkBaseProperties.sendSingle,delete this.sinkBaseProperties.dataTemplate;let t={};for(const[n,o]of Object.entries(this.sinkBaseProperties))this.sinkBasePropertiesForm.value.hasOwnProperty(n)&&o&&(t[n]=o);this.sinkBasePropertiesForm.patchValue(t)}ngAfterViewInit(){this.sinkBasePropertiesForm.valueChanges.pipe(b(400),L()).subscribe(()=>{Object.assign(this.sinkBaseProperties,this.sinkBasePropertiesForm.value),this.sinkBasePropertiesChange.emit(this.sinkBaseProperties)})}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-sink-base-properties"]],inputs:{sinkBaseProperties:"sinkBaseProperties"},outputs:{sinkBasePropertiesChange:"sinkBasePropertiesChange"},features:[e.TTD],decls:74,vars:7,consts:function(){let s;return s="Sink Advanced Options",[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],s,[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["id","collapse-sink-base",1,"card-body","collapse"],[3,"formGroup"],[1,"form-group","row"],[1,"col","col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many instances of the sink will be run. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["type","number","name","concurrency","formControlName","concurrency",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory. If the buffered messages exceed the limit, the sink will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength","formControlName","bufferLength",1,"form-control"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many milliseconds will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryInterval","formControlName","retryInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryCount","formControlName","retryCount",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be cached. The cached messages will be resent to external system until the data sent out successfully. The cached message will be sent in order except in runAsync or concurrent mode. The cached message will be saved to disk in fixed intervals.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheLength","formControlName","cacheLength",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the interval to save cached message to the disk. Notice that, if the rule is closed in plan, all the cached messages will be saved at close. A larger value can reduce the saving overhead but may lose more cache messages when the system is interrupted in error.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheSaveInterval","formControlName","cacheSaveInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether the sink will run asynchronously for better performance. If it is true, the sink result order is not promised.",1,"fa","fa-question-circle-o","fa-lg"],["name","runAsync","formControlName","runAsync",1,"custom-select"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","If the configuration item is set to true, when SELECT result is empty, then the result will not feed to sink operator.",1,"fa","fa-question-circle-o","fa-lg"],["name","omitIfEmpty","formControlName","omitIfEmpty",1,"custom-select"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-up","fa-lg"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return n.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"span",5),e.YNc(6,ne,1,0,"i",6),e.YNc(7,oe,1,0,"i",7),e.qZA(),e.qZA(),e.TgZ(8,"div",8),e.TgZ(9,"form",9),e.TgZ(10,"div",10),e.TgZ(11,"label",11),e.TgZ(12,"span",12),e._uU(13,"concurrency"),e.qZA(),e._UZ(14,"span",13),e.qZA(),e.TgZ(15,"div",14),e._UZ(16,"input",15),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.TgZ(18,"label",11),e.TgZ(19,"span",12),e._uU(20,"bufferLength"),e.qZA(),e._UZ(21,"span",16),e.qZA(),e.TgZ(22,"div",14),e._UZ(23,"input",17),e.qZA(),e.qZA(),e.TgZ(24,"div",10),e.TgZ(25,"label",18),e.TgZ(26,"span",12),e._uU(27,"retryInterval"),e.qZA(),e._UZ(28,"span",19),e.qZA(),e.TgZ(29,"div",14),e._UZ(30,"input",20),e.qZA(),e.qZA(),e.TgZ(31,"div",10),e.TgZ(32,"label",18),e.TgZ(33,"span",12),e._uU(34,"retryCount"),e.qZA(),e._UZ(35,"span",21),e.qZA(),e.TgZ(36,"div",14),e._UZ(37,"input",22),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",18),e.TgZ(40,"span",12),e._uU(41,"cacheLength"),e.qZA(),e._UZ(42,"span",23),e.qZA(),e.TgZ(43,"div",14),e._UZ(44,"input",24),e.qZA(),e.qZA(),e.TgZ(45,"div",10),e.TgZ(46,"label",18),e.TgZ(47,"span",12),e._uU(48,"cacheSaveInterval"),e.qZA(),e._UZ(49,"span",25),e.qZA(),e.TgZ(50,"div",14),e._UZ(51,"input",26),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",18),e.TgZ(54,"span",12),e._uU(55,"runAsync"),e.qZA(),e._UZ(56,"span",27),e.qZA(),e.TgZ(57,"div",14),e.TgZ(58,"select",28),e.TgZ(59,"option",29),e._uU(60,"false"),e.qZA(),e.TgZ(61,"option",29),e._uU(62,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",10),e.TgZ(64,"label",18),e.TgZ(65,"span",12),e._uU(66,"omitIfEmpty"),e.qZA(),e._UZ(67,"span",30),e.qZA(),e.TgZ(68,"div",14),e.TgZ(69,"select",31),e.TgZ(70,"option",29),e._uU(71,"false"),e.qZA(),e.TgZ(72,"option",29),e._uU(73,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!n.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",n.collapseToggleStatus),e.xp6(2),e.Q6J("formGroup",n.sinkBasePropertiesForm),e.xp6(50),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(9),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,r._Y,r.JL,r.sg,r.wV,r.Fj,r.JJ,r.u,r.EJ,r.YN,r.Kr],styles:[""]}),i})(),ie=(()=>{class i{constructor(){this.sinkBaseProperties={},this.edgeXSinkChange=new e.vpe,this._edgeXSink={type:"redis",protocol:"redis",host:"edgex-redis",port:6379,contentType:"application/json",messageType:"event",sendSingle:!1}}get edgeXSink(){return this._edgeXSink}set edgeXSink(t){Object.assign(this._edgeXSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.edgeXSink)}ngOnChanges(){this.edgeXSinkChange.emit(this.edgeXSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.edgeXSink,t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edgex-sink"]],inputs:{edgeXSink:"edgeXSink"},outputs:{edgeXSinkChange:"edgeXSinkChange"},features:[e.TTD],decls:117,vars:20,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","the type of EdgeX message bus",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","type",1,"custom-select",3,"ngModel","ngModelChange"],["value","redis"],["value","zero"],["value","mqtt"],["type","text","name","protocol",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","host",1,"form-control",3,"ngModel","ngModelChange"],["type","number","name","port",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The topic to be published. The topic is static across all messages. To use dynamic topic, leave this empty and specify the topicPrefix property. Only one of the topic and topicPrefix properties can be specified. If both are not specified, then use default topic value application.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The prefix of a dynamic topic to be published. The topic will become a concatenation of $topicPrefix/$profileName/$deviceName/$sourceName.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topicPrefix",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","contentType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The EdgeX message model type. To publish the message as an event like EdgeX application service, use event. Otherwise, to publish the message as an event request like EdgeX device service or core data service, use request. If not specified, then use the default value event.",1,"fa","fa-question-circle-o","fa-lg"],["name","messageType",1,"custom-select",3,"ngModel","ngModelChange"],["value","event"],["value","request"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The property is a field name that allows user to specify a field name of SQL select clause, the field name should use meta(*) AS xxx to select all of EdgeX metadata from message.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","metadata",1,"form-control",3,"ngModel","ngModelChange"],[3,"singleSelectionMode","singleProfileSelected","singleProfileSelectedChange"],[3,"singleSelectionMode","singleDeviceSelected","singleDeviceSelectedChange"],["type","text","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","EdgeX Message bus connection optional",1,"fa","fa-question-circle-o","fa-lg"],[3,"optional","optionalChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e.TgZ(9,"span",7),e._uU(10,"Type"),e.qZA(),e._UZ(11,"span",8),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"select",10),e.NdJ("ngModelChange",function(a){return n.edgeXSink.type=a}),e.TgZ(14,"option",11),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",12),e._uU(17,"zero"),e.qZA(),e.TgZ(18,"option",13),e._uU(19,"mqtt"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",5),e.TgZ(21,"label",6),e._uU(22,"Protocol"),e.qZA(),e.TgZ(23,"div",9),e.TgZ(24,"input",14),e.NdJ("ngModelChange",function(a){return n.edgeXSink.protocol=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",5),e.TgZ(26,"label",6),e._uU(27,"Host"),e.qZA(),e.TgZ(28,"div",9),e.TgZ(29,"input",15),e.NdJ("ngModelChange",function(a){return n.edgeXSink.host=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",5),e.TgZ(31,"label",6),e._uU(32,"Port"),e.qZA(),e.TgZ(33,"div",9),e.TgZ(34,"input",16),e.NdJ("ngModelChange",function(a){return n.edgeXSink.port=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",5),e.TgZ(36,"label",6),e.TgZ(37,"span",7),e._uU(38,"Topic"),e.qZA(),e._UZ(39,"span",17),e.qZA(),e.TgZ(40,"div",9),e.TgZ(41,"input",18),e.NdJ("ngModelChange",function(a){return n.edgeXSink.topic=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",5),e.TgZ(43,"label",6),e.TgZ(44,"span",7),e._uU(45,"TopicPrefix"),e.qZA(),e._UZ(46,"span",19),e.qZA(),e.TgZ(47,"div",9),e.TgZ(48,"input",20),e.NdJ("ngModelChange",function(a){return n.edgeXSink.topicPrefix=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",5),e.TgZ(50,"label",6),e._uU(51,"ContentType"),e.qZA(),e.TgZ(52,"div",9),e.TgZ(53,"input",21),e.NdJ("ngModelChange",function(a){return n.edgeXSink.contentType=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",5),e.TgZ(55,"label",6),e.TgZ(56,"span",7),e._uU(57,"MessageType"),e.qZA(),e._UZ(58,"span",22),e.qZA(),e.TgZ(59,"div",9),e.TgZ(60,"select",23),e.NdJ("ngModelChange",function(a){return n.edgeXSink.messageType=a}),e.TgZ(61,"option",24),e._uU(62,"event"),e.qZA(),e.TgZ(63,"option",25),e._uU(64,"request"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(65,"div",5),e.TgZ(66,"label",6),e.TgZ(67,"span",7),e._uU(68,"Metadata"),e.qZA(),e._UZ(69,"span",26),e.qZA(),e.TgZ(70,"div",9),e.TgZ(71,"input",27),e.NdJ("ngModelChange",function(a){return n.edgeXSink.metadata=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",5),e.TgZ(73,"label",6),e._uU(74,"ProfileName"),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"app-device-profile-combo-list",28),e.NdJ("singleProfileSelectedChange",function(a){return n.edgeXSink.profileName=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",5),e.TgZ(78,"label",6),e._uU(79,"DeviceName"),e.qZA(),e.TgZ(80,"div",9),e.TgZ(81,"app-device-combo-list",29),e.NdJ("singleDeviceSelectedChange",function(a){return n.edgeXSink.deviceName=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",5),e.TgZ(83,"label",6),e._uU(84,"SourceName"),e.qZA(),e.TgZ(85,"div",9),e.TgZ(86,"input",30),e.NdJ("ngModelChange",function(a){return n.edgeXSink.sourceName=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",5),e.TgZ(88,"label",6),e.TgZ(89,"span",7),e._uU(90,"SendSingle"),e.qZA(),e._UZ(91,"span",31),e.qZA(),e.TgZ(92,"div",9),e.TgZ(93,"select",32),e.NdJ("ngModelChange",function(a){return n.edgeXSink.sendSingle=a}),e.TgZ(94,"option",33),e._uU(95,"false"),e.qZA(),e.TgZ(96,"option",33),e._uU(97,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(98,"div",5),e.TgZ(99,"label",6),e.TgZ(100,"span",7),e._uU(101,"DataTemplate"),e.qZA(),e._UZ(102,"span",34),e.qZA(),e.TgZ(103,"div",9),e.TgZ(104,"input",35),e.NdJ("ngModelChange",function(a){return n.edgeXSink.dataTemplate=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(105,"div",5),e.TgZ(106,"label",6),e.TgZ(107,"span",7),e._uU(108,"EdgeX Sink Options"),e.qZA(),e._UZ(109,"span",36),e.qZA(),e.TgZ(110,"div",9),e.TgZ(111,"app-edgex-sink-optional",37),e.NdJ("optionalChange",function(a){return n.edgeXSink.optional=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",5),e.TgZ(113,"label",6),e._uU(114,"Advanced Options"),e.qZA(),e.TgZ(115,"div",9),e.TgZ(116,"app-sink-base-properties",38),e.NdJ("sinkBasePropertiesChange",function(a){return n.onSinkBasePropertiesChange(a)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(13),e.Q6J("ngModel",n.edgeXSink.type),e.xp6(11),e.Q6J("ngModel",n.edgeXSink.protocol),e.xp6(5),e.Q6J("ngModel",n.edgeXSink.host),e.xp6(5),e.Q6J("ngModel",n.edgeXSink.port),e.xp6(7),e.Q6J("ngModel",n.edgeXSink.topic),e.xp6(7),e.Q6J("ngModel",n.edgeXSink.topicPrefix),e.xp6(5),e.Q6J("ngModel",n.edgeXSink.contentType),e.xp6(7),e.Q6J("ngModel",n.edgeXSink.messageType),e.xp6(11),e.Q6J("ngModel",n.edgeXSink.metadata),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleProfileSelected",n.edgeXSink.profileName),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleDeviceSelected",n.edgeXSink.deviceName),e.xp6(5),e.Q6J("ngModel",n.edgeXSink.sourceName),e.xp6(7),e.Q6J("ngModel",n.edgeXSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.edgeXSink.dataTemplate),e.xp6(7),e.Q6J("optional",n.edgeXSink.optional),e.xp6(5),e.Q6J("sinkBaseProperties",n.sinkBaseProperties))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj,r.wV,X.o,Q.h,K,C],styles:[""]}),i})(),ae=(()=>{class i{constructor(){this.sinkBaseProperties={},this.mqttSinkChange=new e.vpe,this._mqttSink={server:"tcp://127.0.0.1:1883",protocolVersion:"3.1",qos:0,insecureSkipVerify:!0,retained:!1,sendSingle:!1}}get mqttSink(){return this._mqttSink}set mqttSink(t){Object.assign(this._mqttSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.mqttSink)}ngOnChanges(){this.mqttSinkChange.emit(this.mqttSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.mqttSink,t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-mqtt-sink"]],inputs:{mqttSink:"mqttSink"},outputs:{mqttSinkChange:"mqttSinkChange"},features:[e.TTD],decls:114,vars:32,consts:function(){let s,t,n,o;return s="the mqtt server address can't be empty!",t="the topic can't be empty!",n="Username",o="Password",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row","has-validation"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","server",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],s,["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],t,[1,"form-group","row"],["type","text","name","clientId",1,"form-control",3,"ngModel","ngModelChange"],["name","protocolVersion",1,"custom-select",3,"ngModel","ngModelChange"],["value","3.1"],["value","3.1.1"],["name","qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],n,["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],o,["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["name","retained",1,"custom-select",3,"ngModel","ngModelChange"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"MQTT Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e._uU(9,"Server"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",8),e.NdJ("ngModelChange",function(a){return n.mqttSink.server=a}),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"small"),e.SDv(14,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",5),e.TgZ(16,"label",6),e._uU(17,"Topic"),e.qZA(),e.TgZ(18,"div",7),e.TgZ(19,"input",11),e.NdJ("ngModelChange",function(a){return n.mqttSink.topic=a}),e.qZA(),e.TgZ(20,"div",9),e.TgZ(21,"small"),e.SDv(22,12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",13),e.TgZ(24,"label",6),e._uU(25,"ClientId"),e.qZA(),e.TgZ(26,"div",7),e.TgZ(27,"input",14),e.NdJ("ngModelChange",function(a){return n.mqttSink.clientId=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",13),e.TgZ(29,"label",6),e._uU(30,"ProtocolVersion"),e.qZA(),e.TgZ(31,"div",7),e.TgZ(32,"select",15),e.NdJ("ngModelChange",function(a){return n.mqttSink.protocolVersion=a}),e.TgZ(33,"option",16),e._uU(34,"3.1"),e.qZA(),e.TgZ(35,"option",17),e._uU(36,"3.1.1"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"div",13),e.TgZ(38,"label",6),e._uU(39,"Qos"),e.qZA(),e.TgZ(40,"div",7),e.TgZ(41,"select",18),e.NdJ("ngModelChange",function(a){return n.mqttSink.qos=a}),e.TgZ(42,"option",19),e._uU(43,"0"),e.qZA(),e.TgZ(44,"option",19),e._uU(45,"1"),e.qZA(),e.TgZ(46,"option",19),e._uU(47,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",13),e.TgZ(49,"label",6),e.SDv(50,20),e.qZA(),e.TgZ(51,"div",7),e.TgZ(52,"input",21),e.NdJ("ngModelChange",function(a){return n.mqttSink.username=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",13),e.TgZ(54,"label",6),e.SDv(55,22),e.qZA(),e.TgZ(56,"div",7),e.TgZ(57,"input",23),e.NdJ("ngModelChange",function(a){return n.mqttSink.password=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",13),e.TgZ(59,"label",6),e._uU(60,"Retained"),e.qZA(),e.TgZ(61,"div",7),e.TgZ(62,"select",24),e.NdJ("ngModelChange",function(a){return n.mqttSink.retained=a}),e.TgZ(63,"option",19),e._uU(64,"false"),e.qZA(),e.TgZ(65,"option",19),e._uU(66,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",13),e.TgZ(68,"label",6),e.TgZ(69,"span",25),e._uU(70,"sendSingle"),e.qZA(),e._UZ(71,"span",26),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"select",27),e.NdJ("ngModelChange",function(a){return n.mqttSink.sendSingle=a}),e.TgZ(74,"option",19),e._uU(75,"false"),e.qZA(),e.TgZ(76,"option",19),e._uU(77,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(78,"div",13),e.TgZ(79,"label",6),e.TgZ(80,"span",25),e._uU(81,"dataTemplate"),e.qZA(),e._UZ(82,"span",28),e.qZA(),e.TgZ(83,"div",7),e.TgZ(84,"input",29),e.NdJ("ngModelChange",function(a){return n.mqttSink.dataTemplate=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",13),e.TgZ(86,"label",6),e._uU(87,"InsecureSkipVerify"),e.qZA(),e.TgZ(88,"div",7),e.TgZ(89,"select",30),e.NdJ("ngModelChange",function(a){return n.mqttSink.insecureSkipVerify=a}),e.TgZ(90,"option",19),e._uU(91,"true"),e.qZA(),e.TgZ(92,"option",19),e._uU(93,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(94,"div",13),e.TgZ(95,"label",6),e._uU(96,"CertificationPath"),e.qZA(),e.TgZ(97,"div",7),e.TgZ(98,"input",31),e.NdJ("ngModelChange",function(a){return n.mqttSink.certificationPath=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(99,"div",13),e.TgZ(100,"label",6),e._uU(101,"PrivateKeyPath"),e.qZA(),e.TgZ(102,"div",7),e.TgZ(103,"input",32),e.NdJ("ngModelChange",function(a){return n.mqttSink.privateKeyPath=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(104,"div",13),e.TgZ(105,"label",6),e._uU(106,"RootCaPath"),e.qZA(),e.TgZ(107,"div",7),e.TgZ(108,"input",33),e.NdJ("ngModelChange",function(a){return n.mqttSink.rootCaPath=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(109,"div",13),e.TgZ(110,"label",6),e._uU(111,"Advanced Options"),e.qZA(),e.TgZ(112,"div",7),e.TgZ(113,"app-sink-base-properties",34),e.NdJ("sinkBasePropertiesChange",function(a){return n.onSinkBasePropertiesChange(a)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(11),e.ekj("is-invalid",!n.mqttSink.server)("is-valid",n.mqttSink.server),e.Q6J("ngModel",n.mqttSink.server),e.xp6(8),e.ekj("is-invalid",!n.mqttSink.topic)("is-valid",n.mqttSink.topic),e.Q6J("ngModel",n.mqttSink.topic),e.xp6(8),e.Q6J("ngModel",n.mqttSink.clientId),e.xp6(5),e.Q6J("ngModel",n.mqttSink.protocolVersion),e.xp6(9),e.Q6J("ngModel",n.mqttSink.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(6),e.Q6J("ngModel",n.mqttSink.username),e.xp6(5),e.Q6J("ngModel",n.mqttSink.password),e.xp6(5),e.Q6J("ngModel",n.mqttSink.retained),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.mqttSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.mqttSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",n.mqttSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",n.mqttSink.certificationPath),e.xp6(5),e.Q6J("ngModel",n.mqttSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",n.mqttSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",n.sinkBaseProperties))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,C],styles:[""]}),i})();var se=_(2437),re=_(7982),le=_(9549);function de(i,s){1&i&&(e.TgZ(0,"div",21),e._UZ(1,"i",22),e.TgZ(2,"span"),e.SDv(3,23),e.qZA(),e.qZA())}function _e(i,s){1&i&&(e.TgZ(0,"div"),e.TgZ(1,"span"),e.SDv(2,32),e.qZA(),e.qZA())}function ge(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"select",37),e.NdJ("change",function(o){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(o)}),e.TgZ(1,"option",38),e._uU(2,"false"),e.qZA(),e.TgZ(3,"option",38),e._uU(4,"true"),e.qZA(),e.qZA()}if(2&i){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function ce(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"input",39),e.NdJ("change",function(o){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(o)}),e.qZA()}if(2&i){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.MGl("placeholder","valueType: ",t.valueType,"")}}function ue(i,s){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.cmdParametersValueRender()," ")}}function pe(i,s){if(1&i&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",2),e.TgZ(3,"label",33),e.SDv(4,34),e.qZA(),e.TgZ(5,"div",6),e.YNc(6,ge,5,4,"select",35),e.YNc(7,ce,1,3,"ng-template",null,36,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.YNc(9,ue,2,1,"ng-container",30),e.qZA()),2&i){const t=s.$implicit,n=s.last,o=e.MAs(8);e.xp6(3),e.s9C("for",t.resourceName),e.xp6(1),e.pQV(t.resourceName),e.QtT(4),e.xp6(2),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",o),e.xp6(3),e.Q6J("ngIf",n)}}function me(i,s){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,_e,3,0,"div",30),e.YNc(2,pe,10,5,"div",31),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",0==t.cmdSvcInfo.parametersOfPutCommand.length),e.xp6(1),e.Q6J("ngForOf",t.cmdSvcInfo.parametersOfPutCommand)}}function Te(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",2),e.TgZ(1,"label",40),e.TgZ(2,"span",4),e.SDv(3,41),e.qZA(),e._UZ(4,"span",42),e.qZA(),e.TgZ(5,"div",6),e.TgZ(6,"select",43),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).cmdSvcInfo.pushEventOfGetCmdParamter=o}),e.TgZ(7,"option",44),e._uU(8,"true"),e.qZA(),e.TgZ(9,"option",45),e._uU(10,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"label",46),e.TgZ(13,"span",4),e.SDv(14,47),e.qZA(),e._UZ(15,"span",48),e.qZA(),e.TgZ(16,"div",6),e.TgZ(17,"select",49),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).cmdSvcInfo.returnEventOfGetCmdParamter=o}),e.TgZ(18,"option",44),e._uU(19,"true"),e.qZA(),e.TgZ(20,"option",45),e._uU(21,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(6),e.Q6J("ngModel",t.cmdSvcInfo.pushEventOfGetCmdParamter),e.xp6(11),e.Q6J("ngModel",t.cmdSvcInfo.returnEventOfGetCmdParamter)}}function Se(i,s){if(1&i&&(e.TgZ(0,"div",2),e.TgZ(1,"label",18),e._uU(2,"Parameters"),e.qZA(),e.TgZ(3,"div",6),e.TgZ(4,"div",24),e.TgZ(5,"div",25),e.TgZ(6,"span"),e.SDv(7,26),e.qZA(),e.qZA(),e.TgZ(8,"div",27),e.YNc(9,me,3,2,"div",28),e.YNc(10,Te,22,2,"ng-template",null,29,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.MAs(11),n=e.oxw();e.xp6(9),e.Q6J("ngIf","PUT"==n.cmdSvcInfo.httpMethod)("ngIfElse",t)}}let I=(()=>{class i{constructor(t,n){this.metedataSvc=t,this.cmdSvc=n,this.cmdURLFixedPrefix="/api/v3/device/name/",this.notCommandPathMsgShow=!1,this.deviceName="",this.commandName="",this.parameter={},this._url="",this._httpMethod="",this._requestBodyJSONStr="",this.cmdSvcInfoChange=new e.vpe,this.profileForm=new r.cw({host:new r.NI(""),port:new r.NI(""),path:new r.NI(""),httpMethod:new r.NI(""),pushEventOfGetCmdParamter:new r.NI(""),returnEventOfGetCmdParamter:new r.NI("")}),this.cmdSvcInfo={host:"edgex-core-command",port:59882,path:"",pushEventOfGetCmdParamter:"true",returnEventOfGetCmdParamter:"true",parametersOfPutCommand:[]}}get url(){return this._url}set url(t){this._url=t,this._url&&this.urlParser(t)}get httpMethod(){return this._httpMethod}set httpMethod(t){this._httpMethod=t,this.cmdSvcInfo.httpMethod=this._httpMethod}get requestBodyJSONStr(){return this._requestBodyJSONStr}set requestBodyJSONStr(t){this._requestBodyJSONStr=t}ngOnInit(){}ngAfterViewInit(){this.profileForm.valueChanges.pipe(b(400),L()).subscribe(()=>{this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}),this.renderPopoverComponent()}urlParser(t){let n={};try{n=new URL(t)}catch(o){return void(this.notCommandPathMsgShow=!0)}if(n.pathname.startsWith(this.cmdURLFixedPrefix)){let o=n.pathname.substring(this.cmdURLFixedPrefix.length).split("/");if(2===o.length)return this.deviceName=o[0],this.commandName=o[1],this.getCommandParameterByDeviceAndCommandName(this.deviceName,this.commandName),this.cmdSvcInfo.path=n.pathname,this.cmdSvcInfo.host=n.hostname,this.cmdSvcInfo.port=Number(n.port),this.cmdSvcInfo.pushEventOfGetCmdParamter=n.searchParams.get("ds-pushevent")||"true",void(this.cmdSvcInfo.returnEventOfGetCmdParamter=n.searchParams.get("ds-returnevent")||"true")}this.notCommandPathMsgShow=!0}getCommandParameterByDeviceAndCommandName(t,n){this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(t).subscribe(o=>{o.deviceCoreCommand.coreCommands.forEach(a=>{a.name===n&&(this.cmdSvcInfo.parametersOfPutCommand=a.parameters)})})}cmdParametersValueRender(){let t={};try{t=JSON.parse(this.requestBodyJSONStr)}catch(n){return}for(const[n,o]of Object.entries(t))this.cmdSvcInfo.parametersOfPutCommand.forEach(a=>{a.resourceName===n&&$(`#cmd-param-${n}`).val(o)})}onValueOfPutParamsChange(t){this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onCmdMethodSelected(t){this.cmdSvcInfo.httpMethod=t,this.cmdSvcInfoChange.emit(this.cmdSvcInfo),setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(t){this.cmdSvcInfo.path=t.path,this.cmdSvcInfo.parametersOfPutCommand=t.parameters}requestBodyAssemble(){let t={};return this.cmdSvcInfo.parametersOfPutCommand.forEach(n=>{!n||!$(`#cmd-param-${n.resourceName}`).val()||""!==$(`#cmd-param-${n.resourceName}`).val().trim()&&(t[n.resourceName]=$(`#cmd-param-${n.resourceName}`).val().trim())}),JSON.stringify(t)}resetPathParameterSuffix(){(-1!==this.cmdSvcInfo.path.indexOf("ds-pushevent")||-1!==this.cmdSvcInfo.path.indexOf("ds-returnevent"))&&(this.cmdSvcInfo.path=this.cmdSvcInfo.path.split("?")[0]),this.cmdSvcInfo.path=`${this.cmdSvcInfo.path}?ds-pushevent=${this.cmdSvcInfo.pushEventOfGetCmdParamter}&ds-returnevent=${this.cmdSvcInfo.returnEventOfGetCmdParamter}`}getHttpMethod(){return this.cmdSvcInfo.httpMethod}getRequestBodyJSONStr(){return this.requestBodyAssemble()}getUrl(){return"GET"===this.cmdSvcInfo.httpMethod&&this.resetPathParameterSuffix(),`http://${this.cmdSvcInfo.host}:${this.cmdSvcInfo.port}${this.cmdSvcInfo.path}`}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(se.D),e.Y36(re.V))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-command-service-template"]],inputs:{url:"url",httpMethod:"httpMethod",requestBodyJSONStr:"requestBodyJSONStr",cmdSvcInfo:"cmdSvcInfo"},outputs:{cmdSvcInfoChange:"cmdSvcInfoChange"},decls:33,vars:19,consts:function(){let s,t,n,o,a,l,d,m;return s="the REST address host can't be empty!",t="the REST address port can't be empty and only pure integer is supported!",n=" Invalid command service url, please don't use this template for custom http request, or select one new valid command path if you insist on using the template! ",o="Command Parameters Setting",a="no paramters.",l="" + "\ufffd0\ufffd" + "",d="pushevent",m="returnevent",[["class","alert alert-danger","role","alert",4,"ngIf"],[3,"formGroup"],[1,"form-group","row"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","name","httpMethod","formControlName","httpMethod","readonly","true","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"form-group","row","has-validation"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressHostREST","name","addressHost","formControlName","host","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],s,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","number","id","addressPortREST","name","addressPort","formControlName","port","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],t,["for","addressPath","required","",1,"col-md-2","col-form-label"],[3,"validate","deviceName","commandName","httpMethod","commandPath","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"],n,[1,"card"],[1,"card-header"],o,[1,"card-body"],[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngIf"],[4,"ngFor","ngForOf"],a,[1,"col-md-2","col-form-label",3,"for"],l,["class","custom-select",3,"id","name","change",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name","change"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder","change"],["for","ds-pushevent",1,"col-md-2","col-form-label"],d,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","true indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent","formControlName","pushEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"],["value","true"],["value","false"],["for","ds-returnevent",1,"col-md-2","col-form-label"],m,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent","formControlName","returnEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.YNc(0,de,4,0,"div",0),e.TgZ(1,"form",1),e.TgZ(2,"div",2),e.TgZ(3,"label",3),e.TgZ(4,"span",4),e._uU(5,"HttpMethod"),e.qZA(),e._UZ(6,"span",5),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return n.cmdSvcInfo.httpMethod=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"label",9),e.TgZ(11,"span",4),e._uU(12,"Host"),e.qZA(),e._UZ(13,"span",10),e.qZA(),e.TgZ(14,"div",6),e.TgZ(15,"input",11),e.NdJ("ngModelChange",function(a){return n.cmdSvcInfo.host=a}),e.qZA(),e.TgZ(16,"div",12),e.TgZ(17,"small"),e.SDv(18,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",8),e.TgZ(20,"label",14),e._uU(21,"Port"),e.qZA(),e.TgZ(22,"div",6),e.TgZ(23,"input",15),e.NdJ("ngModelChange",function(a){return n.cmdSvcInfo.port=a}),e.qZA(),e.TgZ(24,"div",16),e.TgZ(25,"small"),e.SDv(26,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"label",18),e._uU(29,"Path"),e.qZA(),e.TgZ(30,"div",6),e.TgZ(31,"app-device-core-command-combo-list",19),e.NdJ("cmdMethodEvent",function(a){return n.onCmdMethodSelected(a)})("commandSelectedEvent",function(a){return n.onCommandSelected(a)}),e.qZA(),e.qZA(),e.qZA(),e.YNc(32,Se,12,2,"div",20),e.qZA()),2&t&&(e.Q6J("ngIf",n.notCommandPathMsgShow),e.xp6(1),e.Q6J("formGroup",n.profileForm),e.xp6(7),e.Q6J("ngModel",n.cmdSvcInfo.httpMethod),e.xp6(7),e.ekj("is-invalid",!n.cmdSvcInfo.host)("is-valid",n.cmdSvcInfo.host),e.Q6J("ngModel",n.cmdSvcInfo.host),e.xp6(8),e.ekj("is-invalid",!n.cmdSvcInfo.port)("is-valid",n.cmdSvcInfo.port),e.Q6J("ngModel",n.cmdSvcInfo.port),e.xp6(8),e.Q6J("validate",!0)("deviceName",n.deviceName)("commandName",n.commandName)("httpMethod",n.cmdSvcInfo.httpMethod)("commandPath",n.cmdSvcInfo.path),e.xp6(1),e.Q6J("ngIf",n.cmdSvcInfo.path&&n.cmdSvcInfo.httpMethod&&0!==n.cmdSvcInfo.parametersOfPutCommand.length))},directives:[p.O5,r._Y,r.JL,r.sg,r.Fj,r.JJ,r.u,r.Q7,r.wV,le.P,p.sg,r.F,r.YN,r.Kr,r.EJ],styles:[""]}),i})();function fe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-command-service-template",8),e.NdJ("cmdSvcInfoChange",function(o){return e.CHM(t),e.oxw().onCmdSvcTemplateInfoChange(o)}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("url",t.restSink.url)("httpMethod",t.restSink.method)("requestBodyJSONStr",t.restSink.dataTemplate?t.restSink.dataTemplate:"")}}function Ee(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",51),e.TgZ(2,"div",52),e.TgZ(3,"div",53),e.TgZ(4,"span",54),e._uU(5,"Key"),e.qZA(),e.qZA(),e.TgZ(6,"input",55),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.key=o})("ngModelChange",function(o){return e.CHM(t),e.oxw(2).requestHeaderChange(o)}),e.qZA(),e.qZA(),e.TgZ(7,"div",56),e._UZ(8,"i",57),e.qZA(),e.TgZ(9,"div",58),e.TgZ(10,"div",53),e.TgZ(11,"span",54),e._uU(12,"Value"),e.qZA(),e.qZA(),e.TgZ(13,"input",59),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.value=o})("ngModelChange",function(o){return e.CHM(t),e.oxw(2).requestHeaderChange(o)}),e.qZA(),e.qZA(),e.TgZ(14,"div",60),e.TgZ(15,"button",61),e.NdJ("click",function(){const a=e.CHM(t).index;return e.oxw(2).removeRequestHeader(a)}),e._UZ(16,"i",62),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=s.$implicit;e.xp6(6),e.Q6J("ngModel",t.key),e.xp6(7),e.Q6J("ngModel",t.value)}}function he(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",9),e.TgZ(3,"label",10),e._uU(4,"Method"),e.qZA(),e.TgZ(5,"div",11),e.TgZ(6,"select",12),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.method=o}),e.TgZ(7,"option",13),e._uU(8,"GET"),e.qZA(),e.TgZ(9,"option",14),e._uU(10,"POST"),e.qZA(),e.TgZ(11,"option",15),e._uU(12,"PUT"),e.qZA(),e.TgZ(13,"option",16),e._uU(14,"DELETE"),e.qZA(),e.TgZ(15,"option",17),e._uU(16,"PATCH"),e.qZA(),e.TgZ(17,"option",18),e._uU(18,"HEAD"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",19),e.TgZ(20,"label",10),e._uU(21,"URL"),e.qZA(),e.TgZ(22,"div",11),e.TgZ(23,"input",20),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.url=o}),e.qZA(),e.TgZ(24,"div",21),e.TgZ(25,"small"),e.SDv(26,22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",9),e.TgZ(28,"label",10),e._uU(29,"BodyType"),e.qZA(),e.TgZ(30,"div",11),e.TgZ(31,"select",23),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.bodyType=o}),e.TgZ(32,"option",24),e._uU(33,"none"),e.qZA(),e.TgZ(34,"option",25),e._uU(35,"json"),e.qZA(),e.TgZ(36,"option",26),e._uU(37,"text"),e.qZA(),e.TgZ(38,"option",27),e._uU(39,"html"),e.qZA(),e.TgZ(40,"option",28),e._uU(41,"xml"),e.qZA(),e.TgZ(42,"option",29),e._uU(43,"javascript"),e.qZA(),e.TgZ(44,"option",30),e._uU(45,"form"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",9),e.TgZ(47,"label",10),e._uU(48,"Headers"),e.qZA(),e.TgZ(49,"div",11),e.TgZ(50,"div",0),e.TgZ(51,"div",6),e.TgZ(52,"p",31),e._UZ(53,"span",32),e.TgZ(54,"span",33),e.NdJ("click",function(){return e.CHM(t),e.oxw().addRequestHeader()}),e.SDv(55,34),e.qZA(),e.qZA(),e.YNc(56,Ee,17,2,"div",35),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(57,"div",9),e.TgZ(58,"label",10),e.TgZ(59,"span",36),e._uU(60,"timeout"),e.qZA(),e._UZ(61,"span",37),e.qZA(),e.TgZ(62,"div",11),e.TgZ(63,"input",38),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.timeout=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",9),e.TgZ(65,"label",10),e.TgZ(66,"span",36),e._uU(67,"DebugResp"),e.qZA(),e._UZ(68,"span",39),e.qZA(),e.TgZ(69,"div",11),e.TgZ(70,"select",40),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.debugResp=o}),e.TgZ(71,"option",41),e._uU(72,"false"),e.qZA(),e.TgZ(73,"option",41),e._uU(74,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"label",10),e.TgZ(77,"span",36),e._uU(78,"sendSingle"),e.qZA(),e._UZ(79,"span",42),e.qZA(),e.TgZ(80,"div",11),e.TgZ(81,"select",43),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.sendSingle=o}),e.TgZ(82,"option",41),e._uU(83,"false"),e.qZA(),e.TgZ(84,"option",41),e._uU(85,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(86,"div",9),e.TgZ(87,"label",10),e.TgZ(88,"span",36),e._uU(89,"dataTemplate"),e.qZA(),e._UZ(90,"span",44),e.qZA(),e.TgZ(91,"div",11),e.TgZ(92,"input",45),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.dataTemplate=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(93,"div",9),e.TgZ(94,"label",10),e._uU(95,"InsecureSkipVerify"),e.qZA(),e.TgZ(96,"div",11),e.TgZ(97,"select",46),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.insecureSkipVerify=o}),e.TgZ(98,"option",41),e._uU(99,"true"),e.qZA(),e.TgZ(100,"option",41),e._uU(101,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",9),e.TgZ(103,"label",10),e._uU(104,"CertificationPath"),e.qZA(),e.TgZ(105,"div",11),e.TgZ(106,"input",47),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.certificationPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(107,"div",9),e.TgZ(108,"label",10),e._uU(109,"PrivateKeyPath"),e.qZA(),e.TgZ(110,"div",11),e.TgZ(111,"input",48),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.privateKeyPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",9),e.TgZ(113,"label",10),e._uU(114,"RootCaPath"),e.qZA(),e.TgZ(115,"div",11),e.TgZ(116,"input",49),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.rootCaPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(117,"div",9),e.TgZ(118,"label",10),e._uU(119,"Advanced Options"),e.qZA(),e.TgZ(120,"div",11),e.TgZ(121,"app-sink-base-properties",50),e.NdJ("sinkBasePropertiesChange",function(o){return e.CHM(t),e.oxw().onSinkBasePropertiesChange(o)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.restSink.method),e.xp6(17),e.ekj("is-invalid",!t.restSink.url)("is-valid",t.restSink.url),e.Q6J("ngModel",t.restSink.url),e.xp6(8),e.Q6J("ngModel",t.restSink.bodyType),e.xp6(25),e.Q6J("ngForOf",t.requestHeaderList),e.xp6(7),e.Q6J("ngModel",t.restSink.timeout),e.xp6(7),e.Q6J("ngModel",t.restSink.debugResp),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",t.restSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",t.restSink.certificationPath),e.xp6(5),e.Q6J("ngModel",t.restSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",t.restSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",t.sinkBaseProperties)}}let Ze=(()=>{class i{constructor(){this.SVC_TYPE_COMMAND="command",this.SVC_TYPE_CUSTOM="custom",this.templateTypeSelected=this.SVC_TYPE_COMMAND,this.sinkBaseProperties={},this.restSinkChange=new e.vpe,this.requestHeaderList=[],this._restSink={method:"GET",bodyType:"json",debugResp:!1,insecureSkipVerify:!0,timeout:5e3,sendSingle:!1,dataTemplate:""}}get restSink(){return this._restSink}set restSink(t){Object.assign(this._restSink,t)}ngOnInit(){if(Object.assign(this.sinkBaseProperties,this.restSink),this.restSink.headers)for(const[t,n]of Object.entries(this.restSink.headers))this.requestHeaderList.push({key:t,value:n});this.renderPopoverComponent()}ngOnChanges(){this.restSinkChange.emit(this.restSink)}ngAfterViewInit(){}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}templateTypeToggle(t){this.templateTypeSelected=t,window.setTimeout(()=>{this.renderPopoverComponent()},1e3)}requestHeaderChange(t){this.headersResovler()}headersResovler(){let t={};this.requestHeaderList.forEach(n=>{t[`${n.key}`]=`${n.value}`}),this.restSink.headers=t,this.restSinkChange.emit(this.restSink)}addRequestHeader(){this.requestHeaderList.push({key:"",value:""})}removeRequestHeader(t,n){this.requestHeaderList.splice(t,1),this.headersResovler()}onSinkBasePropertiesChange(t){Object.assign(this.restSink,t)}onCmdSvcTemplateInfoChange(t){this.getValuesSettingAllOfCommandTemplate()}getValuesSettingAllOfCommandTemplate(){this.restSink.method=this.cmdSvcTemplate.getHttpMethod(),this.restSink.url=this.cmdSvcTemplate.getUrl(),this.restSink.dataTemplate=this.cmdSvcTemplate.getRequestBodyJSONStr()}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-rest-sink"]],viewQuery:function(t,n){if(1&t&&e.Gf(I,5),2&t){let o;e.iGM(o=e.CRH())&&(n.cmdSvcTemplate=o.first)}},inputs:{restSink:"restSink"},outputs:{restSinkChange:"restSinkChange"},features:[e.TTD],decls:17,vars:10,consts:function(){let s,t;return s="the url can't be empty!",t="Add Headers KV",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body"],[4,"ngIf"],[3,"url","httpMethod","requestBodyJSONStr","cmdSvcInfoChange"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["name","method",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],[1,"form-group","row","has-validation"],["type","text","name","url",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],s,["name","bodyType",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","json"],["value","text"],["value","html"],["value","xml"],["value","javascript"],["value","form"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],t,[4,"ngFor","ngForOf"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The timeout (milliseconds) for a HTTP request, defaults to 5000 ms",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","timeout",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Control if print the response information into the console. If set it to true, then print response; If set to false, then skip print log. The default is false.",1,"fa","fa-question-circle-o","fa-lg"],["name","debugResp",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here be treated as http post or put RequestBody,The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"],[1,"form-inline","mb-1"],[1,"input-group","mb-1"],[1,"input-group-prepend"],[1,"input-group-text"],["type","text","name","headerKey",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","mx-2"],[1,"fa","fa-long-arrow-right"],[1,"input-group"],["type","text","name","headerValue",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"REST Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",1),e.TgZ(6,"span",4),e.NdJ("click",function(){return n.templateTypeToggle(n.SVC_TYPE_COMMAND)}),e._UZ(7,"i",5),e.TgZ(8,"span"),e._uU(9,"EdgeXCommandServiceTemplate"),e.qZA(),e.qZA(),e.TgZ(10,"span",4),e.NdJ("click",function(){return n.templateTypeToggle(n.SVC_TYPE_CUSTOM)}),e._UZ(11,"i",5),e.TgZ(12,"span"),e._uU(13,"CustomHttpServiceTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",6),e.YNc(15,fe,2,3,"div",7),e.YNc(16,he,122,23,"div",7),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.ekj("badge-info",n.templateTypeSelected===n.SVC_TYPE_COMMAND),e.xp6(1),e.ekj("fa-check-square",n.templateTypeSelected===n.SVC_TYPE_COMMAND),e.xp6(3),e.ekj("badge-info",n.templateTypeSelected===n.SVC_TYPE_CUSTOM),e.xp6(1),e.ekj("fa-check-square",n.templateTypeSelected===n.SVC_TYPE_CUSTOM),e.xp6(4),e.Q6J("ngIf",n.templateTypeSelected===n.SVC_TYPE_COMMAND),e.xp6(1),e.Q6J("ngIf",n.templateTypeSelected===n.SVC_TYPE_CUSTOM))},directives:[p.O5,I,r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj,p.sg,r.wV,C],styles:[""]}),i})(),Ae=(()=>{class i{constructor(){this.sinkBaseProperties={},this.logSinkChange=new e.vpe,this._logSink={sendSingle:!1}}get logSink(){return this._logSink}set logSink(t){Object.assign(this._logSink,t)}ngOnInit(){Object.assign(this.sinkBaseProperties,this.logSink),this.renderPopoverComponent()}ngOnChanges(){this.logSinkChange.emit(this.logSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.logSink,t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-log-sink"]],inputs:{logSink:"logSink"},outputs:{logSinkChange:"logSinkChange"},features:[e.TTD],decls:35,vars:5,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"text-info","mb-2"],[1,"fa","fa-info-circle","mr-1"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Log Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"p",5),e._UZ(7,"i",6),e._uU(8," The action is used for print output message into log file, the log file is at $eKuiper_install/log/stream.log by default."),e._UZ(9,"br"),e._uU(10," No properties can be specified for the action. "),e.qZA(),e.TgZ(11,"div",7),e.TgZ(12,"label",8),e.TgZ(13,"span",9),e._uU(14,"sendSingle"),e.qZA(),e._UZ(15,"span",10),e.qZA(),e.TgZ(16,"div",11),e.TgZ(17,"select",12),e.NdJ("ngModelChange",function(a){return n.logSink.sendSingle=a}),e.TgZ(18,"option",13),e._uU(19,"false"),e.qZA(),e.TgZ(20,"option",13),e._uU(21,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",7),e.TgZ(23,"label",8),e.TgZ(24,"span",9),e._uU(25,"dataTemplate"),e.qZA(),e._UZ(26,"span",14),e.qZA(),e.TgZ(27,"div",11),e.TgZ(28,"input",15),e.NdJ("ngModelChange",function(a){return n.logSink.dataTemplate=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"form"),e.TgZ(30,"div",7),e.TgZ(31,"label",8),e._uU(32,"Advanced Options"),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"app-sink-base-properties",16),e.NdJ("sinkBasePropertiesChange",function(a){return n.onSinkBasePropertiesChange(a)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngModel",n.logSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.logSink.dataTemplate),e.xp6(6),e.Q6J("sinkBaseProperties",n.sinkBaseProperties))},directives:[r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj,r._Y,r.JL,r.F,C],styles:[""]}),i})();function Ce(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"li",9),e.TgZ(1,"span",10),e._uU(2),e.qZA(),e.TgZ(3,"span",11),e.TgZ(4,"span",12),e.NdJ("click",function(){const o=e.CHM(t),a=o.$implicit,l=o.index;return e.oxw(2).editSinkTransfer(a,l)}),e._UZ(5,"i",13),e.qZA(),e.TgZ(6,"span",14),e.NdJ("click",function(){const o=e.CHM(t),a=o.$implicit,l=o.index;return e.oxw(2).deleteSink(a,l)}),e._UZ(7,"i",15),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=s.$implicit,n=s.index,o=e.oxw(2);e.ekj("list-group-item-light",n!==o.selectedSinkIndex)("list-group-item-secondary",n===o.selectedSinkIndex),e.xp6(2),e.Oqu(o.getSinkTypeOfAction(t))}}function Me(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"p",2),e.TgZ(2,"span",3),e.NdJ("click",function(){return e.CHM(t),e.oxw().addSinkTransfer()}),e._UZ(3,"span",4),e.TgZ(4,"span",5),e.SDv(5,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"ul",7),e.YNc(7,Ce,8,5,"li",8),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(7),e.Q6J("ngForOf",t.ruleActions)}}function ve(i,s){1&i&&(e.TgZ(0,"span",33),e._uU(1,"Edit Sink"),e.qZA())}function Ne(i,s){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",32),e.TgZ(2,"span",33),e._uU(3,"Add Sink"),e.qZA(),e.YNc(4,ve,2,0,"span",34),e.qZA()),2&i){const t=e.oxw(2);e.xp6(4),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT)}}function qe(i,s){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",35),e.TgZ(2,"span",33),e._uU(3,"Edit Sink"),e.qZA(),e.qZA())}function Re(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).addOneNewSink()}),e._uU(1,"Add"),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function be(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).updateSink()}),e._uU(1,"Update"),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function Le(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-edgex-sink",37),e.NdJ("edgeXSinkChange",function(o){return e.CHM(t),e.oxw(2).edgeXSink=o}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("edgeXSink",t.edgeXSink)}}function Ie(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-mqtt-sink",38),e.NdJ("mqttSinkChange",function(o){return e.CHM(t),e.oxw(2).mqttSink=o}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("mqttSink",t.mqttSink)}}function ke(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-rest-sink",39),e.NdJ("restSinkChange",function(o){return e.CHM(t),e.oxw(2).restSink=o}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("restSink",t.restSink)}}function Ue(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-log-sink",40),e.NdJ("logSinkChange",function(o){return e.CHM(t),e.oxw(2).logSink=o}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("logSink",t.logSink)}}function Pe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.YNc(2,Ne,5,1,"span",0),e.YNc(3,qe,4,0,"span",0),e.TgZ(4,"span",11),e.YNc(5,Re,2,1,"button",18),e.YNc(6,be,2,1,"button",18),e.TgZ(7,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e._uU(8,"Cancel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",20),e.TgZ(10,"form",21),e.TgZ(11,"div",22),e.TgZ(12,"label",23),e.SDv(13,24),e.qZA(),e.TgZ(14,"div",25),e.TgZ(15,"select",26),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().selectedSinkType=o}),e.TgZ(16,"option",27),e._uU(17),e.qZA(),e.TgZ(18,"option",27),e._uU(19),e.qZA(),e.TgZ(20,"option",27),e._uU(21),e.qZA(),e.TgZ(22,"option",27),e._uU(23),e.qZA(),e.qZA(),e.TgZ(24,"div",28),e.TgZ(25,"small"),e.SDv(26,29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",30),e.YNc(28,Le,2,1,"div",31),e.YNc(29,Ie,2,1,"div",31),e.YNc(30,ke,2,1,"div",31),e.YNc(31,Ue,2,1,"div",31),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(9),e.ekj("is-invalid",!t.selectedSinkType),e.Q6J("ngModel",t.selectedSinkType),e.xp6(1),e.s9C("value",t.EdgeX_SINK),e.xp6(1),e.Oqu(t.EdgeX_SINK),e.xp6(1),e.s9C("value",t.MQTT_SINK),e.xp6(1),e.Oqu(t.MQTT_SINK),e.xp6(1),e.s9C("value",t.REST_SINK),e.xp6(1),e.Oqu(t.REST_SINK),e.xp6(1),e.s9C("value",t.LOG_SINK),e.xp6(1),e.Oqu(t.LOG_SINK),e.xp6(4),e.Q6J("ngSwitch",t.selectedSinkType),e.xp6(1),e.Q6J("ngSwitchCase",t.EdgeX_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.MQTT_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.REST_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.LOG_SINK)}}let k=(()=>{class i{constructor(){this.EdgeX_SINK="edgex",this.MQTT_SINK="mqtt",this.REST_SINK="rest",this.LOG_SINK="log",this.NOP_SINK="nop",this.ruleActionsChange=new e.vpe,this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={},this.selectedSinkIndex=-1,this.selectedSinkType="",this.sinkAddOrEditStatus=!1,this.sinkOperation_ADD="add",this.sinkOperation_EDIT="edit",this.sinkAddOrEditOperation="",this.updateTimestamp="",this._ruleActions=[]}get ruleActions(){return this._ruleActions}set ruleActions(t){!t||(this._ruleActions=t)}ngOnInit(){}ngOnChanges(){this.ruleActionsChange.emit(this.ruleActions)}resetSinksConcreteAll(){this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={}}getSinkTypeOfAction(t){let n=Object.keys(t);return 0===n.length?"":n[0]}getSinkByType(t){let n={};switch(t){case this.EdgeX_SINK:n.edgex=this.edgeXSink;break;case this.MQTT_SINK:n.mqtt=this.mqttSink;break;case this.REST_SINK:n.rest=this.restSink;break;case this.LOG_SINK:n.log=this.logSink;break;default:n.nop=this.nopSink}return n}sinkConcreteExtractor(t){let n=this.getSinkTypeOfAction(t);switch(this.selectedSinkType=n,n){case this.EdgeX_SINK:this.edgeXSink=t.edgex;break;case this.MQTT_SINK:this.mqttSink=t.mqtt;break;case this.REST_SINK:this.restSink=t.rest;break;case this.LOG_SINK:this.logSink=t.log;break;default:this.nopSink=t.nop}}addSinkTransfer(){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_ADD,this.selectedSinkIndex=-1,this.selectedSinkType="",this.resetSinksConcreteAll()}editSinkTransfer(t,n){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_EDIT,this.selectedSinkIndex=n,this.sinkConcreteExtractor(t),this.selectedSinkType=this.getSinkTypeOfAction(t)}addOneNewSink(){this.ruleActions.push(this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}updateSink(){this.ruleActions.splice(this.selectedSinkIndex,1,this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}deleteSink(t,n){this.ruleActions.splice(n,1),this.selectedSinkIndex=-1}cancel(){this.sinkAddOrEditStatus=!1}validate(){if(!this.selectedSinkType)return!1;switch(this.selectedSinkType){case this.MQTT_SINK:if(!this.mqttSink.server||!this.mqttSink.topic)return!1;break;case this.REST_SINK:if(!this.restSink.url)return!1}return!0}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-sink-list"]],inputs:{ruleActions:"ruleActions"},outputs:{ruleActionsChange:"ruleActionsChange"},features:[e.TTD],decls:2,vars:2,consts:function(){let s,t,n;return s="Add Sink",t="Sink Type",n="please select a valid Sink Type !",[[4,"ngIf"],["class","card",4,"ngIf"],[1,"badge","badge-secondary","font-weight-bold"],[3,"click"],[1,"fa","fa-plus-circle","mr-1"],["role","button",1,"user-select-none"],s,[1,"list-group"],["class","list-group-item list-group-item-action ",3,"list-group-item-light","list-group-item-secondary",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action"],[1,"text-dark","mr-2"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit"],["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash"],[1,"card"],[1,"card-header","p-2"],["class","btn btn-success btn-sm mr-2",3,"disabled","click",4,"ngIf"],[1,"btn","btn-secondary","btn-sm",3,"click"],[1,"card-body"],[1,"mb-2"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],t,[1,"col-sm-9"],["name","SinkType",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["id","validationSinkTypeFeedback",1,"invalid-feedback"],n,[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"fa","fa-plus","mr-2","text-info"],[1,"font-weight-bold"],["class","font-weight-bold",4,"ngIf"],[1,"fa","fa-edit","mr-2","text-info"],[1,"btn","btn-success","btn-sm","mr-2",3,"disabled","click"],[3,"edgeXSink","edgeXSinkChange"],[3,"mqttSink","mqttSinkChange"],[3,"restSink","restSinkChange"],[3,"logSink","logSinkChange"]]},template:function(t,n){1&t&&(e.YNc(0,Me,8,1,"div",0),e.YNc(1,Pe,32,20,"div",1)),2&t&&(e.Q6J("ngIf",!n.sinkAddOrEditStatus),e.xp6(1),e.Q6J("ngIf",n.sinkAddOrEditStatus))},directives:[p.O5,p.sg,r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,p.RF,p.n9,ie,ae,Ze,Ae],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();function Oe(i,s){1&i&&e._UZ(0,"i",29)}function ye(i,s){1&i&&e._UZ(0,"i",30)}let U=(()=>{class i{constructor(){this.collapseToggleStatus=!1,this.ruleOptionsChange=new e.vpe,this._ruleOptions={isEventTime:!1,sendMetaToSink:!1,sendError:!0,qos:0}}get ruleOptions(){return this._ruleOptions}set ruleOptions(t){Object.assign(this._ruleOptions,t)}ngOnInit(){}ngOnChanges(){this.ruleOptionsChange.emit(this.ruleOptions)}collapseToggle(t){this.collapseToggleStatus=!this.collapseToggleStatus}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-rule-advanced-options"]],inputs:{ruleOptions:"ruleOptions"},outputs:{ruleOptionsChange:"ruleOptionsChange"},features:[e.TTD],decls:84,vars:19,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"font-weight-bold","text-primary"],[1,"text-primary","ml-2"],["aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["id","clllapse-rule-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to use event time or processing time as the timestamp for an event. If event time is used, the timestamp will be extracted from the payload. The timestamp filed must be specified by the stream definition.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","isEventTime",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the qos of the stream. The options are 0: At most once; 1: At least once and 2: Exactly once. If qos is bigger than 0, the checkpoint mechanism will be activated to save states periodically so that the rule can be resumed from errors.",1,"fa","fa-question-circle-o","fa-lg"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","When working with event-time windowing, it can happen that elements arrive late. LateTolerance can specify by how much time(unit is millisecond) elements can be late before they are dropped. By default, the value is 0 which means late elements are dropped.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","lateTolerance",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","A rule is processed by several phases of plans according to the sql statement. This option will specify how many instances will be run for each plan. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","concurrency",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory for each plan. If the buffered messages exceed the limit, the plan will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit. A bigger value will accommodate more throughput but will also take up more memory footprint.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the time interval in milliseconds to trigger a checkpoint. This is only effective when qos is bigger than 0.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","checkpointInterval",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify whether the meta data of an event will be sent to the sink. If true, the sink can get te meta data information.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendMetaToSink",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to send the error to sink. If true, any runtime error will be sent through the whole rule into sinks. Otherwise, the error will only be printed out in the log.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendError",1,"custom-select",3,"ngModel","ngModelChange"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-down","fa-lg"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(a){return n.collapseToggle(a)}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Rule Advanced Options"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,Oe,1,0,"i",5),e.YNc(7,ye,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span",10),e._uU(13,"IsEventTime"),e.qZA(),e._UZ(14,"span",11),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"select",13),e.NdJ("ngModelChange",function(a){return n.ruleOptions.isEventTime=a}),e.TgZ(17,"option",14),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span",10),e._uU(24,"Qos"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",12),e.TgZ(27,"select",16),e.NdJ("ngModelChange",function(a){return n.ruleOptions.qos=a}),e.TgZ(28,"option",14),e._uU(29,"0"),e.qZA(),e.TgZ(30,"option",14),e._uU(31,"1"),e.qZA(),e.TgZ(32,"option",14),e._uU(33,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",8),e.TgZ(35,"label",9),e.TgZ(36,"span",10),e._uU(37,"LateTolerance"),e.qZA(),e._UZ(38,"span",17),e.qZA(),e.TgZ(39,"div",12),e.TgZ(40,"input",18),e.NdJ("ngModelChange",function(a){return n.ruleOptions.lateTolerance=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e.TgZ(43,"span",10),e._uU(44,"Concurrency"),e.qZA(),e._UZ(45,"span",19),e.qZA(),e.TgZ(46,"div",12),e.TgZ(47,"input",20),e.NdJ("ngModelChange",function(a){return n.ruleOptions.concurrency=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",8),e.TgZ(49,"label",9),e.TgZ(50,"span",10),e._uU(51,"BufferLength"),e.qZA(),e._UZ(52,"span",21),e.qZA(),e.TgZ(53,"div",12),e.TgZ(54,"input",22),e.NdJ("ngModelChange",function(a){return n.ruleOptions.bufferLength=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",8),e.TgZ(56,"label",9),e.TgZ(57,"span",10),e._uU(58,"CheckpointInterval"),e.qZA(),e._UZ(59,"span",23),e.qZA(),e.TgZ(60,"div",12),e.TgZ(61,"input",24),e.NdJ("ngModelChange",function(a){return n.ruleOptions.checkpointInterval=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",8),e.TgZ(63,"label",9),e.TgZ(64,"span",10),e._uU(65,"SendMetaToSink"),e.qZA(),e._UZ(66,"span",25),e.qZA(),e.TgZ(67,"div",12),e.TgZ(68,"select",26),e.NdJ("ngModelChange",function(a){return n.ruleOptions.sendMetaToSink=a}),e.TgZ(69,"option",14),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",14),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e.TgZ(75,"span",10),e._uU(76,"SendError"),e.qZA(),e._UZ(77,"span",27),e.qZA(),e.TgZ(78,"div",12),e.TgZ(79,"select",28),e.NdJ("ngModelChange",function(a){return n.ruleOptions.sendError=a}),e.TgZ(80,"option",14),e._uU(81,"false"),e.qZA(),e.TgZ(82,"option",14),e._uU(83,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!n.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",n.collapseToggleStatus),e.xp6(9),e.Q6J("ngModel",n.ruleOptions.isEventTime),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.ruleOptions.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(8),e.Q6J("ngModel",n.ruleOptions.lateTolerance),e.xp6(7),e.Q6J("ngModel",n.ruleOptions.concurrency),e.xp6(7),e.Q6J("ngModel",n.ruleOptions.bufferLength),e.xp6(7),e.Q6J("ngModel",n.ruleOptions.checkpointInterval),e.xp6(7),e.Q6J("ngModel",n.ruleOptions.sendMetaToSink),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.ruleOptions.sendError),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.wV,r.Fj],styles:[""]}),i})();function xe(i,s){1&i&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}function $e(i,s){1&i&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,43),e.qZA(),e.qZA())}let De=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.router=o,this.route=a,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(n=>{CodeMirror.resolveMode("text/x-pgsql").keywords[n]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(n,o)=>{}),this.sqlEditor.on("paste",(n,o)=>{}),this.sqlEditor.on("keyup",(n,o)=>{o.keyCode>=65&&o.keyCode<=90&&n.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}submit(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.addRule(this.rule).subscribe(()=>{this.msgSvc.success("Add rule",`Name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.F0),e.Y36(c.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-add-rules"]],decls:59,vars:18,consts:function(){let s,t,n,o,a,l,d,m,g,u,S;return s="Add Rule",t="Submit",n="Name",o="the rule name can't be empty!",a="RuleSQL",l="SQL Editor",d="Action",m="Add Action",g="Options",u="SQL can't be empty!",S="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],s,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],n,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],o,["for","ruleSql",1,"col-md-2","col-form-label"],a,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],l,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],d,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],m,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u,S]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return n.submit()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(a){return n.rule.id=a}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,xe,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return n.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,$e,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(a){return n.rule.actions=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(a){return n.rule.options=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!n.validate()),e.xp6(12),e.ekj("is-invalid",!n.rule.id)("is-valid",n.rule.id),e.Q6J("ngModel",n.rule.id),e.xp6(11),e.ekj("border",!n.sqlEditor.getValue())("border-danger",!n.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!n.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!n.rule.actions||0===n.rule.actions.length)("border-danger",!n.rule.actions||0===n.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!n.rule.actions||0===n.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",n.rule.actions),e.xp6(7),e.Q6J("ruleOptions",n.rule.options))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,p.O5,k,U],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();function Je(i,s){1&i&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e._uU(3,"SQL can't be empty!"),e.qZA(),e.qZA())}function we(i,s){1&i&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}let Ge=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.router=o,this.route=a,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.ruleID&&this.getRuleByID(t.ruleID)}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}getRuleByID(t){this.ruleSvc.findRuleById(t).subscribe(n=>{this.rule=n,this.sqlEditor.setValue(this.rule.sql)})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(n=>{CodeMirror.resolveMode("text/x-pgsql").keywords[n]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(n,o)=>{}),this.sqlEditor.on("paste",(n,o)=>{}),this.sqlEditor.on("keyup",(n,o)=>{o.keyCode>=65&&o.keyCode<=90&&n.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}update(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.updateRule(this.rule).subscribe(()=>{this.msgSvc.success("update",`name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.F0),e.Y36(c.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edit-rules"]],decls:59,vars:18,consts:function(){let s,t,n,o,a,l,d,m,g,u;return s="Edit Rule",t="Update",n="Name",o="the rule name can't be empty!",a="RuleSQL",l="SQL Editor",d="Action",m="Add Action",g="Options",u="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],s,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],n,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],o,["for","ruleSql",1,"col-md-2","col-form-label"],a,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],l,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],d,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],m,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return n.update()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(a){return n.rule.id=a}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,Je,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return n.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,we,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(a){return n.rule.actions=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(a){return n.rule.options=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!n.validate()),e.xp6(12),e.ekj("is-invalid",!n.rule.id)("is-valid",n.rule.id),e.Q6J("ngModel",n.rule.id),e.xp6(11),e.ekj("border",!n.sqlEditor.getValue())("border-danger",!n.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!n.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!n.rule.actions||0===n.rule.actions.length)("border-danger",!n.rule.actions||0===n.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!n.rule.actions||0===n.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",n.rule.actions),e.xp6(7),e.Q6J("ruleOptions",n.rule.options))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,p.O5,k,U],styles:[""]}),i})(),Xe=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-rules-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),i})();function Qe(i,s){1&i&&(e.TgZ(0,"span"),e.TgZ(1,"div",50),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function Fe(i,s){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.status," ")}}function Ve(i,s){1&i&&(e.TgZ(0,"span"),e.TgZ(1,"div",52),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.TgZ(4,"div",53),e.TgZ(5,"span",51),e._uU(6,"Loading..."),e.qZA(),e.qZA(),e.TgZ(7,"div",54),e.TgZ(8,"span",51),e._uU(9,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function Ke(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",55),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().execute(o.id,"start")}),e.SDv(2,56),e.qZA(),e.TgZ(3,"span",57),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().execute(o.id,"restart")}),e.SDv(4,58),e.qZA(),e.TgZ(5,"span",59),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().execute(o.id,"stop")}),e.SDv(6,60),e.qZA(),e.qZA()}}function Be(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",24),e.NdJ("click",function(o){const l=e.CHM(t).$implicit;return e.oxw().selectOne(o,l)}),e.qZA(),e.qZA(),e.TgZ(3,"td",46),e._uU(4),e.qZA(),e.TgZ(5,"td"),e.YNc(6,Qe,4,0,"span",47),e.YNc(7,Fe,2,1,"span",47),e.qZA(),e.TgZ(8,"td",48),e.TgZ(9,"i",49),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.oxw().statusMetrics(a.id)}),e.qZA(),e.qZA(),e.TgZ(10,"td"),e.YNc(11,Ve,10,0,"span",47),e.YNc(12,Ke,7,0,"span",47),e.qZA(),e.qZA()}if(2&i){const t=s.$implicit,n=e.oxw();e.ekj("table-active",n.isChecked(t.id)),e.xp6(2),e.Q6J("checked",n.isChecked(t.id)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Q6J("ngIf",n.operationStatus),e.xp6(1),e.Q6J("ngIf",!n.operationStatus),e.xp6(2),e.ekj("text-info",n.statusMetricsRuleID===t.id),e.xp6(2),e.Q6J("ngIf",n.operationStatus),e.xp6(1),e.Q6J("ngIf",!n.operationStatus)}}function Ye(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",61),e.TgZ(1,"div",1),e._UZ(2,"i",62),e.TgZ(3,"span",63),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,64),e.qZA(),e.TgZ(7,"span",65),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.statusMetricsRefresh(o.statusMetricsRuleID)}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,66),e.qZA(),e.qZA(),e.TgZ(11,"span",67),e.TgZ(12,"i",68),e.NdJ("click",function(){return e.CHM(t),e.oxw().statusMetricsShowClose()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",69),e.TgZ(14,"pre",70),e._uU(15),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(4),e.Oqu(t.statusMetricsRuleID),e.xp6(11),e.Oqu(t.ruleStatusMetrics)}}let ze=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.route=o,this.router=a,this.rulesList=[],this.selectedRules=[],this.ruleStatusMetrics="",this.statusMetricsRuleID="",this.operationStatus=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{this.getRulesList()})}getRulesList(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t})}refresh(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t,this.msgSvc.success("refresh")})}edit(){this.router.navigate(["../edit-rules"],{relativeTo:this.route,queryParams:{ruleID:this.selectedRules[0].id}})}statusMetrics(t){this.statusMetricsRuleID="",this.ruleStatusMetrics="",this.ruleSvc.getRuleStatusMetricsById(t).subscribe(n=>{let o;this.statusMetricsRuleID=t;try{o=JSON.parse(n)}catch(a){return void(this.ruleStatusMetrics=n)}this.ruleStatusMetrics=JSON.stringify(o,null,3)})}statusMetricsShowClose(){this.statusMetricsRuleID="",this.ruleStatusMetrics=""}statusMetricsRefresh(t){this.statusMetrics(t)}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedRules.forEach((t,n)=>{this.ruleSvc.deleteOneRuleById(t.id).subscribe(()=>{this.selectedRules.splice(n,1),this.rulesList.forEach((o,a)=>{o.id===t.id&&(this.rulesList.splice(a,1),this.msgSvc.success("remove rule ",` Id: ${t.id}`))})})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let t=!0;return this.rulesList&&0===this.rulesList.length&&(t=!1),this.rulesList.forEach(n=>{-1===this.selectedRules.findIndex(o=>o.id===n.id)&&(t=!1)}),t}selectAll(t){this.rulesList.forEach(t.target.checked?o=>{-1===this.selectedRules.findIndex(a=>a.id===o.id)&&this.selectedRules.push(o)}:o=>{let a=this.selectedRules.findIndex(l=>l.id===o.id);-1!==a&&this.selectedRules.splice(a,1)})}isChecked(t){return this.selectedRules.findIndex(n=>n.id===t)>=0}selectOne(t,n){if(t.target.checked)return void this.selectedRules.push(n);let a=this.selectedRules.findIndex(l=>l.id===n.id);-1!==a&&this.selectedRules.splice(a,1)}execute(t,n){this.operationStatus=!0,this.ruleSvc.executeRuleCommand(t,n).subscribe({next:()=>{this.operationStatus=!1,this.msgSvc.success(`${n} ${t}`),this.getRulesList()},error:()=>this.operationStatus=!1})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.gz),e.Y36(c.F0))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-rules-list"]],decls:56,vars:5,consts:function(){let s,t,n,o,a,l,d,m,g,u,S,f,O,y,x,D,J,w;return s="Rule List",t="Refresh",n="Add",o="Edit",a="Delete",l="ID",d="Status",m="Status Metrics",g="Operaion",u="Warning",S=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",f="Cancel",O="Confirm",y="start",x="restart",D="stop",J="Status Metrics",w="refresh",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],[1,"font-weight-bold"],s,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],t,["type","button","routerLink","../add-rules",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],n,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],o,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],a,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],l,d,["scope","col",1,"text-center"],m,g,[3,"table-active",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],u,[1,"modal-body"],S,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],f,["type","button",1,"btn","btn-danger",3,"click"],O,[1,"user-select-all"],[4,"ngIf"],[1,"text-center"],["role","button",1,"fa","fa-line-chart","text-primary",3,"click"],["role","status",1,"spinner-border","spinner-border-sm","text-secondary"],[1,"sr-only"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-success"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-info"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-danger"],["role","button",1,"badge","badge-success","mr-1",3,"click"],y,["role","button",1,"badge","badge-info","mr-1",3,"click"],x,["role","button",1,"badge","badge-danger","mr-1",3,"click"],D,[1,"card","mt-3"],[1,"fa","fa-line-chart","mr-2","text-info"],[1,"mr-2","font-weight-bold"],J,["role","button",1,"badge","badge-primary","mx-2",3,"click"],w,["role","button",1,"align-bottom"],[1,"fa","fa-window-close","fa-lg","text-danger","float-right","mt-1",3,"click"],[1,"card-body"],[1,"p-2"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"div",6),e.TgZ(7,"button",7),e.NdJ("click",function(){return n.refresh()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.TgZ(11,"button",10),e._UZ(12,"i",11),e.TgZ(13,"span"),e.SDv(14,12),e.qZA(),e.qZA(),e.TgZ(15,"button",13),e.NdJ("click",function(){return n.edit()}),e._UZ(16,"i",14),e.TgZ(17,"span"),e.SDv(18,15),e.qZA(),e.qZA(),e.TgZ(19,"button",16),e.NdJ("click",function(){return n.deleteConfirm()}),e._UZ(20,"i",17),e.TgZ(21,"span"),e.SDv(22,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",19),e.TgZ(24,"div",20),e.TgZ(25,"table",21),e.TgZ(26,"thead",22),e.TgZ(27,"tr"),e.TgZ(28,"th",23),e.TgZ(29,"input",24),e.NdJ("click",function(a){return n.selectAll(a)}),e.qZA(),e.qZA(),e.TgZ(30,"th",23),e.SDv(31,25),e.qZA(),e.TgZ(32,"th",23),e.SDv(33,26),e.qZA(),e.TgZ(34,"th",27),e.SDv(35,28),e.qZA(),e.TgZ(36,"th",23),e.SDv(37,29),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"tbody"),e.YNc(39,Be,13,10,"tr",30),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(40,Ye,16,2,"div",31),e.TgZ(41,"div",32),e.TgZ(42,"div",33),e.TgZ(43,"div",34),e.TgZ(44,"div",35),e.TgZ(45,"h5",36),e._UZ(46,"i",37),e.TgZ(47,"span"),e.SDv(48,38),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",39),e.SDv(50,40),e.qZA(),e.TgZ(51,"div",41),e.TgZ(52,"button",42),e.SDv(53,43),e.qZA(),e.TgZ(54,"button",44),e.NdJ("click",function(){return n.delete()}),e.SDv(55,45),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(15),e.Q6J("disabled",1!==n.selectedRules.length),e.xp6(4),e.Q6J("disabled",0===n.selectedRules.length),e.xp6(10),e.Q6J("checked",n.isCheckedAll()),e.xp6(10),e.Q6J("ngForOf",n.rulesList),e.xp6(1),e.Q6J("ngIf",n.ruleStatusMetrics&&n.statusMetricsRuleID))},directives:[c.rH,p.sg,p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();function He(i,s){1&i&&(e.TgZ(0,"div",18),e._UZ(1,"i",19),e.TgZ(2,"span"),e.SDv(3,20),e.qZA(),e.qZA())}let je=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.router=o,this.route=a,this.EDGEX="edgex",this.CUSTOM="custom",this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.templateTypeSelected=this.EDGEX,this.edgexStreamDataTemplate='CREATE STREAM EdgeXStream () WITH ( FORMAT = "JSON", TYPE = "edgex" )',this.customStreamDataTemplate='CREATE STREAM demo ( field1 bigint, field2 float ) WITH ( DATASOURCE = "", KEY = "", FORMAT = "JSON", CONF_KEY = "", TYPE = "edgex", STRICT_VALIDATION = "true", TIMESTAMP = "", TIMESTAMP_FORMAT = "", RETAIN_SIZE = "0", SHARED = "false" )',this.streamIsNullMsg=!1}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}templateTypeToggle(t){this.templateTypeSelected=t,t===this.EDGEX?this.sqlEditor.setValue(this.edgexStreamDataTemplate):(this.sqlEditor.setValue(this.customStreamDataTemplate),this.formatSql())}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(n=>{CodeMirror.resolveMode("text/x-pgsql").keywords[n]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(n,o)=>{}),this.sqlEditor.on("paste",(n,o)=>{}),this.sqlEditor.on("keyup",(n,o)=>{o.keyCode>=65&&o.keyCode<=90&&n.showHint({completeSingle:!1})}),this.sqlEditor.setValue(this.edgexStreamDataTemplate)}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}documentShow(){$("#stream-document").modal("show")}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.addStream(JSON.stringify({sql:t})).subscribe(()=>{this.msgSvc.success("Add Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.F0),e.Y36(c.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-add-stream"]],decls:25,vars:9,consts:function(){let s,t,n;return s="Add Stream",t="Submit",n="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,""],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],s,["type","button",1,"btn","btn-success","btn-sm","float-right",3,"click"],[1,"fa","fa-save","mr-1"],t,[1,"card-header"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],n]},template:function(t,n){1&t&&(e.YNc(0,He,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"span",5),e.SDv(6,6),e.qZA(),e.qZA(),e.TgZ(7,"button",7),e.NdJ("click",function(){return n.submit()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",10),e.TgZ(12,"span",11),e.NdJ("click",function(){return n.templateTypeToggle(n.EDGEX)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e._uU(15,"EdgeXStreamTemplate"),e.qZA(),e.qZA(),e.TgZ(16,"span",11),e.NdJ("click",function(){return n.templateTypeToggle(n.CUSTOM)}),e._UZ(17,"i",12),e.TgZ(18,"span"),e._uU(19,"CustomStreamTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",13),e.TgZ(21,"div",14),e.TgZ(22,"span",15),e.TgZ(23,"i",16),e.NdJ("click",function(){return n.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(24,"textarea",17),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",n.streamIsNullMsg),e.xp6(12),e.ekj("badge-info",n.templateTypeSelected===n.EDGEX),e.xp6(1),e.ekj("fa-check-square",n.templateTypeSelected===n.EDGEX),e.xp6(3),e.ekj("badge-info",n.templateTypeSelected===n.CUSTOM),e.xp6(1),e.ekj("fa-check-square",n.templateTypeSelected===n.CUSTOM))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();function We(i,s){1&i&&(e.TgZ(0,"div",16),e._UZ(1,"i",17),e.TgZ(2,"span"),e.SDv(3,18),e.qZA(),e.qZA())}let et=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.router=o,this.route=a,this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.streamName="",this.streamStringFormatObj="",this.streamIsNullMsg=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{t.streamName&&(this.streamName=t.streamName,this.getStreamByNameOrID())}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}getStreamByNameOrID(){this.ruleSvc.findStreamByName(this.streamName).subscribe(t=>{this.streamJSONFormatObj=t,this.dataFormatJSONToStringConvertor(),this.sqlEditor.setValue(this.streamStringFormatObj),this.formatSql()})}dataFormatJSONToStringConvertor(){var t,n,o;if(!this.streamJSONFormatObj)return;let a=[];null===(n=null===(t=this.streamJSONFormatObj)||void 0===t?void 0:t.StreamFields)||void 0===n||n.forEach((d,m)=>{a.push(`${d.Name} ${d.FieldType}`)});let l=[];for(const[d,m]of Object.entries(this.streamJSONFormatObj.Options))l.push(`${d} = "${m}"`);this.streamStringFormatObj=`CREATE STREAM ${null===(o=this.streamJSONFormatObj)||void 0===o?void 0:o.Name} ( ${a.join(", ")} ) WITH ( ${l.join(", ")} )`}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(n=>{CodeMirror.resolveMode("text/x-pgsql").keywords[n]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(n,o)=>{}),this.sqlEditor.on("paste",(n,o)=>{}),this.sqlEditor.on("keyup",(n,o)=>{o.keyCode>=65&&o.keyCode<=90&&n.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.updateStream(JSON.stringify({sql:t}),this.streamName).subscribe(()=>{this.msgSvc.success("Update Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.F0),e.Y36(c.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edit-stream"]],decls:19,vars:3,consts:function(){let s,t,n;return s="Edit Stream",t="Submit",n="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-2"],s,[1,"font-weight-bold"],[1,"float-right"],["type","button",1,"btn","btn-success","btn-sm",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],n]},template:function(t,n){1&t&&(e.YNc(0,We,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span"),e._UZ(4,"span",3),e.TgZ(5,"span",4),e.SDv(6,5),e.qZA(),e.TgZ(7,"span",6),e._uU(8),e.qZA(),e.qZA(),e.TgZ(9,"span",7),e.TgZ(10,"button",8),e.NdJ("click",function(){return n.submit()}),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e.TgZ(16,"span",13),e.TgZ(17,"i",14),e.NdJ("click",function(){return n.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(18,"textarea",15),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",n.streamIsNullMsg),e.xp6(8),e.Oqu(n.streamName),e.xp6(2),e.Q6J("disabled",!n.streamStringFormatObj))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})(),tt=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-stream-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),i})();function nt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"li",29),e.TgZ(1,"div",30),e.TgZ(2,"div",31),e._UZ(3,"i",32),e.qZA(),e.TgZ(4,"div",33),e.TgZ(5,"div",34),e.TgZ(6,"h5",35),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",36),e.TgZ(10,"span",37),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.oxw().edit(a)}),e._UZ(11,"i",38),e.TgZ(12,"span"),e.SDv(13,39),e.qZA(),e.qZA(),e.TgZ(14,"span",40),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.oxw().deleteConfirm(a)}),e._UZ(15,"i",41),e.TgZ(16,"span"),e.SDv(17,42),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=s.$implicit;e.xp6(7),e.Oqu(t)}}let ot=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.route=o,this.router=a,this.streamList=[],this.selectedStream=""}ngOnInit(){this.getStreamList()}getStreamList(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t})}refresh(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t,this.msgSvc.success("refresh")})}add(){this.router.navigate(["../add-stream"],{relativeTo:this.route})}edit(t){this.router.navigate(["../edit-stream"],{relativeTo:this.route,queryParams:{streamName:t}})}deleteConfirm(t){this.selectedStream=t,$("#deleteConfirmDialog").modal("show")}delete(){$("#deleteConfirmDialog").modal("hide"),this.ruleSvc.deleteOneStreamById(this.selectedStream).subscribe(()=>{this.msgSvc.success("delete",`name: ${this.selectedStream}`),this.streamList.forEach((t,n)=>{t===this.selectedStream&&this.streamList.splice(n,1)})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.gz),e.Y36(c.F0))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-stream-list"]],decls:33,vars:1,consts:function(){let s,t,n,o,a,l,d,m,g;return s="Stream List",t="Refresh",n="Add",o="Warning",a=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",l="Cancel",d="Confirm",m="Edit",g="Delete",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],s,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-refresh","mr-1"],t,[1,"btn","btn-success","btn-sm",3,"click"],[1,"fa","fa-plus-circle","mr-1"],n,[1,"card-body","p-0"],[1,"list-group","p-0","border-0"],["class","list-group-item list-group-item-action list-group-item-light border-top-0 border-left-0 border-right-0",4,"ngFor","ngForOf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],o,[1,"modal-body"],a,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],l,["type","button",1,"btn","btn-danger",3,"click"],d,[1,"list-group-item","list-group-item-action","list-group-item-light","border-top-0","border-left-0","border-right-0"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit","mr-1"],m,["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash","mr-1"],g]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return n.refresh()}),e._UZ(8,"i",7),e.TgZ(9,"span"),e.SDv(10,8),e.qZA(),e.qZA(),e.TgZ(11,"button",9),e.NdJ("click",function(){return n.add()}),e._UZ(12,"i",10),e.TgZ(13,"span"),e.SDv(14,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"ul",13),e.YNc(17,nt,18,1,"li",14),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",15),e.TgZ(19,"div",16),e.TgZ(20,"div",17),e.TgZ(21,"div",18),e.TgZ(22,"h5",19),e._UZ(23,"i",20),e.TgZ(24,"span"),e.SDv(25,21),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",22),e.SDv(27,23),e.qZA(),e.TgZ(28,"div",24),e.TgZ(29,"button",25),e.SDv(30,26),e.qZA(),e.TgZ(31,"button",27),e.NdJ("click",function(){return n.delete()}),e.SDv(32,28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngForOf",n.streamList))},directives:[p.sg],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}#addStreamDialog[_ngcontent-%COMP%] #editStreamDialog[_ngcontent-%COMP%]{margin-top:10%}"]}),i})();var it=_(8253),at=_(1964),st=_(4294),rt=_(5894),lt=_(7216);let P=(()=>{class i{constructor(t,n){this.router=t,this.ruleSvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.ruleSvc.ping().pipe((0,st.q)(1),(0,rt.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"rule engine",routerPath:`/${n.url.split("/")[1]}`}})),(0,lt.z)(()=>(0,at.of)(!0)))}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(c.F0),e.LFG(E.n))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const dt=[{path:"",component:G,canActivate:[it.a,P],canActivateChild:[P],children:[{path:"",redirectTo:"stream-center",pathMatch:"full"},{path:"stream-center",component:tt,children:[{path:"",redirectTo:"stream-list",pathMatch:"full"},{path:"stream-list",component:ot},{path:"add-stream",component:je},{path:"edit-stream",component:et}]},{path:"rules-center",component:Xe,children:[{path:"",redirectTo:"rules-list",pathMatch:"full"},{path:"rules-list",component:ze},{path:"add-rules",component:De},{path:"edit-rules",component:Ge}]}]}];let _t=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[c.Bz.forChild(dt)],c.Bz]}),i})();var gt=_(6342),ct=_(4010);let ut=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[p.ez,r.u5,r.UX,_t,gt.Y,ct.MetadataModule]]}),i})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/155.eb51d10e34a83d1c5025.js b/cmd/edgex-ui-server/static/web/en-US/155.eb51d10e34a83d1c5025.js deleted file mode 100644 index 2047055c..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/155.eb51d10e34a83d1c5025.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[155],{4155:(pt,N,d)=>{d.r(N),d.d(N,{RuleEngineModule:()=>ut});var p=d(8583),s=d(3092),c=d(9502),e=d(476);let X=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rule-engine"]],decls:11,vars:0,consts:function(){let a,t;return a="Stream",t="Rules",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./stream-center","routerLinkActive","active",1,"nav-link"],a,["routerLink","./rules-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.qZA(),e.TgZ(6,"li",3),e.TgZ(7,"a",6),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e._UZ(10,"router-outlet"),e.qZA(),e.qZA())},directives:[c.yS,c.Od,c.lC],styles:[""]}),o})();var A=d(4791),f=d(7822),w=d(6322),B=d(1302);function Q(o,a){1&o&&e._UZ(0,"i",26)}function H(o,a){1&o&&e._UZ(0,"i",27)}let W=(()=>{class o{constructor(){this.collapseToggleStatus=!1,this.optionalChange=new e.vpe,this._optional={Qos:"0",Retained:"false",SkipCertVerify:"true",AutoReconnect:"true",CleanSession:"true"}}get optional(){return this._optional}set optional(t){Object.assign(this._optional,t)}ngOnInit(){}ngOnChanges(){this.optionalChange.emit(this.optional)}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edgex-sink-optional"]],inputs:{optional:"optional"},outputs:{optionalChange:"optionalChange"},features:[e.TTD],decls:102,vars:27,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["id","collapse-edgex-sink-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Password",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["type","number","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retained",1,"custom-select",3,"ngModel","ngModelChange"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","CleanSession",1,"custom-select",3,"ngModel","ngModelChange"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","CertFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","CertPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return _.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink Options Setting"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,Q,1,0,"i",5),e.YNc(7,H,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e._uU(12,"ClientId"),e.qZA(),e.TgZ(13,"div",10),e.TgZ(14,"input",11),e.NdJ("ngModelChange",function(i){return _.optional.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",8),e.TgZ(16,"label",9),e._uU(17,"Username"),e.qZA(),e.TgZ(18,"div",10),e.TgZ(19,"input",12),e.NdJ("ngModelChange",function(i){return _.optional.Username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",8),e.TgZ(21,"label",9),e._uU(22,"Password"),e.qZA(),e.TgZ(23,"div",10),e.TgZ(24,"input",13),e.NdJ("ngModelChange",function(i){return _.optional.Password=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",8),e.TgZ(26,"label",9),e._uU(27,"Qos"),e.qZA(),e.TgZ(28,"div",10),e.TgZ(29,"select",14),e.NdJ("ngModelChange",function(i){return _.optional.Qos=i}),e.TgZ(30,"option",15),e._uU(31,"0"),e.qZA(),e.TgZ(32,"option",15),e._uU(33,"1"),e.qZA(),e.TgZ(34,"option",15),e._uU(35,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e.TgZ(37,"label",9),e._uU(38,"KeepAlive"),e.qZA(),e.TgZ(39,"div",10),e.TgZ(40,"input",16),e.NdJ("ngModelChange",function(i){return _.optional.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e._uU(43,"Retained"),e.qZA(),e.TgZ(44,"div",10),e.TgZ(45,"select",17),e.NdJ("ngModelChange",function(i){return _.optional.Retained=i}),e.TgZ(46,"option",15),e._uU(47,"false"),e.qZA(),e.TgZ(48,"option",15),e._uU(49,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",8),e.TgZ(51,"label",9),e._uU(52,"AutoReconnect"),e.qZA(),e.TgZ(53,"div",10),e.TgZ(54,"select",18),e.NdJ("ngModelChange",function(i){return _.optional.AutoReconnect=i}),e.TgZ(55,"option",15),e._uU(56,"false"),e.qZA(),e.TgZ(57,"option",15),e._uU(58,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",8),e.TgZ(60,"label",9),e._uU(61,"ConnectTimeout"),e.qZA(),e.TgZ(62,"div",10),e.TgZ(63,"input",19),e.NdJ("ngModelChange",function(i){return _.optional.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",8),e.TgZ(65,"label",9),e._uU(66,"CleanSession"),e.qZA(),e.TgZ(67,"div",10),e.TgZ(68,"select",20),e.NdJ("ngModelChange",function(i){return _.optional.CleanSession=i}),e.TgZ(69,"option",15),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",15),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e._uU(75,"SkipCertVerify"),e.qZA(),e.TgZ(76,"div",10),e.TgZ(77,"select",21),e.NdJ("ngModelChange",function(i){return _.optional.SkipCertVerify=i}),e.TgZ(78,"option",15),e._uU(79,"true"),e.qZA(),e.TgZ(80,"option",15),e._uU(81,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",8),e.TgZ(83,"label",9),e._uU(84,"CertFile"),e.qZA(),e.TgZ(85,"div",10),e.TgZ(86,"input",22),e.NdJ("ngModelChange",function(i){return _.optional.CertFile=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",8),e.TgZ(88,"label",9),e._uU(89,"KeyFile"),e.qZA(),e.TgZ(90,"div",10),e.TgZ(91,"input",23),e.NdJ("ngModelChange",function(i){return _.optional.KeyFile=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(92,"div",8),e.TgZ(93,"label",9),e._uU(94,"CertPEMBlock"),e.qZA(),e.TgZ(95,"div",10),e.TgZ(96,"input",24),e.NdJ("ngModelChange",function(i){return _.optional.CertPEMBlock=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(97,"div",8),e.TgZ(98,"label",9),e._uU(99,"KeyPEMBlock"),e.qZA(),e.TgZ(100,"div",10),e.TgZ(101,"input",25),e.NdJ("ngModelChange",function(i){return _.optional.KeyPEMBlock=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(7),e.Q6J("ngModel",_.optional.ClientId),e.xp6(5),e.Q6J("ngModel",_.optional.Username),e.xp6(5),e.Q6J("ngModel",_.optional.Password),e.xp6(5),e.Q6J("ngModel",_.optional.Qos),e.xp6(1),e.Q6J("value",0),e.xp6(2),e.Q6J("value",1),e.xp6(2),e.Q6J("value",2),e.xp6(6),e.Q6J("ngModel",_.optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",_.optional.Retained),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.AutoReconnect),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",_.optional.CleanSession),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.SkipCertVerify),e.xp6(1),e.Q6J("value",!0),e.xp6(2),e.Q6J("value",!1),e.xp6(6),e.Q6J("ngModel",_.optional.CertFile),e.xp6(5),e.Q6J("ngModel",_.optional.KeyFile),e.xp6(5),e.Q6J("ngModel",_.optional.CertPEMBlock),e.xp6(5),e.Q6J("ngModel",_.optional.KeyPEMBlock))},directives:[p.O5,s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,s.EJ,s.YN,s.Kr,s.wV],styles:[""]}),o})();var h=d(9162),V=function(o){function a(t,_){return o.call(this)||this}return(0,h.ZT)(a,o),a.prototype.schedule=function(t,_){return void 0===_&&(_=0),this},a}(d(8839).w0),Z={setInterval:function(){for(var o=[],a=0;a{class o{constructor(){this.collapseToggleStatus=!1,this.sinkBasePropertiesForm=new s.cw({concurrency:new s.NI(1),bufferLength:new s.NI(1024),runAsync:new s.NI(!1),retryInterval:new s.NI(1e3),retryCount:new s.NI(0),cacheLength:new s.NI(1024),cacheSaveInterval:new s.NI(1e3),omitIfEmpty:new s.NI(!1)}),this.sinkBasePropertiesChange=new e.vpe,this.sinkBaseProperties={}}ngOnChanges(){delete this.sinkBaseProperties.sendSingle,delete this.sinkBaseProperties.dataTemplate;let t={};for(const[_,n]of Object.entries(this.sinkBaseProperties))this.sinkBasePropertiesForm.value.hasOwnProperty(_)&&n&&(t[_]=n);this.sinkBasePropertiesForm.patchValue(t)}ngAfterViewInit(){this.sinkBasePropertiesForm.valueChanges.pipe(I(400),q()).subscribe(()=>{Object.assign(this.sinkBaseProperties,this.sinkBasePropertiesForm.value),this.sinkBasePropertiesChange.emit(this.sinkBaseProperties)})}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-sink-base-properties"]],inputs:{sinkBaseProperties:"sinkBaseProperties"},outputs:{sinkBasePropertiesChange:"sinkBasePropertiesChange"},features:[e.TTD],decls:74,vars:7,consts:function(){let a;return a="Sink Advanced Options",[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],a,[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["id","collapse-sink-base",1,"card-body","collapse"],[3,"formGroup"],[1,"form-group","row"],[1,"col","col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many instances of the sink will be run. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["type","number","name","concurrency","formControlName","concurrency",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory. If the buffered messages exceed the limit, the sink will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength","formControlName","bufferLength",1,"form-control"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many milliseconds will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryInterval","formControlName","retryInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryCount","formControlName","retryCount",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be cached. The cached messages will be resent to external system until the data sent out successfully. The cached message will be sent in order except in runAsync or concurrent mode. The cached message will be saved to disk in fixed intervals.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheLength","formControlName","cacheLength",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the interval to save cached message to the disk. Notice that, if the rule is closed in plan, all the cached messages will be saved at close. A larger value can reduce the saving overhead but may lose more cache messages when the system is interrupted in error.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheSaveInterval","formControlName","cacheSaveInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether the sink will run asynchronously for better performance. If it is true, the sink result order is not promised.",1,"fa","fa-question-circle-o","fa-lg"],["name","runAsync","formControlName","runAsync",1,"custom-select"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","If the configuration item is set to true, when SELECT result is empty, then the result will not feed to sink operator.",1,"fa","fa-question-circle-o","fa-lg"],["name","omitIfEmpty","formControlName","omitIfEmpty",1,"custom-select"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-up","fa-lg"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return _.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"span",5),e.YNc(6,_e,1,0,"i",6),e.YNc(7,ne,1,0,"i",7),e.qZA(),e.qZA(),e.TgZ(8,"div",8),e.TgZ(9,"form",9),e.TgZ(10,"div",10),e.TgZ(11,"label",11),e.TgZ(12,"span",12),e._uU(13,"concurrency"),e.qZA(),e._UZ(14,"span",13),e.qZA(),e.TgZ(15,"div",14),e._UZ(16,"input",15),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.TgZ(18,"label",11),e.TgZ(19,"span",12),e._uU(20,"bufferLength"),e.qZA(),e._UZ(21,"span",16),e.qZA(),e.TgZ(22,"div",14),e._UZ(23,"input",17),e.qZA(),e.qZA(),e.TgZ(24,"div",10),e.TgZ(25,"label",18),e.TgZ(26,"span",12),e._uU(27,"retryInterval"),e.qZA(),e._UZ(28,"span",19),e.qZA(),e.TgZ(29,"div",14),e._UZ(30,"input",20),e.qZA(),e.qZA(),e.TgZ(31,"div",10),e.TgZ(32,"label",18),e.TgZ(33,"span",12),e._uU(34,"retryCount"),e.qZA(),e._UZ(35,"span",21),e.qZA(),e.TgZ(36,"div",14),e._UZ(37,"input",22),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",18),e.TgZ(40,"span",12),e._uU(41,"cacheLength"),e.qZA(),e._UZ(42,"span",23),e.qZA(),e.TgZ(43,"div",14),e._UZ(44,"input",24),e.qZA(),e.qZA(),e.TgZ(45,"div",10),e.TgZ(46,"label",18),e.TgZ(47,"span",12),e._uU(48,"cacheSaveInterval"),e.qZA(),e._UZ(49,"span",25),e.qZA(),e.TgZ(50,"div",14),e._UZ(51,"input",26),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",18),e.TgZ(54,"span",12),e._uU(55,"runAsync"),e.qZA(),e._UZ(56,"span",27),e.qZA(),e.TgZ(57,"div",14),e.TgZ(58,"select",28),e.TgZ(59,"option",29),e._uU(60,"false"),e.qZA(),e.TgZ(61,"option",29),e._uU(62,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",10),e.TgZ(64,"label",18),e.TgZ(65,"span",12),e._uU(66,"omitIfEmpty"),e.qZA(),e._UZ(67,"span",30),e.qZA(),e.TgZ(68,"div",14),e.TgZ(69,"select",31),e.TgZ(70,"option",29),e._uU(71,"false"),e.qZA(),e.TgZ(72,"option",29),e._uU(73,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(2),e.Q6J("formGroup",_.sinkBasePropertiesForm),e.xp6(50),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(9),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,s._Y,s.JL,s.sg,s.wV,s.Fj,s.JJ,s.u,s.EJ,s.YN,s.Kr],styles:[""]}),o})(),oe=(()=>{class o{constructor(){this.sinkBaseProperties={},this.edgeXSinkChange=new e.vpe,this._edgeXSink={type:"redis",protocol:"redis",host:"edgex-redis",port:6379,contentType:"application/json",messageType:"event",sendSingle:!1}}get edgeXSink(){return this._edgeXSink}set edgeXSink(t){Object.assign(this._edgeXSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.edgeXSink)}ngOnChanges(){this.edgeXSinkChange.emit(this.edgeXSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.edgeXSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edgex-sink"]],inputs:{edgeXSink:"edgeXSink"},outputs:{edgeXSinkChange:"edgeXSinkChange"},features:[e.TTD],decls:117,vars:20,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","the type of EdgeX message bus",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","type",1,"custom-select",3,"ngModel","ngModelChange"],["value","redis"],["value","zero"],["value","mqtt"],["type","text","name","protocol",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","host",1,"form-control",3,"ngModel","ngModelChange"],["type","number","name","port",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The topic to be published. The topic is static across all messages. To use dynamic topic, leave this empty and specify the topicPrefix property. Only one of the topic and topicPrefix properties can be specified. If both are not specified, then use default topic value application.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The prefix of a dynamic topic to be published. The topic will become a concatenation of $topicPrefix/$profileName/$deviceName/$sourceName.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topicPrefix",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","contentType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The EdgeX message model type. To publish the message as an event like EdgeX application service, use event. Otherwise, to publish the message as an event request like EdgeX device service or core data service, use request. If not specified, then use the default value event.",1,"fa","fa-question-circle-o","fa-lg"],["name","messageType",1,"custom-select",3,"ngModel","ngModelChange"],["value","event"],["value","request"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The property is a field name that allows user to specify a field name of SQL select clause, the field name should use meta(*) AS xxx to select all of EdgeX metadata from message.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","metadata",1,"form-control",3,"ngModel","ngModelChange"],[3,"singleSelectionMode","singleProfileSelected","singleProfileSelectedChange"],[3,"singleSelectionMode","singleDeviceSelected","singleDeviceSelectedChange"],["type","text","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","EdgeX Message bus connection optional",1,"fa","fa-question-circle-o","fa-lg"],[3,"optional","optionalChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e.TgZ(9,"span",7),e._uU(10,"Type"),e.qZA(),e._UZ(11,"span",8),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"select",10),e.NdJ("ngModelChange",function(i){return _.edgeXSink.type=i}),e.TgZ(14,"option",11),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",12),e._uU(17,"zero"),e.qZA(),e.TgZ(18,"option",13),e._uU(19,"mqtt"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",5),e.TgZ(21,"label",6),e._uU(22,"Protocol"),e.qZA(),e.TgZ(23,"div",9),e.TgZ(24,"input",14),e.NdJ("ngModelChange",function(i){return _.edgeXSink.protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",5),e.TgZ(26,"label",6),e._uU(27,"Host"),e.qZA(),e.TgZ(28,"div",9),e.TgZ(29,"input",15),e.NdJ("ngModelChange",function(i){return _.edgeXSink.host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",5),e.TgZ(31,"label",6),e._uU(32,"Port"),e.qZA(),e.TgZ(33,"div",9),e.TgZ(34,"input",16),e.NdJ("ngModelChange",function(i){return _.edgeXSink.port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",5),e.TgZ(36,"label",6),e.TgZ(37,"span",7),e._uU(38,"Topic"),e.qZA(),e._UZ(39,"span",17),e.qZA(),e.TgZ(40,"div",9),e.TgZ(41,"input",18),e.NdJ("ngModelChange",function(i){return _.edgeXSink.topic=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",5),e.TgZ(43,"label",6),e.TgZ(44,"span",7),e._uU(45,"TopicPrefix"),e.qZA(),e._UZ(46,"span",19),e.qZA(),e.TgZ(47,"div",9),e.TgZ(48,"input",20),e.NdJ("ngModelChange",function(i){return _.edgeXSink.topicPrefix=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",5),e.TgZ(50,"label",6),e._uU(51,"ContentType"),e.qZA(),e.TgZ(52,"div",9),e.TgZ(53,"input",21),e.NdJ("ngModelChange",function(i){return _.edgeXSink.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",5),e.TgZ(55,"label",6),e.TgZ(56,"span",7),e._uU(57,"MessageType"),e.qZA(),e._UZ(58,"span",22),e.qZA(),e.TgZ(59,"div",9),e.TgZ(60,"select",23),e.NdJ("ngModelChange",function(i){return _.edgeXSink.messageType=i}),e.TgZ(61,"option",24),e._uU(62,"event"),e.qZA(),e.TgZ(63,"option",25),e._uU(64,"request"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(65,"div",5),e.TgZ(66,"label",6),e.TgZ(67,"span",7),e._uU(68,"Metadata"),e.qZA(),e._UZ(69,"span",26),e.qZA(),e.TgZ(70,"div",9),e.TgZ(71,"input",27),e.NdJ("ngModelChange",function(i){return _.edgeXSink.metadata=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",5),e.TgZ(73,"label",6),e._uU(74,"ProfileName"),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"app-device-profile-combo-list",28),e.NdJ("singleProfileSelectedChange",function(i){return _.edgeXSink.profileName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",5),e.TgZ(78,"label",6),e._uU(79,"DeviceName"),e.qZA(),e.TgZ(80,"div",9),e.TgZ(81,"app-device-combo-list",29),e.NdJ("singleDeviceSelectedChange",function(i){return _.edgeXSink.deviceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",5),e.TgZ(83,"label",6),e._uU(84,"SourceName"),e.qZA(),e.TgZ(85,"div",9),e.TgZ(86,"input",30),e.NdJ("ngModelChange",function(i){return _.edgeXSink.sourceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",5),e.TgZ(88,"label",6),e.TgZ(89,"span",7),e._uU(90,"SendSingle"),e.qZA(),e._UZ(91,"span",31),e.qZA(),e.TgZ(92,"div",9),e.TgZ(93,"select",32),e.NdJ("ngModelChange",function(i){return _.edgeXSink.sendSingle=i}),e.TgZ(94,"option",33),e._uU(95,"false"),e.qZA(),e.TgZ(96,"option",33),e._uU(97,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(98,"div",5),e.TgZ(99,"label",6),e.TgZ(100,"span",7),e._uU(101,"DataTemplate"),e.qZA(),e._UZ(102,"span",34),e.qZA(),e.TgZ(103,"div",9),e.TgZ(104,"input",35),e.NdJ("ngModelChange",function(i){return _.edgeXSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(105,"div",5),e.TgZ(106,"label",6),e.TgZ(107,"span",7),e._uU(108,"EdgeX Sink Options"),e.qZA(),e._UZ(109,"span",36),e.qZA(),e.TgZ(110,"div",9),e.TgZ(111,"app-edgex-sink-optional",37),e.NdJ("optionalChange",function(i){return _.edgeXSink.optional=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",5),e.TgZ(113,"label",6),e._uU(114,"Advanced Options"),e.qZA(),e.TgZ(115,"div",9),e.TgZ(116,"app-sink-base-properties",38),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(13),e.Q6J("ngModel",_.edgeXSink.type),e.xp6(11),e.Q6J("ngModel",_.edgeXSink.protocol),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.host),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.port),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.topic),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.topicPrefix),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.contentType),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.messageType),e.xp6(11),e.Q6J("ngModel",_.edgeXSink.metadata),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleProfileSelected",_.edgeXSink.profileName),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleDeviceSelected",_.edgeXSink.deviceName),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.sourceName),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.edgeXSink.dataTemplate),e.xp6(7),e.Q6J("optional",_.edgeXSink.optional),e.xp6(5),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,s.wV,w.o,B.h,W,C],styles:[""]}),o})(),ie=(()=>{class o{constructor(){this.sinkBaseProperties={},this.mqttSinkChange=new e.vpe,this._mqttSink={server:"tcp://127.0.0.1:1883",protocolVersion:"3.1",qos:0,insecureSkipVerify:!0,retained:!1,sendSingle:!1}}get mqttSink(){return this._mqttSink}set mqttSink(t){Object.assign(this._mqttSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.mqttSink)}ngOnChanges(){this.mqttSinkChange.emit(this.mqttSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.mqttSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-mqtt-sink"]],inputs:{mqttSink:"mqttSink"},outputs:{mqttSinkChange:"mqttSinkChange"},features:[e.TTD],decls:114,vars:32,consts:function(){let a,t,_,n;return a="the mqtt server address can't be empty!",t="the topic can't be empty!",_="Username",n="Password",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row","has-validation"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","server",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],a,["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],t,[1,"form-group","row"],["type","text","name","clientId",1,"form-control",3,"ngModel","ngModelChange"],["name","protocolVersion",1,"custom-select",3,"ngModel","ngModelChange"],["value","3.1"],["value","3.1.1"],["name","qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],_,["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],n,["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["name","retained",1,"custom-select",3,"ngModel","ngModelChange"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"MQTT Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e._uU(9,"Server"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",8),e.NdJ("ngModelChange",function(i){return _.mqttSink.server=i}),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"small"),e.SDv(14,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",5),e.TgZ(16,"label",6),e._uU(17,"Topic"),e.qZA(),e.TgZ(18,"div",7),e.TgZ(19,"input",11),e.NdJ("ngModelChange",function(i){return _.mqttSink.topic=i}),e.qZA(),e.TgZ(20,"div",9),e.TgZ(21,"small"),e.SDv(22,12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",13),e.TgZ(24,"label",6),e._uU(25,"ClientId"),e.qZA(),e.TgZ(26,"div",7),e.TgZ(27,"input",14),e.NdJ("ngModelChange",function(i){return _.mqttSink.clientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",13),e.TgZ(29,"label",6),e._uU(30,"ProtocolVersion"),e.qZA(),e.TgZ(31,"div",7),e.TgZ(32,"select",15),e.NdJ("ngModelChange",function(i){return _.mqttSink.protocolVersion=i}),e.TgZ(33,"option",16),e._uU(34,"3.1"),e.qZA(),e.TgZ(35,"option",17),e._uU(36,"3.1.1"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"div",13),e.TgZ(38,"label",6),e._uU(39,"Qos"),e.qZA(),e.TgZ(40,"div",7),e.TgZ(41,"select",18),e.NdJ("ngModelChange",function(i){return _.mqttSink.qos=i}),e.TgZ(42,"option",19),e._uU(43,"0"),e.qZA(),e.TgZ(44,"option",19),e._uU(45,"1"),e.qZA(),e.TgZ(46,"option",19),e._uU(47,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",13),e.TgZ(49,"label",6),e.SDv(50,20),e.qZA(),e.TgZ(51,"div",7),e.TgZ(52,"input",21),e.NdJ("ngModelChange",function(i){return _.mqttSink.username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",13),e.TgZ(54,"label",6),e.SDv(55,22),e.qZA(),e.TgZ(56,"div",7),e.TgZ(57,"input",23),e.NdJ("ngModelChange",function(i){return _.mqttSink.password=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",13),e.TgZ(59,"label",6),e._uU(60,"Retained"),e.qZA(),e.TgZ(61,"div",7),e.TgZ(62,"select",24),e.NdJ("ngModelChange",function(i){return _.mqttSink.retained=i}),e.TgZ(63,"option",19),e._uU(64,"false"),e.qZA(),e.TgZ(65,"option",19),e._uU(66,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",13),e.TgZ(68,"label",6),e.TgZ(69,"span",25),e._uU(70,"sendSingle"),e.qZA(),e._UZ(71,"span",26),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"select",27),e.NdJ("ngModelChange",function(i){return _.mqttSink.sendSingle=i}),e.TgZ(74,"option",19),e._uU(75,"false"),e.qZA(),e.TgZ(76,"option",19),e._uU(77,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(78,"div",13),e.TgZ(79,"label",6),e.TgZ(80,"span",25),e._uU(81,"dataTemplate"),e.qZA(),e._UZ(82,"span",28),e.qZA(),e.TgZ(83,"div",7),e.TgZ(84,"input",29),e.NdJ("ngModelChange",function(i){return _.mqttSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",13),e.TgZ(86,"label",6),e._uU(87,"InsecureSkipVerify"),e.qZA(),e.TgZ(88,"div",7),e.TgZ(89,"select",30),e.NdJ("ngModelChange",function(i){return _.mqttSink.insecureSkipVerify=i}),e.TgZ(90,"option",19),e._uU(91,"true"),e.qZA(),e.TgZ(92,"option",19),e._uU(93,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(94,"div",13),e.TgZ(95,"label",6),e._uU(96,"CertificationPath"),e.qZA(),e.TgZ(97,"div",7),e.TgZ(98,"input",31),e.NdJ("ngModelChange",function(i){return _.mqttSink.certificationPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(99,"div",13),e.TgZ(100,"label",6),e._uU(101,"PrivateKeyPath"),e.qZA(),e.TgZ(102,"div",7),e.TgZ(103,"input",32),e.NdJ("ngModelChange",function(i){return _.mqttSink.privateKeyPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(104,"div",13),e.TgZ(105,"label",6),e._uU(106,"RootCaPath"),e.qZA(),e.TgZ(107,"div",7),e.TgZ(108,"input",33),e.NdJ("ngModelChange",function(i){return _.mqttSink.rootCaPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(109,"div",13),e.TgZ(110,"label",6),e._uU(111,"Advanced Options"),e.qZA(),e.TgZ(112,"div",7),e.TgZ(113,"app-sink-base-properties",34),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(11),e.ekj("is-invalid",!_.mqttSink.server)("is-valid",_.mqttSink.server),e.Q6J("ngModel",_.mqttSink.server),e.xp6(8),e.ekj("is-invalid",!_.mqttSink.topic)("is-valid",_.mqttSink.topic),e.Q6J("ngModel",_.mqttSink.topic),e.xp6(8),e.Q6J("ngModel",_.mqttSink.clientId),e.xp6(5),e.Q6J("ngModel",_.mqttSink.protocolVersion),e.xp6(9),e.Q6J("ngModel",_.mqttSink.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(6),e.Q6J("ngModel",_.mqttSink.username),e.xp6(5),e.Q6J("ngModel",_.mqttSink.password),e.xp6(5),e.Q6J("ngModel",_.mqttSink.retained),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.mqttSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.mqttSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",_.mqttSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",_.mqttSink.certificationPath),e.xp6(5),e.Q6J("ngModel",_.mqttSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",_.mqttSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,s.EJ,s.YN,s.Kr,C],styles:[""]}),o})();var ae=d(2437),se=d(7982),re=d(9549);function le(o,a){1&o&&(e.TgZ(0,"div",21),e._UZ(1,"i",22),e.TgZ(2,"span"),e.SDv(3,23),e.qZA(),e.qZA())}function de(o,a){1&o&&(e.TgZ(0,"div"),e.TgZ(1,"span"),e.SDv(2,32),e.qZA(),e.qZA())}function ge(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"select",37),e.NdJ("change",function(n){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(n)}),e.TgZ(1,"option",38),e._uU(2,"false"),e.qZA(),e.TgZ(3,"option",38),e._uU(4,"true"),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function ce(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"input",39),e.NdJ("change",function(n){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(n)}),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.MGl("placeholder","valueType: ",t.valueType,"")}}function ue(o,a){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.cmdParametersValueRender()," ")}}function pe(o,a){if(1&o&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",2),e.TgZ(3,"label",33),e.SDv(4,34),e.qZA(),e.TgZ(5,"div",6),e.YNc(6,ge,5,4,"select",35),e.YNc(7,ce,1,3,"ng-template",null,36,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.YNc(9,ue,2,1,"ng-container",30),e.qZA()),2&o){const t=a.$implicit,_=a.last,n=e.MAs(8);e.xp6(3),e.s9C("for",t.resourceName),e.xp6(1),e.pQV(t.resourceName),e.QtT(4),e.xp6(2),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",_)}}function Se(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,de,3,0,"div",30),e.YNc(2,pe,10,5,"div",31),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",0==t.cmdSvcInfo.parametersOfPutCommand.length),e.xp6(1),e.Q6J("ngForOf",t.cmdSvcInfo.parametersOfPutCommand)}}function Ee(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",2),e.TgZ(1,"label",40),e.TgZ(2,"span",4),e.SDv(3,41),e.qZA(),e._UZ(4,"span",42),e.qZA(),e.TgZ(5,"div",6),e.TgZ(6,"select",43),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(2).cmdSvcInfo.pushEventOfGetCmdParamter=n}),e.TgZ(7,"option",44),e._uU(8,"yes"),e.qZA(),e.TgZ(9,"option",45),e._uU(10,"no"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"label",46),e.TgZ(13,"span",4),e.SDv(14,47),e.qZA(),e._UZ(15,"span",48),e.qZA(),e.TgZ(16,"div",6),e.TgZ(17,"select",49),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(2).cmdSvcInfo.returnEventOfGetCmdParamter=n}),e.TgZ(18,"option",44),e._uU(19,"yes"),e.qZA(),e.TgZ(20,"option",45),e._uU(21,"no"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(6),e.Q6J("ngModel",t.cmdSvcInfo.pushEventOfGetCmdParamter),e.xp6(11),e.Q6J("ngModel",t.cmdSvcInfo.returnEventOfGetCmdParamter)}}function me(o,a){if(1&o&&(e.TgZ(0,"div",2),e.TgZ(1,"label",18),e._uU(2,"Parameters"),e.qZA(),e.TgZ(3,"div",6),e.TgZ(4,"div",24),e.TgZ(5,"div",25),e.TgZ(6,"span"),e.SDv(7,26),e.qZA(),e.qZA(),e.TgZ(8,"div",27),e.YNc(9,Se,3,2,"div",28),e.YNc(10,Ee,22,2,"ng-template",null,29,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&o){const t=e.MAs(11),_=e.oxw();e.xp6(9),e.Q6J("ngIf","PUT"==_.cmdSvcInfo.httpMethod)("ngIfElse",t)}}let b=(()=>{class o{constructor(t,_){this.metedataSvc=t,this.cmdSvc=_,this.cmdURLFixedPrefix="/api/v3/device/name/",this.notCommandPathMsgShow=!1,this.deviceName="",this.commandName="",this.parameter={},this._url="",this._httpMethod="",this._requestBodyJSONStr="",this.cmdSvcInfoChange=new e.vpe,this.profileForm=new s.cw({host:new s.NI(""),port:new s.NI(""),path:new s.NI(""),httpMethod:new s.NI(""),pushEventOfGetCmdParamter:new s.NI(""),returnEventOfGetCmdParamter:new s.NI("")}),this.cmdSvcInfo={host:"edgex-core-command",port:59882,path:"",pushEventOfGetCmdParamter:"true",returnEventOfGetCmdParamter:"true",parametersOfPutCommand:[]}}get url(){return this._url}set url(t){this._url=t,this._url&&this.urlParser(t)}get httpMethod(){return this._httpMethod}set httpMethod(t){this._httpMethod=t,this.cmdSvcInfo.httpMethod=this._httpMethod}get requestBodyJSONStr(){return this._requestBodyJSONStr}set requestBodyJSONStr(t){this._requestBodyJSONStr=t}ngOnInit(){}ngAfterViewInit(){this.profileForm.valueChanges.pipe(I(400),q()).subscribe(()=>{this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}),this.renderPopoverComponent()}urlParser(t){let _={};try{_=new URL(t)}catch(n){return void(this.notCommandPathMsgShow=!0)}if(_.pathname.startsWith(this.cmdURLFixedPrefix)){let n=_.pathname.substring(this.cmdURLFixedPrefix.length).split("/");if(2===n.length)return this.deviceName=n[0],this.commandName=n[1],this.getCommandParameterByDeviceAndCommandName(this.deviceName,this.commandName),this.cmdSvcInfo.path=_.pathname,this.cmdSvcInfo.host=_.hostname,this.cmdSvcInfo.port=Number(_.port),this.cmdSvcInfo.pushEventOfGetCmdParamter=_.searchParams.get("ds-pushevent")||"true",void(this.cmdSvcInfo.returnEventOfGetCmdParamter=_.searchParams.get("ds-returnevent")||"true")}this.notCommandPathMsgShow=!0}getCommandParameterByDeviceAndCommandName(t,_){this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(t).subscribe(n=>{n.deviceCoreCommand.coreCommands.forEach(i=>{i.name===_&&(this.cmdSvcInfo.parametersOfPutCommand=i.parameters)})})}cmdParametersValueRender(){let t={};try{t=JSON.parse(this.requestBodyJSONStr)}catch(_){return}for(const[_,n]of Object.entries(t))this.cmdSvcInfo.parametersOfPutCommand.forEach(i=>{i.resourceName===_&&$(`#cmd-param-${_}`).val(n)})}onValueOfPutParamsChange(t){this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onCmdMethodSelected(t){this.cmdSvcInfo.httpMethod=t,this.cmdSvcInfoChange.emit(this.cmdSvcInfo),setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(t){this.cmdSvcInfo.path=t.path,this.cmdSvcInfo.parametersOfPutCommand=t.parameters}requestBodyAssemble(){let t={};return this.cmdSvcInfo.parametersOfPutCommand.forEach(_=>{!_||!$(`#cmd-param-${_.resourceName}`).val()||""!==$(`#cmd-param-${_.resourceName}`).val().trim()&&(t[_.resourceName]=$(`#cmd-param-${_.resourceName}`).val().trim())}),JSON.stringify(t)}resetPathParameterSuffix(){(-1!==this.cmdSvcInfo.path.indexOf("ds-pushevent")||-1!==this.cmdSvcInfo.path.indexOf("ds-returnevent"))&&(this.cmdSvcInfo.path=this.cmdSvcInfo.path.split("?")[0]),this.cmdSvcInfo.path=`${this.cmdSvcInfo.path}?ds-pushevent=${this.cmdSvcInfo.pushEventOfGetCmdParamter}&ds-returnevent=${this.cmdSvcInfo.returnEventOfGetCmdParamter}`}getHttpMethod(){return this.cmdSvcInfo.httpMethod}getRequestBodyJSONStr(){return this.requestBodyAssemble()}getUrl(){return"GET"===this.cmdSvcInfo.httpMethod&&this.resetPathParameterSuffix(),`http://${this.cmdSvcInfo.host}:${this.cmdSvcInfo.port}${this.cmdSvcInfo.path}`}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(ae.D),e.Y36(se.V))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-command-service-template"]],inputs:{url:"url",httpMethod:"httpMethod",requestBodyJSONStr:"requestBodyJSONStr",cmdSvcInfo:"cmdSvcInfo"},outputs:{cmdSvcInfoChange:"cmdSvcInfoChange"},decls:33,vars:19,consts:function(){let a,t,_,n,i,r,l,S;return a="the REST address host can't be empty!",t="the REST address port can't be empty and only pure integer is supported!",_=" Invalid command service url, please don't use this template for custom http request, or select one new valid command path if you insist on using the template! ",n="Command Parameters Setting",i="no paramters.",r="" + "\ufffd0\ufffd" + "",l="pushevent",S="returnevent",[["class","alert alert-danger","role","alert",4,"ngIf"],[3,"formGroup"],[1,"form-group","row"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","name","httpMethod","formControlName","httpMethod","readonly","true","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"form-group","row","has-validation"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressHostREST","name","addressHost","formControlName","host","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],a,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","number","id","addressPortREST","name","addressPort","formControlName","port","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],t,["for","addressPath","required","",1,"col-md-2","col-form-label"],[3,"validate","deviceName","commandName","httpMethod","commandPath","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"],_,[1,"card"],[1,"card-header"],n,[1,"card-body"],[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngIf"],[4,"ngFor","ngForOf"],i,[1,"col-md-2","col-form-label",3,"for"],r,["class","custom-select",3,"id","name","change",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name","change"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder","change"],["for","ds-pushevent",1,"col-md-2","col-form-label"],l,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent","formControlName","pushEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],S,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent","formControlName","returnEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(t,_){1&t&&(e.YNc(0,le,4,0,"div",0),e.TgZ(1,"form",1),e.TgZ(2,"div",2),e.TgZ(3,"label",3),e.TgZ(4,"span",4),e._uU(5,"HttpMethod"),e.qZA(),e._UZ(6,"span",5),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.httpMethod=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"label",9),e.TgZ(11,"span",4),e._uU(12,"Host"),e.qZA(),e._UZ(13,"span",10),e.qZA(),e.TgZ(14,"div",6),e.TgZ(15,"input",11),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.host=i}),e.qZA(),e.TgZ(16,"div",12),e.TgZ(17,"small"),e.SDv(18,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",8),e.TgZ(20,"label",14),e._uU(21,"Port"),e.qZA(),e.TgZ(22,"div",6),e.TgZ(23,"input",15),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.port=i}),e.qZA(),e.TgZ(24,"div",16),e.TgZ(25,"small"),e.SDv(26,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"label",18),e._uU(29,"Path"),e.qZA(),e.TgZ(30,"div",6),e.TgZ(31,"app-device-core-command-combo-list",19),e.NdJ("cmdMethodEvent",function(i){return _.onCmdMethodSelected(i)})("commandSelectedEvent",function(i){return _.onCommandSelected(i)}),e.qZA(),e.qZA(),e.qZA(),e.YNc(32,me,12,2,"div",20),e.qZA()),2&t&&(e.Q6J("ngIf",_.notCommandPathMsgShow),e.xp6(1),e.Q6J("formGroup",_.profileForm),e.xp6(7),e.Q6J("ngModel",_.cmdSvcInfo.httpMethod),e.xp6(7),e.ekj("is-invalid",!_.cmdSvcInfo.host)("is-valid",_.cmdSvcInfo.host),e.Q6J("ngModel",_.cmdSvcInfo.host),e.xp6(8),e.ekj("is-invalid",!_.cmdSvcInfo.port)("is-valid",_.cmdSvcInfo.port),e.Q6J("ngModel",_.cmdSvcInfo.port),e.xp6(8),e.Q6J("validate",!0)("deviceName",_.deviceName)("commandName",_.commandName)("httpMethod",_.cmdSvcInfo.httpMethod)("commandPath",_.cmdSvcInfo.path),e.xp6(1),e.Q6J("ngIf",_.cmdSvcInfo.path&&_.cmdSvcInfo.httpMethod&&0!==_.cmdSvcInfo.parametersOfPutCommand.length))},directives:[p.O5,s._Y,s.JL,s.sg,s.Fj,s.JJ,s.u,s.Q7,s.wV,re.P,p.sg,s.F,s.YN,s.Kr,s.EJ],styles:[""]}),o})();function Te(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-command-service-template",8),e.NdJ("cmdSvcInfoChange",function(n){return e.CHM(t),e.oxw().onCmdSvcTemplateInfoChange(n)}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(1),e.Q6J("url",t.restSink.url)("httpMethod",t.restSink.method)("requestBodyJSONStr",t.restSink.dataTemplate?t.restSink.dataTemplate:"")}}function Ae(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",51),e.TgZ(2,"div",52),e.TgZ(3,"div",53),e.TgZ(4,"span",54),e._uU(5,"Key"),e.qZA(),e.qZA(),e.TgZ(6,"input",55),e.NdJ("ngModelChange",function(n){return e.CHM(t).$implicit.key=n})("ngModelChange",function(n){return e.CHM(t),e.oxw(2).requestHeaderChange(n)}),e.qZA(),e.qZA(),e.TgZ(7,"div",56),e._UZ(8,"i",57),e.qZA(),e.TgZ(9,"div",58),e.TgZ(10,"div",53),e.TgZ(11,"span",54),e._uU(12,"Value"),e.qZA(),e.qZA(),e.TgZ(13,"input",59),e.NdJ("ngModelChange",function(n){return e.CHM(t).$implicit.value=n})("ngModelChange",function(n){return e.CHM(t),e.oxw(2).requestHeaderChange(n)}),e.qZA(),e.qZA(),e.TgZ(14,"div",60),e.TgZ(15,"button",61),e.NdJ("click",function(){const i=e.CHM(t).index;return e.oxw(2).removeRequestHeader(i)}),e._UZ(16,"i",62),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit;e.xp6(6),e.Q6J("ngModel",t.key),e.xp6(7),e.Q6J("ngModel",t.value)}}function fe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",9),e.TgZ(3,"label",10),e._uU(4,"Method"),e.qZA(),e.TgZ(5,"div",11),e.TgZ(6,"select",12),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.method=n}),e.TgZ(7,"option",13),e._uU(8,"GET"),e.qZA(),e.TgZ(9,"option",14),e._uU(10,"POST"),e.qZA(),e.TgZ(11,"option",15),e._uU(12,"PUT"),e.qZA(),e.TgZ(13,"option",16),e._uU(14,"DELETE"),e.qZA(),e.TgZ(15,"option",17),e._uU(16,"PATCH"),e.qZA(),e.TgZ(17,"option",18),e._uU(18,"HEAD"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",19),e.TgZ(20,"label",10),e._uU(21,"URL"),e.qZA(),e.TgZ(22,"div",11),e.TgZ(23,"input",20),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.url=n}),e.qZA(),e.TgZ(24,"div",21),e.TgZ(25,"small"),e.SDv(26,22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",9),e.TgZ(28,"label",10),e._uU(29,"BodyType"),e.qZA(),e.TgZ(30,"div",11),e.TgZ(31,"select",23),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.bodyType=n}),e.TgZ(32,"option",24),e._uU(33,"none"),e.qZA(),e.TgZ(34,"option",25),e._uU(35,"json"),e.qZA(),e.TgZ(36,"option",26),e._uU(37,"text"),e.qZA(),e.TgZ(38,"option",27),e._uU(39,"html"),e.qZA(),e.TgZ(40,"option",28),e._uU(41,"xml"),e.qZA(),e.TgZ(42,"option",29),e._uU(43,"javascript"),e.qZA(),e.TgZ(44,"option",30),e._uU(45,"form"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",9),e.TgZ(47,"label",10),e._uU(48,"Headers"),e.qZA(),e.TgZ(49,"div",11),e.TgZ(50,"div",0),e.TgZ(51,"div",6),e.TgZ(52,"p",31),e._UZ(53,"span",32),e.TgZ(54,"span",33),e.NdJ("click",function(){return e.CHM(t),e.oxw().addRequestHeader()}),e.SDv(55,34),e.qZA(),e.qZA(),e.YNc(56,Ae,17,2,"div",35),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(57,"div",9),e.TgZ(58,"label",10),e.TgZ(59,"span",36),e._uU(60,"timeout"),e.qZA(),e._UZ(61,"span",37),e.qZA(),e.TgZ(62,"div",11),e.TgZ(63,"input",38),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.timeout=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",9),e.TgZ(65,"label",10),e.TgZ(66,"span",36),e._uU(67,"DebugResp"),e.qZA(),e._UZ(68,"span",39),e.qZA(),e.TgZ(69,"div",11),e.TgZ(70,"select",40),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.debugResp=n}),e.TgZ(71,"option",41),e._uU(72,"false"),e.qZA(),e.TgZ(73,"option",41),e._uU(74,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"label",10),e.TgZ(77,"span",36),e._uU(78,"sendSingle"),e.qZA(),e._UZ(79,"span",42),e.qZA(),e.TgZ(80,"div",11),e.TgZ(81,"select",43),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.sendSingle=n}),e.TgZ(82,"option",41),e._uU(83,"false"),e.qZA(),e.TgZ(84,"option",41),e._uU(85,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(86,"div",9),e.TgZ(87,"label",10),e.TgZ(88,"span",36),e._uU(89,"dataTemplate"),e.qZA(),e._UZ(90,"span",44),e.qZA(),e.TgZ(91,"div",11),e.TgZ(92,"input",45),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.dataTemplate=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(93,"div",9),e.TgZ(94,"label",10),e._uU(95,"InsecureSkipVerify"),e.qZA(),e.TgZ(96,"div",11),e.TgZ(97,"select",46),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.insecureSkipVerify=n}),e.TgZ(98,"option",41),e._uU(99,"true"),e.qZA(),e.TgZ(100,"option",41),e._uU(101,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",9),e.TgZ(103,"label",10),e._uU(104,"CertificationPath"),e.qZA(),e.TgZ(105,"div",11),e.TgZ(106,"input",47),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.certificationPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(107,"div",9),e.TgZ(108,"label",10),e._uU(109,"PrivateKeyPath"),e.qZA(),e.TgZ(110,"div",11),e.TgZ(111,"input",48),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.privateKeyPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",9),e.TgZ(113,"label",10),e._uU(114,"RootCaPath"),e.qZA(),e.TgZ(115,"div",11),e.TgZ(116,"input",49),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.rootCaPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(117,"div",9),e.TgZ(118,"label",10),e._uU(119,"Advanced Options"),e.qZA(),e.TgZ(120,"div",11),e.TgZ(121,"app-sink-base-properties",50),e.NdJ("sinkBasePropertiesChange",function(n){return e.CHM(t),e.oxw().onSinkBasePropertiesChange(n)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.restSink.method),e.xp6(17),e.ekj("is-invalid",!t.restSink.url)("is-valid",t.restSink.url),e.Q6J("ngModel",t.restSink.url),e.xp6(8),e.Q6J("ngModel",t.restSink.bodyType),e.xp6(25),e.Q6J("ngForOf",t.requestHeaderList),e.xp6(7),e.Q6J("ngModel",t.restSink.timeout),e.xp6(7),e.Q6J("ngModel",t.restSink.debugResp),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",t.restSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",t.restSink.certificationPath),e.xp6(5),e.Q6J("ngModel",t.restSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",t.restSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",t.sinkBaseProperties)}}let he=(()=>{class o{constructor(){this.SVC_TYPE_COMMAND="command",this.SVC_TYPE_CUSTOM="custom",this.templateTypeSelected=this.SVC_TYPE_COMMAND,this.sinkBaseProperties={},this.restSinkChange=new e.vpe,this.requestHeaderList=[],this._restSink={method:"GET",bodyType:"json",debugResp:!1,insecureSkipVerify:!0,timeout:5e3,sendSingle:!1,dataTemplate:""}}get restSink(){return this._restSink}set restSink(t){Object.assign(this._restSink,t)}ngOnInit(){if(Object.assign(this.sinkBaseProperties,this.restSink),this.restSink.headers)for(const[t,_]of Object.entries(this.restSink.headers))this.requestHeaderList.push({key:t,value:_});this.renderPopoverComponent()}ngOnChanges(){this.restSinkChange.emit(this.restSink)}ngAfterViewInit(){}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}templateTypeToggle(t){this.templateTypeSelected=t,window.setTimeout(()=>{this.renderPopoverComponent()},1e3)}requestHeaderChange(t){this.headersResovler()}headersResovler(){let t={};this.requestHeaderList.forEach(_=>{t[`${_.key}`]=`${_.value}`}),this.restSink.headers=t,this.restSinkChange.emit(this.restSink)}addRequestHeader(){this.requestHeaderList.push({key:"",value:""})}removeRequestHeader(t,_){this.requestHeaderList.splice(t,1),this.headersResovler()}onSinkBasePropertiesChange(t){Object.assign(this.restSink,t)}onCmdSvcTemplateInfoChange(t){this.getValuesSettingAllOfCommandTemplate()}getValuesSettingAllOfCommandTemplate(){this.restSink.method=this.cmdSvcTemplate.getHttpMethod(),this.restSink.url=this.cmdSvcTemplate.getUrl(),this.restSink.dataTemplate=this.cmdSvcTemplate.getRequestBodyJSONStr()}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rest-sink"]],viewQuery:function(t,_){if(1&t&&e.Gf(b,5),2&t){let n;e.iGM(n=e.CRH())&&(_.cmdSvcTemplate=n.first)}},inputs:{restSink:"restSink"},outputs:{restSinkChange:"restSinkChange"},features:[e.TTD],decls:17,vars:10,consts:function(){let a,t;return a="the url can't be empty!",t="Add Headers KV",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body"],[4,"ngIf"],[3,"url","httpMethod","requestBodyJSONStr","cmdSvcInfoChange"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["name","method",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],[1,"form-group","row","has-validation"],["type","text","name","url",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],a,["name","bodyType",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","json"],["value","text"],["value","html"],["value","xml"],["value","javascript"],["value","form"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],t,[4,"ngFor","ngForOf"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The timeout (milliseconds) for a HTTP request, defaults to 5000 ms",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","timeout",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Control if print the response information into the console. If set it to true, then print response; If set to false, then skip print log. The default is false.",1,"fa","fa-question-circle-o","fa-lg"],["name","debugResp",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here be treated as http post or put RequestBody,The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"],[1,"form-inline","mb-1"],[1,"input-group","mb-1"],[1,"input-group-prepend"],[1,"input-group-text"],["type","text","name","headerKey",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","mx-2"],[1,"fa","fa-long-arrow-right"],[1,"input-group"],["type","text","name","headerValue",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"REST Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",1),e.TgZ(6,"span",4),e.NdJ("click",function(){return _.templateTypeToggle(_.SVC_TYPE_COMMAND)}),e._UZ(7,"i",5),e.TgZ(8,"span"),e._uU(9,"EdgeXCommandServiceTemplate"),e.qZA(),e.qZA(),e.TgZ(10,"span",4),e.NdJ("click",function(){return _.templateTypeToggle(_.SVC_TYPE_CUSTOM)}),e._UZ(11,"i",5),e.TgZ(12,"span"),e._uU(13,"CustomHttpServiceTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",6),e.YNc(15,Te,2,3,"div",7),e.YNc(16,fe,122,23,"div",7),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.ekj("badge-info",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(3),e.ekj("badge-info",_.templateTypeSelected===_.SVC_TYPE_CUSTOM),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.SVC_TYPE_CUSTOM),e.xp6(4),e.Q6J("ngIf",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(1),e.Q6J("ngIf",_.templateTypeSelected===_.SVC_TYPE_CUSTOM))},directives:[p.O5,b,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,p.sg,s.wV,C],styles:[""]}),o})(),Ze=(()=>{class o{constructor(){this.sinkBaseProperties={},this.logSinkChange=new e.vpe,this._logSink={sendSingle:!1}}get logSink(){return this._logSink}set logSink(t){Object.assign(this._logSink,t)}ngOnInit(){Object.assign(this.sinkBaseProperties,this.logSink),this.renderPopoverComponent()}ngOnChanges(){this.logSinkChange.emit(this.logSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.logSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-log-sink"]],inputs:{logSink:"logSink"},outputs:{logSinkChange:"logSinkChange"},features:[e.TTD],decls:35,vars:5,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"text-info","mb-2"],[1,"fa","fa-info-circle","mr-1"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Log Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"p",5),e._UZ(7,"i",6),e._uU(8," The action is used for print output message into log file, the log file is at $eKuiper_install/log/stream.log by default."),e._UZ(9,"br"),e._uU(10," No properties can be specified for the action. "),e.qZA(),e.TgZ(11,"div",7),e.TgZ(12,"label",8),e.TgZ(13,"span",9),e._uU(14,"sendSingle"),e.qZA(),e._UZ(15,"span",10),e.qZA(),e.TgZ(16,"div",11),e.TgZ(17,"select",12),e.NdJ("ngModelChange",function(i){return _.logSink.sendSingle=i}),e.TgZ(18,"option",13),e._uU(19,"false"),e.qZA(),e.TgZ(20,"option",13),e._uU(21,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",7),e.TgZ(23,"label",8),e.TgZ(24,"span",9),e._uU(25,"dataTemplate"),e.qZA(),e._UZ(26,"span",14),e.qZA(),e.TgZ(27,"div",11),e.TgZ(28,"input",15),e.NdJ("ngModelChange",function(i){return _.logSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"form"),e.TgZ(30,"div",7),e.TgZ(31,"label",8),e._uU(32,"Advanced Options"),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"app-sink-base-properties",16),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngModel",_.logSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.logSink.dataTemplate),e.xp6(6),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,s._Y,s.JL,s.F,C],styles:[""]}),o})();function Ce(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"li",9),e.TgZ(1,"span",10),e._uU(2),e.qZA(),e.TgZ(3,"span",11),e.TgZ(4,"span",12),e.NdJ("click",function(){const n=e.CHM(t),i=n.$implicit,r=n.index;return e.oxw(2).editSinkTransfer(i,r)}),e._UZ(5,"i",13),e.qZA(),e.TgZ(6,"span",14),e.NdJ("click",function(){const n=e.CHM(t),i=n.$implicit,r=n.index;return e.oxw(2).deleteSink(i,r)}),e._UZ(7,"i",15),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit,_=a.index,n=e.oxw(2);e.ekj("list-group-item-light",_!==n.selectedSinkIndex)("list-group-item-secondary",_===n.selectedSinkIndex),e.xp6(2),e.Oqu(n.getSinkTypeOfAction(t))}}function Ne(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"p",2),e.TgZ(2,"span",3),e.NdJ("click",function(){return e.CHM(t),e.oxw().addSinkTransfer()}),e._UZ(3,"span",4),e.TgZ(4,"span",5),e.SDv(5,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"ul",7),e.YNc(7,Ce,8,5,"li",8),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(7),e.Q6J("ngForOf",t.ruleActions)}}function Me(o,a){1&o&&(e.TgZ(0,"span",33),e._uU(1,"Edit Sink"),e.qZA())}function ve(o,a){if(1&o&&(e.TgZ(0,"span"),e._UZ(1,"i",32),e.TgZ(2,"span",33),e._uU(3,"Add Sink"),e.qZA(),e.YNc(4,Me,2,0,"span",34),e.qZA()),2&o){const t=e.oxw(2);e.xp6(4),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT)}}function Re(o,a){1&o&&(e.TgZ(0,"span"),e._UZ(1,"i",35),e.TgZ(2,"span",33),e._uU(3,"Edit Sink"),e.qZA(),e.qZA())}function Ue(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).addOneNewSink()}),e._uU(1,"Add"),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function Ie(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).updateSink()}),e._uU(1,"Update"),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function qe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-edgex-sink",37),e.NdJ("edgeXSinkChange",function(n){return e.CHM(t),e.oxw(2).edgeXSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("edgeXSink",t.edgeXSink)}}function be(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-mqtt-sink",38),e.NdJ("mqttSinkChange",function(n){return e.CHM(t),e.oxw(2).mqttSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("mqttSink",t.mqttSink)}}function Ge(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-rest-sink",39),e.NdJ("restSinkChange",function(n){return e.CHM(t),e.oxw(2).restSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("restSink",t.restSink)}}function Le(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-log-sink",40),e.NdJ("logSinkChange",function(n){return e.CHM(t),e.oxw(2).logSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("logSink",t.logSink)}}function Oe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.YNc(2,ve,5,1,"span",0),e.YNc(3,Re,4,0,"span",0),e.TgZ(4,"span",11),e.YNc(5,Ue,2,1,"button",18),e.YNc(6,Ie,2,1,"button",18),e.TgZ(7,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e._uU(8,"Cancel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",20),e.TgZ(10,"form",21),e.TgZ(11,"div",22),e.TgZ(12,"label",23),e.SDv(13,24),e.qZA(),e.TgZ(14,"div",25),e.TgZ(15,"select",26),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().selectedSinkType=n}),e.TgZ(16,"option",27),e._uU(17),e.qZA(),e.TgZ(18,"option",27),e._uU(19),e.qZA(),e.TgZ(20,"option",27),e._uU(21),e.qZA(),e.TgZ(22,"option",27),e._uU(23),e.qZA(),e.qZA(),e.TgZ(24,"div",28),e.TgZ(25,"small"),e.SDv(26,29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",30),e.YNc(28,qe,2,1,"div",31),e.YNc(29,be,2,1,"div",31),e.YNc(30,Ge,2,1,"div",31),e.YNc(31,Le,2,1,"div",31),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(9),e.ekj("is-invalid",!t.selectedSinkType),e.Q6J("ngModel",t.selectedSinkType),e.xp6(1),e.s9C("value",t.EdgeX_SINK),e.xp6(1),e.Oqu(t.EdgeX_SINK),e.xp6(1),e.s9C("value",t.MQTT_SINK),e.xp6(1),e.Oqu(t.MQTT_SINK),e.xp6(1),e.s9C("value",t.REST_SINK),e.xp6(1),e.Oqu(t.REST_SINK),e.xp6(1),e.s9C("value",t.LOG_SINK),e.xp6(1),e.Oqu(t.LOG_SINK),e.xp6(4),e.Q6J("ngSwitch",t.selectedSinkType),e.xp6(1),e.Q6J("ngSwitchCase",t.EdgeX_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.MQTT_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.REST_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.LOG_SINK)}}let G=(()=>{class o{constructor(){this.EdgeX_SINK="edgex",this.MQTT_SINK="mqtt",this.REST_SINK="rest",this.LOG_SINK="log",this.NOP_SINK="nop",this.ruleActionsChange=new e.vpe,this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={},this.selectedSinkIndex=-1,this.selectedSinkType="",this.sinkAddOrEditStatus=!1,this.sinkOperation_ADD="add",this.sinkOperation_EDIT="edit",this.sinkAddOrEditOperation="",this.updateTimestamp="",this._ruleActions=[]}get ruleActions(){return this._ruleActions}set ruleActions(t){!t||(this._ruleActions=t)}ngOnInit(){}ngOnChanges(){this.ruleActionsChange.emit(this.ruleActions)}resetSinksConcreteAll(){this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={}}getSinkTypeOfAction(t){let _=Object.keys(t);return 0===_.length?"":_[0]}getSinkByType(t){let _={};switch(t){case this.EdgeX_SINK:_.edgex=this.edgeXSink;break;case this.MQTT_SINK:_.mqtt=this.mqttSink;break;case this.REST_SINK:_.rest=this.restSink;break;case this.LOG_SINK:_.log=this.logSink;break;default:_.nop=this.nopSink}return _}sinkConcreteExtractor(t){let _=this.getSinkTypeOfAction(t);switch(this.selectedSinkType=_,_){case this.EdgeX_SINK:this.edgeXSink=t.edgex;break;case this.MQTT_SINK:this.mqttSink=t.mqtt;break;case this.REST_SINK:this.restSink=t.rest;break;case this.LOG_SINK:this.logSink=t.log;break;default:this.nopSink=t.nop}}addSinkTransfer(){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_ADD,this.selectedSinkIndex=-1,this.selectedSinkType="",this.resetSinksConcreteAll()}editSinkTransfer(t,_){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_EDIT,this.selectedSinkIndex=_,this.sinkConcreteExtractor(t),this.selectedSinkType=this.getSinkTypeOfAction(t)}addOneNewSink(){this.ruleActions.push(this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}updateSink(){this.ruleActions.splice(this.selectedSinkIndex,1,this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}deleteSink(t,_){this.ruleActions.splice(_,1),this.selectedSinkIndex=-1}cancel(){this.sinkAddOrEditStatus=!1}validate(){if(!this.selectedSinkType)return!1;switch(this.selectedSinkType){case this.MQTT_SINK:if(!this.mqttSink.server||!this.mqttSink.topic)return!1;break;case this.REST_SINK:if(!this.restSink.url)return!1}return!0}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-sink-list"]],inputs:{ruleActions:"ruleActions"},outputs:{ruleActionsChange:"ruleActionsChange"},features:[e.TTD],decls:2,vars:2,consts:function(){let a,t,_;return a="Add Sink",t="Sink Type",_="please select a valid Sink Type !",[[4,"ngIf"],["class","card",4,"ngIf"],[1,"badge","badge-secondary","font-weight-bold"],[3,"click"],[1,"fa","fa-plus-circle","mr-1"],["role","button",1,"user-select-none"],a,[1,"list-group"],["class","list-group-item list-group-item-action ",3,"list-group-item-light","list-group-item-secondary",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action"],[1,"text-dark","mr-2"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit"],["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash"],[1,"card"],[1,"card-header","p-2"],["class","btn btn-success btn-sm mr-2",3,"disabled","click",4,"ngIf"],[1,"btn","btn-secondary","btn-sm",3,"click"],[1,"card-body"],[1,"mb-2"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],t,[1,"col-sm-9"],["name","SinkType",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["id","validationSinkTypeFeedback",1,"invalid-feedback"],_,[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"fa","fa-plus","mr-2","text-info"],[1,"font-weight-bold"],["class","font-weight-bold",4,"ngIf"],[1,"fa","fa-edit","mr-2","text-info"],[1,"btn","btn-success","btn-sm","mr-2",3,"disabled","click"],[3,"edgeXSink","edgeXSinkChange"],[3,"mqttSink","mqttSinkChange"],[3,"restSink","restSinkChange"],[3,"logSink","logSinkChange"]]},template:function(t,_){1&t&&(e.YNc(0,Ne,8,1,"div",0),e.YNc(1,Oe,32,20,"div",1)),2&t&&(e.Q6J("ngIf",!_.sinkAddOrEditStatus),e.xp6(1),e.Q6J("ngIf",_.sinkAddOrEditStatus))},directives:[p.O5,p.sg,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,p.RF,p.n9,oe,ie,he,Ze],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function ke(o,a){1&o&&e._UZ(0,"i",29)}function Pe(o,a){1&o&&e._UZ(0,"i",30)}let L=(()=>{class o{constructor(){this.collapseToggleStatus=!1,this.ruleOptionsChange=new e.vpe,this._ruleOptions={isEventTime:!1,sendMetaToSink:!1,sendError:!0,qos:0}}get ruleOptions(){return this._ruleOptions}set ruleOptions(t){Object.assign(this._ruleOptions,t)}ngOnInit(){}ngOnChanges(){this.ruleOptionsChange.emit(this.ruleOptions)}collapseToggle(t){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rule-advanced-options"]],inputs:{ruleOptions:"ruleOptions"},outputs:{ruleOptionsChange:"ruleOptionsChange"},features:[e.TTD],decls:84,vars:19,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"font-weight-bold","text-primary"],[1,"text-primary","ml-2"],["aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["id","clllapse-rule-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to use event time or processing time as the timestamp for an event. If event time is used, the timestamp will be extracted from the payload. The timestamp filed must be specified by the stream definition.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","isEventTime",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the qos of the stream. The options are 0: At most once; 1: At least once and 2: Exactly once. If qos is bigger than 0, the checkpoint mechanism will be activated to save states periodically so that the rule can be resumed from errors.",1,"fa","fa-question-circle-o","fa-lg"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","When working with event-time windowing, it can happen that elements arrive late. LateTolerance can specify by how much time(unit is millisecond) elements can be late before they are dropped. By default, the value is 0 which means late elements are dropped.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","lateTolerance",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","A rule is processed by several phases of plans according to the sql statement. This option will specify how many instances will be run for each plan. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","concurrency",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory for each plan. If the buffered messages exceed the limit, the plan will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit. A bigger value will accommodate more throughput but will also take up more memory footprint.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the time interval in milliseconds to trigger a checkpoint. This is only effective when qos is bigger than 0.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","checkpointInterval",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify whether the meta data of an event will be sent to the sink. If true, the sink can get te meta data information.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendMetaToSink",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to send the error to sink. If true, any runtime error will be sent through the whole rule into sinks. Otherwise, the error will only be printed out in the log.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendError",1,"custom-select",3,"ngModel","ngModelChange"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-down","fa-lg"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(i){return _.collapseToggle(i)}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Rule Advanced Options"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,ke,1,0,"i",5),e.YNc(7,Pe,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span",10),e._uU(13,"IsEventTime"),e.qZA(),e._UZ(14,"span",11),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"select",13),e.NdJ("ngModelChange",function(i){return _.ruleOptions.isEventTime=i}),e.TgZ(17,"option",14),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span",10),e._uU(24,"Qos"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",12),e.TgZ(27,"select",16),e.NdJ("ngModelChange",function(i){return _.ruleOptions.qos=i}),e.TgZ(28,"option",14),e._uU(29,"0"),e.qZA(),e.TgZ(30,"option",14),e._uU(31,"1"),e.qZA(),e.TgZ(32,"option",14),e._uU(33,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",8),e.TgZ(35,"label",9),e.TgZ(36,"span",10),e._uU(37,"LateTolerance"),e.qZA(),e._UZ(38,"span",17),e.qZA(),e.TgZ(39,"div",12),e.TgZ(40,"input",18),e.NdJ("ngModelChange",function(i){return _.ruleOptions.lateTolerance=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e.TgZ(43,"span",10),e._uU(44,"Concurrency"),e.qZA(),e._UZ(45,"span",19),e.qZA(),e.TgZ(46,"div",12),e.TgZ(47,"input",20),e.NdJ("ngModelChange",function(i){return _.ruleOptions.concurrency=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",8),e.TgZ(49,"label",9),e.TgZ(50,"span",10),e._uU(51,"BufferLength"),e.qZA(),e._UZ(52,"span",21),e.qZA(),e.TgZ(53,"div",12),e.TgZ(54,"input",22),e.NdJ("ngModelChange",function(i){return _.ruleOptions.bufferLength=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",8),e.TgZ(56,"label",9),e.TgZ(57,"span",10),e._uU(58,"CheckpointInterval"),e.qZA(),e._UZ(59,"span",23),e.qZA(),e.TgZ(60,"div",12),e.TgZ(61,"input",24),e.NdJ("ngModelChange",function(i){return _.ruleOptions.checkpointInterval=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",8),e.TgZ(63,"label",9),e.TgZ(64,"span",10),e._uU(65,"SendMetaToSink"),e.qZA(),e._UZ(66,"span",25),e.qZA(),e.TgZ(67,"div",12),e.TgZ(68,"select",26),e.NdJ("ngModelChange",function(i){return _.ruleOptions.sendMetaToSink=i}),e.TgZ(69,"option",14),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",14),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e.TgZ(75,"span",10),e._uU(76,"SendError"),e.qZA(),e._UZ(77,"span",27),e.qZA(),e.TgZ(78,"div",12),e.TgZ(79,"select",28),e.NdJ("ngModelChange",function(i){return _.ruleOptions.sendError=i}),e.TgZ(80,"option",14),e._uU(81,"false"),e.qZA(),e.TgZ(82,"option",14),e._uU(83,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(9),e.Q6J("ngModel",_.ruleOptions.isEventTime),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.lateTolerance),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.concurrency),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.bufferLength),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.checkpointInterval),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.sendMetaToSink),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.sendError),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.wV,s.Fj],styles:[""]}),o})();function De(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}function ye(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,43),e.qZA(),e.qZA())}let Je=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}submit(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.addRule(this.rule).subscribe(()=>{this.msgSvc.success("Add rule",`Name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-rules"]],decls:59,vars:18,consts:function(){let a,t,_,n,i,r,l,S,g,u,m;return a="Add Rule",t="Submit",_="Name",n="the rule name can't be empty!",i="RuleSQL",r="SQL Editor",l="Action",S="Add Action",g="Options",u="SQL can't be empty!",m="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],a,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],n,["for","ruleSql",1,"col-md-2","col-form-label"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],r,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],l,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],S,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u,m]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return _.submit()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(i){return _.rule.id=i}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,De,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,ye,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(i){return _.rule.actions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(i){return _.rule.options=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!_.validate()),e.xp6(12),e.ekj("is-invalid",!_.rule.id)("is-valid",_.rule.id),e.Q6J("ngModel",_.rule.id),e.xp6(11),e.ekj("border",!_.sqlEditor.getValue())("border-danger",!_.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!_.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!_.rule.actions||0===_.rule.actions.length)("border-danger",!_.rule.actions||0===_.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!_.rule.actions||0===_.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",_.rule.actions),e.xp6(7),e.Q6J("ruleOptions",_.rule.options))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,p.O5,G,L],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function xe(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e._uU(3,"SQL can't be empty!"),e.qZA(),e.qZA())}function $e(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}let Xe=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.ruleID&&this.getRuleByID(t.ruleID)}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}getRuleByID(t){this.ruleSvc.findRuleById(t).subscribe(_=>{this.rule=_,this.sqlEditor.setValue(this.rule.sql)})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}update(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.updateRule(this.rule).subscribe(()=>{this.msgSvc.success("update",`name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edit-rules"]],decls:59,vars:18,consts:function(){let a,t,_,n,i,r,l,S,g,u;return a="Edit Rule",t="Update",_="Name",n="the rule name can't be empty!",i="RuleSQL",r="SQL Editor",l="Action",S="Add Action",g="Options",u="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],a,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],n,["for","ruleSql",1,"col-md-2","col-form-label"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],r,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],l,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],S,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return _.update()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(i){return _.rule.id=i}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,xe,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,$e,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(i){return _.rule.actions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(i){return _.rule.options=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!_.validate()),e.xp6(12),e.ekj("is-invalid",!_.rule.id)("is-valid",_.rule.id),e.Q6J("ngModel",_.rule.id),e.xp6(11),e.ekj("border",!_.sqlEditor.getValue())("border-danger",!_.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!_.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!_.rule.actions||0===_.rule.actions.length)("border-danger",!_.rule.actions||0===_.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!_.rule.actions||0===_.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",_.rule.actions),e.xp6(7),e.Q6J("ruleOptions",_.rule.options))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,p.O5,G,L],styles:[""]}),o})(),we=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rules-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),o})();function Be(o,a){1&o&&(e.TgZ(0,"span"),e.TgZ(1,"div",50),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function Qe(o,a){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.status," ")}}function He(o,a){1&o&&(e.TgZ(0,"span"),e.TgZ(1,"div",52),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.TgZ(4,"div",53),e.TgZ(5,"span",51),e._uU(6,"Loading..."),e.qZA(),e.qZA(),e.TgZ(7,"div",54),e.TgZ(8,"span",51),e._uU(9,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function We(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",55),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"start")}),e.SDv(2,56),e.qZA(),e.TgZ(3,"span",57),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"restart")}),e.SDv(4,58),e.qZA(),e.TgZ(5,"span",59),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"stop")}),e.SDv(6,60),e.qZA(),e.qZA()}}function Fe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",24),e.NdJ("click",function(n){const r=e.CHM(t).$implicit;return e.oxw().selectOne(n,r)}),e.qZA(),e.qZA(),e.TgZ(3,"td",46),e._uU(4),e.qZA(),e.TgZ(5,"td"),e.YNc(6,Be,4,0,"span",47),e.YNc(7,Qe,2,1,"span",47),e.qZA(),e.TgZ(8,"td",48),e.TgZ(9,"i",49),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().statusMetrics(i.id)}),e.qZA(),e.qZA(),e.TgZ(10,"td"),e.YNc(11,He,10,0,"span",47),e.YNc(12,We,7,0,"span",47),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit,_=e.oxw();e.ekj("table-active",_.isChecked(t.id)),e.xp6(2),e.Q6J("checked",_.isChecked(t.id)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Q6J("ngIf",_.operationStatus),e.xp6(1),e.Q6J("ngIf",!_.operationStatus),e.xp6(2),e.ekj("text-info",_.statusMetricsRuleID===t.id),e.xp6(2),e.Q6J("ngIf",_.operationStatus),e.xp6(1),e.Q6J("ngIf",!_.operationStatus)}}function Ve(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",61),e.TgZ(1,"div",1),e._UZ(2,"i",62),e.TgZ(3,"span",63),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,64),e.qZA(),e.TgZ(7,"span",65),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return n.statusMetricsRefresh(n.statusMetricsRuleID)}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,66),e.qZA(),e.qZA(),e.TgZ(11,"span",67),e.TgZ(12,"i",68),e.NdJ("click",function(){return e.CHM(t),e.oxw().statusMetricsShowClose()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",69),e.TgZ(14,"pre",70),e._uU(15),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(4),e.Oqu(t.statusMetricsRuleID),e.xp6(11),e.Oqu(t.ruleStatusMetrics)}}let Ke=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.route=n,this.router=i,this.rulesList=[],this.selectedRules=[],this.ruleStatusMetrics="",this.statusMetricsRuleID="",this.operationStatus=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{this.getRulesList()})}getRulesList(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t})}refresh(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t,this.msgSvc.success("refresh")})}edit(){this.router.navigate(["../edit-rules"],{relativeTo:this.route,queryParams:{ruleID:this.selectedRules[0].id}})}statusMetrics(t){this.statusMetricsRuleID="",this.ruleStatusMetrics="",this.ruleSvc.getRuleStatusMetricsById(t).subscribe(_=>{let n;this.statusMetricsRuleID=t;try{n=JSON.parse(_)}catch(i){return void(this.ruleStatusMetrics=_)}this.ruleStatusMetrics=JSON.stringify(n,null,3)})}statusMetricsShowClose(){this.statusMetricsRuleID="",this.ruleStatusMetrics=""}statusMetricsRefresh(t){this.statusMetrics(t)}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedRules.forEach((t,_)=>{this.ruleSvc.deleteOneRuleById(t.id).subscribe(()=>{this.selectedRules.splice(_,1),this.rulesList.forEach((n,i)=>{n.id===t.id&&(this.rulesList.splice(i,1),this.msgSvc.success("remove rule ",` Id: ${t.id}`))})})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let t=!0;return this.rulesList&&0===this.rulesList.length&&(t=!1),this.rulesList.forEach(_=>{-1===this.selectedRules.findIndex(n=>n.id===_.id)&&(t=!1)}),t}selectAll(t){this.rulesList.forEach(t.target.checked?n=>{-1===this.selectedRules.findIndex(i=>i.id===n.id)&&this.selectedRules.push(n)}:n=>{let i=this.selectedRules.findIndex(r=>r.id===n.id);-1!==i&&this.selectedRules.splice(i,1)})}isChecked(t){return this.selectedRules.findIndex(_=>_.id===t)>=0}selectOne(t,_){if(t.target.checked)return void this.selectedRules.push(_);let i=this.selectedRules.findIndex(r=>r.id===_.id);-1!==i&&this.selectedRules.splice(i,1)}execute(t,_){this.operationStatus=!0,this.ruleSvc.executeRuleCommand(t,_).subscribe({next:()=>{this.operationStatus=!1,this.msgSvc.success(`${_} ${t}`),this.getRulesList()},error:()=>this.operationStatus=!1})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.gz),e.Y36(c.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rules-list"]],decls:56,vars:5,consts:function(){let a,t,_,n,i,r,l,S,g,u,m,T,k,P,D,y,J,x;return a="Rule List",t="Refresh",_="Add",n="Edit",i="Delete",r="ID",l="Status",S="Status Metrics",g="Operaion",u="Warning",m=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",T="Cancel",k="Confirm",P="start",D="restart",y="stop",J="Status Metrics",x="refresh",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],[1,"font-weight-bold"],a,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],t,["type","button","routerLink","../add-rules",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],_,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],r,l,["scope","col",1,"text-center"],S,g,[3,"table-active",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],u,[1,"modal-body"],m,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],T,["type","button",1,"btn","btn-danger",3,"click"],k,[1,"user-select-all"],[4,"ngIf"],[1,"text-center"],["role","button",1,"fa","fa-line-chart","text-primary",3,"click"],["role","status",1,"spinner-border","spinner-border-sm","text-secondary"],[1,"sr-only"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-success"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-info"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-danger"],["role","button",1,"badge","badge-success","mr-1",3,"click"],P,["role","button",1,"badge","badge-info","mr-1",3,"click"],D,["role","button",1,"badge","badge-danger","mr-1",3,"click"],y,[1,"card","mt-3"],[1,"fa","fa-line-chart","mr-2","text-info"],[1,"mr-2","font-weight-bold"],J,["role","button",1,"badge","badge-primary","mx-2",3,"click"],x,["role","button",1,"align-bottom"],[1,"fa","fa-window-close","fa-lg","text-danger","float-right","mt-1",3,"click"],[1,"card-body"],[1,"p-2"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"div",6),e.TgZ(7,"button",7),e.NdJ("click",function(){return _.refresh()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.TgZ(11,"button",10),e._UZ(12,"i",11),e.TgZ(13,"span"),e.SDv(14,12),e.qZA(),e.qZA(),e.TgZ(15,"button",13),e.NdJ("click",function(){return _.edit()}),e._UZ(16,"i",14),e.TgZ(17,"span"),e.SDv(18,15),e.qZA(),e.qZA(),e.TgZ(19,"button",16),e.NdJ("click",function(){return _.deleteConfirm()}),e._UZ(20,"i",17),e.TgZ(21,"span"),e.SDv(22,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",19),e.TgZ(24,"div",20),e.TgZ(25,"table",21),e.TgZ(26,"thead",22),e.TgZ(27,"tr"),e.TgZ(28,"th",23),e.TgZ(29,"input",24),e.NdJ("click",function(i){return _.selectAll(i)}),e.qZA(),e.qZA(),e.TgZ(30,"th",23),e.SDv(31,25),e.qZA(),e.TgZ(32,"th",23),e.SDv(33,26),e.qZA(),e.TgZ(34,"th",27),e.SDv(35,28),e.qZA(),e.TgZ(36,"th",23),e.SDv(37,29),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"tbody"),e.YNc(39,Fe,13,10,"tr",30),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(40,Ve,16,2,"div",31),e.TgZ(41,"div",32),e.TgZ(42,"div",33),e.TgZ(43,"div",34),e.TgZ(44,"div",35),e.TgZ(45,"h5",36),e._UZ(46,"i",37),e.TgZ(47,"span"),e.SDv(48,38),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",39),e.SDv(50,40),e.qZA(),e.TgZ(51,"div",41),e.TgZ(52,"button",42),e.SDv(53,43),e.qZA(),e.TgZ(54,"button",44),e.NdJ("click",function(){return _.delete()}),e.SDv(55,45),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(15),e.Q6J("disabled",1!==_.selectedRules.length),e.xp6(4),e.Q6J("disabled",0===_.selectedRules.length),e.xp6(10),e.Q6J("checked",_.isCheckedAll()),e.xp6(10),e.Q6J("ngForOf",_.rulesList),e.xp6(1),e.Q6J("ngIf",_.ruleStatusMetrics&&_.statusMetricsRuleID))},directives:[c.rH,p.sg,p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function Ye(o,a){1&o&&(e.TgZ(0,"div",18),e._UZ(1,"i",19),e.TgZ(2,"span"),e.SDv(3,20),e.qZA(),e.qZA())}let ze=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.EDGEX="edgex",this.CUSTOM="custom",this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.templateTypeSelected=this.EDGEX,this.edgexStreamDataTemplate='CREATE STREAM EdgeXStream () WITH ( FORMAT = "JSON", TYPE = "edgex" )',this.customStreamDataTemplate='CREATE STREAM demo ( field1 bigint, field2 float ) WITH ( DATASOURCE = "", KEY = "", FORMAT = "JSON", CONF_KEY = "", TYPE = "edgex", STRICT_VALIDATION = "true", TIMESTAMP = "", TIMESTAMP_FORMAT = "", RETAIN_SIZE = "0", SHARED = "false" )',this.streamIsNullMsg=!1}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}templateTypeToggle(t){this.templateTypeSelected=t,t===this.EDGEX?this.sqlEditor.setValue(this.edgexStreamDataTemplate):(this.sqlEditor.setValue(this.customStreamDataTemplate),this.formatSql())}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})}),this.sqlEditor.setValue(this.edgexStreamDataTemplate)}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}documentShow(){$("#stream-document").modal("show")}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.addStream(JSON.stringify({sql:t})).subscribe(()=>{this.msgSvc.success("Add Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-stream"]],decls:25,vars:9,consts:function(){let a,t,_;return a="Add Stream",t="Submit",_="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,""],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],a,["type","button",1,"btn","btn-success","btn-sm","float-right",3,"click"],[1,"fa","fa-save","mr-1"],t,[1,"card-header"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],_]},template:function(t,_){1&t&&(e.YNc(0,Ye,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"span",5),e.SDv(6,6),e.qZA(),e.qZA(),e.TgZ(7,"button",7),e.NdJ("click",function(){return _.submit()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",10),e.TgZ(12,"span",11),e.NdJ("click",function(){return _.templateTypeToggle(_.EDGEX)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e._uU(15,"EdgeXStreamTemplate"),e.qZA(),e.qZA(),e.TgZ(16,"span",11),e.NdJ("click",function(){return _.templateTypeToggle(_.CUSTOM)}),e._UZ(17,"i",12),e.TgZ(18,"span"),e._uU(19,"CustomStreamTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",13),e.TgZ(21,"div",14),e.TgZ(22,"span",15),e.TgZ(23,"i",16),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(24,"textarea",17),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",_.streamIsNullMsg),e.xp6(12),e.ekj("badge-info",_.templateTypeSelected===_.EDGEX),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.EDGEX),e.xp6(3),e.ekj("badge-info",_.templateTypeSelected===_.CUSTOM),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.CUSTOM))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function je(o,a){1&o&&(e.TgZ(0,"div",16),e._UZ(1,"i",17),e.TgZ(2,"span"),e.SDv(3,18),e.qZA(),e.qZA())}let et=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.streamName="",this.streamStringFormatObj="",this.streamIsNullMsg=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{t.streamName&&(this.streamName=t.streamName,this.getStreamByNameOrID())}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}getStreamByNameOrID(){this.ruleSvc.findStreamByName(this.streamName).subscribe(t=>{this.streamJSONFormatObj=t,this.dataFormatJSONToStringConvertor(),this.sqlEditor.setValue(this.streamStringFormatObj),this.formatSql()})}dataFormatJSONToStringConvertor(){var t,_,n;if(!this.streamJSONFormatObj)return;let i=[];null===(_=null===(t=this.streamJSONFormatObj)||void 0===t?void 0:t.StreamFields)||void 0===_||_.forEach((l,S)=>{i.push(`${l.Name} ${l.FieldType}`)});let r=[];for(const[l,S]of Object.entries(this.streamJSONFormatObj.Options))r.push(`${l} = "${S}"`);this.streamStringFormatObj=`CREATE STREAM ${null===(n=this.streamJSONFormatObj)||void 0===n?void 0:n.Name} ( ${i.join(", ")} ) WITH ( ${r.join(", ")} )`}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.updateStream(JSON.stringify({sql:t}),this.streamName).subscribe(()=>{this.msgSvc.success("Update Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edit-stream"]],decls:19,vars:3,consts:function(){let a,t,_;return a="Edit Stream",t="Submit",_="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-2"],a,[1,"font-weight-bold"],[1,"float-right"],["type","button",1,"btn","btn-success","btn-sm",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],_]},template:function(t,_){1&t&&(e.YNc(0,je,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span"),e._UZ(4,"span",3),e.TgZ(5,"span",4),e.SDv(6,5),e.qZA(),e.TgZ(7,"span",6),e._uU(8),e.qZA(),e.qZA(),e.TgZ(9,"span",7),e.TgZ(10,"button",8),e.NdJ("click",function(){return _.submit()}),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e.TgZ(16,"span",13),e.TgZ(17,"i",14),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(18,"textarea",15),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",_.streamIsNullMsg),e.xp6(8),e.Oqu(_.streamName),e.xp6(2),e.Q6J("disabled",!_.streamStringFormatObj))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),tt=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-stream-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),o})();function _t(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"li",29),e.TgZ(1,"div",30),e.TgZ(2,"div",31),e._UZ(3,"i",32),e.qZA(),e.TgZ(4,"div",33),e.TgZ(5,"div",34),e.TgZ(6,"h5",35),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",36),e.TgZ(10,"span",37),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().edit(i)}),e._UZ(11,"i",38),e.TgZ(12,"span"),e.SDv(13,39),e.qZA(),e.qZA(),e.TgZ(14,"span",40),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().deleteConfirm(i)}),e._UZ(15,"i",41),e.TgZ(16,"span"),e.SDv(17,42),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit;e.xp6(7),e.Oqu(t)}}let nt=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.route=n,this.router=i,this.streamList=[],this.selectedStream=""}ngOnInit(){this.getStreamList()}getStreamList(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t})}refresh(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t,this.msgSvc.success("refresh")})}add(){this.router.navigate(["../add-stream"],{relativeTo:this.route})}edit(t){this.router.navigate(["../edit-stream"],{relativeTo:this.route,queryParams:{streamName:t}})}deleteConfirm(t){this.selectedStream=t,$("#deleteConfirmDialog").modal("show")}delete(){$("#deleteConfirmDialog").modal("hide"),this.ruleSvc.deleteOneStreamById(this.selectedStream).subscribe(()=>{this.msgSvc.success("delete",`name: ${this.selectedStream}`),this.streamList.forEach((t,_)=>{t===this.selectedStream&&this.streamList.splice(_,1)})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.gz),e.Y36(c.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-stream-list"]],decls:33,vars:1,consts:function(){let a,t,_,n,i,r,l,S,g;return a="Stream List",t="Refresh",_="Add",n="Warning",i=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",r="Cancel",l="Confirm",S="Edit",g="Delete",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],a,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-refresh","mr-1"],t,[1,"btn","btn-success","btn-sm",3,"click"],[1,"fa","fa-plus-circle","mr-1"],_,[1,"card-body","p-0"],[1,"list-group","p-0","border-0"],["class","list-group-item list-group-item-action list-group-item-light border-top-0 border-left-0 border-right-0",4,"ngFor","ngForOf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],n,[1,"modal-body"],i,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],r,["type","button",1,"btn","btn-danger",3,"click"],l,[1,"list-group-item","list-group-item-action","list-group-item-light","border-top-0","border-left-0","border-right-0"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit","mr-1"],S,["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash","mr-1"],g]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return _.refresh()}),e._UZ(8,"i",7),e.TgZ(9,"span"),e.SDv(10,8),e.qZA(),e.qZA(),e.TgZ(11,"button",9),e.NdJ("click",function(){return _.add()}),e._UZ(12,"i",10),e.TgZ(13,"span"),e.SDv(14,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"ul",13),e.YNc(17,_t,18,1,"li",14),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",15),e.TgZ(19,"div",16),e.TgZ(20,"div",17),e.TgZ(21,"div",18),e.TgZ(22,"h5",19),e._UZ(23,"i",20),e.TgZ(24,"span"),e.SDv(25,21),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",22),e.SDv(27,23),e.qZA(),e.TgZ(28,"div",24),e.TgZ(29,"button",25),e.SDv(30,26),e.qZA(),e.TgZ(31,"button",27),e.NdJ("click",function(){return _.delete()}),e.SDv(32,28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngForOf",_.streamList))},directives:[p.sg],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}#addStreamDialog[_ngcontent-%COMP%] #editStreamDialog[_ngcontent-%COMP%]{margin-top:10%}"]}),o})();var ot=d(8253),it=d(1964),at=d(4294),st=d(5894),rt=d(7216);let O=(()=>{class o{constructor(t,_){this.router=t,this.ruleSvc=_}canActivate(t,_){return this.checkAvailable(t,_)}canActivateChild(t,_){return this.canActivate(t,_)}checkAvailable(t,_){return this.ruleSvc.ping().pipe((0,at.q)(1),(0,st.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"rule engine",routerPath:`/${_.url.split("/")[1]}`}})),(0,rt.z)(()=>(0,it.of)(!0)))}}return o.\u0275fac=function(t){return new(t||o)(e.LFG(c.F0),e.LFG(A.n))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const lt=[{path:"",component:X,canActivate:[ot.a,O],canActivateChild:[O],children:[{path:"",redirectTo:"stream-center",pathMatch:"full"},{path:"stream-center",component:tt,children:[{path:"",redirectTo:"stream-list",pathMatch:"full"},{path:"stream-list",component:nt},{path:"add-stream",component:ze},{path:"edit-stream",component:et}]},{path:"rules-center",component:we,children:[{path:"",redirectTo:"rules-list",pathMatch:"full"},{path:"rules-list",component:Ke},{path:"add-rules",component:Je},{path:"edit-rules",component:Xe}]}]}];let dt=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[c.Bz.forChild(lt)],c.Bz]}),o})();var gt=d(6342),ct=d(4010);let ut=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.ez,s.u5,s.UX,dt,gt.Y,ct.MetadataModule]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/489.1d8008a97976d4d683d9.js b/cmd/edgex-ui-server/static/web/en-US/489.1d8008a97976d4d683d9.js deleted file mode 100644 index 5bdba19b..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/489.1d8008a97976d4d683d9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[489],{3489:(N,d,r)=>{r.r(d),r.d(d,{CoreDataModule:()=>C});var c=r(8583),s=r(9502),e=r(476);let A=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(_){return new(_||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-core-data"]],decls:21,vars:0,consts:function(){let n,_,a;return n=" An event represents a collection of one or more sensor readings. Some sensors or devices are only providing a single value \u2013 a single reading - at a time. Other sensors spew multiple values whenever they are read. An event must have at least one reading. Events are associated to a sensor or device. " + "[\ufffd#7\ufffd\ufffd/#7\ufffd|\ufffd#8\ufffd\ufffd/#8\ufffd|\ufffd#9\ufffd\ufffd/#9\ufffd]" + "" + "[\ufffd#7\ufffd\ufffd/#7\ufffd|\ufffd#8\ufffd\ufffd/#8\ufffd|\ufffd#9\ufffd\ufffd/#9\ufffd]" + " The following data is only for the convenience of the user to view the data format of the data center, which does not make any sense to manipulate! " + "[\ufffd#7\ufffd\ufffd/#7\ufffd|\ufffd#8\ufffd\ufffd/#8\ufffd|\ufffd#9\ufffd\ufffd/#9\ufffd]" + " The dynamic display effect of the data is that only the API of the Core Data service is called periodically, with intervals of 3 seconds. ",n=e.Zx4(n),_="Event",a="Reading",[[1,"card","mb-2"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],[1,"card-body"],n,[1,"card"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./event","routerLinkActive","active",1,"nav-link"],_,["routerLink","./reading","routerLinkActive","active",1,"nav-link"],a]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e._uU(4,"Tips"),e.qZA(),e.qZA(),e.TgZ(5,"div",3),e.tHW(6,4),e._UZ(7,"br"),e._UZ(8,"br"),e._UZ(9,"br"),e.N_p(),e.qZA(),e.qZA(),e.TgZ(10,"div",5),e.TgZ(11,"div",1),e.TgZ(12,"ul",6),e.TgZ(13,"li",7),e.TgZ(14,"a",8),e.SDv(15,9),e.qZA(),e.qZA(),e.TgZ(16,"li",7),e.TgZ(17,"a",10),e.SDv(18,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",3),e._UZ(20,"router-outlet"),e.qZA(),e.qZA())},directives:[s.yS,s.Od,s.lC],styles:[""]}),t})();var i=r(2468);let u=(()=>{class t{constructor(_){this.dataSvc=_,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allEventsPagination(0,5).subscribe(_=>{0!==_.events.length?_.events.forEach((a,o)=>{$("#data-event-stream").prepend('

'+JSON.stringify(a)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return t.\u0275fac=function(_){return new(_||t)(e.Y36(i.D))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-event"]],decls:20,vars:2,consts:function(){let n,_,a;return n="Event Data Stream",_="Start",a="Pause",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],n,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],_,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],a,[1,"card-body"],["id","data-event-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return a.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return a.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.Q6J("disabled",!a.pauseOperate),e.xp6(5),e.Q6J("disabled",a.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),t})(),E=(()=>{class t{constructor(_){this.dataSvc=_,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allReadingsPagination(0,5).subscribe(_=>{0!==_.readings.length?_.readings.forEach((a,o)=>{$("#data-reading-stream").prepend('

'+JSON.stringify(a)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return t.\u0275fac=function(_){return new(_||t)(e.Y36(i.D))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-reading"]],decls:20,vars:2,consts:function(){let n,_,a;return n="Reading Data Stream",_="Start",a="Pause",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],n,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],_,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],a,[1,"card-body"],["id","data-reading-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return a.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return a.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.Q6J("disabled",!a.pauseOperate),e.xp6(5),e.Q6J("disabled",a.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),t})();var p=r(8253),g=r(1964),F=r(4294),f=r(5894),D=r(7216);let l=(()=>{class t{constructor(_,a){this.router=_,this.dataSvc=a}canActivate(_,a){return this.checkAvailable(_,a)}canActivateChild(_,a){return this.canActivate(_,a)}checkAvailable(_,a){return this.dataSvc.ping().pipe((0,F.q)(1),(0,f.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"core data",routerPath:`/${a.url.split("/")[1]}`}})),(0,D.z)(()=>(0,g.of)(!0)))}}return t.\u0275fac=function(_){return new(_||t)(e.LFG(s.F0),e.LFG(i.D))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const T=[{path:"",component:A,canActivate:[p.a,l],canActivateChild:[l],children:[{path:"",redirectTo:"event",pathMatch:"full"},{path:"event",component:u},{path:"reading",component:E}]}];let v=(()=>{class t{}return t.\u0275fac=function(_){return new(_||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.Bz.forChild(T)],s.Bz]}),t})(),C=(()=>{class t{}return t.\u0275fac=function(_){return new(_||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.ez,v]]}),t})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/489.4065c1dc2d3b3b501684.js b/cmd/edgex-ui-server/static/web/en-US/489.4065c1dc2d3b3b501684.js deleted file mode 100644 index 5bdba19b..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/489.4065c1dc2d3b3b501684.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[489],{3489:(N,d,r)=>{r.r(d),r.d(d,{CoreDataModule:()=>C});var c=r(8583),s=r(9502),e=r(476);let A=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(_){return new(_||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-core-data"]],decls:21,vars:0,consts:function(){let n,_,a;return n=" An event represents a collection of one or more sensor readings. Some sensors or devices are only providing a single value \u2013 a single reading - at a time. Other sensors spew multiple values whenever they are read. An event must have at least one reading. Events are associated to a sensor or device. " + "[\ufffd#7\ufffd\ufffd/#7\ufffd|\ufffd#8\ufffd\ufffd/#8\ufffd|\ufffd#9\ufffd\ufffd/#9\ufffd]" + "" + "[\ufffd#7\ufffd\ufffd/#7\ufffd|\ufffd#8\ufffd\ufffd/#8\ufffd|\ufffd#9\ufffd\ufffd/#9\ufffd]" + " The following data is only for the convenience of the user to view the data format of the data center, which does not make any sense to manipulate! " + "[\ufffd#7\ufffd\ufffd/#7\ufffd|\ufffd#8\ufffd\ufffd/#8\ufffd|\ufffd#9\ufffd\ufffd/#9\ufffd]" + " The dynamic display effect of the data is that only the API of the Core Data service is called periodically, with intervals of 3 seconds. ",n=e.Zx4(n),_="Event",a="Reading",[[1,"card","mb-2"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],[1,"card-body"],n,[1,"card"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./event","routerLinkActive","active",1,"nav-link"],_,["routerLink","./reading","routerLinkActive","active",1,"nav-link"],a]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e._uU(4,"Tips"),e.qZA(),e.qZA(),e.TgZ(5,"div",3),e.tHW(6,4),e._UZ(7,"br"),e._UZ(8,"br"),e._UZ(9,"br"),e.N_p(),e.qZA(),e.qZA(),e.TgZ(10,"div",5),e.TgZ(11,"div",1),e.TgZ(12,"ul",6),e.TgZ(13,"li",7),e.TgZ(14,"a",8),e.SDv(15,9),e.qZA(),e.qZA(),e.TgZ(16,"li",7),e.TgZ(17,"a",10),e.SDv(18,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",3),e._UZ(20,"router-outlet"),e.qZA(),e.qZA())},directives:[s.yS,s.Od,s.lC],styles:[""]}),t})();var i=r(2468);let u=(()=>{class t{constructor(_){this.dataSvc=_,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allEventsPagination(0,5).subscribe(_=>{0!==_.events.length?_.events.forEach((a,o)=>{$("#data-event-stream").prepend('

'+JSON.stringify(a)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return t.\u0275fac=function(_){return new(_||t)(e.Y36(i.D))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-event"]],decls:20,vars:2,consts:function(){let n,_,a;return n="Event Data Stream",_="Start",a="Pause",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],n,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],_,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],a,[1,"card-body"],["id","data-event-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return a.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return a.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.Q6J("disabled",!a.pauseOperate),e.xp6(5),e.Q6J("disabled",a.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),t})(),E=(()=>{class t{constructor(_){this.dataSvc=_,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allReadingsPagination(0,5).subscribe(_=>{0!==_.readings.length?_.readings.forEach((a,o)=>{$("#data-reading-stream").prepend('

'+JSON.stringify(a)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return t.\u0275fac=function(_){return new(_||t)(e.Y36(i.D))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-reading"]],decls:20,vars:2,consts:function(){let n,_,a;return n="Reading Data Stream",_="Start",a="Pause",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],n,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],_,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],a,[1,"card-body"],["id","data-reading-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return a.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return a.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.Q6J("disabled",!a.pauseOperate),e.xp6(5),e.Q6J("disabled",a.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),t})();var p=r(8253),g=r(1964),F=r(4294),f=r(5894),D=r(7216);let l=(()=>{class t{constructor(_,a){this.router=_,this.dataSvc=a}canActivate(_,a){return this.checkAvailable(_,a)}canActivateChild(_,a){return this.canActivate(_,a)}checkAvailable(_,a){return this.dataSvc.ping().pipe((0,F.q)(1),(0,f.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"core data",routerPath:`/${a.url.split("/")[1]}`}})),(0,D.z)(()=>(0,g.of)(!0)))}}return t.\u0275fac=function(_){return new(_||t)(e.LFG(s.F0),e.LFG(i.D))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const T=[{path:"",component:A,canActivate:[p.a,l],canActivateChild:[l],children:[{path:"",redirectTo:"event",pathMatch:"full"},{path:"event",component:u},{path:"reading",component:E}]}];let v=(()=>{class t{}return t.\u0275fac=function(_){return new(_||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.Bz.forChild(T)],s.Bz]}),t})(),C=(()=>{class t{}return t.\u0275fac=function(_){return new(_||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.ez,v]]}),t})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/489.8656f68beb54ecacddb5.js b/cmd/edgex-ui-server/static/web/en-US/489.8656f68beb54ecacddb5.js new file mode 100644 index 00000000..2b98cfe6 --- /dev/null +++ b/cmd/edgex-ui-server/static/web/en-US/489.8656f68beb54ecacddb5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[489],{3489:(h,l,s)=>{s.r(l),s.d(l,{CoreDataModule:()=>D});var u=s(8583),i=s(9502),e=s(476);let _=(()=>{class a{constructor(){}ngOnInit(){}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-core-data"]],decls:21,vars:0,consts:function(){let o,t,n;return o=" An event represents a collection of one or more sensor readings. Some sensors or devices are only providing a single value \u2013 a single reading - at a time. Other sensors spew multiple values whenever they are read. An event must have at least one reading. Events are associated to a sensor or device. " + "[\ufffd#7\ufffd\ufffd/#7\ufffd|\ufffd#8\ufffd\ufffd/#8\ufffd|\ufffd#9\ufffd\ufffd/#9\ufffd]" + "" + "[\ufffd#7\ufffd\ufffd/#7\ufffd|\ufffd#8\ufffd\ufffd/#8\ufffd|\ufffd#9\ufffd\ufffd/#9\ufffd]" + " The following data is only for the convenience of the user to view the data format of the data center, which does not make any sense to manipulate! " + "[\ufffd#7\ufffd\ufffd/#7\ufffd|\ufffd#8\ufffd\ufffd/#8\ufffd|\ufffd#9\ufffd\ufffd/#9\ufffd]" + " The dynamic display effect of the data is that only the API of the Core Data service is called periodically, with intervals of 3 seconds. ",o=e.Zx4(o),t="Event",n="Reading",[[1,"card","mb-2"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],[1,"card-body"],o,[1,"card"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./event","routerLinkActive","active",1,"nav-link"],t,["routerLink","./reading","routerLinkActive","active",1,"nav-link"],n]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e._uU(4,"Tips"),e.qZA(),e.qZA(),e.TgZ(5,"div",3),e.tHW(6,4),e._UZ(7,"br"),e._UZ(8,"br"),e._UZ(9,"br"),e.N_p(),e.qZA(),e.qZA(),e.TgZ(10,"div",5),e.TgZ(11,"div",1),e.TgZ(12,"ul",6),e.TgZ(13,"li",7),e.TgZ(14,"a",8),e.SDv(15,9),e.qZA(),e.qZA(),e.TgZ(16,"li",7),e.TgZ(17,"a",10),e.SDv(18,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",3),e._UZ(20,"router-outlet"),e.qZA(),e.qZA())},directives:[i.yS,i.Od,i.lC],styles:[""]}),a})();var d=s(2468);let p=(()=>{class a{constructor(t){this.dataSvc=t,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allEventsPagination(0,5).subscribe(t=>{0!==t.events.length?t.events.forEach((n,r)=>{$("#data-event-stream").prepend('

'+JSON.stringify(n)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(d.D))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-event"]],decls:20,vars:2,consts:function(){let o,t,n;return o="Event Data Stream",t="Start",n="Pause",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],o,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],t,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],n,[1,"card-body"],["id","data-event-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return n.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return n.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("disabled",!n.pauseOperate),e.xp6(5),e.Q6J("disabled",n.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),a})(),g=(()=>{class a{constructor(t){this.dataSvc=t,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allReadingsPagination(0,5).subscribe(t=>{0!==t.readings.length?t.readings.forEach((n,r)=>{$("#data-reading-stream").prepend('

'+JSON.stringify(n)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(d.D))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-reading"]],decls:20,vars:2,consts:function(){let o,t,n;return o="Reading Data Stream",t="Start",n="Pause",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],o,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],t,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],n,[1,"card-body"],["id","data-reading-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return n.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return n.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("disabled",!n.pauseOperate),e.xp6(5),e.Q6J("disabled",n.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),a})();var A=s(8253),F=s(1964),f=s(4294),T=s(5894),v=s(7216);let c=(()=>{class a{constructor(t,n){this.router=t,this.dataSvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.dataSvc.ping().pipe((0,f.q)(1),(0,T.K)(r=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"core data",routerPath:`/${n.url.split("/")[1]}`}})),(0,v.z)(()=>(0,F.of)(!0)))}}return a.\u0275fac=function(t){return new(t||a)(e.LFG(i.F0),e.LFG(d.D))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const E=[{path:"",component:_,canActivate:[A.a,c],canActivateChild:[c],children:[{path:"",redirectTo:"event",pathMatch:"full"},{path:"event",component:p},{path:"reading",component:g}]}];let C=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[i.Bz.forChild(E)],i.Bz]}),a})(),D=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[u.ez,C]]}),a})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/536.1c48ef705d3c1d565d49.js b/cmd/edgex-ui-server/static/web/en-US/536.1c48ef705d3c1d565d49.js new file mode 100644 index 00000000..37314991 --- /dev/null +++ b/cmd/edgex-ui-server/static/web/en-US/536.1c48ef705d3c1d565d49.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[536],{5886:(Ee,b,g)=>{g.r(b),g.d(b,{SchedulerModule:()=>dt});var I=g(8583),l=g(3092),s=g(9502),e=g(476);let q=(()=>{class _{constructor(){}ngOnInit(){}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-scheduler"]],decls:13,vars:0,consts:function(){let a,t;return a="Interval",t="IntervalAction",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./interval-center","routerLinkActive","active",1,"nav-link"],a,["routerLink","./interval-action-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.TgZ(5,"span"),e.SDv(6,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"li",3),e.TgZ(8,"a",6),e.TgZ(9,"span"),e.SDv(10,7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",8),e._UZ(12,"router-outlet"),e.qZA(),e.qZA())},directives:[s.yS,s.Od,s.lC],styles:[""]}),_})(),D=(()=>{class _{constructor(){}ngOnInit(){}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-interval-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[s.lC],styles:[""]}),_})();var h=g(8391),T=g(7822),p=g(4889);function u(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",50),e.TgZ(1,"div",51),e.TgZ(2,"button",52),e.NdJ("click",function(){return e.CHM(t),e.oxw().refresh()}),e.TgZ(3,"span"),e._UZ(4,"i",53),e.TgZ(5,"span"),e.SDv(6,54),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"button",55),e.TgZ(8,"span"),e._UZ(9,"i",56),e.TgZ(10,"span"),e.SDv(11,57),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"button",58),e.NdJ("click",function(){return e.CHM(t),e.oxw().edit()}),e.TgZ(13,"span"),e._UZ(14,"i",59),e.TgZ(15,"span"),e.SDv(16,60),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"button",61),e.NdJ("click",function(){return e.CHM(t),e.oxw().deleteConfirm()}),e.TgZ(18,"span"),e._UZ(19,"i",62),e.TgZ(20,"span"),e.SDv(21,63),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(12),e.Q6J("disabled",1!==t.intervalSelected.length),e.xp6(5),e.Q6J("disabled",0===t.intervalSelected.length)}}function O(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"input",64),e.NdJ("click",function(i){return e.CHM(t),e.oxw().selectAll(i)}),e.qZA()}if(2&_){const t=e.oxw();e.Q6J("checked",t.isCheckedAll())}}function V(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",64),e.NdJ("click",function(i){const r=e.CHM(t).$implicit;return e.oxw().selectOne(i,r)}),e.qZA(),e.qZA(),e.TgZ(3,"td",65),e._uU(4),e.qZA(),e.TgZ(5,"td",65),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.ekj("table-active",n.isChecked(t.name)),e.xp6(2),e.Q6J("checked",n.isChecked(t.name)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.start),e.xp6(2),e.Oqu(t.end),e.xp6(2),e.Oqu(t.interval),e.xp6(2),e.Oqu(!!t.runOnce)}}let y=(()=>{class _{constructor(t,n,i,o,r){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.errSvc=r,this.enableSelectAll=!0,this.singleIntervalSelectedEvent=new e.vpe,this.toolbars=!0,this.intervalList=[],this.intervalSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(t=>{t.intervalName?this.schedulerSvc.findIntervalByName(t.intervalName).subscribe(n=>{this.intervalList=[],this.intervalList.push(n.interval)}):this.findIntervalsPagination()})}refresh(){this.schedulerSvc.findAllIntervalsPagination(0,this.pageLimit).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.intervalList=t.intervals,this.msgSvc.success("refresh"),this.resetPagination())})}findIntervalsPagination(){this.schedulerSvc.findAllIntervalsPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.intervalList=t.intervals)})}onSingleIntervalSelectedEmitter(){this.singleIntervalSelectedEvent.emit(this.singleIntervalSelected)}isSingleChecked(t){var n;return(null===(n=this.singleIntervalSelected)||void 0===n?void 0:n.name)===t}selectSingleInterval(t,n){t.target.checked?this.intervalList.forEach(o=>{o.name===n&&(this.singleIntervalSelected=o)}):this.singleIntervalSelected={},this.onSingleIntervalSelectedEmitter()}isCheckedAll(){let t=!0;return this.intervalList&&0===this.intervalList.length&&(t=!1),this.intervalList.forEach(n=>{-1===this.intervalSelected.findIndex(i=>i.name===n.name)&&(t=!1)}),t}selectAll(t){this.intervalList.forEach(t.target.checked?i=>{-1===this.intervalSelected.findIndex(o=>o.name===i.name)&&this.intervalSelected.push(i)}:i=>{let o=this.intervalSelected.findIndex(r=>r.name===i.name);-1!==o&&this.intervalSelected.splice(o,1)})}isChecked(t){return this.enableSelectAll?this.intervalSelected.findIndex(n=>n.name===t)>=0:this.isSingleChecked(t)}selectOne(t,n){if(!this.enableSelectAll)return void this.selectSingleInterval(t,n.name);if(t.target.checked)return void this.intervalSelected.push(n);let o=this.intervalSelected.findIndex(r=>r.name===n.name);-1!==o&&this.intervalSelected.splice(o,1)}edit(){this.router.navigate(["../edit-interval"],{relativeTo:this.route,queryParams:{intervalName:this.intervalSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervals(){this.intervalSelected.forEach((t,n)=>{this.schedulerSvc.deleteIntervalByName(t.name).subscribe(i=>{this.errSvc.handleErrorForAPI(i)||(this.intervalSelected.splice(n,1),this.intervalList.forEach((o,r)=>{o.name!==t.name||this.intervalList.splice(r,1)}),this.msgSvc.success("delete",`name: ${t.name}`),this.resetPagination(),this.findIntervalsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalsPagination()}prePage(){this.setPagination(-1),this.findIntervalsPagination()}nextPage(){this.setPagination(1),this.findIntervalsPagination()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0),e.Y36(p.T))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-interval-list"]],inputs:{enableSelectAll:"enableSelectAll",toolbars:"toolbars",singleIntervalSelected:"singleIntervalSelected"},outputs:{singleIntervalSelectedEvent:"singleIntervalSelectedEvent"},decls:66,vars:6,consts:function(){let a,t,n,i,o,r,N,A,v,m,f,S,R,Z,L,M,c,E;return a="Interval List",t="ID",n="Name",i="Start",o="End",r="Interval",N="RunOnce",A="items per page",v="Previous",m="Next",f="Warning",S=" Associated actions will also be deleted and the data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",R="Cancel",Z="Confirm",L="Refresh",M="Add",c="Edit",E="Delete",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger"],a,[1,"card-body","p-0","position-relative"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],t,n,i,o,r,N,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],A,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],v,[1,"page-item"],m,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],f,[1,"modal-body"],S,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],R,["type","button",1,"btn","btn-danger",3,"click"],Z,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],L,["type","button","routerLink","../add-interval",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],M,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],c,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],E,["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.YNc(6,u,22,2,"div",5),e.TgZ(7,"div",6),e.TgZ(8,"table",7),e.TgZ(9,"thead",8),e.TgZ(10,"tr"),e.TgZ(11,"th",9),e.YNc(12,O,1,1,"input",10),e.qZA(),e.TgZ(13,"th",9),e.SDv(14,11),e.qZA(),e.TgZ(15,"th",9),e.SDv(16,12),e.qZA(),e.TgZ(17,"th",9),e.SDv(18,13),e.qZA(),e.TgZ(19,"th",9),e.SDv(20,14),e.qZA(),e.TgZ(21,"th",9),e.SDv(22,15),e.qZA(),e.TgZ(23,"th",9),e.SDv(24,16),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"tbody"),e.YNc(26,V,15,9,"tr",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",18),e.TgZ(28,"nav",19),e.TgZ(29,"ul",20),e.TgZ(30,"li",21),e.TgZ(31,"span",22),e.SDv(32,23),e.qZA(),e.qZA(),e.TgZ(33,"li",24),e.TgZ(34,"select",25),e.NdJ("ngModelChange",function(o){return n.pageLimit=o})("ngModelChange",function(){return n.onPageSelected()}),e.TgZ(35,"option",26),e._uU(36,"5"),e.qZA(),e.TgZ(37,"option",27),e._uU(38,"10"),e.qZA(),e.TgZ(39,"option",28),e._uU(40,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"li",29),e.TgZ(42,"button",30),e.NdJ("click",function(){return n.prePage()}),e._UZ(43,"i",31),e.TgZ(44,"span"),e.SDv(45,32),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"li",33),e.TgZ(47,"button",30),e.NdJ("click",function(){return n.nextPage()}),e.TgZ(48,"span"),e.SDv(49,34),e.qZA(),e._UZ(50,"i",35),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",36),e.TgZ(52,"div",37),e.TgZ(53,"div",38),e.TgZ(54,"div",39),e.TgZ(55,"h5",40),e._UZ(56,"i",41),e.TgZ(57,"span"),e.SDv(58,42),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",43),e.SDv(60,44),e.qZA(),e.TgZ(61,"div",45),e.TgZ(62,"button",46),e.SDv(63,47),e.qZA(),e.TgZ(64,"button",48),e.NdJ("click",function(){return n.deleteIntervals()}),e.SDv(65,49),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",n.toolbars),e.xp6(6),e.Q6J("ngIf",n.enableSelectAll),e.xp6(14),e.Q6J("ngForOf",n.intervalList),e.xp6(8),e.Q6J("ngModel",n.pageLimit),e.xp6(8),e.Q6J("disabled",1===n.pagination),e.xp6(5),e.Q6J("disabled",n.pageLimit>n.intervalList.length))},directives:[I.O5,I.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,s.rH],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),_})();var P=g(9827);let Ce=(()=>{class _{constructor(t,n,i,o,r){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.errSvc=r,this.interval={}}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,P.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,P.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}submit(){this.schedulerSvc.addInterval(this.interval).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("create new interval",`name: ${this.interval.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0),e.Y36(p.T))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-add-interval"]],decls:54,vars:16,consts:function(){let a,t,n,i,o,r,N;return a="Add Interval",t="Submit",n="Name",i="Start",o="End",r="Interval",N="RunOnce",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],t,[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],n,[1,"col-md-10"],["type","text","id","validationIntervalName","name","intervalName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],i,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd",1,"col-md-2","col-form-label"],o,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],N,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return n.submit()}),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"form"),e.TgZ(9,"div",7),e.TgZ(10,"label",8),e.SDv(11,9),e.qZA(),e.TgZ(12,"div",10),e.TgZ(13,"input",11),e.NdJ("ngModelChange",function(o){return n.interval.name=o}),e.qZA(),e.TgZ(14,"div",12),e.TgZ(15,"small"),e._uU(16,"the interval name can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",13),e.TgZ(18,"label",14),e.SDv(19,15),e.qZA(),e.TgZ(20,"div",10),e.TgZ(21,"div",16),e.TgZ(22,"div",17),e.TgZ(23,"span",18),e._UZ(24,"i",19),e.qZA(),e.qZA(),e.TgZ(25,"input",20),e.NdJ("ngModelChange",function(o){return n.interval.start=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",13),e.TgZ(27,"label",21),e.SDv(28,22),e.qZA(),e.TgZ(29,"div",10),e.TgZ(30,"div",16),e.TgZ(31,"div",17),e.TgZ(32,"span",18),e._UZ(33,"i",19),e.qZA(),e.qZA(),e.TgZ(34,"input",23),e.NdJ("ngModelChange",function(o){return n.interval.end=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",13),e.TgZ(36,"label",24),e.TgZ(37,"span",25),e.SDv(38,26),e.qZA(),e._UZ(39,"span",27),e.qZA(),e.TgZ(40,"div",10),e.TgZ(41,"input",28),e.NdJ("ngModelChange",function(o){return n.interval.interval=o}),e.qZA(),e.TgZ(42,"div",29),e.TgZ(43,"small"),e._uU(44,"the interval interval can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(45,"div",13),e.TgZ(46,"label",30),e.SDv(47,31),e.qZA(),e.TgZ(48,"div",10),e.TgZ(49,"select",32),e.NdJ("ngModelChange",function(o){return n.interval.runOnce=o}),e.TgZ(50,"option",33),e._uU(51,"false"),e.qZA(),e.TgZ(52,"option",33),e._uU(53,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!n.interval.name||!n.interval.interval),e.xp6(8),e.ekj("is-invalid",!n.interval.name)("is-valid",n.interval.name),e.Q6J("ngModel",n.interval.name),e.xp6(12),e.Q6J("ngModel",n.interval.start),e.xp6(9),e.Q6J("ngModel",n.interval.end),e.xp6(7),e.ekj("is-invalid",!n.interval.interval)("is-valid",n.interval.interval),e.Q6J("ngModel",n.interval.interval),e.xp6(8),e.Q6J("ngModel",n.interval.runOnce),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),_})();function Ne(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",8),e.TgZ(2,"label",9),e.SDv(3,10),e.qZA(),e.TgZ(4,"div",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().interval.name=i}),e.qZA(),e.TgZ(6,"div",13),e.TgZ(7,"small"),e._uU(8,"the interval name can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",14),e.TgZ(10,"label",15),e.SDv(11,16),e.qZA(),e.TgZ(12,"div",11),e.TgZ(13,"div",17),e.TgZ(14,"div",18),e.TgZ(15,"span",19),e._UZ(16,"i",20),e.qZA(),e.qZA(),e.TgZ(17,"input",21),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().interval.start=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e.TgZ(19,"label",22),e.SDv(20,23),e.qZA(),e.TgZ(21,"div",11),e.TgZ(22,"div",17),e.TgZ(23,"div",18),e.TgZ(24,"span",19),e._UZ(25,"i",20),e.qZA(),e.qZA(),e.TgZ(26,"input",24),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().interval.end=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",14),e.TgZ(28,"label",25),e.TgZ(29,"span",26),e.SDv(30,27),e.qZA(),e._UZ(31,"span",28),e.qZA(),e.TgZ(32,"div",11),e.TgZ(33,"input",29),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().interval.interval=i}),e.qZA(),e.TgZ(34,"div",30),e.TgZ(35,"small"),e._uU(36,"the interval interval can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"div",14),e.TgZ(38,"label",31),e.SDv(39,32),e.qZA(),e.TgZ(40,"div",11),e.TgZ(41,"select",33),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().interval.runOnce=i}),e.TgZ(42,"option",34),e._uU(43,"false"),e.qZA(),e.TgZ(44,"option",34),e._uU(45,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(5),e.ekj("is-invalid",!t.interval.name)("is-valid",t.interval.name),e.Q6J("ngModel",t.interval.name),e.xp6(12),e.Q6J("ngModel",t.interval.start),e.xp6(9),e.Q6J("ngModel",t.interval.end),e.xp6(7),e.ekj("is-invalid",!t.interval.interval)("is-valid",t.interval.interval),e.Q6J("ngModel",t.interval.interval),e.xp6(8),e.Q6J("ngModel",t.interval.runOnce),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}let Ie=(()=>{class _{constructor(t,n,i,o,r){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.errSvc=r}ngOnInit(){this.route.queryParams.subscribe(t=>{t.intervalName&&this.schedulerSvc.findIntervalByName(t.intervalName).subscribe(n=>{this.errSvc.handleErrorForAPI(n)||(this.interval=n.interval,this.interval.runOnce=!!this.interval.runOnce,setTimeout(()=>{this.initDatePickr()},300))})})}initDatePickr(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.calendarStart=(0,P.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,P.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}update(){this.schedulerSvc.updateInterval(this.interval).subscribe(t=>{var n;this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("update interval",`name: ${null===(n=this.interval)||void 0===n?void 0:n.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0),e.Y36(p.T))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-edit-interval"]],decls:10,vars:3,consts:function(){let a,t,n,i,o,r,N;return a="Edit Interval",t="Submit",n="Name",i="Start",o="End",r="Interval",N="RunOnce",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],t,[1,"card-body"],[4,"ngIf"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],n,[1,"col-md-10"],["type","text","name","intervalName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],i,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd2",1,"col-md-2","col-form-label"],o,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","ISO8601 duration format","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],N,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e._uU(5),e.TgZ(6,"button",4),e.NdJ("click",function(){return n.update()}),e.SDv(7,5),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e.YNc(9,Ne,46,15,"form",7),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.hij(" ",null==n.interval?null:n.interval.name," "),e.xp6(1),e.Q6J("disabled",!(null!=n.interval&&n.interval.name)),e.xp6(3),e.Q6J("ngIf",n.interval))},directives:[I.O5,l._Y,l.JL,l.F,l.Fj,l.JJ,l.On,l.Q7,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),_})(),ue=(()=>{class _{constructor(){}ngOnInit(){}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-interval-action-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[s.lC],styles:[""]}),_})();const ve=function(_){return{intervalName:_}};function me(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",23),e.NdJ("click",function(i){const r=e.CHM(t).$implicit;return e.oxw().selectOne(i,r)}),e.qZA(),e.qZA(),e.TgZ(3,"td",61),e._uU(4),e.qZA(),e.TgZ(5,"td",61),e._uU(6),e.qZA(),e.TgZ(7,"td"),e.TgZ(8,"a",62),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"td"),e._uU(11),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.ekj("table-active",n.isChecked(t.name)),e.xp6(2),e.Q6J("checked",n.isChecked(t.name)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("queryParams",e.VKq(8,ve,t.intervalName)),e.xp6(1),e.Oqu(t.intervalName),e.xp6(2),e.Oqu(t.address.type)}}let fe=(()=>{class _{constructor(t,n,i,o){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.intervalActionList=[],this.intervalActionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(t=>{t.intervalName||this.findIntervalActionsPagination()})}refresh(){this.schedulerSvc.findAllIntervalActionsPagination(0,this.pageLimit).subscribe(t=>{this.intervalActionList=t.actions,this.msgSvc.success("refresh"),this.resetPagination()})}findIntervalActionsPagination(){this.schedulerSvc.findAllIntervalActionsPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.intervalActionList=t.actions})}isCheckedAll(){let t=!0;return this.intervalActionList&&0===this.intervalActionList.length&&(t=!1),this.intervalActionList.forEach(n=>{-1===this.intervalActionSelected.findIndex(i=>i.name===n.name)&&(t=!1)}),t}selectAll(t){this.intervalActionList.forEach(t.target.checked?i=>{-1===this.intervalActionSelected.findIndex(o=>o.name===i.name)&&this.intervalActionSelected.push(i)}:i=>{let o=this.intervalActionSelected.findIndex(r=>r.name===i.name);-1!==o&&this.intervalActionSelected.splice(o,1)})}isChecked(t){return this.intervalActionSelected.findIndex(n=>n.name===t)>=0}selectOne(t,n){if(t.target.checked)return void this.intervalActionSelected.push(n);let o=this.intervalActionSelected.findIndex(r=>r.name===n.name);-1!==o&&this.intervalActionSelected.splice(o,1)}edit(){this.router.navigate(["../edit-interval-action"],{relativeTo:this.route,queryParams:{intervalActionName:this.intervalActionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervalActions(){this.intervalActionSelected.forEach((t,n)=>{this.schedulerSvc.deleteIntervalActionByName(t.name).subscribe(()=>{this.intervalActionList.forEach((i,o)=>{i.name!==t.name||this.intervalActionList.splice(o,1)}),this.intervalActionSelected.splice(n,1),this.msgSvc.success("delete",`name: ${t.name}`),this.resetPagination(),this.findIntervalActionsPagination()})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalActionsPagination()}prePage(){this.setPagination(-1),this.findIntervalActionsPagination()}nextPage(){this.setPagination(1),this.findIntervalActionsPagination()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-interval-action-list"]],decls:84,vars:7,consts:function(){let a,t,n,i,o,r,N,A,v,m,f,S,R,Z,L,M;return a="Interval Action List",t="Refresh",n="Add",i="Edit",o="Delete",r="ID",N="Name",A="AssociatedInterval",v="AddressType",m="items per page",f="Previous",S="Next",R="Warning",Z="The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F",L="Cancel",M="Confirm",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],a,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],t,["type","button","routerLink","../add-interval-action",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],n,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],i,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],o,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],r,N,A,v,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],m,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],f,[1,"page-item"],S,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],R,[1,"modal-body"],Z,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],L,["type","button",1,"btn","btn-danger",3,"click"],M,[1,"user-select-all"],["routerLink","../../interval-center",3,"queryParams"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return n.refresh()}),e.TgZ(9,"span"),e._UZ(10,"i",8),e.TgZ(11,"span"),e.SDv(12,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",10),e.TgZ(14,"span"),e._UZ(15,"i",11),e.TgZ(16,"span"),e.SDv(17,12),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"button",13),e.NdJ("click",function(){return n.edit()}),e.TgZ(19,"span"),e._UZ(20,"i",14),e.TgZ(21,"span"),e.SDv(22,15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"button",16),e.NdJ("click",function(){return n.deleteConfirm()}),e.TgZ(24,"span"),e._UZ(25,"i",17),e.TgZ(26,"span"),e.SDv(27,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",19),e.TgZ(29,"table",20),e.TgZ(30,"thead",21),e.TgZ(31,"tr"),e.TgZ(32,"th",22),e.TgZ(33,"input",23),e.NdJ("click",function(o){return n.selectAll(o)}),e.qZA(),e.qZA(),e.TgZ(34,"th",22),e.SDv(35,24),e.qZA(),e.TgZ(36,"th",22),e.SDv(37,25),e.qZA(),e.TgZ(38,"th",22),e.SDv(39,26),e.qZA(),e.TgZ(40,"th",22),e.SDv(41,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"tbody"),e.YNc(43,me,12,10,"tr",28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",29),e.TgZ(45,"nav",30),e.TgZ(46,"ul",31),e.TgZ(47,"li",32),e.TgZ(48,"span",33),e.SDv(49,34),e.qZA(),e.qZA(),e.TgZ(50,"li",35),e.TgZ(51,"select",36),e.NdJ("ngModelChange",function(o){return n.pageLimit=o})("ngModelChange",function(){return n.onPageSelected()}),e.TgZ(52,"option",37),e._uU(53,"5"),e.qZA(),e.TgZ(54,"option",38),e._uU(55,"10"),e.qZA(),e.TgZ(56,"option",39),e._uU(57,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"li",40),e.TgZ(59,"button",41),e.NdJ("click",function(){return n.prePage()}),e._UZ(60,"i",42),e.TgZ(61,"span"),e.SDv(62,43),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"li",44),e.TgZ(64,"button",41),e.NdJ("click",function(){return n.nextPage()}),e.TgZ(65,"span"),e.SDv(66,45),e.qZA(),e._UZ(67,"i",46),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"div",47),e.TgZ(69,"div",48),e.TgZ(70,"div",49),e.TgZ(71,"div",50),e.TgZ(72,"h5",51),e._UZ(73,"i",52),e.TgZ(74,"span"),e.SDv(75,53),e.qZA(),e.qZA(),e.qZA(),e.TgZ(76,"div",54),e.TgZ(77,"span"),e.SDv(78,55),e.qZA(),e.qZA(),e.TgZ(79,"div",56),e.TgZ(80,"button",57),e.SDv(81,58),e.qZA(),e.TgZ(82,"button",59),e.NdJ("click",function(){return n.deleteIntervalActions()}),e.SDv(83,60),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(18),e.Q6J("disabled",1!==n.intervalActionSelected.length),e.xp6(5),e.Q6J("disabled",0===n.intervalActionSelected.length),e.xp6(10),e.Q6J("checked",n.isCheckedAll()),e.xp6(10),e.Q6J("ngForOf",n.intervalActionList),e.xp6(8),e.Q6J("ngModel",n.pageLimit),e.xp6(8),e.Q6J("disabled",1===n.pagination),e.xp6(5),e.Q6J("disabled",n.pageLimit>n.intervalActionList.length))},directives:[s.rH,I.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,s.yS],styles:[""]}),_})();function Se(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(i){return e.CHM(t),e.oxw().close(i)}),e.qZA()}}let U=(()=>{class _{constructor(){this.visible=!1,this.validate=!1,this.intervalSelectedEvent=new e.vpe,this.selectedInterval={}}ngOnInit(){}onSingleIntervalSelected(t){this.selectedInterval=t,this.intervalSelectedEvent.emit(t)}close(t){t.stopPropagation(),this.visible=!1}toggle(t){t.stopImmediatePropagation(),this.visible=!this.visible}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-interval-combo-list"]],inputs:{validate:"validate",selectedInterval:"selectedInterval"},outputs:{intervalSelectedEvent:"intervalSelectedEvent"},decls:12,vars:11,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"click"],["type","text","name","selectedInterval","readonly","readonly","maxlength","0","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"combo-body","shadow","rounded"],[3,"singleIntervalSelected","enableSelectAll","toolbars","singleIntervalSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(t,n){1&t&&(e.YNc(0,Se,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("click",function(o){return n.toggle(o)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(o){return n.selectedInterval.name=o}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.TgZ(7,"div",7),e.TgZ(8,"small"),e._uU(9,"the interval name can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",8),e.TgZ(11,"app-interval-list",9),e.NdJ("singleIntervalSelectedEvent",function(o){return n.onSingleIntervalSelected(o)}),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",n.visible),e.xp6(3),e.ekj("is-invalid",!n.selectedInterval.name&&n.validate)("is-valid",n.selectedInterval.name&&n.validate),e.Q6J("ngModel",n.selectedInterval.name),e.xp6(7),e.Udp("display",n.visible?"":"none"),e.xp6(1),e.Q6J("singleIntervalSelected",n.selectedInterval)("enableSelectAll",!1)("toolbars",!1))},directives:[I.O5,l.Fj,l.nD,l.Q7,l.JJ,l.On,y],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),_})();var x=g(9549);function Re(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"span",91),e.NdJ("click",function(){return e.CHM(t),e.oxw().templateToggle("coredata")}),e.SDv(2,92),e.qZA(),e.TgZ(3,"span",91),e.NdJ("click",function(){return e.CHM(t),e.oxw().templateToggle("command")}),e.SDv(4,93),e.qZA(),e.TgZ(5,"span",91),e.NdJ("click",function(){return e.CHM(t),e.oxw().templateToggle("custom")}),e.SDv(6,94),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(1),e.ekj("badge-secondary","coredata"!==t.templateSelected)("badge-primary","coredata"===t.templateSelected),e.xp6(2),e.ekj("badge-secondary","command"!==t.templateSelected)("badge-primary","command"===t.templateSelected),e.xp6(2),e.ekj("badge-secondary","custom"!==t.templateSelected)("badge-primary","custom"===t.templateSelected)}}function Ze(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",17),e.TgZ(2,"label",101),e.SDv(3,102),e.qZA(),e.TgZ(4,"div",14),e.TgZ(5,"select",103),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.httpMethod=i}),e.TgZ(6,"option",104),e._uU(7,"GET"),e.qZA(),e.TgZ(8,"option",105),e._uU(9,"POST"),e.qZA(),e.TgZ(10,"option",106),e._uU(11,"PUT"),e.qZA(),e.TgZ(12,"option",107),e._uU(13,"DELETE"),e.qZA(),e.TgZ(14,"option",108),e._uU(15,"PATCH"),e.qZA(),e.TgZ(16,"option",109),e._uU(17,"HEAD"),e.qZA(),e.TgZ(18,"option",110),e._uU(19,"TRACE"),e.qZA(),e.TgZ(20,"option",111),e._uU(21,"CONNECT"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",11),e.TgZ(23,"label",112),e.SDv(24,113),e.qZA(),e.TgZ(25,"div",14),e.TgZ(26,"input",114),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.host=i}),e.qZA(),e.TgZ(27,"div",115),e.TgZ(28,"small"),e._uU(29,"the REST address host can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",11),e.TgZ(31,"label",116),e.SDv(32,117),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"input",118),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.port=i}),e.qZA(),e.TgZ(35,"div",119),e.TgZ(36,"small"),e.SDv(37,120),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",17),e.TgZ(39,"label",121),e.SDv(40,122),e.qZA(),e.TgZ(41,"div",14),e.TgZ(42,"input",123),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(43,"div",17),e.TgZ(44,"label",50),e.TgZ(45,"span",51),e.SDv(46,124),e.qZA(),e._UZ(47,"span",53),e.qZA(),e.TgZ(48,"div",14),e.TgZ(49,"input",54),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.content=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",17),e.TgZ(51,"label",55),e.TgZ(52,"span",51),e._uU(53,"ContentType"),e.qZA(),e._UZ(54,"span",56),e.qZA(),e.TgZ(55,"div",14),e.TgZ(56,"input",57),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(21),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(8),e.Q6J("ngModel",t.intervalAction.address.path),e.xp6(7),e.Q6J("ngModel",t.intervalAction.content),e.xp6(7),e.Q6J("ngModel",t.intervalAction.contentType)}}function Le(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",17),e.TgZ(2,"label",101),e.SDv(3,125),e.qZA(),e.TgZ(4,"div",14),e.TgZ(5,"select",103),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.httpMethod=i}),e.TgZ(6,"option",107),e._uU(7,"DELETE"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",11),e.TgZ(9,"label",112),e.TgZ(10,"span",51),e._uU(11,"Host"),e.qZA(),e._UZ(12,"span",126),e.qZA(),e.TgZ(13,"div",14),e.TgZ(14,"input",114),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.host=i}),e.qZA(),e.TgZ(15,"div",115),e.TgZ(16,"small"),e.SDv(17,127),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",11),e.TgZ(19,"label",116),e.SDv(20,128),e.qZA(),e.TgZ(21,"div",14),e.TgZ(22,"input",118),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.port=i}),e.qZA(),e.TgZ(23,"div",119),e.TgZ(24,"small"),e.SDv(25,129),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",17),e.TgZ(27,"label",121),e.TgZ(28,"span",51),e.SDv(29,130),e.qZA(),e._UZ(30,"span",131),e.qZA(),e.TgZ(31,"div",14),e.TgZ(32,"input",132),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",17),e.TgZ(34,"label",133),e.SDv(35,134),e.qZA(),e.TgZ(36,"div",14),e.TgZ(37,"div",135),e.TgZ(38,"div",136),e.TgZ(39,"span",137),e._UZ(40,"i",138),e.qZA(),e.qZA(),e.TgZ(41,"input",139),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).coredataRequestParameter=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(9),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(10),e.Q6J("ngModel",t.intervalAction.address.path),e.xp6(9),e.Q6J("ngModel",t.coredataRequestParameter)}}function Me(_,a){1&_&&(e.TgZ(0,"div"),e._uU(1," no paramters. "),e.qZA())}function he(_,a){if(1&_&&(e.TgZ(0,"select",157),e.TgZ(1,"option",78),e._uU(2,"false"),e.qZA(),e.TgZ(3,"option",78),e._uU(4,"true"),e.qZA(),e.qZA()),2&_){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function Oe(_,a){if(1&_&&e._UZ(0,"input",158),2&_){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.MGl("placeholder","valueType: ",t.valueType,"")}}function De(_,a){if(1&_&&(e.TgZ(0,"div"),e.TgZ(1,"div",17),e.TgZ(2,"label",153),e.SDv(3,154),e.qZA(),e.TgZ(4,"div",14),e.YNc(5,he,5,4,"select",155),e.YNc(6,Oe,1,3,"ng-template",null,156,e.W1O),e.qZA(),e.qZA(),e.qZA()),2&_){const t=a.$implicit,n=e.MAs(7);e.xp6(2),e.s9C("for",t.resourceName),e.xp6(1),e.pQV(t.resourceName),e.QtT(3),e.xp6(2),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",n)}}function Pe(_,a){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,Me,2,0,"div",38),e.YNc(2,De,8,4,"div",152),e.qZA()),2&_){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",0==t.commandServiceTemplateRequestParameters.length),e.xp6(1),e.Q6J("ngForOf",t.commandServiceTemplateRequestParameters)}}function be(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",17),e.TgZ(1,"label",159),e.TgZ(2,"span",51),e.SDv(3,160),e.qZA(),e._UZ(4,"span",161),e.qZA(),e.TgZ(5,"div",14),e.TgZ(6,"select",162),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(4).pushEventOfGetCmdParamter=i}),e.TgZ(7,"option",163),e._uU(8,"true"),e.qZA(),e.TgZ(9,"option",164),e._uU(10,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",17),e.TgZ(12,"label",165),e.TgZ(13,"span",51),e.SDv(14,166),e.qZA(),e._UZ(15,"span",167),e.qZA(),e.TgZ(16,"div",14),e.TgZ(17,"select",168),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(4).returnEventOfGetCmdParamter=i}),e.TgZ(18,"option",163),e._uU(19,"true"),e.qZA(),e.TgZ(20,"option",164),e._uU(21,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(4);e.xp6(6),e.Q6J("ngModel",t.pushEventOfGetCmdParamter),e.xp6(11),e.Q6J("ngModel",t.returnEventOfGetCmdParamter)}}function qe(_,a){if(1&_&&(e.TgZ(0,"div",17),e.TgZ(1,"label",121),e.SDv(2,149),e.qZA(),e.TgZ(3,"div",14),e.TgZ(4,"div",6),e.TgZ(5,"div",1),e.TgZ(6,"span"),e._uU(7,"Command Parameters Setting"),e.qZA(),e.qZA(),e.TgZ(8,"div",4),e.YNc(9,Pe,3,2,"div",150),e.YNc(10,be,22,2,"ng-template",null,151,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_){const t=e.MAs(11),n=e.oxw(3);e.xp6(9),e.Q6J("ngIf","PUT"==n.intervalAction.address.httpMethod)("ngIfElse",t)}}function Ve(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",17),e.TgZ(2,"label",101),e.TgZ(3,"span",51),e.SDv(4,140),e.qZA(),e._UZ(5,"span",141),e.qZA(),e.TgZ(6,"div",14),e.TgZ(7,"input",142),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.httpMethod=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",11),e.TgZ(9,"label",112),e.TgZ(10,"span",51),e._uU(11,"Host"),e.qZA(),e._UZ(12,"span",126),e.qZA(),e.TgZ(13,"div",14),e.TgZ(14,"input",114),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.host=i}),e.qZA(),e.TgZ(15,"div",115),e.TgZ(16,"small"),e.SDv(17,143),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",11),e.TgZ(19,"label",116),e.SDv(20,144),e.qZA(),e.TgZ(21,"div",14),e.TgZ(22,"input",118),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.port=i}),e.qZA(),e.TgZ(23,"div",119),e.TgZ(24,"small"),e.SDv(25,145),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",17),e.TgZ(27,"label",121),e.SDv(28,146),e.qZA(),e.TgZ(29,"div",14),e.TgZ(30,"app-device-core-command-combo-list",147),e.NdJ("cmdMethodEvent",function(i){return e.CHM(t),e.oxw(2).onCmdMethodSelected(i)})("commandSelectedEvent",function(i){return e.CHM(t),e.oxw(2).onCommandSelected(i)}),e.qZA(),e.qZA(),e.qZA(),e.YNc(31,qe,12,2,"div",148),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(7),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(7),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(8),e.Q6J("validate",!0),e.xp6(1),e.Q6J("ngIf",t.intervalAction.address.path&&t.intervalAction.address.httpMethod)}}function $e(_,a){if(1&_&&(e.TgZ(0,"div",null,95),e.TgZ(2,"div",96),e.YNc(3,Ze,57,14,"ng-template",97,98,e.W1O),e.YNc(5,Le,42,13,"ng-template",97,99,e.W1O),e.YNc(7,Ve,32,13,"ng-template",97,100,e.W1O),e.qZA(),e.qZA()),2&_){const t=e.oxw();e.xp6(2),e.Q6J("ngSwitch",t.templateSelected),e.xp6(1),e.Q6J("ngSwitchCase","custom"),e.xp6(2),e.Q6J("ngSwitchCase","coredata"),e.xp6(2),e.Q6J("ngSwitchCase","command")}}let ye=(()=>{class _{constructor(t,n,i,o,r){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="coredata",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="yes",this.returnEventOfGetCmdParamter="yes",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={adminState:"UNLOCKED"},this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}ngOnInit(){this.renderPopoverComponent(),this.renderCoredataDefaultTemplate()}initDatePickr(){let t=this;this.calendarStart=(0,P.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(n,i,o){t.intervalAction.address.path=t.coredataSvcAvailableAPI[0]+i}})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(t){switch(this.templateSelected=t,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.httpMethod="",this.intervalAction.address.host="edgex-core-command",this.intervalAction.address.port=59882,this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300),this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}typeToggle(t){this.intervalAction.address.type=t,"REST"===t&&this.templateToggle("coredata")}onCmdMethodSelected(t){this.intervalAction.address.httpMethod=t,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(t){this.intervalAction.address.path=t.path,this.commandServiceTemplateRequestParameters=t.parameters}onSingleIntervalSelected(t){this.intervalAction.intervalName=t.name}isPureIntegerType(t){return!isNaN(t)&&parseFloat(t)===parseInt(t)}validate(){let t=!0,n=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:n&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(t=!1);break;case this.addr_type_MQTT:n&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(t=!1);break;case this.addr_type_EMAIL:n&&(t=!1)}return t}getAllCmdTemplateParametersValue(){var t;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let n={};return null===(t=this.commandServiceTemplateRequestParameters)||void 0===t||t.forEach(i=>{""!==$(`#cmd-param-${i.resourceName}`).val().trim()&&(n[i.resourceName]=$(`#cmd-param-${i.resourceName}`).val().trim())}),JSON.stringify(n)}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}submit(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.addIntervalAction(this.intervalAction).subscribe(t=>{this.errorSvc.handleErrorForAPI(t)||(this.msgSvc.success("Add interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0),e.Y36(p.T))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-add-interval-action"]],decls:176,vars:63,consts:function(){let a,t,n,i,o,r,N,A,v,m,f,S,R,Z,L,M,c,E,C,J,G,k,X,Q,w,F,z,Y,j,K,B,W,ee,te,ne,ie,oe,_e,ae,le,de,re,se,Te,Ae,ce,ge,pe;return a="Tips",t=" The support scheduler micro service provide an internal EdgeX \u201Cclock\u201D that can kick off operations in any EdgeX service. At a configuration specified time (called an interval), the service calls on any EdgeX service API URL via REST to trigger an operation (called an interval action). For example, the scheduling service periodically calls on core data APIs to clean up old sensed events that have been successfully exported out of EdgeX. " + "\ufffd#7\ufffd\ufffd/#7\ufffd" + " Users also can call the API of command service to collect one device's data automatically. ",n="Add Interval Action",i="Submit",o="Name",r="IntervalName",N="AdminState",A="Address",v="Host",m="the MQTT host can't be empty!",f="Port",S="the MQTT port can't be empty and only pure integer is supported!!",R="Content",Z="Publisher",L="the MQTT publisher can't be empty!",M="Topic",c="the MQTT topic can't be empty!",E="QoS",C="KeepAlive",J="Retained",G="AutoReconnect",k="ConnectTimeout",X="EmailRecipients",Q="Content",w="CoreDataSeviceTemplate",F="CommandServiceTemplate",z="CustomTemplate",Y="HttpMethod",j="Host",K="Port",B="the REST address port can't be empty and only pure integer is supported!",W="Path",ee="Content",te="HttpMethod",ne="the REST address host can't be empty!",ie="Port",oe="the REST address port can't be empty and only pure integer is supported!",_e="Path",ae="Parameter",le="HttpMethod",de="the REST address host can't be empty!",re="Port",se="the REST address port can't be empty and only pure integer is supported!",Te="Path",Ae="Parameters",ce="" + "\ufffd0\ufffd" + "",ge="pushevent",pe="returnevent",[[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],a,[1,"card-body"],t,[1,"card"],[1,"fa","fa-plus","text-danger","mr-1"],n,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],i,[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],o,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],r,[1,"mb-3"],[3,"validate","intervalSelectedEvent"],["for","adminState",1,"col-md-2","col-form-label"],N,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],A,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","REST",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["MQTT",""],["for","addressHostMQTT","required","",1,"col-md-2","col-form-label"],v,["type","text","id","addressHostMQTT","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostMQTTFeedback",1,"invalid-feedback"],m,["for","addressPortMQTT","required","",1,"col-md-2","col-form-label"],f,["type","text","id","addressPortMQTT","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortMQTTFeedback",1,"invalid-feedback"],S,["for","Content",1,"col-md-2","col-form-label"],[1,"mr-2"],R,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],["for","addressPublisher","required","",1,"col-md-2","col-form-label"],Z,["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],L,["for","addressTopic","required","",1,"col-md-2","col-form-label"],M,["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],c,["for","addressQoS",1,"col-md-2","col-form-label"],E,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","only pure integer supported!",1,"fa","fa-question-circle-o","fa-lg"],["type","number","id","addressQoS","name","addressQoS",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive",1,"col-md-2","col-form-label"],C,["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],J,["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],G,["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],k,["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],X,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],Q,["role","button",1,"badge","mr-2",3,"click"],w,F,z,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],Y,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],j,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],K,["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],B,["for","addressPath","required","",1,"col-md-2","col-form-label"],W,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],ee,te,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],ne,ie,oe,_e,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],ae,[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],le,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],de,re,se,Te,[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],Ae,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],ce,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],ge,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","true indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","true"],["value","false"],["for","ds-returnevent",1,"col-md-2","col-form-label"],pe,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.tHW(6,5),e._UZ(7,"br"),e.N_p(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e.TgZ(9,"div",1),e._UZ(10,"i",7),e.TgZ(11,"span"),e.SDv(12,8),e.qZA(),e.TgZ(13,"button",9),e.NdJ("click",function(){return n.submit()}),e.SDv(14,10),e.qZA(),e.qZA(),e.TgZ(15,"div",4),e.TgZ(16,"form"),e.TgZ(17,"div",11),e.TgZ(18,"label",12),e.SDv(19,13),e.qZA(),e.TgZ(20,"div",14),e.TgZ(21,"input",15),e.NdJ("ngModelChange",function(o){return n.intervalAction.name=o}),e.qZA(),e.TgZ(22,"div",16),e.TgZ(23,"small"),e._uU(24,"the interval action name can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",17),e.TgZ(26,"label",18),e.SDv(27,19),e.qZA(),e.TgZ(28,"div",14),e.TgZ(29,"div",20),e.TgZ(30,"app-interval-combo-list",21),e.NdJ("intervalSelectedEvent",function(o){return n.onSingleIntervalSelected(o)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",17),e.TgZ(32,"label",22),e.SDv(33,23),e.qZA(),e.TgZ(34,"div",14),e.TgZ(35,"select",24),e.NdJ("ngModelChange",function(o){return n.intervalAction.adminState=o}),e.TgZ(36,"option",25),e._uU(37,"UNLOCKED"),e.qZA(),e.TgZ(38,"option",26),e._uU(39,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(40,"div",17),e.TgZ(41,"label",27),e.SDv(42,28),e.qZA(),e.TgZ(43,"div",14),e.TgZ(44,"div",6),e.TgZ(45,"div",1),e.TgZ(46,"div",29),e.TgZ(47,"span",30),e.TgZ(48,"input",31),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.type=o})("click",function(){return n.typeToggle("REST")}),e.qZA(),e.TgZ(49,"label",32),e._uU(50,"REST"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",29),e.TgZ(52,"span",30),e.TgZ(53,"input",33),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.type=o})("click",function(){return n.typeToggle("MQTT")}),e.qZA(),e.TgZ(54,"label",34),e._uU(55,"MQTT"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(56,"div",29),e.TgZ(57,"span",30),e.TgZ(58,"input",35),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.type=o})("click",function(){return n.typeToggle("EMAIL")}),e.qZA(),e.TgZ(59,"label",36),e._uU(60,"EMAIL"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(61,Re,7,12,"div",37),e.TgZ(62,"div",4),e.YNc(63,$e,9,4,"div",38),e.TgZ(64,"div",null,39),e.TgZ(66,"form"),e.TgZ(67,"div",11),e.TgZ(68,"label",40),e.SDv(69,41),e.qZA(),e.TgZ(70,"div",14),e.TgZ(71,"input",42),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.host=o}),e.qZA(),e.TgZ(72,"div",43),e.TgZ(73,"small"),e.SDv(74,44),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(75,"div",11),e.TgZ(76,"label",45),e.SDv(77,46),e.qZA(),e.TgZ(78,"div",14),e.TgZ(79,"input",47),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.port=o}),e.qZA(),e.TgZ(80,"div",48),e.TgZ(81,"small"),e.SDv(82,49),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(83,"div",17),e.TgZ(84,"label",50),e.TgZ(85,"span",51),e.SDv(86,52),e.qZA(),e._UZ(87,"span",53),e.qZA(),e.TgZ(88,"div",14),e.TgZ(89,"input",54),e.NdJ("ngModelChange",function(o){return n.intervalAction.content=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(90,"div",17),e.TgZ(91,"label",55),e.TgZ(92,"span",51),e._uU(93,"ContentType"),e.qZA(),e._UZ(94,"span",56),e.qZA(),e.TgZ(95,"div",14),e.TgZ(96,"input",57),e.NdJ("ngModelChange",function(o){return n.intervalAction.contentType=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(97,"div",11),e.TgZ(98,"label",58),e.SDv(99,59),e.qZA(),e.TgZ(100,"div",14),e.TgZ(101,"input",60),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.publisher=o}),e.qZA(),e.TgZ(102,"div",61),e.TgZ(103,"small"),e.SDv(104,62),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(105,"div",11),e.TgZ(106,"label",63),e.SDv(107,64),e.qZA(),e.TgZ(108,"div",14),e.TgZ(109,"input",65),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.topic=o}),e.qZA(),e.TgZ(110,"div",66),e.TgZ(111,"small"),e.SDv(112,67),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(113,"div",17),e.TgZ(114,"label",68),e.TgZ(115,"span",51),e.SDv(116,69),e.qZA(),e._UZ(117,"span",70),e.qZA(),e.TgZ(118,"div",14),e.TgZ(119,"input",71),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.qos=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(120,"div",17),e.TgZ(121,"label",72),e.TgZ(122,"span",51),e.SDv(123,73),e.qZA(),e._UZ(124,"span",70),e.qZA(),e.TgZ(125,"div",14),e.TgZ(126,"input",74),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.keepAlive=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(127,"div",17),e.TgZ(128,"label",75),e.SDv(129,76),e.qZA(),e.TgZ(130,"div",14),e.TgZ(131,"select",77),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.retained=o}),e.TgZ(132,"option",78),e._uU(133,"false"),e.qZA(),e.TgZ(134,"option",78),e._uU(135,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(136,"div",17),e.TgZ(137,"label",79),e.SDv(138,80),e.qZA(),e.TgZ(139,"div",14),e.TgZ(140,"select",81),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.autoReconnect=o}),e.TgZ(141,"option",78),e._uU(142,"true"),e.qZA(),e.TgZ(143,"option",78),e._uU(144,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(145,"div",17),e.TgZ(146,"label",82),e.TgZ(147,"span",51),e.SDv(148,83),e.qZA(),e._UZ(149,"span",70),e.qZA(),e.TgZ(150,"div",14),e.TgZ(151,"input",84),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.connectTimeout=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(152,"div",null,85),e.TgZ(154,"form"),e.TgZ(155,"div",17),e.TgZ(156,"label",86),e.TgZ(157,"span",51),e.SDv(158,87),e.qZA(),e._UZ(159,"span",88),e.qZA(),e.TgZ(160,"div",14),e.TgZ(161,"input",89),e.NdJ("ngModelChange",function(o){return n.addressEmailRecipients=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(162,"div",17),e.TgZ(163,"label",50),e.TgZ(164,"span",51),e.SDv(165,90),e.qZA(),e._UZ(166,"span",53),e.qZA(),e.TgZ(167,"div",14),e.TgZ(168,"input",54),e.NdJ("ngModelChange",function(o){return n.intervalAction.content=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(169,"div",17),e.TgZ(170,"label",55),e.TgZ(171,"span",51),e._uU(172,"ContentType"),e.qZA(),e._UZ(173,"span",56),e.qZA(),e.TgZ(174,"div",14),e.TgZ(175,"input",57),e.NdJ("ngModelChange",function(o){return n.intervalAction.contentType=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(13),e.Q6J("disabled",n.validate()),e.xp6(8),e.ekj("is-invalid",!n.intervalAction.name)("is-valid",n.intervalAction.name),e.Q6J("ngModel",n.intervalAction.name),e.xp6(9),e.Q6J("validate",!0),e.xp6(5),e.Q6J("ngModel",n.intervalAction.adminState),e.xp6(12),e.ekj("badge-secondary","REST"!==n.intervalAction.address.type)("badge-primary","REST"===n.intervalAction.address.type),e.xp6(1),e.Q6J("ngModel",n.intervalAction.address.type),e.xp6(4),e.ekj("badge-secondary","MQTT"!==n.intervalAction.address.type)("badge-primary","MQTT"===n.intervalAction.address.type),e.xp6(1),e.Q6J("ngModel",n.intervalAction.address.type),e.xp6(4),e.ekj("badge-secondary","EMAIL"!==n.intervalAction.address.type)("badge-primary","EMAIL"===n.intervalAction.address.type),e.xp6(1),e.Q6J("ngModel",n.intervalAction.address.type),e.xp6(3),e.Q6J("ngIf","REST"===n.intervalAction.address.type),e.xp6(2),e.Q6J("ngIf","REST"===n.intervalAction.address.type),e.xp6(1),e.Udp("display","MQTT"!==n.intervalAction.address.type?"none":""),e.xp6(7),e.ekj("is-invalid",!n.intervalAction.address.host)("is-valid",n.intervalAction.address.host),e.Q6J("ngModel",n.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!n.isPureIntegerType(n.intervalAction.address.port))("is-valid",n.isPureIntegerType(n.intervalAction.address.port)),e.Q6J("ngModel",n.intervalAction.address.port),e.xp6(10),e.Q6J("ngModel",n.intervalAction.content),e.xp6(7),e.Q6J("ngModel",n.intervalAction.contentType),e.xp6(5),e.ekj("is-invalid",!n.intervalAction.address.publisher)("is-valid",n.intervalAction.address.publisher),e.Q6J("ngModel",n.intervalAction.address.publisher),e.xp6(8),e.ekj("is-invalid",!n.intervalAction.address.topic)("is-valid",n.intervalAction.address.topic),e.Q6J("ngModel",n.intervalAction.address.topic),e.xp6(10),e.Q6J("ngModel",n.intervalAction.address.qos),e.xp6(7),e.Q6J("ngModel",n.intervalAction.address.keepAlive),e.xp6(5),e.Q6J("ngModel",n.intervalAction.address.retained),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(6),e.Q6J("ngModel",n.intervalAction.address.autoReconnect),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(8),e.Q6J("ngModel",n.intervalAction.address.connectTimeout),e.xp6(1),e.Udp("display","EMAIL"!==(null==n.intervalAction.address?null:n.intervalAction.address.type)?"none":""),e.xp6(9),e.Q6J("ngModel",n.addressEmailRecipients),e.xp6(7),e.Q6J("ngModel",n.intervalAction.content),e.xp6(7),e.Q6J("ngModel",n.intervalAction.contentType))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,U,l.EJ,l.YN,l.Kr,l._,I.O5,l.wV,I.RF,I.n9,x.P,I.sg],styles:[""]}),_})();function Ue(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",48),e.TgZ(1,"app-interval-combo-list",49),e.NdJ("intervalSelectedEvent",function(i){return e.CHM(t),e.oxw(2).onSingleIntervalSelected(i)}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(1),e.Q6J("validate",!0)("selectedInterval",t.selectedIntervalDefault)}}function xe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"span",50),e.SDv(2,51),e.qZA(),e._UZ(3,"span",52),e.TgZ(4,"span",53),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return i.templateToggle(i.template_type_coredata)}),e.SDv(5,54),e.qZA(),e.TgZ(6,"span",53),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return i.templateToggle(i.template_type_command)}),e.SDv(7,55),e.qZA(),e.TgZ(8,"span",53),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return i.templateToggle(i.template_type_custom)}),e.SDv(9,56),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(4),e.ekj("badge-secondary",t.templateSelected!==t.template_type_coredata)("badge-primary",t.templateSelected===t.template_type_coredata),e.xp6(2),e.ekj("badge-secondary",t.templateSelected!==t.template_type_command)("badge-primary",t.templateSelected===t.template_type_command),e.xp6(2),e.ekj("badge-secondary",t.templateSelected!==t.template_type_custom)("badge-primary",t.templateSelected===t.template_type_custom)}}function He(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",14),e.TgZ(2,"label",63),e._uU(3,"HttpMethod"),e.qZA(),e.TgZ(4,"div",11),e.TgZ(5,"select",64),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.httpMethod=i}),e.TgZ(6,"option",65),e._uU(7,"GET"),e.qZA(),e.TgZ(8,"option",66),e._uU(9,"POST"),e.qZA(),e.TgZ(10,"option",67),e._uU(11,"PUT"),e.qZA(),e.TgZ(12,"option",68),e._uU(13,"DELETE"),e.qZA(),e.TgZ(14,"option",69),e._uU(15,"PATCH"),e.qZA(),e.TgZ(16,"option",70),e._uU(17,"HEAD"),e.qZA(),e.TgZ(18,"option",71),e._uU(19,"TRACE"),e.qZA(),e.TgZ(20,"option",72),e._uU(21,"CONNECT"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",8),e.TgZ(23,"label",73),e._uU(24,"Host"),e.qZA(),e.TgZ(25,"div",11),e.TgZ(26,"input",74),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.host=i}),e.qZA(),e.TgZ(27,"div",75),e.TgZ(28,"small"),e._uU(29,"the REST address host can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",8),e.TgZ(31,"label",76),e._uU(32,"Port"),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"input",77),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.port=i}),e.qZA(),e.TgZ(35,"div",78),e.TgZ(36,"small"),e._uU(37,"the REST address port can't be empty and only pure integer is supported!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",14),e.TgZ(39,"label",79),e._uU(40,"Path"),e.qZA(),e.TgZ(41,"div",11),e.TgZ(42,"input",80),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(43,"div",14),e.TgZ(44,"label",41),e.TgZ(45,"span",38),e.SDv(46,81),e.qZA(),e._UZ(47,"span",43),e.qZA(),e.TgZ(48,"div",11),e.TgZ(49,"input",44),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.content=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"label",45),e.TgZ(52,"span",38),e._uU(53,"ContentType"),e.qZA(),e._UZ(54,"span",46),e.qZA(),e.TgZ(55,"div",11),e.TgZ(56,"input",47),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(3);e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(21),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(8),e.Q6J("ngModel",t.intervalAction.address.path),e.xp6(7),e.Q6J("ngModel",t.intervalAction.content),e.xp6(7),e.Q6J("ngModel",t.intervalAction.contentType)}}function Je(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",14),e.TgZ(2,"label",63),e._uU(3,"HttpMethod"),e.qZA(),e.TgZ(4,"div",11),e.TgZ(5,"select",64),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.httpMethod=i}),e.TgZ(6,"option",68),e._uU(7,"DELETE"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",8),e.TgZ(9,"label",73),e.TgZ(10,"span",38),e._uU(11,"Host"),e.qZA(),e._UZ(12,"span",82),e.qZA(),e.TgZ(13,"div",11),e.TgZ(14,"input",74),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.host=i}),e.qZA(),e.TgZ(15,"div",75),e.TgZ(16,"small"),e._uU(17,"the REST address host can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",8),e.TgZ(19,"label",76),e._uU(20,"Port"),e.qZA(),e.TgZ(21,"div",11),e.TgZ(22,"input",77),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.port=i}),e.qZA(),e.TgZ(23,"div",78),e.TgZ(24,"small"),e._uU(25,"the REST address port can't be empty and only pure integer is supported!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",14),e.TgZ(27,"label",79),e.TgZ(28,"span",38),e._uU(29,"Path"),e.qZA(),e._UZ(30,"span",83),e.qZA(),e.TgZ(31,"div",11),e.TgZ(32,"input",84),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"label",85),e._uU(35,"Parameter"),e.qZA(),e.TgZ(36,"div",11),e.TgZ(37,"div",86),e.TgZ(38,"div",87),e.TgZ(39,"span",88),e._UZ(40,"i",89),e.qZA(),e.qZA(),e.TgZ(41,"input",90),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).coredataRequestParameter=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(3);e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(9),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(10),e.Q6J("ngModel",t.intervalAction.address.path),e.xp6(9),e.Q6J("ngModel",t.coredataRequestParameter)}}function Ge(_,a){1&_&&(e.TgZ(0,"div"),e._uU(1," no paramters. "),e.qZA())}function ke(_,a){if(1&_&&(e.TgZ(0,"select",103),e.TgZ(1,"option",104),e._uU(2,"false"),e.qZA(),e.TgZ(3,"option",104),e._uU(4,"true"),e.qZA(),e.qZA()),2&_){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function Xe(_,a){if(1&_&&e._UZ(0,"input",105),2&_){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.MGl("placeholder","valueType: ",t.valueType,"")}}function Qe(_,a){if(1&_&&(e.TgZ(0,"div"),e.TgZ(1,"div",14),e.TgZ(2,"label",99),e.SDv(3,100),e.qZA(),e.TgZ(4,"div",11),e.YNc(5,ke,5,4,"select",101),e.YNc(6,Xe,1,3,"ng-template",null,102,e.W1O),e.qZA(),e.qZA(),e.qZA()),2&_){const t=a.$implicit,n=e.MAs(7);e.xp6(2),e.s9C("for",t.resourceName),e.xp6(1),e.pQV(t.resourceName),e.QtT(3),e.xp6(2),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",n)}}function we(_,a){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,Ge,2,0,"div",35),e.YNc(2,Qe,8,4,"div",98),e.qZA()),2&_){const t=e.oxw(5);e.xp6(1),e.Q6J("ngIf",0==t.commandServiceTemplateRequestParameters.length),e.xp6(1),e.Q6J("ngForOf",t.commandServiceTemplateRequestParameters)}}function Fe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"label",106),e.TgZ(2,"span",38),e.SDv(3,107),e.qZA(),e._UZ(4,"span",108),e.qZA(),e.TgZ(5,"div",11),e.TgZ(6,"select",109),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(5).pushEventOfGetCmdParamter=i}),e.TgZ(7,"option",110),e._uU(8,"true"),e.qZA(),e.TgZ(9,"option",111),e._uU(10,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",14),e.TgZ(12,"label",112),e.TgZ(13,"span",38),e.SDv(14,113),e.qZA(),e._UZ(15,"span",114),e.qZA(),e.TgZ(16,"div",11),e.TgZ(17,"select",115),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(5).returnEventOfGetCmdParamter=i}),e.TgZ(18,"option",110),e._uU(19,"true"),e.qZA(),e.TgZ(20,"option",111),e._uU(21,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(5);e.xp6(6),e.Q6J("ngModel",t.pushEventOfGetCmdParamter),e.xp6(11),e.Q6J("ngModel",t.returnEventOfGetCmdParamter)}}function ze(_,a){if(1&_&&(e.TgZ(0,"div",14),e.TgZ(1,"label",79),e.SDv(2,95),e.qZA(),e.TgZ(3,"div",11),e.TgZ(4,"div",0),e.TgZ(5,"div",1),e.TgZ(6,"span"),e._uU(7,"Command Parameters Setting"),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.YNc(9,we,3,2,"div",96),e.YNc(10,Fe,22,2,"ng-template",null,97,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_){const t=e.MAs(11),n=e.oxw(4);e.xp6(9),e.Q6J("ngIf","PUT"==n.intervalAction.address.httpMethod)("ngIfElse",t)}}function Ye(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",14),e.TgZ(2,"label",63),e.TgZ(3,"span",38),e._uU(4,"HttpMethod"),e.qZA(),e._UZ(5,"span",91),e.qZA(),e.TgZ(6,"div",11),e.TgZ(7,"input",92),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.httpMethod=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",8),e.TgZ(9,"label",73),e.TgZ(10,"span",38),e._uU(11,"Host"),e.qZA(),e._UZ(12,"span",82),e.qZA(),e.TgZ(13,"div",11),e.TgZ(14,"input",74),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.host=i}),e.qZA(),e.TgZ(15,"div",75),e.TgZ(16,"small"),e._uU(17,"the REST address host can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",8),e.TgZ(19,"label",76),e._uU(20,"Port"),e.qZA(),e.TgZ(21,"div",11),e.TgZ(22,"input",77),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.port=i}),e.qZA(),e.TgZ(23,"div",78),e.TgZ(24,"small"),e._uU(25,"the REST address port can't be empty and only pure integer is supported!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",14),e.TgZ(27,"label",79),e._uU(28,"Path"),e.qZA(),e.TgZ(29,"div",11),e.TgZ(30,"app-device-core-command-combo-list",93),e.NdJ("cmdMethodEvent",function(i){return e.CHM(t),e.oxw(3).onCmdMethodSelected(i)})("commandSelectedEvent",function(i){return e.CHM(t),e.oxw(3).onCommandSelected(i)}),e.qZA(),e.qZA(),e.qZA(),e.YNc(31,ze,12,2,"div",94),e.qZA()}if(2&_){const t=e.oxw(3);e.xp6(7),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(7),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(8),e.Q6J("validate",!0),e.xp6(1),e.Q6J("ngIf",t.intervalAction.address.path&&t.intervalAction.address.httpMethod)}}function je(_,a){if(1&_&&(e.TgZ(0,"div",null,57),e.TgZ(2,"div",58),e.YNc(3,He,57,14,"ng-template",59,60,e.W1O),e.YNc(5,Je,42,13,"ng-template",59,61,e.W1O),e.YNc(7,Ye,32,13,"ng-template",59,62,e.W1O),e.qZA(),e.qZA()),2&_){const t=e.oxw(2);e.xp6(2),e.Q6J("ngSwitch",t.templateSelected),e.xp6(1),e.Q6J("ngSwitchCase",t.template_type_custom),e.xp6(2),e.Q6J("ngSwitchCase",t.template_type_coredata),e.xp6(2),e.Q6J("ngSwitchCase",t.template_type_command)}}function Ke(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",null,116),e.TgZ(2,"form"),e.TgZ(3,"div",8),e.TgZ(4,"label",117),e._uU(5,"Host"),e.qZA(),e.TgZ(6,"div",11),e.TgZ(7,"input",118),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.host=i}),e.qZA(),e.TgZ(8,"div",119),e.TgZ(9,"small"),e._uU(10,"the MQTT host can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",8),e.TgZ(12,"label",120),e._uU(13,"Port"),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"input",121),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.port=i}),e.qZA(),e.TgZ(16,"div",122),e.TgZ(17,"small"),e._uU(18,"the MQTT port can't be empty and only pure integer is supported!!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",14),e.TgZ(20,"label",41),e.TgZ(21,"span",38),e.SDv(22,123),e.qZA(),e._UZ(23,"span",43),e.qZA(),e.TgZ(24,"div",11),e.TgZ(25,"input",44),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.content=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",14),e.TgZ(27,"label",45),e.TgZ(28,"span",38),e._uU(29,"ContentType"),e.qZA(),e._UZ(30,"span",46),e.qZA(),e.TgZ(31,"div",11),e.TgZ(32,"input",47),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",8),e.TgZ(34,"label",124),e._uU(35,"Publisher"),e.qZA(),e.TgZ(36,"div",11),e.TgZ(37,"input",125),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.publisher=i}),e.qZA(),e.TgZ(38,"div",126),e.TgZ(39,"small"),e._uU(40,"the MQTT publisher can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",127),e._uU(43,"Topic"),e.qZA(),e.TgZ(44,"div",11),e.TgZ(45,"input",128),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.topic=i}),e.qZA(),e.TgZ(46,"div",129),e.TgZ(47,"small"),e._uU(48,"the MQTT topic can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",14),e.TgZ(50,"label",130),e._uU(51,"QoS"),e.qZA(),e.TgZ(52,"div",11),e.TgZ(53,"input",131),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.qos=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",14),e.TgZ(55,"label",132),e._uU(56,"KeepAlive"),e.qZA(),e.TgZ(57,"div",11),e.TgZ(58,"input",133),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.keepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",14),e.TgZ(60,"label",134),e._uU(61,"Retained"),e.qZA(),e.TgZ(62,"div",11),e.TgZ(63,"select",135),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.retained=i}),e.TgZ(64,"option",136),e._uU(65,"false"),e.qZA(),e.TgZ(66,"option",104),e._uU(67,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"div",14),e.TgZ(69,"label",137),e._uU(70,"AutoReconnect"),e.qZA(),e.TgZ(71,"div",11),e.TgZ(72,"select",138),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.autoReconnect=i}),e.TgZ(73,"option",136),e._uU(74,"true"),e.qZA(),e.TgZ(75,"option",104),e._uU(76,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",14),e.TgZ(78,"label",139),e._uU(79,"ConnectTimeout"),e.qZA(),e.TgZ(80,"div",11),e.TgZ(81,"input",140),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.connectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(7),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(10),e.Q6J("ngModel",t.intervalAction.content),e.xp6(7),e.Q6J("ngModel",t.intervalAction.contentType),e.xp6(5),e.ekj("is-invalid",!t.intervalAction.address.publisher)("is-valid",t.intervalAction.address.publisher),e.Q6J("ngModel",t.intervalAction.address.publisher),e.xp6(8),e.ekj("is-invalid",!t.intervalAction.address.topic)("is-valid",t.intervalAction.address.topic),e.Q6J("ngModel",t.intervalAction.address.topic),e.xp6(8),e.Q6J("ngModel",t.intervalAction.address.qos),e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.keepAlive),e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.retained),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(6),e.Q6J("ngModel",t.intervalAction.address.autoReconnect),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",t.intervalAction.address.connectTimeout)}}function Be(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",7),e.TgZ(1,"form"),e.TgZ(2,"div",8),e.TgZ(3,"label",9),e.SDv(4,10),e.qZA(),e.TgZ(5,"div",11),e.TgZ(6,"input",12),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.name=i}),e.qZA(),e.TgZ(7,"div",13),e.TgZ(8,"small"),e._uU(9,"the interval action name can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",14),e.TgZ(11,"label",15),e.SDv(12,16),e.qZA(),e.TgZ(13,"div",11),e.YNc(14,Ue,2,2,"div",17),e.qZA(),e.qZA(),e.TgZ(15,"div",14),e.TgZ(16,"label",18),e.SDv(17,19),e.qZA(),e.TgZ(18,"div",11),e.TgZ(19,"select",20),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.adminState=i}),e.TgZ(20,"option",21),e._uU(21,"UNLOCKED"),e.qZA(),e.TgZ(22,"option",22),e._uU(23,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",14),e.TgZ(25,"label",23),e.SDv(26,24),e.qZA(),e.TgZ(27,"div",11),e.TgZ(28,"div",0),e.TgZ(29,"div",1),e.TgZ(30,"div",25),e.TgZ(31,"span",26),e.TgZ(32,"input",27),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.address.type=i})("change",function(){return e.CHM(t),e.oxw().typeToggle("REST")}),e.qZA(),e.TgZ(33,"label",28),e._uU(34,"REST"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",25),e.TgZ(36,"span",29),e.NdJ("click",function(){return e.CHM(t),e.oxw().typeToggle("MQTT")}),e.TgZ(37,"input",30),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.address.type=i}),e.qZA(),e.TgZ(38,"label",31),e._uU(39,"MQTT"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(40,"div",25),e.TgZ(41,"span",29),e.NdJ("click",function(){return e.CHM(t),e.oxw().typeToggle("EMAIL")}),e.TgZ(42,"input",32),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.address.type=i}),e.qZA(),e.TgZ(43,"label",33),e._uU(44,"EMAIL"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(45,xe,10,12,"div",34),e.TgZ(46,"div",7),e.YNc(47,je,9,4,"div",35),e.YNc(48,Ke,82,31,"div",35),e.TgZ(49,"div",null,36),e.TgZ(51,"form"),e.TgZ(52,"div",14),e.TgZ(53,"label",37),e.TgZ(54,"span",38),e._uU(55,"EmailRecipients"),e.qZA(),e._UZ(56,"span",39),e.qZA(),e.TgZ(57,"div",11),e.TgZ(58,"input",40),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().addressEmailRecipients=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",14),e.TgZ(60,"label",41),e.TgZ(61,"span",38),e.SDv(62,42),e.qZA(),e._UZ(63,"span",43),e.qZA(),e.TgZ(64,"div",11),e.TgZ(65,"input",44),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.content=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(66,"div",14),e.TgZ(67,"label",45),e.TgZ(68,"span",38),e._uU(69,"ContentType"),e.qZA(),e._UZ(70,"span",46),e.qZA(),e.TgZ(71,"div",11),e.TgZ(72,"input",47),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.intervalAction.name)("is-valid",t.intervalAction.name),e.Q6J("ngModel",t.intervalAction.name),e.xp6(8),e.Q6J("ngIf",t.selectedIntervalDefault),e.xp6(5),e.Q6J("ngModel",t.intervalAction.adminState),e.xp6(12),e.ekj("badge-secondary",t.intervalAction.address.type!==t.addr_type_REST)("badge-primary",t.intervalAction.address.type===t.addr_type_REST),e.xp6(1),e.Q6J("ngModel",t.intervalAction.address.type),e.xp6(4),e.ekj("badge-secondary",t.intervalAction.address.type!==t.addr_type_MQTT)("badge-primary",t.intervalAction.address.type===t.addr_type_MQTT),e.xp6(1),e.Q6J("ngModel",t.intervalAction.address.type),e.xp6(4),e.ekj("badge-secondary",t.intervalAction.address.type!==t.addr_type_EMAIL)("badge-primary",t.intervalAction.address.type===t.addr_type_EMAIL),e.xp6(1),e.Q6J("ngModel",t.intervalAction.address.type),e.xp6(3),e.Q6J("ngIf",t.intervalAction.address.type===t.addr_type_REST),e.xp6(2),e.Q6J("ngIf","REST"===t.intervalAction.address.type),e.xp6(1),e.Q6J("ngIf",(null==t.intervalAction.address?null:t.intervalAction.address.type)===t.addr_type_MQTT),e.xp6(1),e.Udp("display",t.intervalAction.address.type!==t.addr_type_EMAIL?"none":""),e.xp6(9),e.Q6J("ngModel",t.addressEmailRecipients),e.xp6(7),e.Q6J("ngModel",t.intervalAction.content),e.xp6(7),e.Q6J("ngModel",t.intervalAction.contentType)}}let We=(()=>{class _{constructor(t,n,i,o,r){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="custom",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="true",this.returnEventOfGetCmdParamter="true",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={},this.intervalActionOrigin={},this.intervalAction.address={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(t=>{t.intervalActionName&&this.schedulerSvc.findIntervalActionByName(t.intervalActionName).subscribe(n=>{this.intervalAction=JSON.parse(JSON.stringify(n.action)),this.intervalActionOrigin=JSON.parse(JSON.stringify(n.action)),this.intervalActionOrigin.adminState=""===this.intervalActionOrigin.adminState?"UNLOCKED":this.intervalActionOrigin.adminState,this.intervalAction.adminState=""===this.intervalAction.adminState?"UNLOCKED":this.intervalAction.adminState,this.addressEmailRecipients=this.intervalAction.address.recipients?this.intervalAction.address.recipients.toString():"",this.findDefaultSelectedIntervalByName(this.intervalAction.intervalName),setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)})})}initDatePickr(){let t=this;this.calendarStart=(0,P.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(n,i,o){t.intervalAction.address.path=t.coredataSvcAvailableAPI[0]+i}})}setActionDefaultProperties(){switch(this.intervalAction.address.type){case this.addr_type_REST:this.intervalAction.address.httpMethod="GET";break;case this.addr_type_MQTT:this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}findDefaultSelectedIntervalByName(t){this.schedulerSvc.findIntervalByName(t).subscribe(n=>{this.selectedIntervalDefault=n.interval})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(t){switch(this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=this.addr_type_REST,this.templateSelected=t,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300)}}typeToggle(t){this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=t,this.templateSelected="custom",setTimeout(()=>{this.renderPopoverComponent()},300)}onCmdMethodSelected(t){this.intervalAction.address.httpMethod=t,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(t){this.intervalAction.address.path=t.path,this.commandServiceTemplateRequestParameters=t.parameters}onSingleIntervalSelected(t){this.intervalAction.intervalName=t.name}isPureIntegerType(t){return!isNaN(t)&&parseFloat(t)===parseInt(t)}validate(){let t=!0,n=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:n&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(t=!1);break;case this.addr_type_MQTT:n&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(t=!1);break;case this.addr_type_EMAIL:n&&(t=!1)}return t}getAllCmdTemplateParametersValue(){var t;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let n={};return null===(t=this.commandServiceTemplateRequestParameters)||void 0===t||t.forEach(i=>{""!==$(`#cmd-param-${i.resourceName}`).val().trim()&&(n[i.resourceName]=$(`#cmd-param-${i.resourceName}`).val().trim())}),JSON.stringify(n)}resolveCommandTemplateParameterSuffix(){if(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent")){let t=this.intervalAction.address.path.split("?");this.intervalAction.address.path=t[0],t[1].split("&").forEach(o=>{let r=o.split("=");"ds-pushevent"===r[0]?this.pushEventOfGetCmdParamter=r[1]:"ds-returnevent"===r[0]&&(this.returnEventOfGetCmdParamter=r[1])})}}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}save(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.updateIntervalAction(this.intervalAction).subscribe(t=>{this.errorSvc.handleErrorForAPI(t)||(this.msgSvc.success("Update interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0),e.Y36(p.T))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-edit-interval-action"]],decls:8,vars:2,consts:function(){let a,t,n,i,o,r,N,A,v,m,f,S,R,Z,L,M,c;return a="Edit Interval Action",t="Save",n="Name",i="IntervalName",o="AdminState",r="Address",N="Content",A="Available and Editable templates >>",v="CoreDataSeviceTemplate",m="CommandServiceTemplate",f="CustomTemplate",S="Content",R="Parameters",Z="" + "\ufffd0\ufffd" + "",L="pushevent",M="returnevent",c="Content",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],t,["class","card-body",4,"ngIf"],[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],n,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],i,["class","mb-3",4,"ngIf"],["for","adminState",1,"col-md-2","col-form-label"],o,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],r,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","REST",1,"form-check-label"],[1,"badge",3,"click"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["for","Content",1,"col-md-2","col-form-label"],N,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],[1,"mb-3"],[3,"validate","selectedInterval","intervalSelectedEvent"],[1,"mr-2","text-primary"],A,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","custom template will be choosed by default",1,"fa","fa-question-circle-o","fa-lg","mr-2"],["role","button",1,"badge","mr-2",3,"click"],v,m,f,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],["for","addressPath","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],S,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],R,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],Z,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],L,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","true indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","true"],["value","false"],["for","ds-returnevent",1,"col-md-2","col-form-label"],M,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"],["MQTT",""],["for","addressHost","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHost","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostFeedback",1,"invalid-feedback"],["for","addressPort","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPort","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortFeedback",1,"invalid-feedback"],c,["for","addressPublisher","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],["for","addressTopic","required","",1,"col-md-2","col-form-label"],["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],["for","addressQoS","required","",1,"col-md-2","col-form-label"],["type","number","id","addressQoS","name","addressQoS","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive","required","",1,"col-md-2","col-form-label"],["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],["selected","",3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return n.save()}),e.SDv(6,5),e.qZA(),e.qZA(),e.YNc(7,Be,73,30,"div",6),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",n.validate()),e.xp6(2),e.Q6J("ngIf",n.intervalAction))},directives:[I.O5,l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr,l._,U,I.RF,I.n9,x.P,I.sg,l.wV],styles:[""]}),_})();var et=g(8253),tt=g(1964),nt=g(4294),it=g(5894),ot=g(7216);let H=(()=>{class _{constructor(t,n){this.router=t,this.schedulerSvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.schedulerSvc.ping().pipe((0,nt.q)(1),(0,it.K)(i=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"scheduler",routerPath:`/${n.url.split("/")[1]}`}})),(0,ot.z)(()=>(0,tt.of)(!0)))}}return _.\u0275fac=function(t){return new(t||_)(e.LFG(s.F0),e.LFG(h.G))},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const _t=[{path:"",component:q,canActivate:[et.a,H],canActivateChild:[H],children:[{path:"",redirectTo:"interval-center",pathMatch:"full"},{path:"interval-center",component:D,children:[{path:"",redirectTo:"interval-list",pathMatch:"full"},{path:"interval-list",component:y},{path:"add-interval",component:Ce},{path:"edit-interval",component:Ie}]},{path:"interval-action-center",component:ue,children:[{path:"",redirectTo:"interval-action-list",pathMatch:"full"},{path:"interval-action-list",component:fe},{path:"add-interval-action",component:ye},{path:"edit-interval-action",component:We}]}]}];let at=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[s.Bz.forChild(_t)],s.Bz]}),_})();var lt=g(6342);let dt=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[I.ez,l.u5,lt.Y,at]]}),_})()},7982:(Ee,b,g)=>{g.d(b,{V:()=>q});var I=g(1841),l=g(5894),s=g(476),e=g(4889);let q=(()=>{class D{constructor(T,p){this.http=T,this.errorSvc=p,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new I.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,l.K)(p=>this.errorSvc.handleError(p)))}findCommnadsByDeviceId(T){return this.http.get(`${this.commandsByDeviceIdUrl}${T}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}allDeviceCoreCommandsPagination(T,p){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${T}&limit=${p}`).pipe((0,l.K)(O=>this.errorSvc.handleError(O)))}findDeviceAssociatedCommnadsByDeviceName(T){return this.http.get(`${this.commandsByDeviceNameUrl}${T}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,l.K)(p=>this.errorSvc.handleError(p)))}issueGetBinaryCmd(T,p){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${T}/command/${p}`,{responseType:"arraybuffer"}).pipe((0,l.K)(O=>this.errorSvc.handleError(O)))}issueGetCmd(T,p){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${T}/${p}?ds-pushevent=true&ds-returnevent=true`).pipe((0,l.K)(O=>this.errorSvc.handleError(O)))}issueSetCmd(T,p,u){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${T}/${p}`,JSON.stringify(u),this.httpPostOrPutJSONOptions).pipe((0,l.K)(V=>this.errorSvc.handleError(V)))}}return D.\u0275fac=function(T){return new(T||D)(s.LFG(I.eN),s.LFG(e.T))},D.\u0275prov=s.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/536.77ceca190a98a8038a03.js b/cmd/edgex-ui-server/static/web/en-US/536.77ceca190a98a8038a03.js deleted file mode 100644 index 9b18445b..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/536.77ceca190a98a8038a03.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[536],{5886:(N_,U,E)=>{E.r(U),E.d(U,{SchedulerModule:()=>de});var p=E(8583),l=E(3092),A=E(9502),_=E(476);let P=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-scheduler"]],decls:13,vars:0,consts:function(){let a,e;return a="Interval",e="IntervalAction",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./interval-center","routerLinkActive","active",1,"nav-link"],a,["routerLink","./interval-action-center","routerLinkActive","active",1,"nav-link"],e,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.TgZ(5,"span"),_.SDv(6,5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(7,"li",3),_.TgZ(8,"a",6),_.TgZ(9,"span"),_.SDv(10,7),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",8),_._UZ(12,"router-outlet"),_.qZA(),_.qZA())},directives:[A.yS,A.Od,A.lC],styles:[""]}),o})(),O=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[A.lC],styles:[""]}),o})();var M=E(8391),s=E(7822),g=E(4889);function u(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",50),_.TgZ(1,"div",51),_.TgZ(2,"button",52),_.NdJ("click",function(){return _.CHM(e),_.oxw().refresh()}),_.TgZ(3,"span"),_._UZ(4,"i",53),_.TgZ(5,"span"),_.SDv(6,54),_.qZA(),_.qZA(),_.qZA(),_.TgZ(7,"button",55),_.TgZ(8,"span"),_._UZ(9,"i",56),_.TgZ(10,"span"),_.SDv(11,57),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",58),_.NdJ("click",function(){return _.CHM(e),_.oxw().edit()}),_.TgZ(13,"span"),_._UZ(14,"i",59),_.TgZ(15,"span"),_.SDv(16,60),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"button",61),_.NdJ("click",function(){return _.CHM(e),_.oxw().deleteConfirm()}),_.TgZ(18,"span"),_._UZ(19,"i",62),_.TgZ(20,"span"),_.SDv(21,63),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(12),_.Q6J("disabled",1!==e.intervalSelected.length),_.xp6(5),_.Q6J("disabled",0===e.intervalSelected.length)}}function h(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"input",64),_.NdJ("click",function(n){return _.CHM(e),_.oxw().selectAll(n)}),_.qZA()}if(2&o){const e=_.oxw();_.Q6J("checked",e.isCheckedAll())}}function b(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",64),_.NdJ("click",function(n){const r=_.CHM(e).$implicit;return _.oxw().selectOne(n,r)}),_.qZA(),_.qZA(),_.TgZ(3,"td",65),_._uU(4),_.qZA(),_.TgZ(5,"td",65),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.qZA(),_.qZA()}if(2&o){const e=a.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.start),_.xp6(2),_.Oqu(e.end),_.xp6(2),_.Oqu(e.interval),_.xp6(2),_.Oqu(!!e.runOnce)}}let q=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r,this.enableSelectAll=!0,this.singleIntervalSelectedEvent=new _.vpe,this.toolbars=!0,this.intervalList=[],this.intervalSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName?this.schedulerSvc.findIntervalByName(e.intervalName).subscribe(t=>{this.intervalList=[],this.intervalList.push(t.interval)}):this.findIntervalsPagination()})}refresh(){this.schedulerSvc.findAllIntervalsPagination(0,this.pageLimit).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.intervalList=e.intervals,this.msgSvc.success("refresh"),this.resetPagination())})}findIntervalsPagination(){this.schedulerSvc.findAllIntervalsPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.intervalList=e.intervals)})}onSingleIntervalSelectedEmitter(){this.singleIntervalSelectedEvent.emit(this.singleIntervalSelected)}isSingleChecked(e){var t;return(null===(t=this.singleIntervalSelected)||void 0===t?void 0:t.name)===e}selectSingleInterval(e,t){e.target.checked?this.intervalList.forEach(i=>{i.name===t&&(this.singleIntervalSelected=i)}):this.singleIntervalSelected={},this.onSingleIntervalSelectedEmitter()}isCheckedAll(){let e=!0;return this.intervalList&&0===this.intervalList.length&&(e=!1),this.intervalList.forEach(t=>{-1===this.intervalSelected.findIndex(n=>n.name===t.name)&&(e=!1)}),e}selectAll(e){this.intervalList.forEach(e.target.checked?n=>{-1===this.intervalSelected.findIndex(i=>i.name===n.name)&&this.intervalSelected.push(n)}:n=>{let i=this.intervalSelected.findIndex(r=>r.name===n.name);-1!==i&&this.intervalSelected.splice(i,1)})}isChecked(e){return this.enableSelectAll?this.intervalSelected.findIndex(t=>t.name===e)>=0:this.isSingleChecked(e)}selectOne(e,t){if(!this.enableSelectAll)return void this.selectSingleInterval(e,t.name);if(e.target.checked)return void this.intervalSelected.push(t);let i=this.intervalSelected.findIndex(r=>r.name===t.name);-1!==i&&this.intervalSelected.splice(i,1)}edit(){this.router.navigate(["../edit-interval"],{relativeTo:this.route,queryParams:{intervalName:this.intervalSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervals(){this.intervalSelected.forEach((e,t)=>{this.schedulerSvc.deleteIntervalByName(e.name).subscribe(n=>{this.errSvc.handleErrorForAPI(n)||(this.intervalSelected.splice(t,1),this.intervalList.forEach((i,r)=>{i.name!==e.name||this.intervalList.splice(r,1)}),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findIntervalsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalsPagination()}prePage(){this.setPagination(-1),this.findIntervalsPagination()}nextPage(){this.setPagination(1),this.findIntervalsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-list"]],inputs:{enableSelectAll:"enableSelectAll",toolbars:"toolbars",singleIntervalSelected:"singleIntervalSelected"},outputs:{singleIntervalSelectedEvent:"singleIntervalSelectedEvent"},decls:66,vars:6,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c,N;return a="Interval List",e="ID",t="Name",n="Start",i="End",r="Interval",C="RunOnce",T="items per page",v="Previous",S="Next",m="Warning",R=" Associated actions will also be deleted and the data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",f="Cancel",Z="Confirm",D="Refresh",L="Add",c="Edit",N="Delete",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger"],a,[1,"card-body","p-0","position-relative"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],e,t,n,i,r,C,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],T,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],v,[1,"page-item"],S,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],m,[1,"modal-body"],R,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],f,["type","button",1,"btn","btn-danger",3,"click"],Z,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],D,["type","button","routerLink","../add-interval",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],L,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],c,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],N,["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.YNc(6,u,22,2,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"table",7),_.TgZ(9,"thead",8),_.TgZ(10,"tr"),_.TgZ(11,"th",9),_.YNc(12,h,1,1,"input",10),_.qZA(),_.TgZ(13,"th",9),_.SDv(14,11),_.qZA(),_.TgZ(15,"th",9),_.SDv(16,12),_.qZA(),_.TgZ(17,"th",9),_.SDv(18,13),_.qZA(),_.TgZ(19,"th",9),_.SDv(20,14),_.qZA(),_.TgZ(21,"th",9),_.SDv(22,15),_.qZA(),_.TgZ(23,"th",9),_.SDv(24,16),_.qZA(),_.qZA(),_.qZA(),_.TgZ(25,"tbody"),_.YNc(26,b,15,9,"tr",17),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",18),_.TgZ(28,"nav",19),_.TgZ(29,"ul",20),_.TgZ(30,"li",21),_.TgZ(31,"span",22),_.SDv(32,23),_.qZA(),_.qZA(),_.TgZ(33,"li",24),_.TgZ(34,"select",25),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(35,"option",26),_._uU(36,"5"),_.qZA(),_.TgZ(37,"option",27),_._uU(38,"10"),_.qZA(),_.TgZ(39,"option",28),_._uU(40,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(41,"li",29),_.TgZ(42,"button",30),_.NdJ("click",function(){return t.prePage()}),_._UZ(43,"i",31),_.TgZ(44,"span"),_.SDv(45,32),_.qZA(),_.qZA(),_.qZA(),_.TgZ(46,"li",33),_.TgZ(47,"button",30),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(48,"span"),_.SDv(49,34),_.qZA(),_._UZ(50,"i",35),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",36),_.TgZ(52,"div",37),_.TgZ(53,"div",38),_.TgZ(54,"div",39),_.TgZ(55,"h5",40),_._UZ(56,"i",41),_.TgZ(57,"span"),_.SDv(58,42),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",43),_.SDv(60,44),_.qZA(),_.TgZ(61,"div",45),_.TgZ(62,"button",46),_.SDv(63,47),_.qZA(),_.TgZ(64,"button",48),_.NdJ("click",function(){return t.deleteIntervals()}),_.SDv(65,49),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(6),_.Q6J("ngIf",t.toolbars),_.xp6(6),_.Q6J("ngIf",t.enableSelectAll),_.xp6(14),_.Q6J("ngForOf",t.intervalList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.intervalList.length))},directives:[p.O5,p.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,A.rH],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();var G=E(9827);let I_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r,this.interval={}}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,G.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,G.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}submit(){this.schedulerSvc.addInterval(this.interval).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("create new interval",`name: ${this.interval.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-interval"]],decls:54,vars:16,consts:function(){let a,e,t,n,i,r,C;return a="Add Interval",e="Submit",t="Name",n="Start",i="End",r="Interval",C="RunOnce",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationIntervalName","name","intervalName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],n,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd",1,"col-md-2","col-form-label"],i,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],C,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.submit()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.interval.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_._uU(16,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",13),_.TgZ(18,"label",14),_.SDv(19,15),_.qZA(),_.TgZ(20,"div",10),_.TgZ(21,"div",16),_.TgZ(22,"div",17),_.TgZ(23,"span",18),_._UZ(24,"i",19),_.qZA(),_.qZA(),_.TgZ(25,"input",20),_.NdJ("ngModelChange",function(i){return t.interval.start=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",13),_.TgZ(27,"label",21),_.SDv(28,22),_.qZA(),_.TgZ(29,"div",10),_.TgZ(30,"div",16),_.TgZ(31,"div",17),_.TgZ(32,"span",18),_._UZ(33,"i",19),_.qZA(),_.qZA(),_.TgZ(34,"input",23),_.NdJ("ngModelChange",function(i){return t.interval.end=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(35,"div",13),_.TgZ(36,"label",24),_.TgZ(37,"span",25),_.SDv(38,26),_.qZA(),_._UZ(39,"span",27),_.qZA(),_.TgZ(40,"div",10),_.TgZ(41,"input",28),_.NdJ("ngModelChange",function(i){return t.interval.interval=i}),_.qZA(),_.TgZ(42,"div",29),_.TgZ(43,"small"),_._uU(44,"the interval interval can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(45,"div",13),_.TgZ(46,"label",30),_.SDv(47,31),_.qZA(),_.TgZ(48,"div",10),_.TgZ(49,"select",32),_.NdJ("ngModelChange",function(i){return t.interval.runOnce=i}),_.TgZ(50,"option",33),_._uU(51,"false"),_.qZA(),_.TgZ(52,"option",33),_._uU(53,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",!t.interval.name||!t.interval.interval),_.xp6(8),_.ekj("is-invalid",!t.interval.name)("is-valid",t.interval.name),_.Q6J("ngModel",t.interval.name),_.xp6(12),_.Q6J("ngModel",t.interval.start),_.xp6(9),_.Q6J("ngModel",t.interval.end),_.xp6(7),_.ekj("is-invalid",!t.interval.interval)("is-valid",t.interval.interval),_.Q6J("ngModel",t.interval.interval),_.xp6(8),_.Q6J("ngModel",t.interval.runOnce),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function C_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",8),_.TgZ(2,"label",9),_.SDv(3,10),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"input",12),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.name=n}),_.qZA(),_.TgZ(6,"div",13),_.TgZ(7,"small"),_._uU(8,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",14),_.TgZ(10,"label",15),_.SDv(11,16),_.qZA(),_.TgZ(12,"div",11),_.TgZ(13,"div",17),_.TgZ(14,"div",18),_.TgZ(15,"span",19),_._UZ(16,"i",20),_.qZA(),_.qZA(),_.TgZ(17,"input",21),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.start=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",14),_.TgZ(19,"label",22),_.SDv(20,23),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"div",17),_.TgZ(23,"div",18),_.TgZ(24,"span",19),_._UZ(25,"i",20),_.qZA(),_.qZA(),_.TgZ(26,"input",24),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.end=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",14),_.TgZ(28,"label",25),_.TgZ(29,"span",26),_.SDv(30,27),_.qZA(),_._UZ(31,"span",28),_.qZA(),_.TgZ(32,"div",11),_.TgZ(33,"input",29),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.interval=n}),_.qZA(),_.TgZ(34,"div",30),_.TgZ(35,"small"),_._uU(36,"the interval interval can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(37,"div",14),_.TgZ(38,"label",31),_.SDv(39,32),_.qZA(),_.TgZ(40,"div",11),_.TgZ(41,"select",33),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.runOnce=n}),_.TgZ(42,"option",34),_._uU(43,"false"),_.qZA(),_.TgZ(44,"option",34),_._uU(45,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(5),_.ekj("is-invalid",!e.interval.name)("is-valid",e.interval.name),_.Q6J("ngModel",e.interval.name),_.xp6(12),_.Q6J("ngModel",e.interval.start),_.xp6(9),_.Q6J("ngModel",e.interval.end),_.xp6(7),_.ekj("is-invalid",!e.interval.interval)("is-valid",e.interval.interval),_.Q6J("ngModel",e.interval.interval),_.xp6(8),_.Q6J("ngModel",e.interval.runOnce),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}let p_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName&&this.schedulerSvc.findIntervalByName(e.intervalName).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.interval=t.interval,this.interval.runOnce=!!this.interval.runOnce,setTimeout(()=>{this.initDatePickr()},300))})})}initDatePickr(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.calendarStart=(0,G.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,G.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}update(){this.schedulerSvc.updateInterval(this.interval).subscribe(e=>{var t;this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("update interval",`name: ${null===(t=this.interval)||void 0===t?void 0:t.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-interval"]],decls:10,vars:3,consts:function(){let a,e,t,n,i,r,C;return a="Edit Interval",e="Submit",t="Name",n="Start",i="End",r="Interval",C="RunOnce",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[4,"ngIf"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","name","intervalName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],n,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd2",1,"col-md-2","col-form-label"],i,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","ISO8601 duration format","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],C,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_._uU(5),_.TgZ(6,"button",4),_.NdJ("click",function(){return t.update()}),_.SDv(7,5),_.qZA(),_.qZA(),_.TgZ(8,"div",6),_.YNc(9,C_,46,15,"form",7),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.hij(" ",null==t.interval?null:t.interval.name," "),_.xp6(1),_.Q6J("disabled",!(null!=t.interval&&t.interval.name)),_.xp6(3),_.Q6J("ngIf",t.interval))},directives:[p.O5,l._Y,l.JL,l.F,l.Fj,l.JJ,l.On,l.Q7,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),u_=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-action-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[A.lC],styles:[""]}),o})();const v_=function(o){return{intervalName:o}};function S_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(n){const r=_.CHM(e).$implicit;return _.oxw().selectOne(n,r)}),_.qZA(),_.qZA(),_.TgZ(3,"td",61),_._uU(4),_.qZA(),_.TgZ(5,"td",61),_._uU(6),_.qZA(),_.TgZ(7,"td"),_.TgZ(8,"a",62),_._uU(9),_.qZA(),_.qZA(),_.TgZ(10,"td"),_._uU(11),_.qZA(),_.qZA()}if(2&o){const e=a.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Q6J("queryParams",_.VKq(8,v_,e.intervalName)),_.xp6(1),_.Oqu(e.intervalName),_.xp6(2),_.Oqu(e.address.type)}}let m_=(()=>{class o{constructor(e,t,n,i){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.intervalActionList=[],this.intervalActionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName||this.findIntervalActionsPagination()})}refresh(){this.schedulerSvc.findAllIntervalActionsPagination(0,this.pageLimit).subscribe(e=>{this.intervalActionList=e.actions,this.msgSvc.success("refresh"),this.resetPagination()})}findIntervalActionsPagination(){this.schedulerSvc.findAllIntervalActionsPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.intervalActionList=e.actions})}isCheckedAll(){let e=!0;return this.intervalActionList&&0===this.intervalActionList.length&&(e=!1),this.intervalActionList.forEach(t=>{-1===this.intervalActionSelected.findIndex(n=>n.name===t.name)&&(e=!1)}),e}selectAll(e){this.intervalActionList.forEach(e.target.checked?n=>{-1===this.intervalActionSelected.findIndex(i=>i.name===n.name)&&this.intervalActionSelected.push(n)}:n=>{let i=this.intervalActionSelected.findIndex(r=>r.name===n.name);-1!==i&&this.intervalActionSelected.splice(i,1)})}isChecked(e){return this.intervalActionSelected.findIndex(t=>t.name===e)>=0}selectOne(e,t){if(e.target.checked)return void this.intervalActionSelected.push(t);let i=this.intervalActionSelected.findIndex(r=>r.name===t.name);-1!==i&&this.intervalActionSelected.splice(i,1)}edit(){this.router.navigate(["../edit-interval-action"],{relativeTo:this.route,queryParams:{intervalActionName:this.intervalActionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervalActions(){this.intervalActionSelected.forEach((e,t)=>{this.schedulerSvc.deleteIntervalActionByName(e.name).subscribe(()=>{this.intervalActionList.forEach((n,i)=>{n.name!==e.name||this.intervalActionList.splice(i,1)}),this.intervalActionSelected.splice(t,1),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findIntervalActionsPagination()})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalActionsPagination()}prePage(){this.setPagination(-1),this.findIntervalActionsPagination()}nextPage(){this.setPagination(1),this.findIntervalActionsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-action-list"]],decls:84,vars:7,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L;return a="Interval Action List",e="Refresh",t="Add",n="Edit",i="Delete",r="ID",C="Name",T="AssociatedInterval",v="AddressType",S="items per page",m="Previous",R="Next",f="Warning",Z="The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F",D="Cancel",L="Confirm",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],a,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],e,["type","button","routerLink","../add-interval-action",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],t,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],r,C,T,v,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],S,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],m,[1,"page-item"],R,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],f,[1,"modal-body"],Z,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],D,["type","button",1,"btn","btn-danger",3,"click"],L,[1,"user-select-all"],["routerLink","../../interval-center",3,"queryParams"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(9,"span"),_._UZ(10,"i",8),_.TgZ(11,"span"),_.SDv(12,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"button",10),_.TgZ(14,"span"),_._UZ(15,"i",11),_.TgZ(16,"span"),_.SDv(17,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(19,"span"),_._UZ(20,"i",14),_.TgZ(21,"span"),_.SDv(22,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(24,"span"),_._UZ(25,"i",17),_.TgZ(26,"span"),_.SDv(27,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",19),_.TgZ(29,"table",20),_.TgZ(30,"thead",21),_.TgZ(31,"tr"),_.TgZ(32,"th",22),_.TgZ(33,"input",23),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(34,"th",22),_.SDv(35,24),_.qZA(),_.TgZ(36,"th",22),_.SDv(37,25),_.qZA(),_.TgZ(38,"th",22),_.SDv(39,26),_.qZA(),_.TgZ(40,"th",22),_.SDv(41,27),_.qZA(),_.qZA(),_.qZA(),_.TgZ(42,"tbody"),_.YNc(43,S_,12,10,"tr",28),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"div",29),_.TgZ(45,"nav",30),_.TgZ(46,"ul",31),_.TgZ(47,"li",32),_.TgZ(48,"span",33),_.SDv(49,34),_.qZA(),_.qZA(),_.TgZ(50,"li",35),_.TgZ(51,"select",36),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(52,"option",37),_._uU(53,"5"),_.qZA(),_.TgZ(54,"option",38),_._uU(55,"10"),_.qZA(),_.TgZ(56,"option",39),_._uU(57,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(58,"li",40),_.TgZ(59,"button",41),_.NdJ("click",function(){return t.prePage()}),_._UZ(60,"i",42),_.TgZ(61,"span"),_.SDv(62,43),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"li",44),_.TgZ(64,"button",41),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(65,"span"),_.SDv(66,45),_.qZA(),_._UZ(67,"i",46),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"div",47),_.TgZ(69,"div",48),_.TgZ(70,"div",49),_.TgZ(71,"div",50),_.TgZ(72,"h5",51),_._UZ(73,"i",52),_.TgZ(74,"span"),_.SDv(75,53),_.qZA(),_.qZA(),_.qZA(),_.TgZ(76,"div",54),_.TgZ(77,"span"),_.SDv(78,55),_.qZA(),_.qZA(),_.TgZ(79,"div",56),_.TgZ(80,"button",57),_.SDv(81,58),_.qZA(),_.TgZ(82,"button",59),_.NdJ("click",function(){return t.deleteIntervalActions()}),_.SDv(83,60),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(18),_.Q6J("disabled",1!==t.intervalActionSelected.length),_.xp6(5),_.Q6J("disabled",0===t.intervalActionSelected.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(10),_.Q6J("ngForOf",t.intervalActionList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.intervalActionList.length))},directives:[A.rH,p.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,A.yS],styles:[""]}),o})();function R_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",10),_.NdJ("click",function(n){return _.CHM(e),_.oxw().close(n)}),_.qZA()}}let V=(()=>{class o{constructor(){this.visible=!1,this.validate=!1,this.intervalSelectedEvent=new _.vpe,this.selectedInterval={}}ngOnInit(){}onSingleIntervalSelected(e){this.selectedInterval=e,this.intervalSelectedEvent.emit(e)}close(e){e.stopPropagation(),this.visible=!1}toggle(e){e.stopImmediatePropagation(),this.visible=!this.visible}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-combo-list"]],inputs:{validate:"validate",selectedInterval:"selectedInterval"},outputs:{intervalSelectedEvent:"intervalSelectedEvent"},decls:12,vars:11,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"click"],["type","text","name","selectedInterval","readonly","readonly","maxlength","0","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"combo-body","shadow","rounded"],[3,"singleIntervalSelected","enableSelectAll","toolbars","singleIntervalSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(e,t){1&e&&(_.YNc(0,R_,1,0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"div",2),_.NdJ("click",function(i){return t.toggle(i)}),_.TgZ(3,"input",3),_.NdJ("ngModelChange",function(i){return t.selectedInterval.name=i}),_.qZA(),_.TgZ(4,"div",4),_.TgZ(5,"span",5),_._UZ(6,"i",6),_.qZA(),_.qZA(),_.TgZ(7,"div",7),_.TgZ(8,"small"),_._uU(9,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(10,"div",8),_.TgZ(11,"app-interval-list",9),_.NdJ("singleIntervalSelectedEvent",function(i){return t.onSingleIntervalSelected(i)}),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.Q6J("ngIf",t.visible),_.xp6(3),_.ekj("is-invalid",!t.selectedInterval.name&&t.validate)("is-valid",t.selectedInterval.name&&t.validate),_.Q6J("ngModel",t.selectedInterval.name),_.xp6(7),_.Udp("display",t.visible?"":"none"),_.xp6(1),_.Q6J("singleIntervalSelected",t.selectedInterval)("enableSelectAll",!1)("toolbars",!1))},directives:[p.O5,l.Fj,l.nD,l.Q7,l.JJ,l.On,q],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),o})();var H=E(9549);function f_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("coredata")}),_.SDv(2,92),_.qZA(),_.TgZ(3,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("command")}),_.SDv(4,93),_.qZA(),_.TgZ(5,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("custom")}),_.SDv(6,94),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(1),_.ekj("badge-secondary","coredata"!==e.templateSelected)("badge-primary","coredata"===e.templateSelected),_.xp6(2),_.ekj("badge-secondary","command"!==e.templateSelected)("badge-primary","command"===e.templateSelected),_.xp6(2),_.ekj("badge-secondary","custom"!==e.templateSelected)("badge-primary","custom"===e.templateSelected)}}function Z_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.SDv(3,102),_.qZA(),_.TgZ(4,"div",14),_.TgZ(5,"select",103),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",104),_._uU(7,"GET"),_.qZA(),_.TgZ(8,"option",105),_._uU(9,"POST"),_.qZA(),_.TgZ(10,"option",106),_._uU(11,"PUT"),_.qZA(),_.TgZ(12,"option",107),_._uU(13,"DELETE"),_.qZA(),_.TgZ(14,"option",108),_._uU(15,"PATCH"),_.qZA(),_.TgZ(16,"option",109),_._uU(17,"HEAD"),_.qZA(),_.TgZ(18,"option",110),_._uU(19,"TRACE"),_.qZA(),_.TgZ(20,"option",111),_._uU(21,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(22,"div",11),_.TgZ(23,"label",112),_.SDv(24,113),_.qZA(),_.TgZ(25,"div",14),_.TgZ(26,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(27,"div",115),_.TgZ(28,"small"),_._uU(29,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",11),_.TgZ(31,"label",116),_.SDv(32,117),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(35,"div",119),_.TgZ(36,"small"),_.SDv(37,120),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"div",17),_.TgZ(39,"label",121),_.SDv(40,122),_.qZA(),_.TgZ(41,"div",14),_.TgZ(42,"input",123),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(43,"div",17),_.TgZ(44,"label",50),_.TgZ(45,"span",51),_.SDv(46,124),_.qZA(),_._UZ(47,"span",53),_.qZA(),_.TgZ(48,"div",14),_.TgZ(49,"input",54),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(50,"div",17),_.TgZ(51,"label",55),_.TgZ(52,"span",51),_._uU(53,"ContentType"),_.qZA(),_._UZ(54,"span",56),_.qZA(),_.TgZ(55,"div",14),_.TgZ(56,"input",57),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}function D_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.SDv(3,125),_.qZA(),_.TgZ(4,"div",14),_.TgZ(5,"select",103),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",107),_._uU(7,"DELETE"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"label",112),_.TgZ(10,"span",51),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",126),_.qZA(),_.TgZ(13,"div",14),_.TgZ(14,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",115),_.TgZ(16,"small"),_.SDv(17,127),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"label",116),_.SDv(20,128),_.qZA(),_.TgZ(21,"div",14),_.TgZ(22,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",119),_.TgZ(24,"small"),_.SDv(25,129),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",17),_.TgZ(27,"label",121),_.TgZ(28,"span",51),_.SDv(29,130),_.qZA(),_._UZ(30,"span",131),_.qZA(),_.TgZ(31,"div",14),_.TgZ(32,"input",132),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",17),_.TgZ(34,"label",133),_.SDv(35,134),_.qZA(),_.TgZ(36,"div",14),_.TgZ(37,"div",135),_.TgZ(38,"div",136),_.TgZ(39,"span",137),_._UZ(40,"i",138),_.qZA(),_.qZA(),_.TgZ(41,"input",139),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).coredataRequestParameter=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(9),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(9),_.Q6J("ngModel",e.coredataRequestParameter)}}function L_(o,a){1&o&&(_.TgZ(0,"div"),_._uU(1," no paramters. "),_.qZA())}function M_(o,a){if(1&o&&(_.TgZ(0,"select",157),_.TgZ(1,"option",78),_._uU(2,"false"),_.qZA(),_.TgZ(3,"option",78),_._uU(4,"true"),_.qZA(),_.qZA()),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function h_(o,a){if(1&o&&_._UZ(0,"input",158),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.MGl("placeholder","valueType: ",e.valueType,"")}}function O_(o,a){if(1&o&&(_.TgZ(0,"div"),_.TgZ(1,"div",17),_.TgZ(2,"label",153),_.SDv(3,154),_.qZA(),_.TgZ(4,"div",14),_.YNc(5,M_,5,4,"select",155),_.YNc(6,h_,1,3,"ng-template",null,156,_.W1O),_.qZA(),_.qZA(),_.qZA()),2&o){const e=a.$implicit,t=_.MAs(7);_.xp6(2),_.s9C("for",e.resourceName),_.xp6(1),_.pQV(e.resourceName),_.QtT(3),_.xp6(2),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function G_(o,a){if(1&o&&(_.TgZ(0,"div"),_.YNc(1,L_,2,0,"div",38),_.YNc(2,O_,8,4,"div",152),_.qZA()),2&o){const e=_.oxw(4);_.xp6(1),_.Q6J("ngIf",0==e.commandServiceTemplateRequestParameters.length),_.xp6(1),_.Q6J("ngForOf",e.commandServiceTemplateRequestParameters)}}function U_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",17),_.TgZ(1,"label",159),_.TgZ(2,"span",51),_.SDv(3,160),_.qZA(),_._UZ(4,"span",161),_.qZA(),_.TgZ(5,"div",14),_.TgZ(6,"select",162),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(4).pushEventOfGetCmdParamter=n}),_.TgZ(7,"option",163),_._uU(8,"yes"),_.qZA(),_.TgZ(9,"option",164),_._uU(10,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",17),_.TgZ(12,"label",165),_.TgZ(13,"span",51),_.SDv(14,166),_.qZA(),_._UZ(15,"span",167),_.qZA(),_.TgZ(16,"div",14),_.TgZ(17,"select",168),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(4).returnEventOfGetCmdParamter=n}),_.TgZ(18,"option",163),_._uU(19,"yes"),_.qZA(),_.TgZ(20,"option",164),_._uU(21,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(4);_.xp6(6),_.Q6J("ngModel",e.pushEventOfGetCmdParamter),_.xp6(11),_.Q6J("ngModel",e.returnEventOfGetCmdParamter)}}function P_(o,a){if(1&o&&(_.TgZ(0,"div",17),_.TgZ(1,"label",121),_.SDv(2,149),_.qZA(),_.TgZ(3,"div",14),_.TgZ(4,"div",6),_.TgZ(5,"div",1),_.TgZ(6,"span"),_._uU(7,"Command Parameters Setting"),_.qZA(),_.qZA(),_.TgZ(8,"div",4),_.YNc(9,G_,3,2,"div",150),_.YNc(10,U_,22,2,"ng-template",null,151,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&o){const e=_.MAs(11),t=_.oxw(3);_.xp6(9),_.Q6J("ngIf","PUT"==t.intervalAction.address.httpMethod)("ngIfElse",e)}}function b_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.TgZ(3,"span",51),_.SDv(4,140),_.qZA(),_._UZ(5,"span",141),_.qZA(),_.TgZ(6,"div",14),_.TgZ(7,"input",142),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"label",112),_.TgZ(10,"span",51),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",126),_.qZA(),_.TgZ(13,"div",14),_.TgZ(14,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",115),_.TgZ(16,"small"),_.SDv(17,143),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"label",116),_.SDv(20,144),_.qZA(),_.TgZ(21,"div",14),_.TgZ(22,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",119),_.TgZ(24,"small"),_.SDv(25,145),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",17),_.TgZ(27,"label",121),_.SDv(28,146),_.qZA(),_.TgZ(29,"div",14),_.TgZ(30,"app-device-core-command-combo-list",147),_.NdJ("cmdMethodEvent",function(n){return _.CHM(e),_.oxw(2).onCmdMethodSelected(n)})("commandSelectedEvent",function(n){return _.CHM(e),_.oxw(2).onCommandSelected(n)}),_.qZA(),_.qZA(),_.qZA(),_.YNc(31,P_,12,2,"div",148),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(7),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("validate",!0),_.xp6(1),_.Q6J("ngIf",e.intervalAction.address.path&&e.intervalAction.address.httpMethod)}}function q_(o,a){if(1&o&&(_.TgZ(0,"div",null,95),_.TgZ(2,"div",96),_.YNc(3,Z_,57,14,"ng-template",97,98,_.W1O),_.YNc(5,D_,42,13,"ng-template",97,99,_.W1O),_.YNc(7,b_,32,13,"ng-template",97,100,_.W1O),_.qZA(),_.qZA()),2&o){const e=_.oxw();_.xp6(2),_.Q6J("ngSwitch",e.templateSelected),_.xp6(1),_.Q6J("ngSwitchCase","custom"),_.xp6(2),_.Q6J("ngSwitchCase","coredata"),_.xp6(2),_.Q6J("ngSwitchCase","command")}}let V_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="coredata",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="yes",this.returnEventOfGetCmdParamter="yes",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={adminState:"UNLOCKED"},this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}ngOnInit(){this.renderPopoverComponent(),this.renderCoredataDefaultTemplate()}initDatePickr(){let e=this;this.calendarStart=(0,G.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(t,n,i){e.intervalAction.address.path=e.coredataSvcAvailableAPI[0]+n}})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(e){switch(this.templateSelected=e,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.httpMethod="",this.intervalAction.address.host="edgex-core-command",this.intervalAction.address.port=59882,this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300),this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}typeToggle(e){this.intervalAction.address.type=e,"REST"===e&&this.templateToggle("coredata")}onCmdMethodSelected(e){this.intervalAction.address.httpMethod=e,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(e){this.intervalAction.address.path=e.path,this.commandServiceTemplateRequestParameters=e.parameters}onSingleIntervalSelected(e){this.intervalAction.intervalName=e.name}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!0,t=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(e=!1);break;case this.addr_type_MQTT:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(e=!1);break;case this.addr_type_EMAIL:t&&(e=!1)}return e}getAllCmdTemplateParametersValue(){var e;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let t={};return null===(e=this.commandServiceTemplateRequestParameters)||void 0===e||e.forEach(n=>{""!==$(`#cmd-param-${n.resourceName}`).val().trim()&&(t[n.resourceName]=$(`#cmd-param-${n.resourceName}`).val().trim())}),JSON.stringify(t)}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}submit(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.addIntervalAction(this.intervalAction).subscribe(e=>{this.errorSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-interval-action"]],decls:176,vars:63,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c,N,I,J,X,x,B,k,W,Q,w,F,z,Y,j,K,__,e_,t_,n_,i_,o_,a_,l_,d_,r_,A_,s_,T_,c_,E_,g_;return a="Tips",e=" The support scheduler micro service provide an internal EdgeX \u201Cclock\u201D that can kick off operations in any EdgeX service. At a configuration specified time (called an interval), the service calls on any EdgeX service API URL via REST to trigger an operation (called an interval action). For example, the scheduling service periodically calls on core data APIs to clean up old sensed events that have been successfully exported out of EdgeX. " + "\ufffd#7\ufffd\ufffd/#7\ufffd" + " Users also can call the API of command service to collect one device's data automatically. ",t="Add Interval Action",n="Submit",i="Name",r="IntervalName",C="AdminState",T="Address",v="Host",S="the MQTT host can't be empty!",m="Port",R="the MQTT port can't be empty and only pure integer is supported!!",f="Content",Z="Publisher",D="the MQTT publisher can't be empty!",L="Topic",c="the MQTT topic can't be empty!",N="QoS",I="KeepAlive",J="Retained",X="AutoReconnect",x="ConnectTimeout",B="EmailRecipients",k="Content",W="CoreDataSeviceTemplate",Q="CommandServiceTemplate",w="CustomTemplate",F="HttpMethod",z="Host",Y="Port",j="the REST address port can't be empty and only pure integer is supported!",K="Path",__="Content",e_="HttpMethod",t_="the REST address host can't be empty!",n_="Port",i_="the REST address port can't be empty and only pure integer is supported!",o_="Path",a_="Parameter",l_="HttpMethod",d_="the REST address host can't be empty!",r_="Port",A_="the REST address port can't be empty and only pure integer is supported!",s_="Path",T_="Parameters",c_="" + "\ufffd0\ufffd" + "",E_="pushevent",g_="returnevent",[[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],a,[1,"card-body"],e,[1,"card"],[1,"fa","fa-plus","text-danger","mr-1"],t,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],n,[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],i,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],r,[1,"mb-3"],[3,"validate","intervalSelectedEvent"],["for","adminState",1,"col-md-2","col-form-label"],C,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],T,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","REST",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["MQTT",""],["for","addressHostMQTT","required","",1,"col-md-2","col-form-label"],v,["type","text","id","addressHostMQTT","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostMQTTFeedback",1,"invalid-feedback"],S,["for","addressPortMQTT","required","",1,"col-md-2","col-form-label"],m,["type","text","id","addressPortMQTT","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortMQTTFeedback",1,"invalid-feedback"],R,["for","Content",1,"col-md-2","col-form-label"],[1,"mr-2"],f,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],["for","addressPublisher","required","",1,"col-md-2","col-form-label"],Z,["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],D,["for","addressTopic","required","",1,"col-md-2","col-form-label"],L,["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],c,["for","addressQoS",1,"col-md-2","col-form-label"],N,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","only pure integer supported!",1,"fa","fa-question-circle-o","fa-lg"],["type","number","id","addressQoS","name","addressQoS",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive",1,"col-md-2","col-form-label"],I,["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],J,["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],X,["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],x,["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],B,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],k,["role","button",1,"badge","mr-2",3,"click"],W,Q,w,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],F,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],z,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],Y,["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],j,["for","addressPath","required","",1,"col-md-2","col-form-label"],K,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],__,e_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],t_,n_,i_,o_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],a_,[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],l_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],d_,r_,A_,s_,[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],T_,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],c_,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],E_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],g_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.tHW(6,5),_._UZ(7,"br"),_.N_p(),_.qZA(),_.qZA(),_.TgZ(8,"div",6),_.TgZ(9,"div",1),_._UZ(10,"i",7),_.TgZ(11,"span"),_.SDv(12,8),_.qZA(),_.TgZ(13,"button",9),_.NdJ("click",function(){return t.submit()}),_.SDv(14,10),_.qZA(),_.qZA(),_.TgZ(15,"div",4),_.TgZ(16,"form"),_.TgZ(17,"div",11),_.TgZ(18,"label",12),_.SDv(19,13),_.qZA(),_.TgZ(20,"div",14),_.TgZ(21,"input",15),_.NdJ("ngModelChange",function(i){return t.intervalAction.name=i}),_.qZA(),_.TgZ(22,"div",16),_.TgZ(23,"small"),_._uU(24,"the interval action name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(25,"div",17),_.TgZ(26,"label",18),_.SDv(27,19),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"div",20),_.TgZ(30,"app-interval-combo-list",21),_.NdJ("intervalSelectedEvent",function(i){return t.onSingleIntervalSelected(i)}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",17),_.TgZ(32,"label",22),_.SDv(33,23),_.qZA(),_.TgZ(34,"div",14),_.TgZ(35,"select",24),_.NdJ("ngModelChange",function(i){return t.intervalAction.adminState=i}),_.TgZ(36,"option",25),_._uU(37,"UNLOCKED"),_.qZA(),_.TgZ(38,"option",26),_._uU(39,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(40,"div",17),_.TgZ(41,"label",27),_.SDv(42,28),_.qZA(),_.TgZ(43,"div",14),_.TgZ(44,"div",6),_.TgZ(45,"div",1),_.TgZ(46,"div",29),_.TgZ(47,"span",30),_.TgZ(48,"input",31),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("REST")}),_.qZA(),_.TgZ(49,"label",32),_._uU(50,"REST"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",29),_.TgZ(52,"span",30),_.TgZ(53,"input",33),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("MQTT")}),_.qZA(),_.TgZ(54,"label",34),_._uU(55,"MQTT"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",29),_.TgZ(57,"span",30),_.TgZ(58,"input",35),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("EMAIL")}),_.qZA(),_.TgZ(59,"label",36),_._uU(60,"EMAIL"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(61,f_,7,12,"div",37),_.TgZ(62,"div",4),_.YNc(63,q_,9,4,"div",38),_.TgZ(64,"div",null,39),_.TgZ(66,"form"),_.TgZ(67,"div",11),_.TgZ(68,"label",40),_.SDv(69,41),_.qZA(),_.TgZ(70,"div",14),_.TgZ(71,"input",42),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.host=i}),_.qZA(),_.TgZ(72,"div",43),_.TgZ(73,"small"),_.SDv(74,44),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(75,"div",11),_.TgZ(76,"label",45),_.SDv(77,46),_.qZA(),_.TgZ(78,"div",14),_.TgZ(79,"input",47),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.port=i}),_.qZA(),_.TgZ(80,"div",48),_.TgZ(81,"small"),_.SDv(82,49),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(83,"div",17),_.TgZ(84,"label",50),_.TgZ(85,"span",51),_.SDv(86,52),_.qZA(),_._UZ(87,"span",53),_.qZA(),_.TgZ(88,"div",14),_.TgZ(89,"input",54),_.NdJ("ngModelChange",function(i){return t.intervalAction.content=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(90,"div",17),_.TgZ(91,"label",55),_.TgZ(92,"span",51),_._uU(93,"ContentType"),_.qZA(),_._UZ(94,"span",56),_.qZA(),_.TgZ(95,"div",14),_.TgZ(96,"input",57),_.NdJ("ngModelChange",function(i){return t.intervalAction.contentType=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(97,"div",11),_.TgZ(98,"label",58),_.SDv(99,59),_.qZA(),_.TgZ(100,"div",14),_.TgZ(101,"input",60),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.publisher=i}),_.qZA(),_.TgZ(102,"div",61),_.TgZ(103,"small"),_.SDv(104,62),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(105,"div",11),_.TgZ(106,"label",63),_.SDv(107,64),_.qZA(),_.TgZ(108,"div",14),_.TgZ(109,"input",65),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.topic=i}),_.qZA(),_.TgZ(110,"div",66),_.TgZ(111,"small"),_.SDv(112,67),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(113,"div",17),_.TgZ(114,"label",68),_.TgZ(115,"span",51),_.SDv(116,69),_.qZA(),_._UZ(117,"span",70),_.qZA(),_.TgZ(118,"div",14),_.TgZ(119,"input",71),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.qos=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(120,"div",17),_.TgZ(121,"label",72),_.TgZ(122,"span",51),_.SDv(123,73),_.qZA(),_._UZ(124,"span",70),_.qZA(),_.TgZ(125,"div",14),_.TgZ(126,"input",74),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.keepAlive=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(127,"div",17),_.TgZ(128,"label",75),_.SDv(129,76),_.qZA(),_.TgZ(130,"div",14),_.TgZ(131,"select",77),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.retained=i}),_.TgZ(132,"option",78),_._uU(133,"false"),_.qZA(),_.TgZ(134,"option",78),_._uU(135,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(136,"div",17),_.TgZ(137,"label",79),_.SDv(138,80),_.qZA(),_.TgZ(139,"div",14),_.TgZ(140,"select",81),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.autoReconnect=i}),_.TgZ(141,"option",78),_._uU(142,"true"),_.qZA(),_.TgZ(143,"option",78),_._uU(144,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(145,"div",17),_.TgZ(146,"label",82),_.TgZ(147,"span",51),_.SDv(148,83),_.qZA(),_._UZ(149,"span",70),_.qZA(),_.TgZ(150,"div",14),_.TgZ(151,"input",84),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.connectTimeout=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(152,"div",null,85),_.TgZ(154,"form"),_.TgZ(155,"div",17),_.TgZ(156,"label",86),_.TgZ(157,"span",51),_.SDv(158,87),_.qZA(),_._UZ(159,"span",88),_.qZA(),_.TgZ(160,"div",14),_.TgZ(161,"input",89),_.NdJ("ngModelChange",function(i){return t.addressEmailRecipients=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(162,"div",17),_.TgZ(163,"label",50),_.TgZ(164,"span",51),_.SDv(165,90),_.qZA(),_._UZ(166,"span",53),_.qZA(),_.TgZ(167,"div",14),_.TgZ(168,"input",54),_.NdJ("ngModelChange",function(i){return t.intervalAction.content=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(169,"div",17),_.TgZ(170,"label",55),_.TgZ(171,"span",51),_._uU(172,"ContentType"),_.qZA(),_._UZ(173,"span",56),_.qZA(),_.TgZ(174,"div",14),_.TgZ(175,"input",57),_.NdJ("ngModelChange",function(i){return t.intervalAction.contentType=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(13),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.intervalAction.name)("is-valid",t.intervalAction.name),_.Q6J("ngModel",t.intervalAction.name),_.xp6(9),_.Q6J("validate",!0),_.xp6(5),_.Q6J("ngModel",t.intervalAction.adminState),_.xp6(12),_.ekj("badge-secondary","REST"!==t.intervalAction.address.type)("badge-primary","REST"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary","MQTT"!==t.intervalAction.address.type)("badge-primary","MQTT"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary","EMAIL"!==t.intervalAction.address.type)("badge-primary","EMAIL"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(3),_.Q6J("ngIf","REST"===t.intervalAction.address.type),_.xp6(2),_.Q6J("ngIf","REST"===t.intervalAction.address.type),_.xp6(1),_.Udp("display","MQTT"!==t.intervalAction.address.type?"none":""),_.xp6(7),_.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),_.Q6J("ngModel",t.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),_.Q6J("ngModel",t.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",t.intervalAction.content),_.xp6(7),_.Q6J("ngModel",t.intervalAction.contentType),_.xp6(5),_.ekj("is-invalid",!t.intervalAction.address.publisher)("is-valid",t.intervalAction.address.publisher),_.Q6J("ngModel",t.intervalAction.address.publisher),_.xp6(8),_.ekj("is-invalid",!t.intervalAction.address.topic)("is-valid",t.intervalAction.address.topic),_.Q6J("ngModel",t.intervalAction.address.topic),_.xp6(10),_.Q6J("ngModel",t.intervalAction.address.qos),_.xp6(7),_.Q6J("ngModel",t.intervalAction.address.keepAlive),_.xp6(5),_.Q6J("ngModel",t.intervalAction.address.retained),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0),_.xp6(6),_.Q6J("ngModel",t.intervalAction.address.autoReconnect),_.xp6(1),_.Q6J("ngValue",!0),_.xp6(2),_.Q6J("ngValue",!1),_.xp6(8),_.Q6J("ngModel",t.intervalAction.address.connectTimeout),_.xp6(1),_.Udp("display","EMAIL"!==(null==t.intervalAction.address?null:t.intervalAction.address.type)?"none":""),_.xp6(9),_.Q6J("ngModel",t.addressEmailRecipients),_.xp6(7),_.Q6J("ngModel",t.intervalAction.content),_.xp6(7),_.Q6J("ngModel",t.intervalAction.contentType))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,V,l.EJ,l.YN,l.Kr,l._,p.O5,l.wV,p.RF,p.n9,H.P,p.sg],styles:[""]}),o})();function $_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",48),_.TgZ(1,"app-interval-combo-list",49),_.NdJ("intervalSelectedEvent",function(n){return _.CHM(e),_.oxw(2).onSingleIntervalSelected(n)}),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(1),_.Q6J("validate",!0)("selectedInterval",e.selectedIntervalDefault)}}function H_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"span",50),_.SDv(2,51),_.qZA(),_._UZ(3,"span",52),_.TgZ(4,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_coredata)}),_.SDv(5,54),_.qZA(),_.TgZ(6,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_command)}),_.SDv(7,55),_.qZA(),_.TgZ(8,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_custom)}),_.SDv(9,56),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(4),_.ekj("badge-secondary",e.templateSelected!==e.template_type_coredata)("badge-primary",e.templateSelected===e.template_type_coredata),_.xp6(2),_.ekj("badge-secondary",e.templateSelected!==e.template_type_command)("badge-primary",e.templateSelected===e.template_type_command),_.xp6(2),_.ekj("badge-secondary",e.templateSelected!==e.template_type_custom)("badge-primary",e.templateSelected===e.template_type_custom)}}function y_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_._uU(3,"HttpMethod"),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"select",64),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",65),_._uU(7,"GET"),_.qZA(),_.TgZ(8,"option",66),_._uU(9,"POST"),_.qZA(),_.TgZ(10,"option",67),_._uU(11,"PUT"),_.qZA(),_.TgZ(12,"option",68),_._uU(13,"DELETE"),_.qZA(),_.TgZ(14,"option",69),_._uU(15,"PATCH"),_.qZA(),_.TgZ(16,"option",70),_._uU(17,"HEAD"),_.qZA(),_.TgZ(18,"option",71),_._uU(19,"TRACE"),_.qZA(),_.TgZ(20,"option",72),_._uU(21,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(22,"div",8),_.TgZ(23,"label",73),_._uU(24,"Host"),_.qZA(),_.TgZ(25,"div",11),_.TgZ(26,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(27,"div",75),_.TgZ(28,"small"),_._uU(29,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",8),_.TgZ(31,"label",76),_._uU(32,"Port"),_.qZA(),_.TgZ(33,"div",11),_.TgZ(34,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(35,"div",78),_.TgZ(36,"small"),_._uU(37,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"div",14),_.TgZ(39,"label",79),_._uU(40,"Path"),_.qZA(),_.TgZ(41,"div",11),_.TgZ(42,"input",80),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(43,"div",14),_.TgZ(44,"label",41),_.TgZ(45,"span",38),_.SDv(46,81),_.qZA(),_._UZ(47,"span",43),_.qZA(),_.TgZ(48,"div",11),_.TgZ(49,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(50,"div",14),_.TgZ(51,"label",45),_.TgZ(52,"span",38),_._uU(53,"ContentType"),_.qZA(),_._UZ(54,"span",46),_.qZA(),_.TgZ(55,"div",11),_.TgZ(56,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}function J_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_._uU(3,"HttpMethod"),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"select",64),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",68),_._uU(7,"DELETE"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",8),_.TgZ(9,"label",73),_.TgZ(10,"span",38),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",82),_.qZA(),_.TgZ(13,"div",11),_.TgZ(14,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",75),_.TgZ(16,"small"),_._uU(17,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",8),_.TgZ(19,"label",76),_._uU(20,"Port"),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",78),_.TgZ(24,"small"),_._uU(25,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",79),_.TgZ(28,"span",38),_._uU(29,"Path"),_.qZA(),_._UZ(30,"span",83),_.qZA(),_.TgZ(31,"div",11),_.TgZ(32,"input",84),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"label",85),_._uU(35,"Parameter"),_.qZA(),_.TgZ(36,"div",11),_.TgZ(37,"div",86),_.TgZ(38,"div",87),_.TgZ(39,"span",88),_._UZ(40,"i",89),_.qZA(),_.qZA(),_.TgZ(41,"input",90),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).coredataRequestParameter=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(9),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(9),_.Q6J("ngModel",e.coredataRequestParameter)}}function X_(o,a){1&o&&(_.TgZ(0,"div"),_._uU(1," no paramters. "),_.qZA())}function x_(o,a){if(1&o&&(_.TgZ(0,"select",103),_.TgZ(1,"option",104),_._uU(2,"false"),_.qZA(),_.TgZ(3,"option",104),_._uU(4,"true"),_.qZA(),_.qZA()),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function B_(o,a){if(1&o&&_._UZ(0,"input",105),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.MGl("placeholder","valueType: ",e.valueType,"")}}function k_(o,a){if(1&o&&(_.TgZ(0,"div"),_.TgZ(1,"div",14),_.TgZ(2,"label",99),_.SDv(3,100),_.qZA(),_.TgZ(4,"div",11),_.YNc(5,x_,5,4,"select",101),_.YNc(6,B_,1,3,"ng-template",null,102,_.W1O),_.qZA(),_.qZA(),_.qZA()),2&o){const e=a.$implicit,t=_.MAs(7);_.xp6(2),_.s9C("for",e.resourceName),_.xp6(1),_.pQV(e.resourceName),_.QtT(3),_.xp6(2),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function W_(o,a){if(1&o&&(_.TgZ(0,"div"),_.YNc(1,X_,2,0,"div",35),_.YNc(2,k_,8,4,"div",98),_.qZA()),2&o){const e=_.oxw(5);_.xp6(1),_.Q6J("ngIf",0==e.commandServiceTemplateRequestParameters.length),_.xp6(1),_.Q6J("ngForOf",e.commandServiceTemplateRequestParameters)}}function Q_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",14),_.TgZ(1,"label",106),_.TgZ(2,"span",38),_.SDv(3,107),_.qZA(),_._UZ(4,"span",108),_.qZA(),_.TgZ(5,"div",11),_.TgZ(6,"select",109),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(5).pushEventOfGetCmdParamter=n}),_.TgZ(7,"option",110),_._uU(8,"yes"),_.qZA(),_.TgZ(9,"option",111),_._uU(10,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",14),_.TgZ(12,"label",112),_.TgZ(13,"span",38),_.SDv(14,113),_.qZA(),_._UZ(15,"span",114),_.qZA(),_.TgZ(16,"div",11),_.TgZ(17,"select",115),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(5).returnEventOfGetCmdParamter=n}),_.TgZ(18,"option",110),_._uU(19,"yes"),_.qZA(),_.TgZ(20,"option",111),_._uU(21,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(5);_.xp6(6),_.Q6J("ngModel",e.pushEventOfGetCmdParamter),_.xp6(11),_.Q6J("ngModel",e.returnEventOfGetCmdParamter)}}function w_(o,a){if(1&o&&(_.TgZ(0,"div",14),_.TgZ(1,"label",79),_.SDv(2,95),_.qZA(),_.TgZ(3,"div",11),_.TgZ(4,"div",0),_.TgZ(5,"div",1),_.TgZ(6,"span"),_._uU(7,"Command Parameters Setting"),_.qZA(),_.qZA(),_.TgZ(8,"div",7),_.YNc(9,W_,3,2,"div",96),_.YNc(10,Q_,22,2,"ng-template",null,97,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&o){const e=_.MAs(11),t=_.oxw(4);_.xp6(9),_.Q6J("ngIf","PUT"==t.intervalAction.address.httpMethod)("ngIfElse",e)}}function F_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_.TgZ(3,"span",38),_._uU(4,"HttpMethod"),_.qZA(),_._UZ(5,"span",91),_.qZA(),_.TgZ(6,"div",11),_.TgZ(7,"input",92),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",8),_.TgZ(9,"label",73),_.TgZ(10,"span",38),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",82),_.qZA(),_.TgZ(13,"div",11),_.TgZ(14,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",75),_.TgZ(16,"small"),_._uU(17,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",8),_.TgZ(19,"label",76),_._uU(20,"Port"),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",78),_.TgZ(24,"small"),_._uU(25,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",79),_._uU(28,"Path"),_.qZA(),_.TgZ(29,"div",11),_.TgZ(30,"app-device-core-command-combo-list",93),_.NdJ("cmdMethodEvent",function(n){return _.CHM(e),_.oxw(3).onCmdMethodSelected(n)})("commandSelectedEvent",function(n){return _.CHM(e),_.oxw(3).onCommandSelected(n)}),_.qZA(),_.qZA(),_.qZA(),_.YNc(31,w_,12,2,"div",94),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(7),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("validate",!0),_.xp6(1),_.Q6J("ngIf",e.intervalAction.address.path&&e.intervalAction.address.httpMethod)}}function z_(o,a){if(1&o&&(_.TgZ(0,"div",null,57),_.TgZ(2,"div",58),_.YNc(3,y_,57,14,"ng-template",59,60,_.W1O),_.YNc(5,J_,42,13,"ng-template",59,61,_.W1O),_.YNc(7,F_,32,13,"ng-template",59,62,_.W1O),_.qZA(),_.qZA()),2&o){const e=_.oxw(2);_.xp6(2),_.Q6J("ngSwitch",e.templateSelected),_.xp6(1),_.Q6J("ngSwitchCase",e.template_type_custom),_.xp6(2),_.Q6J("ngSwitchCase",e.template_type_coredata),_.xp6(2),_.Q6J("ngSwitchCase",e.template_type_command)}}function Y_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",null,116),_.TgZ(2,"form"),_.TgZ(3,"div",8),_.TgZ(4,"label",117),_._uU(5,"Host"),_.qZA(),_.TgZ(6,"div",11),_.TgZ(7,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(8,"div",119),_.TgZ(9,"small"),_._uU(10,"the MQTT host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",8),_.TgZ(12,"label",120),_._uU(13,"Port"),_.qZA(),_.TgZ(14,"div",11),_.TgZ(15,"input",121),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(16,"div",122),_.TgZ(17,"small"),_._uU(18,"the MQTT port can't be empty and only pure integer is supported!!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",14),_.TgZ(20,"label",41),_.TgZ(21,"span",38),_.SDv(22,123),_.qZA(),_._UZ(23,"span",43),_.qZA(),_.TgZ(24,"div",11),_.TgZ(25,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",45),_.TgZ(28,"span",38),_._uU(29,"ContentType"),_.qZA(),_._UZ(30,"span",46),_.qZA(),_.TgZ(31,"div",11),_.TgZ(32,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",8),_.TgZ(34,"label",124),_._uU(35,"Publisher"),_.qZA(),_.TgZ(36,"div",11),_.TgZ(37,"input",125),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.publisher=n}),_.qZA(),_.TgZ(38,"div",126),_.TgZ(39,"small"),_._uU(40,"the MQTT publisher can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(41,"div",8),_.TgZ(42,"label",127),_._uU(43,"Topic"),_.qZA(),_.TgZ(44,"div",11),_.TgZ(45,"input",128),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.topic=n}),_.qZA(),_.TgZ(46,"div",129),_.TgZ(47,"small"),_._uU(48,"the MQTT topic can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",130),_._uU(51,"QoS"),_.qZA(),_.TgZ(52,"div",11),_.TgZ(53,"input",131),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.qos=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(54,"div",14),_.TgZ(55,"label",132),_._uU(56,"KeepAlive"),_.qZA(),_.TgZ(57,"div",11),_.TgZ(58,"input",133),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.keepAlive=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",14),_.TgZ(60,"label",134),_._uU(61,"Retained"),_.qZA(),_.TgZ(62,"div",11),_.TgZ(63,"select",135),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.retained=n}),_.TgZ(64,"option",136),_._uU(65,"false"),_.qZA(),_.TgZ(66,"option",104),_._uU(67,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"div",14),_.TgZ(69,"label",137),_._uU(70,"AutoReconnect"),_.qZA(),_.TgZ(71,"div",11),_.TgZ(72,"select",138),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.autoReconnect=n}),_.TgZ(73,"option",136),_._uU(74,"true"),_.qZA(),_.TgZ(75,"option",104),_._uU(76,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(77,"div",14),_.TgZ(78,"label",139),_._uU(79,"ConnectTimeout"),_.qZA(),_.TgZ(80,"div",11),_.TgZ(81,"input",140),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.connectTimeout=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType),_.xp6(5),_.ekj("is-invalid",!e.intervalAction.address.publisher)("is-valid",e.intervalAction.address.publisher),_.Q6J("ngModel",e.intervalAction.address.publisher),_.xp6(8),_.ekj("is-invalid",!e.intervalAction.address.topic)("is-valid",e.intervalAction.address.topic),_.Q6J("ngModel",e.intervalAction.address.topic),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.qos),_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.keepAlive),_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.retained),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0),_.xp6(6),_.Q6J("ngModel",e.intervalAction.address.autoReconnect),_.xp6(1),_.Q6J("ngValue",!0),_.xp6(2),_.Q6J("ngValue",!1),_.xp6(6),_.Q6J("ngModel",e.intervalAction.address.connectTimeout)}}function j_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",7),_.TgZ(1,"form"),_.TgZ(2,"div",8),_.TgZ(3,"label",9),_.SDv(4,10),_.qZA(),_.TgZ(5,"div",11),_.TgZ(6,"input",12),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.name=n}),_.qZA(),_.TgZ(7,"div",13),_.TgZ(8,"small"),_._uU(9,"the interval action name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(10,"div",14),_.TgZ(11,"label",15),_.SDv(12,16),_.qZA(),_.TgZ(13,"div",11),_.YNc(14,$_,2,2,"div",17),_.qZA(),_.qZA(),_.TgZ(15,"div",14),_.TgZ(16,"label",18),_.SDv(17,19),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"select",20),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.adminState=n}),_.TgZ(20,"option",21),_._uU(21,"UNLOCKED"),_.qZA(),_.TgZ(22,"option",22),_._uU(23,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"div",14),_.TgZ(25,"label",23),_.SDv(26,24),_.qZA(),_.TgZ(27,"div",11),_.TgZ(28,"div",0),_.TgZ(29,"div",1),_.TgZ(30,"div",25),_.TgZ(31,"span",26),_.TgZ(32,"input",27),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n})("change",function(){return _.CHM(e),_.oxw().typeToggle("REST")}),_.qZA(),_.TgZ(33,"label",28),_._uU(34,"REST"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(35,"div",25),_.TgZ(36,"span",29),_.NdJ("click",function(){return _.CHM(e),_.oxw().typeToggle("MQTT")}),_.TgZ(37,"input",30),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n}),_.qZA(),_.TgZ(38,"label",31),_._uU(39,"MQTT"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(40,"div",25),_.TgZ(41,"span",29),_.NdJ("click",function(){return _.CHM(e),_.oxw().typeToggle("EMAIL")}),_.TgZ(42,"input",32),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n}),_.qZA(),_.TgZ(43,"label",33),_._uU(44,"EMAIL"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(45,H_,10,12,"div",34),_.TgZ(46,"div",7),_.YNc(47,z_,9,4,"div",35),_.YNc(48,Y_,82,31,"div",35),_.TgZ(49,"div",null,36),_.TgZ(51,"form"),_.TgZ(52,"div",14),_.TgZ(53,"label",37),_.TgZ(54,"span",38),_._uU(55,"EmailRecipients"),_.qZA(),_._UZ(56,"span",39),_.qZA(),_.TgZ(57,"div",11),_.TgZ(58,"input",40),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().addressEmailRecipients=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",14),_.TgZ(60,"label",41),_.TgZ(61,"span",38),_.SDv(62,42),_.qZA(),_._UZ(63,"span",43),_.qZA(),_.TgZ(64,"div",11),_.TgZ(65,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(66,"div",14),_.TgZ(67,"label",45),_.TgZ(68,"span",38),_._uU(69,"ContentType"),_.qZA(),_._UZ(70,"span",46),_.qZA(),_.TgZ(71,"div",11),_.TgZ(72,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(6),_.ekj("is-invalid",!e.intervalAction.name)("is-valid",e.intervalAction.name),_.Q6J("ngModel",e.intervalAction.name),_.xp6(8),_.Q6J("ngIf",e.selectedIntervalDefault),_.xp6(5),_.Q6J("ngModel",e.intervalAction.adminState),_.xp6(12),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_REST)("badge-primary",e.intervalAction.address.type===e.addr_type_REST),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_MQTT)("badge-primary",e.intervalAction.address.type===e.addr_type_MQTT),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_EMAIL)("badge-primary",e.intervalAction.address.type===e.addr_type_EMAIL),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(3),_.Q6J("ngIf",e.intervalAction.address.type===e.addr_type_REST),_.xp6(2),_.Q6J("ngIf","REST"===e.intervalAction.address.type),_.xp6(1),_.Q6J("ngIf",(null==e.intervalAction.address?null:e.intervalAction.address.type)===e.addr_type_MQTT),_.xp6(1),_.Udp("display",e.intervalAction.address.type!==e.addr_type_EMAIL?"none":""),_.xp6(9),_.Q6J("ngModel",e.addressEmailRecipients),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}let K_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="custom",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="yes",this.returnEventOfGetCmdParamter="yes",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={},this.intervalActionOrigin={},this.intervalAction.address={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(e=>{e.intervalActionName&&this.schedulerSvc.findIntervalActionByName(e.intervalActionName).subscribe(t=>{this.intervalAction=JSON.parse(JSON.stringify(t.action)),this.intervalActionOrigin=JSON.parse(JSON.stringify(t.action)),this.intervalActionOrigin.adminState=""===this.intervalActionOrigin.adminState?"UNLOCKED":this.intervalActionOrigin.adminState,this.intervalAction.adminState=""===this.intervalAction.adminState?"UNLOCKED":this.intervalAction.adminState,this.addressEmailRecipients=this.intervalAction.address.recipients?this.intervalAction.address.recipients.toString():"",this.findDefaultSelectedIntervalByName(this.intervalAction.intervalName),setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)})})}initDatePickr(){let e=this;this.calendarStart=(0,G.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(t,n,i){e.intervalAction.address.path=e.coredataSvcAvailableAPI[0]+n}})}setActionDefaultProperties(){switch(this.intervalAction.address.type){case this.addr_type_REST:this.intervalAction.address.httpMethod="GET";break;case this.addr_type_MQTT:this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}findDefaultSelectedIntervalByName(e){this.schedulerSvc.findIntervalByName(e).subscribe(t=>{this.selectedIntervalDefault=t.interval})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(e){switch(this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=this.addr_type_REST,this.templateSelected=e,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300)}}typeToggle(e){this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=e,this.templateSelected="custom",setTimeout(()=>{this.renderPopoverComponent()},300)}onCmdMethodSelected(e){this.intervalAction.address.httpMethod=e,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(e){this.intervalAction.address.path=e.path,this.commandServiceTemplateRequestParameters=e.parameters}onSingleIntervalSelected(e){this.intervalAction.intervalName=e.name}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!0,t=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(e=!1);break;case this.addr_type_MQTT:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(e=!1);break;case this.addr_type_EMAIL:t&&(e=!1)}return e}getAllCmdTemplateParametersValue(){var e;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let t={};return null===(e=this.commandServiceTemplateRequestParameters)||void 0===e||e.forEach(n=>{""!==$(`#cmd-param-${n.resourceName}`).val().trim()&&(t[n.resourceName]=$(`#cmd-param-${n.resourceName}`).val().trim())}),JSON.stringify(t)}resolveCommandTemplateParameterSuffix(){if(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent")){let e=this.intervalAction.address.path.split("?");this.intervalAction.address.path=e[0],e[1].split("&").forEach(i=>{let r=i.split("=");"ds-pushevent"===r[0]?this.pushEventOfGetCmdParamter=r[1]:"ds-returnevent"===r[0]&&(this.returnEventOfGetCmdParamter=r[1])})}}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}save(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.updateIntervalAction(this.intervalAction).subscribe(e=>{this.errorSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-interval-action"]],decls:8,vars:2,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c;return a="Edit Interval Action",e="Save",t="Name",n="IntervalName",i="AdminState",r="Address",C="Content",T="Available and Editable templates >>",v="CoreDataSeviceTemplate",S="CommandServiceTemplate",m="CustomTemplate",R="Content",f="Parameters",Z="" + "\ufffd0\ufffd" + "",D="pushevent",L="returnevent",c="Content",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,["class","card-body",4,"ngIf"],[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],n,["class","mb-3",4,"ngIf"],["for","adminState",1,"col-md-2","col-form-label"],i,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],r,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","REST",1,"form-check-label"],[1,"badge",3,"click"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["for","Content",1,"col-md-2","col-form-label"],C,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],[1,"mb-3"],[3,"validate","selectedInterval","intervalSelectedEvent"],[1,"mr-2","text-primary"],T,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","custom template will be choosed by default",1,"fa","fa-question-circle-o","fa-lg","mr-2"],["role","button",1,"badge","mr-2",3,"click"],v,S,m,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],["for","addressPath","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],R,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],f,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],Z,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],D,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],L,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"],["MQTT",""],["for","addressHost","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHost","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostFeedback",1,"invalid-feedback"],["for","addressPort","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPort","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortFeedback",1,"invalid-feedback"],c,["for","addressPublisher","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],["for","addressTopic","required","",1,"col-md-2","col-form-label"],["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],["for","addressQoS","required","",1,"col-md-2","col-form-label"],["type","number","id","addressQoS","name","addressQoS","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive","required","",1,"col-md-2","col-form-label"],["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],["selected","",3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.save()}),_.SDv(6,5),_.qZA(),_.qZA(),_.YNc(7,j_,73,30,"div",6),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(2),_.Q6J("ngIf",t.intervalAction))},directives:[p.O5,l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr,l._,V,p.RF,p.n9,H.P,p.sg,l.wV],styles:[""]}),o})();var _e=E(8253),ee=E(1964),te=E(4294),ne=E(5894),ie=E(7216);let y=(()=>{class o{constructor(e,t){this.router=e,this.schedulerSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.schedulerSvc.ping().pipe((0,te.q)(1),(0,ne.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"scheduler",routerPath:`/${t.url.split("/")[1]}`}})),(0,ie.z)(()=>(0,ee.of)(!0)))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(A.F0),_.LFG(M.G))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const oe=[{path:"",component:P,canActivate:[_e.a,y],canActivateChild:[y],children:[{path:"",redirectTo:"interval-center",pathMatch:"full"},{path:"interval-center",component:O,children:[{path:"",redirectTo:"interval-list",pathMatch:"full"},{path:"interval-list",component:q},{path:"add-interval",component:I_},{path:"edit-interval",component:p_}]},{path:"interval-action-center",component:u_,children:[{path:"",redirectTo:"interval-action-list",pathMatch:"full"},{path:"interval-action-list",component:m_},{path:"add-interval-action",component:V_},{path:"edit-interval-action",component:K_}]}]}];let ae=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[A.Bz.forChild(oe)],A.Bz]}),o})();var le=E(6342);let de=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[p.ez,l.u5,le.Y,ae]]}),o})()},7982:(N_,U,E)=>{E.d(U,{V:()=>P});var p=E(1841),l=E(5894),A=E(476),_=E(4889);let P=(()=>{class O{constructor(s,g){this.http=s,this.errorSvc=g,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new p.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,l.K)(g=>this.errorSvc.handleError(g)))}findCommnadsByDeviceId(s){return this.http.get(`${this.commandsByDeviceIdUrl}${s}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}allDeviceCoreCommandsPagination(s,g){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${s}&limit=${g}`).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}findDeviceAssociatedCommnadsByDeviceName(s){return this.http.get(`${this.commandsByDeviceNameUrl}${s}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,l.K)(g=>this.errorSvc.handleError(g)))}issueGetBinaryCmd(s,g){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${s}/command/${g}`,{responseType:"arraybuffer"}).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}issueGetCmd(s,g){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${s}/${g}?ds-pushevent=yes&ds-returnevent=yes`).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}issueSetCmd(s,g,u){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${s}/${g}`,JSON.stringify(u),this.httpPostOrPutJSONOptions).pipe((0,l.K)(b=>this.errorSvc.handleError(b)))}}return O.\u0275fac=function(s){return new(s||O)(A.LFG(p.eN),A.LFG(_.T))},O.\u0275prov=A.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/536.a6d638d333a1069f0cc8.js b/cmd/edgex-ui-server/static/web/en-US/536.a6d638d333a1069f0cc8.js deleted file mode 100644 index 7ca02e97..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/536.a6d638d333a1069f0cc8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[536],{5886:(N_,U,E)=>{E.r(U),E.d(U,{SchedulerModule:()=>de});var p=E(8583),l=E(3092),A=E(9502),_=E(476);let P=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-scheduler"]],decls:13,vars:0,consts:function(){let a,e;return a="Interval",e="IntervalAction",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./interval-center","routerLinkActive","active",1,"nav-link"],a,["routerLink","./interval-action-center","routerLinkActive","active",1,"nav-link"],e,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.TgZ(5,"span"),_.SDv(6,5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(7,"li",3),_.TgZ(8,"a",6),_.TgZ(9,"span"),_.SDv(10,7),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",8),_._UZ(12,"router-outlet"),_.qZA(),_.qZA())},directives:[A.yS,A.Od,A.lC],styles:[""]}),o})(),O=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[A.lC],styles:[""]}),o})();var M=E(8391),s=E(7822),g=E(4889);function u(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",50),_.TgZ(1,"div",51),_.TgZ(2,"button",52),_.NdJ("click",function(){return _.CHM(e),_.oxw().refresh()}),_.TgZ(3,"span"),_._UZ(4,"i",53),_.TgZ(5,"span"),_.SDv(6,54),_.qZA(),_.qZA(),_.qZA(),_.TgZ(7,"button",55),_.TgZ(8,"span"),_._UZ(9,"i",56),_.TgZ(10,"span"),_.SDv(11,57),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",58),_.NdJ("click",function(){return _.CHM(e),_.oxw().edit()}),_.TgZ(13,"span"),_._UZ(14,"i",59),_.TgZ(15,"span"),_.SDv(16,60),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"button",61),_.NdJ("click",function(){return _.CHM(e),_.oxw().deleteConfirm()}),_.TgZ(18,"span"),_._UZ(19,"i",62),_.TgZ(20,"span"),_.SDv(21,63),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(12),_.Q6J("disabled",1!==e.intervalSelected.length),_.xp6(5),_.Q6J("disabled",0===e.intervalSelected.length)}}function h(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"input",64),_.NdJ("click",function(n){return _.CHM(e),_.oxw().selectAll(n)}),_.qZA()}if(2&o){const e=_.oxw();_.Q6J("checked",e.isCheckedAll())}}function b(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",64),_.NdJ("click",function(n){const r=_.CHM(e).$implicit;return _.oxw().selectOne(n,r)}),_.qZA(),_.qZA(),_.TgZ(3,"td",65),_._uU(4),_.qZA(),_.TgZ(5,"td",65),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.qZA(),_.qZA()}if(2&o){const e=a.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.start),_.xp6(2),_.Oqu(e.end),_.xp6(2),_.Oqu(e.interval),_.xp6(2),_.Oqu(!!e.runOnce)}}let q=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r,this.enableSelectAll=!0,this.singleIntervalSelectedEvent=new _.vpe,this.toolbars=!0,this.intervalList=[],this.intervalSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName?this.schedulerSvc.findIntervalByName(e.intervalName).subscribe(t=>{this.intervalList=[],this.intervalList.push(t.interval)}):this.findIntervalsPagination()})}refresh(){this.schedulerSvc.findAllIntervalsPagination(0,this.pageLimit).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.intervalList=e.intervals,this.msgSvc.success("refresh"),this.resetPagination())})}findIntervalsPagination(){this.schedulerSvc.findAllIntervalsPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.intervalList=e.intervals)})}onSingleIntervalSelectedEmitter(){this.singleIntervalSelectedEvent.emit(this.singleIntervalSelected)}isSingleChecked(e){var t;return(null===(t=this.singleIntervalSelected)||void 0===t?void 0:t.name)===e}selectSingleInterval(e,t){e.target.checked?this.intervalList.forEach(i=>{i.name===t&&(this.singleIntervalSelected=i)}):this.singleIntervalSelected={},this.onSingleIntervalSelectedEmitter()}isCheckedAll(){let e=!0;return this.intervalList&&0===this.intervalList.length&&(e=!1),this.intervalList.forEach(t=>{-1===this.intervalSelected.findIndex(n=>n.name===t.name)&&(e=!1)}),e}selectAll(e){this.intervalList.forEach(e.target.checked?n=>{-1===this.intervalSelected.findIndex(i=>i.name===n.name)&&this.intervalSelected.push(n)}:n=>{let i=this.intervalSelected.findIndex(r=>r.name===n.name);-1!==i&&this.intervalSelected.splice(i,1)})}isChecked(e){return this.enableSelectAll?this.intervalSelected.findIndex(t=>t.name===e)>=0:this.isSingleChecked(e)}selectOne(e,t){if(!this.enableSelectAll)return void this.selectSingleInterval(e,t.name);if(e.target.checked)return void this.intervalSelected.push(t);let i=this.intervalSelected.findIndex(r=>r.name===t.name);-1!==i&&this.intervalSelected.splice(i,1)}edit(){this.router.navigate(["../edit-interval"],{relativeTo:this.route,queryParams:{intervalName:this.intervalSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervals(){this.intervalSelected.forEach((e,t)=>{this.schedulerSvc.deleteIntervalByName(e.name).subscribe(n=>{this.errSvc.handleErrorForAPI(n)||(this.intervalSelected.splice(t,1),this.intervalList.forEach((i,r)=>{i.name!==e.name||this.intervalList.splice(r,1)}),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findIntervalsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalsPagination()}prePage(){this.setPagination(-1),this.findIntervalsPagination()}nextPage(){this.setPagination(1),this.findIntervalsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-list"]],inputs:{enableSelectAll:"enableSelectAll",toolbars:"toolbars",singleIntervalSelected:"singleIntervalSelected"},outputs:{singleIntervalSelectedEvent:"singleIntervalSelectedEvent"},decls:66,vars:6,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c,N;return a="Interval List",e="ID",t="Name",n="Start",i="End",r="Interval",C="RunOnce",T="items per page",v="Previous",S="Next",m="Warning",R=" Associated actions will also be deleted and the data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",f="Cancel",Z="Confirm",D="Refresh",L="Add",c="Edit",N="Delete",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger"],a,[1,"card-body","p-0","position-relative"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],e,t,n,i,r,C,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],T,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],v,[1,"page-item"],S,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],m,[1,"modal-body"],R,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],f,["type","button",1,"btn","btn-danger",3,"click"],Z,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],D,["type","button","routerLink","../add-interval",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],L,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],c,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],N,["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.YNc(6,u,22,2,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"table",7),_.TgZ(9,"thead",8),_.TgZ(10,"tr"),_.TgZ(11,"th",9),_.YNc(12,h,1,1,"input",10),_.qZA(),_.TgZ(13,"th",9),_.SDv(14,11),_.qZA(),_.TgZ(15,"th",9),_.SDv(16,12),_.qZA(),_.TgZ(17,"th",9),_.SDv(18,13),_.qZA(),_.TgZ(19,"th",9),_.SDv(20,14),_.qZA(),_.TgZ(21,"th",9),_.SDv(22,15),_.qZA(),_.TgZ(23,"th",9),_.SDv(24,16),_.qZA(),_.qZA(),_.qZA(),_.TgZ(25,"tbody"),_.YNc(26,b,15,9,"tr",17),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",18),_.TgZ(28,"nav",19),_.TgZ(29,"ul",20),_.TgZ(30,"li",21),_.TgZ(31,"span",22),_.SDv(32,23),_.qZA(),_.qZA(),_.TgZ(33,"li",24),_.TgZ(34,"select",25),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(35,"option",26),_._uU(36,"5"),_.qZA(),_.TgZ(37,"option",27),_._uU(38,"10"),_.qZA(),_.TgZ(39,"option",28),_._uU(40,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(41,"li",29),_.TgZ(42,"button",30),_.NdJ("click",function(){return t.prePage()}),_._UZ(43,"i",31),_.TgZ(44,"span"),_.SDv(45,32),_.qZA(),_.qZA(),_.qZA(),_.TgZ(46,"li",33),_.TgZ(47,"button",30),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(48,"span"),_.SDv(49,34),_.qZA(),_._UZ(50,"i",35),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",36),_.TgZ(52,"div",37),_.TgZ(53,"div",38),_.TgZ(54,"div",39),_.TgZ(55,"h5",40),_._UZ(56,"i",41),_.TgZ(57,"span"),_.SDv(58,42),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",43),_.SDv(60,44),_.qZA(),_.TgZ(61,"div",45),_.TgZ(62,"button",46),_.SDv(63,47),_.qZA(),_.TgZ(64,"button",48),_.NdJ("click",function(){return t.deleteIntervals()}),_.SDv(65,49),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(6),_.Q6J("ngIf",t.toolbars),_.xp6(6),_.Q6J("ngIf",t.enableSelectAll),_.xp6(14),_.Q6J("ngForOf",t.intervalList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.intervalList.length))},directives:[p.O5,p.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,A.rH],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();var G=E(9827);let I_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r,this.interval={}}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,G.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,G.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}submit(){this.schedulerSvc.addInterval(this.interval).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("create new interval",`name: ${this.interval.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-interval"]],decls:54,vars:16,consts:function(){let a,e,t,n,i,r,C;return a="Add Interval",e="Submit",t="Name",n="Start",i="End",r="Interval",C="RunOnce",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationIntervalName","name","intervalName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],n,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd",1,"col-md-2","col-form-label"],i,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],C,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.submit()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.interval.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_._uU(16,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",13),_.TgZ(18,"label",14),_.SDv(19,15),_.qZA(),_.TgZ(20,"div",10),_.TgZ(21,"div",16),_.TgZ(22,"div",17),_.TgZ(23,"span",18),_._UZ(24,"i",19),_.qZA(),_.qZA(),_.TgZ(25,"input",20),_.NdJ("ngModelChange",function(i){return t.interval.start=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",13),_.TgZ(27,"label",21),_.SDv(28,22),_.qZA(),_.TgZ(29,"div",10),_.TgZ(30,"div",16),_.TgZ(31,"div",17),_.TgZ(32,"span",18),_._UZ(33,"i",19),_.qZA(),_.qZA(),_.TgZ(34,"input",23),_.NdJ("ngModelChange",function(i){return t.interval.end=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(35,"div",13),_.TgZ(36,"label",24),_.TgZ(37,"span",25),_.SDv(38,26),_.qZA(),_._UZ(39,"span",27),_.qZA(),_.TgZ(40,"div",10),_.TgZ(41,"input",28),_.NdJ("ngModelChange",function(i){return t.interval.interval=i}),_.qZA(),_.TgZ(42,"div",29),_.TgZ(43,"small"),_._uU(44,"the interval interval can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(45,"div",13),_.TgZ(46,"label",30),_.SDv(47,31),_.qZA(),_.TgZ(48,"div",10),_.TgZ(49,"select",32),_.NdJ("ngModelChange",function(i){return t.interval.runOnce=i}),_.TgZ(50,"option",33),_._uU(51,"false"),_.qZA(),_.TgZ(52,"option",33),_._uU(53,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",!t.interval.name||!t.interval.interval),_.xp6(8),_.ekj("is-invalid",!t.interval.name)("is-valid",t.interval.name),_.Q6J("ngModel",t.interval.name),_.xp6(12),_.Q6J("ngModel",t.interval.start),_.xp6(9),_.Q6J("ngModel",t.interval.end),_.xp6(7),_.ekj("is-invalid",!t.interval.interval)("is-valid",t.interval.interval),_.Q6J("ngModel",t.interval.interval),_.xp6(8),_.Q6J("ngModel",t.interval.runOnce),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function C_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",8),_.TgZ(2,"label",9),_.SDv(3,10),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"input",12),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.name=n}),_.qZA(),_.TgZ(6,"div",13),_.TgZ(7,"small"),_._uU(8,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",14),_.TgZ(10,"label",15),_.SDv(11,16),_.qZA(),_.TgZ(12,"div",11),_.TgZ(13,"div",17),_.TgZ(14,"div",18),_.TgZ(15,"span",19),_._UZ(16,"i",20),_.qZA(),_.qZA(),_.TgZ(17,"input",21),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.start=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",14),_.TgZ(19,"label",22),_.SDv(20,23),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"div",17),_.TgZ(23,"div",18),_.TgZ(24,"span",19),_._UZ(25,"i",20),_.qZA(),_.qZA(),_.TgZ(26,"input",24),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.end=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",14),_.TgZ(28,"label",25),_.TgZ(29,"span",26),_.SDv(30,27),_.qZA(),_._UZ(31,"span",28),_.qZA(),_.TgZ(32,"div",11),_.TgZ(33,"input",29),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.interval=n}),_.qZA(),_.TgZ(34,"div",30),_.TgZ(35,"small"),_._uU(36,"the interval interval can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(37,"div",14),_.TgZ(38,"label",31),_.SDv(39,32),_.qZA(),_.TgZ(40,"div",11),_.TgZ(41,"select",33),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.runOnce=n}),_.TgZ(42,"option",34),_._uU(43,"false"),_.qZA(),_.TgZ(44,"option",34),_._uU(45,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(5),_.ekj("is-invalid",!e.interval.name)("is-valid",e.interval.name),_.Q6J("ngModel",e.interval.name),_.xp6(12),_.Q6J("ngModel",e.interval.start),_.xp6(9),_.Q6J("ngModel",e.interval.end),_.xp6(7),_.ekj("is-invalid",!e.interval.interval)("is-valid",e.interval.interval),_.Q6J("ngModel",e.interval.interval),_.xp6(8),_.Q6J("ngModel",e.interval.runOnce),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}let p_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName&&this.schedulerSvc.findIntervalByName(e.intervalName).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.interval=t.interval,this.interval.runOnce=!!this.interval.runOnce,setTimeout(()=>{this.initDatePickr()},300))})})}initDatePickr(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.calendarStart=(0,G.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,G.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}update(){this.schedulerSvc.updateInterval(this.interval).subscribe(e=>{var t;this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("update interval",`name: ${null===(t=this.interval)||void 0===t?void 0:t.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-interval"]],decls:10,vars:3,consts:function(){let a,e,t,n,i,r,C;return a="Edit Interval",e="Submit",t="Name",n="Start",i="End",r="Interval",C="RunOnce",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[4,"ngIf"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","name","intervalName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],n,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd2",1,"col-md-2","col-form-label"],i,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","ISO8601 duration format","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],C,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_._uU(5),_.TgZ(6,"button",4),_.NdJ("click",function(){return t.update()}),_.SDv(7,5),_.qZA(),_.qZA(),_.TgZ(8,"div",6),_.YNc(9,C_,46,15,"form",7),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.hij(" ",null==t.interval?null:t.interval.name," "),_.xp6(1),_.Q6J("disabled",!(null!=t.interval&&t.interval.name)),_.xp6(3),_.Q6J("ngIf",t.interval))},directives:[p.O5,l._Y,l.JL,l.F,l.Fj,l.JJ,l.On,l.Q7,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),u_=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-action-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[A.lC],styles:[""]}),o})();const v_=function(o){return{intervalName:o}};function S_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(n){const r=_.CHM(e).$implicit;return _.oxw().selectOne(n,r)}),_.qZA(),_.qZA(),_.TgZ(3,"td",61),_._uU(4),_.qZA(),_.TgZ(5,"td",61),_._uU(6),_.qZA(),_.TgZ(7,"td"),_.TgZ(8,"a",62),_._uU(9),_.qZA(),_.qZA(),_.TgZ(10,"td"),_._uU(11),_.qZA(),_.qZA()}if(2&o){const e=a.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Q6J("queryParams",_.VKq(8,v_,e.intervalName)),_.xp6(1),_.Oqu(e.intervalName),_.xp6(2),_.Oqu(e.address.type)}}let m_=(()=>{class o{constructor(e,t,n,i){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.intervalActionList=[],this.intervalActionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName||this.findIntervalActionsPagination()})}refresh(){this.schedulerSvc.findAllIntervalActionsPagination(0,this.pageLimit).subscribe(e=>{this.intervalActionList=e.actions,this.msgSvc.success("refresh"),this.resetPagination()})}findIntervalActionsPagination(){this.schedulerSvc.findAllIntervalActionsPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.intervalActionList=e.actions})}isCheckedAll(){let e=!0;return this.intervalActionList&&0===this.intervalActionList.length&&(e=!1),this.intervalActionList.forEach(t=>{-1===this.intervalActionSelected.findIndex(n=>n.name===t.name)&&(e=!1)}),e}selectAll(e){this.intervalActionList.forEach(e.target.checked?n=>{-1===this.intervalActionSelected.findIndex(i=>i.name===n.name)&&this.intervalActionSelected.push(n)}:n=>{let i=this.intervalActionSelected.findIndex(r=>r.name===n.name);-1!==i&&this.intervalActionSelected.splice(i,1)})}isChecked(e){return this.intervalActionSelected.findIndex(t=>t.name===e)>=0}selectOne(e,t){if(e.target.checked)return void this.intervalActionSelected.push(t);let i=this.intervalActionSelected.findIndex(r=>r.name===t.name);-1!==i&&this.intervalActionSelected.splice(i,1)}edit(){this.router.navigate(["../edit-interval-action"],{relativeTo:this.route,queryParams:{intervalActionName:this.intervalActionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervalActions(){this.intervalActionSelected.forEach((e,t)=>{this.schedulerSvc.deleteIntervalActionByName(e.name).subscribe(()=>{this.intervalActionList.forEach((n,i)=>{n.name!==e.name||this.intervalActionList.splice(i,1)}),this.intervalActionSelected.splice(t,1),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findIntervalActionsPagination()})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalActionsPagination()}prePage(){this.setPagination(-1),this.findIntervalActionsPagination()}nextPage(){this.setPagination(1),this.findIntervalActionsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-action-list"]],decls:84,vars:7,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L;return a="Interval Action List",e="Refresh",t="Add",n="Edit",i="Delete",r="ID",C="Name",T="AssociatedInterval",v="AddressType",S="items per page",m="Previous",R="Next",f="Warning",Z="The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F",D="Cancel",L="Confirm",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],a,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],e,["type","button","routerLink","../add-interval-action",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],t,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],r,C,T,v,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],S,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],m,[1,"page-item"],R,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],f,[1,"modal-body"],Z,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],D,["type","button",1,"btn","btn-danger",3,"click"],L,[1,"user-select-all"],["routerLink","../../interval-center",3,"queryParams"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(9,"span"),_._UZ(10,"i",8),_.TgZ(11,"span"),_.SDv(12,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"button",10),_.TgZ(14,"span"),_._UZ(15,"i",11),_.TgZ(16,"span"),_.SDv(17,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(19,"span"),_._UZ(20,"i",14),_.TgZ(21,"span"),_.SDv(22,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(24,"span"),_._UZ(25,"i",17),_.TgZ(26,"span"),_.SDv(27,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",19),_.TgZ(29,"table",20),_.TgZ(30,"thead",21),_.TgZ(31,"tr"),_.TgZ(32,"th",22),_.TgZ(33,"input",23),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(34,"th",22),_.SDv(35,24),_.qZA(),_.TgZ(36,"th",22),_.SDv(37,25),_.qZA(),_.TgZ(38,"th",22),_.SDv(39,26),_.qZA(),_.TgZ(40,"th",22),_.SDv(41,27),_.qZA(),_.qZA(),_.qZA(),_.TgZ(42,"tbody"),_.YNc(43,S_,12,10,"tr",28),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"div",29),_.TgZ(45,"nav",30),_.TgZ(46,"ul",31),_.TgZ(47,"li",32),_.TgZ(48,"span",33),_.SDv(49,34),_.qZA(),_.qZA(),_.TgZ(50,"li",35),_.TgZ(51,"select",36),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(52,"option",37),_._uU(53,"5"),_.qZA(),_.TgZ(54,"option",38),_._uU(55,"10"),_.qZA(),_.TgZ(56,"option",39),_._uU(57,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(58,"li",40),_.TgZ(59,"button",41),_.NdJ("click",function(){return t.prePage()}),_._UZ(60,"i",42),_.TgZ(61,"span"),_.SDv(62,43),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"li",44),_.TgZ(64,"button",41),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(65,"span"),_.SDv(66,45),_.qZA(),_._UZ(67,"i",46),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"div",47),_.TgZ(69,"div",48),_.TgZ(70,"div",49),_.TgZ(71,"div",50),_.TgZ(72,"h5",51),_._UZ(73,"i",52),_.TgZ(74,"span"),_.SDv(75,53),_.qZA(),_.qZA(),_.qZA(),_.TgZ(76,"div",54),_.TgZ(77,"span"),_.SDv(78,55),_.qZA(),_.qZA(),_.TgZ(79,"div",56),_.TgZ(80,"button",57),_.SDv(81,58),_.qZA(),_.TgZ(82,"button",59),_.NdJ("click",function(){return t.deleteIntervalActions()}),_.SDv(83,60),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(18),_.Q6J("disabled",1!==t.intervalActionSelected.length),_.xp6(5),_.Q6J("disabled",0===t.intervalActionSelected.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(10),_.Q6J("ngForOf",t.intervalActionList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.intervalActionList.length))},directives:[A.rH,p.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,A.yS],styles:[""]}),o})();function R_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",10),_.NdJ("click",function(n){return _.CHM(e),_.oxw().close(n)}),_.qZA()}}let V=(()=>{class o{constructor(){this.visible=!1,this.validate=!1,this.intervalSelectedEvent=new _.vpe,this.selectedInterval={}}ngOnInit(){}onSingleIntervalSelected(e){this.selectedInterval=e,this.intervalSelectedEvent.emit(e)}close(e){e.stopPropagation(),this.visible=!1}toggle(e){e.stopImmediatePropagation(),this.visible=!this.visible}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-combo-list"]],inputs:{validate:"validate",selectedInterval:"selectedInterval"},outputs:{intervalSelectedEvent:"intervalSelectedEvent"},decls:12,vars:11,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"click"],["type","text","name","selectedInterval","readonly","readonly","maxlength","0","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"combo-body","shadow","rounded"],[3,"singleIntervalSelected","enableSelectAll","toolbars","singleIntervalSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(e,t){1&e&&(_.YNc(0,R_,1,0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"div",2),_.NdJ("click",function(i){return t.toggle(i)}),_.TgZ(3,"input",3),_.NdJ("ngModelChange",function(i){return t.selectedInterval.name=i}),_.qZA(),_.TgZ(4,"div",4),_.TgZ(5,"span",5),_._UZ(6,"i",6),_.qZA(),_.qZA(),_.TgZ(7,"div",7),_.TgZ(8,"small"),_._uU(9,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(10,"div",8),_.TgZ(11,"app-interval-list",9),_.NdJ("singleIntervalSelectedEvent",function(i){return t.onSingleIntervalSelected(i)}),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.Q6J("ngIf",t.visible),_.xp6(3),_.ekj("is-invalid",!t.selectedInterval.name&&t.validate)("is-valid",t.selectedInterval.name&&t.validate),_.Q6J("ngModel",t.selectedInterval.name),_.xp6(7),_.Udp("display",t.visible?"":"none"),_.xp6(1),_.Q6J("singleIntervalSelected",t.selectedInterval)("enableSelectAll",!1)("toolbars",!1))},directives:[p.O5,l.Fj,l.nD,l.Q7,l.JJ,l.On,q],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),o})();var H=E(9549);function f_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("coredata")}),_.SDv(2,92),_.qZA(),_.TgZ(3,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("command")}),_.SDv(4,93),_.qZA(),_.TgZ(5,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("custom")}),_.SDv(6,94),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(1),_.ekj("badge-secondary","coredata"!==e.templateSelected)("badge-primary","coredata"===e.templateSelected),_.xp6(2),_.ekj("badge-secondary","command"!==e.templateSelected)("badge-primary","command"===e.templateSelected),_.xp6(2),_.ekj("badge-secondary","custom"!==e.templateSelected)("badge-primary","custom"===e.templateSelected)}}function Z_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.SDv(3,102),_.qZA(),_.TgZ(4,"div",14),_.TgZ(5,"select",103),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",104),_._uU(7,"GET"),_.qZA(),_.TgZ(8,"option",105),_._uU(9,"POST"),_.qZA(),_.TgZ(10,"option",106),_._uU(11,"PUT"),_.qZA(),_.TgZ(12,"option",107),_._uU(13,"DELETE"),_.qZA(),_.TgZ(14,"option",108),_._uU(15,"PATCH"),_.qZA(),_.TgZ(16,"option",109),_._uU(17,"HEAD"),_.qZA(),_.TgZ(18,"option",110),_._uU(19,"TRACE"),_.qZA(),_.TgZ(20,"option",111),_._uU(21,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(22,"div",11),_.TgZ(23,"label",112),_.SDv(24,113),_.qZA(),_.TgZ(25,"div",14),_.TgZ(26,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(27,"div",115),_.TgZ(28,"small"),_._uU(29,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",11),_.TgZ(31,"label",116),_.SDv(32,117),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(35,"div",119),_.TgZ(36,"small"),_.SDv(37,120),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"div",17),_.TgZ(39,"label",121),_.SDv(40,122),_.qZA(),_.TgZ(41,"div",14),_.TgZ(42,"input",123),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(43,"div",17),_.TgZ(44,"label",50),_.TgZ(45,"span",51),_.SDv(46,124),_.qZA(),_._UZ(47,"span",53),_.qZA(),_.TgZ(48,"div",14),_.TgZ(49,"input",54),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(50,"div",17),_.TgZ(51,"label",55),_.TgZ(52,"span",51),_._uU(53,"ContentType"),_.qZA(),_._UZ(54,"span",56),_.qZA(),_.TgZ(55,"div",14),_.TgZ(56,"input",57),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}function D_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.SDv(3,125),_.qZA(),_.TgZ(4,"div",14),_.TgZ(5,"select",103),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",107),_._uU(7,"DELETE"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"label",112),_.TgZ(10,"span",51),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",126),_.qZA(),_.TgZ(13,"div",14),_.TgZ(14,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",115),_.TgZ(16,"small"),_.SDv(17,127),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"label",116),_.SDv(20,128),_.qZA(),_.TgZ(21,"div",14),_.TgZ(22,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",119),_.TgZ(24,"small"),_.SDv(25,129),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",17),_.TgZ(27,"label",121),_.TgZ(28,"span",51),_.SDv(29,130),_.qZA(),_._UZ(30,"span",131),_.qZA(),_.TgZ(31,"div",14),_.TgZ(32,"input",132),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",17),_.TgZ(34,"label",133),_.SDv(35,134),_.qZA(),_.TgZ(36,"div",14),_.TgZ(37,"div",135),_.TgZ(38,"div",136),_.TgZ(39,"span",137),_._UZ(40,"i",138),_.qZA(),_.qZA(),_.TgZ(41,"input",139),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).coredataRequestParameter=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(9),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(9),_.Q6J("ngModel",e.coredataRequestParameter)}}function L_(o,a){1&o&&(_.TgZ(0,"div"),_._uU(1," no paramters. "),_.qZA())}function M_(o,a){if(1&o&&(_.TgZ(0,"select",157),_.TgZ(1,"option",78),_._uU(2,"false"),_.qZA(),_.TgZ(3,"option",78),_._uU(4,"true"),_.qZA(),_.qZA()),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function h_(o,a){if(1&o&&_._UZ(0,"input",158),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.MGl("placeholder","valueType: ",e.valueType,"")}}function O_(o,a){if(1&o&&(_.TgZ(0,"div"),_.TgZ(1,"div",17),_.TgZ(2,"label",153),_.SDv(3,154),_.qZA(),_.TgZ(4,"div",14),_.YNc(5,M_,5,4,"select",155),_.YNc(6,h_,1,3,"ng-template",null,156,_.W1O),_.qZA(),_.qZA(),_.qZA()),2&o){const e=a.$implicit,t=_.MAs(7);_.xp6(2),_.s9C("for",e.resourceName),_.xp6(1),_.pQV(e.resourceName),_.QtT(3),_.xp6(2),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function G_(o,a){if(1&o&&(_.TgZ(0,"div"),_.YNc(1,L_,2,0,"div",38),_.YNc(2,O_,8,4,"div",152),_.qZA()),2&o){const e=_.oxw(4);_.xp6(1),_.Q6J("ngIf",0==e.commandServiceTemplateRequestParameters.length),_.xp6(1),_.Q6J("ngForOf",e.commandServiceTemplateRequestParameters)}}function U_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",17),_.TgZ(1,"label",159),_.TgZ(2,"span",51),_.SDv(3,160),_.qZA(),_._UZ(4,"span",161),_.qZA(),_.TgZ(5,"div",14),_.TgZ(6,"select",162),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(4).pushEventOfGetCmdParamter=n}),_.TgZ(7,"option",163),_._uU(8,"yes"),_.qZA(),_.TgZ(9,"option",164),_._uU(10,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",17),_.TgZ(12,"label",165),_.TgZ(13,"span",51),_.SDv(14,166),_.qZA(),_._UZ(15,"span",167),_.qZA(),_.TgZ(16,"div",14),_.TgZ(17,"select",168),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(4).returnEventOfGetCmdParamter=n}),_.TgZ(18,"option",163),_._uU(19,"yes"),_.qZA(),_.TgZ(20,"option",164),_._uU(21,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(4);_.xp6(6),_.Q6J("ngModel",e.pushEventOfGetCmdParamter),_.xp6(11),_.Q6J("ngModel",e.returnEventOfGetCmdParamter)}}function P_(o,a){if(1&o&&(_.TgZ(0,"div",17),_.TgZ(1,"label",121),_.SDv(2,149),_.qZA(),_.TgZ(3,"div",14),_.TgZ(4,"div",6),_.TgZ(5,"div",1),_.TgZ(6,"span"),_._uU(7,"Command Parameters Setting"),_.qZA(),_.qZA(),_.TgZ(8,"div",4),_.YNc(9,G_,3,2,"div",150),_.YNc(10,U_,22,2,"ng-template",null,151,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&o){const e=_.MAs(11),t=_.oxw(3);_.xp6(9),_.Q6J("ngIf","PUT"==t.intervalAction.address.httpMethod)("ngIfElse",e)}}function b_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.TgZ(3,"span",51),_.SDv(4,140),_.qZA(),_._UZ(5,"span",141),_.qZA(),_.TgZ(6,"div",14),_.TgZ(7,"input",142),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"label",112),_.TgZ(10,"span",51),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",126),_.qZA(),_.TgZ(13,"div",14),_.TgZ(14,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",115),_.TgZ(16,"small"),_.SDv(17,143),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"label",116),_.SDv(20,144),_.qZA(),_.TgZ(21,"div",14),_.TgZ(22,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",119),_.TgZ(24,"small"),_.SDv(25,145),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",17),_.TgZ(27,"label",121),_.SDv(28,146),_.qZA(),_.TgZ(29,"div",14),_.TgZ(30,"app-device-core-command-combo-list",147),_.NdJ("cmdMethodEvent",function(n){return _.CHM(e),_.oxw(2).onCmdMethodSelected(n)})("commandSelectedEvent",function(n){return _.CHM(e),_.oxw(2).onCommandSelected(n)}),_.qZA(),_.qZA(),_.qZA(),_.YNc(31,P_,12,2,"div",148),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(7),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("validate",!0),_.xp6(1),_.Q6J("ngIf",e.intervalAction.address.path&&e.intervalAction.address.httpMethod)}}function q_(o,a){if(1&o&&(_.TgZ(0,"div",null,95),_.TgZ(2,"div",96),_.YNc(3,Z_,57,14,"ng-template",97,98,_.W1O),_.YNc(5,D_,42,13,"ng-template",97,99,_.W1O),_.YNc(7,b_,32,13,"ng-template",97,100,_.W1O),_.qZA(),_.qZA()),2&o){const e=_.oxw();_.xp6(2),_.Q6J("ngSwitch",e.templateSelected),_.xp6(1),_.Q6J("ngSwitchCase","custom"),_.xp6(2),_.Q6J("ngSwitchCase","coredata"),_.xp6(2),_.Q6J("ngSwitchCase","command")}}let V_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="coredata",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="yes",this.returnEventOfGetCmdParamter="yes",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={adminState:"UNLOCKED"},this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}ngOnInit(){this.renderPopoverComponent(),this.renderCoredataDefaultTemplate()}initDatePickr(){let e=this;this.calendarStart=(0,G.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(t,n,i){e.intervalAction.address.path=e.coredataSvcAvailableAPI[0]+n}})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(e){switch(this.templateSelected=e,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.httpMethod="",this.intervalAction.address.host="edgex-core-command",this.intervalAction.address.port=59882,this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300),this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}typeToggle(e){this.intervalAction.address.type=e,"REST"===e&&this.templateToggle("coredata")}onCmdMethodSelected(e){this.intervalAction.address.httpMethod=e,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(e){this.intervalAction.address.path=e.path,this.commandServiceTemplateRequestParameters=e.parameters}onSingleIntervalSelected(e){this.intervalAction.intervalName=e.name}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!0,t=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(e=!1);break;case this.addr_type_MQTT:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(e=!1);break;case this.addr_type_EMAIL:t&&(e=!1)}return e}getAllCmdTemplateParametersValue(){var e;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let t={};return null===(e=this.commandServiceTemplateRequestParameters)||void 0===e||e.forEach(n=>{""!==$(`#cmd-param-${n.resourceName}`).val().trim()&&(t[n.resourceName]=$(`#cmd-param-${n.resourceName}`).val().trim())}),JSON.stringify(t)}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}submit(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.addIntervalAction(this.intervalAction).subscribe(e=>{this.errorSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-interval-action"]],decls:176,vars:63,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c,N,I,J,X,x,B,k,W,Q,w,F,z,Y,j,K,__,e_,t_,n_,i_,o_,a_,l_,d_,r_,A_,s_,T_,c_,E_,g_;return a="Tips",e=" The support scheduler micro service provide an internal EdgeX \u201Cclock\u201D that can kick off operations in any EdgeX service. At a configuration specified time (called an interval), the service calls on any EdgeX service API URL via REST to trigger an operation (called an interval action). For example, the scheduling service periodically calls on core data APIs to clean up old sensed events that have been successfully exported out of EdgeX. " + "\ufffd#7\ufffd\ufffd/#7\ufffd" + " Users also can call the API of command service to collect one device's data automatically. ",t="Add Interval Action",n="Submit",i="Name",r="IntervalName",C="AdminState",T="Address",v="Host",S="the MQTT host can't be empty!",m="Port",R="the MQTT port can't be empty and only pure integer is supported!!",f="Content",Z="Publisher",D="the MQTT publisher can't be empty!",L="Topic",c="the MQTT topic can't be empty!",N="QoS",I="KeepAlive",J="Retained",X="AutoReconnect",x="ConnectTimeout",B="EmailRecipients",k="Content",W="CoreDataSeviceTemplate",Q="CommandServiceTemplate",w="CustomTemplate",F="HttpMethod",z="Host",Y="Port",j="the REST address port can't be empty and only pure integer is supported!",K="Path",__="Content",e_="HttpMethod",t_="the REST address host can't be empty!",n_="Port",i_="the REST address port can't be empty and only pure integer is supported!",o_="Path",a_="Parameter",l_="HttpMethod",d_="the REST address host can't be empty!",r_="Port",A_="the REST address port can't be empty and only pure integer is supported!",s_="Path",T_="Parameters",c_="" + "\ufffd0\ufffd" + "",E_="pushevent",g_="returnevent",[[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],a,[1,"card-body"],e,[1,"card"],[1,"fa","fa-plus","text-danger","mr-1"],t,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],n,[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],i,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],r,[1,"mb-3"],[3,"validate","intervalSelectedEvent"],["for","adminState",1,"col-md-2","col-form-label"],C,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],T,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","REST",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["MQTT",""],["for","addressHostMQTT","required","",1,"col-md-2","col-form-label"],v,["type","text","id","addressHostMQTT","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostMQTTFeedback",1,"invalid-feedback"],S,["for","addressPortMQTT","required","",1,"col-md-2","col-form-label"],m,["type","text","id","addressPortMQTT","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortMQTTFeedback",1,"invalid-feedback"],R,["for","Content",1,"col-md-2","col-form-label"],[1,"mr-2"],f,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],["for","addressPublisher","required","",1,"col-md-2","col-form-label"],Z,["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],D,["for","addressTopic","required","",1,"col-md-2","col-form-label"],L,["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],c,["for","addressQoS",1,"col-md-2","col-form-label"],N,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","only pure integer supported!",1,"fa","fa-question-circle-o","fa-lg"],["type","number","id","addressQoS","name","addressQoS",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive",1,"col-md-2","col-form-label"],I,["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],J,["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],X,["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],x,["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],B,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],k,["role","button",1,"badge","mr-2",3,"click"],W,Q,w,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],F,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],z,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],Y,["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],j,["for","addressPath","required","",1,"col-md-2","col-form-label"],K,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],__,e_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],t_,n_,i_,o_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],a_,[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],l_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],d_,r_,A_,s_,[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],T_,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],c_,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],E_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],g_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.tHW(6,5),_._UZ(7,"br"),_.N_p(),_.qZA(),_.qZA(),_.TgZ(8,"div",6),_.TgZ(9,"div",1),_._UZ(10,"i",7),_.TgZ(11,"span"),_.SDv(12,8),_.qZA(),_.TgZ(13,"button",9),_.NdJ("click",function(){return t.submit()}),_.SDv(14,10),_.qZA(),_.qZA(),_.TgZ(15,"div",4),_.TgZ(16,"form"),_.TgZ(17,"div",11),_.TgZ(18,"label",12),_.SDv(19,13),_.qZA(),_.TgZ(20,"div",14),_.TgZ(21,"input",15),_.NdJ("ngModelChange",function(i){return t.intervalAction.name=i}),_.qZA(),_.TgZ(22,"div",16),_.TgZ(23,"small"),_._uU(24,"the interval action name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(25,"div",17),_.TgZ(26,"label",18),_.SDv(27,19),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"div",20),_.TgZ(30,"app-interval-combo-list",21),_.NdJ("intervalSelectedEvent",function(i){return t.onSingleIntervalSelected(i)}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",17),_.TgZ(32,"label",22),_.SDv(33,23),_.qZA(),_.TgZ(34,"div",14),_.TgZ(35,"select",24),_.NdJ("ngModelChange",function(i){return t.intervalAction.adminState=i}),_.TgZ(36,"option",25),_._uU(37,"UNLOCKED"),_.qZA(),_.TgZ(38,"option",26),_._uU(39,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(40,"div",17),_.TgZ(41,"label",27),_.SDv(42,28),_.qZA(),_.TgZ(43,"div",14),_.TgZ(44,"div",6),_.TgZ(45,"div",1),_.TgZ(46,"div",29),_.TgZ(47,"span",30),_.TgZ(48,"input",31),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("REST")}),_.qZA(),_.TgZ(49,"label",32),_._uU(50,"REST"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",29),_.TgZ(52,"span",30),_.TgZ(53,"input",33),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("MQTT")}),_.qZA(),_.TgZ(54,"label",34),_._uU(55,"MQTT"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",29),_.TgZ(57,"span",30),_.TgZ(58,"input",35),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("EMAIL")}),_.qZA(),_.TgZ(59,"label",36),_._uU(60,"EMAIL"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(61,f_,7,12,"div",37),_.TgZ(62,"div",4),_.YNc(63,q_,9,4,"div",38),_.TgZ(64,"div",null,39),_.TgZ(66,"form"),_.TgZ(67,"div",11),_.TgZ(68,"label",40),_.SDv(69,41),_.qZA(),_.TgZ(70,"div",14),_.TgZ(71,"input",42),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.host=i}),_.qZA(),_.TgZ(72,"div",43),_.TgZ(73,"small"),_.SDv(74,44),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(75,"div",11),_.TgZ(76,"label",45),_.SDv(77,46),_.qZA(),_.TgZ(78,"div",14),_.TgZ(79,"input",47),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.port=i}),_.qZA(),_.TgZ(80,"div",48),_.TgZ(81,"small"),_.SDv(82,49),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(83,"div",17),_.TgZ(84,"label",50),_.TgZ(85,"span",51),_.SDv(86,52),_.qZA(),_._UZ(87,"span",53),_.qZA(),_.TgZ(88,"div",14),_.TgZ(89,"input",54),_.NdJ("ngModelChange",function(i){return t.intervalAction.content=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(90,"div",17),_.TgZ(91,"label",55),_.TgZ(92,"span",51),_._uU(93,"ContentType"),_.qZA(),_._UZ(94,"span",56),_.qZA(),_.TgZ(95,"div",14),_.TgZ(96,"input",57),_.NdJ("ngModelChange",function(i){return t.intervalAction.contentType=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(97,"div",11),_.TgZ(98,"label",58),_.SDv(99,59),_.qZA(),_.TgZ(100,"div",14),_.TgZ(101,"input",60),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.publisher=i}),_.qZA(),_.TgZ(102,"div",61),_.TgZ(103,"small"),_.SDv(104,62),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(105,"div",11),_.TgZ(106,"label",63),_.SDv(107,64),_.qZA(),_.TgZ(108,"div",14),_.TgZ(109,"input",65),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.topic=i}),_.qZA(),_.TgZ(110,"div",66),_.TgZ(111,"small"),_.SDv(112,67),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(113,"div",17),_.TgZ(114,"label",68),_.TgZ(115,"span",51),_.SDv(116,69),_.qZA(),_._UZ(117,"span",70),_.qZA(),_.TgZ(118,"div",14),_.TgZ(119,"input",71),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.qos=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(120,"div",17),_.TgZ(121,"label",72),_.TgZ(122,"span",51),_.SDv(123,73),_.qZA(),_._UZ(124,"span",70),_.qZA(),_.TgZ(125,"div",14),_.TgZ(126,"input",74),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.keepAlive=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(127,"div",17),_.TgZ(128,"label",75),_.SDv(129,76),_.qZA(),_.TgZ(130,"div",14),_.TgZ(131,"select",77),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.retained=i}),_.TgZ(132,"option",78),_._uU(133,"false"),_.qZA(),_.TgZ(134,"option",78),_._uU(135,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(136,"div",17),_.TgZ(137,"label",79),_.SDv(138,80),_.qZA(),_.TgZ(139,"div",14),_.TgZ(140,"select",81),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.autoReconnect=i}),_.TgZ(141,"option",78),_._uU(142,"true"),_.qZA(),_.TgZ(143,"option",78),_._uU(144,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(145,"div",17),_.TgZ(146,"label",82),_.TgZ(147,"span",51),_.SDv(148,83),_.qZA(),_._UZ(149,"span",70),_.qZA(),_.TgZ(150,"div",14),_.TgZ(151,"input",84),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.connectTimeout=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(152,"div",null,85),_.TgZ(154,"form"),_.TgZ(155,"div",17),_.TgZ(156,"label",86),_.TgZ(157,"span",51),_.SDv(158,87),_.qZA(),_._UZ(159,"span",88),_.qZA(),_.TgZ(160,"div",14),_.TgZ(161,"input",89),_.NdJ("ngModelChange",function(i){return t.addressEmailRecipients=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(162,"div",17),_.TgZ(163,"label",50),_.TgZ(164,"span",51),_.SDv(165,90),_.qZA(),_._UZ(166,"span",53),_.qZA(),_.TgZ(167,"div",14),_.TgZ(168,"input",54),_.NdJ("ngModelChange",function(i){return t.intervalAction.content=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(169,"div",17),_.TgZ(170,"label",55),_.TgZ(171,"span",51),_._uU(172,"ContentType"),_.qZA(),_._UZ(173,"span",56),_.qZA(),_.TgZ(174,"div",14),_.TgZ(175,"input",57),_.NdJ("ngModelChange",function(i){return t.intervalAction.contentType=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(13),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.intervalAction.name)("is-valid",t.intervalAction.name),_.Q6J("ngModel",t.intervalAction.name),_.xp6(9),_.Q6J("validate",!0),_.xp6(5),_.Q6J("ngModel",t.intervalAction.adminState),_.xp6(12),_.ekj("badge-secondary","REST"!==t.intervalAction.address.type)("badge-primary","REST"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary","MQTT"!==t.intervalAction.address.type)("badge-primary","MQTT"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary","EMAIL"!==t.intervalAction.address.type)("badge-primary","EMAIL"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(3),_.Q6J("ngIf","REST"===t.intervalAction.address.type),_.xp6(2),_.Q6J("ngIf","REST"===t.intervalAction.address.type),_.xp6(1),_.Udp("display","MQTT"!==t.intervalAction.address.type?"none":""),_.xp6(7),_.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),_.Q6J("ngModel",t.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),_.Q6J("ngModel",t.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",t.intervalAction.content),_.xp6(7),_.Q6J("ngModel",t.intervalAction.contentType),_.xp6(5),_.ekj("is-invalid",!t.intervalAction.address.publisher)("is-valid",t.intervalAction.address.publisher),_.Q6J("ngModel",t.intervalAction.address.publisher),_.xp6(8),_.ekj("is-invalid",!t.intervalAction.address.topic)("is-valid",t.intervalAction.address.topic),_.Q6J("ngModel",t.intervalAction.address.topic),_.xp6(10),_.Q6J("ngModel",t.intervalAction.address.qos),_.xp6(7),_.Q6J("ngModel",t.intervalAction.address.keepAlive),_.xp6(5),_.Q6J("ngModel",t.intervalAction.address.retained),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0),_.xp6(6),_.Q6J("ngModel",t.intervalAction.address.autoReconnect),_.xp6(1),_.Q6J("ngValue",!0),_.xp6(2),_.Q6J("ngValue",!1),_.xp6(8),_.Q6J("ngModel",t.intervalAction.address.connectTimeout),_.xp6(1),_.Udp("display","EMAIL"!==(null==t.intervalAction.address?null:t.intervalAction.address.type)?"none":""),_.xp6(9),_.Q6J("ngModel",t.addressEmailRecipients),_.xp6(7),_.Q6J("ngModel",t.intervalAction.content),_.xp6(7),_.Q6J("ngModel",t.intervalAction.contentType))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,V,l.EJ,l.YN,l.Kr,l._,p.O5,l.wV,p.RF,p.n9,H.P,p.sg],styles:[""]}),o})();function $_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",48),_.TgZ(1,"app-interval-combo-list",49),_.NdJ("intervalSelectedEvent",function(n){return _.CHM(e),_.oxw(2).onSingleIntervalSelected(n)}),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(1),_.Q6J("validate",!0)("selectedInterval",e.selectedIntervalDefault)}}function H_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"span",50),_.SDv(2,51),_.qZA(),_._UZ(3,"span",52),_.TgZ(4,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_coredata)}),_.SDv(5,54),_.qZA(),_.TgZ(6,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_command)}),_.SDv(7,55),_.qZA(),_.TgZ(8,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_custom)}),_.SDv(9,56),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(4),_.ekj("badge-secondary",e.templateSelected!==e.template_type_coredata)("badge-primary",e.templateSelected===e.template_type_coredata),_.xp6(2),_.ekj("badge-secondary",e.templateSelected!==e.template_type_command)("badge-primary",e.templateSelected===e.template_type_command),_.xp6(2),_.ekj("badge-secondary",e.templateSelected!==e.template_type_custom)("badge-primary",e.templateSelected===e.template_type_custom)}}function y_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_._uU(3,"HttpMethod"),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"select",64),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",65),_._uU(7,"GET"),_.qZA(),_.TgZ(8,"option",66),_._uU(9,"POST"),_.qZA(),_.TgZ(10,"option",67),_._uU(11,"PUT"),_.qZA(),_.TgZ(12,"option",68),_._uU(13,"DELETE"),_.qZA(),_.TgZ(14,"option",69),_._uU(15,"PATCH"),_.qZA(),_.TgZ(16,"option",70),_._uU(17,"HEAD"),_.qZA(),_.TgZ(18,"option",71),_._uU(19,"TRACE"),_.qZA(),_.TgZ(20,"option",72),_._uU(21,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(22,"div",8),_.TgZ(23,"label",73),_._uU(24,"Host"),_.qZA(),_.TgZ(25,"div",11),_.TgZ(26,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(27,"div",75),_.TgZ(28,"small"),_._uU(29,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",8),_.TgZ(31,"label",76),_._uU(32,"Port"),_.qZA(),_.TgZ(33,"div",11),_.TgZ(34,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(35,"div",78),_.TgZ(36,"small"),_._uU(37,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"div",14),_.TgZ(39,"label",79),_._uU(40,"Path"),_.qZA(),_.TgZ(41,"div",11),_.TgZ(42,"input",80),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(43,"div",14),_.TgZ(44,"label",41),_.TgZ(45,"span",38),_.SDv(46,81),_.qZA(),_._UZ(47,"span",43),_.qZA(),_.TgZ(48,"div",11),_.TgZ(49,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(50,"div",14),_.TgZ(51,"label",45),_.TgZ(52,"span",38),_._uU(53,"ContentType"),_.qZA(),_._UZ(54,"span",46),_.qZA(),_.TgZ(55,"div",11),_.TgZ(56,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}function J_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_._uU(3,"HttpMethod"),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"select",64),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",68),_._uU(7,"DELETE"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",8),_.TgZ(9,"label",73),_.TgZ(10,"span",38),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",82),_.qZA(),_.TgZ(13,"div",11),_.TgZ(14,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",75),_.TgZ(16,"small"),_._uU(17,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",8),_.TgZ(19,"label",76),_._uU(20,"Port"),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",78),_.TgZ(24,"small"),_._uU(25,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",79),_.TgZ(28,"span",38),_._uU(29,"Path"),_.qZA(),_._UZ(30,"span",83),_.qZA(),_.TgZ(31,"div",11),_.TgZ(32,"input",84),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"label",85),_._uU(35,"Parameter"),_.qZA(),_.TgZ(36,"div",11),_.TgZ(37,"div",86),_.TgZ(38,"div",87),_.TgZ(39,"span",88),_._UZ(40,"i",89),_.qZA(),_.qZA(),_.TgZ(41,"input",90),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).coredataRequestParameter=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(9),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(9),_.Q6J("ngModel",e.coredataRequestParameter)}}function X_(o,a){1&o&&(_.TgZ(0,"div"),_._uU(1," no paramters. "),_.qZA())}function x_(o,a){if(1&o&&(_.TgZ(0,"select",103),_.TgZ(1,"option",104),_._uU(2,"false"),_.qZA(),_.TgZ(3,"option",104),_._uU(4,"true"),_.qZA(),_.qZA()),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function B_(o,a){if(1&o&&_._UZ(0,"input",105),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.MGl("placeholder","valueType: ",e.valueType,"")}}function k_(o,a){if(1&o&&(_.TgZ(0,"div"),_.TgZ(1,"div",14),_.TgZ(2,"label",99),_.SDv(3,100),_.qZA(),_.TgZ(4,"div",11),_.YNc(5,x_,5,4,"select",101),_.YNc(6,B_,1,3,"ng-template",null,102,_.W1O),_.qZA(),_.qZA(),_.qZA()),2&o){const e=a.$implicit,t=_.MAs(7);_.xp6(2),_.s9C("for",e.resourceName),_.xp6(1),_.pQV(e.resourceName),_.QtT(3),_.xp6(2),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function W_(o,a){if(1&o&&(_.TgZ(0,"div"),_.YNc(1,X_,2,0,"div",35),_.YNc(2,k_,8,4,"div",98),_.qZA()),2&o){const e=_.oxw(5);_.xp6(1),_.Q6J("ngIf",0==e.commandServiceTemplateRequestParameters.length),_.xp6(1),_.Q6J("ngForOf",e.commandServiceTemplateRequestParameters)}}function Q_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",14),_.TgZ(1,"label",106),_.TgZ(2,"span",38),_.SDv(3,107),_.qZA(),_._UZ(4,"span",108),_.qZA(),_.TgZ(5,"div",11),_.TgZ(6,"select",109),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(5).pushEventOfGetCmdParamter=n}),_.TgZ(7,"option",110),_._uU(8,"yes"),_.qZA(),_.TgZ(9,"option",111),_._uU(10,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",14),_.TgZ(12,"label",112),_.TgZ(13,"span",38),_.SDv(14,113),_.qZA(),_._UZ(15,"span",114),_.qZA(),_.TgZ(16,"div",11),_.TgZ(17,"select",115),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(5).returnEventOfGetCmdParamter=n}),_.TgZ(18,"option",110),_._uU(19,"yes"),_.qZA(),_.TgZ(20,"option",111),_._uU(21,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(5);_.xp6(6),_.Q6J("ngModel",e.pushEventOfGetCmdParamter),_.xp6(11),_.Q6J("ngModel",e.returnEventOfGetCmdParamter)}}function w_(o,a){if(1&o&&(_.TgZ(0,"div",14),_.TgZ(1,"label",79),_.SDv(2,95),_.qZA(),_.TgZ(3,"div",11),_.TgZ(4,"div",0),_.TgZ(5,"div",1),_.TgZ(6,"span"),_._uU(7,"Command Parameters Setting"),_.qZA(),_.qZA(),_.TgZ(8,"div",7),_.YNc(9,W_,3,2,"div",96),_.YNc(10,Q_,22,2,"ng-template",null,97,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&o){const e=_.MAs(11),t=_.oxw(4);_.xp6(9),_.Q6J("ngIf","PUT"==t.intervalAction.address.httpMethod)("ngIfElse",e)}}function F_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_.TgZ(3,"span",38),_._uU(4,"HttpMethod"),_.qZA(),_._UZ(5,"span",91),_.qZA(),_.TgZ(6,"div",11),_.TgZ(7,"input",92),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",8),_.TgZ(9,"label",73),_.TgZ(10,"span",38),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",82),_.qZA(),_.TgZ(13,"div",11),_.TgZ(14,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",75),_.TgZ(16,"small"),_._uU(17,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",8),_.TgZ(19,"label",76),_._uU(20,"Port"),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",78),_.TgZ(24,"small"),_._uU(25,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",79),_._uU(28,"Path"),_.qZA(),_.TgZ(29,"div",11),_.TgZ(30,"app-device-core-command-combo-list",93),_.NdJ("cmdMethodEvent",function(n){return _.CHM(e),_.oxw(3).onCmdMethodSelected(n)})("commandSelectedEvent",function(n){return _.CHM(e),_.oxw(3).onCommandSelected(n)}),_.qZA(),_.qZA(),_.qZA(),_.YNc(31,w_,12,2,"div",94),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(7),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("validate",!0),_.xp6(1),_.Q6J("ngIf",e.intervalAction.address.path&&e.intervalAction.address.httpMethod)}}function z_(o,a){if(1&o&&(_.TgZ(0,"div",null,57),_.TgZ(2,"div",58),_.YNc(3,y_,57,14,"ng-template",59,60,_.W1O),_.YNc(5,J_,42,13,"ng-template",59,61,_.W1O),_.YNc(7,F_,32,13,"ng-template",59,62,_.W1O),_.qZA(),_.qZA()),2&o){const e=_.oxw(2);_.xp6(2),_.Q6J("ngSwitch",e.templateSelected),_.xp6(1),_.Q6J("ngSwitchCase",e.template_type_custom),_.xp6(2),_.Q6J("ngSwitchCase",e.template_type_coredata),_.xp6(2),_.Q6J("ngSwitchCase",e.template_type_command)}}function Y_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",null,116),_.TgZ(2,"form"),_.TgZ(3,"div",8),_.TgZ(4,"label",117),_._uU(5,"Host"),_.qZA(),_.TgZ(6,"div",11),_.TgZ(7,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(8,"div",119),_.TgZ(9,"small"),_._uU(10,"the MQTT host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",8),_.TgZ(12,"label",120),_._uU(13,"Port"),_.qZA(),_.TgZ(14,"div",11),_.TgZ(15,"input",121),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(16,"div",122),_.TgZ(17,"small"),_._uU(18,"the MQTT port can't be empty and only pure integer is supported!!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",14),_.TgZ(20,"label",41),_.TgZ(21,"span",38),_.SDv(22,123),_.qZA(),_._UZ(23,"span",43),_.qZA(),_.TgZ(24,"div",11),_.TgZ(25,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",45),_.TgZ(28,"span",38),_._uU(29,"ContentType"),_.qZA(),_._UZ(30,"span",46),_.qZA(),_.TgZ(31,"div",11),_.TgZ(32,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",8),_.TgZ(34,"label",124),_._uU(35,"Publisher"),_.qZA(),_.TgZ(36,"div",11),_.TgZ(37,"input",125),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.publisher=n}),_.qZA(),_.TgZ(38,"div",126),_.TgZ(39,"small"),_._uU(40,"the MQTT publisher can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(41,"div",8),_.TgZ(42,"label",127),_._uU(43,"Topic"),_.qZA(),_.TgZ(44,"div",11),_.TgZ(45,"input",128),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.topic=n}),_.qZA(),_.TgZ(46,"div",129),_.TgZ(47,"small"),_._uU(48,"the MQTT topic can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",130),_._uU(51,"QoS"),_.qZA(),_.TgZ(52,"div",11),_.TgZ(53,"input",131),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.qos=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(54,"div",14),_.TgZ(55,"label",132),_._uU(56,"KeepAlive"),_.qZA(),_.TgZ(57,"div",11),_.TgZ(58,"input",133),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.keepAlive=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",14),_.TgZ(60,"label",134),_._uU(61,"Retained"),_.qZA(),_.TgZ(62,"div",11),_.TgZ(63,"select",135),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.retained=n}),_.TgZ(64,"option",136),_._uU(65,"false"),_.qZA(),_.TgZ(66,"option",104),_._uU(67,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"div",14),_.TgZ(69,"label",137),_._uU(70,"AutoReconnect"),_.qZA(),_.TgZ(71,"div",11),_.TgZ(72,"select",138),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.autoReconnect=n}),_.TgZ(73,"option",136),_._uU(74,"true"),_.qZA(),_.TgZ(75,"option",104),_._uU(76,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(77,"div",14),_.TgZ(78,"label",139),_._uU(79,"ConnectTimeout"),_.qZA(),_.TgZ(80,"div",11),_.TgZ(81,"input",140),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.connectTimeout=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType),_.xp6(5),_.ekj("is-invalid",!e.intervalAction.address.publisher)("is-valid",e.intervalAction.address.publisher),_.Q6J("ngModel",e.intervalAction.address.publisher),_.xp6(8),_.ekj("is-invalid",!e.intervalAction.address.topic)("is-valid",e.intervalAction.address.topic),_.Q6J("ngModel",e.intervalAction.address.topic),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.qos),_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.keepAlive),_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.retained),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0),_.xp6(6),_.Q6J("ngModel",e.intervalAction.address.autoReconnect),_.xp6(1),_.Q6J("ngValue",!0),_.xp6(2),_.Q6J("ngValue",!1),_.xp6(6),_.Q6J("ngModel",e.intervalAction.address.connectTimeout)}}function j_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",7),_.TgZ(1,"form"),_.TgZ(2,"div",8),_.TgZ(3,"label",9),_.SDv(4,10),_.qZA(),_.TgZ(5,"div",11),_.TgZ(6,"input",12),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.name=n}),_.qZA(),_.TgZ(7,"div",13),_.TgZ(8,"small"),_._uU(9,"the interval action name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(10,"div",14),_.TgZ(11,"label",15),_.SDv(12,16),_.qZA(),_.TgZ(13,"div",11),_.YNc(14,$_,2,2,"div",17),_.qZA(),_.qZA(),_.TgZ(15,"div",14),_.TgZ(16,"label",18),_.SDv(17,19),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"select",20),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.adminState=n}),_.TgZ(20,"option",21),_._uU(21,"UNLOCKED"),_.qZA(),_.TgZ(22,"option",22),_._uU(23,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"div",14),_.TgZ(25,"label",23),_.SDv(26,24),_.qZA(),_.TgZ(27,"div",11),_.TgZ(28,"div",0),_.TgZ(29,"div",1),_.TgZ(30,"div",25),_.TgZ(31,"span",26),_.TgZ(32,"input",27),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n})("change",function(){return _.CHM(e),_.oxw().typeToggle("REST")}),_.qZA(),_.TgZ(33,"label",28),_._uU(34,"REST"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(35,"div",25),_.TgZ(36,"span",29),_.NdJ("click",function(){return _.CHM(e),_.oxw().typeToggle("MQTT")}),_.TgZ(37,"input",30),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n}),_.qZA(),_.TgZ(38,"label",31),_._uU(39,"MQTT"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(40,"div",25),_.TgZ(41,"span",29),_.NdJ("click",function(){return _.CHM(e),_.oxw().typeToggle("EMAIL")}),_.TgZ(42,"input",32),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n}),_.qZA(),_.TgZ(43,"label",33),_._uU(44,"EMAIL"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(45,H_,10,12,"div",34),_.TgZ(46,"div",7),_.YNc(47,z_,9,4,"div",35),_.YNc(48,Y_,82,31,"div",35),_.TgZ(49,"div",null,36),_.TgZ(51,"form"),_.TgZ(52,"div",14),_.TgZ(53,"label",37),_.TgZ(54,"span",38),_._uU(55,"EmailRecipients"),_.qZA(),_._UZ(56,"span",39),_.qZA(),_.TgZ(57,"div",11),_.TgZ(58,"input",40),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().addressEmailRecipients=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",14),_.TgZ(60,"label",41),_.TgZ(61,"span",38),_.SDv(62,42),_.qZA(),_._UZ(63,"span",43),_.qZA(),_.TgZ(64,"div",11),_.TgZ(65,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(66,"div",14),_.TgZ(67,"label",45),_.TgZ(68,"span",38),_._uU(69,"ContentType"),_.qZA(),_._UZ(70,"span",46),_.qZA(),_.TgZ(71,"div",11),_.TgZ(72,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(6),_.ekj("is-invalid",!e.intervalAction.name)("is-valid",e.intervalAction.name),_.Q6J("ngModel",e.intervalAction.name),_.xp6(8),_.Q6J("ngIf",e.selectedIntervalDefault),_.xp6(5),_.Q6J("ngModel",e.intervalAction.adminState),_.xp6(12),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_REST)("badge-primary",e.intervalAction.address.type===e.addr_type_REST),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_MQTT)("badge-primary",e.intervalAction.address.type===e.addr_type_MQTT),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_EMAIL)("badge-primary",e.intervalAction.address.type===e.addr_type_EMAIL),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(3),_.Q6J("ngIf",e.intervalAction.address.type===e.addr_type_REST),_.xp6(2),_.Q6J("ngIf","REST"===e.intervalAction.address.type),_.xp6(1),_.Q6J("ngIf",(null==e.intervalAction.address?null:e.intervalAction.address.type)===e.addr_type_MQTT),_.xp6(1),_.Udp("display",e.intervalAction.address.type!==e.addr_type_EMAIL?"none":""),_.xp6(9),_.Q6J("ngModel",e.addressEmailRecipients),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}let K_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="custom",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="yes",this.returnEventOfGetCmdParamter="yes",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={},this.intervalActionOrigin={},this.intervalAction.address={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(e=>{e.intervalActionName&&this.schedulerSvc.findIntervalActionByName(e.intervalActionName).subscribe(t=>{this.intervalAction=JSON.parse(JSON.stringify(t.action)),this.intervalActionOrigin=JSON.parse(JSON.stringify(t.action)),this.intervalActionOrigin.adminState=""===this.intervalActionOrigin.adminState?"UNLOCKED":this.intervalActionOrigin.adminState,this.intervalAction.adminState=""===this.intervalAction.adminState?"UNLOCKED":this.intervalAction.adminState,this.addressEmailRecipients=this.intervalAction.address.recipients?this.intervalAction.address.recipients.toString():"",this.findDefaultSelectedIntervalByName(this.intervalAction.intervalName),setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)})})}initDatePickr(){let e=this;this.calendarStart=(0,G.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(t,n,i){e.intervalAction.address.path=e.coredataSvcAvailableAPI[0]+n}})}setActionDefaultProperties(){switch(this.intervalAction.address.type){case this.addr_type_REST:this.intervalAction.address.httpMethod="GET";break;case this.addr_type_MQTT:this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}findDefaultSelectedIntervalByName(e){this.schedulerSvc.findIntervalByName(e).subscribe(t=>{this.selectedIntervalDefault=t.interval})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(e){switch(this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=this.addr_type_REST,this.templateSelected=e,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300)}}typeToggle(e){this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=e,this.templateSelected="custom",setTimeout(()=>{this.renderPopoverComponent()},300)}onCmdMethodSelected(e){this.intervalAction.address.httpMethod=e,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(e){this.intervalAction.address.path=e.path,this.commandServiceTemplateRequestParameters=e.parameters}onSingleIntervalSelected(e){this.intervalAction.intervalName=e.name}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!0,t=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(e=!1);break;case this.addr_type_MQTT:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(e=!1);break;case this.addr_type_EMAIL:t&&(e=!1)}return e}getAllCmdTemplateParametersValue(){var e;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let t={};return null===(e=this.commandServiceTemplateRequestParameters)||void 0===e||e.forEach(n=>{""!==$(`#cmd-param-${n.resourceName}`).val().trim()&&(t[n.resourceName]=$(`#cmd-param-${n.resourceName}`).val().trim())}),JSON.stringify(t)}resolveCommandTemplateParameterSuffix(){if(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent")){let e=this.intervalAction.address.path.split("?");this.intervalAction.address.path=e[0],e[1].split("&").forEach(i=>{let r=i.split("=");"ds-pushevent"===r[0]?this.pushEventOfGetCmdParamter=r[1]:"ds-returnevent"===r[0]&&(this.returnEventOfGetCmdParamter=r[1])})}}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}save(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.updateIntervalAction(this.intervalAction).subscribe(e=>{this.errorSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-interval-action"]],decls:8,vars:2,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c;return a="Edit Interval Action",e="Save",t="Name",n="IntervalName",i="AdminState",r="Address",C="Content",T="Available and Editable templates >>",v="CoreDataSeviceTemplate",S="CommandServiceTemplate",m="CustomTemplate",R="Content",f="Parameters",Z="" + "\ufffd0\ufffd" + "",D="pushevent",L="returnevent",c="Content",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,["class","card-body",4,"ngIf"],[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],n,["class","mb-3",4,"ngIf"],["for","adminState",1,"col-md-2","col-form-label"],i,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],r,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","REST",1,"form-check-label"],[1,"badge",3,"click"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["for","Content",1,"col-md-2","col-form-label"],C,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],[1,"mb-3"],[3,"validate","selectedInterval","intervalSelectedEvent"],[1,"mr-2","text-primary"],T,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","custom template will be choosed by default",1,"fa","fa-question-circle-o","fa-lg","mr-2"],["role","button",1,"badge","mr-2",3,"click"],v,S,m,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],["for","addressPath","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],R,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],f,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],Z,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],D,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],L,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"],["MQTT",""],["for","addressHost","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHost","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostFeedback",1,"invalid-feedback"],["for","addressPort","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPort","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortFeedback",1,"invalid-feedback"],c,["for","addressPublisher","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],["for","addressTopic","required","",1,"col-md-2","col-form-label"],["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],["for","addressQoS","required","",1,"col-md-2","col-form-label"],["type","number","id","addressQoS","name","addressQoS","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive","required","",1,"col-md-2","col-form-label"],["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],["selected","",3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.save()}),_.SDv(6,5),_.qZA(),_.qZA(),_.YNc(7,j_,73,30,"div",6),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(2),_.Q6J("ngIf",t.intervalAction))},directives:[p.O5,l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr,l._,V,p.RF,p.n9,H.P,p.sg,l.wV],styles:[""]}),o})();var _e=E(8253),ee=E(1964),te=E(4294),ne=E(5894),ie=E(7216);let y=(()=>{class o{constructor(e,t){this.router=e,this.schedulerSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.schedulerSvc.ping().pipe((0,te.q)(1),(0,ne.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"scheduler",routerPath:`/${t.url.split("/")[1]}`}})),(0,ie.z)(()=>(0,ee.of)(!0)))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(A.F0),_.LFG(M.G))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const oe=[{path:"",component:P,canActivate:[_e.a,y],canActivateChild:[y],children:[{path:"",redirectTo:"interval-center",pathMatch:"full"},{path:"interval-center",component:O,children:[{path:"",redirectTo:"interval-list",pathMatch:"full"},{path:"interval-list",component:q},{path:"add-interval",component:I_},{path:"edit-interval",component:p_}]},{path:"interval-action-center",component:u_,children:[{path:"",redirectTo:"interval-action-list",pathMatch:"full"},{path:"interval-action-list",component:m_},{path:"add-interval-action",component:V_},{path:"edit-interval-action",component:K_}]}]}];let ae=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[A.Bz.forChild(oe)],A.Bz]}),o})();var le=E(6342);let de=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[p.ez,l.u5,le.Y,ae]]}),o})()},7982:(N_,U,E)=>{E.d(U,{V:()=>P});var p=E(1841),l=E(5894),A=E(476),_=E(4889);let P=(()=>{class O{constructor(s,g){this.http=s,this.errorSvc=g,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new p.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,l.K)(g=>this.errorSvc.handleError(g)))}findCommnadsByDeviceId(s){return this.http.get(`${this.commandsByDeviceIdUrl}${s}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}allDeviceCoreCommandsPagination(s,g){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${s}&limit=${g}`).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}findDeviceAssociatedCommnadsByDeviceName(s){return this.http.get(`${this.commandsByDeviceNameUrl}${s}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,l.K)(g=>this.errorSvc.handleError(g)))}issueGetBinaryCmd(s,g){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${s}/command/${g}`,{responseType:"arraybuffer"}).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}issueGetCmd(s,g){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${s}/${g}?ds-pushevent=true&ds-returnevent=true`).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}issueSetCmd(s,g,u){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${s}/${g}`,JSON.stringify(u),this.httpPostOrPutJSONOptions).pipe((0,l.K)(b=>this.errorSvc.handleError(b)))}}return O.\u0275fac=function(s){return new(s||O)(A.LFG(p.eN),A.LFG(_.T))},O.\u0275prov=A.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/634.06407e8d8a370697347f.js b/cmd/edgex-ui-server/static/web/en-US/634.06407e8d8a370697347f.js deleted file mode 100644 index 0040048f..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/634.06407e8d8a370697347f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[634],{2634:(l_,F,l)=>{l.r(F),l.d(F,{NotificationsModule:()=>N_});var M=l(8583),S=l(3092),d=l(9502),_=l(476);let y=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notifications"]],decls:11,vars:0,consts:function(){let I,e;return I="Notification",e="Subscription",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./notification-center","routerLinkActive","active",1,"nav-link"],I,["routerLink","./subscription-center","routerLinkActive","active",1,"nav-link"],e,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.SDv(5,5),_.qZA(),_.qZA(),_.TgZ(6,"li",3),_.TgZ(7,"a",6),_.SDv(8,7),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",8),_._UZ(10,"router-outlet"),_.qZA(),_.qZA())},directives:[d.yS,d.Od,d.lC],styles:[""]}),o})(),J=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notification-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[d.lC],styles:[""]}),o})();var v=l(9827),B=l(9744),L=l(7822);function H(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",48),_.NdJ("click",function(n){const a=_.CHM(e).$implicit;return _.oxw().selectOne(n,a)}),_.qZA(),_.qZA(),_.TgZ(3,"td",91),_._uU(4),_.qZA(),_.TgZ(5,"td",91),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.qZA(),_.TgZ(15,"td"),_._uU(16),_.qZA(),_.TgZ(17,"td"),_._uU(18),_.qZA(),_.TgZ(19,"td"),_._uU(20),_.qZA(),_.TgZ(21,"td"),_._uU(22),_.ALo(23,"date"),_.qZA(),_.TgZ(24,"td"),_._uU(25),_.ALo(26,"date"),_.qZA(),_.qZA()}if(2&o){const e=I.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.id)),_.xp6(2),_.Q6J("checked",t.isChecked(e.id)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.category),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Oqu(e.content),_.xp6(2),_.Oqu(e.contentType),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.sender),_.xp6(2),_.Oqu(e.severity),_.xp6(2),_.Oqu(e.status),_.xp6(2),_.Oqu(_.xi3(23,14,e.created,"yyyy-MM-dd hh:mm:ss")),_.xp6(3),_.Oqu(_.xi3(26,17,e.modified,"yyyy-MM-dd hh:mm:ss"))}}let W=(()=>{class o{constructor(e,t){this.notiSvc=e,this.msgSvc=t,this.notificationList=[],this.notificationSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this.categorySelected="SECURITY",this.statusSelected="NEW",this.advancedOperation=!1}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.setSearchMode("status"),this.findNotificationsByStatusPagination(!0),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,v.Z)("input[name='startSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.startSelected=1e3*Number(t)}}),this.calendarEnd=(0,v.Z)("input[name='endSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.endSelected=1e3*Number(t)}}),this.calendarStart=(0,v.Z)("input[name='ageCleanupAll']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.ageCleanupAll=1e3*Number(t)}}),this.calendarEnd=(0,v.Z)("input[name='ageCleanupByStatusIsProcessed']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.ageCleanupByStatusIsProcessed=1e3*Number(t)}})}advancedToggle(){this.advancedOperation=!this.advancedOperation}findNotificationsByCategoryPagination(e){this.notiSvc.findNotificationsByCategoryPagination(this.pageOffset,this.pageLimit,this.categorySelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by category")})}findNotificationsByStatusPagination(e){this.notiSvc.findNotificationsByStatusPagination(this.pageOffset,this.pageLimit,this.statusSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by status")})}findNotificationsByLabelPagination(e){this.notiSvc.findNotificationsByLabelPagination(this.pageOffset,this.pageLimit,this.labelSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by label")})}findNotificationsByStartEndPagination(e){console.log(this.startSelected,this.endSelected),this.notiSvc.findNotificationsByStartEndPagination(this.pageOffset,this.pageLimit,this.startSelected,this.endSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by start and end")})}setSearchMode(e){this.searchMode=e}searchByStatus(){this.resetPagination(),this.setSearchMode("status"),this.findNotificationsByStatusPagination()}searchByCategory(){this.resetPagination(),this.setSearchMode("category"),this.findNotificationsByCategoryPagination()}searchByStartEnd(){this.resetPagination(),this.setSearchMode("duration"),this.findNotificationsByStartEndPagination()}deleteConfirm(e){this.cleanMode=e,$("#deleteConfirmDialog").modal("show")}cleanup(){switch(this.cleanMode){case"age":this.cleanupByAge();break;case"status":this.cleanupByAgeAndStatusIsProcessed();break;default:this.deleteSelected()}}cleanupByAge(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupAll).subscribe(()=>{this.msgSvc.success("cleanup by age")}),$("#deleteConfirmDialog").modal("hide")}cleanupByAgeAndStatusIsProcessed(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupByStatusIsProcessed).subscribe(()=>{this.msgSvc.success("cleanup by age when status is processed")}),$("#deleteConfirmDialog").modal("hide")}deleteSelected(){this.notificationSelected.forEach(e=>{this.notiSvc.deleteNotificationById(e.id).subscribe(()=>{this.msgSvc.success("delete",`ID: ${e.id}`)})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let e=!0;return this.notificationList&&0===this.notificationList.length&&(e=!1),this.notificationList.forEach(t=>{-1===this.notificationSelected.findIndex(n=>n.id===t.id)&&(e=!1)}),e}selectAll(e){this.notificationList.forEach(e.target.checked?n=>{-1===this.notificationSelected.findIndex(i=>i.id===n.id)&&this.notificationSelected.push(n)}:n=>{let i=this.notificationSelected.findIndex(a=>a.id===n.id);-1!==i&&this.notificationSelected.splice(i,1)})}isChecked(e){return this.notificationSelected.findIndex(t=>t.id===e)>=0}selectOne(e,t){if(e.target.checked)return void this.notificationSelected.push(t);let i=this.notificationSelected.findIndex(a=>a.id===t.id);-1!==i&&this.notificationSelected.splice(i,1)}paginationBySearchMode(){switch(this.searchMode){case"status":this.findNotificationsByStatusPagination(!0);break;case"category":this.findNotificationsByCategoryPagination(!0);break;case"duration":this.findNotificationsByStartEndPagination(!0)}}onPageSelected(){this.resetPagination(),this.paginationBySearchMode()}prePage(){this.setPagination(-1),this.paginationBySearchMode()}nextPage(){this.setPagination(1),this.paginationBySearchMode()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.setPagination()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notification-list"]],decls:161,vars:11,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h;return I="Notification List",e="\xA0The data loaded by default takes the value of status as NEW",t="Delete",n="Advanced",i="Status",a="Start",A="End",r="CleanupByAge",C="Cleanup",c="Category",O="Labels",g="Content",E="ContentType",u="Description",p="Sender",f="Severity",P="Status",U="Created",R="Modified",G="items per page",b="Previous",s="Next",m="Warning",Z=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",D="Cancel",h="Confirm",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],I,[1,"fa","fa-info-circle","text-success","font-weight-bold","ml-1"],e,[1,"bg-light","card-header","p-0"],[1,"px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],t,["role","button",1,"text-primary","ml-3","text-decoration-none",3,"click"],n,[1,"fa","fa-angle-double-right","ml-1"],[1,"bg-light","card-header","p-0",3,"hidden"],[1,"form-group","row"],[1,"col-md-10"],[1,"input-group",2,"width","600px"],[1,"input-group-prepend"],[1,"input-group-text"],i,["name","statusSelected",1,"custom-select",3,"ngModel","ngModelChange"],["value","NEW"],["value","PROCESSED"],["value","ESCALATED"],["role","button",1,"input-group-append",3,"click"],[1,"fa","fa-search"],a,[1,"fa","fa-calendar"],["type","text","name","startSelected",1,"form-control"],A,["type","text","name","endSelected",1,"form-control"],[1,"input-group-append"],["type","button",1,"btn","btn-secondary",3,"disabled","click"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes notifications which have age and is less than the specified one, where the age of Notification is calculated by subtracting its last modification timestamp from the current timestamp. Note that the corresponding transmissions will also be deleted.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupAll",1,"form-control"],[1,"fa","fa-trash-o"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes the processed notifications if the current timestamp minus their last modification timestamp is less than the age parameter, and the corresponding transmissions will also be deleted. Please notice that this API is only for processed notifications (status = PROCESSED). If the deletion purpose includes each kind of notifications, please refer to cleanupAll.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupByStatusIsProcessed",1,"form-control"],["type","button",1,"btn","btn-danger","font-weight-bold",3,"disabled","click"],[1,"card-body","p-0","position-relative"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],c,O,g,E,u,p,f,P,U,R,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],G,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],b,[1,"page-item"],s,["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],m,[1,"modal-body"],Z,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],D,["type","button",1,"btn","btn-danger",3,"click"],h,[1,"user-select-all"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"span",4),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"div",7),_.TgZ(9,"div",8),_.TgZ(10,"button",9),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(11,"span"),_._UZ(12,"i",10),_.TgZ(13,"span"),_.SDv(14,11),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(15,"a",12),_.NdJ("click",function(){return t.advancedToggle()}),_.TgZ(16,"span"),_.TgZ(17,"span"),_.SDv(18,13),_.qZA(),_._UZ(19,"i",14),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(20,"div",15),_.TgZ(21,"div",7),_.TgZ(22,"form"),_.TgZ(23,"div",16),_.TgZ(24,"div",17),_.TgZ(25,"div",18),_.TgZ(26,"div",19),_.TgZ(27,"span",20),_.SDv(28,21),_.qZA(),_.qZA(),_.TgZ(29,"select",22),_.NdJ("ngModelChange",function(i){return t.statusSelected=i}),_.TgZ(30,"option",23),_._uU(31,"NEW"),_.qZA(),_.TgZ(32,"option",24),_._uU(33,"PROCESSED"),_.qZA(),_.TgZ(34,"option",25),_._uU(35,"ESCALATED"),_.qZA(),_.qZA(),_.TgZ(36,"div",26),_.NdJ("click",function(){return t.searchByStatus()}),_.TgZ(37,"span",20),_._UZ(38,"i",27),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",16),_.TgZ(40,"div",17),_.TgZ(41,"div",18),_.TgZ(42,"div",19),_.TgZ(43,"span",20),_.SDv(44,28),_.qZA(),_.qZA(),_.TgZ(45,"div",19),_.TgZ(46,"span",20),_._UZ(47,"i",29),_.qZA(),_.qZA(),_._UZ(48,"input",30),_.TgZ(49,"div",19),_.TgZ(50,"span",20),_.SDv(51,31),_.qZA(),_.qZA(),_.TgZ(52,"div",19),_.TgZ(53,"span",20),_._UZ(54,"i",29),_.qZA(),_.qZA(),_._UZ(55,"input",32),_.TgZ(56,"div",33),_.TgZ(57,"button",34),_.NdJ("click",function(){return t.searchByStartEnd()}),_._UZ(58,"i",27),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",16),_.TgZ(60,"div",17),_.TgZ(61,"div",18),_.TgZ(62,"div",19),_.TgZ(63,"span",20),_.TgZ(64,"span"),_.SDv(65,35),_.qZA(),_._uU(66,"\xa0 "),_._UZ(67,"span",36),_.qZA(),_.qZA(),_.TgZ(68,"div",19),_.TgZ(69,"span",20),_._UZ(70,"i",29),_.qZA(),_.qZA(),_._UZ(71,"input",37),_.TgZ(72,"div",33),_.TgZ(73,"button",9),_.NdJ("click",function(){return t.deleteConfirm("age")}),_._UZ(74,"i",38),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(75,"div",16),_.TgZ(76,"div",17),_.TgZ(77,"div",18),_.TgZ(78,"div",19),_.TgZ(79,"span",20),_.TgZ(80,"span"),_.SDv(81,39),_.qZA(),_._uU(82,"\xa0 "),_._UZ(83,"span",40),_.qZA(),_.qZA(),_.TgZ(84,"div",19),_.TgZ(85,"span",20),_._UZ(86,"i",29),_.qZA(),_.qZA(),_._UZ(87,"input",41),_.TgZ(88,"div",33),_.TgZ(89,"button",42),_.NdJ("click",function(){return t.deleteConfirm("status")}),_._UZ(90,"i",38),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(91,"div",43),_.TgZ(92,"div",44),_.TgZ(93,"table",45),_.TgZ(94,"thead",46),_.TgZ(95,"tr"),_.TgZ(96,"th",47),_.TgZ(97,"input",48),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(98,"th",47),_._uU(99,"ID"),_.qZA(),_.TgZ(100,"th",47),_.SDv(101,49),_.qZA(),_.TgZ(102,"th",47),_.SDv(103,50),_.qZA(),_.TgZ(104,"th",47),_.SDv(105,51),_.qZA(),_.TgZ(106,"th",47),_.SDv(107,52),_.qZA(),_.TgZ(108,"th",47),_.SDv(109,53),_.qZA(),_.TgZ(110,"th",47),_.SDv(111,54),_.qZA(),_.TgZ(112,"th",47),_.SDv(113,55),_.qZA(),_.TgZ(114,"th",47),_.SDv(115,56),_.qZA(),_.TgZ(116,"th",47),_.SDv(117,57),_.qZA(),_.TgZ(118,"th",47),_.SDv(119,58),_.qZA(),_.qZA(),_.qZA(),_.TgZ(120,"tbody"),_.YNc(121,H,27,20,"tr",59),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(122,"div",60),_.TgZ(123,"nav",61),_.TgZ(124,"ul",62),_.TgZ(125,"li",63),_.TgZ(126,"span",64),_.SDv(127,65),_.qZA(),_.qZA(),_.TgZ(128,"li",66),_.TgZ(129,"select",67),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(130,"option",68),_._uU(131,"5"),_.qZA(),_.TgZ(132,"option",69),_._uU(133,"10"),_.qZA(),_.TgZ(134,"option",70),_._uU(135,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(136,"li",71),_.TgZ(137,"button",72),_.NdJ("click",function(){return t.prePage()}),_._UZ(138,"i",73),_.TgZ(139,"span"),_.SDv(140,74),_.qZA(),_.qZA(),_.qZA(),_.TgZ(141,"li",75),_.TgZ(142,"button",72),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(143,"span"),_.SDv(144,76),_.qZA(),_._UZ(145,"i",14),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(146,"div",77),_.TgZ(147,"div",78),_.TgZ(148,"div",79),_.TgZ(149,"div",80),_.TgZ(150,"h5",81),_._UZ(151,"i",82),_.TgZ(152,"span"),_.SDv(153,83),_.qZA(),_.qZA(),_.qZA(),_.TgZ(154,"div",84),_.SDv(155,85),_.qZA(),_.TgZ(156,"div",86),_.TgZ(157,"button",87),_.SDv(158,88),_.qZA(),_.TgZ(159,"button",89),_.NdJ("click",function(){return t.cleanup()}),_.SDv(160,90),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(10),_.Q6J("disabled",0===t.notificationSelected.length),_.xp6(10),_.Q6J("hidden",!t.advancedOperation),_.xp6(9),_.Q6J("ngModel",t.statusSelected),_.xp6(28),_.Q6J("disabled",!t.startSelected||!t.endSelected),_.xp6(16),_.Q6J("disabled",!t.ageCleanupAll),_.xp6(16),_.Q6J("disabled",!t.ageCleanupByStatusIsProcessed),_.xp6(8),_.Q6J("checked",t.isCheckedAll()),_.xp6(24),_.Q6J("ngForOf",t.notificationList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.notificationList.length))},directives:[S._Y,S.JL,S.F,S.EJ,S.JJ,S.On,S.YN,S.Kr,M.sg],pipes:[M.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),k=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-subscription-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[d.lC],styles:[""]}),o})();var q=l(4889);function x(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(n){const a=_.CHM(e).$implicit;return _.oxw().selectOne(n,a)}),_.qZA(),_.qZA(),_.TgZ(3,"td",66),_._uU(4),_.qZA(),_.TgZ(5,"td",66),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td",67),_.TgZ(14,"span",68),_.NdJ("click",function(){const i=_.CHM(e).$implicit;return _.oxw().checkChannels(i)}),_._UZ(15,"i",69),_._uU(16),_.qZA(),_.qZA(),_.TgZ(17,"td"),_._uU(18),_.qZA(),_.TgZ(19,"td"),_._uU(20),_.qZA(),_.TgZ(21,"td"),_._uU(22),_.qZA(),_.qZA()}if(2&o){const e=I.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.categories),_.xp6(2),_.Oqu(e.labels),_.xp6(4),_.hij(" ",e.channels.length," "),_.xp6(2),_.Oqu(e.receiver),_.xp6(2),_.Oqu(e.resendLimit),_.xp6(2),_.Oqu(e.resendInterval)}}let z=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=a,this.subscriptionList=[],this.subscriptionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllSubscriptionsPagination()}refresh(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.subscriptionList=e.subscriptions,this.msgSvc.success("refresh")})}findAllSubscriptionsPagination(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.subscriptionList=e.subscriptions})}checkChannels(e){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:e.name}})}isCheckedAll(){let e=!0;return this.subscriptionList&&0===this.subscriptionList.length&&(e=!1),this.subscriptionList.forEach(t=>{-1===this.subscriptionSelected.findIndex(n=>n.id===t.id)&&(e=!1)}),e}selectAll(e){this.subscriptionList.forEach(e.target.checked?n=>{-1===this.subscriptionSelected.findIndex(i=>i.name===n.name)&&this.subscriptionSelected.push(n)}:n=>{let i=this.subscriptionSelected.findIndex(a=>a.name===n.name);-1!==i&&this.subscriptionSelected.splice(i,1)})}isChecked(e){return this.subscriptionSelected.findIndex(t=>t.name===e)>=0}selectOne(e,t){if(e.target.checked)return void this.subscriptionSelected.push(t);let i=this.subscriptionSelected.findIndex(a=>a.name===t.name);-1!==i&&this.subscriptionSelected.splice(i,1)}edit(){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:this.subscriptionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteSubs(){this.subscriptionSelected.forEach(e=>{this.notiSvc.deleteOneSubscriptionByName(e.name).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.subscriptionList.forEach((n,i)=>{n.name!==e.name||this.subscriptionList.splice(i,1)}),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findAllSubscriptionsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllSubscriptionsPagination()}prePage(){this.setPagination(-1),this.findAllSubscriptionsPagination()}nextPage(){this.setPagination(1),this.findAllSubscriptionsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(d.gz),_.Y36(d.F0),_.Y36(q.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-subscription-list"]],decls:93,vars:7,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b;return I="Subscription List",e="Refresh",t="Add",n="Edit",i="Delete",a="ID",A="Name",r="Description",C="Categories",c="Labels",O="Channels",g="Receiver",E="ResendLimit",u="ResendInterval",p="items per page",f="Previous",P="Next",U="Warning",R=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",G="Cancel",b="Confirm",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],I,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],e,["type","button","routerLink","../add-subscription",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],t,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],a,A,r,C,c,O,g,E,u,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],p,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],f,[1,"page-item"],P,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],U,[1,"modal-body"],R,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],G,["type","button",1,"btn","btn-danger",3,"click"],b,[1,"user-select-all"],[1,"text-center"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-paper-plane-o"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(9,"span"),_._UZ(10,"i",8),_.TgZ(11,"span"),_.SDv(12,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"button",10),_.TgZ(14,"span"),_._UZ(15,"i",11),_.TgZ(16,"span"),_.SDv(17,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(19,"span"),_._UZ(20,"i",14),_.TgZ(21,"span"),_.SDv(22,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(24,"span"),_._UZ(25,"i",17),_.TgZ(26,"span"),_.SDv(27,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",19),_.TgZ(29,"table",20),_.TgZ(30,"thead",21),_.TgZ(31,"tr"),_.TgZ(32,"th",22),_.TgZ(33,"input",23),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(34,"th",22),_.SDv(35,24),_.qZA(),_.TgZ(36,"th",22),_.SDv(37,25),_.qZA(),_.TgZ(38,"th",22),_.SDv(39,26),_.qZA(),_.TgZ(40,"th",22),_.SDv(41,27),_.qZA(),_.TgZ(42,"th",22),_.SDv(43,28),_.qZA(),_.TgZ(44,"th",22),_.SDv(45,29),_.qZA(),_.TgZ(46,"th",22),_.SDv(47,30),_.qZA(),_.TgZ(48,"th",22),_.SDv(49,31),_.qZA(),_.TgZ(50,"th",22),_.SDv(51,32),_.qZA(),_.qZA(),_.qZA(),_.TgZ(52,"tbody"),_.YNc(53,x,23,12,"tr",33),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(54,"div",34),_.TgZ(55,"nav",35),_.TgZ(56,"ul",36),_.TgZ(57,"li",37),_.TgZ(58,"span",38),_.SDv(59,39),_.qZA(),_.qZA(),_.TgZ(60,"li",40),_.TgZ(61,"select",41),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(62,"option",42),_._uU(63,"5"),_.qZA(),_.TgZ(64,"option",43),_._uU(65,"10"),_.qZA(),_.TgZ(66,"option",44),_._uU(67,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"li",45),_.TgZ(69,"button",46),_.NdJ("click",function(){return t.prePage()}),_._UZ(70,"i",47),_.TgZ(71,"span"),_.SDv(72,48),_.qZA(),_.qZA(),_.qZA(),_.TgZ(73,"li",49),_.TgZ(74,"button",46),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(75,"span"),_.SDv(76,50),_.qZA(),_._UZ(77,"i",51),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(78,"div",52),_.TgZ(79,"div",53),_.TgZ(80,"div",54),_.TgZ(81,"div",55),_.TgZ(82,"h5",56),_._UZ(83,"i",57),_.TgZ(84,"span"),_.SDv(85,58),_.qZA(),_.qZA(),_.qZA(),_.TgZ(86,"div",59),_.SDv(87,60),_.qZA(),_.TgZ(88,"div",61),_.TgZ(89,"button",62),_.SDv(90,63),_.qZA(),_.TgZ(91,"button",64),_.NdJ("click",function(){return t.deleteSubs()}),_.SDv(92,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(18),_.Q6J("disabled",1!==t.subscriptionSelected.length),_.xp6(5),_.Q6J("disabled",0===t.subscriptionSelected.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(20),_.Q6J("ngForOf",t.subscriptionList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.subscriptionList.length))},directives:[d.rH,M.sg,S.EJ,S.JJ,S.On,S.YN,S.Kr],styles:[""]}),o})();function w(o,I){if(1&o&&_._UZ(0,"span",57),2&o){const e=_.oxw();_.ekj("text-danger",0===e.channelTemplates.length)}}function Q(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",60),_.TgZ(4,"span",16),_.SDv(5,61),_.qZA(),_._UZ(6,"span",62),_.qZA(),_.TgZ(7,"div",10),_.TgZ(8,"input",63),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.recipients=n}),_.qZA(),_.TgZ(9,"div",64),_.TgZ(10,"small"),_.SDv(11,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(13,"i",67),_.TgZ(14,"span"),_.SDv(15,68),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit;_.xp6(8),_.ekj("is-invalid",!e.recipients)("is-valid",e.recipients),_.Q6J("ngModel",e.recipients)}}function Y(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",69),_.SDv(4,70),_.qZA(),_.TgZ(5,"div",10),_.TgZ(6,"select",71),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.httpMethod=n}),_.TgZ(7,"option",72),_._uU(8,"GET"),_.qZA(),_.TgZ(9,"option",73),_._uU(10,"POST"),_.qZA(),_.TgZ(11,"option",74),_._uU(12,"PUT"),_.qZA(),_.TgZ(13,"option",75),_._uU(14,"DELETE"),_.qZA(),_.TgZ(15,"option",76),_._uU(16,"PATCH"),_.qZA(),_.TgZ(17,"option",77),_._uU(18,"HEAD"),_.qZA(),_.TgZ(19,"option",78),_._uU(20,"TRACE"),_.qZA(),_.TgZ(21,"option",79),_._uU(22,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"div",7),_.TgZ(24,"label",80),_.SDv(25,81),_.qZA(),_.TgZ(26,"div",10),_.TgZ(27,"input",82),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.host=n}),_.qZA(),_.TgZ(28,"div",83),_.TgZ(29,"small"),_.SDv(30,84),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",7),_.TgZ(32,"label",85),_.SDv(33,86),_.qZA(),_.TgZ(34,"div",10),_.TgZ(35,"input",87),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.port=n}),_.qZA(),_.TgZ(36,"div",88),_.TgZ(37,"small"),_.SDv(38,89),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",90),_.SDv(41,91),_.qZA(),_.TgZ(42,"div",10),_.TgZ(43,"input",92),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.path=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(45,"i",67),_.TgZ(46,"span"),_.SDv(47,93),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit,t=_.oxw();_.xp6(6),_.Q6J("ngModel",e.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.host)("is-valid",e.host),_.Q6J("ngModel",e.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(e.port))("is-valid",t.isPureIntegerType(e.port)),_.Q6J("ngModel",e.port),_.xp6(8),_.Q6J("ngModel",e.path)}}function j(o,I){if(1&o&&(_.TgZ(0,"div",58),_.TgZ(1,"div",6),_.YNc(2,Q,16,5,"div",59),_.YNc(3,Y,48,12,"div",59),_.qZA(),_.qZA()),2&o){const e=I.$implicit;_.xp6(2),_.Q6J("ngIf","EMAIL"===e.type),_.xp6(1),_.Q6J("ngIf","REST"===e.type)}}let K=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.errSvc=n,this.route=i,this.router=a,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={adminState:"UNLOCKED"}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}submit(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((e,t)=>{if("EMAIL"===e.type){let n=e.recipients.toString();e.recipients=n.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.addOneSubscription(this.subscription).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add new subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(e){switch(e){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(e){let t=this.channelTemplates.indexOf(e);-1!==t&&(this.channelTemplates.splice(t,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((t,n)=>{("REST"!==t.type||""!==t.path&&t.port)&&("EMAIL"!==t.type||t.recipients)||(e=!0)}),!(!e&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(q.T),_.Y36(d.gz),_.Y36(d.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-subscription"]],decls:92,vars:30,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h,T;return I="Add Subscription",e="Submit",t="Name",n="the subscription name can't be empty!",i="Categories",a="the subscription categories can't be empty!",A="Labels",r="the subscription labels can't be empty!",C="Receiver",c="the subscription receiver can't be empty!",O="ResendInterval",g="ResendLimit",E="AdminState",u="Channels",p="Add Channel Template",f="EMAIL Channel Template",P="REST Channel Template",U="EmailRecipients",R="the email address port can't be empty",G="Remove",b="HttpMethod",s="Host",m="the REST address host can't be empty!",Z="Port",D="the REST address port can't be empty and only pure integer is supported!",h="Path",T="Remove",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-2"],I,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],n,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],a,["for","subscriptionLabels",1,"col-md-2","col-form-label"],A,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],r,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],c,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],E,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],u,p,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],f,["role","button",1,"badge","badge-secondary",3,"click"],P,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],U,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],R,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],G,["for","HttpMethod","required","",1,"col-md-2","col-form-label"],b,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],s,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],m,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],Z,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],D,["for","addressPath","required","",1,"col-md-2","col-form-label"],h,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],T]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.submit()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.subscription.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_.SDv(16,13),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",14),_.TgZ(18,"label",15),_.TgZ(19,"span",16),_.SDv(20,17),_.qZA(),_._UZ(21,"span",18),_.qZA(),_.TgZ(22,"div",10),_.TgZ(23,"div",19),_.TgZ(24,"input",20),_.NdJ("ngModelChange",function(i){return t.subCategories=i}),_.qZA(),_.TgZ(25,"div",12),_.TgZ(26,"small"),_.SDv(27,21),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"label",22),_.TgZ(30,"span",16),_.SDv(31,23),_.qZA(),_._UZ(32,"span",24),_.qZA(),_.TgZ(33,"div",10),_.TgZ(34,"div",19),_.TgZ(35,"input",25),_.NdJ("ngModelChange",function(i){return t.subLabels=i}),_.qZA(),_.TgZ(36,"div",12),_.TgZ(37,"small"),_.SDv(38,26),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",27),_.TgZ(41,"span",16),_.SDv(42,28),_.qZA(),_._UZ(43,"span",29),_.qZA(),_.TgZ(44,"div",10),_.TgZ(45,"input",30),_.NdJ("ngModelChange",function(i){return t.subscription.receiver=i}),_.qZA(),_.TgZ(46,"div",31),_.TgZ(47,"small"),_.SDv(48,32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",33),_.TgZ(51,"span",16),_.SDv(52,34),_.qZA(),_._UZ(53,"span",35),_.qZA(),_.TgZ(54,"div",10),_.TgZ(55,"input",36),_.NdJ("ngModelChange",function(i){return t.subscription.resendInterval=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",14),_.TgZ(57,"label",37),_.TgZ(58,"span",16),_.SDv(59,38),_.qZA(),_._UZ(60,"span",39),_.qZA(),_.TgZ(61,"div",10),_.TgZ(62,"input",40),_.NdJ("ngModelChange",function(i){return t.subscription.resendLimit=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"div",14),_.TgZ(64,"label",41),_.SDv(65,42),_.qZA(),_.TgZ(66,"div",10),_.TgZ(67,"select",43),_.NdJ("ngModelChange",function(i){return t.subscription.adminState=i}),_.TgZ(68,"option",44),_._uU(69,"UNLOCKED"),_.qZA(),_.TgZ(70,"option",45),_._uU(71,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(72,"div",14),_.TgZ(73,"label",46),_.SDv(74,47),_.qZA(),_.TgZ(75,"div",10),_.TgZ(76,"div",0),_.TgZ(77,"div",1),_.TgZ(78,"span",16),_.SDv(79,48),_.qZA(),_.YNc(80,w,1,2,"span",49),_.qZA(),_.TgZ(81,"div",6),_.TgZ(82,"div",50),_.TgZ(83,"span",51),_.NdJ("click",function(){return t.addChannelTemplate("EMAIL")}),_._UZ(84,"i",52),_.TgZ(85,"span"),_.SDv(86,53),_.qZA(),_.qZA(),_.TgZ(87,"span",54),_.NdJ("click",function(){return t.addChannelTemplate("REST")}),_._UZ(88,"i",52),_.TgZ(89,"span"),_.SDv(90,55),_.qZA(),_.qZA(),_.qZA(),_.YNc(91,j,4,2,"div",56),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.subscription.name)("is-valid",t.subscription.name),_.Q6J("ngModel",t.subscription.name),_.xp6(11),_.ekj("is-invalid",!t.subCategories)("is-valid",t.subCategories),_.Q6J("ngModel",t.subCategories),_.xp6(11),_.ekj("is-invalid",!t.subLabels)("is-valid",t.subLabels),_.Q6J("ngModel",t.subLabels),_.xp6(10),_.ekj("is-invalid",!t.subscription.receiver)("is-valid",t.subscription.receiver),_.Q6J("ngModel",t.subscription.receiver),_.xp6(10),_.Q6J("ngModel",t.subscription.resendInterval),_.xp6(7),_.Q6J("ngModel",t.subscription.resendLimit),_.xp6(5),_.Q6J("ngModel",t.subscription.adminState),_.xp6(10),_.ekj("border",0===t.channelTemplates.length)("border-danger",0===t.channelTemplates.length),_.xp6(3),_.Q6J("ngIf",0===t.channelTemplates.length),_.xp6(11),_.Q6J("ngForOf",t.channelTemplates))},directives:[S._Y,S.JL,S.F,S.Fj,S.Q7,S.JJ,S.On,S.wV,S.EJ,S.YN,S.Kr,M.O5,M.sg],styles:[""]}),o})();function V(o,I){if(1&o&&_._UZ(0,"span",57),2&o){const e=_.oxw();_.ekj("text-danger",0===e.channelTemplates.length)}}function __(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",60),_.TgZ(4,"span",16),_.SDv(5,61),_.qZA(),_._UZ(6,"span",62),_.qZA(),_.TgZ(7,"div",10),_.TgZ(8,"input",63),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.recipients=n}),_.qZA(),_.TgZ(9,"div",64),_.TgZ(10,"small"),_.SDv(11,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(13,"i",67),_._uU(14," Remove"),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit;_.xp6(8),_.ekj("is-invalid",!e.recipients)("is-valid",e.recipients),_.Q6J("ngModel",e.recipients)}}function e_(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",68),_.SDv(4,69),_.qZA(),_.TgZ(5,"div",10),_.TgZ(6,"select",70),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.httpMethod=n}),_.TgZ(7,"option",71),_._uU(8,"GET"),_.qZA(),_.TgZ(9,"option",72),_._uU(10,"POST"),_.qZA(),_.TgZ(11,"option",73),_._uU(12,"PUT"),_.qZA(),_.TgZ(13,"option",74),_._uU(14,"DELETE"),_.qZA(),_.TgZ(15,"option",75),_._uU(16,"PATCH"),_.qZA(),_.TgZ(17,"option",76),_._uU(18,"HEAD"),_.qZA(),_.TgZ(19,"option",77),_._uU(20,"TRACE"),_.qZA(),_.TgZ(21,"option",78),_._uU(22,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"div",7),_.TgZ(24,"label",79),_.SDv(25,80),_.qZA(),_.TgZ(26,"div",10),_.TgZ(27,"input",81),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.host=n}),_.qZA(),_.TgZ(28,"div",82),_.TgZ(29,"small"),_.SDv(30,83),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",7),_.TgZ(32,"label",84),_.SDv(33,85),_.qZA(),_.TgZ(34,"div",10),_.TgZ(35,"input",86),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.port=n}),_.qZA(),_.TgZ(36,"div",87),_.TgZ(37,"small"),_.SDv(38,88),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",89),_.SDv(41,90),_.qZA(),_.TgZ(42,"div",10),_.TgZ(43,"input",91),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.path=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(45,"i",92),_.TgZ(46,"span"),_.SDv(47,93),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit,t=_.oxw();_.xp6(6),_.Q6J("ngModel",e.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.host)("is-valid",e.host),_.Q6J("ngModel",e.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(e.port))("is-valid",t.isPureIntegerType(e.port)),_.Q6J("ngModel",e.port),_.xp6(8),_.Q6J("ngModel",e.path)}}function t_(o,I){if(1&o&&(_.TgZ(0,"div",58),_.TgZ(1,"div",6),_.YNc(2,__,15,5,"div",59),_.YNc(3,e_,48,12,"div",59),_.qZA(),_.qZA()),2&o){const e=I.$implicit;_.xp6(2),_.Q6J("ngIf","EMAIL"===e.type),_.xp6(1),_.Q6J("ngIf","REST"===e.type)}}let n_=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.errSvc=n,this.route=i,this.router=a,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(e=>{e.subName&&this.notiSvc.findOneSubscriptionByName(e.subName).subscribe(t=>{this.subscription=t.subscription,this.subCategories=this.subscription.categories.toString(),this.subLabels=this.subscription.labels.toString(),this.channelTemplates=this.subscription.channels})})}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}update(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((e,t)=>{if("EMAIL"===e.type){let n=e.recipients.toString();e.recipients=n.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.updateOneSubscription(this.subscription).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(e){switch(e){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(e){let t=this.channelTemplates.indexOf(e);-1!==t&&(this.channelTemplates.splice(t,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((t,n)=>{("REST"!==t.type||""!==t.path&&t.port)&&("EMAIL"!==t.type||t.recipients)||(e=!0)}),!(!e&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(q.T),_.Y36(d.gz),_.Y36(d.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-subscription"]],decls:92,vars:30,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h;return I="Edit Subscription",e="Save",t="Name",n="the subscription name can't be empty!",i="Categories",a="the subscription categories can't be empty!",A="Labels",r="the subscription labels can't be empty!",C="Receiver",c="the subscription receiver can't be empty!",O="ResendInterval",g="ResendLimit",E="AdminState",u="Channels",p="Add Channel Template",f="EMAIL Channel Template",P="REST Channel Template",U="EmailRecipients",R="the email address port can't be empty",G="HttpMethod",b="Host",s="the REST address host can't be empty!",m="Port",Z="the REST address port can't be empty and only pure integer is supported!",D="Path",h="Remove",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-2"],I,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],n,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],a,["for","subscriptionLabels",1,"col-md-2","col-form-label"],A,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],r,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],c,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],E,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],u,p,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],f,["role","button",1,"badge","badge-secondary",3,"click"],P,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],U,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],R,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],G,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],b,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],s,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],m,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],Z,["for","addressPath","required","",1,"col-md-2","col-form-label"],D,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"fa","fa-trash","mr-1"],h]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.update()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.subscription.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_.SDv(16,13),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",14),_.TgZ(18,"label",15),_.TgZ(19,"span",16),_.SDv(20,17),_.qZA(),_._UZ(21,"span",18),_.qZA(),_.TgZ(22,"div",10),_.TgZ(23,"div",19),_.TgZ(24,"input",20),_.NdJ("ngModelChange",function(i){return t.subCategories=i}),_.qZA(),_.TgZ(25,"div",12),_.TgZ(26,"small"),_.SDv(27,21),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"label",22),_.TgZ(30,"span",16),_.SDv(31,23),_.qZA(),_._UZ(32,"span",24),_.qZA(),_.TgZ(33,"div",10),_.TgZ(34,"div",19),_.TgZ(35,"input",25),_.NdJ("ngModelChange",function(i){return t.subLabels=i}),_.qZA(),_.TgZ(36,"div",12),_.TgZ(37,"small"),_.SDv(38,26),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",27),_.TgZ(41,"span",16),_.SDv(42,28),_.qZA(),_._UZ(43,"span",29),_.qZA(),_.TgZ(44,"div",10),_.TgZ(45,"input",30),_.NdJ("ngModelChange",function(i){return t.subscription.receiver=i}),_.qZA(),_.TgZ(46,"div",31),_.TgZ(47,"small"),_.SDv(48,32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",33),_.TgZ(51,"span",16),_.SDv(52,34),_.qZA(),_._UZ(53,"span",35),_.qZA(),_.TgZ(54,"div",10),_.TgZ(55,"input",36),_.NdJ("ngModelChange",function(i){return t.subscription.resendInterval=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",14),_.TgZ(57,"label",37),_.TgZ(58,"span",16),_.SDv(59,38),_.qZA(),_._UZ(60,"span",39),_.qZA(),_.TgZ(61,"div",10),_.TgZ(62,"input",40),_.NdJ("ngModelChange",function(i){return t.subscription.resendLimit=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"div",14),_.TgZ(64,"label",41),_.SDv(65,42),_.qZA(),_.TgZ(66,"div",10),_.TgZ(67,"select",43),_.NdJ("ngModelChange",function(i){return t.subscription.adminState=i}),_.TgZ(68,"option",44),_._uU(69,"UNLOCKED"),_.qZA(),_.TgZ(70,"option",45),_._uU(71,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(72,"div",14),_.TgZ(73,"label",46),_.SDv(74,47),_.qZA(),_.TgZ(75,"div",10),_.TgZ(76,"div",0),_.TgZ(77,"div",1),_.TgZ(78,"span",16),_.SDv(79,48),_.qZA(),_.YNc(80,V,1,2,"span",49),_.qZA(),_.TgZ(81,"div",6),_.TgZ(82,"div",50),_.TgZ(83,"span",51),_.NdJ("click",function(){return t.addChannelTemplate("EMAIL")}),_._UZ(84,"i",52),_.TgZ(85,"span"),_.SDv(86,53),_.qZA(),_.qZA(),_.TgZ(87,"span",54),_.NdJ("click",function(){return t.addChannelTemplate("REST")}),_._UZ(88,"i",52),_.TgZ(89,"span"),_.SDv(90,55),_.qZA(),_.qZA(),_.qZA(),_.YNc(91,t_,4,2,"div",56),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.subscription.name)("is-valid",t.subscription.name),_.Q6J("ngModel",t.subscription.name),_.xp6(11),_.ekj("is-invalid",!t.subCategories)("is-valid",t.subCategories),_.Q6J("ngModel",t.subCategories),_.xp6(11),_.ekj("is-invalid",!t.subLabels)("is-valid",t.subLabels),_.Q6J("ngModel",t.subLabels),_.xp6(10),_.ekj("is-invalid",!t.subscription.receiver)("is-valid",t.subscription.receiver),_.Q6J("ngModel",t.subscription.receiver),_.xp6(10),_.Q6J("ngModel",t.subscription.resendInterval),_.xp6(7),_.Q6J("ngModel",t.subscription.resendLimit),_.xp6(5),_.Q6J("ngModel",t.subscription.adminState),_.xp6(10),_.ekj("border",0===t.channelTemplates.length)("border-danger",0===t.channelTemplates.length),_.xp6(3),_.Q6J("ngIf",0===t.channelTemplates.length),_.xp6(11),_.Q6J("ngForOf",t.channelTemplates))},directives:[S._Y,S.JL,S.F,S.Fj,S.Q7,S.JJ,S.On,S.wV,S.EJ,S.YN,S.Kr,M.O5,M.sg],styles:[""]}),o})();var i_=l(8253),o_=l(1964),I_=l(4294),T_=l(5894),S_=l(7216);let X=(()=>{class o{constructor(e,t){this.router=e,this.notiSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.notiSvc.ping().pipe((0,I_.q)(1),(0,T_.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"notification",routerPath:`/${t.url.split("/")[1]}`}})),(0,S_.z)(()=>(0,o_.of)(!0)))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(d.F0),_.LFG(B.T))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const a_=[{path:"",component:y,canActivate:[i_.a,X],canActivateChild:[X],children:[{path:"",redirectTo:"notification-center",pathMatch:"full"},{path:"notification-center",component:J,children:[{path:"",component:W}]},{path:"subscription-center",component:k,children:[{path:"",redirectTo:"subscription-list",pathMatch:"full"},{path:"subscription-list",component:z},{path:"add-subscription",component:K},{path:"edit-subscription",component:n_}]}]}];let s_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[d.Bz.forChild(a_)],d.Bz]}),o})(),N_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[M.ez,S.u5,s_]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/634.3a15cb1e5504f0e3110a.js b/cmd/edgex-ui-server/static/web/en-US/634.3a15cb1e5504f0e3110a.js new file mode 100644 index 00000000..d468e9c9 --- /dev/null +++ b/cmd/edgex-ui-server/static/web/en-US/634.3a15cb1e5504f0e3110a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[634],{2634:(de,y,d)=>{d.r(y),d.d(y,{NotificationsModule:()=>le});var Z=d(8583),s=d(3092),r=d(9502),e=d(476);let X=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-notifications"]],decls:11,vars:0,consts:function(){let T,t;return T="Notification",t="Subscription",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./notification-center","routerLinkActive","active",1,"nav-link"],T,["routerLink","./subscription-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.qZA(),e.TgZ(6,"li",3),e.TgZ(7,"a",6),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e._UZ(10,"router-outlet"),e.qZA(),e.qZA())},directives:[r.yS,r.Od,r.lC],styles:[""]}),o})(),k=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-notification-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[r.lC],styles:[""]}),o})();var D=d(9827),B=d(9744),q=d(7822);function x(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",48),e.NdJ("click",function(i){const I=e.CHM(t).$implicit;return e.oxw().selectOne(i,I)}),e.qZA(),e.qZA(),e.TgZ(3,"td",91),e._uU(4),e.qZA(),e.TgZ(5,"td",91),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.qZA(),e.TgZ(15,"td"),e._uU(16),e.qZA(),e.TgZ(17,"td"),e._uU(18),e.qZA(),e.TgZ(19,"td"),e._uU(20),e.qZA(),e.TgZ(21,"td"),e._uU(22),e.ALo(23,"date"),e.qZA(),e.TgZ(24,"td"),e._uU(25),e.ALo(26,"date"),e.qZA(),e.qZA()}if(2&o){const t=T.$implicit,n=e.oxw();e.ekj("table-active",n.isChecked(t.id)),e.xp6(2),e.Q6J("checked",n.isChecked(t.id)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.category),e.xp6(2),e.Oqu(t.labels),e.xp6(2),e.Oqu(t.content),e.xp6(2),e.Oqu(t.contentType),e.xp6(2),e.Oqu(t.description),e.xp6(2),e.Oqu(t.sender),e.xp6(2),e.Oqu(t.severity),e.xp6(2),e.Oqu(t.status),e.xp6(2),e.Oqu(e.xi3(23,14,t.created,"yyyy-MM-dd hh:mm:ss")),e.xp6(3),e.Oqu(e.xi3(26,17,t.modified,"yyyy-MM-dd hh:mm:ss"))}}let J=(()=>{class o{constructor(t,n){this.notiSvc=t,this.msgSvc=n,this.notificationList=[],this.notificationSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this.categorySelected="SECURITY",this.statusSelected="NEW",this.advancedOperation=!1}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.setSearchMode("status"),this.findNotificationsByStatusPagination(!0),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,D.Z)("input[name='startSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(t,n,i)=>{this.startSelected=1e3*Number(n)}}),this.calendarEnd=(0,D.Z)("input[name='endSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(t,n,i)=>{this.endSelected=1e3*Number(n)}}),this.calendarStart=(0,D.Z)("input[name='ageCleanupAll']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(t,n,i)=>{this.ageCleanupAll=1e3*Number(n)}}),this.calendarEnd=(0,D.Z)("input[name='ageCleanupByStatusIsProcessed']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(t,n,i)=>{this.ageCleanupByStatusIsProcessed=1e3*Number(n)}})}advancedToggle(){this.advancedOperation=!this.advancedOperation}findNotificationsByCategoryPagination(t){this.notiSvc.findNotificationsByCategoryPagination(this.pageOffset,this.pageLimit,this.categorySelected).subscribe(n=>{this.notificationList=n.notifications,!t&&this.msgSvc.success("search by category")})}findNotificationsByStatusPagination(t){this.notiSvc.findNotificationsByStatusPagination(this.pageOffset,this.pageLimit,this.statusSelected).subscribe(n=>{this.notificationList=n.notifications,!t&&this.msgSvc.success("search by status")})}findNotificationsByLabelPagination(t){this.notiSvc.findNotificationsByLabelPagination(this.pageOffset,this.pageLimit,this.labelSelected).subscribe(n=>{this.notificationList=n.notifications,!t&&this.msgSvc.success("search by label")})}findNotificationsByStartEndPagination(t){console.log(this.startSelected,this.endSelected),this.notiSvc.findNotificationsByStartEndPagination(this.pageOffset,this.pageLimit,this.startSelected,this.endSelected).subscribe(n=>{this.notificationList=n.notifications,!t&&this.msgSvc.success("search by start and end")})}setSearchMode(t){this.searchMode=t}searchByStatus(){this.resetPagination(),this.setSearchMode("status"),this.findNotificationsByStatusPagination()}searchByCategory(){this.resetPagination(),this.setSearchMode("category"),this.findNotificationsByCategoryPagination()}searchByStartEnd(){this.resetPagination(),this.setSearchMode("duration"),this.findNotificationsByStartEndPagination()}deleteConfirm(t){this.cleanMode=t,$("#deleteConfirmDialog").modal("show")}cleanup(){switch(this.cleanMode){case"age":this.cleanupByAge();break;case"status":this.cleanupByAgeAndStatusIsProcessed();break;default:this.deleteSelected()}}cleanupByAge(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupAll).subscribe(()=>{this.msgSvc.success("cleanup by age")}),$("#deleteConfirmDialog").modal("hide")}cleanupByAgeAndStatusIsProcessed(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupByStatusIsProcessed).subscribe(()=>{this.msgSvc.success("cleanup by age when status is processed")}),$("#deleteConfirmDialog").modal("hide")}deleteSelected(){this.notificationSelected.forEach(t=>{this.notiSvc.deleteNotificationById(t.id).subscribe(()=>{this.msgSvc.success("delete",`ID: ${t.id}`)})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let t=!0;return this.notificationList&&0===this.notificationList.length&&(t=!1),this.notificationList.forEach(n=>{-1===this.notificationSelected.findIndex(i=>i.id===n.id)&&(t=!1)}),t}selectAll(t){this.notificationList.forEach(t.target.checked?i=>{-1===this.notificationSelected.findIndex(_=>_.id===i.id)&&this.notificationSelected.push(i)}:i=>{let _=this.notificationSelected.findIndex(I=>I.id===i.id);-1!==_&&this.notificationSelected.splice(_,1)})}isChecked(t){return this.notificationSelected.findIndex(n=>n.id===t)>=0}selectOne(t,n){if(t.target.checked)return void this.notificationSelected.push(n);let _=this.notificationSelected.findIndex(I=>I.id===n.id);-1!==_&&this.notificationSelected.splice(_,1)}paginationBySearchMode(){switch(this.searchMode){case"status":this.findNotificationsByStatusPagination(!0);break;case"category":this.findNotificationsByCategoryPagination(!0);break;case"duration":this.findNotificationsByStartEndPagination(!0)}}onPageSelected(){this.resetPagination(),this.paginationBySearchMode()}prePage(){this.setPagination(-1),this.paginationBySearchMode()}nextPage(){this.setPagination(1),this.paginationBySearchMode()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.setPagination()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(B.T),e.Y36(q.e))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-notification-list"]],decls:161,vars:11,consts:function(){let T,t,n,i,_,I,c,N,C,g,O,u,A,p,f,P,R,b,M,m,E,S,h,v,L,U;return T="Notification List",t="\xA0The data loaded by default takes the value of status as NEW",n="Delete",i="Advanced",_="Status",I="Start",c="End",N="CleanupByAge",C="Cleanup",g="Category",O="Labels",u="Content",A="ContentType",p="Description",f="Sender",P="Severity",R="Status",b="Created",M="Modified",m="items per page",E="Previous",S="Next",h="Warning",v=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",L="Cancel",U="Confirm",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],T,[1,"fa","fa-info-circle","text-success","font-weight-bold","ml-1"],t,[1,"bg-light","card-header","p-0"],[1,"px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],n,["role","button",1,"text-primary","ml-3","text-decoration-none",3,"click"],i,[1,"fa","fa-angle-double-right","ml-1"],[1,"bg-light","card-header","p-0",3,"hidden"],[1,"form-group","row"],[1,"col-md-10"],[1,"input-group",2,"width","600px"],[1,"input-group-prepend"],[1,"input-group-text"],_,["name","statusSelected",1,"custom-select",3,"ngModel","ngModelChange"],["value","NEW"],["value","PROCESSED"],["value","ESCALATED"],["role","button",1,"input-group-append",3,"click"],[1,"fa","fa-search"],I,[1,"fa","fa-calendar"],["type","text","name","startSelected",1,"form-control"],c,["type","text","name","endSelected",1,"form-control"],[1,"input-group-append"],["type","button",1,"btn","btn-secondary",3,"disabled","click"],N,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes notifications which have age and is less than the specified one, where the age of Notification is calculated by subtracting its last modification timestamp from the current timestamp. Note that the corresponding transmissions will also be deleted.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupAll",1,"form-control"],[1,"fa","fa-trash-o"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes the processed notifications if the current timestamp minus their last modification timestamp is less than the age parameter, and the corresponding transmissions will also be deleted. Please notice that this API is only for processed notifications (status = PROCESSED). If the deletion purpose includes each kind of notifications, please refer to cleanupAll.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupByStatusIsProcessed",1,"form-control"],["type","button",1,"btn","btn-danger","font-weight-bold",3,"disabled","click"],[1,"card-body","p-0","position-relative"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],g,O,u,A,p,f,P,R,b,M,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],m,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],E,[1,"page-item"],S,["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],h,[1,"modal-body"],v,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],L,["type","button",1,"btn","btn-danger",3,"click"],U,[1,"user-select-all"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"div",7),e.TgZ(9,"div",8),e.TgZ(10,"button",9),e.NdJ("click",function(){return n.deleteConfirm()}),e.TgZ(11,"span"),e._UZ(12,"i",10),e.TgZ(13,"span"),e.SDv(14,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"a",12),e.NdJ("click",function(){return n.advancedToggle()}),e.TgZ(16,"span"),e.TgZ(17,"span"),e.SDv(18,13),e.qZA(),e._UZ(19,"i",14),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",15),e.TgZ(21,"div",7),e.TgZ(22,"form"),e.TgZ(23,"div",16),e.TgZ(24,"div",17),e.TgZ(25,"div",18),e.TgZ(26,"div",19),e.TgZ(27,"span",20),e.SDv(28,21),e.qZA(),e.qZA(),e.TgZ(29,"select",22),e.NdJ("ngModelChange",function(_){return n.statusSelected=_}),e.TgZ(30,"option",23),e._uU(31,"NEW"),e.qZA(),e.TgZ(32,"option",24),e._uU(33,"PROCESSED"),e.qZA(),e.TgZ(34,"option",25),e._uU(35,"ESCALATED"),e.qZA(),e.qZA(),e.TgZ(36,"div",26),e.NdJ("click",function(){return n.searchByStatus()}),e.TgZ(37,"span",20),e._UZ(38,"i",27),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",16),e.TgZ(40,"div",17),e.TgZ(41,"div",18),e.TgZ(42,"div",19),e.TgZ(43,"span",20),e.SDv(44,28),e.qZA(),e.qZA(),e.TgZ(45,"div",19),e.TgZ(46,"span",20),e._UZ(47,"i",29),e.qZA(),e.qZA(),e._UZ(48,"input",30),e.TgZ(49,"div",19),e.TgZ(50,"span",20),e.SDv(51,31),e.qZA(),e.qZA(),e.TgZ(52,"div",19),e.TgZ(53,"span",20),e._UZ(54,"i",29),e.qZA(),e.qZA(),e._UZ(55,"input",32),e.TgZ(56,"div",33),e.TgZ(57,"button",34),e.NdJ("click",function(){return n.searchByStartEnd()}),e._UZ(58,"i",27),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",16),e.TgZ(60,"div",17),e.TgZ(61,"div",18),e.TgZ(62,"div",19),e.TgZ(63,"span",20),e.TgZ(64,"span"),e.SDv(65,35),e.qZA(),e._uU(66,"\xa0 "),e._UZ(67,"span",36),e.qZA(),e.qZA(),e.TgZ(68,"div",19),e.TgZ(69,"span",20),e._UZ(70,"i",29),e.qZA(),e.qZA(),e._UZ(71,"input",37),e.TgZ(72,"div",33),e.TgZ(73,"button",9),e.NdJ("click",function(){return n.deleteConfirm("age")}),e._UZ(74,"i",38),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(75,"div",16),e.TgZ(76,"div",17),e.TgZ(77,"div",18),e.TgZ(78,"div",19),e.TgZ(79,"span",20),e.TgZ(80,"span"),e.SDv(81,39),e.qZA(),e._uU(82,"\xa0 "),e._UZ(83,"span",40),e.qZA(),e.qZA(),e.TgZ(84,"div",19),e.TgZ(85,"span",20),e._UZ(86,"i",29),e.qZA(),e.qZA(),e._UZ(87,"input",41),e.TgZ(88,"div",33),e.TgZ(89,"button",42),e.NdJ("click",function(){return n.deleteConfirm("status")}),e._UZ(90,"i",38),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(91,"div",43),e.TgZ(92,"div",44),e.TgZ(93,"table",45),e.TgZ(94,"thead",46),e.TgZ(95,"tr"),e.TgZ(96,"th",47),e.TgZ(97,"input",48),e.NdJ("click",function(_){return n.selectAll(_)}),e.qZA(),e.qZA(),e.TgZ(98,"th",47),e._uU(99,"ID"),e.qZA(),e.TgZ(100,"th",47),e.SDv(101,49),e.qZA(),e.TgZ(102,"th",47),e.SDv(103,50),e.qZA(),e.TgZ(104,"th",47),e.SDv(105,51),e.qZA(),e.TgZ(106,"th",47),e.SDv(107,52),e.qZA(),e.TgZ(108,"th",47),e.SDv(109,53),e.qZA(),e.TgZ(110,"th",47),e.SDv(111,54),e.qZA(),e.TgZ(112,"th",47),e.SDv(113,55),e.qZA(),e.TgZ(114,"th",47),e.SDv(115,56),e.qZA(),e.TgZ(116,"th",47),e.SDv(117,57),e.qZA(),e.TgZ(118,"th",47),e.SDv(119,58),e.qZA(),e.qZA(),e.qZA(),e.TgZ(120,"tbody"),e.YNc(121,x,27,20,"tr",59),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(122,"div",60),e.TgZ(123,"nav",61),e.TgZ(124,"ul",62),e.TgZ(125,"li",63),e.TgZ(126,"span",64),e.SDv(127,65),e.qZA(),e.qZA(),e.TgZ(128,"li",66),e.TgZ(129,"select",67),e.NdJ("ngModelChange",function(_){return n.pageLimit=_})("ngModelChange",function(){return n.onPageSelected()}),e.TgZ(130,"option",68),e._uU(131,"5"),e.qZA(),e.TgZ(132,"option",69),e._uU(133,"10"),e.qZA(),e.TgZ(134,"option",70),e._uU(135,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(136,"li",71),e.TgZ(137,"button",72),e.NdJ("click",function(){return n.prePage()}),e._UZ(138,"i",73),e.TgZ(139,"span"),e.SDv(140,74),e.qZA(),e.qZA(),e.qZA(),e.TgZ(141,"li",75),e.TgZ(142,"button",72),e.NdJ("click",function(){return n.nextPage()}),e.TgZ(143,"span"),e.SDv(144,76),e.qZA(),e._UZ(145,"i",14),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(146,"div",77),e.TgZ(147,"div",78),e.TgZ(148,"div",79),e.TgZ(149,"div",80),e.TgZ(150,"h5",81),e._UZ(151,"i",82),e.TgZ(152,"span"),e.SDv(153,83),e.qZA(),e.qZA(),e.qZA(),e.TgZ(154,"div",84),e.SDv(155,85),e.qZA(),e.TgZ(156,"div",86),e.TgZ(157,"button",87),e.SDv(158,88),e.qZA(),e.TgZ(159,"button",89),e.NdJ("click",function(){return n.cleanup()}),e.SDv(160,90),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("disabled",0===n.notificationSelected.length),e.xp6(10),e.Q6J("hidden",!n.advancedOperation),e.xp6(9),e.Q6J("ngModel",n.statusSelected),e.xp6(28),e.Q6J("disabled",!n.startSelected||!n.endSelected),e.xp6(16),e.Q6J("disabled",!n.ageCleanupAll),e.xp6(16),e.Q6J("disabled",!n.ageCleanupByStatusIsProcessed),e.xp6(8),e.Q6J("checked",n.isCheckedAll()),e.xp6(24),e.Q6J("ngForOf",n.notificationList),e.xp6(8),e.Q6J("ngModel",n.pageLimit),e.xp6(8),e.Q6J("disabled",1===n.pagination),e.xp6(5),e.Q6J("disabled",n.pageLimit>n.notificationList.length))},directives:[s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,Z.sg],pipes:[Z.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),z=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-subscription-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[r.lC],styles:[""]}),o})();var F=d(4889);function w(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",23),e.NdJ("click",function(i){const I=e.CHM(t).$implicit;return e.oxw().selectOne(i,I)}),e.qZA(),e.qZA(),e.TgZ(3,"td",66),e._uU(4),e.qZA(),e.TgZ(5,"td",66),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td",67),e.TgZ(14,"span",68),e.NdJ("click",function(){const _=e.CHM(t).$implicit;return e.oxw().checkChannels(_)}),e._UZ(15,"i",69),e._uU(16),e.qZA(),e.qZA(),e.TgZ(17,"td"),e._uU(18),e.qZA(),e.TgZ(19,"td"),e._uU(20),e.qZA(),e.TgZ(21,"td"),e._uU(22),e.qZA(),e.qZA()}if(2&o){const t=T.$implicit,n=e.oxw();e.ekj("table-active",n.isChecked(t.name)),e.xp6(2),e.Q6J("checked",n.isChecked(t.name)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.description),e.xp6(2),e.Oqu(t.categories),e.xp6(2),e.Oqu(t.labels),e.xp6(4),e.hij(" ",t.channels.length," "),e.xp6(2),e.Oqu(t.receiver),e.xp6(2),e.Oqu(t.resendLimit),e.xp6(2),e.Oqu(t.resendInterval)}}let Q=(()=>{class o{constructor(t,n,i,_,I){this.notiSvc=t,this.msgSvc=n,this.route=i,this.router=_,this.errSvc=I,this.subscriptionList=[],this.subscriptionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllSubscriptionsPagination()}refresh(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.subscriptionList=t.subscriptions,this.msgSvc.success("refresh")})}findAllSubscriptionsPagination(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.subscriptionList=t.subscriptions})}checkChannels(t){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:t.name}})}isCheckedAll(){let t=!0;return this.subscriptionList&&0===this.subscriptionList.length&&(t=!1),this.subscriptionList.forEach(n=>{-1===this.subscriptionSelected.findIndex(i=>i.id===n.id)&&(t=!1)}),t}selectAll(t){this.subscriptionList.forEach(t.target.checked?i=>{-1===this.subscriptionSelected.findIndex(_=>_.name===i.name)&&this.subscriptionSelected.push(i)}:i=>{let _=this.subscriptionSelected.findIndex(I=>I.name===i.name);-1!==_&&this.subscriptionSelected.splice(_,1)})}isChecked(t){return this.subscriptionSelected.findIndex(n=>n.name===t)>=0}selectOne(t,n){if(t.target.checked)return void this.subscriptionSelected.push(n);let _=this.subscriptionSelected.findIndex(I=>I.name===n.name);-1!==_&&this.subscriptionSelected.splice(_,1)}edit(){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:this.subscriptionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteSubs(){this.subscriptionSelected.forEach(t=>{this.notiSvc.deleteOneSubscriptionByName(t.name).subscribe(n=>{this.errSvc.handleErrorForAPI(n)||(this.subscriptionList.forEach((i,_)=>{i.name!==t.name||this.subscriptionList.splice(_,1)}),this.msgSvc.success("delete",`name: ${t.name}`),this.resetPagination(),this.findAllSubscriptionsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllSubscriptionsPagination()}prePage(){this.setPagination(-1),this.findAllSubscriptionsPagination()}nextPage(){this.setPagination(1),this.findAllSubscriptionsPagination()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(B.T),e.Y36(q.e),e.Y36(r.gz),e.Y36(r.F0),e.Y36(F.T))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-subscription-list"]],decls:93,vars:7,consts:function(){let T,t,n,i,_,I,c,N,C,g,O,u,A,p,f,P,R,b,M,m,E;return T="Subscription List",t="Refresh",n="Add",i="Edit",_="Delete",I="ID",c="Name",N="Description",C="Categories",g="Labels",O="Channels",u="Receiver",A="ResendLimit",p="ResendInterval",f="items per page",P="Previous",R="Next",b="Warning",M=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",m="Cancel",E="Confirm",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],T,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],t,["type","button","routerLink","../add-subscription",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],n,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],i,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],_,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],I,c,N,C,g,O,u,A,p,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],f,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],P,[1,"page-item"],R,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],b,[1,"modal-body"],M,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],m,["type","button",1,"btn","btn-danger",3,"click"],E,[1,"user-select-all"],[1,"text-center"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-paper-plane-o"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return n.refresh()}),e.TgZ(9,"span"),e._UZ(10,"i",8),e.TgZ(11,"span"),e.SDv(12,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",10),e.TgZ(14,"span"),e._UZ(15,"i",11),e.TgZ(16,"span"),e.SDv(17,12),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"button",13),e.NdJ("click",function(){return n.edit()}),e.TgZ(19,"span"),e._UZ(20,"i",14),e.TgZ(21,"span"),e.SDv(22,15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"button",16),e.NdJ("click",function(){return n.deleteConfirm()}),e.TgZ(24,"span"),e._UZ(25,"i",17),e.TgZ(26,"span"),e.SDv(27,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",19),e.TgZ(29,"table",20),e.TgZ(30,"thead",21),e.TgZ(31,"tr"),e.TgZ(32,"th",22),e.TgZ(33,"input",23),e.NdJ("click",function(_){return n.selectAll(_)}),e.qZA(),e.qZA(),e.TgZ(34,"th",22),e.SDv(35,24),e.qZA(),e.TgZ(36,"th",22),e.SDv(37,25),e.qZA(),e.TgZ(38,"th",22),e.SDv(39,26),e.qZA(),e.TgZ(40,"th",22),e.SDv(41,27),e.qZA(),e.TgZ(42,"th",22),e.SDv(43,28),e.qZA(),e.TgZ(44,"th",22),e.SDv(45,29),e.qZA(),e.TgZ(46,"th",22),e.SDv(47,30),e.qZA(),e.TgZ(48,"th",22),e.SDv(49,31),e.qZA(),e.TgZ(50,"th",22),e.SDv(51,32),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"tbody"),e.YNc(53,w,23,12,"tr",33),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",34),e.TgZ(55,"nav",35),e.TgZ(56,"ul",36),e.TgZ(57,"li",37),e.TgZ(58,"span",38),e.SDv(59,39),e.qZA(),e.qZA(),e.TgZ(60,"li",40),e.TgZ(61,"select",41),e.NdJ("ngModelChange",function(_){return n.pageLimit=_})("ngModelChange",function(){return n.onPageSelected()}),e.TgZ(62,"option",42),e._uU(63,"5"),e.qZA(),e.TgZ(64,"option",43),e._uU(65,"10"),e.qZA(),e.TgZ(66,"option",44),e._uU(67,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"li",45),e.TgZ(69,"button",46),e.NdJ("click",function(){return n.prePage()}),e._UZ(70,"i",47),e.TgZ(71,"span"),e.SDv(72,48),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"li",49),e.TgZ(74,"button",46),e.NdJ("click",function(){return n.nextPage()}),e.TgZ(75,"span"),e.SDv(76,50),e.qZA(),e._UZ(77,"i",51),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(78,"div",52),e.TgZ(79,"div",53),e.TgZ(80,"div",54),e.TgZ(81,"div",55),e.TgZ(82,"h5",56),e._UZ(83,"i",57),e.TgZ(84,"span"),e.SDv(85,58),e.qZA(),e.qZA(),e.qZA(),e.TgZ(86,"div",59),e.SDv(87,60),e.qZA(),e.TgZ(88,"div",61),e.TgZ(89,"button",62),e.SDv(90,63),e.qZA(),e.TgZ(91,"button",64),e.NdJ("click",function(){return n.deleteSubs()}),e.SDv(92,65),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(18),e.Q6J("disabled",1!==n.subscriptionSelected.length),e.xp6(5),e.Q6J("disabled",0===n.subscriptionSelected.length),e.xp6(10),e.Q6J("checked",n.isCheckedAll()),e.xp6(20),e.Q6J("ngForOf",n.subscriptionList),e.xp6(8),e.Q6J("ngModel",n.pageLimit),e.xp6(8),e.Q6J("disabled",1===n.pagination),e.xp6(5),e.Q6J("disabled",n.pageLimit>n.subscriptionList.length))},directives:[r.rH,Z.sg,s.EJ,s.JJ,s.On,s.YN,s.Kr],styles:[""]}),o})();function H(o,T){if(1&o&&e._UZ(0,"span",57),2&o){const t=e.oxw();e.ekj("text-danger",0===t.channelTemplates.length)}}function Y(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",14),e.TgZ(3,"label",60),e.TgZ(4,"span",16),e.SDv(5,61),e.qZA(),e._UZ(6,"span",62),e.qZA(),e.TgZ(7,"div",10),e.TgZ(8,"input",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.recipients=i}),e.qZA(),e.TgZ(9,"div",64),e.TgZ(10,"small"),e.SDv(11,65),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"button",66),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit;return e.oxw().removeChannelTemplate(i)}),e._UZ(13,"i",67),e.TgZ(14,"span"),e.SDv(15,68),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.xp6(8),e.ekj("is-invalid",!t.recipients)("is-valid",t.recipients),e.Q6J("ngModel",t.recipients)}}function j(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",14),e.TgZ(3,"label",69),e.SDv(4,70),e.qZA(),e.TgZ(5,"div",10),e.TgZ(6,"select",71),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.httpMethod=i}),e.TgZ(7,"option",72),e._uU(8,"GET"),e.qZA(),e.TgZ(9,"option",73),e._uU(10,"POST"),e.qZA(),e.TgZ(11,"option",74),e._uU(12,"PUT"),e.qZA(),e.TgZ(13,"option",75),e._uU(14,"DELETE"),e.qZA(),e.TgZ(15,"option",76),e._uU(16,"PATCH"),e.qZA(),e.TgZ(17,"option",77),e._uU(18,"HEAD"),e.qZA(),e.TgZ(19,"option",78),e._uU(20,"TRACE"),e.qZA(),e.TgZ(21,"option",79),e._uU(22,"CONNECT"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",7),e.TgZ(24,"label",80),e.SDv(25,81),e.qZA(),e.TgZ(26,"div",10),e.TgZ(27,"input",82),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.host=i}),e.qZA(),e.TgZ(28,"div",83),e.TgZ(29,"small"),e.SDv(30,84),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",7),e.TgZ(32,"label",85),e.SDv(33,86),e.qZA(),e.TgZ(34,"div",10),e.TgZ(35,"input",87),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.port=i}),e.qZA(),e.TgZ(36,"div",88),e.TgZ(37,"small"),e.SDv(38,89),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"label",90),e.SDv(41,91),e.qZA(),e.TgZ(42,"div",10),e.TgZ(43,"input",92),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.path=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"button",66),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit;return e.oxw().removeChannelTemplate(i)}),e._UZ(45,"i",67),e.TgZ(46,"span"),e.SDv(47,93),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw();e.xp6(6),e.Q6J("ngModel",t.httpMethod),e.xp6(21),e.ekj("is-invalid",!t.host)("is-valid",t.host),e.Q6J("ngModel",t.host),e.xp6(8),e.ekj("is-invalid",!n.isPureIntegerType(t.port))("is-valid",n.isPureIntegerType(t.port)),e.Q6J("ngModel",t.port),e.xp6(8),e.Q6J("ngModel",t.path)}}function K(o,T){if(1&o&&(e.TgZ(0,"div",58),e.TgZ(1,"div",6),e.YNc(2,Y,16,5,"div",59),e.YNc(3,j,48,12,"div",59),e.qZA(),e.qZA()),2&o){const t=T.$implicit;e.xp6(2),e.Q6J("ngIf","EMAIL"===t.type),e.xp6(1),e.Q6J("ngIf","REST"===t.type)}}let W=(()=>{class o{constructor(t,n,i,_,I){this.notiSvc=t,this.msgSvc=n,this.errSvc=i,this.route=_,this.router=I,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={adminState:"UNLOCKED"}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}submit(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((t,n)=>{if("EMAIL"===t.type){let i=t.recipients.toString();t.recipients=i.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.addOneSubscription(this.subscription).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("Add new subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(t){switch(t){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(t){let n=this.channelTemplates.indexOf(t);-1!==n&&(this.channelTemplates.splice(n,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(t){return!isNaN(t)&&parseFloat(t)===parseInt(t)}validate(){let t=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((n,i)=>{("REST"!==n.type||""!==n.path&&n.port)&&("EMAIL"!==n.type||n.recipients)||(t=!0)}),!(!t&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(B.T),e.Y36(q.e),e.Y36(F.T),e.Y36(r.gz),e.Y36(r.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-subscription"]],decls:92,vars:30,consts:function(){let T,t,n,i,_,I,c,N,C,g,O,u,A,p,f,P,R,b,M,m,E,S,h,v,L,U,a;return T="Add Subscription",t="Submit",n="Name",i="the subscription name can't be empty!",_="Categories",I="the subscription categories can't be empty!",c="Labels",N="the subscription labels can't be empty!",C="Receiver",g="the subscription receiver can't be empty!",O="ResendInterval",u="ResendLimit",A="AdminState",p="Channels",f="Add Channel Template",P="EMAIL Channel Template",R="REST Channel Template",b="EmailRecipients",M="the email address port can't be empty",m="Remove",E="HttpMethod",S="Host",h="the REST address host can't be empty!",v="Port",L="the REST address port can't be empty and only pure integer is supported!",U="Path",a="Remove",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-2"],T,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],t,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],n,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],i,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],I,["for","subscriptionLabels",1,"col-md-2","col-form-label"],c,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],N,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],g,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],u,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],A,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],p,f,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],P,["role","button",1,"badge","badge-secondary",3,"click"],R,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],b,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],M,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],m,["for","HttpMethod","required","",1,"col-md-2","col-form-label"],E,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],S,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],h,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],v,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],L,["for","addressPath","required","",1,"col-md-2","col-form-label"],U,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],a]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return n.submit()}),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"form"),e.TgZ(9,"div",7),e.TgZ(10,"label",8),e.SDv(11,9),e.qZA(),e.TgZ(12,"div",10),e.TgZ(13,"input",11),e.NdJ("ngModelChange",function(_){return n.subscription.name=_}),e.qZA(),e.TgZ(14,"div",12),e.TgZ(15,"small"),e.SDv(16,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",14),e.TgZ(18,"label",15),e.TgZ(19,"span",16),e.SDv(20,17),e.qZA(),e._UZ(21,"span",18),e.qZA(),e.TgZ(22,"div",10),e.TgZ(23,"div",19),e.TgZ(24,"input",20),e.NdJ("ngModelChange",function(_){return n.subCategories=_}),e.qZA(),e.TgZ(25,"div",12),e.TgZ(26,"small"),e.SDv(27,21),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",14),e.TgZ(29,"label",22),e.TgZ(30,"span",16),e.SDv(31,23),e.qZA(),e._UZ(32,"span",24),e.qZA(),e.TgZ(33,"div",10),e.TgZ(34,"div",19),e.TgZ(35,"input",25),e.NdJ("ngModelChange",function(_){return n.subLabels=_}),e.qZA(),e.TgZ(36,"div",12),e.TgZ(37,"small"),e.SDv(38,26),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"label",27),e.TgZ(41,"span",16),e.SDv(42,28),e.qZA(),e._UZ(43,"span",29),e.qZA(),e.TgZ(44,"div",10),e.TgZ(45,"input",30),e.NdJ("ngModelChange",function(_){return n.subscription.receiver=_}),e.qZA(),e.TgZ(46,"div",31),e.TgZ(47,"small"),e.SDv(48,32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",14),e.TgZ(50,"label",33),e.TgZ(51,"span",16),e.SDv(52,34),e.qZA(),e._UZ(53,"span",35),e.qZA(),e.TgZ(54,"div",10),e.TgZ(55,"input",36),e.NdJ("ngModelChange",function(_){return n.subscription.resendInterval=_}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(56,"div",14),e.TgZ(57,"label",37),e.TgZ(58,"span",16),e.SDv(59,38),e.qZA(),e._UZ(60,"span",39),e.qZA(),e.TgZ(61,"div",10),e.TgZ(62,"input",40),e.NdJ("ngModelChange",function(_){return n.subscription.resendLimit=_}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",14),e.TgZ(64,"label",41),e.SDv(65,42),e.qZA(),e.TgZ(66,"div",10),e.TgZ(67,"select",43),e.NdJ("ngModelChange",function(_){return n.subscription.adminState=_}),e.TgZ(68,"option",44),e._uU(69,"UNLOCKED"),e.qZA(),e.TgZ(70,"option",45),e._uU(71,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",14),e.TgZ(73,"label",46),e.SDv(74,47),e.qZA(),e.TgZ(75,"div",10),e.TgZ(76,"div",0),e.TgZ(77,"div",1),e.TgZ(78,"span",16),e.SDv(79,48),e.qZA(),e.YNc(80,H,1,2,"span",49),e.qZA(),e.TgZ(81,"div",6),e.TgZ(82,"div",50),e.TgZ(83,"span",51),e.NdJ("click",function(){return n.addChannelTemplate("EMAIL")}),e._UZ(84,"i",52),e.TgZ(85,"span"),e.SDv(86,53),e.qZA(),e.qZA(),e.TgZ(87,"span",54),e.NdJ("click",function(){return n.addChannelTemplate("REST")}),e._UZ(88,"i",52),e.TgZ(89,"span"),e.SDv(90,55),e.qZA(),e.qZA(),e.qZA(),e.YNc(91,K,4,2,"div",56),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",n.validate()),e.xp6(8),e.ekj("is-invalid",!n.subscription.name)("is-valid",n.subscription.name),e.Q6J("ngModel",n.subscription.name),e.xp6(11),e.ekj("is-invalid",!n.subCategories)("is-valid",n.subCategories),e.Q6J("ngModel",n.subCategories),e.xp6(11),e.ekj("is-invalid",!n.subLabels)("is-valid",n.subLabels),e.Q6J("ngModel",n.subLabels),e.xp6(10),e.ekj("is-invalid",!n.subscription.receiver)("is-valid",n.subscription.receiver),e.Q6J("ngModel",n.subscription.receiver),e.xp6(10),e.Q6J("ngModel",n.subscription.resendInterval),e.xp6(7),e.Q6J("ngModel",n.subscription.resendLimit),e.xp6(5),e.Q6J("ngModel",n.subscription.adminState),e.xp6(10),e.ekj("border",0===n.channelTemplates.length)("border-danger",0===n.channelTemplates.length),e.xp6(3),e.Q6J("ngIf",0===n.channelTemplates.length),e.xp6(11),e.Q6J("ngForOf",n.channelTemplates))},directives:[s._Y,s.JL,s.F,s.Fj,s.Q7,s.JJ,s.On,s.wV,s.EJ,s.YN,s.Kr,Z.O5,Z.sg],styles:[""]}),o})();function V(o,T){if(1&o&&e._UZ(0,"span",57),2&o){const t=e.oxw();e.ekj("text-danger",0===t.channelTemplates.length)}}function ee(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",14),e.TgZ(3,"label",60),e.TgZ(4,"span",16),e.SDv(5,61),e.qZA(),e._UZ(6,"span",62),e.qZA(),e.TgZ(7,"div",10),e.TgZ(8,"input",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.recipients=i}),e.qZA(),e.TgZ(9,"div",64),e.TgZ(10,"small"),e.SDv(11,65),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"button",66),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit;return e.oxw().removeChannelTemplate(i)}),e._UZ(13,"i",67),e._uU(14," Remove"),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.xp6(8),e.ekj("is-invalid",!t.recipients)("is-valid",t.recipients),e.Q6J("ngModel",t.recipients)}}function te(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",14),e.TgZ(3,"label",68),e.SDv(4,69),e.qZA(),e.TgZ(5,"div",10),e.TgZ(6,"select",70),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.httpMethod=i}),e.TgZ(7,"option",71),e._uU(8,"GET"),e.qZA(),e.TgZ(9,"option",72),e._uU(10,"POST"),e.qZA(),e.TgZ(11,"option",73),e._uU(12,"PUT"),e.qZA(),e.TgZ(13,"option",74),e._uU(14,"DELETE"),e.qZA(),e.TgZ(15,"option",75),e._uU(16,"PATCH"),e.qZA(),e.TgZ(17,"option",76),e._uU(18,"HEAD"),e.qZA(),e.TgZ(19,"option",77),e._uU(20,"TRACE"),e.qZA(),e.TgZ(21,"option",78),e._uU(22,"CONNECT"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",7),e.TgZ(24,"label",79),e.SDv(25,80),e.qZA(),e.TgZ(26,"div",10),e.TgZ(27,"input",81),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.host=i}),e.qZA(),e.TgZ(28,"div",82),e.TgZ(29,"small"),e.SDv(30,83),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",7),e.TgZ(32,"label",84),e.SDv(33,85),e.qZA(),e.TgZ(34,"div",10),e.TgZ(35,"input",86),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.port=i}),e.qZA(),e.TgZ(36,"div",87),e.TgZ(37,"small"),e.SDv(38,88),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"label",89),e.SDv(41,90),e.qZA(),e.TgZ(42,"div",10),e.TgZ(43,"input",91),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.path=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"button",66),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit;return e.oxw().removeChannelTemplate(i)}),e._UZ(45,"i",92),e.TgZ(46,"span"),e.SDv(47,93),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw();e.xp6(6),e.Q6J("ngModel",t.httpMethod),e.xp6(21),e.ekj("is-invalid",!t.host)("is-valid",t.host),e.Q6J("ngModel",t.host),e.xp6(8),e.ekj("is-invalid",!n.isPureIntegerType(t.port))("is-valid",n.isPureIntegerType(t.port)),e.Q6J("ngModel",t.port),e.xp6(8),e.Q6J("ngModel",t.path)}}function ne(o,T){if(1&o&&(e.TgZ(0,"div",58),e.TgZ(1,"div",6),e.YNc(2,ee,15,5,"div",59),e.YNc(3,te,48,12,"div",59),e.qZA(),e.qZA()),2&o){const t=T.$implicit;e.xp6(2),e.Q6J("ngIf","EMAIL"===t.type),e.xp6(1),e.Q6J("ngIf","REST"===t.type)}}let ie=(()=>{class o{constructor(t,n,i,_,I){this.notiSvc=t,this.msgSvc=n,this.errSvc=i,this.route=_,this.router=I,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(t=>{t.subName&&this.notiSvc.findOneSubscriptionByName(t.subName).subscribe(n=>{this.subscription=n.subscription,this.subCategories=this.subscription.categories.toString(),this.subLabels=this.subscription.labels.toString(),this.channelTemplates=this.subscription.channels})})}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}update(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((t,n)=>{if("EMAIL"===t.type){let i=t.recipients.toString();t.recipients=i.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.updateOneSubscription(this.subscription).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("Update subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(t){switch(t){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(t){let n=this.channelTemplates.indexOf(t);-1!==n&&(this.channelTemplates.splice(n,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(t){return!isNaN(t)&&parseFloat(t)===parseInt(t)}validate(){let t=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((n,i)=>{("REST"!==n.type||""!==n.path&&n.port)&&("EMAIL"!==n.type||n.recipients)||(t=!0)}),!(!t&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(B.T),e.Y36(q.e),e.Y36(F.T),e.Y36(r.gz),e.Y36(r.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edit-subscription"]],decls:92,vars:30,consts:function(){let T,t,n,i,_,I,c,N,C,g,O,u,A,p,f,P,R,b,M,m,E,S,h,v,L,U;return T="Edit Subscription",t="Save",n="Name",i="the subscription name can't be empty!",_="Categories",I="the subscription categories can't be empty!",c="Labels",N="the subscription labels can't be empty!",C="Receiver",g="the subscription receiver can't be empty!",O="ResendInterval",u="ResendLimit",A="AdminState",p="Channels",f="Add Channel Template",P="EMAIL Channel Template",R="REST Channel Template",b="EmailRecipients",M="the email address port can't be empty",m="HttpMethod",E="Host",S="the REST address host can't be empty!",h="Port",v="the REST address port can't be empty and only pure integer is supported!",L="Path",U="Remove",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-2"],T,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],t,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],n,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],i,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],I,["for","subscriptionLabels",1,"col-md-2","col-form-label"],c,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],N,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],g,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],u,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],A,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],p,f,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],P,["role","button",1,"badge","badge-secondary",3,"click"],R,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],b,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],M,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],m,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],E,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],S,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],h,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],v,["for","addressPath","required","",1,"col-md-2","col-form-label"],L,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"fa","fa-trash","mr-1"],U]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return n.update()}),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"form"),e.TgZ(9,"div",7),e.TgZ(10,"label",8),e.SDv(11,9),e.qZA(),e.TgZ(12,"div",10),e.TgZ(13,"input",11),e.NdJ("ngModelChange",function(_){return n.subscription.name=_}),e.qZA(),e.TgZ(14,"div",12),e.TgZ(15,"small"),e.SDv(16,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",14),e.TgZ(18,"label",15),e.TgZ(19,"span",16),e.SDv(20,17),e.qZA(),e._UZ(21,"span",18),e.qZA(),e.TgZ(22,"div",10),e.TgZ(23,"div",19),e.TgZ(24,"input",20),e.NdJ("ngModelChange",function(_){return n.subCategories=_}),e.qZA(),e.TgZ(25,"div",12),e.TgZ(26,"small"),e.SDv(27,21),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",14),e.TgZ(29,"label",22),e.TgZ(30,"span",16),e.SDv(31,23),e.qZA(),e._UZ(32,"span",24),e.qZA(),e.TgZ(33,"div",10),e.TgZ(34,"div",19),e.TgZ(35,"input",25),e.NdJ("ngModelChange",function(_){return n.subLabels=_}),e.qZA(),e.TgZ(36,"div",12),e.TgZ(37,"small"),e.SDv(38,26),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"label",27),e.TgZ(41,"span",16),e.SDv(42,28),e.qZA(),e._UZ(43,"span",29),e.qZA(),e.TgZ(44,"div",10),e.TgZ(45,"input",30),e.NdJ("ngModelChange",function(_){return n.subscription.receiver=_}),e.qZA(),e.TgZ(46,"div",31),e.TgZ(47,"small"),e.SDv(48,32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",14),e.TgZ(50,"label",33),e.TgZ(51,"span",16),e.SDv(52,34),e.qZA(),e._UZ(53,"span",35),e.qZA(),e.TgZ(54,"div",10),e.TgZ(55,"input",36),e.NdJ("ngModelChange",function(_){return n.subscription.resendInterval=_}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(56,"div",14),e.TgZ(57,"label",37),e.TgZ(58,"span",16),e.SDv(59,38),e.qZA(),e._UZ(60,"span",39),e.qZA(),e.TgZ(61,"div",10),e.TgZ(62,"input",40),e.NdJ("ngModelChange",function(_){return n.subscription.resendLimit=_}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",14),e.TgZ(64,"label",41),e.SDv(65,42),e.qZA(),e.TgZ(66,"div",10),e.TgZ(67,"select",43),e.NdJ("ngModelChange",function(_){return n.subscription.adminState=_}),e.TgZ(68,"option",44),e._uU(69,"UNLOCKED"),e.qZA(),e.TgZ(70,"option",45),e._uU(71,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",14),e.TgZ(73,"label",46),e.SDv(74,47),e.qZA(),e.TgZ(75,"div",10),e.TgZ(76,"div",0),e.TgZ(77,"div",1),e.TgZ(78,"span",16),e.SDv(79,48),e.qZA(),e.YNc(80,V,1,2,"span",49),e.qZA(),e.TgZ(81,"div",6),e.TgZ(82,"div",50),e.TgZ(83,"span",51),e.NdJ("click",function(){return n.addChannelTemplate("EMAIL")}),e._UZ(84,"i",52),e.TgZ(85,"span"),e.SDv(86,53),e.qZA(),e.qZA(),e.TgZ(87,"span",54),e.NdJ("click",function(){return n.addChannelTemplate("REST")}),e._UZ(88,"i",52),e.TgZ(89,"span"),e.SDv(90,55),e.qZA(),e.qZA(),e.qZA(),e.YNc(91,ne,4,2,"div",56),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",n.validate()),e.xp6(8),e.ekj("is-invalid",!n.subscription.name)("is-valid",n.subscription.name),e.Q6J("ngModel",n.subscription.name),e.xp6(11),e.ekj("is-invalid",!n.subCategories)("is-valid",n.subCategories),e.Q6J("ngModel",n.subCategories),e.xp6(11),e.ekj("is-invalid",!n.subLabels)("is-valid",n.subLabels),e.Q6J("ngModel",n.subLabels),e.xp6(10),e.ekj("is-invalid",!n.subscription.receiver)("is-valid",n.subscription.receiver),e.Q6J("ngModel",n.subscription.receiver),e.xp6(10),e.Q6J("ngModel",n.subscription.resendInterval),e.xp6(7),e.Q6J("ngModel",n.subscription.resendLimit),e.xp6(5),e.Q6J("ngModel",n.subscription.adminState),e.xp6(10),e.ekj("border",0===n.channelTemplates.length)("border-danger",0===n.channelTemplates.length),e.xp6(3),e.Q6J("ngIf",0===n.channelTemplates.length),e.xp6(11),e.Q6J("ngForOf",n.channelTemplates))},directives:[s._Y,s.JL,s.F,s.Fj,s.Q7,s.JJ,s.On,s.wV,s.EJ,s.YN,s.Kr,Z.O5,Z.sg],styles:[""]}),o})();var _e=d(8253),oe=d(1964),Te=d(4294),ae=d(5894),se=d(7216);let G=(()=>{class o{constructor(t,n){this.router=t,this.notiSvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.notiSvc.ping().pipe((0,Te.q)(1),(0,ae.K)(i=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"notification",routerPath:`/${n.url.split("/")[1]}`}})),(0,se.z)(()=>(0,oe.of)(!0)))}}return o.\u0275fac=function(t){return new(t||o)(e.LFG(r.F0),e.LFG(B.T))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Ie=[{path:"",component:X,canActivate:[_e.a,G],canActivateChild:[G],children:[{path:"",redirectTo:"notification-center",pathMatch:"full"},{path:"notification-center",component:k,children:[{path:"",component:J}]},{path:"subscription-center",component:z,children:[{path:"",redirectTo:"subscription-list",pathMatch:"full"},{path:"subscription-list",component:Q},{path:"add-subscription",component:W},{path:"edit-subscription",component:ie}]}]}];let Se=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[r.Bz.forChild(Ie)],r.Bz]}),o})(),le=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[Z.ez,s.u5,Se]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/634.c5763db2e92fa7d59036.js b/cmd/edgex-ui-server/static/web/en-US/634.c5763db2e92fa7d59036.js deleted file mode 100644 index 0040048f..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/634.c5763db2e92fa7d59036.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[634],{2634:(l_,F,l)=>{l.r(F),l.d(F,{NotificationsModule:()=>N_});var M=l(8583),S=l(3092),d=l(9502),_=l(476);let y=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notifications"]],decls:11,vars:0,consts:function(){let I,e;return I="Notification",e="Subscription",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./notification-center","routerLinkActive","active",1,"nav-link"],I,["routerLink","./subscription-center","routerLinkActive","active",1,"nav-link"],e,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.SDv(5,5),_.qZA(),_.qZA(),_.TgZ(6,"li",3),_.TgZ(7,"a",6),_.SDv(8,7),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",8),_._UZ(10,"router-outlet"),_.qZA(),_.qZA())},directives:[d.yS,d.Od,d.lC],styles:[""]}),o})(),J=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notification-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[d.lC],styles:[""]}),o})();var v=l(9827),B=l(9744),L=l(7822);function H(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",48),_.NdJ("click",function(n){const a=_.CHM(e).$implicit;return _.oxw().selectOne(n,a)}),_.qZA(),_.qZA(),_.TgZ(3,"td",91),_._uU(4),_.qZA(),_.TgZ(5,"td",91),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.qZA(),_.TgZ(15,"td"),_._uU(16),_.qZA(),_.TgZ(17,"td"),_._uU(18),_.qZA(),_.TgZ(19,"td"),_._uU(20),_.qZA(),_.TgZ(21,"td"),_._uU(22),_.ALo(23,"date"),_.qZA(),_.TgZ(24,"td"),_._uU(25),_.ALo(26,"date"),_.qZA(),_.qZA()}if(2&o){const e=I.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.id)),_.xp6(2),_.Q6J("checked",t.isChecked(e.id)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.category),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Oqu(e.content),_.xp6(2),_.Oqu(e.contentType),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.sender),_.xp6(2),_.Oqu(e.severity),_.xp6(2),_.Oqu(e.status),_.xp6(2),_.Oqu(_.xi3(23,14,e.created,"yyyy-MM-dd hh:mm:ss")),_.xp6(3),_.Oqu(_.xi3(26,17,e.modified,"yyyy-MM-dd hh:mm:ss"))}}let W=(()=>{class o{constructor(e,t){this.notiSvc=e,this.msgSvc=t,this.notificationList=[],this.notificationSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this.categorySelected="SECURITY",this.statusSelected="NEW",this.advancedOperation=!1}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.setSearchMode("status"),this.findNotificationsByStatusPagination(!0),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,v.Z)("input[name='startSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.startSelected=1e3*Number(t)}}),this.calendarEnd=(0,v.Z)("input[name='endSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.endSelected=1e3*Number(t)}}),this.calendarStart=(0,v.Z)("input[name='ageCleanupAll']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.ageCleanupAll=1e3*Number(t)}}),this.calendarEnd=(0,v.Z)("input[name='ageCleanupByStatusIsProcessed']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.ageCleanupByStatusIsProcessed=1e3*Number(t)}})}advancedToggle(){this.advancedOperation=!this.advancedOperation}findNotificationsByCategoryPagination(e){this.notiSvc.findNotificationsByCategoryPagination(this.pageOffset,this.pageLimit,this.categorySelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by category")})}findNotificationsByStatusPagination(e){this.notiSvc.findNotificationsByStatusPagination(this.pageOffset,this.pageLimit,this.statusSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by status")})}findNotificationsByLabelPagination(e){this.notiSvc.findNotificationsByLabelPagination(this.pageOffset,this.pageLimit,this.labelSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by label")})}findNotificationsByStartEndPagination(e){console.log(this.startSelected,this.endSelected),this.notiSvc.findNotificationsByStartEndPagination(this.pageOffset,this.pageLimit,this.startSelected,this.endSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by start and end")})}setSearchMode(e){this.searchMode=e}searchByStatus(){this.resetPagination(),this.setSearchMode("status"),this.findNotificationsByStatusPagination()}searchByCategory(){this.resetPagination(),this.setSearchMode("category"),this.findNotificationsByCategoryPagination()}searchByStartEnd(){this.resetPagination(),this.setSearchMode("duration"),this.findNotificationsByStartEndPagination()}deleteConfirm(e){this.cleanMode=e,$("#deleteConfirmDialog").modal("show")}cleanup(){switch(this.cleanMode){case"age":this.cleanupByAge();break;case"status":this.cleanupByAgeAndStatusIsProcessed();break;default:this.deleteSelected()}}cleanupByAge(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupAll).subscribe(()=>{this.msgSvc.success("cleanup by age")}),$("#deleteConfirmDialog").modal("hide")}cleanupByAgeAndStatusIsProcessed(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupByStatusIsProcessed).subscribe(()=>{this.msgSvc.success("cleanup by age when status is processed")}),$("#deleteConfirmDialog").modal("hide")}deleteSelected(){this.notificationSelected.forEach(e=>{this.notiSvc.deleteNotificationById(e.id).subscribe(()=>{this.msgSvc.success("delete",`ID: ${e.id}`)})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let e=!0;return this.notificationList&&0===this.notificationList.length&&(e=!1),this.notificationList.forEach(t=>{-1===this.notificationSelected.findIndex(n=>n.id===t.id)&&(e=!1)}),e}selectAll(e){this.notificationList.forEach(e.target.checked?n=>{-1===this.notificationSelected.findIndex(i=>i.id===n.id)&&this.notificationSelected.push(n)}:n=>{let i=this.notificationSelected.findIndex(a=>a.id===n.id);-1!==i&&this.notificationSelected.splice(i,1)})}isChecked(e){return this.notificationSelected.findIndex(t=>t.id===e)>=0}selectOne(e,t){if(e.target.checked)return void this.notificationSelected.push(t);let i=this.notificationSelected.findIndex(a=>a.id===t.id);-1!==i&&this.notificationSelected.splice(i,1)}paginationBySearchMode(){switch(this.searchMode){case"status":this.findNotificationsByStatusPagination(!0);break;case"category":this.findNotificationsByCategoryPagination(!0);break;case"duration":this.findNotificationsByStartEndPagination(!0)}}onPageSelected(){this.resetPagination(),this.paginationBySearchMode()}prePage(){this.setPagination(-1),this.paginationBySearchMode()}nextPage(){this.setPagination(1),this.paginationBySearchMode()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.setPagination()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notification-list"]],decls:161,vars:11,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h;return I="Notification List",e="\xA0The data loaded by default takes the value of status as NEW",t="Delete",n="Advanced",i="Status",a="Start",A="End",r="CleanupByAge",C="Cleanup",c="Category",O="Labels",g="Content",E="ContentType",u="Description",p="Sender",f="Severity",P="Status",U="Created",R="Modified",G="items per page",b="Previous",s="Next",m="Warning",Z=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",D="Cancel",h="Confirm",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],I,[1,"fa","fa-info-circle","text-success","font-weight-bold","ml-1"],e,[1,"bg-light","card-header","p-0"],[1,"px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],t,["role","button",1,"text-primary","ml-3","text-decoration-none",3,"click"],n,[1,"fa","fa-angle-double-right","ml-1"],[1,"bg-light","card-header","p-0",3,"hidden"],[1,"form-group","row"],[1,"col-md-10"],[1,"input-group",2,"width","600px"],[1,"input-group-prepend"],[1,"input-group-text"],i,["name","statusSelected",1,"custom-select",3,"ngModel","ngModelChange"],["value","NEW"],["value","PROCESSED"],["value","ESCALATED"],["role","button",1,"input-group-append",3,"click"],[1,"fa","fa-search"],a,[1,"fa","fa-calendar"],["type","text","name","startSelected",1,"form-control"],A,["type","text","name","endSelected",1,"form-control"],[1,"input-group-append"],["type","button",1,"btn","btn-secondary",3,"disabled","click"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes notifications which have age and is less than the specified one, where the age of Notification is calculated by subtracting its last modification timestamp from the current timestamp. Note that the corresponding transmissions will also be deleted.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupAll",1,"form-control"],[1,"fa","fa-trash-o"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes the processed notifications if the current timestamp minus their last modification timestamp is less than the age parameter, and the corresponding transmissions will also be deleted. Please notice that this API is only for processed notifications (status = PROCESSED). If the deletion purpose includes each kind of notifications, please refer to cleanupAll.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupByStatusIsProcessed",1,"form-control"],["type","button",1,"btn","btn-danger","font-weight-bold",3,"disabled","click"],[1,"card-body","p-0","position-relative"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],c,O,g,E,u,p,f,P,U,R,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],G,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],b,[1,"page-item"],s,["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],m,[1,"modal-body"],Z,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],D,["type","button",1,"btn","btn-danger",3,"click"],h,[1,"user-select-all"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"span",4),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"div",7),_.TgZ(9,"div",8),_.TgZ(10,"button",9),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(11,"span"),_._UZ(12,"i",10),_.TgZ(13,"span"),_.SDv(14,11),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(15,"a",12),_.NdJ("click",function(){return t.advancedToggle()}),_.TgZ(16,"span"),_.TgZ(17,"span"),_.SDv(18,13),_.qZA(),_._UZ(19,"i",14),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(20,"div",15),_.TgZ(21,"div",7),_.TgZ(22,"form"),_.TgZ(23,"div",16),_.TgZ(24,"div",17),_.TgZ(25,"div",18),_.TgZ(26,"div",19),_.TgZ(27,"span",20),_.SDv(28,21),_.qZA(),_.qZA(),_.TgZ(29,"select",22),_.NdJ("ngModelChange",function(i){return t.statusSelected=i}),_.TgZ(30,"option",23),_._uU(31,"NEW"),_.qZA(),_.TgZ(32,"option",24),_._uU(33,"PROCESSED"),_.qZA(),_.TgZ(34,"option",25),_._uU(35,"ESCALATED"),_.qZA(),_.qZA(),_.TgZ(36,"div",26),_.NdJ("click",function(){return t.searchByStatus()}),_.TgZ(37,"span",20),_._UZ(38,"i",27),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",16),_.TgZ(40,"div",17),_.TgZ(41,"div",18),_.TgZ(42,"div",19),_.TgZ(43,"span",20),_.SDv(44,28),_.qZA(),_.qZA(),_.TgZ(45,"div",19),_.TgZ(46,"span",20),_._UZ(47,"i",29),_.qZA(),_.qZA(),_._UZ(48,"input",30),_.TgZ(49,"div",19),_.TgZ(50,"span",20),_.SDv(51,31),_.qZA(),_.qZA(),_.TgZ(52,"div",19),_.TgZ(53,"span",20),_._UZ(54,"i",29),_.qZA(),_.qZA(),_._UZ(55,"input",32),_.TgZ(56,"div",33),_.TgZ(57,"button",34),_.NdJ("click",function(){return t.searchByStartEnd()}),_._UZ(58,"i",27),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",16),_.TgZ(60,"div",17),_.TgZ(61,"div",18),_.TgZ(62,"div",19),_.TgZ(63,"span",20),_.TgZ(64,"span"),_.SDv(65,35),_.qZA(),_._uU(66,"\xa0 "),_._UZ(67,"span",36),_.qZA(),_.qZA(),_.TgZ(68,"div",19),_.TgZ(69,"span",20),_._UZ(70,"i",29),_.qZA(),_.qZA(),_._UZ(71,"input",37),_.TgZ(72,"div",33),_.TgZ(73,"button",9),_.NdJ("click",function(){return t.deleteConfirm("age")}),_._UZ(74,"i",38),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(75,"div",16),_.TgZ(76,"div",17),_.TgZ(77,"div",18),_.TgZ(78,"div",19),_.TgZ(79,"span",20),_.TgZ(80,"span"),_.SDv(81,39),_.qZA(),_._uU(82,"\xa0 "),_._UZ(83,"span",40),_.qZA(),_.qZA(),_.TgZ(84,"div",19),_.TgZ(85,"span",20),_._UZ(86,"i",29),_.qZA(),_.qZA(),_._UZ(87,"input",41),_.TgZ(88,"div",33),_.TgZ(89,"button",42),_.NdJ("click",function(){return t.deleteConfirm("status")}),_._UZ(90,"i",38),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(91,"div",43),_.TgZ(92,"div",44),_.TgZ(93,"table",45),_.TgZ(94,"thead",46),_.TgZ(95,"tr"),_.TgZ(96,"th",47),_.TgZ(97,"input",48),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(98,"th",47),_._uU(99,"ID"),_.qZA(),_.TgZ(100,"th",47),_.SDv(101,49),_.qZA(),_.TgZ(102,"th",47),_.SDv(103,50),_.qZA(),_.TgZ(104,"th",47),_.SDv(105,51),_.qZA(),_.TgZ(106,"th",47),_.SDv(107,52),_.qZA(),_.TgZ(108,"th",47),_.SDv(109,53),_.qZA(),_.TgZ(110,"th",47),_.SDv(111,54),_.qZA(),_.TgZ(112,"th",47),_.SDv(113,55),_.qZA(),_.TgZ(114,"th",47),_.SDv(115,56),_.qZA(),_.TgZ(116,"th",47),_.SDv(117,57),_.qZA(),_.TgZ(118,"th",47),_.SDv(119,58),_.qZA(),_.qZA(),_.qZA(),_.TgZ(120,"tbody"),_.YNc(121,H,27,20,"tr",59),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(122,"div",60),_.TgZ(123,"nav",61),_.TgZ(124,"ul",62),_.TgZ(125,"li",63),_.TgZ(126,"span",64),_.SDv(127,65),_.qZA(),_.qZA(),_.TgZ(128,"li",66),_.TgZ(129,"select",67),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(130,"option",68),_._uU(131,"5"),_.qZA(),_.TgZ(132,"option",69),_._uU(133,"10"),_.qZA(),_.TgZ(134,"option",70),_._uU(135,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(136,"li",71),_.TgZ(137,"button",72),_.NdJ("click",function(){return t.prePage()}),_._UZ(138,"i",73),_.TgZ(139,"span"),_.SDv(140,74),_.qZA(),_.qZA(),_.qZA(),_.TgZ(141,"li",75),_.TgZ(142,"button",72),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(143,"span"),_.SDv(144,76),_.qZA(),_._UZ(145,"i",14),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(146,"div",77),_.TgZ(147,"div",78),_.TgZ(148,"div",79),_.TgZ(149,"div",80),_.TgZ(150,"h5",81),_._UZ(151,"i",82),_.TgZ(152,"span"),_.SDv(153,83),_.qZA(),_.qZA(),_.qZA(),_.TgZ(154,"div",84),_.SDv(155,85),_.qZA(),_.TgZ(156,"div",86),_.TgZ(157,"button",87),_.SDv(158,88),_.qZA(),_.TgZ(159,"button",89),_.NdJ("click",function(){return t.cleanup()}),_.SDv(160,90),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(10),_.Q6J("disabled",0===t.notificationSelected.length),_.xp6(10),_.Q6J("hidden",!t.advancedOperation),_.xp6(9),_.Q6J("ngModel",t.statusSelected),_.xp6(28),_.Q6J("disabled",!t.startSelected||!t.endSelected),_.xp6(16),_.Q6J("disabled",!t.ageCleanupAll),_.xp6(16),_.Q6J("disabled",!t.ageCleanupByStatusIsProcessed),_.xp6(8),_.Q6J("checked",t.isCheckedAll()),_.xp6(24),_.Q6J("ngForOf",t.notificationList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.notificationList.length))},directives:[S._Y,S.JL,S.F,S.EJ,S.JJ,S.On,S.YN,S.Kr,M.sg],pipes:[M.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),k=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-subscription-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[d.lC],styles:[""]}),o})();var q=l(4889);function x(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(n){const a=_.CHM(e).$implicit;return _.oxw().selectOne(n,a)}),_.qZA(),_.qZA(),_.TgZ(3,"td",66),_._uU(4),_.qZA(),_.TgZ(5,"td",66),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td",67),_.TgZ(14,"span",68),_.NdJ("click",function(){const i=_.CHM(e).$implicit;return _.oxw().checkChannels(i)}),_._UZ(15,"i",69),_._uU(16),_.qZA(),_.qZA(),_.TgZ(17,"td"),_._uU(18),_.qZA(),_.TgZ(19,"td"),_._uU(20),_.qZA(),_.TgZ(21,"td"),_._uU(22),_.qZA(),_.qZA()}if(2&o){const e=I.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.categories),_.xp6(2),_.Oqu(e.labels),_.xp6(4),_.hij(" ",e.channels.length," "),_.xp6(2),_.Oqu(e.receiver),_.xp6(2),_.Oqu(e.resendLimit),_.xp6(2),_.Oqu(e.resendInterval)}}let z=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=a,this.subscriptionList=[],this.subscriptionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllSubscriptionsPagination()}refresh(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.subscriptionList=e.subscriptions,this.msgSvc.success("refresh")})}findAllSubscriptionsPagination(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.subscriptionList=e.subscriptions})}checkChannels(e){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:e.name}})}isCheckedAll(){let e=!0;return this.subscriptionList&&0===this.subscriptionList.length&&(e=!1),this.subscriptionList.forEach(t=>{-1===this.subscriptionSelected.findIndex(n=>n.id===t.id)&&(e=!1)}),e}selectAll(e){this.subscriptionList.forEach(e.target.checked?n=>{-1===this.subscriptionSelected.findIndex(i=>i.name===n.name)&&this.subscriptionSelected.push(n)}:n=>{let i=this.subscriptionSelected.findIndex(a=>a.name===n.name);-1!==i&&this.subscriptionSelected.splice(i,1)})}isChecked(e){return this.subscriptionSelected.findIndex(t=>t.name===e)>=0}selectOne(e,t){if(e.target.checked)return void this.subscriptionSelected.push(t);let i=this.subscriptionSelected.findIndex(a=>a.name===t.name);-1!==i&&this.subscriptionSelected.splice(i,1)}edit(){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:this.subscriptionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteSubs(){this.subscriptionSelected.forEach(e=>{this.notiSvc.deleteOneSubscriptionByName(e.name).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.subscriptionList.forEach((n,i)=>{n.name!==e.name||this.subscriptionList.splice(i,1)}),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findAllSubscriptionsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllSubscriptionsPagination()}prePage(){this.setPagination(-1),this.findAllSubscriptionsPagination()}nextPage(){this.setPagination(1),this.findAllSubscriptionsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(d.gz),_.Y36(d.F0),_.Y36(q.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-subscription-list"]],decls:93,vars:7,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b;return I="Subscription List",e="Refresh",t="Add",n="Edit",i="Delete",a="ID",A="Name",r="Description",C="Categories",c="Labels",O="Channels",g="Receiver",E="ResendLimit",u="ResendInterval",p="items per page",f="Previous",P="Next",U="Warning",R=" The data will be permanently erased!!! Are you sure to execute delete operation\uFF1F ",G="Cancel",b="Confirm",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],I,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],e,["type","button","routerLink","../add-subscription",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],t,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],a,A,r,C,c,O,g,E,u,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],p,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],f,[1,"page-item"],P,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],U,[1,"modal-body"],R,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],G,["type","button",1,"btn","btn-danger",3,"click"],b,[1,"user-select-all"],[1,"text-center"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-paper-plane-o"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(9,"span"),_._UZ(10,"i",8),_.TgZ(11,"span"),_.SDv(12,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"button",10),_.TgZ(14,"span"),_._UZ(15,"i",11),_.TgZ(16,"span"),_.SDv(17,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(19,"span"),_._UZ(20,"i",14),_.TgZ(21,"span"),_.SDv(22,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(24,"span"),_._UZ(25,"i",17),_.TgZ(26,"span"),_.SDv(27,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",19),_.TgZ(29,"table",20),_.TgZ(30,"thead",21),_.TgZ(31,"tr"),_.TgZ(32,"th",22),_.TgZ(33,"input",23),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(34,"th",22),_.SDv(35,24),_.qZA(),_.TgZ(36,"th",22),_.SDv(37,25),_.qZA(),_.TgZ(38,"th",22),_.SDv(39,26),_.qZA(),_.TgZ(40,"th",22),_.SDv(41,27),_.qZA(),_.TgZ(42,"th",22),_.SDv(43,28),_.qZA(),_.TgZ(44,"th",22),_.SDv(45,29),_.qZA(),_.TgZ(46,"th",22),_.SDv(47,30),_.qZA(),_.TgZ(48,"th",22),_.SDv(49,31),_.qZA(),_.TgZ(50,"th",22),_.SDv(51,32),_.qZA(),_.qZA(),_.qZA(),_.TgZ(52,"tbody"),_.YNc(53,x,23,12,"tr",33),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(54,"div",34),_.TgZ(55,"nav",35),_.TgZ(56,"ul",36),_.TgZ(57,"li",37),_.TgZ(58,"span",38),_.SDv(59,39),_.qZA(),_.qZA(),_.TgZ(60,"li",40),_.TgZ(61,"select",41),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(62,"option",42),_._uU(63,"5"),_.qZA(),_.TgZ(64,"option",43),_._uU(65,"10"),_.qZA(),_.TgZ(66,"option",44),_._uU(67,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"li",45),_.TgZ(69,"button",46),_.NdJ("click",function(){return t.prePage()}),_._UZ(70,"i",47),_.TgZ(71,"span"),_.SDv(72,48),_.qZA(),_.qZA(),_.qZA(),_.TgZ(73,"li",49),_.TgZ(74,"button",46),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(75,"span"),_.SDv(76,50),_.qZA(),_._UZ(77,"i",51),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(78,"div",52),_.TgZ(79,"div",53),_.TgZ(80,"div",54),_.TgZ(81,"div",55),_.TgZ(82,"h5",56),_._UZ(83,"i",57),_.TgZ(84,"span"),_.SDv(85,58),_.qZA(),_.qZA(),_.qZA(),_.TgZ(86,"div",59),_.SDv(87,60),_.qZA(),_.TgZ(88,"div",61),_.TgZ(89,"button",62),_.SDv(90,63),_.qZA(),_.TgZ(91,"button",64),_.NdJ("click",function(){return t.deleteSubs()}),_.SDv(92,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(18),_.Q6J("disabled",1!==t.subscriptionSelected.length),_.xp6(5),_.Q6J("disabled",0===t.subscriptionSelected.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(20),_.Q6J("ngForOf",t.subscriptionList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.subscriptionList.length))},directives:[d.rH,M.sg,S.EJ,S.JJ,S.On,S.YN,S.Kr],styles:[""]}),o})();function w(o,I){if(1&o&&_._UZ(0,"span",57),2&o){const e=_.oxw();_.ekj("text-danger",0===e.channelTemplates.length)}}function Q(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",60),_.TgZ(4,"span",16),_.SDv(5,61),_.qZA(),_._UZ(6,"span",62),_.qZA(),_.TgZ(7,"div",10),_.TgZ(8,"input",63),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.recipients=n}),_.qZA(),_.TgZ(9,"div",64),_.TgZ(10,"small"),_.SDv(11,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(13,"i",67),_.TgZ(14,"span"),_.SDv(15,68),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit;_.xp6(8),_.ekj("is-invalid",!e.recipients)("is-valid",e.recipients),_.Q6J("ngModel",e.recipients)}}function Y(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",69),_.SDv(4,70),_.qZA(),_.TgZ(5,"div",10),_.TgZ(6,"select",71),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.httpMethod=n}),_.TgZ(7,"option",72),_._uU(8,"GET"),_.qZA(),_.TgZ(9,"option",73),_._uU(10,"POST"),_.qZA(),_.TgZ(11,"option",74),_._uU(12,"PUT"),_.qZA(),_.TgZ(13,"option",75),_._uU(14,"DELETE"),_.qZA(),_.TgZ(15,"option",76),_._uU(16,"PATCH"),_.qZA(),_.TgZ(17,"option",77),_._uU(18,"HEAD"),_.qZA(),_.TgZ(19,"option",78),_._uU(20,"TRACE"),_.qZA(),_.TgZ(21,"option",79),_._uU(22,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"div",7),_.TgZ(24,"label",80),_.SDv(25,81),_.qZA(),_.TgZ(26,"div",10),_.TgZ(27,"input",82),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.host=n}),_.qZA(),_.TgZ(28,"div",83),_.TgZ(29,"small"),_.SDv(30,84),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",7),_.TgZ(32,"label",85),_.SDv(33,86),_.qZA(),_.TgZ(34,"div",10),_.TgZ(35,"input",87),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.port=n}),_.qZA(),_.TgZ(36,"div",88),_.TgZ(37,"small"),_.SDv(38,89),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",90),_.SDv(41,91),_.qZA(),_.TgZ(42,"div",10),_.TgZ(43,"input",92),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.path=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(45,"i",67),_.TgZ(46,"span"),_.SDv(47,93),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit,t=_.oxw();_.xp6(6),_.Q6J("ngModel",e.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.host)("is-valid",e.host),_.Q6J("ngModel",e.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(e.port))("is-valid",t.isPureIntegerType(e.port)),_.Q6J("ngModel",e.port),_.xp6(8),_.Q6J("ngModel",e.path)}}function j(o,I){if(1&o&&(_.TgZ(0,"div",58),_.TgZ(1,"div",6),_.YNc(2,Q,16,5,"div",59),_.YNc(3,Y,48,12,"div",59),_.qZA(),_.qZA()),2&o){const e=I.$implicit;_.xp6(2),_.Q6J("ngIf","EMAIL"===e.type),_.xp6(1),_.Q6J("ngIf","REST"===e.type)}}let K=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.errSvc=n,this.route=i,this.router=a,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={adminState:"UNLOCKED"}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}submit(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((e,t)=>{if("EMAIL"===e.type){let n=e.recipients.toString();e.recipients=n.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.addOneSubscription(this.subscription).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add new subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(e){switch(e){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(e){let t=this.channelTemplates.indexOf(e);-1!==t&&(this.channelTemplates.splice(t,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((t,n)=>{("REST"!==t.type||""!==t.path&&t.port)&&("EMAIL"!==t.type||t.recipients)||(e=!0)}),!(!e&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(q.T),_.Y36(d.gz),_.Y36(d.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-subscription"]],decls:92,vars:30,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h,T;return I="Add Subscription",e="Submit",t="Name",n="the subscription name can't be empty!",i="Categories",a="the subscription categories can't be empty!",A="Labels",r="the subscription labels can't be empty!",C="Receiver",c="the subscription receiver can't be empty!",O="ResendInterval",g="ResendLimit",E="AdminState",u="Channels",p="Add Channel Template",f="EMAIL Channel Template",P="REST Channel Template",U="EmailRecipients",R="the email address port can't be empty",G="Remove",b="HttpMethod",s="Host",m="the REST address host can't be empty!",Z="Port",D="the REST address port can't be empty and only pure integer is supported!",h="Path",T="Remove",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-2"],I,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],n,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],a,["for","subscriptionLabels",1,"col-md-2","col-form-label"],A,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],r,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],c,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],E,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],u,p,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],f,["role","button",1,"badge","badge-secondary",3,"click"],P,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],U,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],R,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],G,["for","HttpMethod","required","",1,"col-md-2","col-form-label"],b,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],s,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],m,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],Z,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],D,["for","addressPath","required","",1,"col-md-2","col-form-label"],h,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],T]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.submit()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.subscription.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_.SDv(16,13),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",14),_.TgZ(18,"label",15),_.TgZ(19,"span",16),_.SDv(20,17),_.qZA(),_._UZ(21,"span",18),_.qZA(),_.TgZ(22,"div",10),_.TgZ(23,"div",19),_.TgZ(24,"input",20),_.NdJ("ngModelChange",function(i){return t.subCategories=i}),_.qZA(),_.TgZ(25,"div",12),_.TgZ(26,"small"),_.SDv(27,21),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"label",22),_.TgZ(30,"span",16),_.SDv(31,23),_.qZA(),_._UZ(32,"span",24),_.qZA(),_.TgZ(33,"div",10),_.TgZ(34,"div",19),_.TgZ(35,"input",25),_.NdJ("ngModelChange",function(i){return t.subLabels=i}),_.qZA(),_.TgZ(36,"div",12),_.TgZ(37,"small"),_.SDv(38,26),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",27),_.TgZ(41,"span",16),_.SDv(42,28),_.qZA(),_._UZ(43,"span",29),_.qZA(),_.TgZ(44,"div",10),_.TgZ(45,"input",30),_.NdJ("ngModelChange",function(i){return t.subscription.receiver=i}),_.qZA(),_.TgZ(46,"div",31),_.TgZ(47,"small"),_.SDv(48,32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",33),_.TgZ(51,"span",16),_.SDv(52,34),_.qZA(),_._UZ(53,"span",35),_.qZA(),_.TgZ(54,"div",10),_.TgZ(55,"input",36),_.NdJ("ngModelChange",function(i){return t.subscription.resendInterval=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",14),_.TgZ(57,"label",37),_.TgZ(58,"span",16),_.SDv(59,38),_.qZA(),_._UZ(60,"span",39),_.qZA(),_.TgZ(61,"div",10),_.TgZ(62,"input",40),_.NdJ("ngModelChange",function(i){return t.subscription.resendLimit=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"div",14),_.TgZ(64,"label",41),_.SDv(65,42),_.qZA(),_.TgZ(66,"div",10),_.TgZ(67,"select",43),_.NdJ("ngModelChange",function(i){return t.subscription.adminState=i}),_.TgZ(68,"option",44),_._uU(69,"UNLOCKED"),_.qZA(),_.TgZ(70,"option",45),_._uU(71,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(72,"div",14),_.TgZ(73,"label",46),_.SDv(74,47),_.qZA(),_.TgZ(75,"div",10),_.TgZ(76,"div",0),_.TgZ(77,"div",1),_.TgZ(78,"span",16),_.SDv(79,48),_.qZA(),_.YNc(80,w,1,2,"span",49),_.qZA(),_.TgZ(81,"div",6),_.TgZ(82,"div",50),_.TgZ(83,"span",51),_.NdJ("click",function(){return t.addChannelTemplate("EMAIL")}),_._UZ(84,"i",52),_.TgZ(85,"span"),_.SDv(86,53),_.qZA(),_.qZA(),_.TgZ(87,"span",54),_.NdJ("click",function(){return t.addChannelTemplate("REST")}),_._UZ(88,"i",52),_.TgZ(89,"span"),_.SDv(90,55),_.qZA(),_.qZA(),_.qZA(),_.YNc(91,j,4,2,"div",56),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.subscription.name)("is-valid",t.subscription.name),_.Q6J("ngModel",t.subscription.name),_.xp6(11),_.ekj("is-invalid",!t.subCategories)("is-valid",t.subCategories),_.Q6J("ngModel",t.subCategories),_.xp6(11),_.ekj("is-invalid",!t.subLabels)("is-valid",t.subLabels),_.Q6J("ngModel",t.subLabels),_.xp6(10),_.ekj("is-invalid",!t.subscription.receiver)("is-valid",t.subscription.receiver),_.Q6J("ngModel",t.subscription.receiver),_.xp6(10),_.Q6J("ngModel",t.subscription.resendInterval),_.xp6(7),_.Q6J("ngModel",t.subscription.resendLimit),_.xp6(5),_.Q6J("ngModel",t.subscription.adminState),_.xp6(10),_.ekj("border",0===t.channelTemplates.length)("border-danger",0===t.channelTemplates.length),_.xp6(3),_.Q6J("ngIf",0===t.channelTemplates.length),_.xp6(11),_.Q6J("ngForOf",t.channelTemplates))},directives:[S._Y,S.JL,S.F,S.Fj,S.Q7,S.JJ,S.On,S.wV,S.EJ,S.YN,S.Kr,M.O5,M.sg],styles:[""]}),o})();function V(o,I){if(1&o&&_._UZ(0,"span",57),2&o){const e=_.oxw();_.ekj("text-danger",0===e.channelTemplates.length)}}function __(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",60),_.TgZ(4,"span",16),_.SDv(5,61),_.qZA(),_._UZ(6,"span",62),_.qZA(),_.TgZ(7,"div",10),_.TgZ(8,"input",63),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.recipients=n}),_.qZA(),_.TgZ(9,"div",64),_.TgZ(10,"small"),_.SDv(11,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(13,"i",67),_._uU(14," Remove"),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit;_.xp6(8),_.ekj("is-invalid",!e.recipients)("is-valid",e.recipients),_.Q6J("ngModel",e.recipients)}}function e_(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",68),_.SDv(4,69),_.qZA(),_.TgZ(5,"div",10),_.TgZ(6,"select",70),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.httpMethod=n}),_.TgZ(7,"option",71),_._uU(8,"GET"),_.qZA(),_.TgZ(9,"option",72),_._uU(10,"POST"),_.qZA(),_.TgZ(11,"option",73),_._uU(12,"PUT"),_.qZA(),_.TgZ(13,"option",74),_._uU(14,"DELETE"),_.qZA(),_.TgZ(15,"option",75),_._uU(16,"PATCH"),_.qZA(),_.TgZ(17,"option",76),_._uU(18,"HEAD"),_.qZA(),_.TgZ(19,"option",77),_._uU(20,"TRACE"),_.qZA(),_.TgZ(21,"option",78),_._uU(22,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"div",7),_.TgZ(24,"label",79),_.SDv(25,80),_.qZA(),_.TgZ(26,"div",10),_.TgZ(27,"input",81),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.host=n}),_.qZA(),_.TgZ(28,"div",82),_.TgZ(29,"small"),_.SDv(30,83),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",7),_.TgZ(32,"label",84),_.SDv(33,85),_.qZA(),_.TgZ(34,"div",10),_.TgZ(35,"input",86),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.port=n}),_.qZA(),_.TgZ(36,"div",87),_.TgZ(37,"small"),_.SDv(38,88),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",89),_.SDv(41,90),_.qZA(),_.TgZ(42,"div",10),_.TgZ(43,"input",91),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.path=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(45,"i",92),_.TgZ(46,"span"),_.SDv(47,93),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit,t=_.oxw();_.xp6(6),_.Q6J("ngModel",e.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.host)("is-valid",e.host),_.Q6J("ngModel",e.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(e.port))("is-valid",t.isPureIntegerType(e.port)),_.Q6J("ngModel",e.port),_.xp6(8),_.Q6J("ngModel",e.path)}}function t_(o,I){if(1&o&&(_.TgZ(0,"div",58),_.TgZ(1,"div",6),_.YNc(2,__,15,5,"div",59),_.YNc(3,e_,48,12,"div",59),_.qZA(),_.qZA()),2&o){const e=I.$implicit;_.xp6(2),_.Q6J("ngIf","EMAIL"===e.type),_.xp6(1),_.Q6J("ngIf","REST"===e.type)}}let n_=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.errSvc=n,this.route=i,this.router=a,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(e=>{e.subName&&this.notiSvc.findOneSubscriptionByName(e.subName).subscribe(t=>{this.subscription=t.subscription,this.subCategories=this.subscription.categories.toString(),this.subLabels=this.subscription.labels.toString(),this.channelTemplates=this.subscription.channels})})}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}update(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((e,t)=>{if("EMAIL"===e.type){let n=e.recipients.toString();e.recipients=n.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.updateOneSubscription(this.subscription).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(e){switch(e){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(e){let t=this.channelTemplates.indexOf(e);-1!==t&&(this.channelTemplates.splice(t,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((t,n)=>{("REST"!==t.type||""!==t.path&&t.port)&&("EMAIL"!==t.type||t.recipients)||(e=!0)}),!(!e&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(q.T),_.Y36(d.gz),_.Y36(d.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-subscription"]],decls:92,vars:30,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h;return I="Edit Subscription",e="Save",t="Name",n="the subscription name can't be empty!",i="Categories",a="the subscription categories can't be empty!",A="Labels",r="the subscription labels can't be empty!",C="Receiver",c="the subscription receiver can't be empty!",O="ResendInterval",g="ResendLimit",E="AdminState",u="Channels",p="Add Channel Template",f="EMAIL Channel Template",P="REST Channel Template",U="EmailRecipients",R="the email address port can't be empty",G="HttpMethod",b="Host",s="the REST address host can't be empty!",m="Port",Z="the REST address port can't be empty and only pure integer is supported!",D="Path",h="Remove",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-2"],I,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],n,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],a,["for","subscriptionLabels",1,"col-md-2","col-form-label"],A,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],r,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],c,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],E,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],u,p,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],f,["role","button",1,"badge","badge-secondary",3,"click"],P,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],U,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],R,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],G,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],b,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],s,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],m,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],Z,["for","addressPath","required","",1,"col-md-2","col-form-label"],D,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"fa","fa-trash","mr-1"],h]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.update()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.subscription.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_.SDv(16,13),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",14),_.TgZ(18,"label",15),_.TgZ(19,"span",16),_.SDv(20,17),_.qZA(),_._UZ(21,"span",18),_.qZA(),_.TgZ(22,"div",10),_.TgZ(23,"div",19),_.TgZ(24,"input",20),_.NdJ("ngModelChange",function(i){return t.subCategories=i}),_.qZA(),_.TgZ(25,"div",12),_.TgZ(26,"small"),_.SDv(27,21),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"label",22),_.TgZ(30,"span",16),_.SDv(31,23),_.qZA(),_._UZ(32,"span",24),_.qZA(),_.TgZ(33,"div",10),_.TgZ(34,"div",19),_.TgZ(35,"input",25),_.NdJ("ngModelChange",function(i){return t.subLabels=i}),_.qZA(),_.TgZ(36,"div",12),_.TgZ(37,"small"),_.SDv(38,26),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",27),_.TgZ(41,"span",16),_.SDv(42,28),_.qZA(),_._UZ(43,"span",29),_.qZA(),_.TgZ(44,"div",10),_.TgZ(45,"input",30),_.NdJ("ngModelChange",function(i){return t.subscription.receiver=i}),_.qZA(),_.TgZ(46,"div",31),_.TgZ(47,"small"),_.SDv(48,32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",33),_.TgZ(51,"span",16),_.SDv(52,34),_.qZA(),_._UZ(53,"span",35),_.qZA(),_.TgZ(54,"div",10),_.TgZ(55,"input",36),_.NdJ("ngModelChange",function(i){return t.subscription.resendInterval=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",14),_.TgZ(57,"label",37),_.TgZ(58,"span",16),_.SDv(59,38),_.qZA(),_._UZ(60,"span",39),_.qZA(),_.TgZ(61,"div",10),_.TgZ(62,"input",40),_.NdJ("ngModelChange",function(i){return t.subscription.resendLimit=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"div",14),_.TgZ(64,"label",41),_.SDv(65,42),_.qZA(),_.TgZ(66,"div",10),_.TgZ(67,"select",43),_.NdJ("ngModelChange",function(i){return t.subscription.adminState=i}),_.TgZ(68,"option",44),_._uU(69,"UNLOCKED"),_.qZA(),_.TgZ(70,"option",45),_._uU(71,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(72,"div",14),_.TgZ(73,"label",46),_.SDv(74,47),_.qZA(),_.TgZ(75,"div",10),_.TgZ(76,"div",0),_.TgZ(77,"div",1),_.TgZ(78,"span",16),_.SDv(79,48),_.qZA(),_.YNc(80,V,1,2,"span",49),_.qZA(),_.TgZ(81,"div",6),_.TgZ(82,"div",50),_.TgZ(83,"span",51),_.NdJ("click",function(){return t.addChannelTemplate("EMAIL")}),_._UZ(84,"i",52),_.TgZ(85,"span"),_.SDv(86,53),_.qZA(),_.qZA(),_.TgZ(87,"span",54),_.NdJ("click",function(){return t.addChannelTemplate("REST")}),_._UZ(88,"i",52),_.TgZ(89,"span"),_.SDv(90,55),_.qZA(),_.qZA(),_.qZA(),_.YNc(91,t_,4,2,"div",56),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.subscription.name)("is-valid",t.subscription.name),_.Q6J("ngModel",t.subscription.name),_.xp6(11),_.ekj("is-invalid",!t.subCategories)("is-valid",t.subCategories),_.Q6J("ngModel",t.subCategories),_.xp6(11),_.ekj("is-invalid",!t.subLabels)("is-valid",t.subLabels),_.Q6J("ngModel",t.subLabels),_.xp6(10),_.ekj("is-invalid",!t.subscription.receiver)("is-valid",t.subscription.receiver),_.Q6J("ngModel",t.subscription.receiver),_.xp6(10),_.Q6J("ngModel",t.subscription.resendInterval),_.xp6(7),_.Q6J("ngModel",t.subscription.resendLimit),_.xp6(5),_.Q6J("ngModel",t.subscription.adminState),_.xp6(10),_.ekj("border",0===t.channelTemplates.length)("border-danger",0===t.channelTemplates.length),_.xp6(3),_.Q6J("ngIf",0===t.channelTemplates.length),_.xp6(11),_.Q6J("ngForOf",t.channelTemplates))},directives:[S._Y,S.JL,S.F,S.Fj,S.Q7,S.JJ,S.On,S.wV,S.EJ,S.YN,S.Kr,M.O5,M.sg],styles:[""]}),o})();var i_=l(8253),o_=l(1964),I_=l(4294),T_=l(5894),S_=l(7216);let X=(()=>{class o{constructor(e,t){this.router=e,this.notiSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.notiSvc.ping().pipe((0,I_.q)(1),(0,T_.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"notification",routerPath:`/${t.url.split("/")[1]}`}})),(0,S_.z)(()=>(0,o_.of)(!0)))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(d.F0),_.LFG(B.T))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const a_=[{path:"",component:y,canActivate:[i_.a,X],canActivateChild:[X],children:[{path:"",redirectTo:"notification-center",pathMatch:"full"},{path:"notification-center",component:J,children:[{path:"",component:W}]},{path:"subscription-center",component:k,children:[{path:"",redirectTo:"subscription-list",pathMatch:"full"},{path:"subscription-list",component:z},{path:"add-subscription",component:K},{path:"edit-subscription",component:n_}]}]}];let s_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[d.Bz.forChild(a_)],d.Bz]}),o})(),N_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[M.ez,S.u5,s_]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/707.65d94ee77cc572c9cd8c.js b/cmd/edgex-ui-server/static/web/en-US/707.65d94ee77cc572c9cd8c.js deleted file mode 100644 index d81d616e..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/707.65d94ee77cc572c9cd8c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[707],{6342:(Z,h,s)=>{s.d(h,{Y:()=>u});var e=s(8583),r=s(3092),m=s(9502),l=s(476);const _=[];let g=(()=>{class a{}return a.\u0275fac=function(p){return new(p||a)},a.\u0275mod=l.oAB({type:a}),a.\u0275inj=l.cJS({imports:[[m.Bz.forChild(_)],m.Bz]}),a})(),u=(()=>{class a{}return a.\u0275fac=function(p){return new(p||a)},a.\u0275mod=l.oAB({type:a}),a.\u0275inj=l.cJS({imports:[[e.ez,r.u5,r.UX,g]]}),a})()},9549:(Z,h,s)=>{s.d(h,{P:()=>q});var e=s(476),r=s(8583),m=s(3092),l=s(7982);function _(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"div",24),e.TgZ(3,"input",25),e.NdJ("click",function(n){const v=e.CHM(t).$implicit;return e.oxw().selectOne(n,v)}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"td",26),e._uU(5),e.qZA(),e.TgZ(6,"td",26),e._uU(7),e.qZA(),e.TgZ(8,"td"),e.TgZ(9,"span",27),e.NdJ("click",function(){const c=e.CHM(t).$implicit;return e.oxw().checkOne(c)}),e._uU(10,"coreCommands"),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=d.$implicit,i=e.oxw();e.ekj("table-active",i.isChecked(t)),e.xp6(3),e.Q6J("checked",i.isChecked(t)),e.xp6(2),e.Oqu(t.deviceName),e.xp6(2),e.Oqu(t.profileName)}}let g=(()=>{class o{constructor(t){this.cmdSvc=t,this.deviceCoreCmdList=[],this.deviceCoreCmdSelectedEvent=new e.vpe,this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllDeviceCoreCmdsPagination()}findAllDeviceCoreCmdsPagination(){this.cmdSvc.allDeviceCoreCommandsPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.deviceCoreCmdList=t.deviceCoreCommands})}isChecked(t){var i;return(null===(i=this.deviceCoreCmdSelected)||void 0===i?void 0:i.deviceName)===t.deviceName}selectOne(t,i){this.deviceCoreCmdSelected=t.target.checked?i:void 0,this.deviceCoreCmdSelectedEvent.emit(this.deviceCoreCmdSelected)}checkOne(t){this.deviceCoreCmdSelected=t,this.deviceCoreCmdSelectedEvent.emit(this.deviceCoreCmdSelected)}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceCoreCmdsPagination()}prePage(){this.setPagination(-1),this.findAllDeviceCoreCmdsPagination()}nextPage(){this.setPagination(1),this.findAllDeviceCoreCmdsPagination()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(l.V))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-device-core-command-list"]],inputs:{deviceCoreCmdSelected:"deviceCoreCmdSelected"},outputs:{deviceCoreCmdSelectedEvent:"deviceCoreCmdSelectedEvent"},decls:41,vars:4,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger"],[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left"],[1,"page-item"],[1,"fa","fa-angle-double-right"],[1,"form-group","form-check"],["type","checkbox","role","button",1,"form-check-input",3,"checked","click"],[1,"user-select-all"],["role","button",1,"badge","badge-primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e._uU(3," Device Core Command List "),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"div",4),e.TgZ(6,"table",5),e.TgZ(7,"thead",6),e.TgZ(8,"tr"),e.TgZ(9,"th",7),e._uU(10,"#"),e.qZA(),e.TgZ(11,"th",7),e._uU(12,"Device"),e.qZA(),e.TgZ(13,"th",7),e._uU(14,"DeviceProfile"),e.qZA(),e.TgZ(15,"th",7),e._uU(16,"AssociatedCommands"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"tbody"),e.YNc(18,_,11,5,"tr",8),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",9),e.TgZ(20,"nav",10),e.TgZ(21,"ul",11),e.TgZ(22,"li",12),e.TgZ(23,"span",13),e._uU(24,"items per page"),e.qZA(),e.qZA(),e.TgZ(25,"li",14),e.TgZ(26,"select",15),e.NdJ("ngModelChange",function(c){return i.pageLimit=c})("ngModelChange",function(){return i.onPageSelected()}),e.TgZ(27,"option",16),e._uU(28,"5"),e.qZA(),e.TgZ(29,"option",17),e._uU(30,"10"),e.qZA(),e.TgZ(31,"option",18),e._uU(32,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"li",19),e.TgZ(34,"button",20),e.NdJ("click",function(){return i.prePage()}),e._UZ(35,"i",21),e._uU(36," Previous"),e.qZA(),e.qZA(),e.TgZ(37,"li",22),e.TgZ(38,"button",20),e.NdJ("click",function(){return i.nextPage()}),e._uU(39,"Next "),e._UZ(40,"i",23),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(18),e.Q6J("ngForOf",i.deviceCoreCmdList),e.xp6(8),e.Q6J("ngModel",i.pageLimit),e.xp6(8),e.Q6J("disabled",1===i.pagination),e.xp6(4),e.Q6J("disabled",i.pageLimit>i.deviceCoreCmdList.length))},directives:[r.sg,m.EJ,m.JJ,m.On,m.YN,m.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function u(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"input",17),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(3).httpMethod=n})("click",function(n){return e.CHM(t),e.oxw(3).onMethodChecked(n,"GET")}),e.qZA()}if(2&o){const t=e.oxw(2),i=t.$implicit,n=t.index,c=e.oxw();e.hYB("id","get-",i,"-",n,""),e.Q6J("checked",c.isMethodChecked("GET"))("ngModel",c.httpMethod)}}function a(o,d){if(1&o&&(e.TgZ(0,"div",13),e.TgZ(1,"span",14),e.YNc(2,u,1,4,"input",15),e.TgZ(3,"label",16),e._uU(4,"get"),e.qZA(),e.qZA(),e.qZA()),2&o){const t=e.oxw(),i=t.$implicit,n=t.index,c=e.oxw();e.xp6(2),e.Q6J("ngIf",c.isChecked(i.name)),e.xp6(1),e.hYB("for","get-",i,"-",n,"")}}function C(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"input",19),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(3).httpMethod=n})("click",function(n){return e.CHM(t),e.oxw(3).onMethodChecked(n,"PUT")}),e.qZA()}if(2&o){const t=e.oxw(2),i=t.$implicit,n=t.index,c=e.oxw();e.hYB("id","set-",i,"-",n,""),e.Q6J("checked",c.isMethodChecked("PUT"))("ngModel",c.httpMethod)}}function p(o,d){if(1&o&&(e.TgZ(0,"div",13),e.TgZ(1,"span",14),e.YNc(2,C,1,4,"input",18),e.TgZ(3,"label",16),e._uU(4,"set"),e.qZA(),e.qZA(),e.qZA()),2&o){const t=e.oxw(),i=t.$implicit,n=t.index,c=e.oxw();e.xp6(2),e.Q6J("ngIf",c.isChecked(i.name)),e.xp6(1),e.hYB("for","set-",i,"-",n,"")}}function f(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",10),e.NdJ("click",function(n){const v=e.CHM(t).$implicit;return e.oxw().selectOne(n,v)}),e.qZA(),e.qZA(),e.TgZ(3,"td",11),e._uU(4),e.qZA(),e.TgZ(5,"td"),e.TgZ(6,"div"),e.YNc(7,a,5,3,"div",12),e.YNc(8,p,5,3,"div",12),e.qZA(),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.qZA()}if(2&o){const t=d.$implicit,i=e.oxw();e.ekj("table-active",i.isChecked(t.name)),e.xp6(2),e.Q6J("checked",i.isChecked(t.name)),e.xp6(2),e.Oqu(t.name),e.xp6(3),e.Q6J("ngIf",t.get),e.xp6(1),e.Q6J("ngIf",t.set),e.xp6(2),e.Oqu(t.url),e.xp6(2),e.Oqu(t.path)}}let T=(()=>{class o{constructor(t){this.cmdSvc=t,this.singleCoreCmdSelectedEvent=new e.vpe,this.deviceAssociatedCoreCommandsList=[],this.httpMethod="",this.coreCmdMethodEvent=new e.vpe}ngOnInit(){this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(this.deviceName).subscribe(t=>{this.deviceAssociatedCoreCommandsList=t.deviceCoreCommand.coreCommands})}onMethodChecked(t,i){this.httpMethod=t.target.checked?i:"",this.coreCmdMethodEvent.emit(this.httpMethod)}isChecked(t){var i;return(null===(i=this.coreCmdSelected)||void 0===i?void 0:i.name)===t}isMethodChecked(t){return this.httpMethod===t}radioUnchecked(t){return t||!1}selectOne(t,i){this.coreCmdSelected=t.target.checked?i:{},this.singleCoreCmdSelectedEvent.emit(this.coreCmdSelected),this.coreCmdMethodEvent.emit(void 0)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(l.V))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-device-associated-core-command-list"]],inputs:{deviceName:"deviceName",coreCmdSelected:"coreCmdSelected",httpMethod:"httpMethod"},outputs:{singleCoreCmdSelectedEvent:"singleCoreCmdSelectedEvent",coreCmdMethodEvent:"coreCmdMethodEvent"},decls:24,vars:2,consts:[[1,"card","border-0"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],[1,"text-info"],[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],[3,"table-active",4,"ngFor","ngForOf"],["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"],["class","form-check form-check-inline",4,"ngIf"],[1,"form-check","form-check-inline"],[1,"badge","badge-secondary"],["class","form-check-input align-middle","type","radio","name","cmdMethod","value","GET",3,"id","checked","ngModel","ngModelChange","click",4,"ngIf"],[1,"form-check-label","align-middle",3,"for"],["type","radio","name","cmdMethod","value","GET",1,"form-check-input","align-middle",3,"id","checked","ngModel","ngModelChange","click"],["class","form-check-input align-middle","type","radio","name","cmdMethod","value","PUT",3,"id","checked","ngModel","ngModelChange","click",4,"ngIf"],["type","radio","name","cmdMethod","value","PUT",1,"form-check-input","align-middle",3,"id","checked","ngModel","ngModelChange","click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.TgZ(4,"span",3),e._uU(5),e.qZA(),e._uU(6," Associated Commands List"),e.qZA(),e.qZA(),e.TgZ(7,"div",4),e.TgZ(8,"div",5),e.TgZ(9,"table",6),e.TgZ(10,"thead",7),e.TgZ(11,"tr"),e.TgZ(12,"th",8),e._uU(13,"#"),e.qZA(),e.TgZ(14,"th",8),e._uU(15,"Name"),e.qZA(),e.TgZ(16,"th",8),e._uU(17,"Method"),e.qZA(),e.TgZ(18,"th",8),e._uU(19,"URL"),e.qZA(),e.TgZ(20,"th",8),e._uU(21,"Path"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"tbody"),e.YNc(23,f,13,8,"tr",9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(i.deviceName),e.xp6(18),e.Q6J("ngForOf",i.deviceAssociatedCoreCommandsList))},directives:[r.sg,r.O5,m._,m.Fj,m.JJ,m.On],styles:[""]}),o})();function A(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(n){return e.CHM(t),e.oxw().close(n)}),e.qZA()}}function b(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"nav",17),e.TgZ(2,"ol",18),e.TgZ(3,"li",19),e.TgZ(4,"a",20),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).backtoDeviceCoreCommandList()}),e._uU(5,"DeviceCoreCommandList"),e.qZA(),e.qZA(),e.TgZ(6,"li",21),e._uU(7),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(7),e.Oqu(t.deviceName)}}function x(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-device-associated-core-command-list",22),e.NdJ("coreCmdMethodEvent",function(n){return e.CHM(t),e.oxw(2).onCmdMethodSelected(n)})("singleCoreCmdSelectedEvent",function(n){return e.CHM(t),e.oxw(2).onCoreCmdSelected(n)}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("coreCmdSelected",t.coreCmdSelected)("deviceName",t.deviceName)("httpMethod",t.httpMethod)}}function M(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"div",10),e.TgZ(1,"div",11),e.YNc(2,b,8,1,"div",12),e.TgZ(3,"div",13),e.TgZ(4,"div"),e.TgZ(5,"app-device-core-command-list",14),e.NdJ("deviceCoreCmdSelectedEvent",function(n){return e.CHM(t),e.oxw().onDeviceCoreCmdSelected(n)}),e.qZA(),e.qZA(),e.YNc(6,x,2,3,"div",15),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",!t.deviceCoreCmdListVisible),e.xp6(2),e.Udp("display",t.deviceCoreCmdListVisible?"":"none"),e.xp6(1),e.Q6J("deviceCoreCmdSelected",t.deviceCoreCmdSelected),e.xp6(1),e.Q6J("ngIf",!t.deviceCoreCmdListVisible)}}let q=(()=>{class o{constructor(){this.visible=!1,this.validate=!1,this.deviceName="",this.httpMethod="",this.commandName="",this.commandPath="",this.commandSelectedEvent=new e.vpe,this.cmdMethodEvent=new e.vpe,this.deviceCoreCmdListVisible=!0,this.coreCmdSelected={}}ngOnInit(){this.deviceCoreCmdSelected={deviceName:this.deviceName},this.coreCmdSelected={name:this.commandName,path:this.commandPath}}onDeviceCoreCmdSelected(t){if(!t)return this.deviceCoreCmdSelected=t,this.httpMethod="",void(this.coreCmdSelected={});this.deviceCoreCmdSelected=t,this.deviceName=this.deviceCoreCmdSelected.deviceName,this.deviceCoreCmdListVisible=!1}onCmdMethodSelected(t){this.httpMethod=t,this.cmdMethodEvent.emit(this.httpMethod)}onCoreCmdSelected(t){this.coreCmdSelected=t,this.commandSelectedEvent.emit(this.coreCmdSelected)}backtoDeviceCoreCommandList(){this.deviceCoreCmdListVisible=!0}toggle(t){t.stopImmediatePropagation(),this.visible=!this.visible}close(t){t.stopPropagation(),this.visible=!1}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-device-core-command-combo-list"]],inputs:{validate:"validate",deviceName:"deviceName",httpMethod:"httpMethod",commandName:"commandName",commandPath:"commandPath",coreCmdSelected:"coreCmdSelected"},outputs:{commandSelectedEvent:"commandSelectedEvent",cmdMethodEvent:"cmdMethodEvent"},decls:11,vars:7,consts:[["class","cmd-combo-shielder",3,"click",4,"ngIf"],[1,"cmd-combo"],[1,"input-group","has-validation",3,"click"],["type","text","name","coreCmdSelected","readonly","readonly","maxlength","0","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["id","validationCoreCmdPathFeedback",1,"invalid-feedback"],["class","cmd-combo-body shadow rounded",4,"ngIf"],[1,"cmd-combo-shielder",3,"click"],[1,"cmd-combo-body","shadow","rounded"],[1,"card"],["class","card-header",4,"ngIf"],[1,"card-body","p-0"],[3,"deviceCoreCmdSelected","deviceCoreCmdSelectedEvent"],[4,"ngIf"],[1,"card-header"],["aria-label","breadcrumb",1,"m-0","p-0"],[1,"breadcrumb","p-0","m-0","bg-light"],[1,"breadcrumb-item","text-primary"],["role","button",3,"click"],["aria-current","page",1,"breadcrumb-item","active"],[3,"coreCmdSelected","deviceName","httpMethod","coreCmdMethodEvent","singleCoreCmdSelectedEvent"]],template:function(t,i){1&t&&(e.YNc(0,A,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("click",function(c){return i.toggle(c)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(c){return i.coreCmdSelected.path=c}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.TgZ(7,"div",7),e.TgZ(8,"small"),e._uU(9,"the command name and method can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,M,7,5,"div",8),e.qZA()),2&t&&(e.Q6J("ngIf",i.visible),e.xp6(3),e.ekj("is-invalid",(!i.coreCmdSelected.path||!i.httpMethod)&&i.validate)("is-valid",i.coreCmdSelected.path&&i.httpMethod&&i.validate),e.Q6J("ngModel",i.coreCmdSelected.path),e.xp6(7),e.Q6J("ngIf",i.visible))},directives:[r.O5,m.Fj,m.nD,m.Q7,m.JJ,m.On,g,T],styles:[".cmd-combo[_ngcontent-%COMP%]{position:relative;right:auto}.cmd-combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:101}.cmd-combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/753.17a3f2b06f5ffbdb9f25.js b/cmd/edgex-ui-server/static/web/en-US/753.17a3f2b06f5ffbdb9f25.js deleted file mode 100644 index ed4635c3..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/753.17a3f2b06f5ffbdb9f25.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[753],{1302:(P,T,c)=>{c.d(T,{h:()=>N});var e=c(476),f=c(2437),g=c(8583),S=c(3092);function v(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(n){return e.CHM(_),e.oxw().close(n)}),e.qZA()}}function D(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"input",47),e.NdJ("click",function(n){return e.CHM(_),e.oxw(2).onSelectAll(n)}),e.qZA()}if(2&i){const _=e.oxw(2);e.Q6J("checked",_.isCheckedAll())}}function C(i,s){if(1&i&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.adminState)}}function A(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.adminState)}}function o(i,s){if(1&i&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function l(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function r(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function E(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",47),e.NdJ("click",function(n){const p=e.CHM(_).$implicit;return e.oxw(2).onSelectOne(n,p.name)}),e.qZA(),e.qZA(),e.TgZ(3,"td",48),e._uU(4),e.qZA(),e.TgZ(5,"td",48),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e.TgZ(12,"span",49),e.YNc(13,C,2,1,"span",50),e.YNc(14,A,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(15,"td",52),e.TgZ(16,"span",49),e.YNc(17,o,2,1,"span",50),e.YNc(18,l,2,1,"span",53),e.YNc(19,r,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(20,"td"),e.TgZ(21,"span",54),e._uU(22),e.qZA(),e.qZA(),e.TgZ(23,"td"),e.TgZ(24,"span",54),e._uU(25),e.qZA(),e.qZA(),e.qZA()}if(2&i){const _=s.$implicit,t=e.oxw(2);e.ekj("table-active",t.isChecked(_.name)),e.xp6(2),e.Q6J("checked",t.isChecked(_.name)),e.xp6(2),e.Oqu(_.id),e.xp6(2),e.Oqu(_.name),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.labels),e.xp6(2),e.Q6J("ngSwitch",_.adminState),e.xp6(1),e.Q6J("ngSwitchCase","UNLOCKED"),e.xp6(3),e.Q6J("ngSwitch",_.operatingState),e.xp6(1),e.Q6J("ngSwitchCase","UP"),e.xp6(1),e.Q6J("ngSwitchCase","DOWN"),e.xp6(4),e.Oqu(_.profileName),e.xp6(3),e.Oqu(_.serviceName)}}function b(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e.TgZ(2,"div",11),e._UZ(3,"i",12),e.TgZ(4,"span"),e.SDv(5,13),e.qZA(),e.qZA(),e.TgZ(6,"div",14),e.TgZ(7,"div",15),e.TgZ(8,"table",16),e.TgZ(9,"thead",17),e.TgZ(10,"tr"),e.TgZ(11,"th",18),e.YNc(12,D,1,1,"input",19),e.qZA(),e.TgZ(13,"th",18),e.SDv(14,20),e.qZA(),e.TgZ(15,"th",18),e.SDv(16,21),e.qZA(),e.TgZ(17,"th",18),e.SDv(18,22),e.qZA(),e.TgZ(19,"th",18),e.SDv(20,23),e.qZA(),e.TgZ(21,"th",18),e.SDv(22,24),e.qZA(),e.TgZ(23,"th",18),e.SDv(24,25),e.qZA(),e.TgZ(25,"th",18),e.SDv(26,26),e.qZA(),e.TgZ(27,"th",18),e.SDv(28,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"tbody"),e.YNc(30,E,26,14,"tr",28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",29),e.TgZ(32,"nav",30),e.TgZ(33,"ul",31),e.TgZ(34,"li",32),e.TgZ(35,"span",33),e.SDv(36,34),e.qZA(),e.qZA(),e.TgZ(37,"li",35),e.TgZ(38,"select",36),e.NdJ("ngModelChange",function(n){return e.CHM(_),e.oxw().pageLimit=n})("ngModelChange",function(){return e.CHM(_),e.oxw().onPageSelected()}),e.TgZ(39,"option",37),e._uU(40,"5"),e.qZA(),e.TgZ(41,"option",38),e._uU(42,"10"),e.qZA(),e.TgZ(43,"option",39),e._uU(44,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(45,"li",40),e.TgZ(46,"button",41),e.NdJ("click",function(){return e.CHM(_),e.oxw().prePage()}),e._UZ(47,"i",42),e.TgZ(48,"span"),e.SDv(49,43),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"li",44),e.TgZ(51,"button",41),e.NdJ("click",function(){return e.CHM(_),e.oxw().nextPage()}),e.TgZ(52,"span"),e.SDv(53,45),e.qZA(),e._UZ(54,"i",46),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const _=e.oxw();e.xp6(12),e.Q6J("ngIf",!_.singleSelectionMode),e.xp6(18),e.Q6J("ngForOf",_.deviceList),e.xp6(8),e.Q6J("ngModel",_.pageLimit),e.xp6(8),e.Q6J("disabled",1===_.pagination),e.xp6(5),e.Q6J("disabled",_.pageLimit>_.deviceList.length)}}let N=(()=>{class i{constructor(_){this.metaSvc=_,this.deviceList=[],this.deviceNamesSelectedStr="",this._deviceSelected=[],this.deviceSelectedChange=new e.vpe,this.singleDeviceSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this._singleDeviceSelected=""}get deviceSelected(){return this._deviceSelected}set deviceSelected(_){_.forEach((t,n)=>{_[n]=t.trim()}),this._deviceSelected=_,this.deviceNamesSelectedStr=this._deviceSelected.join(",")}get singleDeviceSelected(){return this._singleDeviceSelected}set singleDeviceSelected(_){this._singleDeviceSelected=_?_.trim():"",this.deviceNamesSelectedStr=this._singleDeviceSelected}ngOnInit(){this.getDeviceListPagination()}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(_=>{this.deviceList=_.devices})}onSelectAll(_){this.deviceList.forEach(_.target.checked?n=>{this.deviceSelected.includes(n.name)||this.deviceSelected.push(n.name)}:n=>{this.deviceSelected.includes(n.name)&&this.deviceSelected.splice(this.deviceSelected.indexOf(n.name),1)}),this.deviceSelectedChange.emit(this.deviceSelected),this.deviceNamesSelectedStr=this.deviceSelected.join(",")}isCheckedAll(){let _=!0;return this.deviceList.forEach(t=>{this.deviceSelected.includes(t.name)||(_=!1)}),_}isChecked(_){return this.singleSelectionMode?this.singleDeviceSelected===_:this.deviceSelected.includes(_)}selectSingleDevice(_,t){this.singleDeviceSelected=_.target.checked?t:"",this.deviceNamesSelectedStr=this.singleDeviceSelected,this.singleDeviceSelectedChange.emit(this.singleDeviceSelected)}onSelectOne(_,t){this.singleSelectionMode?this.selectSingleDevice(_,t):(_.target.checked?this.deviceSelected.push(t):this.deviceSelected.splice(this.deviceSelected.indexOf(t),1),this.deviceNamesSelectedStr=this.deviceSelected.join(","),this.deviceSelectedChange.emit(this.deviceSelected))}onPageSelected(){this.resetPagination(),this.getDeviceListPagination()}prePage(){this.setPagination(-1),this.getDeviceListPagination()}nextPage(){this.setPagination(1),this.getDeviceListPagination()}setPagination(_){1===_?this.pagination+=1:-1===_&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}close(_){this.visible=!1}toggle(_){_.stopPropagation(),this.visible=!this.visible}}return i.\u0275fac=function(_){return new(_||i)(e.Y36(f.D))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-combo-list"]],inputs:{deviceSelected:"deviceSelected",singleDeviceSelected:"singleDeviceSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceSelectedChange:"deviceSelectedChange",singleDeviceSelectedChange:"singleDeviceSelectedChange"},decls:8,vars:3,consts:function(){let s,_,t,n,d,p,O,h,M,u,I,m;return s="Device List",_="ID",t="Name",n="Description",d="Labels",p="AdminState",O="OperatingState",h="AssociatedProfile",M="AssociatedService",u="items per page",I="Previous",m="Next",[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","deviceNamesSelected","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["class","combo-body shadow rounded",4,"ngIf"],[1,"combo-shielder",3,"click"],[1,"combo-body","shadow","rounded"],[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],s,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],_,t,n,d,p,O,h,M,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],u,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"form-control",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],I,[1,"page-item"],m,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],[1,"text-primary"],[1,"badge","badge-success"],[1,"badge","badge-danger"]]},template:function(_,t){1&_&&(e.YNc(0,v,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(d){return t.toggle(d)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(d){return t.deviceNamesSelectedStr=d}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,b,55,5,"div",7),e.qZA()),2&_&&(e.Q6J("ngIf",t.visible),e.xp6(3),e.Q6J("ngModel",t.deviceNamesSelectedStr),e.xp6(4),e.Q6J("ngIf",t.visible))},directives:[g.O5,S.Fj,S.JJ,S.On,g.sg,S.EJ,S.YN,S.Kr,g.RF,g.n9,g.ED],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),i})()},6322:(P,T,c)=>{c.d(T,{o:()=>D});var e=c(476),f=c(8583),g=c(3092),S=c(2822);function v(C,A){if(1&C){const o=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(r){return e.CHM(o),e.oxw().close(r)}),e.qZA()}}let D=(()=>{class C{constructor(){this.selectedProfilesStr="",this._selectedProfiles=[],this.deviceProfileSelectedEvent=new e.vpe,this.singleProfileSelectedObject={},this.singleProfileSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this._singleProfileSelected=""}get selectedProfiles(){return this._selectedProfiles}set selectedProfiles(o){o.forEach((l,r)=>{o[r]=l.trim()}),this._selectedProfiles=o,this.selectedProfilesStr=this._selectedProfiles.join(",")}get singleProfileSelected(){return this._singleProfileSelected}set singleProfileSelected(o){this._singleProfileSelected=o?o.trim():"",this.selectedProfilesStr=this._singleProfileSelected,this.singleProfileSelectedObject={name:this._singleProfileSelected}}ngOnInit(){}onMultipleProfileSelectedEvent(o){this.selectedProfiles=o,this.selectedProfilesStr=this.selectedProfiles.join(","),this.deviceProfileSelectedEvent.emit(this.selectedProfiles)}onSingleProfileSelectedEvent(o){this.singleProfileSelected=o?o.name:"",this.selectedProfilesStr=this.singleProfileSelected,this.singleProfileSelectedChange.emit(this.singleProfileSelected)}close(o){this.visible=!1}toggle(o){o.stopPropagation(),this.visible=!this.visible}}return C.\u0275fac=function(o){return new(o||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["app-device-profile-combo-list"]],inputs:{selectedProfiles:"selectedProfiles",singleProfileSelected:"singleProfileSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceProfileSelectedEvent:"deviceProfileSelectedEvent",singleProfileSelectedChange:"singleProfileSelectedChange"},decls:9,vars:9,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","selectedProfiles","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],[1,"combo-body","shadow","rounded"],[3,"toolbars","associatedDeviceColumn","enableSelectAll","multiProfilesSelected","singleProfileSelected","multipleProfileSelectedEvent","singleProfileSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(o,l){1&o&&(e.YNc(0,v,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(E){return l.toggle(E)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(E){return l.selectedProfilesStr=E}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",7),e.TgZ(8,"app-device-profile-list",8),e.NdJ("multipleProfileSelectedEvent",function(E){return l.onMultipleProfileSelectedEvent(E)})("singleProfileSelectedEvent",function(E){return l.onSingleProfileSelectedEvent(E)}),e.qZA(),e.qZA(),e.qZA()),2&o&&(e.Q6J("ngIf",l.visible),e.xp6(3),e.Q6J("ngModel",l.selectedProfilesStr),e.xp6(4),e.Udp("display",l.visible?"":"none"),e.xp6(1),e.Q6J("toolbars",!1)("associatedDeviceColumn",!1)("enableSelectAll",!l.singleSelectionMode)("multiProfilesSelected",l.selectedProfiles)("singleProfileSelected",l.singleProfileSelectedObject))},directives:[f.O5,g.Fj,g.JJ,g.On,S.f],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),C})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/753.5ef6f0ee7641c98adf0e.js b/cmd/edgex-ui-server/static/web/en-US/753.29ab49e72766d4c1702a.js similarity index 50% rename from cmd/edgex-ui-server/static/web/en-US/753.5ef6f0ee7641c98adf0e.js rename to cmd/edgex-ui-server/static/web/en-US/753.29ab49e72766d4c1702a.js index ed4635c3..eb2920c6 100644 --- a/cmd/edgex-ui-server/static/web/en-US/753.5ef6f0ee7641c98adf0e.js +++ b/cmd/edgex-ui-server/static/web/en-US/753.29ab49e72766d4c1702a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[753],{1302:(P,T,c)=>{c.d(T,{h:()=>N});var e=c(476),f=c(2437),g=c(8583),S=c(3092);function v(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(n){return e.CHM(_),e.oxw().close(n)}),e.qZA()}}function D(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"input",47),e.NdJ("click",function(n){return e.CHM(_),e.oxw(2).onSelectAll(n)}),e.qZA()}if(2&i){const _=e.oxw(2);e.Q6J("checked",_.isCheckedAll())}}function C(i,s){if(1&i&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.adminState)}}function A(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.adminState)}}function o(i,s){if(1&i&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function l(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function r(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function E(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",47),e.NdJ("click",function(n){const p=e.CHM(_).$implicit;return e.oxw(2).onSelectOne(n,p.name)}),e.qZA(),e.qZA(),e.TgZ(3,"td",48),e._uU(4),e.qZA(),e.TgZ(5,"td",48),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e.TgZ(12,"span",49),e.YNc(13,C,2,1,"span",50),e.YNc(14,A,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(15,"td",52),e.TgZ(16,"span",49),e.YNc(17,o,2,1,"span",50),e.YNc(18,l,2,1,"span",53),e.YNc(19,r,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(20,"td"),e.TgZ(21,"span",54),e._uU(22),e.qZA(),e.qZA(),e.TgZ(23,"td"),e.TgZ(24,"span",54),e._uU(25),e.qZA(),e.qZA(),e.qZA()}if(2&i){const _=s.$implicit,t=e.oxw(2);e.ekj("table-active",t.isChecked(_.name)),e.xp6(2),e.Q6J("checked",t.isChecked(_.name)),e.xp6(2),e.Oqu(_.id),e.xp6(2),e.Oqu(_.name),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.labels),e.xp6(2),e.Q6J("ngSwitch",_.adminState),e.xp6(1),e.Q6J("ngSwitchCase","UNLOCKED"),e.xp6(3),e.Q6J("ngSwitch",_.operatingState),e.xp6(1),e.Q6J("ngSwitchCase","UP"),e.xp6(1),e.Q6J("ngSwitchCase","DOWN"),e.xp6(4),e.Oqu(_.profileName),e.xp6(3),e.Oqu(_.serviceName)}}function b(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e.TgZ(2,"div",11),e._UZ(3,"i",12),e.TgZ(4,"span"),e.SDv(5,13),e.qZA(),e.qZA(),e.TgZ(6,"div",14),e.TgZ(7,"div",15),e.TgZ(8,"table",16),e.TgZ(9,"thead",17),e.TgZ(10,"tr"),e.TgZ(11,"th",18),e.YNc(12,D,1,1,"input",19),e.qZA(),e.TgZ(13,"th",18),e.SDv(14,20),e.qZA(),e.TgZ(15,"th",18),e.SDv(16,21),e.qZA(),e.TgZ(17,"th",18),e.SDv(18,22),e.qZA(),e.TgZ(19,"th",18),e.SDv(20,23),e.qZA(),e.TgZ(21,"th",18),e.SDv(22,24),e.qZA(),e.TgZ(23,"th",18),e.SDv(24,25),e.qZA(),e.TgZ(25,"th",18),e.SDv(26,26),e.qZA(),e.TgZ(27,"th",18),e.SDv(28,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"tbody"),e.YNc(30,E,26,14,"tr",28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",29),e.TgZ(32,"nav",30),e.TgZ(33,"ul",31),e.TgZ(34,"li",32),e.TgZ(35,"span",33),e.SDv(36,34),e.qZA(),e.qZA(),e.TgZ(37,"li",35),e.TgZ(38,"select",36),e.NdJ("ngModelChange",function(n){return e.CHM(_),e.oxw().pageLimit=n})("ngModelChange",function(){return e.CHM(_),e.oxw().onPageSelected()}),e.TgZ(39,"option",37),e._uU(40,"5"),e.qZA(),e.TgZ(41,"option",38),e._uU(42,"10"),e.qZA(),e.TgZ(43,"option",39),e._uU(44,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(45,"li",40),e.TgZ(46,"button",41),e.NdJ("click",function(){return e.CHM(_),e.oxw().prePage()}),e._UZ(47,"i",42),e.TgZ(48,"span"),e.SDv(49,43),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"li",44),e.TgZ(51,"button",41),e.NdJ("click",function(){return e.CHM(_),e.oxw().nextPage()}),e.TgZ(52,"span"),e.SDv(53,45),e.qZA(),e._UZ(54,"i",46),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const _=e.oxw();e.xp6(12),e.Q6J("ngIf",!_.singleSelectionMode),e.xp6(18),e.Q6J("ngForOf",_.deviceList),e.xp6(8),e.Q6J("ngModel",_.pageLimit),e.xp6(8),e.Q6J("disabled",1===_.pagination),e.xp6(5),e.Q6J("disabled",_.pageLimit>_.deviceList.length)}}let N=(()=>{class i{constructor(_){this.metaSvc=_,this.deviceList=[],this.deviceNamesSelectedStr="",this._deviceSelected=[],this.deviceSelectedChange=new e.vpe,this.singleDeviceSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this._singleDeviceSelected=""}get deviceSelected(){return this._deviceSelected}set deviceSelected(_){_.forEach((t,n)=>{_[n]=t.trim()}),this._deviceSelected=_,this.deviceNamesSelectedStr=this._deviceSelected.join(",")}get singleDeviceSelected(){return this._singleDeviceSelected}set singleDeviceSelected(_){this._singleDeviceSelected=_?_.trim():"",this.deviceNamesSelectedStr=this._singleDeviceSelected}ngOnInit(){this.getDeviceListPagination()}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(_=>{this.deviceList=_.devices})}onSelectAll(_){this.deviceList.forEach(_.target.checked?n=>{this.deviceSelected.includes(n.name)||this.deviceSelected.push(n.name)}:n=>{this.deviceSelected.includes(n.name)&&this.deviceSelected.splice(this.deviceSelected.indexOf(n.name),1)}),this.deviceSelectedChange.emit(this.deviceSelected),this.deviceNamesSelectedStr=this.deviceSelected.join(",")}isCheckedAll(){let _=!0;return this.deviceList.forEach(t=>{this.deviceSelected.includes(t.name)||(_=!1)}),_}isChecked(_){return this.singleSelectionMode?this.singleDeviceSelected===_:this.deviceSelected.includes(_)}selectSingleDevice(_,t){this.singleDeviceSelected=_.target.checked?t:"",this.deviceNamesSelectedStr=this.singleDeviceSelected,this.singleDeviceSelectedChange.emit(this.singleDeviceSelected)}onSelectOne(_,t){this.singleSelectionMode?this.selectSingleDevice(_,t):(_.target.checked?this.deviceSelected.push(t):this.deviceSelected.splice(this.deviceSelected.indexOf(t),1),this.deviceNamesSelectedStr=this.deviceSelected.join(","),this.deviceSelectedChange.emit(this.deviceSelected))}onPageSelected(){this.resetPagination(),this.getDeviceListPagination()}prePage(){this.setPagination(-1),this.getDeviceListPagination()}nextPage(){this.setPagination(1),this.getDeviceListPagination()}setPagination(_){1===_?this.pagination+=1:-1===_&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}close(_){this.visible=!1}toggle(_){_.stopPropagation(),this.visible=!this.visible}}return i.\u0275fac=function(_){return new(_||i)(e.Y36(f.D))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-combo-list"]],inputs:{deviceSelected:"deviceSelected",singleDeviceSelected:"singleDeviceSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceSelectedChange:"deviceSelectedChange",singleDeviceSelectedChange:"singleDeviceSelectedChange"},decls:8,vars:3,consts:function(){let s,_,t,n,d,p,O,h,M,u,I,m;return s="Device List",_="ID",t="Name",n="Description",d="Labels",p="AdminState",O="OperatingState",h="AssociatedProfile",M="AssociatedService",u="items per page",I="Previous",m="Next",[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","deviceNamesSelected","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["class","combo-body shadow rounded",4,"ngIf"],[1,"combo-shielder",3,"click"],[1,"combo-body","shadow","rounded"],[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],s,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],_,t,n,d,p,O,h,M,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],u,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"form-control",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],I,[1,"page-item"],m,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],[1,"text-primary"],[1,"badge","badge-success"],[1,"badge","badge-danger"]]},template:function(_,t){1&_&&(e.YNc(0,v,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(d){return t.toggle(d)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(d){return t.deviceNamesSelectedStr=d}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,b,55,5,"div",7),e.qZA()),2&_&&(e.Q6J("ngIf",t.visible),e.xp6(3),e.Q6J("ngModel",t.deviceNamesSelectedStr),e.xp6(4),e.Q6J("ngIf",t.visible))},directives:[g.O5,S.Fj,S.JJ,S.On,g.sg,S.EJ,S.YN,S.Kr,g.RF,g.n9,g.ED],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),i})()},6322:(P,T,c)=>{c.d(T,{o:()=>D});var e=c(476),f=c(8583),g=c(3092),S=c(2822);function v(C,A){if(1&C){const o=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(r){return e.CHM(o),e.oxw().close(r)}),e.qZA()}}let D=(()=>{class C{constructor(){this.selectedProfilesStr="",this._selectedProfiles=[],this.deviceProfileSelectedEvent=new e.vpe,this.singleProfileSelectedObject={},this.singleProfileSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this._singleProfileSelected=""}get selectedProfiles(){return this._selectedProfiles}set selectedProfiles(o){o.forEach((l,r)=>{o[r]=l.trim()}),this._selectedProfiles=o,this.selectedProfilesStr=this._selectedProfiles.join(",")}get singleProfileSelected(){return this._singleProfileSelected}set singleProfileSelected(o){this._singleProfileSelected=o?o.trim():"",this.selectedProfilesStr=this._singleProfileSelected,this.singleProfileSelectedObject={name:this._singleProfileSelected}}ngOnInit(){}onMultipleProfileSelectedEvent(o){this.selectedProfiles=o,this.selectedProfilesStr=this.selectedProfiles.join(","),this.deviceProfileSelectedEvent.emit(this.selectedProfiles)}onSingleProfileSelectedEvent(o){this.singleProfileSelected=o?o.name:"",this.selectedProfilesStr=this.singleProfileSelected,this.singleProfileSelectedChange.emit(this.singleProfileSelected)}close(o){this.visible=!1}toggle(o){o.stopPropagation(),this.visible=!this.visible}}return C.\u0275fac=function(o){return new(o||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["app-device-profile-combo-list"]],inputs:{selectedProfiles:"selectedProfiles",singleProfileSelected:"singleProfileSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceProfileSelectedEvent:"deviceProfileSelectedEvent",singleProfileSelectedChange:"singleProfileSelectedChange"},decls:9,vars:9,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","selectedProfiles","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],[1,"combo-body","shadow","rounded"],[3,"toolbars","associatedDeviceColumn","enableSelectAll","multiProfilesSelected","singleProfileSelected","multipleProfileSelectedEvent","singleProfileSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(o,l){1&o&&(e.YNc(0,v,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(E){return l.toggle(E)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(E){return l.selectedProfilesStr=E}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",7),e.TgZ(8,"app-device-profile-list",8),e.NdJ("multipleProfileSelectedEvent",function(E){return l.onMultipleProfileSelectedEvent(E)})("singleProfileSelectedEvent",function(E){return l.onSingleProfileSelectedEvent(E)}),e.qZA(),e.qZA(),e.qZA()),2&o&&(e.Q6J("ngIf",l.visible),e.xp6(3),e.Q6J("ngModel",l.selectedProfilesStr),e.xp6(4),e.Udp("display",l.visible?"":"none"),e.xp6(1),e.Q6J("toolbars",!1)("associatedDeviceColumn",!1)("enableSelectAll",!l.singleSelectionMode)("multiProfilesSelected",l.selectedProfiles)("singleProfileSelected",l.singleProfileSelectedObject))},directives:[f.O5,g.Fj,g.JJ,g.On,S.f],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),C})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[753],{1302:(I,f,c)=>{c.d(f,{h:()=>Z});var e=c(476),v=c(2437),r=c(8583),S=c(3092);function h(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(o){return e.CHM(i),e.oxw().close(o)}),e.qZA()}}function M(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"input",47),e.NdJ("click",function(o){return e.CHM(i),e.oxw(2).onSelectAll(o)}),e.qZA()}if(2&t){const i=e.oxw(2);e.Q6J("checked",i.isCheckedAll())}}function C(t,s){if(1&t&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.Oqu(i.adminState)}}function p(t,s){if(1&t&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.Oqu(i.adminState)}}function _(t,s){if(1&t&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.hij(" ",i.operatingState,"")}}function l(t,s){if(1&t&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.hij(" ",i.operatingState,"")}}function E(t,s){if(1&t&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.hij(" ",i.operatingState,"")}}function g(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",47),e.NdJ("click",function(o){const T=e.CHM(i).$implicit;return e.oxw(2).onSelectOne(o,T.name)}),e.qZA(),e.qZA(),e.TgZ(3,"td",48),e._uU(4),e.qZA(),e.TgZ(5,"td",48),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e.TgZ(12,"span",49),e.YNc(13,C,2,1,"span",50),e.YNc(14,p,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(15,"td",52),e.TgZ(16,"span",49),e.YNc(17,_,2,1,"span",50),e.YNc(18,l,2,1,"span",53),e.YNc(19,E,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(20,"td"),e.TgZ(21,"span",54),e._uU(22),e.qZA(),e.qZA(),e.TgZ(23,"td"),e.TgZ(24,"span",54),e._uU(25),e.qZA(),e.qZA(),e.qZA()}if(2&t){const i=s.$implicit,n=e.oxw(2);e.ekj("table-active",n.isChecked(i.name)),e.xp6(2),e.Q6J("checked",n.isChecked(i.name)),e.xp6(2),e.Oqu(i.id),e.xp6(2),e.Oqu(i.name),e.xp6(2),e.Oqu(i.description),e.xp6(2),e.Oqu(i.labels),e.xp6(2),e.Q6J("ngSwitch",i.adminState),e.xp6(1),e.Q6J("ngSwitchCase","UNLOCKED"),e.xp6(3),e.Q6J("ngSwitch",i.operatingState),e.xp6(1),e.Q6J("ngSwitchCase","UP"),e.xp6(1),e.Q6J("ngSwitchCase","DOWN"),e.xp6(4),e.Oqu(i.profileName),e.xp6(3),e.Oqu(i.serviceName)}}function b(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e.TgZ(2,"div",11),e._UZ(3,"i",12),e.TgZ(4,"span"),e.SDv(5,13),e.qZA(),e.qZA(),e.TgZ(6,"div",14),e.TgZ(7,"div",15),e.TgZ(8,"table",16),e.TgZ(9,"thead",17),e.TgZ(10,"tr"),e.TgZ(11,"th",18),e.YNc(12,M,1,1,"input",19),e.qZA(),e.TgZ(13,"th",18),e.SDv(14,20),e.qZA(),e.TgZ(15,"th",18),e.SDv(16,21),e.qZA(),e.TgZ(17,"th",18),e.SDv(18,22),e.qZA(),e.TgZ(19,"th",18),e.SDv(20,23),e.qZA(),e.TgZ(21,"th",18),e.SDv(22,24),e.qZA(),e.TgZ(23,"th",18),e.SDv(24,25),e.qZA(),e.TgZ(25,"th",18),e.SDv(26,26),e.qZA(),e.TgZ(27,"th",18),e.SDv(28,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"tbody"),e.YNc(30,g,26,14,"tr",28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",29),e.TgZ(32,"nav",30),e.TgZ(33,"ul",31),e.TgZ(34,"li",32),e.TgZ(35,"span",33),e.SDv(36,34),e.qZA(),e.qZA(),e.TgZ(37,"li",35),e.TgZ(38,"select",36),e.NdJ("ngModelChange",function(o){return e.CHM(i),e.oxw().pageLimit=o})("ngModelChange",function(){return e.CHM(i),e.oxw().onPageSelected()}),e.TgZ(39,"option",37),e._uU(40,"5"),e.qZA(),e.TgZ(41,"option",38),e._uU(42,"10"),e.qZA(),e.TgZ(43,"option",39),e._uU(44,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(45,"li",40),e.TgZ(46,"button",41),e.NdJ("click",function(){return e.CHM(i),e.oxw().prePage()}),e._UZ(47,"i",42),e.TgZ(48,"span"),e.SDv(49,43),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"li",44),e.TgZ(51,"button",41),e.NdJ("click",function(){return e.CHM(i),e.oxw().nextPage()}),e.TgZ(52,"span"),e.SDv(53,45),e.qZA(),e._UZ(54,"i",46),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&t){const i=e.oxw();e.xp6(12),e.Q6J("ngIf",!i.singleSelectionMode),e.xp6(18),e.Q6J("ngForOf",i.deviceList),e.xp6(8),e.Q6J("ngModel",i.pageLimit),e.xp6(8),e.Q6J("disabled",1===i.pagination),e.xp6(5),e.Q6J("disabled",i.pageLimit>i.deviceList.length)}}let Z=(()=>{class t{constructor(i){this.metaSvc=i,this.deviceList=[],this.deviceNamesSelectedStr="",this._deviceSelected=[],this.deviceSelectedChange=new e.vpe,this.singleDeviceSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this._singleDeviceSelected=""}get deviceSelected(){return this._deviceSelected}set deviceSelected(i){i.forEach((n,o)=>{i[o]=n.trim()}),this._deviceSelected=i,this.deviceNamesSelectedStr=this._deviceSelected.join(",")}get singleDeviceSelected(){return this._singleDeviceSelected}set singleDeviceSelected(i){this._singleDeviceSelected=i?i.trim():"",this.deviceNamesSelectedStr=this._singleDeviceSelected}ngOnInit(){this.getDeviceListPagination()}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(i=>{this.deviceList=i.devices})}onSelectAll(i){this.deviceList.forEach(i.target.checked?o=>{this.deviceSelected.includes(o.name)||this.deviceSelected.push(o.name)}:o=>{this.deviceSelected.includes(o.name)&&this.deviceSelected.splice(this.deviceSelected.indexOf(o.name),1)}),this.deviceSelectedChange.emit(this.deviceSelected),this.deviceNamesSelectedStr=this.deviceSelected.join(",")}isCheckedAll(){let i=!0;return this.deviceList.forEach(n=>{this.deviceSelected.includes(n.name)||(i=!1)}),i}isChecked(i){return this.singleSelectionMode?this.singleDeviceSelected===i:this.deviceSelected.includes(i)}selectSingleDevice(i,n){this.singleDeviceSelected=i.target.checked?n:"",this.deviceNamesSelectedStr=this.singleDeviceSelected,this.singleDeviceSelectedChange.emit(this.singleDeviceSelected)}onSelectOne(i,n){this.singleSelectionMode?this.selectSingleDevice(i,n):(i.target.checked?this.deviceSelected.push(n):this.deviceSelected.splice(this.deviceSelected.indexOf(n),1),this.deviceNamesSelectedStr=this.deviceSelected.join(","),this.deviceSelectedChange.emit(this.deviceSelected))}onPageSelected(){this.resetPagination(),this.getDeviceListPagination()}prePage(){this.setPagination(-1),this.getDeviceListPagination()}nextPage(){this.setPagination(1),this.getDeviceListPagination()}setPagination(i){1===i?this.pagination+=1:-1===i&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}close(i){this.visible=!1}toggle(i){i.stopPropagation(),this.visible=!this.visible}}return t.\u0275fac=function(i){return new(i||t)(e.Y36(v.D))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-device-combo-list"]],inputs:{deviceSelected:"deviceSelected",singleDeviceSelected:"singleDeviceSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceSelectedChange:"deviceSelectedChange",singleDeviceSelectedChange:"singleDeviceSelectedChange"},decls:8,vars:3,consts:function(){let s,i,n,o,d,T,u,m,A,O,D,P;return s="Device List",i="ID",n="Name",o="Description",d="Labels",T="AdminState",u="OperatingState",m="AssociatedProfile",A="AssociatedService",O="items per page",D="Previous",P="Next",[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","deviceNamesSelected","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["class","combo-body shadow rounded",4,"ngIf"],[1,"combo-shielder",3,"click"],[1,"combo-body","shadow","rounded"],[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],s,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],i,n,o,d,T,u,m,A,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],O,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"form-control",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],D,[1,"page-item"],P,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],[1,"text-primary"],[1,"badge","badge-success"],[1,"badge","badge-danger"]]},template:function(i,n){1&i&&(e.YNc(0,h,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(d){return n.toggle(d)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(d){return n.deviceNamesSelectedStr=d}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,b,55,5,"div",7),e.qZA()),2&i&&(e.Q6J("ngIf",n.visible),e.xp6(3),e.Q6J("ngModel",n.deviceNamesSelectedStr),e.xp6(4),e.Q6J("ngIf",n.visible))},directives:[r.O5,S.Fj,S.JJ,S.On,r.sg,S.EJ,S.YN,S.Kr,r.RF,r.n9,r.ED],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),t})()},6322:(I,f,c)=>{c.d(f,{o:()=>M});var e=c(476),v=c(8583),r=c(3092),S=c(2822);function h(C,p){if(1&C){const _=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(E){return e.CHM(_),e.oxw().close(E)}),e.qZA()}}let M=(()=>{class C{constructor(){this.selectedProfilesStr="",this._selectedProfiles=[],this.deviceProfileSelectedEvent=new e.vpe,this.singleProfileSelectedObject={},this.singleProfileSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this._singleProfileSelected=""}get selectedProfiles(){return this._selectedProfiles}set selectedProfiles(_){_.forEach((l,E)=>{_[E]=l.trim()}),this._selectedProfiles=_,this.selectedProfilesStr=this._selectedProfiles.join(",")}get singleProfileSelected(){return this._singleProfileSelected}set singleProfileSelected(_){this._singleProfileSelected=_?_.trim():"",this.selectedProfilesStr=this._singleProfileSelected,this.singleProfileSelectedObject={name:this._singleProfileSelected}}ngOnInit(){}onMultipleProfileSelectedEvent(_){this.selectedProfiles=_,this.selectedProfilesStr=this.selectedProfiles.join(","),this.deviceProfileSelectedEvent.emit(this.selectedProfiles)}onSingleProfileSelectedEvent(_){this.singleProfileSelected=_?_.name:"",this.selectedProfilesStr=this.singleProfileSelected,this.singleProfileSelectedChange.emit(this.singleProfileSelected)}close(_){this.visible=!1}toggle(_){_.stopPropagation(),this.visible=!this.visible}}return C.\u0275fac=function(_){return new(_||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["app-device-profile-combo-list"]],inputs:{selectedProfiles:"selectedProfiles",singleProfileSelected:"singleProfileSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceProfileSelectedEvent:"deviceProfileSelectedEvent",singleProfileSelectedChange:"singleProfileSelectedChange"},decls:9,vars:9,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","selectedProfiles","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],[1,"combo-body","shadow","rounded"],[3,"toolbars","associatedDeviceColumn","enableSelectAll","multiProfilesSelected","singleProfileSelected","multipleProfileSelectedEvent","singleProfileSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(_,l){1&_&&(e.YNc(0,h,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(g){return l.toggle(g)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(g){return l.selectedProfilesStr=g}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",7),e.TgZ(8,"app-device-profile-list",8),e.NdJ("multipleProfileSelectedEvent",function(g){return l.onMultipleProfileSelectedEvent(g)})("singleProfileSelectedEvent",function(g){return l.onSingleProfileSelectedEvent(g)}),e.qZA(),e.qZA(),e.qZA()),2&_&&(e.Q6J("ngIf",l.visible),e.xp6(3),e.Q6J("ngModel",l.selectedProfilesStr),e.xp6(4),e.Udp("display",l.visible?"":"none"),e.xp6(1),e.Q6J("toolbars",!1)("associatedDeviceColumn",!1)("enableSelectAll",!l.singleSelectionMode)("multiProfilesSelected",l.selectedProfiles)("singleProfileSelected",l.singleProfileSelectedObject))},directives:[v.O5,r.Fj,r.JJ,r.On,S.f],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),C})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/827.4e2251bfaee2216adb91.js b/cmd/edgex-ui-server/static/web/en-US/827.4e2251bfaee2216adb91.js deleted file mode 100644 index f75c1069..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/827.4e2251bfaee2216adb91.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[827],{9827:(ee,ue,W)=>{W.d(ue,{Z:()=>Ge});const R=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],$={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:i=>"undefined"!=typeof console&&console.warn(i),getWeek:i=>{const o=new Date(i.getTime());o.setHours(0,0,0,0),o.setDate(o.getDate()+3-(o.getDay()+6)%7);var e=new Date(o.getFullYear(),0,4);return 1+Math.round(((o.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},me={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:i=>{const o=i%100;if(o>3&&o<21)return"th";switch(o%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},ge=me,x=(i,o=2)=>`000${i}`.slice(-1*o),I=i=>!0===i?1:0;function _e(i,o){let e;return function(){clearTimeout(e),e=setTimeout(()=>i.apply(this,arguments),o)}}const pe=i=>i instanceof Array?i:[i];function v(i,o,e){if(!0===e)return i.classList.add(o);i.classList.remove(o)}function m(i,o,e){const p=window.document.createElement(i);return e=e||"",p.className=o=o||"",void 0!==e&&(p.textContent=e),p}function te(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Fe(i,o){return o(i)?i:i.parentNode?Fe(i.parentNode,o):void 0}function ne(i,o){const e=m("div","numInputWrapper"),p=m("input","numInput "+i),g=m("span","arrowUp"),w=m("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?p.type="number":(p.type="text",p.pattern="\\d*"),void 0!==o)for(const E in o)p.setAttribute(E,o[E]);return e.appendChild(p),e.appendChild(g),e.appendChild(w),e}function k(i){try{return"function"==typeof i.composedPath?i.composedPath()[0]:i.target}catch(o){return i.target}}const he=()=>{},ie=(i,o,e)=>e.months[o?"shorthand":"longhand"][i],Je={D:he,F:function(i,o,e){i.setMonth(e.months.longhand.indexOf(o))},G:(i,o)=>{i.setHours(parseFloat(o))},H:(i,o)=>{i.setHours(parseFloat(o))},J:(i,o)=>{i.setDate(parseFloat(o))},K:(i,o,e)=>{i.setHours(i.getHours()%12+12*I(new RegExp(e.amPM[1],"i").test(o)))},M:function(i,o,e){i.setMonth(e.months.shorthand.indexOf(o))},S:(i,o)=>{i.setSeconds(parseFloat(o))},U:(i,o)=>new Date(1e3*parseFloat(o)),W:function(i,o,e){const p=parseInt(o),g=new Date(i.getFullYear(),0,2+7*(p-1),0,0,0,0);return g.setDate(g.getDate()-g.getDay()+e.firstDayOfWeek),g},Y:(i,o)=>{i.setFullYear(parseFloat(o))},Z:(i,o)=>new Date(o),d:(i,o)=>{i.setDate(parseFloat(o))},h:(i,o)=>{i.setHours(parseFloat(o))},i:(i,o)=>{i.setMinutes(parseFloat(o))},j:(i,o)=>{i.setDate(parseFloat(o))},l:he,m:(i,o)=>{i.setMonth(parseFloat(o)-1)},n:(i,o)=>{i.setMonth(parseFloat(o)-1)},s:(i,o)=>{i.setSeconds(parseFloat(o))},u:(i,o)=>new Date(parseFloat(o)),w:he,y:(i,o)=>{i.setFullYear(2e3+parseFloat(o))}},De={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},q={Z:i=>i.toISOString(),D:function(i,o,e){return o.weekdays.shorthand[q.w(i,o,e)]},F:function(i,o,e){return ie(q.n(i,o,e)-1,!1,o)},G:function(i,o,e){return x(q.h(i,o,e))},H:i=>x(i.getHours()),J:function(i,o){return void 0!==o.ordinal?i.getDate()+o.ordinal(i.getDate()):i.getDate()},K:(i,o)=>o.amPM[I(i.getHours()>11)],M:function(i,o){return ie(i.getMonth(),!0,o)},S:i=>x(i.getSeconds()),U:i=>i.getTime()/1e3,W:function(i,o,e){return e.getWeek(i)},Y:i=>x(i.getFullYear(),4),d:i=>x(i.getDate()),h:i=>i.getHours()%12?i.getHours()%12:12,i:i=>x(i.getMinutes()),j:i=>i.getDate(),l:function(i,o){return o.weekdays.longhand[i.getDay()]},m:i=>x(i.getMonth()+1),n:i=>i.getMonth()+1,s:i=>i.getSeconds(),u:i=>i.getTime(),w:i=>i.getDay(),y:i=>String(i.getFullYear()).substring(2)},Ne=({config:i=$,l10n:o=me,isMobile:e=!1})=>(p,g,w)=>{const E=w||o;return void 0===i.formatDate||e?g.split("").map((D,z,_)=>q[D]&&"\\"!==_[z-1]?q[D](p,E,i):"\\"!==D?D:"").join(""):i.formatDate(p,g,E)},be=({config:i=$,l10n:o=me})=>(e,p,g,w)=>{if(0!==e&&!e)return;const E=w||o;let D;const z=e;if(e instanceof Date)D=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)D=new Date(e);else if("string"==typeof e){const _=p||(i||$).dateFormat,F=String(e).trim();if("today"===F)D=new Date,g=!0;else if(/Z$/.test(F)||/GMT$/.test(F))D=new Date(e);else if(i&&i.parseDate)D=i.parseDate(e,_);else{D=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);let P,K=[];for(let J=0,h=0,Y="";J<_.length;J++){const H=_[J],j="\\"===H,Me="\\"===_[J-1]||j;if(De[H]&&!Me){Y+=De[H];const N=new RegExp(Y).exec(e);N&&(P=!0)&&K["Y"!==H?"push":"unshift"]({fn:Je[H],val:N[++h]})}else j||(Y+=".");K.forEach(({fn:N,val:Ce})=>D=N(D,Ce,E)||D)}D=P?D:void 0}}if(D instanceof Date&&!isNaN(D.getTime()))return!0===g&&D.setHours(0,0,0,0),D;i.errorHandler(new Error(`Invalid date provided: ${z}`))};function T(i,o,e=!0){return!1!==e?new Date(i.getTime()).setHours(0,0,0,0)-new Date(o.getTime()).setHours(0,0,0,0):i.getTime()-o.getTime()}const Ue=(i,o,e)=>i>Math.min(o,e)&&i=0?new Date:new Date(e.config.minDate.getTime()),r=we(e.config);a.setHours(r.hours,r.minutes,r.seconds,a.getMilliseconds()),e.selectedDates=[a],e.latestSelectedDateObj=a}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();const n="keydown"===t.type,a=k(t),r=a;void 0!==e.amPM&&a===e.amPM&&(e.amPM.textContent=e.l10n.amPM[I(e.amPM.textContent===e.l10n.amPM[0])]);const l=parseFloat(r.getAttribute("min")),s=parseFloat(r.getAttribute("max")),d=parseFloat(r.getAttribute("step")),c=parseInt(r.value,10);let u=c+d*(t.delta||(n?38===t.which?1:-1:0));if(void 0!==r.value&&2===r.value.length){const b=r===e.hourElement,S=r===e.minuteElement;us&&(u=r===e.hourElement?u-s-I(!e.amPM):l,S&&N(void 0,1,e.hourElement)),e.amPM&&b&&(1===d?u+c===23:Math.abs(u-c)>d)&&(e.amPM.textContent=e.l10n.amPM[I(e.amPM.textContent===e.l10n.amPM[0])]),r.value=x(u)}}(t);const n=e._input.value;F(),A(),e._input.value!==n&&e._debouncedChange()}function F(){if(void 0===e.hourElement||void 0===e.minuteElement)return;let t=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,n=(parseInt(e.minuteElement.value,10)||0)%60,a=void 0!==e.secondElement?(parseInt(e.secondElement.value,10)||0)%60:0;void 0!==e.amPM&&(t=function(t,n){return t%12+12*I(n===e.l10n.amPM[1])}(t,e.amPM.textContent));const r=void 0!==e.config.minTime||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&0===T(e.latestSelectedDateObj,e.config.minDate,!0);if(void 0!==e.config.maxTime||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&0===T(e.latestSelectedDateObj,e.config.maxDate,!0)){const s=void 0!==e.config.maxTime?e.config.maxTime:e.config.maxDate;t=Math.min(t,s.getHours()),t===s.getHours()&&(n=Math.min(n,s.getMinutes())),n===s.getMinutes()&&(a=Math.min(a,s.getSeconds()))}if(r){const s=void 0!==e.config.minTime?e.config.minTime:e.config.minDate;t=Math.max(t,s.getHours()),t===s.getHours()&&n=12)]),void 0!==e.secondElement&&(e.secondElement.value=x(a)))}function J(t){const n=k(t),a=parseInt(n.value)+(t.delta||0);(a/1e3>1||"Enter"===t.key&&!/[^\d]/.test(a.toString()))&&re(a)}function h(t,n,a,r){return n instanceof Array?n.forEach(l=>h(t,l,a,r)):t instanceof Array?t.forEach(l=>h(l,n,a,r)):(t.addEventListener(n,a,r),void e._handlers.push({remove:()=>t.removeEventListener(n,a)}))}function Y(){M("onChange")}function j(t,n){const a=void 0!==t?e.parseDate(t):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate=0&&T(t,e.selectedDates[1])<=0}(n)&&!Se(n)&&s.classList.add("inRange"),e.weekNumbers&&1===e.config.showMonths&&"prevMonthDay"!==t&&a%7==1&&e.weekNumbers.insertAdjacentHTML("beforeend",""+e.config.getWeek(n)+""),M("onDayCreate",s),s}function ve(t){t.focus(),"range"===e.config.mode&&ke(t)}function ae(t){const a=t>0?e.config.showMonths:-1;for(let r=t>0?0:e.config.showMonths-1;r!=a;r+=t){const l=e.daysContainer.children[r],d=t>0?l.children.length:-1;for(let c=t>0?0:l.children.length-1;c!=d;c+=t){const f=l.children[c];if(-1===f.className.indexOf("hidden")&&L(f.dateObj))return f}}}function G(t,n){const a=se(document.activeElement||document.body),r=void 0!==t?t:a?document.activeElement:void 0!==e.selectedDateElem&&se(e.selectedDateElem)?e.selectedDateElem:void 0!==e.todayDateElem&&se(e.todayDateElem)?e.todayDateElem:ae(n>0?1:-1);void 0===r?e._input.focus():a?function(t,n){const a=-1===t.className.indexOf("Month")?t.dateObj.getMonth():e.currentMonth,r=n>0?e.config.showMonths:-1,l=n>0?1:-1;for(let s=a-e.currentMonth;s!=r;s+=l){const d=e.daysContainer.children[s],f=d.children.length;for(let u=a-e.currentMonth===s?t.$i+n:n<0?d.children.length-1:0;u>=0&&u0?f:-1);u+=l){const b=d.children[u];if(-1===b.className.indexOf("hidden")&&L(b.dateObj)&&Math.abs(t.$i-u)>=Math.abs(n))return ve(b)}}e.changeMonth(l),G(ae(l),0)}(r,n):ve(r)}function Qe(t,n){const a=(new Date(t,n,1).getDay()-e.l10n.firstDayOfWeek+7)%7,r=e.utils.getDaysInMonth((n-1+12)%12,t),l=e.utils.getDaysInMonth(n,t),s=window.document.createDocumentFragment(),d=e.config.showMonths>1,c=d?"prevMonthDay hidden":"prevMonthDay",f=d?"nextMonthDay hidden":"nextMonthDay";let u=r+1-a,b=0;for(;u<=r;u++,b++)s.appendChild(ye(c,new Date(t,n-1,u),u,b));for(u=1;u<=l;u++,b++)s.appendChild(ye("",new Date(t,n,u),u,b));for(let y=l+1;y<=42-a&&(1===e.config.showMonths||b%7!=0);y++,b++)s.appendChild(ye(f,new Date(t,n+1,y%l),y,b));const S=m("div","dayContainer");return S.appendChild(s),S}function oe(){if(void 0===e.daysContainer)return;te(e.daysContainer),e.weekNumbers&&te(e.weekNumbers);const t=document.createDocumentFragment();for(let n=0;n1||"dropdown"!==e.config.monthSelectorType)return;const t=function(n){return!(void 0!==e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&ne.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(let n=0;n<12;n++){if(!t(n))continue;const a=m("option","flatpickr-monthDropdown-month");a.value=new Date(e.currentYear,n).getMonth().toString(),a.textContent=ie(n,e.config.shorthandCurrentMonth,e.l10n),a.tabIndex=-1,e.currentMonth===n&&(a.selected=!0),e.monthsDropdownContainer.appendChild(a)}}function Xe(){const t=m("div","flatpickr-month"),n=window.document.createDocumentFragment();let a;e.config.showMonths>1||"static"===e.config.monthSelectorType?a=m("span","cur-month"):(e.monthsDropdownContainer=m("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),h(e.monthsDropdownContainer,"change",d=>{const c=k(d),f=parseInt(c.value,10);e.changeMonth(f-e.currentMonth),M("onMonthChange")}),U(),a=e.monthsDropdownContainer);const r=ne("cur-year",{tabindex:"-1"}),l=r.getElementsByTagName("input")[0];l.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&l.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(l.setAttribute("max",e.config.maxDate.getFullYear().toString()),l.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());const s=m("div","flatpickr-current-month");return s.appendChild(a),s.appendChild(r),n.appendChild(s),t.appendChild(n),{container:t,yearElement:l,monthElement:a}}function Ae(){te(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(let t=e.config.showMonths;t--;){const n=Xe();e.yearElements.push(n.yearElement),e.monthElements.push(n.monthElement),e.monthNav.appendChild(n.container)}e.monthNav.appendChild(e.nextMonthNav)}function Pe(){e.weekdayContainer?te(e.weekdayContainer):e.weekdayContainer=m("div","flatpickr-weekdays");for(let t=e.config.showMonths;t--;){const n=m("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(n)}return Ye(),e.weekdayContainer}function Ye(){if(!e.weekdayContainer)return;const t=e.l10n.firstDayOfWeek;let n=[...e.l10n.weekdays.shorthand];t>0&&t\n ${n.join("")}\n \n `}function xe(t,n=!0){const a=n?t:t-e.currentMonth;a<0&&!0===e._hidePrevMonthArrow||a>0&&!0===e._hideNextMonthArrow||(e.currentMonth+=a,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,M("onYearChange"),U()),oe(),M("onMonthChange"),de())}function V(t){return!(!e.config.appendTo||!e.config.appendTo.contains(t))||e.calendarContainer.contains(t)}function Ee(t){if(e.isOpen&&!e.config.inline){const n=k(t),a=V(n),r=n===e.input||n===e.altInput||e.element.contains(n)||t.path&&t.path.indexOf&&(~t.path.indexOf(e.input)||~t.path.indexOf(e.altInput)),l="blur"===t.type?r&&t.relatedTarget&&!V(t.relatedTarget):!r&&!a&&!V(t.relatedTarget),s=!e.config.ignoredFocusElements.some(d=>d.contains(n));l&&s&&(void 0!==e.timeContainer&&void 0!==e.minuteElement&&void 0!==e.hourElement&&""!==e.input.value&&void 0!==e.input.value&&D(),e.close(),e.config&&"range"===e.config.mode&&1===e.selectedDates.length&&(e.clear(!1),e.redraw()))}}function re(t){if(!t||e.config.minDate&&te.config.maxDate.getFullYear())return;const a=e.currentYear!==t;e.currentYear=t||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),a&&(e.redraw(),M("onYearChange"),U())}function L(t,n=!0){var a;const r=e.parseDate(t,void 0,n);if(e.config.minDate&&r&&T(r,e.config.minDate,void 0!==n?n:!e.minDateHasTime)<0||e.config.maxDate&&r&&T(r,e.config.maxDate,void 0!==n?n:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&0===e.config.disable.length)return!0;if(void 0===r)return!1;const l=!!e.config.enable,s=null!==(a=e.config.enable)&&void 0!==a?a:e.config.disable;for(let c,d=0;d=c.from.getTime()&&r.getTime()<=c.to.getTime())return l}return!l}function se(t){return void 0!==e.daysContainer&&-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&e.daysContainer.contains(t)}function rt(t){t.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&(!t.relatedTarget||!V(t.relatedTarget))&&e.setDate(e._input.value,!0,t.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function st(t){const n=k(t),a=e.config.wrap?i.contains(n):n===e._input,r=e.config.allowInput,l=e.isOpen&&(!r||!a),s=e.config.inline&&a&&!r;if(13===t.keyCode&&a){if(r)return e.setDate(e._input.value,!0,n===e.altInput?e.config.altFormat:e.config.dateFormat),n.blur();e.open()}else if(V(n)||l||s){const d=!!e.timeContainer&&e.timeContainer.contains(n);switch(t.keyCode){case 13:d?(t.preventDefault(),D(),Te()):Re(t);break;case 27:t.preventDefault(),Te();break;case 8:case 46:a&&!e.config.allowInput&&(t.preventDefault(),e.clear());break;case 37:case 39:if(d||a)e.hourElement&&e.hourElement.focus();else if(t.preventDefault(),void 0!==e.daysContainer&&(!1===r||document.activeElement&&se(document.activeElement))){const f=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),xe(f),G(ae(1),0)):G(void 0,f)}break;case 38:case 40:t.preventDefault();const c=40===t.keyCode?1:-1;e.daysContainer&&void 0!==n.$i||n===e.input||n===e.altInput?t.ctrlKey?(t.stopPropagation(),re(e.currentYear-c),G(ae(1),0)):d||G(void 0,7*c):n===e.currentYearElement?re(e.currentYear-c):e.config.enableTime&&(!d&&e.hourElement&&e.hourElement.focus(),D(t),e._debouncedChange());break;case 9:if(d){const f=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(b=>b),u=f.indexOf(n);if(-1!==u){const b=f[u+(t.shiftKey?-1:1)];t.preventDefault(),(b||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(n)&&t.shiftKey&&(t.preventDefault(),e._input.focus())}}if(void 0!==e.amPM&&n===e.amPM)switch(t.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],F(),A();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],F(),A()}(a||V(n))&&M("onKeyDown",t)}function ke(t){if(1!==e.selectedDates.length||t&&(!t.classList.contains("flatpickr-day")||t.classList.contains("flatpickr-disabled")))return;const n=t?t.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),a=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),r=Math.min(n,e.selectedDates[0].getTime()),l=Math.max(n,e.selectedDates[0].getTime());let s=!1,d=0,c=0;for(let f=r;fr&&fd)?d=f:f>a&&(!c||f0&&O0&&O>c;Z?(y.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(Q=>{y.classList.remove(Q)})):s&&!Z||(["startRange","inRange","endRange","notAllowed"].forEach(Q=>{y.classList.remove(Q)}),void 0!==t&&(t.classList.add(n<=e.selectedDates[0].getTime()?"startRange":"endRange"),an&&O===a&&y.classList.add("endRange"),O>=d&&(0===c||O<=c)&&Ue(O,a,n)&&y.classList.add("inRange")))}}}function lt(){e.isOpen&&!e.config.static&&!e.config.inline&&le()}function He(t){return n=>{const a=e.config[`_${t}Date`]=e.parseDate(n,e.config.dateFormat),r=e.config[`_${"min"===t?"max":"min"}Date`];void 0!==a&&(e["min"===t?"minDateHasTime":"maxDateHasTime"]=a.getHours()>0||a.getMinutes()>0||a.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(l=>L(l)),!e.selectedDates.length&&"min"===t&&P(a),A()),e.daysContainer&&(We(),void 0!==a?e.currentYearElement[t]=a.getFullYear().toString():e.currentYearElement.removeAttribute(t),e.currentYearElement.disabled=!!r&&void 0!==a&&r.getFullYear()===a.getFullYear())}}function je(){return e.config.wrap?i.querySelector("[data-input]"):i}function Le(){"object"!=typeof e.config.locale&&void 0===C.l10ns[e.config.locale]&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},C.l10ns.default),"object"==typeof e.config.locale?e.config.locale:"default"!==e.config.locale?C.l10ns[e.config.locale]:void 0),De.K=`(${e.l10n.amPM[0]}|${e.l10n.amPM[1]}|${e.l10n.amPM[0].toLowerCase()}|${e.l10n.amPM[1].toLowerCase()})`,void 0===Object.assign(Object.assign({},o),JSON.parse(JSON.stringify(i.dataset||{}))).time_24hr&&void 0===C.defaultConfig.time_24hr&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Ne(e),e.parseDate=be({config:e.config,l10n:e.l10n})}function le(t){if("function"==typeof e.config.position)return void e.config.position(e,t);if(void 0===e.calendarContainer)return;M("onPreCalendarPosition");const n=t||e._positionElement,a=Array.prototype.reduce.call(e.calendarContainer.children,(X,Oe)=>X+Oe.offsetHeight,0),r=e.calendarContainer.offsetWidth,l=e.config.position.split(" "),s=l[0],d=l.length>1?l[1]:null,c=n.getBoundingClientRect(),f=window.innerHeight-c.bottom,u="above"===s||"below"!==s&&fa,b=window.pageYOffset+c.top+(u?-a-2:n.offsetHeight+2);if(v(e.calendarContainer,"arrowTop",!u),v(e.calendarContainer,"arrowBottom",u),e.config.inline)return;let S=window.pageXOffset+c.left,y=!1,fe=!1;"center"===d?(S-=(r-c.width)/2,y=!0):"right"===d&&(S-=r-c.width,fe=!0),v(e.calendarContainer,"arrowLeft",!y&&!fe),v(e.calendarContainer,"arrowCenter",y),v(e.calendarContainer,"arrowRight",fe);const O=window.document.body.offsetWidth-(window.pageXOffset+c.right),Z=S+r>window.document.body.offsetWidth,Q=O+r>window.document.body.offsetWidth;if(v(e.calendarContainer,"rightMost",Z),!e.config.static)if(e.calendarContainer.style.top=`${b}px`,Z)if(Q){const X=function(){let t=null;for(let n=0;nd.classList&&d.classList.contains("flatpickr-day")&&!d.classList.contains("flatpickr-disabled")&&!d.classList.contains("notAllowed"));if(void 0===a)return;const r=a,l=e.latestSelectedDateObj=new Date(r.dateObj.getTime()),s=(l.getMonth()e.currentMonth+e.config.showMonths-1)&&"range"!==e.config.mode;if(e.selectedDateElem=r,"single"===e.config.mode)e.selectedDates=[l];else if("multiple"===e.config.mode){const d=Se(l);d?e.selectedDates.splice(parseInt(d),1):e.selectedDates.push(l)}else"range"===e.config.mode&&(2===e.selectedDates.length&&e.clear(!1,!1),e.latestSelectedDateObj=l,e.selectedDates.push(l),0!==T(l,e.selectedDates[0],!0)&&e.selectedDates.sort((d,c)=>d.getTime()-c.getTime()));if(F(),s){const d=e.currentYear!==l.getFullYear();e.currentYear=l.getFullYear(),e.currentMonth=l.getMonth(),d&&(M("onYearChange"),U()),M("onMonthChange")}if(de(),oe(),A(),s||"range"===e.config.mode||1!==e.config.showMonths?void 0!==e.selectedDateElem&&void 0===e.hourElement&&e.selectedDateElem&&e.selectedDateElem.focus():ve(r),void 0!==e.hourElement&&void 0!==e.hourElement&&e.hourElement.focus(),e.config.closeOnSelect){const c="range"===e.config.mode&&2===e.selectedDates.length&&!e.config.enableTime;("single"===e.config.mode&&!e.config.enableTime||c)&&Te()}Y()}e.parseDate=be({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=h,e._setHoursFromDate=P,e._positionCalendar=le,e.changeMonth=xe,e.changeYear=re,e.clear=function(t=!0,n=!0){if(e.input.value="",void 0!==e.altInput&&(e.altInput.value=""),void 0!==e.mobileInput&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,!0===n&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),!0===e.config.enableTime){const{hours:a,minutes:r,seconds:l}=we(e.config);K(a,r,l)}e.redraw(),t&&M("onChange")},e.close=function(){e.isOpen=!1,e.isMobile||(void 0!==e.calendarContainer&&e.calendarContainer.classList.remove("open"),void 0!==e._input&&e._input.classList.remove("active")),M("onClose")},e._createElement=m,e.destroy=function(){void 0!==e.config&&M("onDestroy");for(let t=e._handlers.length;t--;)e._handlers[t].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){const t=e.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(t=>{try{delete e[t]}catch(n){}})},e.isEnabled=L,e.jumpToDate=j,e.open=function(t,n=e._positionElement){if(!0===e.isMobile){if(t){t.preventDefault();const r=k(t);r&&r.blur()}return void 0!==e.mobileInput&&(e.mobileInput.focus(),e.mobileInput.click()),void M("onOpen")}if(e._input.disabled||e.config.inline)return;const a=e.isOpen;e.isOpen=!0,a||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),M("onOpen"),le(n)),!0===e.config.enableTime&&!0===e.config.noCalendar&&!1===e.config.allowInput&&(void 0===t||!e.timeContainer.contains(t.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)},e.redraw=We,e.set=function(t,n){if(null!==t&&"object"==typeof t){Object.assign(e.config,t);for(const a in t)void 0!==ce[a]&&ce[a].forEach(r=>r())}else e.config[t]=n,void 0!==ce[t]?ce[t].forEach(a=>a()):R.indexOf(t)>-1&&(e.config[t]=pe(n));e.redraw(),A(!0)},e.setDate=function(t,n=!1,a=e.config.dateFormat){if(0!==t&&!t||t instanceof Array&&0===t.length)return e.clear(n);$e(t,a),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),j(void 0,n),P(),0===e.selectedDates.length&&e.clear(!1),A(n),n&&M("onChange")},e.toggle=function(t){if(!0===e.isOpen)return e.close();e.open(t)};const ce={locale:[Le,Ye],showMonths:[Ae,E,Pe],minDate:[j],maxDate:[j],clickOpens:[()=>{!0===e.config.clickOpens?(h(e._input,"focus",e.open),h(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function $e(t,n){let a=[];if(t instanceof Array)a=t.map(r=>e.parseDate(r,n));else if(t instanceof Date||"number"==typeof t)a=[e.parseDate(t,n)];else if("string"==typeof t)switch(e.config.mode){case"single":case"time":a=[e.parseDate(t,n)];break;case"multiple":a=t.split(e.config.conjunction).map(r=>e.parseDate(r,n));break;case"range":a=t.split(e.l10n.rangeSeparator).map(r=>e.parseDate(r,n))}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(t)}`));e.selectedDates=e.config.allowInvalidPreload?a:a.filter(r=>r instanceof Date&&L(r,!1)),"range"===e.config.mode&&e.selectedDates.sort((r,l)=>r.getTime()-l.getTime())}function Be(t){return t.slice().map(n=>"string"==typeof n||"number"==typeof n||n instanceof Date?e.parseDate(n,void 0,!0):n&&"object"==typeof n&&n.from&&n.to?{from:e.parseDate(n.from,void 0),to:e.parseDate(n.to,void 0)}:n).filter(n=>n)}function M(t,n){if(void 0===e.config)return;const a=e.config[t];if(void 0!==a&&a.length>0)for(let r=0;a[r]&&r{const a=new Date(e.currentYear,e.currentMonth,1);a.setMonth(e.currentMonth+n),e.config.showMonths>1||"static"===e.config.monthSelectorType?e.monthElements[n].textContent=ie(a.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=a.getMonth().toString(),t.value=a.getFullYear().toString()}),e._hidePrevMonthArrow=void 0!==e.config.minDate&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYeare.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function Ke(t){return e.selectedDates.map(n=>e.formatDate(n,t)).filter((n,a,r)=>"range"!==e.config.mode||e.config.enableTime||r.indexOf(n)===a).join("range"!==e.config.mode?e.config.conjunction:e.l10n.rangeSeparator)}function A(t=!0){void 0!==e.mobileInput&&e.mobileFormatStr&&(e.mobileInput.value=void 0!==e.latestSelectedDateObj?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=Ke(e.config.dateFormat),void 0!==e.altInput&&(e.altInput.value=Ke(e.config.altFormat)),!1!==t&&M("onValueUpdate")}function Mt(t){const n=k(t),a=e.prevMonthNav.contains(n),r=e.nextMonthNav.contains(n);a||r?xe(a?-1:1):e.yearElements.indexOf(n)>=0?n.select():n.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):n.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}return function(){e.element=e.input=i,e.isOpen=!1,function(){const t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],n=Object.assign(Object.assign({},JSON.parse(JSON.stringify(i.dataset||{}))),o),a={};e.config.parseDate=n.parseDate,e.config.formatDate=n.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:s=>{e.config._enable=Be(s)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:s=>{e.config._disable=Be(s)}});const r="time"===n.mode;if(!n.dateFormat&&(n.enableTime||r)){const s=C.defaultConfig.dateFormat||$.dateFormat;a.dateFormat=n.noCalendar||r?"H:i"+(n.enableSeconds?":S":""):s+" H:i"+(n.enableSeconds?":S":"")}if(n.altInput&&(n.enableTime||r)&&!n.altFormat){const s=C.defaultConfig.altFormat||$.altFormat;a.altFormat=n.noCalendar||r?"h:i"+(n.enableSeconds?":S K":" K"):s+` h:i${n.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:He("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:He("max")});const l=s=>d=>{e.config["min"===s?"_minTime":"_maxTime"]=e.parseDate(d,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:l("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:l("max")}),"time"===n.mode&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,a,n);for(let s=0;svoid 0!==e.config[s]).forEach(s=>{e.config[s]=pe(e.config[s]||[]).map(w)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&"single"===e.config.mode&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let s=0;s-1?e.config[c]=pe(d[c]).map(w).concat(e.config[c]):void 0===n[c]&&(e.config[c]=d[c])}n.altInputClass||(e.config.altInputClass=je().className+" "+e.config.altInputClass),M("onParseConfig")}(),Le(),e.input=je(),e.input?(e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=m(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),e._positionElement=e.config.positionElement||e._input):e.config.errorHandler(new Error("Invalid input element specified")),function(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const t=e.config.defaultDate||("INPUT"!==e.input.nodeName&&"TEXTAREA"!==e.input.nodeName||!e.input.placeholder||e.input.value!==e.input.placeholder?e.input.value:null);t&&$e(t,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()0&&(e.latestSelectedDateObj=e.selectedDates[0]),void 0!==e.config.minTime&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),void 0!==e.config.maxTime&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}(),e.utils={getDaysInMonth:(t=e.currentMonth,n=e.currentYear)=>1===t&&(n%4==0&&n%100!=0||n%400==0)?29:e.l10n.daysInMonth[t]},e.isMobile||function(){const t=window.document.createDocumentFragment();if(e.calendarContainer=m("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(t.appendChild((e.monthNav=m("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=m("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=m("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,Ae(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:()=>e.__hidePrevMonthArrow,set(t){e.__hidePrevMonthArrow!==t&&(v(e.prevMonthNav,"flatpickr-disabled",t),e.__hidePrevMonthArrow=t)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:()=>e.__hideNextMonthArrow,set(t){e.__hideNextMonthArrow!==t&&(v(e.nextMonthNav,"flatpickr-disabled",t),e.__hideNextMonthArrow=t)}}),e.currentYearElement=e.yearElements[0],de(),e.monthNav)),e.innerContainer=m("div","flatpickr-innerContainer"),e.config.weekNumbers){const{weekWrapper:a,weekNumbers:r}=function(){e.calendarContainer.classList.add("hasWeeks");const t=m("div","flatpickr-weekwrapper");t.appendChild(m("span","flatpickr-weekday",e.l10n.weekAbbreviation));const n=m("div","flatpickr-weeks");return t.appendChild(n),{weekWrapper:t,weekNumbers:n}}();e.innerContainer.appendChild(a),e.weekNumbers=r,e.weekWrapper=a}e.rContainer=m("div","flatpickr-rContainer"),e.rContainer.appendChild(Pe()),e.daysContainer||(e.daysContainer=m("div","flatpickr-days"),e.daysContainer.tabIndex=-1),oe(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),t.appendChild(e.innerContainer)}e.config.enableTime&&t.appendChild(function(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");const t=we(e.config);e.timeContainer=m("div","flatpickr-time"),e.timeContainer.tabIndex=-1;const n=m("span","flatpickr-time-separator",":"),a=ne("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=a.getElementsByTagName("input")[0];const r=ne("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=r.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=x(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),e.minuteElement.value=x(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():t.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(a),e.timeContainer.appendChild(n),e.timeContainer.appendChild(r),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");const l=ne("flatpickr-second");e.secondElement=l.getElementsByTagName("input")[0],e.secondElement.value=x(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():t.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(m("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(l)}return e.config.time_24hr||(e.amPM=m("span","flatpickr-am-pm",e.l10n.amPM[I((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}()),v(e.calendarContainer,"rangeMode","range"===e.config.mode),v(e.calendarContainer,"animate",!0===e.config.animate),v(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(t);const n=void 0!==e.config.appendTo&&void 0!==e.config.appendTo.nodeType;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!n&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):void 0!==e.config.appendTo&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){const a=m("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(a,e.element),a.appendChild(e.element),e.altInput&&a.appendChild(e.altInput),a.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(void 0!==e.config.appendTo?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}(),function(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(n=>{Array.prototype.forEach.call(e.element.querySelectorAll(`[data-${n}]`),a=>h(a,"click",e[n]))}),e.isMobile)return void function(){const t=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=m("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=t,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",void 0!==e.altInput&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch(n){}h(e.mobileInput,"change",n=>{e.setDate(k(n).value,!1,e.mobileFormatStr),M("onChange"),M("onClose")})}();const t=_e(lt,50);if(e._debouncedChange=_e(Y,300),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&h(e.daysContainer,"mouseover",n=>{"range"===e.config.mode&&ke(k(n))}),h(window.document.body,"keydown",st),!e.config.inline&&!e.config.static&&h(window,"resize",t),void 0!==window.ontouchstart?h(window.document,"touchstart",Ee):h(window.document,"mousedown",Ee),h(window.document,"focus",Ee,{capture:!0}),!0===e.config.clickOpens&&(h(e._input,"focus",e.open),h(e._input,"click",e.open)),void 0!==e.daysContainer&&(h(e.monthNav,"click",Mt),h(e.monthNav,["keyup","increment"],J),h(e.daysContainer,"click",Re)),void 0!==e.timeContainer&&void 0!==e.minuteElement&&void 0!==e.hourElement){const n=a=>k(a).select();h(e.timeContainer,["increment"],D),h(e.timeContainer,"blur",D,{capture:!0}),h(e.timeContainer,"click",Me),h([e.hourElement,e.minuteElement],["focus","click"],n),void 0!==e.secondElement&&h(e.secondElement,"focus",()=>e.secondElement&&e.secondElement.select()),void 0!==e.amPM&&h(e.amPM,"click",a=>{D(a),Y()})}e.config.allowInput&&h(e._input,"blur",rt)}(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&P(e.config.noCalendar?e.latestSelectedDateObj:void 0),A(!1)),E();const t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&t&&le(),M("onReady")}(),e}function B(i,o){const e=Array.prototype.slice.call(i).filter(g=>g instanceof HTMLElement),p=[];for(let g=0;g{C.l10ns.default=Object.assign(Object.assign({},C.l10ns.default),i)},C.setDefaults=i=>{C.defaultConfig=Object.assign(Object.assign({},C.defaultConfig),i)},C.parseDate=be({}),C.formatDate=Ne({}),C.compareDates=T,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(i){return B(this,i)}),Date.prototype.fp_incr=function(i){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof i?parseInt(i,10):i))},"undefined"!=typeof window&&(window.flatpickr=C);const Ge=C},9989:()=>{"function"!=typeof Object.assign&&(Object.assign=function(ee,...ue){if(!ee)throw TypeError("Cannot convert undefined or null to object");for(const W of ue)W&&Object.keys(W).forEach(R=>ee[R]=W[R]);return ee})}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/849.5f6112a144f036c16a05.js b/cmd/edgex-ui-server/static/web/en-US/849.5f6112a144f036c16a05.js deleted file mode 100644 index b8626511..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/849.5f6112a144f036c16a05.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[849],{8849:(O,u,n)=>{n.r(u),n.d(u,{DashboardModule:()=>b});var g=n(8583),r=n(9502),e=n(476),S=n(2468),v=n(2437),l=n(8391),C=n(9744),D=n(9386),h=n(3692);let E=(()=>{class i{constructor(_,t,s,a,A,c){this.dataService=_,this.metadataSvc=t,this.schedulerSvc=s,this.notiSvc=a,this.systemAgentSvc=A,this.registrySvc=c,this.eventCount=0,this.readingCount=0,this.deviceSvcCount=0,this.deviceSvcStatusLockedCount=0,this.deviceCount=0,this.deviceStatusLockedCount=0,this.deviceProfileCount=0,this.schedulerCount=0,this.notificationCount=0,this.registeredServiceCount=0}ngOnInit(){this.dataService.ping().subscribe(()=>{this.getEventAndReadingCount()}),this.metadataSvc.ping().subscribe(()=>{this.getDeviceServiceCount(),this.getDeviceCount(),this.getDeviceProfileCount()}),this.schedulerSvc.ping().subscribe(()=>{this.getIntervalCount()}),this.notiSvc.ping().subscribe(()=>{this.getNotificationCount()}),this.systemAgentSvc.ping().subscribe(()=>{this.registrySvc.ping().subscribe(()=>{this.getRegisteredServiceCount()})})}getEventAndReadingCount(){this.dataService.eventCount().subscribe(_=>this.eventCount=_.Count),this.dataService.readingCount().subscribe(_=>this.readingCount=_.Count)}getDeviceServiceCount(){this.metadataSvc.allDeviceServices().subscribe(_=>{this.deviceSvcCount=_.services.length,_.services.forEach((t,s)=>{"LOCKED"===t.adminState&&this.deviceSvcStatusLockedCount++})})}getDeviceCount(){this.metadataSvc.allDevices().subscribe(_=>{this.deviceCount=_.devices.length,_.devices.forEach((t,s)=>{"LOCKED"===t.adminState&&this.deviceStatusLockedCount++})})}getDeviceProfileCount(){this.metadataSvc.allDeviceProfolesPagination(0,-1).subscribe(_=>{this.deviceProfileCount=_.profiles.length})}getIntervalCount(){this.schedulerSvc.findAllIntervalsPagination(0,-1).subscribe(_=>{this.schedulerCount=_.intervals.length})}getNotificationCount(){this.notiSvc.findNotificationsByStatusPagination(0,-1,"NEW").subscribe(_=>{this.notificationCount=_.notifications.length})}getRegisteredServiceCount(){this.systemAgentSvc.getRegisteredServiceAll().subscribe(_=>{this.registeredServiceCount=_.length?_.length:0})}}return i.\u0275fac=function(_){return new(_||i)(e.Y36(S.D),e.Y36(v.D),e.Y36(l.G),e.Y36(C.T),e.Y36(D.J),e.Y36(h.r))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-dashboard"]],decls:67,vars:11,consts:function(){let o,_,t,s,a,A,c;return o=" Device Services ",_="Devices",t="Device Profiles",s="Schedulers",a="Notifications",A="Events",c="Readings",[[1,"row"],[1,"col-lg-4"],["role","button","routerLink","/metadata",1,"card"],[1,"card-body"],[1,"card-title"],o,[1,"d-inline"],[1,"badge","badge-info"],[1,"float-right","badge","badge-danger"],[1,"float-right","badge","badge-success","mr-2"],["role","button","routerLink","/metadata/device-center",1,"card"],_,["role","button","routerLink","/metadata/device-profile-center",1,"card"],t,[1,"row","mt-3"],[1,"col-lg-6"],["role","button","routerLink","/scheduler",1,"card"],s,["href","#",1,"card-link","font-weight-bolder","badge","badge-info"],["role","button","routerLink","/notifications",1,"card"],a,["role","button","routerLink","/core-data",1,"card"],A,c]},template:function(_,t){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"h5",4),e.SDv(5,5),e.qZA(),e.TgZ(6,"h5",6),e.TgZ(7,"span",7),e._uU(8),e.qZA(),e.TgZ(9,"span",8),e._uU(10),e.qZA(),e.TgZ(11,"span",9),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"div",10),e.TgZ(15,"div",3),e.TgZ(16,"h5",4),e.SDv(17,11),e.qZA(),e.TgZ(18,"h5",6),e.TgZ(19,"span",7),e._uU(20),e.qZA(),e.TgZ(21,"span",8),e._uU(22),e.qZA(),e.TgZ(23,"span",9),e._uU(24),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",1),e.TgZ(26,"div",12),e.TgZ(27,"div",3),e.TgZ(28,"h5",4),e.SDv(29,13),e.qZA(),e.TgZ(30,"h5",6),e.TgZ(31,"span",7),e._uU(32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"div",15),e.TgZ(35,"div",16),e.TgZ(36,"div",3),e.TgZ(37,"h5",4),e.SDv(38,17),e.qZA(),e.TgZ(39,"h5"),e.TgZ(40,"a",18),e._uU(41),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",15),e.TgZ(43,"div",19),e.TgZ(44,"div",3),e.TgZ(45,"h5",4),e.SDv(46,20),e.qZA(),e.TgZ(47,"h5"),e.TgZ(48,"a",18),e._uU(49),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"div",15),e.TgZ(52,"div",21),e.TgZ(53,"div",3),e.TgZ(54,"h5",4),e.SDv(55,22),e.qZA(),e.TgZ(56,"h5"),e.TgZ(57,"a",18),e._uU(58),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",15),e.TgZ(60,"div",21),e.TgZ(61,"div",3),e.TgZ(62,"h5",4),e.SDv(63,23),e.qZA(),e.TgZ(64,"h5"),e.TgZ(65,"a",18),e._uU(66),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.hij(" ",t.deviceSvcCount>100?"100+":t.deviceSvcCount," "),e.xp6(2),e.hij("Locked ",t.deviceSvcStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",t.deviceSvcCount-t.deviceSvcStatusLockedCount,""),e.xp6(8),e.hij(" ",t.deviceCount>100?"100+":t.deviceCount," "),e.xp6(2),e.hij("Locked ",t.deviceStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",t.deviceCount-t.deviceStatusLockedCount,""),e.xp6(8),e.Oqu(t.deviceProfileCount>100?"100+":t.deviceProfileCount),e.xp6(9),e.Oqu(t.schedulerCount>100?"100+":t.schedulerCount),e.xp6(8),e.Oqu(t.notificationCount>100?"100+":t.notificationCount),e.xp6(9),e.Oqu(t.eventCount),e.xp6(8),e.Oqu(t.readingCount))},directives:[r.rH],styles:[".shadow[_ngcontent-%COMP%]{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}.card[_ngcontent-%COMP%]:hover{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}"]}),i})();const T=[{path:"",canActivate:[n(8253).a],component:E}];let f=(()=>{class i{}return i.\u0275fac=function(_){return new(_||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[r.Bz.forChild(T)],r.Bz]}),i})(),b=(()=>{class i{}return i.\u0275fac=function(_){return new(_||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[g.ez,f]]}),i})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/849.788edd22071d3b7246e9.js b/cmd/edgex-ui-server/static/web/en-US/849.788edd22071d3b7246e9.js deleted file mode 100644 index b8626511..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/849.788edd22071d3b7246e9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[849],{8849:(O,u,n)=>{n.r(u),n.d(u,{DashboardModule:()=>b});var g=n(8583),r=n(9502),e=n(476),S=n(2468),v=n(2437),l=n(8391),C=n(9744),D=n(9386),h=n(3692);let E=(()=>{class i{constructor(_,t,s,a,A,c){this.dataService=_,this.metadataSvc=t,this.schedulerSvc=s,this.notiSvc=a,this.systemAgentSvc=A,this.registrySvc=c,this.eventCount=0,this.readingCount=0,this.deviceSvcCount=0,this.deviceSvcStatusLockedCount=0,this.deviceCount=0,this.deviceStatusLockedCount=0,this.deviceProfileCount=0,this.schedulerCount=0,this.notificationCount=0,this.registeredServiceCount=0}ngOnInit(){this.dataService.ping().subscribe(()=>{this.getEventAndReadingCount()}),this.metadataSvc.ping().subscribe(()=>{this.getDeviceServiceCount(),this.getDeviceCount(),this.getDeviceProfileCount()}),this.schedulerSvc.ping().subscribe(()=>{this.getIntervalCount()}),this.notiSvc.ping().subscribe(()=>{this.getNotificationCount()}),this.systemAgentSvc.ping().subscribe(()=>{this.registrySvc.ping().subscribe(()=>{this.getRegisteredServiceCount()})})}getEventAndReadingCount(){this.dataService.eventCount().subscribe(_=>this.eventCount=_.Count),this.dataService.readingCount().subscribe(_=>this.readingCount=_.Count)}getDeviceServiceCount(){this.metadataSvc.allDeviceServices().subscribe(_=>{this.deviceSvcCount=_.services.length,_.services.forEach((t,s)=>{"LOCKED"===t.adminState&&this.deviceSvcStatusLockedCount++})})}getDeviceCount(){this.metadataSvc.allDevices().subscribe(_=>{this.deviceCount=_.devices.length,_.devices.forEach((t,s)=>{"LOCKED"===t.adminState&&this.deviceStatusLockedCount++})})}getDeviceProfileCount(){this.metadataSvc.allDeviceProfolesPagination(0,-1).subscribe(_=>{this.deviceProfileCount=_.profiles.length})}getIntervalCount(){this.schedulerSvc.findAllIntervalsPagination(0,-1).subscribe(_=>{this.schedulerCount=_.intervals.length})}getNotificationCount(){this.notiSvc.findNotificationsByStatusPagination(0,-1,"NEW").subscribe(_=>{this.notificationCount=_.notifications.length})}getRegisteredServiceCount(){this.systemAgentSvc.getRegisteredServiceAll().subscribe(_=>{this.registeredServiceCount=_.length?_.length:0})}}return i.\u0275fac=function(_){return new(_||i)(e.Y36(S.D),e.Y36(v.D),e.Y36(l.G),e.Y36(C.T),e.Y36(D.J),e.Y36(h.r))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-dashboard"]],decls:67,vars:11,consts:function(){let o,_,t,s,a,A,c;return o=" Device Services ",_="Devices",t="Device Profiles",s="Schedulers",a="Notifications",A="Events",c="Readings",[[1,"row"],[1,"col-lg-4"],["role","button","routerLink","/metadata",1,"card"],[1,"card-body"],[1,"card-title"],o,[1,"d-inline"],[1,"badge","badge-info"],[1,"float-right","badge","badge-danger"],[1,"float-right","badge","badge-success","mr-2"],["role","button","routerLink","/metadata/device-center",1,"card"],_,["role","button","routerLink","/metadata/device-profile-center",1,"card"],t,[1,"row","mt-3"],[1,"col-lg-6"],["role","button","routerLink","/scheduler",1,"card"],s,["href","#",1,"card-link","font-weight-bolder","badge","badge-info"],["role","button","routerLink","/notifications",1,"card"],a,["role","button","routerLink","/core-data",1,"card"],A,c]},template:function(_,t){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"h5",4),e.SDv(5,5),e.qZA(),e.TgZ(6,"h5",6),e.TgZ(7,"span",7),e._uU(8),e.qZA(),e.TgZ(9,"span",8),e._uU(10),e.qZA(),e.TgZ(11,"span",9),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"div",10),e.TgZ(15,"div",3),e.TgZ(16,"h5",4),e.SDv(17,11),e.qZA(),e.TgZ(18,"h5",6),e.TgZ(19,"span",7),e._uU(20),e.qZA(),e.TgZ(21,"span",8),e._uU(22),e.qZA(),e.TgZ(23,"span",9),e._uU(24),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",1),e.TgZ(26,"div",12),e.TgZ(27,"div",3),e.TgZ(28,"h5",4),e.SDv(29,13),e.qZA(),e.TgZ(30,"h5",6),e.TgZ(31,"span",7),e._uU(32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"div",15),e.TgZ(35,"div",16),e.TgZ(36,"div",3),e.TgZ(37,"h5",4),e.SDv(38,17),e.qZA(),e.TgZ(39,"h5"),e.TgZ(40,"a",18),e._uU(41),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",15),e.TgZ(43,"div",19),e.TgZ(44,"div",3),e.TgZ(45,"h5",4),e.SDv(46,20),e.qZA(),e.TgZ(47,"h5"),e.TgZ(48,"a",18),e._uU(49),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"div",15),e.TgZ(52,"div",21),e.TgZ(53,"div",3),e.TgZ(54,"h5",4),e.SDv(55,22),e.qZA(),e.TgZ(56,"h5"),e.TgZ(57,"a",18),e._uU(58),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",15),e.TgZ(60,"div",21),e.TgZ(61,"div",3),e.TgZ(62,"h5",4),e.SDv(63,23),e.qZA(),e.TgZ(64,"h5"),e.TgZ(65,"a",18),e._uU(66),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.hij(" ",t.deviceSvcCount>100?"100+":t.deviceSvcCount," "),e.xp6(2),e.hij("Locked ",t.deviceSvcStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",t.deviceSvcCount-t.deviceSvcStatusLockedCount,""),e.xp6(8),e.hij(" ",t.deviceCount>100?"100+":t.deviceCount," "),e.xp6(2),e.hij("Locked ",t.deviceStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",t.deviceCount-t.deviceStatusLockedCount,""),e.xp6(8),e.Oqu(t.deviceProfileCount>100?"100+":t.deviceProfileCount),e.xp6(9),e.Oqu(t.schedulerCount>100?"100+":t.schedulerCount),e.xp6(8),e.Oqu(t.notificationCount>100?"100+":t.notificationCount),e.xp6(9),e.Oqu(t.eventCount),e.xp6(8),e.Oqu(t.readingCount))},directives:[r.rH],styles:[".shadow[_ngcontent-%COMP%]{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}.card[_ngcontent-%COMP%]:hover{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}"]}),i})();const T=[{path:"",canActivate:[n(8253).a],component:E}];let f=(()=>{class i{}return i.\u0275fac=function(_){return new(_||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[r.Bz.forChild(T)],r.Bz]}),i})(),b=(()=>{class i{}return i.\u0275fac=function(_){return new(_||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[g.ez,f]]}),i})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/849.c2ff0f8f788ceb65b645.js b/cmd/edgex-ui-server/static/web/en-US/849.c2ff0f8f788ceb65b645.js new file mode 100644 index 00000000..0570af43 --- /dev/null +++ b/cmd/edgex-ui-server/static/web/en-US/849.c2ff0f8f788ceb65b645.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[849],{8849:(R,v,o)=>{o.r(v),o.d(v,{DashboardModule:()=>O});var A=o(8583),g=o(9502),e=o(476),S=o(2468),l=o(2437),h=o(8391),C=o(9744),Z=o(9386),_=o(3692);let D=(()=>{class n{constructor(t,i,d,c,r,u){this.dataService=t,this.metadataSvc=i,this.schedulerSvc=d,this.notiSvc=c,this.systemAgentSvc=r,this.registrySvc=u,this.eventCount=0,this.readingCount=0,this.deviceSvcCount=0,this.deviceSvcStatusLockedCount=0,this.deviceCount=0,this.deviceStatusLockedCount=0,this.deviceProfileCount=0,this.schedulerCount=0,this.notificationCount=0,this.registeredServiceCount=0}ngOnInit(){this.dataService.ping().subscribe(()=>{this.getEventAndReadingCount()}),this.metadataSvc.ping().subscribe(()=>{this.getDeviceServiceCount(),this.getDeviceCount(),this.getDeviceProfileCount()}),this.schedulerSvc.ping().subscribe(()=>{this.getIntervalCount()}),this.notiSvc.ping().subscribe(()=>{this.getNotificationCount()}),this.systemAgentSvc.ping().subscribe(()=>{this.registrySvc.ping().subscribe(()=>{this.getRegisteredServiceCount()})})}getEventAndReadingCount(){this.dataService.eventCount().subscribe(t=>this.eventCount=t.Count),this.dataService.readingCount().subscribe(t=>this.readingCount=t.Count)}getDeviceServiceCount(){this.metadataSvc.allDeviceServices().subscribe(t=>{this.deviceSvcCount=t.services.length,t.services.forEach((i,d)=>{"LOCKED"===i.adminState&&this.deviceSvcStatusLockedCount++})})}getDeviceCount(){this.metadataSvc.allDevices().subscribe(t=>{this.deviceCount=t.devices.length,t.devices.forEach((i,d)=>{"LOCKED"===i.adminState&&this.deviceStatusLockedCount++})})}getDeviceProfileCount(){this.metadataSvc.allDeviceProfolesPagination(0,-1).subscribe(t=>{this.deviceProfileCount=t.profiles.length})}getIntervalCount(){this.schedulerSvc.findAllIntervalsPagination(0,-1).subscribe(t=>{this.schedulerCount=t.intervals.length})}getNotificationCount(){this.notiSvc.findNotificationsByStatusPagination(0,-1,"NEW").subscribe(t=>{this.notificationCount=t.notifications.length})}getRegisteredServiceCount(){this.systemAgentSvc.getRegisteredServiceAll().subscribe(t=>{this.registeredServiceCount=t.length?t.length:0})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(S.D),e.Y36(l.D),e.Y36(h.G),e.Y36(C.T),e.Y36(Z.J),e.Y36(_.r))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-dashboard"]],decls:67,vars:11,consts:function(){let s,t,i,d,c,r,u;return s=" Device Services ",t="Devices",i="Device Profiles",d="Schedulers",c="Notifications",r="Events",u="Readings",[[1,"row"],[1,"col-lg-4"],["role","button","routerLink","/metadata",1,"card"],[1,"card-body"],[1,"card-title"],s,[1,"d-inline"],[1,"badge","badge-info"],[1,"float-right","badge","badge-danger"],[1,"float-right","badge","badge-success","mr-2"],["role","button","routerLink","/metadata/device-center",1,"card"],t,["role","button","routerLink","/metadata/device-profile-center",1,"card"],i,[1,"row","mt-3"],[1,"col-lg-6"],["role","button","routerLink","/scheduler",1,"card"],d,["href","#",1,"card-link","font-weight-bolder","badge","badge-info"],["role","button","routerLink","/notifications",1,"card"],c,["role","button","routerLink","/core-data",1,"card"],r,u]},template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"h5",4),e.SDv(5,5),e.qZA(),e.TgZ(6,"h5",6),e.TgZ(7,"span",7),e._uU(8),e.qZA(),e.TgZ(9,"span",8),e._uU(10),e.qZA(),e.TgZ(11,"span",9),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"div",10),e.TgZ(15,"div",3),e.TgZ(16,"h5",4),e.SDv(17,11),e.qZA(),e.TgZ(18,"h5",6),e.TgZ(19,"span",7),e._uU(20),e.qZA(),e.TgZ(21,"span",8),e._uU(22),e.qZA(),e.TgZ(23,"span",9),e._uU(24),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",1),e.TgZ(26,"div",12),e.TgZ(27,"div",3),e.TgZ(28,"h5",4),e.SDv(29,13),e.qZA(),e.TgZ(30,"h5",6),e.TgZ(31,"span",7),e._uU(32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"div",15),e.TgZ(35,"div",16),e.TgZ(36,"div",3),e.TgZ(37,"h5",4),e.SDv(38,17),e.qZA(),e.TgZ(39,"h5"),e.TgZ(40,"a",18),e._uU(41),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",15),e.TgZ(43,"div",19),e.TgZ(44,"div",3),e.TgZ(45,"h5",4),e.SDv(46,20),e.qZA(),e.TgZ(47,"h5"),e.TgZ(48,"a",18),e._uU(49),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"div",15),e.TgZ(52,"div",21),e.TgZ(53,"div",3),e.TgZ(54,"h5",4),e.SDv(55,22),e.qZA(),e.TgZ(56,"h5"),e.TgZ(57,"a",18),e._uU(58),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",15),e.TgZ(60,"div",21),e.TgZ(61,"div",3),e.TgZ(62,"h5",4),e.SDv(63,23),e.qZA(),e.TgZ(64,"h5"),e.TgZ(65,"a",18),e._uU(66),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.hij(" ",i.deviceSvcCount>100?"100+":i.deviceSvcCount," "),e.xp6(2),e.hij("Locked ",i.deviceSvcStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",i.deviceSvcCount-i.deviceSvcStatusLockedCount,""),e.xp6(8),e.hij(" ",i.deviceCount>100?"100+":i.deviceCount," "),e.xp6(2),e.hij("Locked ",i.deviceStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",i.deviceCount-i.deviceStatusLockedCount,""),e.xp6(8),e.Oqu(i.deviceProfileCount>100?"100+":i.deviceProfileCount),e.xp6(9),e.Oqu(i.schedulerCount>100?"100+":i.schedulerCount),e.xp6(8),e.Oqu(i.notificationCount>100?"100+":i.notificationCount),e.xp6(9),e.Oqu(i.eventCount),e.xp6(8),e.Oqu(i.readingCount))},directives:[g.rH],styles:[".shadow[_ngcontent-%COMP%]{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}.card[_ngcontent-%COMP%]:hover{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}"]}),n})();const f=[{path:"",canActivate:[o(8253).a],component:D}];let b=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[g.Bz.forChild(f)],g.Bz]}),n})(),O=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[A.ez,b]]}),n})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/894.58b03acb8877946712cc.js b/cmd/edgex-ui-server/static/web/en-US/894.58b03acb8877946712cc.js deleted file mode 100644 index f3165705..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/894.58b03acb8877946712cc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[894],{894:(Qe,E,l)=>{l.r(E),l.d(E,{AppServiceModule:()=>Xe});var c=l(8583),r=l(3092),p=l(9502),e=l(476);let I=(()=>{class _{constructor(){}ngOnInit(){}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[p.lC],styles:[""]}),_})();var m=l(3692);const M=function(_){return{appSvcKey:_}};function R(_,a){if(1&_&&(e.TgZ(0,"li",8),e.TgZ(1,"div",9),e.TgZ(2,"div",10),e._UZ(3,"i",11),e.qZA(),e.TgZ(4,"div",12),e.TgZ(5,"div",13),e.TgZ(6,"h5",14),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",15),e._uU(10),e.qZA(),e.TgZ(11,"span",16),e._UZ(12,"i",17),e.TgZ(13,"span"),e.SDv(14,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_){const t=a.$implicit;e.xp6(7),e.hij(" ",t.ServiceId," "),e.xp6(3),e.hij("port ",t.Port,""),e.xp6(1),e.Q6J("queryParams",e.VKq(3,M,t.ServiceId))}}let q=(()=>{class _{constructor(t){this.registrySvc=t,this.appServiceList=[]}ngOnInit(){this.getAllAppSvc()}getAllAppSvc(){this.registrySvc.getAllAppSvc().subscribe(t=>{this.appServiceList=[],t.forEach(n=>{n.ServiceId.startsWith("app-")&&this.appServiceList.push(n)})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(m.r))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service-list"]],decls:8,vars:1,consts:function(){let a,t;return a="App Service List",t="Configurable",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],[1,"font-weight-bold"],a,[1,"card-body"],[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-3"],[1,"d-inline","mr-3","align-middle","text-dark"],["role","button",1,"badge","badge-info","mr-3"],["role","button","routerLink","../app-service-configurable",1,"badge","badge-secondary","float-right",3,"queryParams"],[1,"fa","fa-cog","mr-1"],t]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"ul",6),e.YNc(7,R,15,5,"li",7),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngForOf",n.appServiceList))},directives:[c.sg,p.rH],styles:[""]}),_})();function b(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,18),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e.TgZ(9,"span"),e.SDv(10,20),e.qZA(),e._UZ(11,"span",21),e.qZA(),e.TgZ(12,"div",7),e.TgZ(13,"select",8),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Type=i}),e.TgZ(14,"option",22),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",23),e._uU(17,"mqtt"),e.qZA(),e.TgZ(18,"option",24),e._uU(19,"zero"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",25),e.TgZ(21,"div",26),e.TgZ(22,"div",14),e.TgZ(23,"div",27),e._UZ(24,"i",28),e.TgZ(25,"span"),e.SDv(26,29),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.TgZ(28,"form"),e.TgZ(29,"div",3),e.TgZ(30,"label",30),e.SDv(31,31),e.qZA(),e.TgZ(32,"div",32),e.TgZ(33,"input",33),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",3),e.TgZ(35,"label",30),e.SDv(36,34),e.qZA(),e.TgZ(37,"div",32),e.TgZ(38,"input",35),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",3),e.TgZ(40,"label",30),e.SDv(41,36),e.qZA(),e.TgZ(42,"div",32),e.TgZ(43,"input",37),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",3),e.TgZ(45,"label",38),e.SDv(46,39),e.qZA(),e.TgZ(47,"div",40),e.TgZ(48,"input",41),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",26),e.TgZ(50,"div",14),e.TgZ(51,"div",27),e._UZ(52,"i",28),e.TgZ(53,"span"),e._uU(54,"Publish Host"),e.qZA(),e.qZA(),e.TgZ(55,"div",19),e.TgZ(56,"form"),e.TgZ(57,"div",3),e.TgZ(58,"label",30),e.SDv(59,42),e.qZA(),e.TgZ(60,"div",32),e.TgZ(61,"input",33),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",3),e.TgZ(63,"label",30),e.SDv(64,43),e.qZA(),e.TgZ(65,"div",32),e.TgZ(66,"input",35),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",3),e.TgZ(68,"label",30),e.SDv(69,44),e.qZA(),e.TgZ(70,"div",32),e.TgZ(71,"input",37),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",3),e.TgZ(73,"label",30),e.SDv(74,45),e.qZA(),e.TgZ(75,"div",32),e.TgZ(76,"input",46),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.PublishTopic=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",25),e.TgZ(78,"div",47),e.TgZ(79,"div",48),e.TgZ(80,"div",27),e._UZ(81,"i",28),e.TgZ(82,"span"),e.SDv(83,49),e.qZA(),e.qZA(),e.TgZ(84,"div",19),e.TgZ(85,"form"),e.TgZ(86,"div",3),e.TgZ(87,"label",4),e._uU(88,"ClientId"),e.qZA(),e.TgZ(89,"div",7),e.TgZ(90,"input",50),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(91,"div",3),e.TgZ(92,"label",4),e._uU(93,"Qos"),e.qZA(),e.TgZ(94,"div",7),e.TgZ(95,"input",51),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Qos=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(96,"div",3),e.TgZ(97,"label",4),e._uU(98,"KeepAlive"),e.qZA(),e.TgZ(99,"div",7),e.TgZ(100,"input",52),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(101,"div",3),e.TgZ(102,"label",4),e._uU(103,"Retained"),e.qZA(),e.TgZ(104,"div",7),e.TgZ(105,"select",53),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Retained=i}),e.TgZ(106,"option",54),e._uU(107,"false"),e.qZA(),e.TgZ(108,"option",55),e._uU(109,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(110,"div",3),e.TgZ(111,"label",4),e._uU(112,"AutoReconnect"),e.qZA(),e.TgZ(113,"div",7),e.TgZ(114,"select",56),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.AutoReconnect=i}),e.TgZ(115,"option",54),e._uU(116,"false"),e.qZA(),e.TgZ(117,"option",55),e._uU(118,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(119,"div",3),e.TgZ(120,"label",4),e._uU(121,"ConnectTimeout"),e.qZA(),e.TgZ(122,"div",7),e.TgZ(123,"input",57),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(124,"div",3),e.TgZ(125,"label",4),e._uU(126,"authmode"),e.qZA(),e.TgZ(127,"div",7),e.TgZ(128,"select",58),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.authmode=i}),e.TgZ(129,"option",59),e._uU(130,"none"),e.qZA(),e.TgZ(131,"option",60),e._uU(132,"usernamepassword"),e.qZA(),e.TgZ(133,"option",61),e._uU(134,"clientcert"),e.qZA(),e.TgZ(135,"option",62),e._uU(136,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(137,"div",3),e.TgZ(138,"label",4),e._uU(139,"SkipCertVerify"),e.qZA(),e.TgZ(140,"div",7),e.TgZ(141,"select",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.SkipCertVerify=i}),e.TgZ(142,"option",54),e._uU(143,"false"),e.qZA(),e.TgZ(144,"option",55),e._uU(145,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(146,"div",3),e.TgZ(147,"label",4),e._uU(148,"secretname"),e.qZA(),e.TgZ(149,"div",7),e.TgZ(150,"input",64),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.secretname=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Type),e.xp6(20),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.PublishTopic),e.xp6(14),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Qos),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Retained),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.authmode),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.secretname)}}function U(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e._uU(4,"External MQTT Trigger"),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e._uU(9,"Url"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",65),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Url=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",3),e.TgZ(13,"label",4),e._uU(14,"SubscribeTopics"),e.qZA(),e.TgZ(15,"div",7),e.TgZ(16,"input",41),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SubscribeTopics=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",3),e.TgZ(18,"label",4),e._uU(19,"PublishTopic"),e.qZA(),e.TgZ(20,"div",7),e.TgZ(21,"input",46),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.PublishTopic=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",3),e.TgZ(23,"label",4),e._uU(24,"ClientId"),e.qZA(),e.TgZ(25,"div",7),e.TgZ(26,"input",50),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",3),e.TgZ(28,"label",4),e._uU(29,"ConnectTimeout"),e.qZA(),e.TgZ(30,"div",7),e.TgZ(31,"input",57),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"div",3),e.TgZ(33,"label",4),e._uU(34,"AutoReconnect"),e.qZA(),e.TgZ(35,"div",7),e.TgZ(36,"select",56),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AutoReconnect=i}),e.TgZ(37,"option",54),e._uU(38,"false"),e.qZA(),e.TgZ(39,"option",55),e._uU(40,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",3),e.TgZ(42,"label",4),e._uU(43,"KeepAlive"),e.qZA(),e.TgZ(44,"div",7),e.TgZ(45,"input",52),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",3),e.TgZ(47,"label",4),e._uU(48,"QoS"),e.qZA(),e.TgZ(49,"div",7),e.TgZ(50,"input",66),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.QoS=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",3),e.TgZ(52,"label",4),e._uU(53,"Retain"),e.qZA(),e.TgZ(54,"div",7),e.TgZ(55,"select",53),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Retain=i}),e.TgZ(56,"option",54),e._uU(57,"false"),e.qZA(),e.TgZ(58,"option",55),e._uU(59,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(60,"div",3),e.TgZ(61,"label",4),e._uU(62,"SkipCertVerify"),e.qZA(),e.TgZ(63,"div",7),e.TgZ(64,"select",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SkipCertVerify=i}),e.TgZ(65,"option",54),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",55),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",3),e.TgZ(70,"label",4),e._uU(71,"SecretPath"),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"input",67),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SecretPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(74,"div",3),e.TgZ(75,"label",4),e._uU(76,"AuthMode"),e.qZA(),e.TgZ(77,"div",7),e.TgZ(78,"select",68),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AuthMode=i}),e.TgZ(79,"option",59),e._uU(80,"none"),e.qZA(),e.TgZ(81,"option",60),e._uU(82,"usernamepassword"),e.qZA(),e.TgZ(83,"option",61),e._uU(84,"clientcert"),e.qZA(),e.TgZ(85,"option",62),e._uU(86,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(11),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Url),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SubscribeTopics),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.PublishTopic),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.QoS),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Retain),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SecretPath),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AuthMode)}}function G(_,a){1&_&&(e.TgZ(0,"div",48),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,69),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"div",0),e.TgZ(7,"small"),e._UZ(8,"i",1),e.TgZ(9,"span"),e.SDv(10,70),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA())}let O=(()=>{class _{constructor(){this._configTrigger={},this.configTriggerChange=new e.vpe,this.configTrigger={},this.configTrigger.EdgexMessageBus={Optional:{},SubscribeHost:{},PublishHost:{}},this.configTrigger.EdgexMessageBus.Optional={},this.configTrigger.ExternalMqtt={},this.configTrigger.HTTP={}}get configTrigger(){return this._configTrigger}set configTrigger(t){Object.assign(this._configTrigger,t)}ngOnInit(){this.renderPopoverComponent()}ngOnChanges(){this.configTriggerChange.emit(this.configTrigger)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}onTriggerSelected(){this.renderPopoverComponent()}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-trigger"]],inputs:{configTrigger:"configTrigger"},outputs:{configTriggerChange:"configTriggerChange"},features:[e.TTD],decls:24,vars:4,consts:function(){let a,t,n,i,o,s,d,u,T,C,Z,h,P,v,S,N;return a=" App service needs to restart when Trigger is changed, so this section only lets user to know what Trigger the app service used right now! " + "\ufffd#6\ufffd\ufffd/#6\ufffd" + " And Next, UI will support user to change the Trigger section. ",t="Type",n="EdgexMessageBus Trigger",i="Type",o="Subscribe Host",s="Host",d="Port",u="Protocol",T="SubscribeTopics",C="Host",Z="Port",h="Protocol",P="PublishTopic",v="Optional",S="HTTP Trigger",N="no optional fields needs to setup for http trigger",[["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],a,[1,"form-group","row"],[1,"col-sm-2","col-form-label"],t,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Trigger type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","edgex-messagebus"],["value","external-mqtt"],["value","http"],["class","card mb-3",4,"ngIf"],["class","card",4,"ngIf"],[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],n,[1,"card-body"],i,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","EdgeX Message Bus type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["value","redis"],["value","mqtt"],["value","zero"],[1,"row"],[1,"col-sm-6","col-md-6"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tag","mr-2","text-danger"],o,[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],s,[1,"col-sm-9"],["type","text","name","Host",1,"form-control",3,"ngModel","ngModelChange"],d,["type","text","name","Port",1,"form-control",3,"ngModel","ngModelChange"],u,["type","text","name","Protocol",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-3","col-md-3","col-form-label","text-nowrap","text-truncate"],T,[1,"col-sm-9","col-md-9"],["type","text","name","SubscribeTopics",1,"form-control",3,"ngModel","ngModelChange"],C,Z,h,P,["type","text","name","PublishTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-12","col-md-12"],[1,"card"],v,["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Qos",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","authmode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","secretname",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","QoS",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],S,N]},template:function(t,n){1&t&&(e.TgZ(0,"div"),e.TgZ(1,"div",0),e.TgZ(2,"small"),e._UZ(3,"i",1),e.TgZ(4,"span"),e.tHW(5,2),e._UZ(6,"br"),e.N_p(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"form"),e.TgZ(8,"div",3),e.TgZ(9,"label",4),e.TgZ(10,"span"),e.SDv(11,5),e.qZA(),e._UZ(12,"span",6),e.qZA(),e.TgZ(13,"div",7),e.TgZ(14,"select",8),e.NdJ("ngModelChange",function(o){return n.configTrigger.Type=o})("ngModelChange",function(){return n.onTriggerSelected()}),e.TgZ(15,"option",9),e._uU(16,"edgex-messagebus"),e.qZA(),e.TgZ(17,"option",10),e._uU(18,"external-mqtt"),e.qZA(),e.TgZ(19,"option",11),e._uU(20,"http"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(21,b,151,18,"div",12),e.YNc(22,U,87,12,"div",12),e.YNc(23,G,11,0,"div",13),e.qZA()),2&t&&(e.xp6(14),e.Q6J("ngModel",n.configTrigger.Type),e.xp6(7),e.Q6J("ngIf","edgex-messagebus"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","external-mqtt"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","http"===n.configTrigger.Type))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,c.O5,r.Fj],styles:[""]}),_})();var A=l(7822);let x=(()=>{class _{constructor(t){this.el=t,this.classes="border border-info shadow-lg bg-white rounded"}ondragover(t){t.preventDefault(),this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.add(i)})}ondragenter(t){}ondragend(t){}ondragleave(t){this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.remove(i)})}ondragexit(t){}ondrop(t){this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.remove(i)})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(e.SBq))},_.\u0275dir=e.lG2({type:_,selectors:[["","appDragHighlight",""]],hostBindings:function(t,n){1&t&&e.NdJ("dragover",function(o){return n.ondragover(o)})("dragenter",function(o){return n.ondragenter(o)})("dragend",function(o){return n.ondragend(o)})("dragleave",function(o){return n.ondragleave(o)})("dragexit",function(o){return n.ondragexit(o)})("drop",function(o){return n.ondrop(o)})}}),_})(),F=(()=>{class _{constructor(){this.addTagsChange=new e.vpe,this.addTags={Parameters:{Tags:""}}}ngOnInit(){}ngOnChanges(){this.addTagsChange.emit(this.addTags)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-add-tags"]],inputs:{addTags:"addTags"},outputs:{addTagsChange:"addTagsChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","String containing comma separated list of tag key/value pairs. The tag key/value pairs are colon seperated,\n for example: \n GatewayId:HoustonStore000123,Latitude:29.630771,Longitude:-95.377603",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","Tags",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Tags"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(o){return n.addTags.Parameters.Tags=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.addTags.Parameters.Tags))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function y(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"BatchThreshold"),e.qZA(),e._UZ(4,"span",12),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",13),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().batch.Parameters.BatchThreshold=i}),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.BatchThreshold)}}function J(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"TimeInterval"),e.qZA(),e._UZ(4,"span",14),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",15),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().batch.Parameters.TimeInterval=i}),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.TimeInterval)}}let B=(()=>{class _{constructor(){this.batchChange=new e.vpe,this.batch={Parameters:{Mode:"bycount",IsEventData:"true"}}}ngOnInit(){}ngOnChanges(){this.batchChange.emit(this.batch)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-batch"]],inputs:{batch:"batch"},outputs:{batchChange:"batchChange"},features:[e.TTD],decls:26,vars:4,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Mode",1,"custom-select",3,"ngModel","ngModelChange"],["value","bycount"],["value","bytime"],["value","bytimecount"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","If true, specifies that the data being batch is Events and to un-marshal the batched data to []Event prior to returning the batched data. By default the batched data returned is [][]byte",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","IsEventData",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Number of items to batch before sending batched items to the next function in the pipeline.
\n Used with "bycount" and "bytimecount" modes',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","BatchThreshold",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Amount of time to batch before sending batched items to the next function in the pipeline.
\n Used with "bytime" and "bytimecount" modes,
\n
\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","TimeInterval",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Mode"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"select",3),e.NdJ("ngModelChange",function(o){return n.batch.Parameters.Mode=o}),e.TgZ(7,"option",4),e._uU(8,"bycount"),e.qZA(),e.TgZ(9,"option",5),e._uU(10,"bytime"),e.qZA(),e.TgZ(11,"option",6),e._uU(12,"bytimecount"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(13,y,7,1,"div",7),e.YNc(14,J,7,1,"div",7),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"IsEventData"),e.qZA(),e._UZ(19,"span",8),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"select",9),e.NdJ("ngModelChange",function(o){return n.batch.Parameters.IsEventData=o}),e.TgZ(22,"option",10),e._uU(23,"false"),e.qZA(),e.TgZ(24,"option",11),e._uU(25,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngIf","bycount"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(1),e.Q6J("ngIf","bytime"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngModel",n.batch.Parameters.IsEventData))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,c.O5,r.Fj],styles:[""]}),_})(),D=(()=>{class _{constructor(){this.compressChange=new e.vpe,this.compress={Parameters:{Algorithm:"gzip"}}}ngOnInit(){}ngOnChanges(){this.compressChange.emit(this.compress)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-compress"]],inputs:{compress:"compress"},outputs:{compressChange:"compressChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","gzip"],["value","zlib"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.compress.Parameters.Algorithm=o}),e.TgZ(6,"option",4),e._uU(7,"gzip"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"zlib"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.compress.Parameters.Algorithm))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),w=(()=>{class _{constructor(){this.encryptChange=new e.vpe,this.encrypt={Parameters:{Algorithm:"aes256"}}}ngOnInit(){}ngOnChanges(){this.encryptChange.emit(this.encrypt)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-encrypt"]],inputs:{encrypt:"encrypt"},outputs:{encryptChange:"encryptChange"},features:[e.TTD],decls:22,vars:3,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","aes256"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Path in the Secret Store where the encryption key is located.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Name of the secret for the encryption key in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.Algorithm=o}),e.TgZ(6,"option",4),e._uU(7,"aes256"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e.TgZ(9,"label",1),e.TgZ(10,"span"),e._uU(11,"SecretPath"),e.qZA(),e._UZ(12,"span",5),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.SecretPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"SecretName"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.SecretName=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.encrypt.Parameters.Algorithm),e.xp6(9),e.Q6J("ngModel",n.encrypt.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.encrypt.Parameters.SecretName))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();var L=l(1302);let H=(()=>{class _{constructor(){this.filterByDeviceNameChange=new e.vpe,this.deviceNames=[],this.filterByDeviceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.deviceNames=this.filterByDeviceName.Parameters.DeviceNames.split(","),this.filterByDeviceNameChange.emit(this.filterByDeviceName)}onDeviceNamesChange(){this.filterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-device-name"]],inputs:{filterByDeviceName:"filterByDeviceName"},outputs:{filterByDeviceNameChange:"filterByDeviceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"deviceSelected","deviceSelectedChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the device names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"DeviceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-combo-list",3),e.NdJ("deviceSelectedChange",function(o){return n.deviceNames=o})("deviceSelectedChange",function(){return n.onDeviceNamesChange()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByDeviceName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("deviceSelected",n.deviceNames),e.xp6(7),e.Q6J("ngModel",n.filterByDeviceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,L.h,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})();var V=l(6322);let X=(()=>{class _{constructor(){this.filterByProfileNameChange=new e.vpe,this.profileNames=[],this.filterByProfileName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.profileNames=this.filterByProfileName.Parameters.ProfileNames.split(","),this.filterByProfileNameChange.emit(this.filterByProfileName)}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.filterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-profile-name"]],inputs:{filterByProfileName:"filterByProfileName"},outputs:{filterByProfileNameChange:"filterByProfileNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"selectedProfiles","deviceProfileSelectedEvent"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the profile names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ProfileNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-profile-combo-list",3),e.NdJ("deviceProfileSelectedEvent",function(o){return n.onDeviceProfileSelectedEvent(o)}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByProfileName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("selectedProfiles",n.profileNames),e.xp6(7),e.Q6J("ngModel",n.filterByProfileName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,V.o,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),Q=(()=>{class _{constructor(){this.filterByResourceNameChange=new e.vpe,this.filterByResourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterByResourceNameChange.emit(this.filterByResourceName)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-resource-name"]],inputs:{filterByResourceName:"filterByResourceName"},outputs:{filterByResourceNameChange:"filterByResourceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ResourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the resource names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ResourceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(o){return n.filterByResourceName.Parameters.ResourceNames=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByResourceName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.filterByResourceName.Parameters.ResourceNames),e.xp6(7),e.Q6J("ngModel",n.filterByResourceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr],styles:[""]}),_})(),W=(()=>{class _{constructor(){this.filterBySourceNameChange=new e.vpe,this.filterBySourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterBySourceNameChange.emit(this.filterBySourceName)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-source-name"]],inputs:{filterBySourceName:"filterBySourceName"},outputs:{filterBySourceNameChange:"filterBySourceNameChange"},features:[e.TTD],decls:18,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","SourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the source names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"SourceNames"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",3),e.NdJ("ngModelChange",function(o){return n.filterBySourceName.Parameters.SourceNames=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",0),e.TgZ(8,"label",1),e.TgZ(9,"span"),e._uU(10,"FilterOut"),e.qZA(),e._UZ(11,"span",4),e.qZA(),e.TgZ(12,"div",2),e.TgZ(13,"select",5),e.NdJ("ngModelChange",function(o){return n.filterBySourceName.Parameters.FilterOut=o}),e.TgZ(14,"option",6),e._uU(15,"false"),e.qZA(),e.TgZ(16,"option",7),e._uU(17,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.filterBySourceName.Parameters.SourceNames),e.xp6(7),e.Q6J("ngModel",n.filterBySourceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr],styles:[""]}),_})(),Y=(()=>{class _{constructor(){this.transformChange=new e.vpe,this.transform={Parameters:{Type:"json"}}}ngOnInit(){}ngOnChanges(){this.transformChange.emit(this.transform)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-transform"]],inputs:{transform:"transform"},outputs:{transformChange:"transformChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","json"],["value","xml"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Type"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.transform.Parameters.Type=o}),e.TgZ(6,"option",4),e._uU(7,"json"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"xml"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.transform.Parameters.Type))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),k=(()=>{class _{constructor(){this.httpExportChange=new e.vpe,this.httpExport={Parameters:{Method:"post",MimeType:"application/json",PersistOnError:"false",ContinueOnSendError:"true",ReturnInputData:"false"}}}ngOnInit(){}ngOnChanges(){this.httpExportChange.emit(this.httpExport)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-httpexport"]],inputs:{httpExport:"httpExport"},outputs:{httpExportChange:"httpExportChange"},features:[e.TTD],decls:76,vars:9,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Method",1,"custom-select",3,"ngModel","ngModelChange"],["value","post"],["value","put"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Optional mime type for the data. Defaults to application/json if not set.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MimeType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports, if true continues after send error so next export function executes.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["name","ContinueOnSendError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports if true, passes the input data to next export function.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ReturnInputData",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the header key to add to the HTTP header",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","HeaderName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Path in the secret in the Secret Store where to header value is stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the secret for the header value in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Method"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.Method=o}),e.TgZ(6,"option",4),e._uU(7,"post"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"put"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",0),e.TgZ(11,"label",1),e._uU(12,"Url"),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.Url=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"MimeType"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.MimeType=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",0),e.TgZ(23,"label",1),e.TgZ(24,"span"),e._uU(25,"PersistOnError"),e.qZA(),e._UZ(26,"span",9),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"select",10),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.PersistOnError=o}),e.TgZ(29,"option",11),e._uU(30,"false"),e.qZA(),e.TgZ(31,"option",12),e._uU(32,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",0),e.TgZ(34,"label",13),e.TgZ(35,"span"),e._uU(36,"ContinueOnSendError"),e.qZA(),e._UZ(37,"span",14),e.qZA(),e.TgZ(38,"div",15),e.TgZ(39,"select",16),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.ContinueOnSendError=o}),e.TgZ(40,"option",11),e._uU(41,"false"),e.qZA(),e.TgZ(42,"option",12),e._uU(43,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",0),e.TgZ(45,"label",1),e.TgZ(46,"span"),e._uU(47,"ReturnInputData"),e.qZA(),e._UZ(48,"span",17),e.qZA(),e.TgZ(49,"div",2),e.TgZ(50,"select",18),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.ReturnInputData=o}),e.TgZ(51,"option",11),e._uU(52,"false"),e.qZA(),e.TgZ(53,"option",12),e._uU(54,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",0),e.TgZ(56,"label",1),e.TgZ(57,"span"),e._uU(58,"HeaderName"),e.qZA(),e._UZ(59,"span",19),e.qZA(),e.TgZ(60,"div",2),e.TgZ(61,"input",20),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.HeaderName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",0),e.TgZ(63,"label",1),e.TgZ(64,"span"),e._uU(65,"SecretPath"),e.qZA(),e._UZ(66,"span",21),e.qZA(),e.TgZ(67,"div",2),e.TgZ(68,"input",22),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.SecretPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",0),e.TgZ(70,"label",1),e.TgZ(71,"span"),e._uU(72,"SecretName"),e.qZA(),e._UZ(73,"span",23),e.qZA(),e.TgZ(74,"div",2),e.TgZ(75,"input",24),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.SecretName=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.httpExport.Parameters.Method),e.xp6(9),e.Q6J("ngModel",n.httpExport.Parameters.Url),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.MimeType),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ContinueOnSendError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ReturnInputData),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.HeaderName),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretName))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();function j(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"SecretPath"),e.qZA(),e._UZ(4,"span",27),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"input",28),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().mqttExport.Parameters.SecretPath=i}),e.qZA(),e.TgZ(7,"div",29),e.TgZ(8,"small"),e.SDv(9,30),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.mqttExport.Parameters.SecretPath),e.Q6J("ngModel",t.mqttExport.Parameters.SecretPath)}}let z=(()=>{class _{constructor(){this.mqttExportChange=new e.vpe,this.mqttExport={Parameters:{Qos:"0",AutoReconnect:"true",Retain:"true",SkipVerify:"true",PersistOnError:"false",AuthMode:"none"}}}ngOnInit(){}ngOnChanges(){this.mqttExportChange.emit(this.mqttExport)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}authModeIsNotNone(){return this.renderPopoverComponent(),"none"!==this.mqttExport.Parameters.AuthMode}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-mqttexport"]],inputs:{mqttExport:"mqttExport"},outputs:{mqttExportChange:"mqttExportChange"},features:[e.TTD],decls:85,vars:10,consts:function(){let a;return a="the SecretPath can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","tcp://broker-host:1883",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","BrokerAddress",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Topic",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],["value","0"],["value","1"],["value","2"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the certificate verification should be skipped.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","SkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Mode of authentication to use when connecting to the MQTT Broker.
\n
\n none - No authentication required.
\n
\n usernamepassword - Use username and password authentication. The Secret Store (Vault or InsecureSecrets) must contain the username and password secrets.
\n
\n clientcert - Use Client Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the clientkey and clientcert secrets.
\n
\n cacert - Use CA Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the cacert secret.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Path in the secret store where to authorization secrets are stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],a]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e.TgZ(3,"span"),e._uU(4,"BrokerAddress"),e.qZA(),e._UZ(5,"span",3),e.qZA(),e.TgZ(6,"div",4),e.TgZ(7,"input",5),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.BrokerAddress=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",1),e.TgZ(9,"label",2),e._uU(10,"Topic"),e.qZA(),e.TgZ(11,"div",4),e.TgZ(12,"input",6),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Topic=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"label",2),e._uU(15,"ClientId"),e.qZA(),e.TgZ(16,"div",4),e.TgZ(17,"input",7),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.ClientId=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",1),e.TgZ(19,"label",2),e._uU(20,"Qos"),e.qZA(),e.TgZ(21,"div",4),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Qos=o}),e.TgZ(23,"option",9),e._uU(24,"0"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"1"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"div",1),e.TgZ(30,"label",2),e._uU(31,"AutoReconnect"),e.qZA(),e.TgZ(32,"div",4),e.TgZ(33,"select",12),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.AutoReconnect=o}),e.TgZ(34,"option",13),e._uU(35,"false"),e.qZA(),e.TgZ(36,"option",14),e._uU(37,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",1),e.TgZ(39,"label",2),e._uU(40,"Retain"),e.qZA(),e.TgZ(41,"div",4),e.TgZ(42,"select",15),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Retain=o}),e.TgZ(43,"option",13),e._uU(44,"false"),e.qZA(),e.TgZ(45,"option",14),e._uU(46,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(47,"div",1),e.TgZ(48,"label",2),e.TgZ(49,"span"),e._uU(50,"SkipVerify"),e.qZA(),e._UZ(51,"span",16),e.qZA(),e.TgZ(52,"div",4),e.TgZ(53,"select",17),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.SkipVerify=o}),e.TgZ(54,"option",13),e._uU(55,"false"),e.qZA(),e.TgZ(56,"option",14),e._uU(57,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",1),e.TgZ(59,"label",2),e.TgZ(60,"span"),e._uU(61,"PersistOnError"),e.qZA(),e._UZ(62,"span",18),e.qZA(),e.TgZ(63,"div",4),e.TgZ(64,"select",19),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.PersistOnError=o}),e.TgZ(65,"option",13),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",14),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",1),e.TgZ(70,"label",2),e.TgZ(71,"span"),e._uU(72,"AuthMode"),e.qZA(),e._UZ(73,"span",20),e.qZA(),e.TgZ(74,"div",4),e.TgZ(75,"select",21),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.AuthMode=o}),e.TgZ(76,"option",22),e._uU(77,"none"),e.qZA(),e.TgZ(78,"option",23),e._uU(79,"usernamepassword"),e.qZA(),e.TgZ(80,"option",24),e._uU(81,"clientcert"),e.qZA(),e.TgZ(82,"option",25),e._uU(83,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(84,j,10,3,"div",26),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.mqttExport.Parameters.BrokerAddress),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Topic),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.ClientId),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Qos),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AutoReconnect),e.xp6(9),e.Q6J("ngModel",n.mqttExport.Parameters.Retain),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.SkipVerify),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AuthMode),e.xp6(9),e.Q6J("ngIf",n.authModeIsNotNone()))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,c.O5],styles:[""]}),_})(),K=(()=>{class _{constructor(){this.jsonLogicChange=new e.vpe,this.jsonLogic={Parameters:{Rule:""}}}ngOnInit(){}ngOnChanges(){this.jsonLogicChange.emit(this.jsonLogic)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-jsonlogic"]],inputs:{jsonLogic:"jsonLogic"},outputs:{jsonLogicChange:"jsonLogicChange"},features:[e.TTD],decls:6,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","Rule",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Rule"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(o){return n.jsonLogic.Parameters.Rule=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.jsonLogic.Parameters.Rule))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function ee(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"MediaType"),e.qZA(),e._UZ(4,"span",22),e.qZA(),e.TgZ(5,"div",3),e.TgZ(6,"input",23),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().pushToCore.Parameters.MediaType=i}),e.qZA(),e.TgZ(7,"div",24),e.TgZ(8,"small"),e.SDv(9,25),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.pushToCore.Parameters.MediaType),e.Q6J("ngModel",t.pushToCore.Parameters.MediaType)}}let te=(()=>{class _{constructor(){this.pushToCoreChange=new e.vpe,this.pushToCore={Parameters:{ValueType:"String"}}}ngOnInit(){}ngOnChanges(){this.pushToCoreChange.emit(this.pushToCore)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}valueTypeIsBinary(){return this.renderPopoverComponent(),"Binary"===this.pushToCore.Parameters.ValueType}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-push-to-core"]],inputs:{pushToCore:"pushToCore"},outputs:{pushToCoreChange:"pushToCoreChange"},features:[e.TTD],decls:48,vars:5,consts:function(){let a;return a="the MediaType can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ProfileName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","DeviceName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ResourceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Value type to use the new Event Reading's value type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ValueType",1,"custom-select",3,"ngModel","ngModelChange"],["value","Bool"],["value","Int8"],["value","Int64"],["value","Uint8"],["value","Uint64"],["value","Float32"],["value","Float64"],["value","String"],["value","Binary"],["value","Object"],["value","Float32Array"],["value","BoolArray"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Media type to use the new Event Reading's value type. Required when the value type is Binary",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MediaType",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],a]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e._uU(3,"ProfileName"),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"input",4),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ProfileName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",1),e.TgZ(7,"label",2),e._uU(8,"DeviceName"),e.qZA(),e.TgZ(9,"div",3),e.TgZ(10,"input",5),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.DeviceName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",1),e.TgZ(12,"label",2),e._uU(13,"ResourceName"),e.qZA(),e.TgZ(14,"div",3),e.TgZ(15,"input",6),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ResourceName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"div",1),e.TgZ(17,"label",2),e.TgZ(18,"span"),e._uU(19,"ValueType"),e.qZA(),e._UZ(20,"span",7),e.qZA(),e.TgZ(21,"div",3),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ValueType=o}),e.TgZ(23,"option",9),e._uU(24,"Bool"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"Int8"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"Int64"),e.qZA(),e.TgZ(29,"option",12),e._uU(30,"Uint8"),e.qZA(),e.TgZ(31,"option",13),e._uU(32,"Uint64"),e.qZA(),e.TgZ(33,"option",14),e._uU(34,"Float32"),e.qZA(),e.TgZ(35,"option",15),e._uU(36,"Float64"),e.qZA(),e.TgZ(37,"option",16),e._uU(38,"String"),e.qZA(),e.TgZ(39,"option",17),e._uU(40,"Binary"),e.qZA(),e.TgZ(41,"option",18),e._uU(42,"Object"),e.qZA(),e.TgZ(43,"option",19),e._uU(44,"Float32Array"),e.qZA(),e.TgZ(45,"option",20),e._uU(46,"BoolArray"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(47,ee,10,3,"div",21),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ProfileName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.DeviceName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ResourceName),e.xp6(7),e.Q6J("ngModel",n.pushToCore.Parameters.ValueType),e.xp6(25),e.Q6J("ngIf",n.valueTypeIsBinary()))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,c.O5],styles:[""]}),_})(),ne=(()=>{class _{constructor(){this.setResponseDataChange=new e.vpe,this.setResponseData={Parameters:{ResponseContentType:""}}}ngOnInit(){}ngOnChanges(){this.setResponseDataChange.emit(this.setResponseData)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-set-response-data"]],inputs:{setResponseData:"setResponseData"},outputs:{setResponseDataChange:"setResponseDataChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Used to specify content-type header for response, for example, application/json",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["type","text","name","ResponseContentType",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"ResponseContentType"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(o){return n.setResponseData.Parameters.ResponseContentType=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.setResponseData.Parameters.ResponseContentType))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function _e(_,a){1&_&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,24),e.qZA(),e.qZA(),e.qZA())}function oe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"span",25),e.NdJ("dragstart",function(i){const s=e.CHM(t).$implicit;return e.oxw().ondragstartBuiltinFunction(i,s)}),e.TgZ(1,"span",26),e._uU(2),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.ekj("d-table",!n.isSelected(t))("d-none",n.isSelected(t)),e.hYB("id","",n.builtinFuncZoneIdentifier,"",t,""),e.xp6(2),e.Oqu(t)}}function ie(_,a){1&_&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,27),e.qZA(),e.qZA(),e.qZA())}function re(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",28),e.NdJ("dragstart",function(i){const s=e.CHM(t).$implicit;return e.oxw().ondragstartFuncExecutionOrder(i,s)}),e._uU(2),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.xp6(1),e.hYB("id","",n.funcExecOrderZoneIdentifier,"",t,""),e.xp6(1),e.Oqu(t)}}function ae(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-add-tags",43),e.NdJ("addTagsChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("addTags",n.availableFunctions[t])}}function se(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-batch",44),e.NdJ("batchChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("batch",n.availableFunctions[t])}}function le(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-compress",45),e.NdJ("compressChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("compress",n.availableFunctions[t])}}function ge(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-encrypt",46),e.NdJ("encryptChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("encrypt",n.availableFunctions[t])}}function ce(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-device-name",47),e.NdJ("filterByDeviceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByDeviceName",n.availableFunctions[t])}}function pe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-profile-name",48),e.NdJ("filterByProfileNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByProfileName",n.availableFunctions[t])}}function de(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-resource-name",49),e.NdJ("filterByResourceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByResourceName",n.availableFunctions[t])}}function ue(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-source-name",50),e.NdJ("filterBySourceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterBySourceName",n.availableFunctions[t])}}function Te(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-transform",51),e.NdJ("transformChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("transform",n.availableFunctions[t])}}function me(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-httpexport",52),e.NdJ("httpExportChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("httpExport",n.availableFunctions[t])}}function Ae(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-mqttexport",53),e.NdJ("mqttExportChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("mqttExport",n.availableFunctions[t])}}function Ee(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-jsonlogic",54),e.NdJ("jsonLogicChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("jsonLogic",n.availableFunctions[t])}}function fe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-push-to-core",55),e.NdJ("pushToCoreChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("pushToCore",n.availableFunctions[t])}}function Ce(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-set-response-data",56),e.NdJ("setResponseDataChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("setResponseData",n.availableFunctions[t])}}function Ze(_,a){1&_&&(e.TgZ(0,"div"),e.TgZ(1,"div",57),e.TgZ(2,"small"),e._UZ(3,"i",17),e.TgZ(4,"span"),e.SDv(5,58),e.qZA(),e.qZA(),e.qZA(),e.qZA())}function he(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",32),e.TgZ(1,"div",33),e._UZ(2,"i",34),e.TgZ(3,"span",35),e._uU(4,"Function"),e.qZA(),e.TgZ(5,"span",36),e._uU(6),e.qZA(),e.TgZ(7,"span"),e._uU(8,"Parameters"),e.qZA(),e.TgZ(9,"span",37),e.NdJ("click",function(){const o=e.CHM(t).$implicit;return e.oxw(2).unselectFunc(o)}),e._UZ(10,"i",38),e.qZA(),e.qZA(),e.TgZ(11,"div",39),e.TgZ(12,"div",40),e.YNc(13,ae,2,1,"div",41),e.YNc(14,se,2,1,"div",41),e.YNc(15,le,2,1,"div",41),e.YNc(16,ge,2,1,"div",41),e.YNc(17,ce,2,1,"div",41),e.YNc(18,pe,2,1,"div",41),e.YNc(19,de,2,1,"div",41),e.YNc(20,ue,2,1,"div",41),e.YNc(21,Te,2,1,"div",41),e.YNc(22,me,2,1,"div",41),e.YNc(23,Ae,2,1,"div",41),e.YNc(24,Ee,2,1,"div",41),e.YNc(25,fe,2,1,"div",41),e.YNc(26,Ce,2,1,"div",41),e.YNc(27,Ze,6,0,"div",42),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw(2);e.xp6(6),e.Oqu(t),e.xp6(6),e.Q6J("ngSwitch",n.startWith(t)),e.xp6(1),e.Q6J("ngSwitchCase","AddTags"),e.xp6(1),e.Q6J("ngSwitchCase","Batch"),e.xp6(1),e.Q6J("ngSwitchCase","Compress"),e.xp6(1),e.Q6J("ngSwitchCase","Encrypt"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByDeviceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByProfileName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByResourceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterBySourceName"),e.xp6(1),e.Q6J("ngSwitchCase","Transform"),e.xp6(1),e.Q6J("ngSwitchCase","HTTPExport"),e.xp6(1),e.Q6J("ngSwitchCase","MQTTExport"),e.xp6(1),e.Q6J("ngSwitchCase","JSONLogic"),e.xp6(1),e.Q6J("ngSwitchCase","PushToCore"),e.xp6(1),e.Q6J("ngSwitchCase","SetResponseData")}}function Pe(_,a){if(1&_&&(e.TgZ(0,"div",10),e.TgZ(1,"div",11),e._UZ(2,"i",29),e.TgZ(3,"span"),e.SDv(4,30),e.qZA(),e.qZA(),e.TgZ(5,"div",13),e.YNc(6,he,28,16,"div",31),e.qZA(),e.qZA()),2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngForOf",t.selectedFunctionsName)}}let ve=(()=>{class _{constructor(){this.funcExecOrderZoneIdentifier="funcExecOrder-",this.builtinFuncZoneIdentifier="builtinFunc-",this.objectKeys=Object.keys,this.profileNames=[],this.deviceNames=[],this.availableFunctionsChange=new e.vpe,this._selectedFunctionsName=[],this.selectedFunctionsNameChange=new e.vpe,this._availableFunctions={},this.builtinFunctions={},this.initBuiltinFunctions()}get availableFunctions(){return this._availableFunctions}set availableFunctions(t){Object.assign(this._availableFunctions,t)}get selectedFunctionsName(){return this._selectedFunctionsName}set selectedFunctionsName(t){t.forEach((n,i)=>{t[i]=n.trim()}),this._selectedFunctionsName=t}ngOnInit(){}ngOnChanges(){this.setSelectedDevices(),this.setSelectedProfiles(),this.availableFunctionsChange.emit(this.availableFunctions)}startWith(t){let n="Unknown";return Object.keys(this.builtinFunctions).forEach(i=>{t.startsWith(i)&&(n=i)}),n}setSelectedDevices(){var t;(null===(t=this.availableFunctions.FilterByDeviceName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames&&(this.deviceNames=this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames.split(","))}setSelectedProfiles(){var t;(null===(t=this.availableFunctions.FilterByProfileName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByProfileName.Parameters.ProfileNames&&(this.profileNames=this.availableFunctions.FilterByProfileName.Parameters.ProfileNames.split(","))}initBuiltinFunctions(){this.builtinFunctions.AddTags={Parameters:{Tags:""}},this.builtinFunctions.Batch={Parameters:{}},this.builtinFunctions.FilterByDeviceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByProfileName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterBySourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByResourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.Transform={Parameters:{Type:"json"}},this.builtinFunctions.Compress={Parameters:{Algorithm:"gzip"}},this.builtinFunctions.Encrypt={Parameters:{Algorithm:"aes"}},this.builtinFunctions.HTTPExport={Parameters:{}},this.builtinFunctions.MQTTExport={Parameters:{}},this.builtinFunctions.PushToCore={Parameters:{}},this.builtinFunctions.SetResponseData={Parameters:{}},this.builtinFunctions.JSONLogic={Parameters:{}}}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.availableFunctions.FilterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}onDeviceNamesChange(){this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}selectOnefunc(t){this.selectedFunctionsName.push(t),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}unselectFunc(t){-1!==this.selectedFunctionsName.indexOf(t)&&(this.selectedFunctionsName.splice(this.selectedFunctionsName.indexOf(t),1),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName))}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}isSelected(t){let n=!1;return this.selectedFunctionsName.forEach(i=>{t!==i.trim()||(n=!0)}),n}ondropBuiltinFunction(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");!n||this.unselectFunc(n)}ondragstartBuiltinFunction(t,n){t.dataTransfer.setData("funcName",n)}sortSelectedFuncsExecuterOrder(t,n){let i=this.selectedFunctionsName.slice(0);i.splice(i.indexOf(t),1),i.splice(i.indexOf(n),0,t),this.selectedFunctionsName=i,this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}ondropFuncExecutionOrder(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");if(!n)return;let i=`${this.funcExecOrderZoneIdentifier}${n}`,o=t.target.id;if(i===o)return;let s=document.getElementById(i);if(s&&0===o.indexOf(this.funcExecOrderZoneIdentifier)){let d=o.replace(this.funcExecOrderZoneIdentifier,"");this.sortSelectedFuncsExecuterOrder(n,d)}else s||this.selectOnefunc(n);this.renderPopoverComponent()}ondragstartFuncExecutionOrder(t,n){t.dataTransfer.setData("funcName",n)}ondragoverFuncExecutionOrder(t){$(t.target).addClass("ml-3")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-pipeline-function"]],inputs:{availableFunctions:"availableFunctions",selectedFunctionsName:"selectedFunctionsName"},outputs:{availableFunctionsChange:"availableFunctionsChange",selectedFunctionsNameChange:"selectedFunctionsNameChange"},features:[e.TTD],decls:31,vars:5,consts:function(){let a,t,n,i,o,s,d,u;return a="Builtin Pipeline Functions",t="Selected Pipeline Functions",n="Func Execution Order",i="drag sorting is enabled",o="Drop Zone",s="Drop Zone",d="Pipeline Functions Parameter Setting",u=" Unknown pipeline function ",[[1,"row"],[1,"col-sm-4","col-md-3"],["appDragHighlight","",1,"card","mb-3",3,"drop"],[1,"card-header","font-weight-bold","text-nowrap","text-truncate"],[1,"fa","fa-file-text","mr-2","text-info"],a,[1,"card-body","overflow-auto"],["class","border-secondary rounded w-100 text-center","style","height: 70px; border: 1px; border-style: dashed;",4,"ngIf"],["draggable","true","class","mb-3","role","button",3,"id","d-table","d-none","dragstart",4,"ngFor","ngForOf"],[1,"col-sm-8","col-md-9"],[1,"card"],[1,"card-header","font-weight-bold"],t,[1,"card-body"],[1,"fa","fa-sort-amount-asc","fa-rotate-270","mr-2","text-info"],n,[1,"text-info","ml-2"],[1,"fa","fa-info-circle","mr-1"],i,["id","funcExecOrderSelectedBody",1,"card-body"],[4,"ngFor","ngForOf"],["class","card",4,"ngIf"],[1,"border-secondary","rounded","w-100","text-center",2,"height","70px","border","1px","border-style","dashed"],[1,"text-muted"],o,["draggable","true","role","button",1,"mb-3",3,"id","dragstart"],[1,"badge","badge-secondary"],s,["draggable","true","role","button",1,"badge","badge-secondary","text-nowrap","text-truncate","mr-2",3,"id","dragstart"],[1,"fa","fa-cog","mr-2","text-info"],d,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"card-header","text-nowrap","text-truncate"],[1,"fa","fa-tag","mr-2","text-info"],[1,"mr-2"],[1,"badge","badge-secondary","mr-2"],["role","button",1,"float-right","text-danger",3,"click"],[1,"fa","fa-trash"],[1,"card-body","text-nowrap"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"addTags","addTagsChange"],[3,"batch","batchChange"],[3,"compress","compressChange"],[3,"encrypt","encryptChange"],[3,"filterByDeviceName","filterByDeviceNameChange"],[3,"filterByProfileName","filterByProfileNameChange"],[3,"filterByResourceName","filterByResourceNameChange"],[3,"filterBySourceName","filterBySourceNameChange"],[3,"transform","transformChange"],[3,"httpExport","httpExportChange"],[3,"mqttExport","mqttExportChange"],[3,"jsonLogic","jsonLogicChange"],[3,"pushToCore","pushToCoreChange"],[3,"setResponseData","setResponseDataChange"],["role","alert",1,"alert","alert-warning","mb-3"],u]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("drop",function(o){return n.ondropBuiltinFunction(o)}),e.TgZ(3,"div",3),e._UZ(4,"i",4),e.TgZ(5,"span"),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.YNc(8,_e,4,0,"table",7),e.YNc(9,oe,3,7,"span",8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"div",10),e.TgZ(12,"div",11),e._UZ(13,"i",4),e.TgZ(14,"span"),e.SDv(15,12),e.qZA(),e.qZA(),e.TgZ(16,"div",13),e.TgZ(17,"div",2),e.NdJ("drop",function(o){return n.ondropFuncExecutionOrder(o)}),e.TgZ(18,"div",3),e._UZ(19,"i",14),e.TgZ(20,"span"),e.SDv(21,15),e.qZA(),e.TgZ(22,"span",16),e.TgZ(23,"small"),e._UZ(24,"i",17),e.TgZ(25,"span"),e.SDv(26,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.YNc(28,ie,4,0,"table",7),e.YNc(29,re,3,3,"span",20),e.qZA(),e.qZA(),e.YNc(30,Pe,7,1,"div",21),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("ngIf",n.selectedFunctionsName.length===n.objectKeys(n.availableFunctions).length),e.xp6(1),e.Q6J("ngForOf",n.objectKeys(n.availableFunctions)),e.xp6(19),e.Q6J("ngIf",0===n.selectedFunctionsName.length),e.xp6(1),e.Q6J("ngForOf",n.selectedFunctionsName),e.xp6(1),e.Q6J("ngIf",0!==n.selectedFunctionsName.length))},directives:[x,c.O5,c.sg,c.RF,c.n9,c.ED,F,B,D,w,H,X,Q,W,Y,k,z,K,te,ne],styles:[""]}),_})();function Se(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"li",3),e.TgZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"div",7),e.TgZ(5,"h5",16),e._uU(6),e.qZA(),e.TgZ(7,"p",9),e.TgZ(8,"span",10),e._uU(9,"ExecutionOrder:"),e.qZA(),e._uU(10),e.qZA(),e.TgZ(11,"span",10),e._uU(12,"Topics:"),e.qZA(),e._uU(13),e.TgZ(14,"span",11),e.NdJ("click",function(){const o=e.CHM(t).$implicit;return e.oxw(3).edit(o.Id)}),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit;e.xp6(6),e.Oqu(t.Id),e.xp6(4),e.hij(" ",t.ExecutionOrder," "),e.xp6(3),e.hij(" ",t.Topics," ")}}function Ne(_,a){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,Se,18,3,"li",15),e.qZA()),2&_){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.perTopicPipelines)}}function Ie(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"ul",2),e.TgZ(1,"li",3),e.TgZ(2,"div",4),e.TgZ(3,"div",5),e._UZ(4,"i",6),e.qZA(),e.TgZ(5,"div",7),e.TgZ(6,"h5",8),e._uU(7),e.qZA(),e.TgZ(8,"p",9),e.TgZ(9,"span",10),e._uU(10,"ExecutionOrder:"),e.qZA(),e._uU(11),e.qZA(),e.TgZ(12,"span",11),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return i.edit(i.defaultPipelineIdentifier)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e.SDv(15,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(16,Ne,2,1,"div",14),e.qZA()}if(2&_){const t=e.oxw();e.xp6(7),e.Oqu(t.defaultPipelineIdentifier),e.xp6(4),e.Oqu(t.pipeline.ExecutionOrder),e.xp6(5),e.Q6J("ngIf",t.perTopicPipelines)}}function Me(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",30),e.TgZ(1,"label",31),e.TgZ(2,"span"),e._uU(3,"Pipeline Topic"),e.qZA(),e.qZA(),e.TgZ(4,"div",32),e.TgZ(5,"input",38),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).pipelineTopic=i}),e.qZA(),e.TgZ(6,"div",39),e.TgZ(7,"small"),e.SDv(8,40),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(5),e.ekj("is-invalid",!t.pipelineTopic),e.Q6J("ngModel",t.pipelineTopic)}}function Re(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",18),e.TgZ(1,"div",19),e._UZ(2,"i",20),e.TgZ(3,"span"),e.SDv(4,21),e.qZA(),e.TgZ(5,"span",22),e._uU(6),e.qZA(),e.TgZ(7,"span",23),e.TgZ(8,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().save()}),e.SDv(9,25),e.qZA(),e.TgZ(10,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e.SDv(11,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",28),e.TgZ(13,"div"),e.TgZ(14,"form",29),e.TgZ(15,"div",30),e.TgZ(16,"label",31),e.TgZ(17,"span"),e._uU(18,"Pipeline ID"),e.qZA(),e.qZA(),e.TgZ(19,"div",32),e._UZ(20,"input",33),e.qZA(),e.qZA(),e.YNc(21,Me,9,3,"div",34),e.qZA(),e.qZA(),e.TgZ(22,"div",18),e.TgZ(23,"div",19),e._UZ(24,"i",35),e.TgZ(25,"span"),e.SDv(26,36),e.qZA(),e.qZA(),e.TgZ(27,"div",28),e.TgZ(28,"app-pipeline-function",37),e.NdJ("selectedFunctionsNameChange",function(i){return e.CHM(t),e.oxw().selectedFunctionsName=i})("availableFunctionsChange",function(i){return e.CHM(t),e.oxw().availableFunctions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Oqu(t.selectedPipelineID),e.xp6(2),e.Q6J("disabled",!t.pipelineTopic||!t.validate()),e.xp6(12),e.Q6J("ngModel",t.selectedPipelineID),e.xp6(1),e.Q6J("ngIf",!t.isDefaultPipelineIndetifier(t.selectedPipelineID)),e.xp6(7),e.Q6J("selectedFunctionsName",t.selectedFunctionsName)("availableFunctions",t.availableFunctions)}}let qe=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.defaultPipelineIdentifier="default-pipeline",this.isEditStatus=!1,this.selectedFunctionsName=[],this.pipelineTopic="#",this.selectedPipelineID="",this.appServiceKey="",this.perTopicPipelines=[],this.pipeline={},this.availableFunctions={}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}ngOnChanges(){this.pipeline&&(this.pipeline.PerTopicPipelines&&(this.perTopicPipelines=Object.values(this.pipeline.PerTopicPipelines)),this.availableFunctions=this.pipeline.Functions,this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","))}pipelineIDIsUnique(t){if(t===this.selectedPipelineID)return!0;if(t===this.defaultPipelineIdentifier)return!1;let n=!0;return this.perTopicPipelines.forEach(i=>{t!==i.Id||(n=!1)}),n}isDefaultPipelineIndetifier(t){return t===this.defaultPipelineIdentifier}edit(t){this.selectedPipelineID=t,this.isDefaultPipelineIndetifier(t)?this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","):this.perTopicPipelines.forEach(n=>{t===n.Id&&(this.selectedFunctionsName=n.ExecutionOrder.split(","),this.pipelineTopic=n.Topics)}),this.isEditStatus=!0,this.renderPopoverComponent()}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}validate(){let t=!0;return this.selectedFunctionsName.forEach(n=>{(n.startsWith("PushToCore")&&"Binary"===this.availableFunctions[n].Parameters.ValueType&&""===this.availableFunctions[n].Parameters.MediaType||n.startsWith("MQTTExport")&&"none"!==this.availableFunctions[n].Parameters.AuthMode&&""===this.availableFunctions[n].Parameters.SecretPath)&&(t=!1)}),t}save(){let t={},n={PerTopicPipelines:{}},i={};if(this.selectedFunctionsName.forEach(o=>{i[o]=this.availableFunctions[o]}),n.Functions=i,this.isDefaultPipelineIndetifier(this.selectedPipelineID))n.ExecutionOrder=this.getFuncExecutionOrder();else for(const[o,s]of Object.entries(this.pipeline.PerTopicPipelines))if(this.selectedPipelineID===s.Id){s.ExecutionOrder=this.getFuncExecutionOrder(),s.Topics=this.pipelineTopic,n.PerTopicPipelines[o]=s;break}t.Pipeline=n,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy Pipeline configuration",`service: ${this.appServiceKey}`),this.isEditStatus=!1,this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}cancel(){this.isEditStatus=!1}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-pipeline"]],inputs:{appServiceKey:"appServiceKey",pipeline:"pipeline"},features:[e.TTD],decls:2,vars:2,consts:function(){let a,t,n,i,o,s,d;return a="Edit",t="Edit",n="Edit Pipeline",i="Save",o="Cancel",s="Pipline Functions Setting",d="the pipeline topic can't be empty!",[["class","list-unstyled",4,"ngIf"],["class","card",4,"ngIf"],[1,"list-unstyled"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"text-dark","mt-0"],[1,"mb-0"],[1,"badge","badge-secondary","mr-1"],["role","button",1,"badge","badge-info","float-right",3,"click"],[1,"fa","fa-edit","mr-1"],a,[4,"ngIf"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"text-dark","mt-0","mb-1"],t,[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],n,[1,"ml-1","text-info"],[1,"float-right"],[1,"btn","btn-sm","btn-success","mr-1",3,"disabled","click"],i,[1,"btn","btn-sm","btn-secondary",3,"click"],o,[1,"card-body"],[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","disabled","","name","PipelineID",1,"form-control",3,"ngModel"],["class","form-group row",4,"ngIf"],[1,"fa","fa-tag","text-info","mr-1"],s,[3,"selectedFunctionsName","availableFunctions","selectedFunctionsNameChange","availableFunctionsChange"],["type","text","name","PipelineTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],d]},template:function(t,n){1&t&&(e.YNc(0,Ie,17,3,"ul",0),e.YNc(1,Re,29,6,"div",1)),2&t&&(e.Q6J("ngIf",n.pipeline&&!n.isEditStatus),e.xp6(1),e.Q6J("ngIf",n.isEditStatus))},directives:[c.O5,c.sg,r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,ve],styles:["input[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}"]}),_})(),be=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.appServiceKey="",this._insecureSecrets={},this.insecureSecretsChange=new e.vpe,this.insecureSecrets={DB:{Secrets:{}},mqtt:{Secrets:{}},http:{Secrets:{}},AES:{Secrets:{}}}}get insecureSecrets(){return this._insecureSecrets}set insecureSecrets(t){Object.assign(this._insecureSecrets,t)}ngOnInit(){}ngOnChanges(){this.insecureSecretsChange.emit(this.insecureSecrets)}save(){let t={};t.InsecureSecrets=this.insecureSecrets,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy InsecureSecrets configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-insecure-secrets"]],inputs:{appServiceKey:"appServiceKey",insecureSecrets:"insecureSecrets"},outputs:{insecureSecretsChange:"insecureSecretsChange"},features:[e.TTD],decls:107,vars:13,consts:function(){let a,t,n;return a="Edit InsecureSecrets",t="Save",n="Insecure Secrets that are used when running in non-secure mode, i.e. when Vault isn't available. This is a dynamic map of configuration, so can empty if no secrets are used or can have as many or few user-defined secrets. It simulates a Secret Store in non-secure mode. ",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],a,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],n,[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","path",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","cacert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientcert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientkey",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","headervalue",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","key",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"div",8),e.TgZ(10,"small"),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e._UZ(16,"i",13),e.TgZ(17,"span",14),e._uU(18,"DB"),e.qZA(),e.qZA(),e.TgZ(19,"div",7),e.TgZ(20,"form"),e.TgZ(21,"div",15),e.TgZ(22,"label",16),e._uU(23,"path"),e.qZA(),e.TgZ(24,"div",17),e.TgZ(25,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"label",16),e._uU(28,"username"),e.qZA(),e.TgZ(29,"div",17),e.TgZ(30,"input",19),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Secrets.username=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",15),e.TgZ(32,"label",16),e._uU(33,"password"),e.qZA(),e.TgZ(34,"div",17),e.TgZ(35,"input",20),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Secrets.password=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",11),e.TgZ(37,"div",12),e._UZ(38,"i",13),e.TgZ(39,"span",14),e._uU(40,"mqtt"),e.qZA(),e.qZA(),e.TgZ(41,"div",7),e.TgZ(42,"form"),e.TgZ(43,"div",15),e.TgZ(44,"label",16),e._uU(45,"path"),e.qZA(),e.TgZ(46,"div",17),e.TgZ(47,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",15),e.TgZ(49,"label",16),e._uU(50,"username"),e.qZA(),e.TgZ(51,"div",17),e.TgZ(52,"input",19),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.username=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",15),e.TgZ(54,"label",16),e._uU(55,"password"),e.qZA(),e.TgZ(56,"div",17),e.TgZ(57,"input",20),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.password=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",15),e.TgZ(59,"label",16),e._uU(60,"cacert"),e.qZA(),e.TgZ(61,"div",17),e.TgZ(62,"input",21),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.cacert=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",15),e.TgZ(64,"label",16),e._uU(65,"clientcert"),e.qZA(),e.TgZ(66,"div",17),e.TgZ(67,"input",22),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.clientcert=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"div",15),e.TgZ(69,"label",16),e._uU(70,"clientkey"),e.qZA(),e.TgZ(71,"div",17),e.TgZ(72,"input",23),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.clientkey=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",11),e.TgZ(74,"div",12),e._UZ(75,"i",13),e.TgZ(76,"span",14),e._uU(77,"http"),e.qZA(),e.qZA(),e.TgZ(78,"div",7),e.TgZ(79,"form"),e.TgZ(80,"div",15),e.TgZ(81,"label",16),e._uU(82,"path"),e.qZA(),e.TgZ(83,"div",17),e.TgZ(84,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.http.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",15),e.TgZ(86,"label",16),e._uU(87,"headervalue"),e.qZA(),e.TgZ(88,"div",17),e.TgZ(89,"input",24),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.http.Secrets.headervalue=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(90,"div",11),e.TgZ(91,"div",12),e._UZ(92,"i",13),e.TgZ(93,"span",14),e._uU(94,"AES"),e.qZA(),e.qZA(),e.TgZ(95,"div",7),e.TgZ(96,"form"),e.TgZ(97,"div",15),e.TgZ(98,"label",16),e._uU(99,"path"),e.qZA(),e.TgZ(100,"div",17),e.TgZ(101,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.AES.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",15),e.TgZ(103,"label",16),e._uU(104,"key"),e.qZA(),e.TgZ(105,"div",17),e.TgZ(106,"input",25),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.AES.Secrets.key=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(25),e.Q6J("ngModel",n.insecureSecrets.DB.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.password),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.mqtt.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.password),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.cacert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientcert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientkey),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.http.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.http.Secrets.headervalue),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.AES.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.AES.Secrets.key))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})(),Ue=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.appServiceKey="",this.storeAndForwardChange=new e.vpe,this.storeAndForward={Enabled:"false"}}ngOnInit(){}ngOnChanges(){this.storeAndForwardChange.emit(this.storeAndForward)}save(){let t={};t.StoreAndForward=this.storeAndForward,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy StoreAndForward configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-store-and-forward"]],inputs:{appServiceKey:"appServiceKey",storeAndForward:"storeAndForward"},outputs:{storeAndForwardChange:"storeAndForwardChange"},features:[e.TTD],decls:35,vars:3,consts:function(){let a,t;return a="Edit StoreAndForward",t="Save",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],a,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","capability allows for export functions to persist data on failure and for the export of the data to be retried at a later time.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Enabled",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","pure number",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MaxRetryCount",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","RetryInterval",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span"),e._uU(13,"Enabled"),e.qZA(),e._UZ(14,"span",10),e.qZA(),e.TgZ(15,"div",11),e.TgZ(16,"select",12),e.NdJ("ngModelChange",function(o){return n.storeAndForward.Enabled=o}),e.TgZ(17,"option",13),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span"),e._uU(24,"MaxRetryCount"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",11),e.TgZ(27,"input",16),e.NdJ("ngModelChange",function(o){return n.storeAndForward.MaxRetryCount=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",8),e.TgZ(29,"label",9),e.TgZ(30,"span"),e._uU(31,"RetryInterval"),e.qZA(),e._UZ(32,"span",17),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"input",18),e.NdJ("ngModelChange",function(o){return n.storeAndForward.RetryInterval=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(16),e.Q6J("ngModel",n.storeAndForward.Enabled),e.xp6(11),e.Q6J("ngModel",n.storeAndForward.MaxRetryCount),e.xp6(7),e.Q6J("ngModel",n.storeAndForward.RetryInterval))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();function Ge(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-trigger",15),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("configTrigger",t.configTrigger)}}function Oe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-pipeline",16),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("pipeline",t.configWritable.Pipeline)}}function xe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-insecure-secrets",17),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("insecureSecrets",t.configWritable.InsecureSecrets)}}function Fe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-store-and-forward",18),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("storeAndForward",t.configWritable.StoreAndForward)}}let ye=(()=>{class _{constructor(t,n){this.registrySvc=t,this.route=n,this.TirggerIdentifier="Trigger",this.writableIdentifier="Writable",this.configurableSection="PipelineFunc",this.appServiceKey="",this.configTrigger={},this.configWritable={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.appSvcKey&&(this.appServiceKey=t.appSvcKey,this.loadAppSvcConfig())}),this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}loadAppSvcConfig(){this.registrySvc.getAppSvcConfigBySvcKey(this.appServiceKey).subscribe(t=>{Object.assign(this.configTrigger,t[this.TirggerIdentifier]),Object.assign(this.configWritable,t[this.writableIdentifier])})}configurableSectionChange(t){this.configurableSection=t,this.renderPopoverComponent()}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(m.r),e.Y36(p.gz))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service-configurable"]],decls:29,vars:13,consts:function(){let a,t,n,i,o;return a="Configurable Setting",t="Trigger",n="Pipelines",i="Insecure Secrets",o="Store And Forward",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],[1,"mr-2","text-info"],a,[1,"card-body"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item",3,"click"],["role","button",1,"nav-link"],t,n,i,o,[4,"ngIf"],[3,"configTrigger"],[3,"appServiceKey","pipeline"],[3,"appServiceKey","insecureSecrets"],[3,"appServiceKey","storeAndForward"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e.TgZ(9,"div",0),e.TgZ(10,"div",1),e.TgZ(11,"ul",7),e.TgZ(12,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("Trigger")}),e.TgZ(13,"a",9),e.SDv(14,10),e.qZA(),e.qZA(),e.TgZ(15,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("PipelineFunc")}),e.TgZ(16,"a",9),e.SDv(17,11),e.qZA(),e.qZA(),e.TgZ(18,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("InsecureSecrets")}),e.TgZ(19,"a",9),e.SDv(20,12),e.qZA(),e.qZA(),e.TgZ(21,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("StoreAndForward")}),e.TgZ(22,"a",9),e.SDv(23,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",6),e.YNc(25,Ge,2,1,"div",14),e.YNc(26,Oe,2,2,"div",14),e.YNc(27,xe,2,2,"div",14),e.YNc(28,Fe,2,2,"div",14),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(n.appServiceKey),e.xp6(8),e.ekj("active","Trigger"===n.configurableSection),e.xp6(3),e.ekj("active","PipelineFunc"===n.configurableSection),e.xp6(3),e.ekj("active","InsecureSecrets"===n.configurableSection),e.xp6(3),e.ekj("active","StoreAndForward"===n.configurableSection),e.xp6(3),e.Q6J("ngIf","Trigger"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","PipelineFunc"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","InsecureSecrets"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","StoreAndForward"===n.configurableSection))},directives:[c.O5,O,qe,be,Ue],styles:[".appservice_wrap[_ngcontent-%COMP%]{width:100%;margin:0 auto;overflow:hidden}#appservice_left[_ngcontent-%COMP%]{width:70%;min-height:800px;float:left}#appservice_service_select[_ngcontent-%COMP%]{margin-top:1%;width:40%}#appservice_right[_ngcontent-%COMP%]{width:30%;min-height:800px;border-left:1px solid #d6e9c6;float:right}.app_left_body[_ngcontent-%COMP%]{min-height:800px}.appservice_drop_card[_ngcontent-%COMP%]{margin-top:3%;margin-bottom:3%;height:80px;width:100%;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;text-align:center}.appservice_transform[_ngcontent-%COMP%]{font-weight:bold;font-size:.5rem}.appservice_description[_ngcontent-%COMP%]{position:relative;top:25%;left:20%;font-size:smaller;float:left;text-align:center}.appservice_paramButton[_ngcontent-%COMP%]{width:30%;outline-style:none;border:1px solid #ccc;border-radius:3px;margin-top:25px;margin-right:100px;float:right}.appservice_button_group[_ngcontent-%COMP%]{float:right;margin-top:-25px}.appservice_triggers_group[_ngcontent-%COMP%]{padding:10px}.appservice_select_lable[_ngcontent-%COMP%]{text-align:right;padding-top:1%}#appservice_model[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{position:fixed;top:20%;right:0;left:0;bottom:20%;margin:auto}#appservice_model[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:79%;overflow-y:auto;position:absolute;top:55px;bottom:65px;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-right:15px}#appservice_model[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0}.modal-backdrop[_ngcontent-%COMP%]{z-index:-1!important;opacity:0!important;filter:alpha(opacity=0)!important}"]}),_})();var Je=l(8253),Be=l(1964),De=l(4294),we=l(5894),Le=l(7216);let f=(()=>{class _{constructor(t,n){this.router=t,this.registrySvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.registrySvc.ping().pipe((0,De.q)(1),(0,we.K)(i=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"registry center",routerPath:`/${n.url.split("/")[1]}`}})),(0,Le.z)(()=>(0,Be.of)(!0)))}}return _.\u0275fac=function(t){return new(t||_)(e.LFG(p.F0),e.LFG(m.r))},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const $e=[{path:"",component:I,canActivate:[Je.a,f],canActivateChild:[f],children:[{path:"",redirectTo:"app-service-list",pathMatch:"full"},{path:"app-service-list",component:q},{path:"app-service-configurable",component:ye}]}];let He=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[p.Bz.forChild($e)],p.Bz]}),_})();var Ve=l(4010);let Xe=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[c.ez,r.u5,He,Ve.MetadataModule]]}),_})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/894.407bd7f3a95dc5bc38a8.js b/cmd/edgex-ui-server/static/web/en-US/894.dc385c7f0166f0128c32.js similarity index 68% rename from cmd/edgex-ui-server/static/web/en-US/894.407bd7f3a95dc5bc38a8.js rename to cmd/edgex-ui-server/static/web/en-US/894.dc385c7f0166f0128c32.js index f3165705..a367db43 100644 --- a/cmd/edgex-ui-server/static/web/en-US/894.407bd7f3a95dc5bc38a8.js +++ b/cmd/edgex-ui-server/static/web/en-US/894.dc385c7f0166f0128c32.js @@ -1 +1 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[894],{894:(Qe,E,l)=>{l.r(E),l.d(E,{AppServiceModule:()=>Xe});var c=l(8583),r=l(3092),p=l(9502),e=l(476);let I=(()=>{class _{constructor(){}ngOnInit(){}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[p.lC],styles:[""]}),_})();var m=l(3692);const M=function(_){return{appSvcKey:_}};function R(_,a){if(1&_&&(e.TgZ(0,"li",8),e.TgZ(1,"div",9),e.TgZ(2,"div",10),e._UZ(3,"i",11),e.qZA(),e.TgZ(4,"div",12),e.TgZ(5,"div",13),e.TgZ(6,"h5",14),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",15),e._uU(10),e.qZA(),e.TgZ(11,"span",16),e._UZ(12,"i",17),e.TgZ(13,"span"),e.SDv(14,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_){const t=a.$implicit;e.xp6(7),e.hij(" ",t.ServiceId," "),e.xp6(3),e.hij("port ",t.Port,""),e.xp6(1),e.Q6J("queryParams",e.VKq(3,M,t.ServiceId))}}let q=(()=>{class _{constructor(t){this.registrySvc=t,this.appServiceList=[]}ngOnInit(){this.getAllAppSvc()}getAllAppSvc(){this.registrySvc.getAllAppSvc().subscribe(t=>{this.appServiceList=[],t.forEach(n=>{n.ServiceId.startsWith("app-")&&this.appServiceList.push(n)})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(m.r))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service-list"]],decls:8,vars:1,consts:function(){let a,t;return a="App Service List",t="Configurable",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],[1,"font-weight-bold"],a,[1,"card-body"],[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-3"],[1,"d-inline","mr-3","align-middle","text-dark"],["role","button",1,"badge","badge-info","mr-3"],["role","button","routerLink","../app-service-configurable",1,"badge","badge-secondary","float-right",3,"queryParams"],[1,"fa","fa-cog","mr-1"],t]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"ul",6),e.YNc(7,R,15,5,"li",7),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngForOf",n.appServiceList))},directives:[c.sg,p.rH],styles:[""]}),_})();function b(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,18),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e.TgZ(9,"span"),e.SDv(10,20),e.qZA(),e._UZ(11,"span",21),e.qZA(),e.TgZ(12,"div",7),e.TgZ(13,"select",8),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Type=i}),e.TgZ(14,"option",22),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",23),e._uU(17,"mqtt"),e.qZA(),e.TgZ(18,"option",24),e._uU(19,"zero"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",25),e.TgZ(21,"div",26),e.TgZ(22,"div",14),e.TgZ(23,"div",27),e._UZ(24,"i",28),e.TgZ(25,"span"),e.SDv(26,29),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.TgZ(28,"form"),e.TgZ(29,"div",3),e.TgZ(30,"label",30),e.SDv(31,31),e.qZA(),e.TgZ(32,"div",32),e.TgZ(33,"input",33),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",3),e.TgZ(35,"label",30),e.SDv(36,34),e.qZA(),e.TgZ(37,"div",32),e.TgZ(38,"input",35),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",3),e.TgZ(40,"label",30),e.SDv(41,36),e.qZA(),e.TgZ(42,"div",32),e.TgZ(43,"input",37),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",3),e.TgZ(45,"label",38),e.SDv(46,39),e.qZA(),e.TgZ(47,"div",40),e.TgZ(48,"input",41),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",26),e.TgZ(50,"div",14),e.TgZ(51,"div",27),e._UZ(52,"i",28),e.TgZ(53,"span"),e._uU(54,"Publish Host"),e.qZA(),e.qZA(),e.TgZ(55,"div",19),e.TgZ(56,"form"),e.TgZ(57,"div",3),e.TgZ(58,"label",30),e.SDv(59,42),e.qZA(),e.TgZ(60,"div",32),e.TgZ(61,"input",33),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",3),e.TgZ(63,"label",30),e.SDv(64,43),e.qZA(),e.TgZ(65,"div",32),e.TgZ(66,"input",35),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",3),e.TgZ(68,"label",30),e.SDv(69,44),e.qZA(),e.TgZ(70,"div",32),e.TgZ(71,"input",37),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",3),e.TgZ(73,"label",30),e.SDv(74,45),e.qZA(),e.TgZ(75,"div",32),e.TgZ(76,"input",46),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.PublishTopic=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",25),e.TgZ(78,"div",47),e.TgZ(79,"div",48),e.TgZ(80,"div",27),e._UZ(81,"i",28),e.TgZ(82,"span"),e.SDv(83,49),e.qZA(),e.qZA(),e.TgZ(84,"div",19),e.TgZ(85,"form"),e.TgZ(86,"div",3),e.TgZ(87,"label",4),e._uU(88,"ClientId"),e.qZA(),e.TgZ(89,"div",7),e.TgZ(90,"input",50),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(91,"div",3),e.TgZ(92,"label",4),e._uU(93,"Qos"),e.qZA(),e.TgZ(94,"div",7),e.TgZ(95,"input",51),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Qos=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(96,"div",3),e.TgZ(97,"label",4),e._uU(98,"KeepAlive"),e.qZA(),e.TgZ(99,"div",7),e.TgZ(100,"input",52),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(101,"div",3),e.TgZ(102,"label",4),e._uU(103,"Retained"),e.qZA(),e.TgZ(104,"div",7),e.TgZ(105,"select",53),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Retained=i}),e.TgZ(106,"option",54),e._uU(107,"false"),e.qZA(),e.TgZ(108,"option",55),e._uU(109,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(110,"div",3),e.TgZ(111,"label",4),e._uU(112,"AutoReconnect"),e.qZA(),e.TgZ(113,"div",7),e.TgZ(114,"select",56),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.AutoReconnect=i}),e.TgZ(115,"option",54),e._uU(116,"false"),e.qZA(),e.TgZ(117,"option",55),e._uU(118,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(119,"div",3),e.TgZ(120,"label",4),e._uU(121,"ConnectTimeout"),e.qZA(),e.TgZ(122,"div",7),e.TgZ(123,"input",57),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(124,"div",3),e.TgZ(125,"label",4),e._uU(126,"authmode"),e.qZA(),e.TgZ(127,"div",7),e.TgZ(128,"select",58),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.authmode=i}),e.TgZ(129,"option",59),e._uU(130,"none"),e.qZA(),e.TgZ(131,"option",60),e._uU(132,"usernamepassword"),e.qZA(),e.TgZ(133,"option",61),e._uU(134,"clientcert"),e.qZA(),e.TgZ(135,"option",62),e._uU(136,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(137,"div",3),e.TgZ(138,"label",4),e._uU(139,"SkipCertVerify"),e.qZA(),e.TgZ(140,"div",7),e.TgZ(141,"select",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.SkipCertVerify=i}),e.TgZ(142,"option",54),e._uU(143,"false"),e.qZA(),e.TgZ(144,"option",55),e._uU(145,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(146,"div",3),e.TgZ(147,"label",4),e._uU(148,"secretname"),e.qZA(),e.TgZ(149,"div",7),e.TgZ(150,"input",64),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.secretname=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Type),e.xp6(20),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.PublishTopic),e.xp6(14),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Qos),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Retained),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.authmode),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.secretname)}}function U(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e._uU(4,"External MQTT Trigger"),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e._uU(9,"Url"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",65),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Url=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",3),e.TgZ(13,"label",4),e._uU(14,"SubscribeTopics"),e.qZA(),e.TgZ(15,"div",7),e.TgZ(16,"input",41),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SubscribeTopics=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",3),e.TgZ(18,"label",4),e._uU(19,"PublishTopic"),e.qZA(),e.TgZ(20,"div",7),e.TgZ(21,"input",46),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.PublishTopic=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",3),e.TgZ(23,"label",4),e._uU(24,"ClientId"),e.qZA(),e.TgZ(25,"div",7),e.TgZ(26,"input",50),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",3),e.TgZ(28,"label",4),e._uU(29,"ConnectTimeout"),e.qZA(),e.TgZ(30,"div",7),e.TgZ(31,"input",57),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"div",3),e.TgZ(33,"label",4),e._uU(34,"AutoReconnect"),e.qZA(),e.TgZ(35,"div",7),e.TgZ(36,"select",56),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AutoReconnect=i}),e.TgZ(37,"option",54),e._uU(38,"false"),e.qZA(),e.TgZ(39,"option",55),e._uU(40,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",3),e.TgZ(42,"label",4),e._uU(43,"KeepAlive"),e.qZA(),e.TgZ(44,"div",7),e.TgZ(45,"input",52),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",3),e.TgZ(47,"label",4),e._uU(48,"QoS"),e.qZA(),e.TgZ(49,"div",7),e.TgZ(50,"input",66),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.QoS=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",3),e.TgZ(52,"label",4),e._uU(53,"Retain"),e.qZA(),e.TgZ(54,"div",7),e.TgZ(55,"select",53),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Retain=i}),e.TgZ(56,"option",54),e._uU(57,"false"),e.qZA(),e.TgZ(58,"option",55),e._uU(59,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(60,"div",3),e.TgZ(61,"label",4),e._uU(62,"SkipCertVerify"),e.qZA(),e.TgZ(63,"div",7),e.TgZ(64,"select",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SkipCertVerify=i}),e.TgZ(65,"option",54),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",55),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",3),e.TgZ(70,"label",4),e._uU(71,"SecretPath"),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"input",67),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SecretPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(74,"div",3),e.TgZ(75,"label",4),e._uU(76,"AuthMode"),e.qZA(),e.TgZ(77,"div",7),e.TgZ(78,"select",68),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AuthMode=i}),e.TgZ(79,"option",59),e._uU(80,"none"),e.qZA(),e.TgZ(81,"option",60),e._uU(82,"usernamepassword"),e.qZA(),e.TgZ(83,"option",61),e._uU(84,"clientcert"),e.qZA(),e.TgZ(85,"option",62),e._uU(86,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(11),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Url),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SubscribeTopics),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.PublishTopic),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.QoS),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Retain),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SecretPath),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AuthMode)}}function G(_,a){1&_&&(e.TgZ(0,"div",48),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,69),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"div",0),e.TgZ(7,"small"),e._UZ(8,"i",1),e.TgZ(9,"span"),e.SDv(10,70),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA())}let O=(()=>{class _{constructor(){this._configTrigger={},this.configTriggerChange=new e.vpe,this.configTrigger={},this.configTrigger.EdgexMessageBus={Optional:{},SubscribeHost:{},PublishHost:{}},this.configTrigger.EdgexMessageBus.Optional={},this.configTrigger.ExternalMqtt={},this.configTrigger.HTTP={}}get configTrigger(){return this._configTrigger}set configTrigger(t){Object.assign(this._configTrigger,t)}ngOnInit(){this.renderPopoverComponent()}ngOnChanges(){this.configTriggerChange.emit(this.configTrigger)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}onTriggerSelected(){this.renderPopoverComponent()}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-trigger"]],inputs:{configTrigger:"configTrigger"},outputs:{configTriggerChange:"configTriggerChange"},features:[e.TTD],decls:24,vars:4,consts:function(){let a,t,n,i,o,s,d,u,T,C,Z,h,P,v,S,N;return a=" App service needs to restart when Trigger is changed, so this section only lets user to know what Trigger the app service used right now! " + "\ufffd#6\ufffd\ufffd/#6\ufffd" + " And Next, UI will support user to change the Trigger section. ",t="Type",n="EdgexMessageBus Trigger",i="Type",o="Subscribe Host",s="Host",d="Port",u="Protocol",T="SubscribeTopics",C="Host",Z="Port",h="Protocol",P="PublishTopic",v="Optional",S="HTTP Trigger",N="no optional fields needs to setup for http trigger",[["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],a,[1,"form-group","row"],[1,"col-sm-2","col-form-label"],t,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Trigger type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","edgex-messagebus"],["value","external-mqtt"],["value","http"],["class","card mb-3",4,"ngIf"],["class","card",4,"ngIf"],[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],n,[1,"card-body"],i,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","EdgeX Message Bus type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["value","redis"],["value","mqtt"],["value","zero"],[1,"row"],[1,"col-sm-6","col-md-6"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tag","mr-2","text-danger"],o,[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],s,[1,"col-sm-9"],["type","text","name","Host",1,"form-control",3,"ngModel","ngModelChange"],d,["type","text","name","Port",1,"form-control",3,"ngModel","ngModelChange"],u,["type","text","name","Protocol",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-3","col-md-3","col-form-label","text-nowrap","text-truncate"],T,[1,"col-sm-9","col-md-9"],["type","text","name","SubscribeTopics",1,"form-control",3,"ngModel","ngModelChange"],C,Z,h,P,["type","text","name","PublishTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-12","col-md-12"],[1,"card"],v,["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Qos",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","authmode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","secretname",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","QoS",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],S,N]},template:function(t,n){1&t&&(e.TgZ(0,"div"),e.TgZ(1,"div",0),e.TgZ(2,"small"),e._UZ(3,"i",1),e.TgZ(4,"span"),e.tHW(5,2),e._UZ(6,"br"),e.N_p(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"form"),e.TgZ(8,"div",3),e.TgZ(9,"label",4),e.TgZ(10,"span"),e.SDv(11,5),e.qZA(),e._UZ(12,"span",6),e.qZA(),e.TgZ(13,"div",7),e.TgZ(14,"select",8),e.NdJ("ngModelChange",function(o){return n.configTrigger.Type=o})("ngModelChange",function(){return n.onTriggerSelected()}),e.TgZ(15,"option",9),e._uU(16,"edgex-messagebus"),e.qZA(),e.TgZ(17,"option",10),e._uU(18,"external-mqtt"),e.qZA(),e.TgZ(19,"option",11),e._uU(20,"http"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(21,b,151,18,"div",12),e.YNc(22,U,87,12,"div",12),e.YNc(23,G,11,0,"div",13),e.qZA()),2&t&&(e.xp6(14),e.Q6J("ngModel",n.configTrigger.Type),e.xp6(7),e.Q6J("ngIf","edgex-messagebus"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","external-mqtt"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","http"===n.configTrigger.Type))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,c.O5,r.Fj],styles:[""]}),_})();var A=l(7822);let x=(()=>{class _{constructor(t){this.el=t,this.classes="border border-info shadow-lg bg-white rounded"}ondragover(t){t.preventDefault(),this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.add(i)})}ondragenter(t){}ondragend(t){}ondragleave(t){this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.remove(i)})}ondragexit(t){}ondrop(t){this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.remove(i)})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(e.SBq))},_.\u0275dir=e.lG2({type:_,selectors:[["","appDragHighlight",""]],hostBindings:function(t,n){1&t&&e.NdJ("dragover",function(o){return n.ondragover(o)})("dragenter",function(o){return n.ondragenter(o)})("dragend",function(o){return n.ondragend(o)})("dragleave",function(o){return n.ondragleave(o)})("dragexit",function(o){return n.ondragexit(o)})("drop",function(o){return n.ondrop(o)})}}),_})(),F=(()=>{class _{constructor(){this.addTagsChange=new e.vpe,this.addTags={Parameters:{Tags:""}}}ngOnInit(){}ngOnChanges(){this.addTagsChange.emit(this.addTags)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-add-tags"]],inputs:{addTags:"addTags"},outputs:{addTagsChange:"addTagsChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","String containing comma separated list of tag key/value pairs. The tag key/value pairs are colon seperated,\n for example: \n GatewayId:HoustonStore000123,Latitude:29.630771,Longitude:-95.377603",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","Tags",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Tags"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(o){return n.addTags.Parameters.Tags=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.addTags.Parameters.Tags))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function y(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"BatchThreshold"),e.qZA(),e._UZ(4,"span",12),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",13),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().batch.Parameters.BatchThreshold=i}),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.BatchThreshold)}}function J(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"TimeInterval"),e.qZA(),e._UZ(4,"span",14),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",15),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().batch.Parameters.TimeInterval=i}),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.TimeInterval)}}let B=(()=>{class _{constructor(){this.batchChange=new e.vpe,this.batch={Parameters:{Mode:"bycount",IsEventData:"true"}}}ngOnInit(){}ngOnChanges(){this.batchChange.emit(this.batch)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-batch"]],inputs:{batch:"batch"},outputs:{batchChange:"batchChange"},features:[e.TTD],decls:26,vars:4,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Mode",1,"custom-select",3,"ngModel","ngModelChange"],["value","bycount"],["value","bytime"],["value","bytimecount"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","If true, specifies that the data being batch is Events and to un-marshal the batched data to []Event prior to returning the batched data. By default the batched data returned is [][]byte",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","IsEventData",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Number of items to batch before sending batched items to the next function in the pipeline.
\n Used with "bycount" and "bytimecount" modes',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","BatchThreshold",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Amount of time to batch before sending batched items to the next function in the pipeline.
\n Used with "bytime" and "bytimecount" modes,
\n
\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","TimeInterval",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Mode"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"select",3),e.NdJ("ngModelChange",function(o){return n.batch.Parameters.Mode=o}),e.TgZ(7,"option",4),e._uU(8,"bycount"),e.qZA(),e.TgZ(9,"option",5),e._uU(10,"bytime"),e.qZA(),e.TgZ(11,"option",6),e._uU(12,"bytimecount"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(13,y,7,1,"div",7),e.YNc(14,J,7,1,"div",7),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"IsEventData"),e.qZA(),e._UZ(19,"span",8),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"select",9),e.NdJ("ngModelChange",function(o){return n.batch.Parameters.IsEventData=o}),e.TgZ(22,"option",10),e._uU(23,"false"),e.qZA(),e.TgZ(24,"option",11),e._uU(25,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngIf","bycount"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(1),e.Q6J("ngIf","bytime"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngModel",n.batch.Parameters.IsEventData))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,c.O5,r.Fj],styles:[""]}),_})(),D=(()=>{class _{constructor(){this.compressChange=new e.vpe,this.compress={Parameters:{Algorithm:"gzip"}}}ngOnInit(){}ngOnChanges(){this.compressChange.emit(this.compress)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-compress"]],inputs:{compress:"compress"},outputs:{compressChange:"compressChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","gzip"],["value","zlib"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.compress.Parameters.Algorithm=o}),e.TgZ(6,"option",4),e._uU(7,"gzip"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"zlib"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.compress.Parameters.Algorithm))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),w=(()=>{class _{constructor(){this.encryptChange=new e.vpe,this.encrypt={Parameters:{Algorithm:"aes256"}}}ngOnInit(){}ngOnChanges(){this.encryptChange.emit(this.encrypt)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-encrypt"]],inputs:{encrypt:"encrypt"},outputs:{encryptChange:"encryptChange"},features:[e.TTD],decls:22,vars:3,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","aes256"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Path in the Secret Store where the encryption key is located.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Name of the secret for the encryption key in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.Algorithm=o}),e.TgZ(6,"option",4),e._uU(7,"aes256"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e.TgZ(9,"label",1),e.TgZ(10,"span"),e._uU(11,"SecretPath"),e.qZA(),e._UZ(12,"span",5),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.SecretPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"SecretName"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.SecretName=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.encrypt.Parameters.Algorithm),e.xp6(9),e.Q6J("ngModel",n.encrypt.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.encrypt.Parameters.SecretName))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();var L=l(1302);let H=(()=>{class _{constructor(){this.filterByDeviceNameChange=new e.vpe,this.deviceNames=[],this.filterByDeviceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.deviceNames=this.filterByDeviceName.Parameters.DeviceNames.split(","),this.filterByDeviceNameChange.emit(this.filterByDeviceName)}onDeviceNamesChange(){this.filterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-device-name"]],inputs:{filterByDeviceName:"filterByDeviceName"},outputs:{filterByDeviceNameChange:"filterByDeviceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"deviceSelected","deviceSelectedChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the device names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"DeviceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-combo-list",3),e.NdJ("deviceSelectedChange",function(o){return n.deviceNames=o})("deviceSelectedChange",function(){return n.onDeviceNamesChange()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByDeviceName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("deviceSelected",n.deviceNames),e.xp6(7),e.Q6J("ngModel",n.filterByDeviceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,L.h,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})();var V=l(6322);let X=(()=>{class _{constructor(){this.filterByProfileNameChange=new e.vpe,this.profileNames=[],this.filterByProfileName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.profileNames=this.filterByProfileName.Parameters.ProfileNames.split(","),this.filterByProfileNameChange.emit(this.filterByProfileName)}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.filterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-profile-name"]],inputs:{filterByProfileName:"filterByProfileName"},outputs:{filterByProfileNameChange:"filterByProfileNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"selectedProfiles","deviceProfileSelectedEvent"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the profile names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ProfileNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-profile-combo-list",3),e.NdJ("deviceProfileSelectedEvent",function(o){return n.onDeviceProfileSelectedEvent(o)}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByProfileName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("selectedProfiles",n.profileNames),e.xp6(7),e.Q6J("ngModel",n.filterByProfileName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,V.o,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),Q=(()=>{class _{constructor(){this.filterByResourceNameChange=new e.vpe,this.filterByResourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterByResourceNameChange.emit(this.filterByResourceName)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-resource-name"]],inputs:{filterByResourceName:"filterByResourceName"},outputs:{filterByResourceNameChange:"filterByResourceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ResourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the resource names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ResourceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(o){return n.filterByResourceName.Parameters.ResourceNames=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByResourceName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.filterByResourceName.Parameters.ResourceNames),e.xp6(7),e.Q6J("ngModel",n.filterByResourceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr],styles:[""]}),_})(),W=(()=>{class _{constructor(){this.filterBySourceNameChange=new e.vpe,this.filterBySourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterBySourceNameChange.emit(this.filterBySourceName)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-source-name"]],inputs:{filterBySourceName:"filterBySourceName"},outputs:{filterBySourceNameChange:"filterBySourceNameChange"},features:[e.TTD],decls:18,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","SourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the source names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"SourceNames"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",3),e.NdJ("ngModelChange",function(o){return n.filterBySourceName.Parameters.SourceNames=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",0),e.TgZ(8,"label",1),e.TgZ(9,"span"),e._uU(10,"FilterOut"),e.qZA(),e._UZ(11,"span",4),e.qZA(),e.TgZ(12,"div",2),e.TgZ(13,"select",5),e.NdJ("ngModelChange",function(o){return n.filterBySourceName.Parameters.FilterOut=o}),e.TgZ(14,"option",6),e._uU(15,"false"),e.qZA(),e.TgZ(16,"option",7),e._uU(17,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.filterBySourceName.Parameters.SourceNames),e.xp6(7),e.Q6J("ngModel",n.filterBySourceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr],styles:[""]}),_})(),Y=(()=>{class _{constructor(){this.transformChange=new e.vpe,this.transform={Parameters:{Type:"json"}}}ngOnInit(){}ngOnChanges(){this.transformChange.emit(this.transform)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-transform"]],inputs:{transform:"transform"},outputs:{transformChange:"transformChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","json"],["value","xml"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Type"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.transform.Parameters.Type=o}),e.TgZ(6,"option",4),e._uU(7,"json"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"xml"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.transform.Parameters.Type))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),k=(()=>{class _{constructor(){this.httpExportChange=new e.vpe,this.httpExport={Parameters:{Method:"post",MimeType:"application/json",PersistOnError:"false",ContinueOnSendError:"true",ReturnInputData:"false"}}}ngOnInit(){}ngOnChanges(){this.httpExportChange.emit(this.httpExport)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-httpexport"]],inputs:{httpExport:"httpExport"},outputs:{httpExportChange:"httpExportChange"},features:[e.TTD],decls:76,vars:9,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Method",1,"custom-select",3,"ngModel","ngModelChange"],["value","post"],["value","put"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Optional mime type for the data. Defaults to application/json if not set.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MimeType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports, if true continues after send error so next export function executes.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["name","ContinueOnSendError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports if true, passes the input data to next export function.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ReturnInputData",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the header key to add to the HTTP header",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","HeaderName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Path in the secret in the Secret Store where to header value is stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the secret for the header value in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Method"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.Method=o}),e.TgZ(6,"option",4),e._uU(7,"post"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"put"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",0),e.TgZ(11,"label",1),e._uU(12,"Url"),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.Url=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"MimeType"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.MimeType=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",0),e.TgZ(23,"label",1),e.TgZ(24,"span"),e._uU(25,"PersistOnError"),e.qZA(),e._UZ(26,"span",9),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"select",10),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.PersistOnError=o}),e.TgZ(29,"option",11),e._uU(30,"false"),e.qZA(),e.TgZ(31,"option",12),e._uU(32,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",0),e.TgZ(34,"label",13),e.TgZ(35,"span"),e._uU(36,"ContinueOnSendError"),e.qZA(),e._UZ(37,"span",14),e.qZA(),e.TgZ(38,"div",15),e.TgZ(39,"select",16),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.ContinueOnSendError=o}),e.TgZ(40,"option",11),e._uU(41,"false"),e.qZA(),e.TgZ(42,"option",12),e._uU(43,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",0),e.TgZ(45,"label",1),e.TgZ(46,"span"),e._uU(47,"ReturnInputData"),e.qZA(),e._UZ(48,"span",17),e.qZA(),e.TgZ(49,"div",2),e.TgZ(50,"select",18),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.ReturnInputData=o}),e.TgZ(51,"option",11),e._uU(52,"false"),e.qZA(),e.TgZ(53,"option",12),e._uU(54,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",0),e.TgZ(56,"label",1),e.TgZ(57,"span"),e._uU(58,"HeaderName"),e.qZA(),e._UZ(59,"span",19),e.qZA(),e.TgZ(60,"div",2),e.TgZ(61,"input",20),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.HeaderName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",0),e.TgZ(63,"label",1),e.TgZ(64,"span"),e._uU(65,"SecretPath"),e.qZA(),e._UZ(66,"span",21),e.qZA(),e.TgZ(67,"div",2),e.TgZ(68,"input",22),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.SecretPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",0),e.TgZ(70,"label",1),e.TgZ(71,"span"),e._uU(72,"SecretName"),e.qZA(),e._UZ(73,"span",23),e.qZA(),e.TgZ(74,"div",2),e.TgZ(75,"input",24),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.SecretName=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.httpExport.Parameters.Method),e.xp6(9),e.Q6J("ngModel",n.httpExport.Parameters.Url),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.MimeType),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ContinueOnSendError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ReturnInputData),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.HeaderName),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretName))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();function j(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"SecretPath"),e.qZA(),e._UZ(4,"span",27),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"input",28),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().mqttExport.Parameters.SecretPath=i}),e.qZA(),e.TgZ(7,"div",29),e.TgZ(8,"small"),e.SDv(9,30),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.mqttExport.Parameters.SecretPath),e.Q6J("ngModel",t.mqttExport.Parameters.SecretPath)}}let z=(()=>{class _{constructor(){this.mqttExportChange=new e.vpe,this.mqttExport={Parameters:{Qos:"0",AutoReconnect:"true",Retain:"true",SkipVerify:"true",PersistOnError:"false",AuthMode:"none"}}}ngOnInit(){}ngOnChanges(){this.mqttExportChange.emit(this.mqttExport)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}authModeIsNotNone(){return this.renderPopoverComponent(),"none"!==this.mqttExport.Parameters.AuthMode}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-mqttexport"]],inputs:{mqttExport:"mqttExport"},outputs:{mqttExportChange:"mqttExportChange"},features:[e.TTD],decls:85,vars:10,consts:function(){let a;return a="the SecretPath can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","tcp://broker-host:1883",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","BrokerAddress",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Topic",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],["value","0"],["value","1"],["value","2"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the certificate verification should be skipped.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","SkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Mode of authentication to use when connecting to the MQTT Broker.
\n
\n none - No authentication required.
\n
\n usernamepassword - Use username and password authentication. The Secret Store (Vault or InsecureSecrets) must contain the username and password secrets.
\n
\n clientcert - Use Client Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the clientkey and clientcert secrets.
\n
\n cacert - Use CA Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the cacert secret.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Path in the secret store where to authorization secrets are stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],a]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e.TgZ(3,"span"),e._uU(4,"BrokerAddress"),e.qZA(),e._UZ(5,"span",3),e.qZA(),e.TgZ(6,"div",4),e.TgZ(7,"input",5),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.BrokerAddress=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",1),e.TgZ(9,"label",2),e._uU(10,"Topic"),e.qZA(),e.TgZ(11,"div",4),e.TgZ(12,"input",6),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Topic=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"label",2),e._uU(15,"ClientId"),e.qZA(),e.TgZ(16,"div",4),e.TgZ(17,"input",7),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.ClientId=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",1),e.TgZ(19,"label",2),e._uU(20,"Qos"),e.qZA(),e.TgZ(21,"div",4),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Qos=o}),e.TgZ(23,"option",9),e._uU(24,"0"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"1"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"div",1),e.TgZ(30,"label",2),e._uU(31,"AutoReconnect"),e.qZA(),e.TgZ(32,"div",4),e.TgZ(33,"select",12),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.AutoReconnect=o}),e.TgZ(34,"option",13),e._uU(35,"false"),e.qZA(),e.TgZ(36,"option",14),e._uU(37,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",1),e.TgZ(39,"label",2),e._uU(40,"Retain"),e.qZA(),e.TgZ(41,"div",4),e.TgZ(42,"select",15),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Retain=o}),e.TgZ(43,"option",13),e._uU(44,"false"),e.qZA(),e.TgZ(45,"option",14),e._uU(46,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(47,"div",1),e.TgZ(48,"label",2),e.TgZ(49,"span"),e._uU(50,"SkipVerify"),e.qZA(),e._UZ(51,"span",16),e.qZA(),e.TgZ(52,"div",4),e.TgZ(53,"select",17),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.SkipVerify=o}),e.TgZ(54,"option",13),e._uU(55,"false"),e.qZA(),e.TgZ(56,"option",14),e._uU(57,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",1),e.TgZ(59,"label",2),e.TgZ(60,"span"),e._uU(61,"PersistOnError"),e.qZA(),e._UZ(62,"span",18),e.qZA(),e.TgZ(63,"div",4),e.TgZ(64,"select",19),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.PersistOnError=o}),e.TgZ(65,"option",13),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",14),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",1),e.TgZ(70,"label",2),e.TgZ(71,"span"),e._uU(72,"AuthMode"),e.qZA(),e._UZ(73,"span",20),e.qZA(),e.TgZ(74,"div",4),e.TgZ(75,"select",21),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.AuthMode=o}),e.TgZ(76,"option",22),e._uU(77,"none"),e.qZA(),e.TgZ(78,"option",23),e._uU(79,"usernamepassword"),e.qZA(),e.TgZ(80,"option",24),e._uU(81,"clientcert"),e.qZA(),e.TgZ(82,"option",25),e._uU(83,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(84,j,10,3,"div",26),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.mqttExport.Parameters.BrokerAddress),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Topic),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.ClientId),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Qos),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AutoReconnect),e.xp6(9),e.Q6J("ngModel",n.mqttExport.Parameters.Retain),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.SkipVerify),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AuthMode),e.xp6(9),e.Q6J("ngIf",n.authModeIsNotNone()))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,c.O5],styles:[""]}),_})(),K=(()=>{class _{constructor(){this.jsonLogicChange=new e.vpe,this.jsonLogic={Parameters:{Rule:""}}}ngOnInit(){}ngOnChanges(){this.jsonLogicChange.emit(this.jsonLogic)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-jsonlogic"]],inputs:{jsonLogic:"jsonLogic"},outputs:{jsonLogicChange:"jsonLogicChange"},features:[e.TTD],decls:6,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","Rule",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Rule"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(o){return n.jsonLogic.Parameters.Rule=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.jsonLogic.Parameters.Rule))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function ee(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"MediaType"),e.qZA(),e._UZ(4,"span",22),e.qZA(),e.TgZ(5,"div",3),e.TgZ(6,"input",23),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().pushToCore.Parameters.MediaType=i}),e.qZA(),e.TgZ(7,"div",24),e.TgZ(8,"small"),e.SDv(9,25),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.pushToCore.Parameters.MediaType),e.Q6J("ngModel",t.pushToCore.Parameters.MediaType)}}let te=(()=>{class _{constructor(){this.pushToCoreChange=new e.vpe,this.pushToCore={Parameters:{ValueType:"String"}}}ngOnInit(){}ngOnChanges(){this.pushToCoreChange.emit(this.pushToCore)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}valueTypeIsBinary(){return this.renderPopoverComponent(),"Binary"===this.pushToCore.Parameters.ValueType}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-push-to-core"]],inputs:{pushToCore:"pushToCore"},outputs:{pushToCoreChange:"pushToCoreChange"},features:[e.TTD],decls:48,vars:5,consts:function(){let a;return a="the MediaType can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ProfileName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","DeviceName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ResourceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Value type to use the new Event Reading's value type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ValueType",1,"custom-select",3,"ngModel","ngModelChange"],["value","Bool"],["value","Int8"],["value","Int64"],["value","Uint8"],["value","Uint64"],["value","Float32"],["value","Float64"],["value","String"],["value","Binary"],["value","Object"],["value","Float32Array"],["value","BoolArray"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Media type to use the new Event Reading's value type. Required when the value type is Binary",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MediaType",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],a]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e._uU(3,"ProfileName"),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"input",4),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ProfileName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",1),e.TgZ(7,"label",2),e._uU(8,"DeviceName"),e.qZA(),e.TgZ(9,"div",3),e.TgZ(10,"input",5),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.DeviceName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",1),e.TgZ(12,"label",2),e._uU(13,"ResourceName"),e.qZA(),e.TgZ(14,"div",3),e.TgZ(15,"input",6),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ResourceName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"div",1),e.TgZ(17,"label",2),e.TgZ(18,"span"),e._uU(19,"ValueType"),e.qZA(),e._UZ(20,"span",7),e.qZA(),e.TgZ(21,"div",3),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ValueType=o}),e.TgZ(23,"option",9),e._uU(24,"Bool"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"Int8"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"Int64"),e.qZA(),e.TgZ(29,"option",12),e._uU(30,"Uint8"),e.qZA(),e.TgZ(31,"option",13),e._uU(32,"Uint64"),e.qZA(),e.TgZ(33,"option",14),e._uU(34,"Float32"),e.qZA(),e.TgZ(35,"option",15),e._uU(36,"Float64"),e.qZA(),e.TgZ(37,"option",16),e._uU(38,"String"),e.qZA(),e.TgZ(39,"option",17),e._uU(40,"Binary"),e.qZA(),e.TgZ(41,"option",18),e._uU(42,"Object"),e.qZA(),e.TgZ(43,"option",19),e._uU(44,"Float32Array"),e.qZA(),e.TgZ(45,"option",20),e._uU(46,"BoolArray"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(47,ee,10,3,"div",21),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ProfileName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.DeviceName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ResourceName),e.xp6(7),e.Q6J("ngModel",n.pushToCore.Parameters.ValueType),e.xp6(25),e.Q6J("ngIf",n.valueTypeIsBinary()))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,c.O5],styles:[""]}),_})(),ne=(()=>{class _{constructor(){this.setResponseDataChange=new e.vpe,this.setResponseData={Parameters:{ResponseContentType:""}}}ngOnInit(){}ngOnChanges(){this.setResponseDataChange.emit(this.setResponseData)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-set-response-data"]],inputs:{setResponseData:"setResponseData"},outputs:{setResponseDataChange:"setResponseDataChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Used to specify content-type header for response, for example, application/json",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["type","text","name","ResponseContentType",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"ResponseContentType"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(o){return n.setResponseData.Parameters.ResponseContentType=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.setResponseData.Parameters.ResponseContentType))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function _e(_,a){1&_&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,24),e.qZA(),e.qZA(),e.qZA())}function oe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"span",25),e.NdJ("dragstart",function(i){const s=e.CHM(t).$implicit;return e.oxw().ondragstartBuiltinFunction(i,s)}),e.TgZ(1,"span",26),e._uU(2),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.ekj("d-table",!n.isSelected(t))("d-none",n.isSelected(t)),e.hYB("id","",n.builtinFuncZoneIdentifier,"",t,""),e.xp6(2),e.Oqu(t)}}function ie(_,a){1&_&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,27),e.qZA(),e.qZA(),e.qZA())}function re(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",28),e.NdJ("dragstart",function(i){const s=e.CHM(t).$implicit;return e.oxw().ondragstartFuncExecutionOrder(i,s)}),e._uU(2),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.xp6(1),e.hYB("id","",n.funcExecOrderZoneIdentifier,"",t,""),e.xp6(1),e.Oqu(t)}}function ae(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-add-tags",43),e.NdJ("addTagsChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("addTags",n.availableFunctions[t])}}function se(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-batch",44),e.NdJ("batchChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("batch",n.availableFunctions[t])}}function le(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-compress",45),e.NdJ("compressChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("compress",n.availableFunctions[t])}}function ge(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-encrypt",46),e.NdJ("encryptChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("encrypt",n.availableFunctions[t])}}function ce(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-device-name",47),e.NdJ("filterByDeviceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByDeviceName",n.availableFunctions[t])}}function pe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-profile-name",48),e.NdJ("filterByProfileNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByProfileName",n.availableFunctions[t])}}function de(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-resource-name",49),e.NdJ("filterByResourceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByResourceName",n.availableFunctions[t])}}function ue(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-source-name",50),e.NdJ("filterBySourceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterBySourceName",n.availableFunctions[t])}}function Te(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-transform",51),e.NdJ("transformChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("transform",n.availableFunctions[t])}}function me(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-httpexport",52),e.NdJ("httpExportChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("httpExport",n.availableFunctions[t])}}function Ae(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-mqttexport",53),e.NdJ("mqttExportChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("mqttExport",n.availableFunctions[t])}}function Ee(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-jsonlogic",54),e.NdJ("jsonLogicChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("jsonLogic",n.availableFunctions[t])}}function fe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-push-to-core",55),e.NdJ("pushToCoreChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("pushToCore",n.availableFunctions[t])}}function Ce(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-set-response-data",56),e.NdJ("setResponseDataChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("setResponseData",n.availableFunctions[t])}}function Ze(_,a){1&_&&(e.TgZ(0,"div"),e.TgZ(1,"div",57),e.TgZ(2,"small"),e._UZ(3,"i",17),e.TgZ(4,"span"),e.SDv(5,58),e.qZA(),e.qZA(),e.qZA(),e.qZA())}function he(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",32),e.TgZ(1,"div",33),e._UZ(2,"i",34),e.TgZ(3,"span",35),e._uU(4,"Function"),e.qZA(),e.TgZ(5,"span",36),e._uU(6),e.qZA(),e.TgZ(7,"span"),e._uU(8,"Parameters"),e.qZA(),e.TgZ(9,"span",37),e.NdJ("click",function(){const o=e.CHM(t).$implicit;return e.oxw(2).unselectFunc(o)}),e._UZ(10,"i",38),e.qZA(),e.qZA(),e.TgZ(11,"div",39),e.TgZ(12,"div",40),e.YNc(13,ae,2,1,"div",41),e.YNc(14,se,2,1,"div",41),e.YNc(15,le,2,1,"div",41),e.YNc(16,ge,2,1,"div",41),e.YNc(17,ce,2,1,"div",41),e.YNc(18,pe,2,1,"div",41),e.YNc(19,de,2,1,"div",41),e.YNc(20,ue,2,1,"div",41),e.YNc(21,Te,2,1,"div",41),e.YNc(22,me,2,1,"div",41),e.YNc(23,Ae,2,1,"div",41),e.YNc(24,Ee,2,1,"div",41),e.YNc(25,fe,2,1,"div",41),e.YNc(26,Ce,2,1,"div",41),e.YNc(27,Ze,6,0,"div",42),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw(2);e.xp6(6),e.Oqu(t),e.xp6(6),e.Q6J("ngSwitch",n.startWith(t)),e.xp6(1),e.Q6J("ngSwitchCase","AddTags"),e.xp6(1),e.Q6J("ngSwitchCase","Batch"),e.xp6(1),e.Q6J("ngSwitchCase","Compress"),e.xp6(1),e.Q6J("ngSwitchCase","Encrypt"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByDeviceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByProfileName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByResourceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterBySourceName"),e.xp6(1),e.Q6J("ngSwitchCase","Transform"),e.xp6(1),e.Q6J("ngSwitchCase","HTTPExport"),e.xp6(1),e.Q6J("ngSwitchCase","MQTTExport"),e.xp6(1),e.Q6J("ngSwitchCase","JSONLogic"),e.xp6(1),e.Q6J("ngSwitchCase","PushToCore"),e.xp6(1),e.Q6J("ngSwitchCase","SetResponseData")}}function Pe(_,a){if(1&_&&(e.TgZ(0,"div",10),e.TgZ(1,"div",11),e._UZ(2,"i",29),e.TgZ(3,"span"),e.SDv(4,30),e.qZA(),e.qZA(),e.TgZ(5,"div",13),e.YNc(6,he,28,16,"div",31),e.qZA(),e.qZA()),2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngForOf",t.selectedFunctionsName)}}let ve=(()=>{class _{constructor(){this.funcExecOrderZoneIdentifier="funcExecOrder-",this.builtinFuncZoneIdentifier="builtinFunc-",this.objectKeys=Object.keys,this.profileNames=[],this.deviceNames=[],this.availableFunctionsChange=new e.vpe,this._selectedFunctionsName=[],this.selectedFunctionsNameChange=new e.vpe,this._availableFunctions={},this.builtinFunctions={},this.initBuiltinFunctions()}get availableFunctions(){return this._availableFunctions}set availableFunctions(t){Object.assign(this._availableFunctions,t)}get selectedFunctionsName(){return this._selectedFunctionsName}set selectedFunctionsName(t){t.forEach((n,i)=>{t[i]=n.trim()}),this._selectedFunctionsName=t}ngOnInit(){}ngOnChanges(){this.setSelectedDevices(),this.setSelectedProfiles(),this.availableFunctionsChange.emit(this.availableFunctions)}startWith(t){let n="Unknown";return Object.keys(this.builtinFunctions).forEach(i=>{t.startsWith(i)&&(n=i)}),n}setSelectedDevices(){var t;(null===(t=this.availableFunctions.FilterByDeviceName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames&&(this.deviceNames=this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames.split(","))}setSelectedProfiles(){var t;(null===(t=this.availableFunctions.FilterByProfileName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByProfileName.Parameters.ProfileNames&&(this.profileNames=this.availableFunctions.FilterByProfileName.Parameters.ProfileNames.split(","))}initBuiltinFunctions(){this.builtinFunctions.AddTags={Parameters:{Tags:""}},this.builtinFunctions.Batch={Parameters:{}},this.builtinFunctions.FilterByDeviceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByProfileName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterBySourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByResourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.Transform={Parameters:{Type:"json"}},this.builtinFunctions.Compress={Parameters:{Algorithm:"gzip"}},this.builtinFunctions.Encrypt={Parameters:{Algorithm:"aes"}},this.builtinFunctions.HTTPExport={Parameters:{}},this.builtinFunctions.MQTTExport={Parameters:{}},this.builtinFunctions.PushToCore={Parameters:{}},this.builtinFunctions.SetResponseData={Parameters:{}},this.builtinFunctions.JSONLogic={Parameters:{}}}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.availableFunctions.FilterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}onDeviceNamesChange(){this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}selectOnefunc(t){this.selectedFunctionsName.push(t),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}unselectFunc(t){-1!==this.selectedFunctionsName.indexOf(t)&&(this.selectedFunctionsName.splice(this.selectedFunctionsName.indexOf(t),1),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName))}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}isSelected(t){let n=!1;return this.selectedFunctionsName.forEach(i=>{t!==i.trim()||(n=!0)}),n}ondropBuiltinFunction(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");!n||this.unselectFunc(n)}ondragstartBuiltinFunction(t,n){t.dataTransfer.setData("funcName",n)}sortSelectedFuncsExecuterOrder(t,n){let i=this.selectedFunctionsName.slice(0);i.splice(i.indexOf(t),1),i.splice(i.indexOf(n),0,t),this.selectedFunctionsName=i,this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}ondropFuncExecutionOrder(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");if(!n)return;let i=`${this.funcExecOrderZoneIdentifier}${n}`,o=t.target.id;if(i===o)return;let s=document.getElementById(i);if(s&&0===o.indexOf(this.funcExecOrderZoneIdentifier)){let d=o.replace(this.funcExecOrderZoneIdentifier,"");this.sortSelectedFuncsExecuterOrder(n,d)}else s||this.selectOnefunc(n);this.renderPopoverComponent()}ondragstartFuncExecutionOrder(t,n){t.dataTransfer.setData("funcName",n)}ondragoverFuncExecutionOrder(t){$(t.target).addClass("ml-3")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-pipeline-function"]],inputs:{availableFunctions:"availableFunctions",selectedFunctionsName:"selectedFunctionsName"},outputs:{availableFunctionsChange:"availableFunctionsChange",selectedFunctionsNameChange:"selectedFunctionsNameChange"},features:[e.TTD],decls:31,vars:5,consts:function(){let a,t,n,i,o,s,d,u;return a="Builtin Pipeline Functions",t="Selected Pipeline Functions",n="Func Execution Order",i="drag sorting is enabled",o="Drop Zone",s="Drop Zone",d="Pipeline Functions Parameter Setting",u=" Unknown pipeline function ",[[1,"row"],[1,"col-sm-4","col-md-3"],["appDragHighlight","",1,"card","mb-3",3,"drop"],[1,"card-header","font-weight-bold","text-nowrap","text-truncate"],[1,"fa","fa-file-text","mr-2","text-info"],a,[1,"card-body","overflow-auto"],["class","border-secondary rounded w-100 text-center","style","height: 70px; border: 1px; border-style: dashed;",4,"ngIf"],["draggable","true","class","mb-3","role","button",3,"id","d-table","d-none","dragstart",4,"ngFor","ngForOf"],[1,"col-sm-8","col-md-9"],[1,"card"],[1,"card-header","font-weight-bold"],t,[1,"card-body"],[1,"fa","fa-sort-amount-asc","fa-rotate-270","mr-2","text-info"],n,[1,"text-info","ml-2"],[1,"fa","fa-info-circle","mr-1"],i,["id","funcExecOrderSelectedBody",1,"card-body"],[4,"ngFor","ngForOf"],["class","card",4,"ngIf"],[1,"border-secondary","rounded","w-100","text-center",2,"height","70px","border","1px","border-style","dashed"],[1,"text-muted"],o,["draggable","true","role","button",1,"mb-3",3,"id","dragstart"],[1,"badge","badge-secondary"],s,["draggable","true","role","button",1,"badge","badge-secondary","text-nowrap","text-truncate","mr-2",3,"id","dragstart"],[1,"fa","fa-cog","mr-2","text-info"],d,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"card-header","text-nowrap","text-truncate"],[1,"fa","fa-tag","mr-2","text-info"],[1,"mr-2"],[1,"badge","badge-secondary","mr-2"],["role","button",1,"float-right","text-danger",3,"click"],[1,"fa","fa-trash"],[1,"card-body","text-nowrap"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"addTags","addTagsChange"],[3,"batch","batchChange"],[3,"compress","compressChange"],[3,"encrypt","encryptChange"],[3,"filterByDeviceName","filterByDeviceNameChange"],[3,"filterByProfileName","filterByProfileNameChange"],[3,"filterByResourceName","filterByResourceNameChange"],[3,"filterBySourceName","filterBySourceNameChange"],[3,"transform","transformChange"],[3,"httpExport","httpExportChange"],[3,"mqttExport","mqttExportChange"],[3,"jsonLogic","jsonLogicChange"],[3,"pushToCore","pushToCoreChange"],[3,"setResponseData","setResponseDataChange"],["role","alert",1,"alert","alert-warning","mb-3"],u]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("drop",function(o){return n.ondropBuiltinFunction(o)}),e.TgZ(3,"div",3),e._UZ(4,"i",4),e.TgZ(5,"span"),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.YNc(8,_e,4,0,"table",7),e.YNc(9,oe,3,7,"span",8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"div",10),e.TgZ(12,"div",11),e._UZ(13,"i",4),e.TgZ(14,"span"),e.SDv(15,12),e.qZA(),e.qZA(),e.TgZ(16,"div",13),e.TgZ(17,"div",2),e.NdJ("drop",function(o){return n.ondropFuncExecutionOrder(o)}),e.TgZ(18,"div",3),e._UZ(19,"i",14),e.TgZ(20,"span"),e.SDv(21,15),e.qZA(),e.TgZ(22,"span",16),e.TgZ(23,"small"),e._UZ(24,"i",17),e.TgZ(25,"span"),e.SDv(26,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.YNc(28,ie,4,0,"table",7),e.YNc(29,re,3,3,"span",20),e.qZA(),e.qZA(),e.YNc(30,Pe,7,1,"div",21),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("ngIf",n.selectedFunctionsName.length===n.objectKeys(n.availableFunctions).length),e.xp6(1),e.Q6J("ngForOf",n.objectKeys(n.availableFunctions)),e.xp6(19),e.Q6J("ngIf",0===n.selectedFunctionsName.length),e.xp6(1),e.Q6J("ngForOf",n.selectedFunctionsName),e.xp6(1),e.Q6J("ngIf",0!==n.selectedFunctionsName.length))},directives:[x,c.O5,c.sg,c.RF,c.n9,c.ED,F,B,D,w,H,X,Q,W,Y,k,z,K,te,ne],styles:[""]}),_})();function Se(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"li",3),e.TgZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"div",7),e.TgZ(5,"h5",16),e._uU(6),e.qZA(),e.TgZ(7,"p",9),e.TgZ(8,"span",10),e._uU(9,"ExecutionOrder:"),e.qZA(),e._uU(10),e.qZA(),e.TgZ(11,"span",10),e._uU(12,"Topics:"),e.qZA(),e._uU(13),e.TgZ(14,"span",11),e.NdJ("click",function(){const o=e.CHM(t).$implicit;return e.oxw(3).edit(o.Id)}),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit;e.xp6(6),e.Oqu(t.Id),e.xp6(4),e.hij(" ",t.ExecutionOrder," "),e.xp6(3),e.hij(" ",t.Topics," ")}}function Ne(_,a){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,Se,18,3,"li",15),e.qZA()),2&_){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.perTopicPipelines)}}function Ie(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"ul",2),e.TgZ(1,"li",3),e.TgZ(2,"div",4),e.TgZ(3,"div",5),e._UZ(4,"i",6),e.qZA(),e.TgZ(5,"div",7),e.TgZ(6,"h5",8),e._uU(7),e.qZA(),e.TgZ(8,"p",9),e.TgZ(9,"span",10),e._uU(10,"ExecutionOrder:"),e.qZA(),e._uU(11),e.qZA(),e.TgZ(12,"span",11),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return i.edit(i.defaultPipelineIdentifier)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e.SDv(15,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(16,Ne,2,1,"div",14),e.qZA()}if(2&_){const t=e.oxw();e.xp6(7),e.Oqu(t.defaultPipelineIdentifier),e.xp6(4),e.Oqu(t.pipeline.ExecutionOrder),e.xp6(5),e.Q6J("ngIf",t.perTopicPipelines)}}function Me(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",30),e.TgZ(1,"label",31),e.TgZ(2,"span"),e._uU(3,"Pipeline Topic"),e.qZA(),e.qZA(),e.TgZ(4,"div",32),e.TgZ(5,"input",38),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).pipelineTopic=i}),e.qZA(),e.TgZ(6,"div",39),e.TgZ(7,"small"),e.SDv(8,40),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(5),e.ekj("is-invalid",!t.pipelineTopic),e.Q6J("ngModel",t.pipelineTopic)}}function Re(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",18),e.TgZ(1,"div",19),e._UZ(2,"i",20),e.TgZ(3,"span"),e.SDv(4,21),e.qZA(),e.TgZ(5,"span",22),e._uU(6),e.qZA(),e.TgZ(7,"span",23),e.TgZ(8,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().save()}),e.SDv(9,25),e.qZA(),e.TgZ(10,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e.SDv(11,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",28),e.TgZ(13,"div"),e.TgZ(14,"form",29),e.TgZ(15,"div",30),e.TgZ(16,"label",31),e.TgZ(17,"span"),e._uU(18,"Pipeline ID"),e.qZA(),e.qZA(),e.TgZ(19,"div",32),e._UZ(20,"input",33),e.qZA(),e.qZA(),e.YNc(21,Me,9,3,"div",34),e.qZA(),e.qZA(),e.TgZ(22,"div",18),e.TgZ(23,"div",19),e._UZ(24,"i",35),e.TgZ(25,"span"),e.SDv(26,36),e.qZA(),e.qZA(),e.TgZ(27,"div",28),e.TgZ(28,"app-pipeline-function",37),e.NdJ("selectedFunctionsNameChange",function(i){return e.CHM(t),e.oxw().selectedFunctionsName=i})("availableFunctionsChange",function(i){return e.CHM(t),e.oxw().availableFunctions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Oqu(t.selectedPipelineID),e.xp6(2),e.Q6J("disabled",!t.pipelineTopic||!t.validate()),e.xp6(12),e.Q6J("ngModel",t.selectedPipelineID),e.xp6(1),e.Q6J("ngIf",!t.isDefaultPipelineIndetifier(t.selectedPipelineID)),e.xp6(7),e.Q6J("selectedFunctionsName",t.selectedFunctionsName)("availableFunctions",t.availableFunctions)}}let qe=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.defaultPipelineIdentifier="default-pipeline",this.isEditStatus=!1,this.selectedFunctionsName=[],this.pipelineTopic="#",this.selectedPipelineID="",this.appServiceKey="",this.perTopicPipelines=[],this.pipeline={},this.availableFunctions={}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}ngOnChanges(){this.pipeline&&(this.pipeline.PerTopicPipelines&&(this.perTopicPipelines=Object.values(this.pipeline.PerTopicPipelines)),this.availableFunctions=this.pipeline.Functions,this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","))}pipelineIDIsUnique(t){if(t===this.selectedPipelineID)return!0;if(t===this.defaultPipelineIdentifier)return!1;let n=!0;return this.perTopicPipelines.forEach(i=>{t!==i.Id||(n=!1)}),n}isDefaultPipelineIndetifier(t){return t===this.defaultPipelineIdentifier}edit(t){this.selectedPipelineID=t,this.isDefaultPipelineIndetifier(t)?this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","):this.perTopicPipelines.forEach(n=>{t===n.Id&&(this.selectedFunctionsName=n.ExecutionOrder.split(","),this.pipelineTopic=n.Topics)}),this.isEditStatus=!0,this.renderPopoverComponent()}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}validate(){let t=!0;return this.selectedFunctionsName.forEach(n=>{(n.startsWith("PushToCore")&&"Binary"===this.availableFunctions[n].Parameters.ValueType&&""===this.availableFunctions[n].Parameters.MediaType||n.startsWith("MQTTExport")&&"none"!==this.availableFunctions[n].Parameters.AuthMode&&""===this.availableFunctions[n].Parameters.SecretPath)&&(t=!1)}),t}save(){let t={},n={PerTopicPipelines:{}},i={};if(this.selectedFunctionsName.forEach(o=>{i[o]=this.availableFunctions[o]}),n.Functions=i,this.isDefaultPipelineIndetifier(this.selectedPipelineID))n.ExecutionOrder=this.getFuncExecutionOrder();else for(const[o,s]of Object.entries(this.pipeline.PerTopicPipelines))if(this.selectedPipelineID===s.Id){s.ExecutionOrder=this.getFuncExecutionOrder(),s.Topics=this.pipelineTopic,n.PerTopicPipelines[o]=s;break}t.Pipeline=n,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy Pipeline configuration",`service: ${this.appServiceKey}`),this.isEditStatus=!1,this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}cancel(){this.isEditStatus=!1}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-pipeline"]],inputs:{appServiceKey:"appServiceKey",pipeline:"pipeline"},features:[e.TTD],decls:2,vars:2,consts:function(){let a,t,n,i,o,s,d;return a="Edit",t="Edit",n="Edit Pipeline",i="Save",o="Cancel",s="Pipline Functions Setting",d="the pipeline topic can't be empty!",[["class","list-unstyled",4,"ngIf"],["class","card",4,"ngIf"],[1,"list-unstyled"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"text-dark","mt-0"],[1,"mb-0"],[1,"badge","badge-secondary","mr-1"],["role","button",1,"badge","badge-info","float-right",3,"click"],[1,"fa","fa-edit","mr-1"],a,[4,"ngIf"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"text-dark","mt-0","mb-1"],t,[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],n,[1,"ml-1","text-info"],[1,"float-right"],[1,"btn","btn-sm","btn-success","mr-1",3,"disabled","click"],i,[1,"btn","btn-sm","btn-secondary",3,"click"],o,[1,"card-body"],[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","disabled","","name","PipelineID",1,"form-control",3,"ngModel"],["class","form-group row",4,"ngIf"],[1,"fa","fa-tag","text-info","mr-1"],s,[3,"selectedFunctionsName","availableFunctions","selectedFunctionsNameChange","availableFunctionsChange"],["type","text","name","PipelineTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],d]},template:function(t,n){1&t&&(e.YNc(0,Ie,17,3,"ul",0),e.YNc(1,Re,29,6,"div",1)),2&t&&(e.Q6J("ngIf",n.pipeline&&!n.isEditStatus),e.xp6(1),e.Q6J("ngIf",n.isEditStatus))},directives:[c.O5,c.sg,r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,ve],styles:["input[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}"]}),_})(),be=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.appServiceKey="",this._insecureSecrets={},this.insecureSecretsChange=new e.vpe,this.insecureSecrets={DB:{Secrets:{}},mqtt:{Secrets:{}},http:{Secrets:{}},AES:{Secrets:{}}}}get insecureSecrets(){return this._insecureSecrets}set insecureSecrets(t){Object.assign(this._insecureSecrets,t)}ngOnInit(){}ngOnChanges(){this.insecureSecretsChange.emit(this.insecureSecrets)}save(){let t={};t.InsecureSecrets=this.insecureSecrets,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy InsecureSecrets configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-insecure-secrets"]],inputs:{appServiceKey:"appServiceKey",insecureSecrets:"insecureSecrets"},outputs:{insecureSecretsChange:"insecureSecretsChange"},features:[e.TTD],decls:107,vars:13,consts:function(){let a,t,n;return a="Edit InsecureSecrets",t="Save",n="Insecure Secrets that are used when running in non-secure mode, i.e. when Vault isn't available. This is a dynamic map of configuration, so can empty if no secrets are used or can have as many or few user-defined secrets. It simulates a Secret Store in non-secure mode. ",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],a,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],n,[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","path",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","cacert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientcert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientkey",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","headervalue",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","key",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"div",8),e.TgZ(10,"small"),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e._UZ(16,"i",13),e.TgZ(17,"span",14),e._uU(18,"DB"),e.qZA(),e.qZA(),e.TgZ(19,"div",7),e.TgZ(20,"form"),e.TgZ(21,"div",15),e.TgZ(22,"label",16),e._uU(23,"path"),e.qZA(),e.TgZ(24,"div",17),e.TgZ(25,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"label",16),e._uU(28,"username"),e.qZA(),e.TgZ(29,"div",17),e.TgZ(30,"input",19),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Secrets.username=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",15),e.TgZ(32,"label",16),e._uU(33,"password"),e.qZA(),e.TgZ(34,"div",17),e.TgZ(35,"input",20),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Secrets.password=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",11),e.TgZ(37,"div",12),e._UZ(38,"i",13),e.TgZ(39,"span",14),e._uU(40,"mqtt"),e.qZA(),e.qZA(),e.TgZ(41,"div",7),e.TgZ(42,"form"),e.TgZ(43,"div",15),e.TgZ(44,"label",16),e._uU(45,"path"),e.qZA(),e.TgZ(46,"div",17),e.TgZ(47,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",15),e.TgZ(49,"label",16),e._uU(50,"username"),e.qZA(),e.TgZ(51,"div",17),e.TgZ(52,"input",19),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.username=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",15),e.TgZ(54,"label",16),e._uU(55,"password"),e.qZA(),e.TgZ(56,"div",17),e.TgZ(57,"input",20),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.password=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",15),e.TgZ(59,"label",16),e._uU(60,"cacert"),e.qZA(),e.TgZ(61,"div",17),e.TgZ(62,"input",21),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.cacert=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",15),e.TgZ(64,"label",16),e._uU(65,"clientcert"),e.qZA(),e.TgZ(66,"div",17),e.TgZ(67,"input",22),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.clientcert=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"div",15),e.TgZ(69,"label",16),e._uU(70,"clientkey"),e.qZA(),e.TgZ(71,"div",17),e.TgZ(72,"input",23),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.clientkey=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",11),e.TgZ(74,"div",12),e._UZ(75,"i",13),e.TgZ(76,"span",14),e._uU(77,"http"),e.qZA(),e.qZA(),e.TgZ(78,"div",7),e.TgZ(79,"form"),e.TgZ(80,"div",15),e.TgZ(81,"label",16),e._uU(82,"path"),e.qZA(),e.TgZ(83,"div",17),e.TgZ(84,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.http.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",15),e.TgZ(86,"label",16),e._uU(87,"headervalue"),e.qZA(),e.TgZ(88,"div",17),e.TgZ(89,"input",24),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.http.Secrets.headervalue=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(90,"div",11),e.TgZ(91,"div",12),e._UZ(92,"i",13),e.TgZ(93,"span",14),e._uU(94,"AES"),e.qZA(),e.qZA(),e.TgZ(95,"div",7),e.TgZ(96,"form"),e.TgZ(97,"div",15),e.TgZ(98,"label",16),e._uU(99,"path"),e.qZA(),e.TgZ(100,"div",17),e.TgZ(101,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.AES.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",15),e.TgZ(103,"label",16),e._uU(104,"key"),e.qZA(),e.TgZ(105,"div",17),e.TgZ(106,"input",25),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.AES.Secrets.key=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(25),e.Q6J("ngModel",n.insecureSecrets.DB.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.password),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.mqtt.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.password),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.cacert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientcert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientkey),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.http.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.http.Secrets.headervalue),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.AES.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.AES.Secrets.key))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})(),Ue=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.appServiceKey="",this.storeAndForwardChange=new e.vpe,this.storeAndForward={Enabled:"false"}}ngOnInit(){}ngOnChanges(){this.storeAndForwardChange.emit(this.storeAndForward)}save(){let t={};t.StoreAndForward=this.storeAndForward,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy StoreAndForward configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-store-and-forward"]],inputs:{appServiceKey:"appServiceKey",storeAndForward:"storeAndForward"},outputs:{storeAndForwardChange:"storeAndForwardChange"},features:[e.TTD],decls:35,vars:3,consts:function(){let a,t;return a="Edit StoreAndForward",t="Save",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],a,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","capability allows for export functions to persist data on failure and for the export of the data to be retried at a later time.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Enabled",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","pure number",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MaxRetryCount",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","RetryInterval",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span"),e._uU(13,"Enabled"),e.qZA(),e._UZ(14,"span",10),e.qZA(),e.TgZ(15,"div",11),e.TgZ(16,"select",12),e.NdJ("ngModelChange",function(o){return n.storeAndForward.Enabled=o}),e.TgZ(17,"option",13),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span"),e._uU(24,"MaxRetryCount"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",11),e.TgZ(27,"input",16),e.NdJ("ngModelChange",function(o){return n.storeAndForward.MaxRetryCount=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",8),e.TgZ(29,"label",9),e.TgZ(30,"span"),e._uU(31,"RetryInterval"),e.qZA(),e._UZ(32,"span",17),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"input",18),e.NdJ("ngModelChange",function(o){return n.storeAndForward.RetryInterval=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(16),e.Q6J("ngModel",n.storeAndForward.Enabled),e.xp6(11),e.Q6J("ngModel",n.storeAndForward.MaxRetryCount),e.xp6(7),e.Q6J("ngModel",n.storeAndForward.RetryInterval))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();function Ge(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-trigger",15),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("configTrigger",t.configTrigger)}}function Oe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-pipeline",16),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("pipeline",t.configWritable.Pipeline)}}function xe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-insecure-secrets",17),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("insecureSecrets",t.configWritable.InsecureSecrets)}}function Fe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-store-and-forward",18),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("storeAndForward",t.configWritable.StoreAndForward)}}let ye=(()=>{class _{constructor(t,n){this.registrySvc=t,this.route=n,this.TirggerIdentifier="Trigger",this.writableIdentifier="Writable",this.configurableSection="PipelineFunc",this.appServiceKey="",this.configTrigger={},this.configWritable={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.appSvcKey&&(this.appServiceKey=t.appSvcKey,this.loadAppSvcConfig())}),this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}loadAppSvcConfig(){this.registrySvc.getAppSvcConfigBySvcKey(this.appServiceKey).subscribe(t=>{Object.assign(this.configTrigger,t[this.TirggerIdentifier]),Object.assign(this.configWritable,t[this.writableIdentifier])})}configurableSectionChange(t){this.configurableSection=t,this.renderPopoverComponent()}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(m.r),e.Y36(p.gz))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service-configurable"]],decls:29,vars:13,consts:function(){let a,t,n,i,o;return a="Configurable Setting",t="Trigger",n="Pipelines",i="Insecure Secrets",o="Store And Forward",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],[1,"mr-2","text-info"],a,[1,"card-body"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item",3,"click"],["role","button",1,"nav-link"],t,n,i,o,[4,"ngIf"],[3,"configTrigger"],[3,"appServiceKey","pipeline"],[3,"appServiceKey","insecureSecrets"],[3,"appServiceKey","storeAndForward"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e.TgZ(9,"div",0),e.TgZ(10,"div",1),e.TgZ(11,"ul",7),e.TgZ(12,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("Trigger")}),e.TgZ(13,"a",9),e.SDv(14,10),e.qZA(),e.qZA(),e.TgZ(15,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("PipelineFunc")}),e.TgZ(16,"a",9),e.SDv(17,11),e.qZA(),e.qZA(),e.TgZ(18,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("InsecureSecrets")}),e.TgZ(19,"a",9),e.SDv(20,12),e.qZA(),e.qZA(),e.TgZ(21,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("StoreAndForward")}),e.TgZ(22,"a",9),e.SDv(23,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",6),e.YNc(25,Ge,2,1,"div",14),e.YNc(26,Oe,2,2,"div",14),e.YNc(27,xe,2,2,"div",14),e.YNc(28,Fe,2,2,"div",14),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(n.appServiceKey),e.xp6(8),e.ekj("active","Trigger"===n.configurableSection),e.xp6(3),e.ekj("active","PipelineFunc"===n.configurableSection),e.xp6(3),e.ekj("active","InsecureSecrets"===n.configurableSection),e.xp6(3),e.ekj("active","StoreAndForward"===n.configurableSection),e.xp6(3),e.Q6J("ngIf","Trigger"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","PipelineFunc"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","InsecureSecrets"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","StoreAndForward"===n.configurableSection))},directives:[c.O5,O,qe,be,Ue],styles:[".appservice_wrap[_ngcontent-%COMP%]{width:100%;margin:0 auto;overflow:hidden}#appservice_left[_ngcontent-%COMP%]{width:70%;min-height:800px;float:left}#appservice_service_select[_ngcontent-%COMP%]{margin-top:1%;width:40%}#appservice_right[_ngcontent-%COMP%]{width:30%;min-height:800px;border-left:1px solid #d6e9c6;float:right}.app_left_body[_ngcontent-%COMP%]{min-height:800px}.appservice_drop_card[_ngcontent-%COMP%]{margin-top:3%;margin-bottom:3%;height:80px;width:100%;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;text-align:center}.appservice_transform[_ngcontent-%COMP%]{font-weight:bold;font-size:.5rem}.appservice_description[_ngcontent-%COMP%]{position:relative;top:25%;left:20%;font-size:smaller;float:left;text-align:center}.appservice_paramButton[_ngcontent-%COMP%]{width:30%;outline-style:none;border:1px solid #ccc;border-radius:3px;margin-top:25px;margin-right:100px;float:right}.appservice_button_group[_ngcontent-%COMP%]{float:right;margin-top:-25px}.appservice_triggers_group[_ngcontent-%COMP%]{padding:10px}.appservice_select_lable[_ngcontent-%COMP%]{text-align:right;padding-top:1%}#appservice_model[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{position:fixed;top:20%;right:0;left:0;bottom:20%;margin:auto}#appservice_model[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:79%;overflow-y:auto;position:absolute;top:55px;bottom:65px;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-right:15px}#appservice_model[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0}.modal-backdrop[_ngcontent-%COMP%]{z-index:-1!important;opacity:0!important;filter:alpha(opacity=0)!important}"]}),_})();var Je=l(8253),Be=l(1964),De=l(4294),we=l(5894),Le=l(7216);let f=(()=>{class _{constructor(t,n){this.router=t,this.registrySvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.registrySvc.ping().pipe((0,De.q)(1),(0,we.K)(i=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"registry center",routerPath:`/${n.url.split("/")[1]}`}})),(0,Le.z)(()=>(0,Be.of)(!0)))}}return _.\u0275fac=function(t){return new(t||_)(e.LFG(p.F0),e.LFG(m.r))},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const $e=[{path:"",component:I,canActivate:[Je.a,f],canActivateChild:[f],children:[{path:"",redirectTo:"app-service-list",pathMatch:"full"},{path:"app-service-list",component:q},{path:"app-service-configurable",component:ye}]}];let He=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[p.Bz.forChild($e)],p.Bz]}),_})();var Ve=l(4010);let Xe=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[c.ez,r.u5,He,Ve.MetadataModule]]}),_})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[894],{894:(Xe,Z,g)=>{g.r(Z),g.d(Z,{AppServiceModule:()=>He});var _=g(8583),a=g(3092),p=g(9502),e=g(476);let M=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-app-service"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[p.lC],styles:[""]}),o})();var m=g(3692);const q=function(o){return{appSvcKey:o}};function I(o,s){if(1&o&&(e.TgZ(0,"li",8),e.TgZ(1,"div",9),e.TgZ(2,"div",10),e._UZ(3,"i",11),e.qZA(),e.TgZ(4,"div",12),e.TgZ(5,"div",13),e.TgZ(6,"h5",14),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",15),e._uU(10),e.qZA(),e.TgZ(11,"span",16),e._UZ(12,"i",17),e.TgZ(13,"span"),e.SDv(14,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&o){const t=s.$implicit;e.xp6(7),e.hij(" ",t.ServiceId," "),e.xp6(3),e.hij("port ",t.Port,""),e.xp6(1),e.Q6J("queryParams",e.VKq(3,q,t.ServiceId))}}let R=(()=>{class o{constructor(t){this.registrySvc=t,this.appServiceList=[]}ngOnInit(){this.getAllAppSvc()}getAllAppSvc(){this.registrySvc.getAllAppSvc().subscribe(t=>{this.appServiceList=[],t.forEach(n=>{n.ServiceId.startsWith("app-")&&this.appServiceList.push(n)})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(m.r))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-app-service-list"]],decls:8,vars:1,consts:function(){let s,t;return s="App Service List",t="Configurable",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],[1,"font-weight-bold"],s,[1,"card-body"],[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-3"],[1,"d-inline","mr-3","align-middle","text-dark"],["role","button",1,"badge","badge-info","mr-3"],["role","button","routerLink","../app-service-configurable",1,"badge","badge-secondary","float-right",3,"queryParams"],[1,"fa","fa-cog","mr-1"],t]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"ul",6),e.YNc(7,I,15,5,"li",7),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngForOf",n.appServiceList))},directives:[_.sg,p.rH],styles:[""]}),o})();function b(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,18),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e.TgZ(9,"span"),e.SDv(10,20),e.qZA(),e._UZ(11,"span",21),e.qZA(),e.TgZ(12,"div",7),e.TgZ(13,"select",8),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Type=r}),e.TgZ(14,"option",22),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",23),e._uU(17,"mqtt"),e.qZA(),e.TgZ(18,"option",24),e._uU(19,"zero"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",25),e.TgZ(21,"div",26),e.TgZ(22,"div",14),e.TgZ(23,"div",27),e._UZ(24,"i",28),e.TgZ(25,"span"),e.SDv(26,29),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.TgZ(28,"form"),e.TgZ(29,"div",3),e.TgZ(30,"label",30),e.SDv(31,31),e.qZA(),e.TgZ(32,"div",32),e.TgZ(33,"input",33),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Host=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",3),e.TgZ(35,"label",30),e.SDv(36,34),e.qZA(),e.TgZ(37,"div",32),e.TgZ(38,"input",35),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Port=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",3),e.TgZ(40,"label",30),e.SDv(41,36),e.qZA(),e.TgZ(42,"div",32),e.TgZ(43,"input",37),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Protocol=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",3),e.TgZ(45,"label",38),e.SDv(46,39),e.qZA(),e.TgZ(47,"div",40),e.TgZ(48,"input",41),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics=r}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",26),e.TgZ(50,"div",14),e.TgZ(51,"div",27),e._UZ(52,"i",28),e.TgZ(53,"span"),e._uU(54,"Publish Host"),e.qZA(),e.qZA(),e.TgZ(55,"div",19),e.TgZ(56,"form"),e.TgZ(57,"div",3),e.TgZ(58,"label",30),e.SDv(59,42),e.qZA(),e.TgZ(60,"div",32),e.TgZ(61,"input",33),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Host=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",3),e.TgZ(63,"label",30),e.SDv(64,43),e.qZA(),e.TgZ(65,"div",32),e.TgZ(66,"input",35),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Port=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",3),e.TgZ(68,"label",30),e.SDv(69,44),e.qZA(),e.TgZ(70,"div",32),e.TgZ(71,"input",37),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Protocol=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",3),e.TgZ(73,"label",30),e.SDv(74,45),e.qZA(),e.TgZ(75,"div",32),e.TgZ(76,"input",46),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.PublishTopic=r}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",25),e.TgZ(78,"div",47),e.TgZ(79,"div",48),e.TgZ(80,"div",27),e._UZ(81,"i",28),e.TgZ(82,"span"),e.SDv(83,49),e.qZA(),e.qZA(),e.TgZ(84,"div",19),e.TgZ(85,"form"),e.TgZ(86,"div",3),e.TgZ(87,"label",4),e._uU(88,"ClientId"),e.qZA(),e.TgZ(89,"div",7),e.TgZ(90,"input",50),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ClientId=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(91,"div",3),e.TgZ(92,"label",4),e._uU(93,"Qos"),e.qZA(),e.TgZ(94,"div",7),e.TgZ(95,"input",51),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Qos=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(96,"div",3),e.TgZ(97,"label",4),e._uU(98,"KeepAlive"),e.qZA(),e.TgZ(99,"div",7),e.TgZ(100,"input",52),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.KeepAlive=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(101,"div",3),e.TgZ(102,"label",4),e._uU(103,"Retained"),e.qZA(),e.TgZ(104,"div",7),e.TgZ(105,"select",53),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Retained=r}),e.TgZ(106,"option",54),e._uU(107,"false"),e.qZA(),e.TgZ(108,"option",55),e._uU(109,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(110,"div",3),e.TgZ(111,"label",4),e._uU(112,"AutoReconnect"),e.qZA(),e.TgZ(113,"div",7),e.TgZ(114,"select",56),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.AutoReconnect=r}),e.TgZ(115,"option",54),e._uU(116,"false"),e.qZA(),e.TgZ(117,"option",55),e._uU(118,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(119,"div",3),e.TgZ(120,"label",4),e._uU(121,"ConnectTimeout"),e.qZA(),e.TgZ(122,"div",7),e.TgZ(123,"input",57),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ConnectTimeout=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(124,"div",3),e.TgZ(125,"label",4),e._uU(126,"authmode"),e.qZA(),e.TgZ(127,"div",7),e.TgZ(128,"select",58),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.authmode=r}),e.TgZ(129,"option",59),e._uU(130,"none"),e.qZA(),e.TgZ(131,"option",60),e._uU(132,"usernamepassword"),e.qZA(),e.TgZ(133,"option",61),e._uU(134,"clientcert"),e.qZA(),e.TgZ(135,"option",62),e._uU(136,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(137,"div",3),e.TgZ(138,"label",4),e._uU(139,"SkipCertVerify"),e.qZA(),e.TgZ(140,"div",7),e.TgZ(141,"select",63),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.SkipCertVerify=r}),e.TgZ(142,"option",54),e._uU(143,"false"),e.qZA(),e.TgZ(144,"option",55),e._uU(145,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(146,"div",3),e.TgZ(147,"label",4),e._uU(148,"secretname"),e.qZA(),e.TgZ(149,"div",7),e.TgZ(150,"input",64),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.secretname=r}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Type),e.xp6(20),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.PublishTopic),e.xp6(14),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Qos),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Retained),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.authmode),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.secretname)}}function x(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e._uU(4,"External MQTT Trigger"),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e._uU(9,"Url"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",65),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Url=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",3),e.TgZ(13,"label",4),e._uU(14,"SubscribeTopics"),e.qZA(),e.TgZ(15,"div",7),e.TgZ(16,"input",41),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SubscribeTopics=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",3),e.TgZ(18,"label",4),e._uU(19,"PublishTopic"),e.qZA(),e.TgZ(20,"div",7),e.TgZ(21,"input",46),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.PublishTopic=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",3),e.TgZ(23,"label",4),e._uU(24,"ClientId"),e.qZA(),e.TgZ(25,"div",7),e.TgZ(26,"input",50),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ClientId=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",3),e.TgZ(28,"label",4),e._uU(29,"ConnectTimeout"),e.qZA(),e.TgZ(30,"div",7),e.TgZ(31,"input",57),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ConnectTimeout=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"div",3),e.TgZ(33,"label",4),e._uU(34,"AutoReconnect"),e.qZA(),e.TgZ(35,"div",7),e.TgZ(36,"select",56),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AutoReconnect=r}),e.TgZ(37,"option",54),e._uU(38,"false"),e.qZA(),e.TgZ(39,"option",55),e._uU(40,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",3),e.TgZ(42,"label",4),e._uU(43,"KeepAlive"),e.qZA(),e.TgZ(44,"div",7),e.TgZ(45,"input",52),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.KeepAlive=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",3),e.TgZ(47,"label",4),e._uU(48,"QoS"),e.qZA(),e.TgZ(49,"div",7),e.TgZ(50,"input",66),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.QoS=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",3),e.TgZ(52,"label",4),e._uU(53,"Retain"),e.qZA(),e.TgZ(54,"div",7),e.TgZ(55,"select",53),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Retain=r}),e.TgZ(56,"option",54),e._uU(57,"false"),e.qZA(),e.TgZ(58,"option",55),e._uU(59,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(60,"div",3),e.TgZ(61,"label",4),e._uU(62,"SkipCertVerify"),e.qZA(),e.TgZ(63,"div",7),e.TgZ(64,"select",63),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SkipCertVerify=r}),e.TgZ(65,"option",54),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",55),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",3),e.TgZ(70,"label",4),e._uU(71,"SecretPath"),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"input",67),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SecretPath=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(74,"div",3),e.TgZ(75,"label",4),e._uU(76,"AuthMode"),e.qZA(),e.TgZ(77,"div",7),e.TgZ(78,"select",68),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AuthMode=r}),e.TgZ(79,"option",59),e._uU(80,"none"),e.qZA(),e.TgZ(81,"option",60),e._uU(82,"usernamepassword"),e.qZA(),e.TgZ(83,"option",61),e._uU(84,"clientcert"),e.qZA(),e.TgZ(85,"option",62),e._uU(86,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(11),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Url),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SubscribeTopics),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.PublishTopic),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.QoS),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Retain),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SecretPath),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AuthMode)}}function F(o,s){1&o&&(e.TgZ(0,"div",48),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,69),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"div",0),e.TgZ(7,"small"),e._UZ(8,"i",1),e.TgZ(9,"span"),e.SDv(10,70),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA())}let O=(()=>{class o{constructor(){this._configTrigger={},this.configTriggerChange=new e.vpe,this.configTrigger={},this.configTrigger.EdgexMessageBus={Optional:{},SubscribeHost:{},PublishHost:{}},this.configTrigger.EdgexMessageBus.Optional={},this.configTrigger.ExternalMqtt={},this.configTrigger.HTTP={}}get configTrigger(){return this._configTrigger}set configTrigger(t){Object.assign(this._configTrigger,t)}ngOnInit(){this.renderPopoverComponent()}ngOnChanges(){this.configTriggerChange.emit(this.configTrigger)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}onTriggerSelected(){this.renderPopoverComponent()}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-trigger"]],inputs:{configTrigger:"configTrigger"},outputs:{configTriggerChange:"configTriggerChange"},features:[e.TTD],decls:24,vars:4,consts:function(){let s,t,n,r,i,l,d,u,T,A,E,h,P,v,S,N;return s=" App service needs to restart when Trigger is changed, so this section only lets user to know what Trigger the app service used right now! " + "\ufffd#6\ufffd\ufffd/#6\ufffd" + " And Next, UI will support user to change the Trigger section. ",t="Type",n="EdgexMessageBus Trigger",r="Type",i="Subscribe Host",l="Host",d="Port",u="Protocol",T="SubscribeTopics",A="Host",E="Port",h="Protocol",P="PublishTopic",v="Optional",S="HTTP Trigger",N="no optional fields needs to setup for http trigger",[["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],s,[1,"form-group","row"],[1,"col-sm-2","col-form-label"],t,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Trigger type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","edgex-messagebus"],["value","external-mqtt"],["value","http"],["class","card mb-3",4,"ngIf"],["class","card",4,"ngIf"],[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],n,[1,"card-body"],r,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","EdgeX Message Bus type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["value","redis"],["value","mqtt"],["value","zero"],[1,"row"],[1,"col-sm-6","col-md-6"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tag","mr-2","text-danger"],i,[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],l,[1,"col-sm-9"],["type","text","name","Host",1,"form-control",3,"ngModel","ngModelChange"],d,["type","text","name","Port",1,"form-control",3,"ngModel","ngModelChange"],u,["type","text","name","Protocol",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-3","col-md-3","col-form-label","text-nowrap","text-truncate"],T,[1,"col-sm-9","col-md-9"],["type","text","name","SubscribeTopics",1,"form-control",3,"ngModel","ngModelChange"],A,E,h,P,["type","text","name","PublishTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-12","col-md-12"],[1,"card"],v,["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Qos",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","authmode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","secretname",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","QoS",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],S,N]},template:function(t,n){1&t&&(e.TgZ(0,"div"),e.TgZ(1,"div",0),e.TgZ(2,"small"),e._UZ(3,"i",1),e.TgZ(4,"span"),e.tHW(5,2),e._UZ(6,"br"),e.N_p(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"form"),e.TgZ(8,"div",3),e.TgZ(9,"label",4),e.TgZ(10,"span"),e.SDv(11,5),e.qZA(),e._UZ(12,"span",6),e.qZA(),e.TgZ(13,"div",7),e.TgZ(14,"select",8),e.NdJ("ngModelChange",function(i){return n.configTrigger.Type=i})("ngModelChange",function(){return n.onTriggerSelected()}),e.TgZ(15,"option",9),e._uU(16,"edgex-messagebus"),e.qZA(),e.TgZ(17,"option",10),e._uU(18,"external-mqtt"),e.qZA(),e.TgZ(19,"option",11),e._uU(20,"http"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(21,b,151,18,"div",12),e.YNc(22,x,87,12,"div",12),e.YNc(23,F,11,0,"div",13),e.qZA()),2&t&&(e.xp6(14),e.Q6J("ngModel",n.configTrigger.Type),e.xp6(7),e.Q6J("ngIf","edgex-messagebus"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","external-mqtt"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","http"===n.configTrigger.Type))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr,_.O5,a.Fj],styles:[""]}),o})();var f=g(7822);let y=(()=>{class o{constructor(t){this.el=t,this.classes="border border-info shadow-lg bg-white rounded"}ondragover(t){t.preventDefault(),this.classes.split(" ").forEach(r=>{this.el.nativeElement.classList.add(r)})}ondragenter(t){}ondragend(t){}ondragleave(t){this.classes.split(" ").forEach(r=>{this.el.nativeElement.classList.remove(r)})}ondragexit(t){}ondrop(t){this.classes.split(" ").forEach(r=>{this.el.nativeElement.classList.remove(r)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.SBq))},o.\u0275dir=e.lG2({type:o,selectors:[["","appDragHighlight",""]],hostBindings:function(t,n){1&t&&e.NdJ("dragover",function(i){return n.ondragover(i)})("dragenter",function(i){return n.ondragenter(i)})("dragend",function(i){return n.ondragend(i)})("dragleave",function(i){return n.ondragleave(i)})("dragexit",function(i){return n.ondragexit(i)})("drop",function(i){return n.ondrop(i)})}}),o})(),U=(()=>{class o{constructor(){this.addTagsChange=new e.vpe,this.addTags={Parameters:{Tags:""}}}ngOnInit(){}ngOnChanges(){this.addTagsChange.emit(this.addTags)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-add-tags"]],inputs:{addTags:"addTags"},outputs:{addTagsChange:"addTagsChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","String containing comma separated list of tag key/value pairs. The tag key/value pairs are colon seperated,\n for example: \n GatewayId:HoustonStore000123,Latitude:29.630771,Longitude:-95.377603",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","Tags",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Tags"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(i){return n.addTags.Parameters.Tags=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.addTags.Parameters.Tags))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On],styles:[""]}),o})();function J(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"BatchThreshold"),e.qZA(),e._UZ(4,"span",12),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",13),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().batch.Parameters.BatchThreshold=r}),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.BatchThreshold)}}function w(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"TimeInterval"),e.qZA(),e._UZ(4,"span",14),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",15),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().batch.Parameters.TimeInterval=r}),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.TimeInterval)}}let B=(()=>{class o{constructor(){this.batchChange=new e.vpe,this.batch={Parameters:{Mode:"bycount",IsEventData:"true"}}}ngOnInit(){}ngOnChanges(){this.batchChange.emit(this.batch)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-batch"]],inputs:{batch:"batch"},outputs:{batchChange:"batchChange"},features:[e.TTD],decls:26,vars:4,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Mode",1,"custom-select",3,"ngModel","ngModelChange"],["value","bycount"],["value","bytime"],["value","bytimecount"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","If true, specifies that the data being batch is Events and to un-marshal the batched data to []Event prior to returning the batched data. By default the batched data returned is [][]byte",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","IsEventData",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Number of items to batch before sending batched items to the next function in the pipeline.
\n Used with "bycount" and "bytimecount" modes',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","BatchThreshold",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Amount of time to batch before sending batched items to the next function in the pipeline.
\n Used with "bytime" and "bytimecount" modes,
\n
\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","TimeInterval",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Mode"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"select",3),e.NdJ("ngModelChange",function(i){return n.batch.Parameters.Mode=i}),e.TgZ(7,"option",4),e._uU(8,"bycount"),e.qZA(),e.TgZ(9,"option",5),e._uU(10,"bytime"),e.qZA(),e.TgZ(11,"option",6),e._uU(12,"bytimecount"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(13,J,7,1,"div",7),e.YNc(14,w,7,1,"div",7),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"IsEventData"),e.qZA(),e._UZ(19,"span",8),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"select",9),e.NdJ("ngModelChange",function(i){return n.batch.Parameters.IsEventData=i}),e.TgZ(22,"option",10),e._uU(23,"false"),e.qZA(),e.TgZ(24,"option",11),e._uU(25,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngIf","bycount"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(1),e.Q6J("ngIf","bytime"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngModel",n.batch.Parameters.IsEventData))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr,_.O5,a.Fj],styles:[""]}),o})(),L=(()=>{class o{constructor(){this.compressChange=new e.vpe,this.compress={Parameters:{Algorithm:"gzip"}}}ngOnInit(){}ngOnChanges(){this.compressChange.emit(this.compress)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-compress"]],inputs:{compress:"compress"},outputs:{compressChange:"compressChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","gzip"],["value","zlib"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(i){return n.compress.Parameters.Algorithm=i}),e.TgZ(6,"option",4),e._uU(7,"gzip"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"zlib"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.compress.Parameters.Algorithm))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr],styles:[""]}),o})(),G=(()=>{class o{constructor(){this.encryptChange=new e.vpe,this.encrypt={Parameters:{Algorithm:"aes256"}}}ngOnInit(){}ngOnChanges(){this.encryptChange.emit(this.encrypt)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-encrypt"]],inputs:{encrypt:"encrypt"},outputs:{encryptChange:"encryptChange"},features:[e.TTD],decls:22,vars:3,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","aes256"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Path in the Secret Store where the encryption key is located.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Name of the secret for the encryption key in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(i){return n.encrypt.Parameters.Algorithm=i}),e.TgZ(6,"option",4),e._uU(7,"aes256"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e.TgZ(9,"label",1),e.TgZ(10,"span"),e._uU(11,"SecretPath"),e.qZA(),e._UZ(12,"span",5),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(i){return n.encrypt.Parameters.SecretPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"SecretName"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(i){return n.encrypt.Parameters.SecretName=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.encrypt.Parameters.Algorithm),e.xp6(9),e.Q6J("ngModel",n.encrypt.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.encrypt.Parameters.SecretName))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr,a.Fj],styles:[""]}),o})();var D=g(1302);let V=(()=>{class o{constructor(){this.filterByDeviceNameChange=new e.vpe,this.deviceNames=[],this.filterByDeviceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.deviceNames=this.filterByDeviceName.Parameters.DeviceNames.split(","),this.filterByDeviceNameChange.emit(this.filterByDeviceName)}onDeviceNamesChange(){this.filterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-filter-by-device-name"]],inputs:{filterByDeviceName:"filterByDeviceName"},outputs:{filterByDeviceNameChange:"filterByDeviceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"deviceSelected","deviceSelectedChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the device names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"DeviceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-combo-list",3),e.NdJ("deviceSelectedChange",function(i){return n.deviceNames=i})("deviceSelectedChange",function(){return n.onDeviceNamesChange()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(i){return n.filterByDeviceName.Parameters.FilterOut=i}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("deviceSelected",n.deviceNames),e.xp6(7),e.Q6J("ngModel",n.filterByDeviceName.Parameters.FilterOut))},directives:[a._Y,a.JL,a.F,D.h,a.EJ,a.JJ,a.On,a.YN,a.Kr],styles:[""]}),o})();var Q=g(6322);let H=(()=>{class o{constructor(){this.filterByProfileNameChange=new e.vpe,this.profileNames=[],this.filterByProfileName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.profileNames=this.filterByProfileName.Parameters.ProfileNames.split(","),this.filterByProfileNameChange.emit(this.filterByProfileName)}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.filterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-filter-by-profile-name"]],inputs:{filterByProfileName:"filterByProfileName"},outputs:{filterByProfileNameChange:"filterByProfileNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"selectedProfiles","deviceProfileSelectedEvent"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the profile names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ProfileNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-profile-combo-list",3),e.NdJ("deviceProfileSelectedEvent",function(i){return n.onDeviceProfileSelectedEvent(i)}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(i){return n.filterByProfileName.Parameters.FilterOut=i}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("selectedProfiles",n.profileNames),e.xp6(7),e.Q6J("ngModel",n.filterByProfileName.Parameters.FilterOut))},directives:[a._Y,a.JL,a.F,Q.o,a.EJ,a.JJ,a.On,a.YN,a.Kr],styles:[""]}),o})(),X=(()=>{class o{constructor(){this.filterByResourceNameChange=new e.vpe,this.filterByResourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterByResourceNameChange.emit(this.filterByResourceName)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-filter-by-resource-name"]],inputs:{filterByResourceName:"filterByResourceName"},outputs:{filterByResourceNameChange:"filterByResourceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ResourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the resource names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ResourceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(i){return n.filterByResourceName.Parameters.ResourceNames=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(i){return n.filterByResourceName.Parameters.FilterOut=i}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.filterByResourceName.Parameters.ResourceNames),e.xp6(7),e.Q6J("ngModel",n.filterByResourceName.Parameters.FilterOut))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),o})(),Y=(()=>{class o{constructor(){this.filterBySourceNameChange=new e.vpe,this.filterBySourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterBySourceNameChange.emit(this.filterBySourceName)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-filter-by-source-name"]],inputs:{filterBySourceName:"filterBySourceName"},outputs:{filterBySourceNameChange:"filterBySourceNameChange"},features:[e.TTD],decls:18,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","SourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the source names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"SourceNames"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",3),e.NdJ("ngModelChange",function(i){return n.filterBySourceName.Parameters.SourceNames=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",0),e.TgZ(8,"label",1),e.TgZ(9,"span"),e._uU(10,"FilterOut"),e.qZA(),e._UZ(11,"span",4),e.qZA(),e.TgZ(12,"div",2),e.TgZ(13,"select",5),e.NdJ("ngModelChange",function(i){return n.filterBySourceName.Parameters.FilterOut=i}),e.TgZ(14,"option",6),e._uU(15,"false"),e.qZA(),e.TgZ(16,"option",7),e._uU(17,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.filterBySourceName.Parameters.SourceNames),e.xp6(7),e.Q6J("ngModel",n.filterBySourceName.Parameters.FilterOut))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),o})(),k=(()=>{class o{constructor(){this.transformChange=new e.vpe,this.transform={Parameters:{Type:"json"}}}ngOnInit(){}ngOnChanges(){this.transformChange.emit(this.transform)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-transform"]],inputs:{transform:"transform"},outputs:{transformChange:"transformChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","json"],["value","xml"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Type"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(i){return n.transform.Parameters.Type=i}),e.TgZ(6,"option",4),e._uU(7,"json"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"xml"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.transform.Parameters.Type))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr],styles:[""]}),o})(),j=(()=>{class o{constructor(){this.httpExportChange=new e.vpe,this.httpExport={Parameters:{Method:"post",MimeType:"application/json",PersistOnError:"false",ContinueOnSendError:"true",ReturnInputData:"false"}}}ngOnInit(){}ngOnChanges(){this.httpExportChange.emit(this.httpExport)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-httpexport"]],inputs:{httpExport:"httpExport"},outputs:{httpExportChange:"httpExportChange"},features:[e.TTD],decls:76,vars:9,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Method",1,"custom-select",3,"ngModel","ngModelChange"],["value","post"],["value","put"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Optional mime type for the data. Defaults to application/json if not set.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MimeType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports, if true continues after send error so next export function executes.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["name","ContinueOnSendError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports if true, passes the input data to next export function.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ReturnInputData",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the header key to add to the HTTP header",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","HeaderName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Path in the secret in the Secret Store where to header value is stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the secret for the header value in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Method"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.Method=i}),e.TgZ(6,"option",4),e._uU(7,"post"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"put"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",0),e.TgZ(11,"label",1),e._uU(12,"Url"),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.Url=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"MimeType"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.MimeType=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",0),e.TgZ(23,"label",1),e.TgZ(24,"span"),e._uU(25,"PersistOnError"),e.qZA(),e._UZ(26,"span",9),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"select",10),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.PersistOnError=i}),e.TgZ(29,"option",11),e._uU(30,"false"),e.qZA(),e.TgZ(31,"option",12),e._uU(32,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",0),e.TgZ(34,"label",13),e.TgZ(35,"span"),e._uU(36,"ContinueOnSendError"),e.qZA(),e._UZ(37,"span",14),e.qZA(),e.TgZ(38,"div",15),e.TgZ(39,"select",16),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.ContinueOnSendError=i}),e.TgZ(40,"option",11),e._uU(41,"false"),e.qZA(),e.TgZ(42,"option",12),e._uU(43,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",0),e.TgZ(45,"label",1),e.TgZ(46,"span"),e._uU(47,"ReturnInputData"),e.qZA(),e._UZ(48,"span",17),e.qZA(),e.TgZ(49,"div",2),e.TgZ(50,"select",18),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.ReturnInputData=i}),e.TgZ(51,"option",11),e._uU(52,"false"),e.qZA(),e.TgZ(53,"option",12),e._uU(54,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",0),e.TgZ(56,"label",1),e.TgZ(57,"span"),e._uU(58,"HeaderName"),e.qZA(),e._UZ(59,"span",19),e.qZA(),e.TgZ(60,"div",2),e.TgZ(61,"input",20),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.HeaderName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",0),e.TgZ(63,"label",1),e.TgZ(64,"span"),e._uU(65,"SecretPath"),e.qZA(),e._UZ(66,"span",21),e.qZA(),e.TgZ(67,"div",2),e.TgZ(68,"input",22),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.SecretPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",0),e.TgZ(70,"label",1),e.TgZ(71,"span"),e._uU(72,"SecretName"),e.qZA(),e._UZ(73,"span",23),e.qZA(),e.TgZ(74,"div",2),e.TgZ(75,"input",24),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.SecretName=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.httpExport.Parameters.Method),e.xp6(9),e.Q6J("ngModel",n.httpExport.Parameters.Url),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.MimeType),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ContinueOnSendError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ReturnInputData),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.HeaderName),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretName))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr,a.Fj],styles:[""]}),o})();function z(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"SecretPath"),e.qZA(),e._UZ(4,"span",27),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"input",28),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().mqttExport.Parameters.SecretPath=r}),e.qZA(),e.TgZ(7,"div",29),e.TgZ(8,"small"),e.SDv(9,30),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.mqttExport.Parameters.SecretPath),e.Q6J("ngModel",t.mqttExport.Parameters.SecretPath)}}let K=(()=>{class o{constructor(){this.mqttExportChange=new e.vpe,this.mqttExport={Parameters:{Qos:"0",AutoReconnect:"true",Retain:"true",SkipVerify:"true",PersistOnError:"false",AuthMode:"none"}}}ngOnInit(){}ngOnChanges(){this.mqttExportChange.emit(this.mqttExport)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}authModeIsNotNone(){return this.renderPopoverComponent(),"none"!==this.mqttExport.Parameters.AuthMode}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-mqttexport"]],inputs:{mqttExport:"mqttExport"},outputs:{mqttExportChange:"mqttExportChange"},features:[e.TTD],decls:85,vars:10,consts:function(){let s;return s="the SecretPath can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","tcp://broker-host:1883",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","BrokerAddress",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Topic",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],["value","0"],["value","1"],["value","2"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the certificate verification should be skipped.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","SkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Mode of authentication to use when connecting to the MQTT Broker.
\n
\n none - No authentication required.
\n
\n usernamepassword - Use username and password authentication. The Secret Store (Vault or InsecureSecrets) must contain the username and password secrets.
\n
\n clientcert - Use Client Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the clientkey and clientcert secrets.
\n
\n cacert - Use CA Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the cacert secret.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Path in the secret store where to authorization secrets are stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],s]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e.TgZ(3,"span"),e._uU(4,"BrokerAddress"),e.qZA(),e._UZ(5,"span",3),e.qZA(),e.TgZ(6,"div",4),e.TgZ(7,"input",5),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.BrokerAddress=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",1),e.TgZ(9,"label",2),e._uU(10,"Topic"),e.qZA(),e.TgZ(11,"div",4),e.TgZ(12,"input",6),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.Topic=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"label",2),e._uU(15,"ClientId"),e.qZA(),e.TgZ(16,"div",4),e.TgZ(17,"input",7),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",1),e.TgZ(19,"label",2),e._uU(20,"Qos"),e.qZA(),e.TgZ(21,"div",4),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.Qos=i}),e.TgZ(23,"option",9),e._uU(24,"0"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"1"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"div",1),e.TgZ(30,"label",2),e._uU(31,"AutoReconnect"),e.qZA(),e.TgZ(32,"div",4),e.TgZ(33,"select",12),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.AutoReconnect=i}),e.TgZ(34,"option",13),e._uU(35,"false"),e.qZA(),e.TgZ(36,"option",14),e._uU(37,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",1),e.TgZ(39,"label",2),e._uU(40,"Retain"),e.qZA(),e.TgZ(41,"div",4),e.TgZ(42,"select",15),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.Retain=i}),e.TgZ(43,"option",13),e._uU(44,"false"),e.qZA(),e.TgZ(45,"option",14),e._uU(46,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(47,"div",1),e.TgZ(48,"label",2),e.TgZ(49,"span"),e._uU(50,"SkipVerify"),e.qZA(),e._UZ(51,"span",16),e.qZA(),e.TgZ(52,"div",4),e.TgZ(53,"select",17),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.SkipVerify=i}),e.TgZ(54,"option",13),e._uU(55,"false"),e.qZA(),e.TgZ(56,"option",14),e._uU(57,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",1),e.TgZ(59,"label",2),e.TgZ(60,"span"),e._uU(61,"PersistOnError"),e.qZA(),e._UZ(62,"span",18),e.qZA(),e.TgZ(63,"div",4),e.TgZ(64,"select",19),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.PersistOnError=i}),e.TgZ(65,"option",13),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",14),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",1),e.TgZ(70,"label",2),e.TgZ(71,"span"),e._uU(72,"AuthMode"),e.qZA(),e._UZ(73,"span",20),e.qZA(),e.TgZ(74,"div",4),e.TgZ(75,"select",21),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.AuthMode=i}),e.TgZ(76,"option",22),e._uU(77,"none"),e.qZA(),e.TgZ(78,"option",23),e._uU(79,"usernamepassword"),e.qZA(),e.TgZ(80,"option",24),e._uU(81,"clientcert"),e.qZA(),e.TgZ(82,"option",25),e._uU(83,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(84,z,10,3,"div",26),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.mqttExport.Parameters.BrokerAddress),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Topic),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.ClientId),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Qos),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AutoReconnect),e.xp6(9),e.Q6J("ngModel",n.mqttExport.Parameters.Retain),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.SkipVerify),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AuthMode),e.xp6(9),e.Q6J("ngIf",n.authModeIsNotNone()))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr,_.O5],styles:[""]}),o})(),W=(()=>{class o{constructor(){this.jsonLogicChange=new e.vpe,this.jsonLogic={Parameters:{Rule:""}}}ngOnInit(){}ngOnChanges(){this.jsonLogicChange.emit(this.jsonLogic)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-jsonlogic"]],inputs:{jsonLogic:"jsonLogic"},outputs:{jsonLogicChange:"jsonLogicChange"},features:[e.TTD],decls:6,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","Rule",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Rule"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(i){return n.jsonLogic.Parameters.Rule=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.jsonLogic.Parameters.Rule))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On],styles:[""]}),o})();function ee(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"MediaType"),e.qZA(),e._UZ(4,"span",22),e.qZA(),e.TgZ(5,"div",3),e.TgZ(6,"input",23),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().pushToCore.Parameters.MediaType=r}),e.qZA(),e.TgZ(7,"div",24),e.TgZ(8,"small"),e.SDv(9,25),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.pushToCore.Parameters.MediaType),e.Q6J("ngModel",t.pushToCore.Parameters.MediaType)}}let te=(()=>{class o{constructor(){this.pushToCoreChange=new e.vpe,this.pushToCore={Parameters:{ValueType:"String"}}}ngOnInit(){}ngOnChanges(){this.pushToCoreChange.emit(this.pushToCore)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}valueTypeIsBinary(){return this.renderPopoverComponent(),"Binary"===this.pushToCore.Parameters.ValueType}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-push-to-core"]],inputs:{pushToCore:"pushToCore"},outputs:{pushToCoreChange:"pushToCoreChange"},features:[e.TTD],decls:48,vars:5,consts:function(){let s;return s="the MediaType can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ProfileName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","DeviceName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ResourceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Value type to use the new Event Reading's value type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ValueType",1,"custom-select",3,"ngModel","ngModelChange"],["value","Bool"],["value","Int8"],["value","Int64"],["value","Uint8"],["value","Uint64"],["value","Float32"],["value","Float64"],["value","String"],["value","Binary"],["value","Object"],["value","Float32Array"],["value","BoolArray"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Media type to use the new Event Reading's value type. Required when the value type is Binary",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MediaType",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],s]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e._uU(3,"ProfileName"),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"input",4),e.NdJ("ngModelChange",function(i){return n.pushToCore.Parameters.ProfileName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",1),e.TgZ(7,"label",2),e._uU(8,"DeviceName"),e.qZA(),e.TgZ(9,"div",3),e.TgZ(10,"input",5),e.NdJ("ngModelChange",function(i){return n.pushToCore.Parameters.DeviceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",1),e.TgZ(12,"label",2),e._uU(13,"ResourceName"),e.qZA(),e.TgZ(14,"div",3),e.TgZ(15,"input",6),e.NdJ("ngModelChange",function(i){return n.pushToCore.Parameters.ResourceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"div",1),e.TgZ(17,"label",2),e.TgZ(18,"span"),e._uU(19,"ValueType"),e.qZA(),e._UZ(20,"span",7),e.qZA(),e.TgZ(21,"div",3),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(i){return n.pushToCore.Parameters.ValueType=i}),e.TgZ(23,"option",9),e._uU(24,"Bool"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"Int8"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"Int64"),e.qZA(),e.TgZ(29,"option",12),e._uU(30,"Uint8"),e.qZA(),e.TgZ(31,"option",13),e._uU(32,"Uint64"),e.qZA(),e.TgZ(33,"option",14),e._uU(34,"Float32"),e.qZA(),e.TgZ(35,"option",15),e._uU(36,"Float64"),e.qZA(),e.TgZ(37,"option",16),e._uU(38,"String"),e.qZA(),e.TgZ(39,"option",17),e._uU(40,"Binary"),e.qZA(),e.TgZ(41,"option",18),e._uU(42,"Object"),e.qZA(),e.TgZ(43,"option",19),e._uU(44,"Float32Array"),e.qZA(),e.TgZ(45,"option",20),e._uU(46,"BoolArray"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(47,ee,10,3,"div",21),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ProfileName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.DeviceName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ResourceName),e.xp6(7),e.Q6J("ngModel",n.pushToCore.Parameters.ValueType),e.xp6(25),e.Q6J("ngIf",n.valueTypeIsBinary()))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr,_.O5],styles:[""]}),o})(),ne=(()=>{class o{constructor(){this.setResponseDataChange=new e.vpe,this.setResponseData={Parameters:{ResponseContentType:""}}}ngOnInit(){}ngOnChanges(){this.setResponseDataChange.emit(this.setResponseData)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-set-response-data"]],inputs:{setResponseData:"setResponseData"},outputs:{setResponseDataChange:"setResponseDataChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Used to specify content-type header for response, for example, application/json",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["type","text","name","ResponseContentType",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"ResponseContentType"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(i){return n.setResponseData.Parameters.ResponseContentType=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.setResponseData.Parameters.ResponseContentType))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On],styles:[""]}),o})();function oe(o,s){1&o&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,24),e.qZA(),e.qZA(),e.qZA())}function ie(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"span",25),e.NdJ("dragstart",function(r){const l=e.CHM(t).$implicit;return e.oxw().ondragstartBuiltinFunction(r,l)}),e.TgZ(1,"span",26),e._uU(2),e.qZA(),e.qZA()}if(2&o){const t=s.$implicit,n=e.oxw();e.ekj("d-table",!n.isSelected(t))("d-none",n.isSelected(t)),e.hYB("id","",n.builtinFuncZoneIdentifier,"",t,""),e.xp6(2),e.Oqu(t)}}function re(o,s){1&o&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,27),e.qZA(),e.qZA(),e.qZA())}function ae(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",28),e.NdJ("dragstart",function(r){const l=e.CHM(t).$implicit;return e.oxw().ondragstartFuncExecutionOrder(r,l)}),e._uU(2),e.qZA(),e.qZA()}if(2&o){const t=s.$implicit,n=e.oxw();e.xp6(1),e.hYB("id","",n.funcExecOrderZoneIdentifier,"",t,""),e.xp6(1),e.Oqu(t)}}function se(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-add-tags",43),e.NdJ("addTagsChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("addTags",n.availableFunctions[t])}}function le(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-batch",44),e.NdJ("batchChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("batch",n.availableFunctions[t])}}function ge(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-compress",45),e.NdJ("compressChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("compress",n.availableFunctions[t])}}function ce(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-encrypt",46),e.NdJ("encryptChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("encrypt",n.availableFunctions[t])}}function _e(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-device-name",47),e.NdJ("filterByDeviceNameChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByDeviceName",n.availableFunctions[t])}}function pe(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-profile-name",48),e.NdJ("filterByProfileNameChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByProfileName",n.availableFunctions[t])}}function de(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-resource-name",49),e.NdJ("filterByResourceNameChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByResourceName",n.availableFunctions[t])}}function ue(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-source-name",50),e.NdJ("filterBySourceNameChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterBySourceName",n.availableFunctions[t])}}function Te(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-transform",51),e.NdJ("transformChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("transform",n.availableFunctions[t])}}function me(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-httpexport",52),e.NdJ("httpExportChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("httpExport",n.availableFunctions[t])}}function fe(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-mqttexport",53),e.NdJ("mqttExportChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("mqttExport",n.availableFunctions[t])}}function Ze(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-jsonlogic",54),e.NdJ("jsonLogicChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("jsonLogic",n.availableFunctions[t])}}function Ce(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-push-to-core",55),e.NdJ("pushToCoreChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("pushToCore",n.availableFunctions[t])}}function Ae(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-set-response-data",56),e.NdJ("setResponseDataChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("setResponseData",n.availableFunctions[t])}}function Ee(o,s){1&o&&(e.TgZ(0,"div"),e.TgZ(1,"div",57),e.TgZ(2,"small"),e._UZ(3,"i",17),e.TgZ(4,"span"),e.SDv(5,58),e.qZA(),e.qZA(),e.qZA(),e.qZA())}function he(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",32),e.TgZ(1,"div",33),e._UZ(2,"i",34),e.TgZ(3,"span",35),e._uU(4,"Function"),e.qZA(),e.TgZ(5,"span",36),e._uU(6),e.qZA(),e.TgZ(7,"span"),e._uU(8,"Parameters"),e.qZA(),e.TgZ(9,"span",37),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw(2).unselectFunc(i)}),e._UZ(10,"i",38),e.qZA(),e.qZA(),e.TgZ(11,"div",39),e.TgZ(12,"div",40),e.YNc(13,se,2,1,"div",41),e.YNc(14,le,2,1,"div",41),e.YNc(15,ge,2,1,"div",41),e.YNc(16,ce,2,1,"div",41),e.YNc(17,_e,2,1,"div",41),e.YNc(18,pe,2,1,"div",41),e.YNc(19,de,2,1,"div",41),e.YNc(20,ue,2,1,"div",41),e.YNc(21,Te,2,1,"div",41),e.YNc(22,me,2,1,"div",41),e.YNc(23,fe,2,1,"div",41),e.YNc(24,Ze,2,1,"div",41),e.YNc(25,Ce,2,1,"div",41),e.YNc(26,Ae,2,1,"div",41),e.YNc(27,Ee,6,0,"div",42),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=s.$implicit,n=e.oxw(2);e.xp6(6),e.Oqu(t),e.xp6(6),e.Q6J("ngSwitch",n.startWith(t)),e.xp6(1),e.Q6J("ngSwitchCase","AddTags"),e.xp6(1),e.Q6J("ngSwitchCase","Batch"),e.xp6(1),e.Q6J("ngSwitchCase","Compress"),e.xp6(1),e.Q6J("ngSwitchCase","Encrypt"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByDeviceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByProfileName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByResourceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterBySourceName"),e.xp6(1),e.Q6J("ngSwitchCase","Transform"),e.xp6(1),e.Q6J("ngSwitchCase","HTTPExport"),e.xp6(1),e.Q6J("ngSwitchCase","MQTTExport"),e.xp6(1),e.Q6J("ngSwitchCase","JSONLogic"),e.xp6(1),e.Q6J("ngSwitchCase","PushToCore"),e.xp6(1),e.Q6J("ngSwitchCase","SetResponseData")}}function Pe(o,s){if(1&o&&(e.TgZ(0,"div",10),e.TgZ(1,"div",11),e._UZ(2,"i",29),e.TgZ(3,"span"),e.SDv(4,30),e.qZA(),e.qZA(),e.TgZ(5,"div",13),e.YNc(6,he,28,16,"div",31),e.qZA(),e.qZA()),2&o){const t=e.oxw();e.xp6(6),e.Q6J("ngForOf",t.selectedFunctionsName)}}let ve=(()=>{class o{constructor(){this.funcExecOrderZoneIdentifier="funcExecOrder-",this.builtinFuncZoneIdentifier="builtinFunc-",this.objectKeys=Object.keys,this.profileNames=[],this.deviceNames=[],this.availableFunctionsChange=new e.vpe,this._selectedFunctionsName=[],this.selectedFunctionsNameChange=new e.vpe,this._availableFunctions={},this.builtinFunctions={},this.initBuiltinFunctions()}get availableFunctions(){return this._availableFunctions}set availableFunctions(t){Object.assign(this._availableFunctions,t)}get selectedFunctionsName(){return this._selectedFunctionsName}set selectedFunctionsName(t){t.forEach((n,r)=>{t[r]=n.trim()}),this._selectedFunctionsName=t}ngOnInit(){}ngOnChanges(){this.setSelectedDevices(),this.setSelectedProfiles(),this.availableFunctionsChange.emit(this.availableFunctions)}startWith(t){let n="Unknown";return Object.keys(this.builtinFunctions).forEach(r=>{t.startsWith(r)&&(n=r)}),n}setSelectedDevices(){var t;(null===(t=this.availableFunctions.FilterByDeviceName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames&&(this.deviceNames=this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames.split(","))}setSelectedProfiles(){var t;(null===(t=this.availableFunctions.FilterByProfileName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByProfileName.Parameters.ProfileNames&&(this.profileNames=this.availableFunctions.FilterByProfileName.Parameters.ProfileNames.split(","))}initBuiltinFunctions(){this.builtinFunctions.AddTags={Parameters:{Tags:""}},this.builtinFunctions.Batch={Parameters:{}},this.builtinFunctions.FilterByDeviceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByProfileName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterBySourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByResourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.Transform={Parameters:{Type:"json"}},this.builtinFunctions.Compress={Parameters:{Algorithm:"gzip"}},this.builtinFunctions.Encrypt={Parameters:{Algorithm:"aes"}},this.builtinFunctions.HTTPExport={Parameters:{}},this.builtinFunctions.MQTTExport={Parameters:{}},this.builtinFunctions.PushToCore={Parameters:{}},this.builtinFunctions.SetResponseData={Parameters:{}},this.builtinFunctions.JSONLogic={Parameters:{}}}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.availableFunctions.FilterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}onDeviceNamesChange(){this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}selectOnefunc(t){this.selectedFunctionsName.push(t),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}unselectFunc(t){-1!==this.selectedFunctionsName.indexOf(t)&&(this.selectedFunctionsName.splice(this.selectedFunctionsName.indexOf(t),1),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName))}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}isSelected(t){let n=!1;return this.selectedFunctionsName.forEach(r=>{t!==r.trim()||(n=!0)}),n}ondropBuiltinFunction(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");!n||this.unselectFunc(n)}ondragstartBuiltinFunction(t,n){t.dataTransfer.setData("funcName",n)}sortSelectedFuncsExecuterOrder(t,n){let r=this.selectedFunctionsName.slice(0);r.splice(r.indexOf(t),1),r.splice(r.indexOf(n),0,t),this.selectedFunctionsName=r,this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}ondropFuncExecutionOrder(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");if(!n)return;let r=`${this.funcExecOrderZoneIdentifier}${n}`,i=t.target.id;if(r===i)return;let l=document.getElementById(r);if(l&&0===i.indexOf(this.funcExecOrderZoneIdentifier)){let d=i.replace(this.funcExecOrderZoneIdentifier,"");this.sortSelectedFuncsExecuterOrder(n,d)}else l||this.selectOnefunc(n);this.renderPopoverComponent()}ondragstartFuncExecutionOrder(t,n){t.dataTransfer.setData("funcName",n)}ondragoverFuncExecutionOrder(t){$(t.target).addClass("ml-3")}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-pipeline-function"]],inputs:{availableFunctions:"availableFunctions",selectedFunctionsName:"selectedFunctionsName"},outputs:{availableFunctionsChange:"availableFunctionsChange",selectedFunctionsNameChange:"selectedFunctionsNameChange"},features:[e.TTD],decls:31,vars:5,consts:function(){let s,t,n,r,i,l,d,u;return s="Builtin Pipeline Functions",t="Selected Pipeline Functions",n="Func Execution Order",r="drag sorting is enabled",i="Drop Zone",l="Drop Zone",d="Pipeline Functions Parameter Setting",u=" Unknown pipeline function ",[[1,"row"],[1,"col-sm-4","col-md-3"],["appDragHighlight","",1,"card","mb-3",3,"drop"],[1,"card-header","font-weight-bold","text-nowrap","text-truncate"],[1,"fa","fa-file-text","mr-2","text-info"],s,[1,"card-body","overflow-auto"],["class","border-secondary rounded w-100 text-center","style","height: 70px; border: 1px; border-style: dashed;",4,"ngIf"],["draggable","true","class","mb-3","role","button",3,"id","d-table","d-none","dragstart",4,"ngFor","ngForOf"],[1,"col-sm-8","col-md-9"],[1,"card"],[1,"card-header","font-weight-bold"],t,[1,"card-body"],[1,"fa","fa-sort-amount-asc","fa-rotate-270","mr-2","text-info"],n,[1,"text-info","ml-2"],[1,"fa","fa-info-circle","mr-1"],r,["id","funcExecOrderSelectedBody",1,"card-body"],[4,"ngFor","ngForOf"],["class","card",4,"ngIf"],[1,"border-secondary","rounded","w-100","text-center",2,"height","70px","border","1px","border-style","dashed"],[1,"text-muted"],i,["draggable","true","role","button",1,"mb-3",3,"id","dragstart"],[1,"badge","badge-secondary"],l,["draggable","true","role","button",1,"badge","badge-secondary","text-nowrap","text-truncate","mr-2",3,"id","dragstart"],[1,"fa","fa-cog","mr-2","text-info"],d,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"card-header","text-nowrap","text-truncate"],[1,"fa","fa-tag","mr-2","text-info"],[1,"mr-2"],[1,"badge","badge-secondary","mr-2"],["role","button",1,"float-right","text-danger",3,"click"],[1,"fa","fa-trash"],[1,"card-body","text-nowrap"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"addTags","addTagsChange"],[3,"batch","batchChange"],[3,"compress","compressChange"],[3,"encrypt","encryptChange"],[3,"filterByDeviceName","filterByDeviceNameChange"],[3,"filterByProfileName","filterByProfileNameChange"],[3,"filterByResourceName","filterByResourceNameChange"],[3,"filterBySourceName","filterBySourceNameChange"],[3,"transform","transformChange"],[3,"httpExport","httpExportChange"],[3,"mqttExport","mqttExportChange"],[3,"jsonLogic","jsonLogicChange"],[3,"pushToCore","pushToCoreChange"],[3,"setResponseData","setResponseDataChange"],["role","alert",1,"alert","alert-warning","mb-3"],u]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("drop",function(i){return n.ondropBuiltinFunction(i)}),e.TgZ(3,"div",3),e._UZ(4,"i",4),e.TgZ(5,"span"),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.YNc(8,oe,4,0,"table",7),e.YNc(9,ie,3,7,"span",8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"div",10),e.TgZ(12,"div",11),e._UZ(13,"i",4),e.TgZ(14,"span"),e.SDv(15,12),e.qZA(),e.qZA(),e.TgZ(16,"div",13),e.TgZ(17,"div",2),e.NdJ("drop",function(i){return n.ondropFuncExecutionOrder(i)}),e.TgZ(18,"div",3),e._UZ(19,"i",14),e.TgZ(20,"span"),e.SDv(21,15),e.qZA(),e.TgZ(22,"span",16),e.TgZ(23,"small"),e._UZ(24,"i",17),e.TgZ(25,"span"),e.SDv(26,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.YNc(28,re,4,0,"table",7),e.YNc(29,ae,3,3,"span",20),e.qZA(),e.qZA(),e.YNc(30,Pe,7,1,"div",21),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("ngIf",n.selectedFunctionsName.length===n.objectKeys(n.availableFunctions).length),e.xp6(1),e.Q6J("ngForOf",n.objectKeys(n.availableFunctions)),e.xp6(19),e.Q6J("ngIf",0===n.selectedFunctionsName.length),e.xp6(1),e.Q6J("ngForOf",n.selectedFunctionsName),e.xp6(1),e.Q6J("ngIf",0!==n.selectedFunctionsName.length))},directives:[y,_.O5,_.sg,_.RF,_.n9,_.ED,U,B,L,G,V,H,X,Y,k,j,K,W,te,ne],styles:[""]}),o})();function Se(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"li",3),e.TgZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"div",7),e.TgZ(5,"h5",16),e._uU(6),e.qZA(),e.TgZ(7,"p",9),e.TgZ(8,"span",10),e._uU(9,"ExecutionOrder:"),e.qZA(),e._uU(10),e.qZA(),e.TgZ(11,"span",10),e._uU(12,"Topics:"),e.qZA(),e._uU(13),e.TgZ(14,"span",11),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw(3).edit(i.Id)}),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=s.$implicit;e.xp6(6),e.Oqu(t.Id),e.xp6(4),e.hij(" ",t.ExecutionOrder," "),e.xp6(3),e.hij(" ",t.Topics," ")}}function Ne(o,s){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Se,18,3,"li",15),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.perTopicPipelines)}}function Me(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"ul",2),e.TgZ(1,"li",3),e.TgZ(2,"div",4),e.TgZ(3,"div",5),e._UZ(4,"i",6),e.qZA(),e.TgZ(5,"div",7),e.TgZ(6,"h5",8),e._uU(7),e.qZA(),e.TgZ(8,"p",9),e.TgZ(9,"span",10),e._uU(10,"ExecutionOrder:"),e.qZA(),e._uU(11),e.qZA(),e.TgZ(12,"span",11),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return r.edit(r.defaultPipelineIdentifier)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e.SDv(15,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(16,Ne,2,1,"div",14),e.qZA()}if(2&o){const t=e.oxw();e.xp6(7),e.Oqu(t.defaultPipelineIdentifier),e.xp6(4),e.Oqu(t.pipeline.ExecutionOrder),e.xp6(5),e.Q6J("ngIf",t.perTopicPipelines)}}function qe(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",30),e.TgZ(1,"label",31),e.TgZ(2,"span"),e._uU(3,"Pipeline Topic"),e.qZA(),e.qZA(),e.TgZ(4,"div",32),e.TgZ(5,"input",38),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw(2).pipelineTopic=r}),e.qZA(),e.TgZ(6,"div",39),e.TgZ(7,"small"),e.SDv(8,40),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(5),e.ekj("is-invalid",!t.pipelineTopic),e.Q6J("ngModel",t.pipelineTopic)}}function Ie(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",18),e.TgZ(1,"div",19),e._UZ(2,"i",20),e.TgZ(3,"span"),e.SDv(4,21),e.qZA(),e.TgZ(5,"span",22),e._uU(6),e.qZA(),e.TgZ(7,"span",23),e.TgZ(8,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().save()}),e.SDv(9,25),e.qZA(),e.TgZ(10,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e.SDv(11,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",28),e.TgZ(13,"div"),e.TgZ(14,"form",29),e.TgZ(15,"div",30),e.TgZ(16,"label",31),e.TgZ(17,"span"),e._uU(18,"Pipeline ID"),e.qZA(),e.qZA(),e.TgZ(19,"div",32),e._UZ(20,"input",33),e.qZA(),e.qZA(),e.YNc(21,qe,9,3,"div",34),e.qZA(),e.qZA(),e.TgZ(22,"div",18),e.TgZ(23,"div",19),e._UZ(24,"i",35),e.TgZ(25,"span"),e.SDv(26,36),e.qZA(),e.qZA(),e.TgZ(27,"div",28),e.TgZ(28,"app-pipeline-function",37),e.NdJ("selectedFunctionsNameChange",function(r){return e.CHM(t),e.oxw().selectedFunctionsName=r})("availableFunctionsChange",function(r){return e.CHM(t),e.oxw().availableFunctions=r}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.Oqu(t.selectedPipelineID),e.xp6(2),e.Q6J("disabled",!t.pipelineTopic||!t.validate()),e.xp6(12),e.Q6J("ngModel",t.selectedPipelineID),e.xp6(1),e.Q6J("ngIf",!t.isDefaultPipelineIndetifier(t.selectedPipelineID)),e.xp6(7),e.Q6J("selectedFunctionsName",t.selectedFunctionsName)("availableFunctions",t.availableFunctions)}}let Re=(()=>{class o{constructor(t,n,r,i){this.route=t,this.router=n,this.registrySvc=r,this.msgSvc=i,this.defaultPipelineIdentifier="default-pipeline",this.isEditStatus=!1,this.selectedFunctionsName=[],this.pipelineTopic="#",this.selectedPipelineID="",this.appServiceKey="",this.perTopicPipelines=[],this.pipeline={},this.availableFunctions={}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}ngOnChanges(){this.pipeline&&(this.pipeline.PerTopicPipelines&&(this.perTopicPipelines=Object.values(this.pipeline.PerTopicPipelines)),this.availableFunctions=this.pipeline.Functions,this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","))}pipelineIDIsUnique(t){if(t===this.selectedPipelineID)return!0;if(t===this.defaultPipelineIdentifier)return!1;let n=!0;return this.perTopicPipelines.forEach(r=>{t!==r.Id||(n=!1)}),n}isDefaultPipelineIndetifier(t){return t===this.defaultPipelineIdentifier}edit(t){this.selectedPipelineID=t,this.isDefaultPipelineIndetifier(t)?this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","):this.perTopicPipelines.forEach(n=>{t===n.Id&&(this.selectedFunctionsName=n.ExecutionOrder.split(","),this.pipelineTopic=n.Topics)}),this.isEditStatus=!0,this.renderPopoverComponent()}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}validate(){let t=!0;return this.selectedFunctionsName.forEach(n=>{(n.startsWith("PushToCore")&&"Binary"===this.availableFunctions[n].Parameters.ValueType&&""===this.availableFunctions[n].Parameters.MediaType||n.startsWith("MQTTExport")&&"none"!==this.availableFunctions[n].Parameters.AuthMode&&""===this.availableFunctions[n].Parameters.SecretPath)&&(t=!1)}),t}save(){let t={},n={PerTopicPipelines:{}},r={};if(this.selectedFunctionsName.forEach(i=>{r[i]=this.availableFunctions[i]}),n.Functions=r,this.isDefaultPipelineIndetifier(this.selectedPipelineID))n.ExecutionOrder=this.getFuncExecutionOrder();else for(const[i,l]of Object.entries(this.pipeline.PerTopicPipelines))if(this.selectedPipelineID===l.Id){l.ExecutionOrder=this.getFuncExecutionOrder(),l.Topics=this.pipelineTopic,n.PerTopicPipelines[i]=l;break}t.Pipeline=n,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy Pipeline configuration",`service: ${this.appServiceKey}`),this.isEditStatus=!1,this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}cancel(){this.isEditStatus=!1}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(f.e))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-pipeline"]],inputs:{appServiceKey:"appServiceKey",pipeline:"pipeline"},features:[e.TTD],decls:2,vars:2,consts:function(){let s,t,n,r,i,l,d;return s="Edit",t="Edit",n="Edit Pipeline",r="Save",i="Cancel",l="Pipline Functions Setting",d="the pipeline topic can't be empty!",[["class","list-unstyled",4,"ngIf"],["class","card",4,"ngIf"],[1,"list-unstyled"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"text-dark","mt-0"],[1,"mb-0"],[1,"badge","badge-secondary","mr-1"],["role","button",1,"badge","badge-info","float-right",3,"click"],[1,"fa","fa-edit","mr-1"],s,[4,"ngIf"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"text-dark","mt-0","mb-1"],t,[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],n,[1,"ml-1","text-info"],[1,"float-right"],[1,"btn","btn-sm","btn-success","mr-1",3,"disabled","click"],r,[1,"btn","btn-sm","btn-secondary",3,"click"],i,[1,"card-body"],[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","disabled","","name","PipelineID",1,"form-control",3,"ngModel"],["class","form-group row",4,"ngIf"],[1,"fa","fa-tag","text-info","mr-1"],l,[3,"selectedFunctionsName","availableFunctions","selectedFunctionsNameChange","availableFunctionsChange"],["type","text","name","PipelineTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],d]},template:function(t,n){1&t&&(e.YNc(0,Me,17,3,"ul",0),e.YNc(1,Ie,29,6,"div",1)),2&t&&(e.Q6J("ngIf",n.pipeline&&!n.isEditStatus),e.xp6(1),e.Q6J("ngIf",n.isEditStatus))},directives:[_.O5,_.sg,a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,ve],styles:["input[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}"]}),o})(),be=(()=>{class o{constructor(t,n,r,i){this.route=t,this.router=n,this.registrySvc=r,this.msgSvc=i,this.appServiceKey="",this._insecureSecrets={},this.insecureSecretsChange=new e.vpe,this.insecureSecrets={DB:{Secrets:{}},mqtt:{Secrets:{}},http:{Secrets:{}},AES:{Secrets:{}}}}get insecureSecrets(){return this._insecureSecrets}set insecureSecrets(t){Object.assign(this._insecureSecrets,t)}ngOnInit(){}ngOnChanges(){this.insecureSecretsChange.emit(this.insecureSecrets)}save(){let t={};t.InsecureSecrets=this.insecureSecrets,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy InsecureSecrets configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(f.e))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-insecure-secrets"]],inputs:{appServiceKey:"appServiceKey",insecureSecrets:"insecureSecrets"},outputs:{insecureSecretsChange:"insecureSecretsChange"},features:[e.TTD],decls:107,vars:13,consts:function(){let s,t,n;return s="Edit InsecureSecrets",t="Save",n="Insecure Secrets that are used when running in non-secure mode, i.e. when Vault isn't available. This is a dynamic map of configuration, so can empty if no secrets are used or can have as many or few user-defined secrets. It simulates a Secret Store in non-secure mode. ",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],s,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],n,[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","path",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","cacert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientcert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientkey",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","headervalue",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","key",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"div",8),e.TgZ(10,"small"),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e._UZ(16,"i",13),e.TgZ(17,"span",14),e._uU(18,"DB"),e.qZA(),e.qZA(),e.TgZ(19,"div",7),e.TgZ(20,"form"),e.TgZ(21,"div",15),e.TgZ(22,"label",16),e._uU(23,"path"),e.qZA(),e.TgZ(24,"div",17),e.TgZ(25,"input",18),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.DB.Path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"label",16),e._uU(28,"username"),e.qZA(),e.TgZ(29,"div",17),e.TgZ(30,"input",19),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.DB.Secrets.username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",15),e.TgZ(32,"label",16),e._uU(33,"password"),e.qZA(),e.TgZ(34,"div",17),e.TgZ(35,"input",20),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.DB.Secrets.password=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",11),e.TgZ(37,"div",12),e._UZ(38,"i",13),e.TgZ(39,"span",14),e._uU(40,"mqtt"),e.qZA(),e.qZA(),e.TgZ(41,"div",7),e.TgZ(42,"form"),e.TgZ(43,"div",15),e.TgZ(44,"label",16),e._uU(45,"path"),e.qZA(),e.TgZ(46,"div",17),e.TgZ(47,"input",18),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",15),e.TgZ(49,"label",16),e._uU(50,"username"),e.qZA(),e.TgZ(51,"div",17),e.TgZ(52,"input",19),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Secrets.username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",15),e.TgZ(54,"label",16),e._uU(55,"password"),e.qZA(),e.TgZ(56,"div",17),e.TgZ(57,"input",20),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Secrets.password=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",15),e.TgZ(59,"label",16),e._uU(60,"cacert"),e.qZA(),e.TgZ(61,"div",17),e.TgZ(62,"input",21),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Secrets.cacert=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",15),e.TgZ(64,"label",16),e._uU(65,"clientcert"),e.qZA(),e.TgZ(66,"div",17),e.TgZ(67,"input",22),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Secrets.clientcert=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"div",15),e.TgZ(69,"label",16),e._uU(70,"clientkey"),e.qZA(),e.TgZ(71,"div",17),e.TgZ(72,"input",23),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Secrets.clientkey=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",11),e.TgZ(74,"div",12),e._UZ(75,"i",13),e.TgZ(76,"span",14),e._uU(77,"http"),e.qZA(),e.qZA(),e.TgZ(78,"div",7),e.TgZ(79,"form"),e.TgZ(80,"div",15),e.TgZ(81,"label",16),e._uU(82,"path"),e.qZA(),e.TgZ(83,"div",17),e.TgZ(84,"input",18),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.http.Path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",15),e.TgZ(86,"label",16),e._uU(87,"headervalue"),e.qZA(),e.TgZ(88,"div",17),e.TgZ(89,"input",24),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.http.Secrets.headervalue=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(90,"div",11),e.TgZ(91,"div",12),e._UZ(92,"i",13),e.TgZ(93,"span",14),e._uU(94,"AES"),e.qZA(),e.qZA(),e.TgZ(95,"div",7),e.TgZ(96,"form"),e.TgZ(97,"div",15),e.TgZ(98,"label",16),e._uU(99,"path"),e.qZA(),e.TgZ(100,"div",17),e.TgZ(101,"input",18),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.AES.Path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",15),e.TgZ(103,"label",16),e._uU(104,"key"),e.qZA(),e.TgZ(105,"div",17),e.TgZ(106,"input",25),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.AES.Secrets.key=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(25),e.Q6J("ngModel",n.insecureSecrets.DB.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.password),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.mqtt.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.password),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.cacert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientcert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientkey),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.http.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.http.Secrets.headervalue),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.AES.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.AES.Secrets.key))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On],styles:[""]}),o})(),xe=(()=>{class o{constructor(t,n,r,i){this.route=t,this.router=n,this.registrySvc=r,this.msgSvc=i,this.appServiceKey="",this.storeAndForwardChange=new e.vpe,this.storeAndForward={Enabled:"false"}}ngOnInit(){}ngOnChanges(){this.storeAndForwardChange.emit(this.storeAndForward)}save(){let t={};t.StoreAndForward=this.storeAndForward,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy StoreAndForward configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(f.e))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-store-and-forward"]],inputs:{appServiceKey:"appServiceKey",storeAndForward:"storeAndForward"},outputs:{storeAndForwardChange:"storeAndForwardChange"},features:[e.TTD],decls:35,vars:3,consts:function(){let s,t;return s="Edit StoreAndForward",t="Save",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],s,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","capability allows for export functions to persist data on failure and for the export of the data to be retried at a later time.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Enabled",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","pure number",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MaxRetryCount",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","RetryInterval",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span"),e._uU(13,"Enabled"),e.qZA(),e._UZ(14,"span",10),e.qZA(),e.TgZ(15,"div",11),e.TgZ(16,"select",12),e.NdJ("ngModelChange",function(i){return n.storeAndForward.Enabled=i}),e.TgZ(17,"option",13),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span"),e._uU(24,"MaxRetryCount"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",11),e.TgZ(27,"input",16),e.NdJ("ngModelChange",function(i){return n.storeAndForward.MaxRetryCount=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",8),e.TgZ(29,"label",9),e.TgZ(30,"span"),e._uU(31,"RetryInterval"),e.qZA(),e._UZ(32,"span",17),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"input",18),e.NdJ("ngModelChange",function(i){return n.storeAndForward.RetryInterval=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(16),e.Q6J("ngModel",n.storeAndForward.Enabled),e.xp6(11),e.Q6J("ngModel",n.storeAndForward.MaxRetryCount),e.xp6(7),e.Q6J("ngModel",n.storeAndForward.RetryInterval))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr,a.Fj],styles:[""]}),o})();function Fe(o,s){if(1&o&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-trigger",15),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("configTrigger",t.configTrigger)}}function Oe(o,s){if(1&o&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-pipeline",16),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("pipeline",t.configWritable.Pipeline)}}function ye(o,s){if(1&o&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-insecure-secrets",17),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("insecureSecrets",t.configWritable.InsecureSecrets)}}function Ue(o,s){if(1&o&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-store-and-forward",18),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("storeAndForward",t.configWritable.StoreAndForward)}}let Je=(()=>{class o{constructor(t,n){this.registrySvc=t,this.route=n,this.TirggerIdentifier="Trigger",this.writableIdentifier="Writable",this.configurableSection="PipelineFunc",this.appServiceKey="",this.configTrigger={},this.configWritable={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.appSvcKey&&(this.appServiceKey=t.appSvcKey,this.loadAppSvcConfig())}),this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}loadAppSvcConfig(){this.registrySvc.getAppSvcConfigBySvcKey(this.appServiceKey).subscribe(t=>{Object.assign(this.configTrigger,t[this.TirggerIdentifier]),Object.assign(this.configWritable,t[this.writableIdentifier])})}configurableSectionChange(t){this.configurableSection=t,this.renderPopoverComponent()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(m.r),e.Y36(p.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-app-service-configurable"]],decls:29,vars:13,consts:function(){let s,t,n,r,i;return s="Configurable Setting",t="Trigger",n="Pipelines",r="Insecure Secrets",i="Store And Forward",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],[1,"mr-2","text-info"],s,[1,"card-body"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item",3,"click"],["role","button",1,"nav-link"],t,n,r,i,[4,"ngIf"],[3,"configTrigger"],[3,"appServiceKey","pipeline"],[3,"appServiceKey","insecureSecrets"],[3,"appServiceKey","storeAndForward"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e.TgZ(9,"div",0),e.TgZ(10,"div",1),e.TgZ(11,"ul",7),e.TgZ(12,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("Trigger")}),e.TgZ(13,"a",9),e.SDv(14,10),e.qZA(),e.qZA(),e.TgZ(15,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("PipelineFunc")}),e.TgZ(16,"a",9),e.SDv(17,11),e.qZA(),e.qZA(),e.TgZ(18,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("InsecureSecrets")}),e.TgZ(19,"a",9),e.SDv(20,12),e.qZA(),e.qZA(),e.TgZ(21,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("StoreAndForward")}),e.TgZ(22,"a",9),e.SDv(23,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",6),e.YNc(25,Fe,2,1,"div",14),e.YNc(26,Oe,2,2,"div",14),e.YNc(27,ye,2,2,"div",14),e.YNc(28,Ue,2,2,"div",14),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(n.appServiceKey),e.xp6(8),e.ekj("active","Trigger"===n.configurableSection),e.xp6(3),e.ekj("active","PipelineFunc"===n.configurableSection),e.xp6(3),e.ekj("active","InsecureSecrets"===n.configurableSection),e.xp6(3),e.ekj("active","StoreAndForward"===n.configurableSection),e.xp6(3),e.Q6J("ngIf","Trigger"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","PipelineFunc"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","InsecureSecrets"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","StoreAndForward"===n.configurableSection))},directives:[_.O5,O,Re,be,xe],styles:[".appservice_wrap[_ngcontent-%COMP%]{width:100%;margin:0 auto;overflow:hidden}#appservice_left[_ngcontent-%COMP%]{width:70%;min-height:800px;float:left}#appservice_service_select[_ngcontent-%COMP%]{margin-top:1%;width:40%}#appservice_right[_ngcontent-%COMP%]{width:30%;min-height:800px;border-left:1px solid #d6e9c6;float:right}.app_left_body[_ngcontent-%COMP%]{min-height:800px}.appservice_drop_card[_ngcontent-%COMP%]{margin-top:3%;margin-bottom:3%;height:80px;width:100%;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;text-align:center}.appservice_transform[_ngcontent-%COMP%]{font-weight:bold;font-size:.5rem}.appservice_description[_ngcontent-%COMP%]{position:relative;top:25%;left:20%;font-size:smaller;float:left;text-align:center}.appservice_paramButton[_ngcontent-%COMP%]{width:30%;outline-style:none;border:1px solid #ccc;border-radius:3px;margin-top:25px;margin-right:100px;float:right}.appservice_button_group[_ngcontent-%COMP%]{float:right;margin-top:-25px}.appservice_triggers_group[_ngcontent-%COMP%]{padding:10px}.appservice_select_lable[_ngcontent-%COMP%]{text-align:right;padding-top:1%}#appservice_model[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{position:fixed;top:20%;right:0;left:0;bottom:20%;margin:auto}#appservice_model[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:79%;overflow-y:auto;position:absolute;top:55px;bottom:65px;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-right:15px}#appservice_model[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0}.modal-backdrop[_ngcontent-%COMP%]{z-index:-1!important;opacity:0!important;filter:alpha(opacity=0)!important}"]}),o})();var we=g(8253),Be=g(1964),Le=g(4294),Ge=g(5894),$e=g(7216);let C=(()=>{class o{constructor(t,n){this.router=t,this.registrySvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.registrySvc.ping().pipe((0,Le.q)(1),(0,Ge.K)(r=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"registry center",routerPath:`/${n.url.split("/")[1]}`}})),(0,$e.z)(()=>(0,Be.of)(!0)))}}return o.\u0275fac=function(t){return new(t||o)(e.LFG(p.F0),e.LFG(m.r))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const De=[{path:"",component:M,canActivate:[we.a,C],canActivateChild:[C],children:[{path:"",redirectTo:"app-service-list",pathMatch:"full"},{path:"app-service-list",component:R},{path:"app-service-configurable",component:Je}]}];let Ve=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.Bz.forChild(De)],p.Bz]}),o})();var Qe=g(4010);let He=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[_.ez,a.u5,Ve,Qe.MetadataModule]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/index.html b/cmd/edgex-ui-server/static/web/en-US/index.html index c16004d7..9b0220c2 100644 --- a/cmd/edgex-ui-server/static/web/en-US/index.html +++ b/cmd/edgex-ui-server/static/web/en-US/index.html @@ -26,6 +26,6 @@ - + \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/main.1ee8a1b412e3fea92fe7.js b/cmd/edgex-ui-server/static/web/en-US/main.22edd47639db2b2f5170.js similarity index 62% rename from cmd/edgex-ui-server/static/web/en-US/main.1ee8a1b412e3fea92fe7.js rename to cmd/edgex-ui-server/static/web/en-US/main.22edd47639db2b2f5170.js index 59a35622..4f5fdbcf 100644 --- a/cmd/edgex-ui-server/static/web/en-US/main.1ee8a1b412e3fea92fe7.js +++ b/cmd/edgex-ui-server/static/web/en-US/main.22edd47639db2b2f5170.js @@ -1,3 +1,3 @@ var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"en-US"}); "use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(n){const i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;if(i===1&&v===0)return 1;return 5}global.ng.common.locales["en-us-posix"]=["en-US-POSIX",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],u,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","\xD7","0/00","INF","NaN",":"],["0.######","0%","\xA4\xA00.00","0.000000E+000"],"USD","$","US Dollar",{},"ltr",plural,[[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);; -(self.webpackChunkweb=self.webpackChunkweb||[]).push([[179],{8255:Ye=>{function me(O){return Promise.resolve().then(()=>{var y=new Error("Cannot find module '"+O+"'");throw y.code="MODULE_NOT_FOUND",y})}me.keys=()=>[],me.resolve=me,me.id=8255,Ye.exports=me},8583:(Ye,me,O)=>{"use strict";O.d(me,{mr:()=>Ge,ez:()=>ne,K0:()=>K,uU:()=>Ir,Do:()=>Fe,V_:()=>U,Ye:()=>he,S$:()=>He,mk:()=>kn,sg:()=>Vn,O5:()=>Zn,RF:()=>Un,n9:()=>Bn,ED:()=>Gt,b0:()=>We,lw:()=>P,EM:()=>Li,JF:()=>vi,w_:()=>Q,bD:()=>Oe,q:()=>ce,Mx:()=>Bt,HT:()=>te});var y=O(476);let u=null;function ce(){return u}function te(_){u||(u=_)}class Q{}const K=new y.OlP("DocumentToken");let P=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=(0,y.Yz7)({factory:x,token:_,providedIn:"platform"}),_})();function x(){return(0,y.LFG)(Y)}const U=new y.OlP("Location Initialized");let Y=(()=>{class _ extends P{constructor(v){super(),this._doc=v,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ce().getBaseHref(this._doc)}onPopState(v){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("popstate",v,!1),()=>S.removeEventListener("popstate",v)}onHashChange(v){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("hashchange",v,!1),()=>S.removeEventListener("hashchange",v)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(v){this.location.pathname=v}pushState(v,S,B){ae()?this._history.pushState(v,S,B):this.location.hash=B}replaceState(v,S,B){ae()?this._history.replaceState(v,S,B):this.location.hash=B}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(K))},_.\u0275prov=(0,y.Yz7)({factory:Ee,token:_,providedIn:"platform"}),_})();function ae(){return!!window.history.pushState}function Ee(){return new Y((0,y.LFG)(K))}function De(_,w){if(0==_.length)return w;if(0==w.length)return _;let v=0;return _.endsWith("/")&&v++,w.startsWith("/")&&v++,2==v?_+w.substring(1):1==v?_+w:_+"/"+w}function Pe(_){const w=_.match(/#|\?|$/),v=w&&w.index||_.length;return _.slice(0,v-("/"===_[v-1]?1:0))+_.slice(v)}function ve(_){return _&&"?"!==_[0]?"?"+_:_}let He=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=(0,y.Yz7)({factory:Me,token:_,providedIn:"root"}),_})();function Me(_){const w=(0,y.LFG)(K).location;return new We((0,y.LFG)(P),w&&w.origin||"")}const Ge=new y.OlP("appBaseHref");let We=(()=>{class _ extends He{constructor(v,S){if(super(),this._platformLocation=v,this._removeListenerFns=[],null==S&&(S=this._platformLocation.getBaseHrefFromDOM()),null==S)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=S}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return De(this._baseHref,v)}path(v=!1){const S=this._platformLocation.pathname+ve(this._platformLocation.search),B=this._platformLocation.hash;return B&&v?`${S}${B}`:S}pushState(v,S,B,oe){const pe=this.prepareExternalUrl(B+ve(oe));this._platformLocation.pushState(v,S,pe)}replaceState(v,S,B,oe){const pe=this.prepareExternalUrl(B+ve(oe));this._platformLocation.replaceState(v,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,v)}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(P),y.LFG(Ge,8))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})(),Fe=(()=>{class _ extends He{constructor(v,S){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=S&&(this._baseHref=S)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){let S=this._platformLocation.hash;return null==S&&(S="#"),S.length>0?S.substring(1):S}prepareExternalUrl(v){const S=De(this._baseHref,v);return S.length>0?"#"+S:S}pushState(v,S,B,oe){let pe=this.prepareExternalUrl(B+ve(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.pushState(v,S,pe)}replaceState(v,S,B,oe){let pe=this.prepareExternalUrl(B+ve(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.replaceState(v,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,v)}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(P),y.LFG(Ge,8))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})(),he=(()=>{class _{constructor(v,S){this._subject=new y.vpe,this._urlChangeListeners=[],this._platformStrategy=v;const B=this._platformStrategy.getBaseHref();this._platformLocation=S,this._baseHref=Pe($e(B)),this._platformStrategy.onPopState(oe=>{this._subject.emit({url:this.path(!0),pop:!0,state:oe.state,type:oe.type})})}path(v=!1){return this.normalize(this._platformStrategy.path(v))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(v,S=""){return this.path()==this.normalize(v+ve(S))}normalize(v){return _.stripTrailingSlash(function(_,w){return _&&w.startsWith(_)?w.substring(_.length):w}(this._baseHref,$e(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._platformStrategy.prepareExternalUrl(v)}go(v,S="",B=null){this._platformStrategy.pushState(B,"",v,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ve(S)),B)}replaceState(v,S="",B=null){this._platformStrategy.replaceState(B,"",v,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ve(S)),B)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformStrategy).historyGo)||void 0===B||B.call(S,v)}onUrlChange(v){this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(S=>{this._notifyUrlChangeListeners(S.url,S.state)}))}_notifyUrlChangeListeners(v="",S){this._urlChangeListeners.forEach(B=>B(v,S))}subscribe(v,S,B){return this._subject.subscribe({next:v,error:S,complete:B})}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(He),y.LFG(P))},_.normalizeQueryParams=ve,_.joinWithSlash=De,_.stripTrailingSlash=Pe,_.\u0275prov=(0,y.Yz7)({factory:Ke,token:_,providedIn:"root"}),_})();function Ke(){return new he((0,y.LFG)(He),(0,y.LFG)(P))}function $e(_){return _.replace(/\/index.html$/,"")}var H=(()=>((H=H||{})[H.Zero=0]="Zero",H[H.One=1]="One",H[H.Two=2]="Two",H[H.Few=3]="Few",H[H.Many=4]="Many",H[H.Other=5]="Other",H))(),X=(()=>((X=X||{})[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X))(),ue=(()=>((ue=ue||{})[ue.Narrow=0]="Narrow",ue[ue.Abbreviated=1]="Abbreviated",ue[ue.Wide=2]="Wide",ue[ue.Short=3]="Short",ue))(),Ae=(()=>((Ae=Ae||{})[Ae.Short=0]="Short",Ae[Ae.Medium=1]="Medium",Ae[Ae.Long=2]="Long",Ae[Ae.Full=3]="Full",Ae))(),ie=(()=>((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",ie))();function jt(_,w){return gt((0,y.cg1)(_)[y.wAp.DateFormat],w)}function Kt(_,w){return gt((0,y.cg1)(_)[y.wAp.TimeFormat],w)}function It(_,w){return gt((0,y.cg1)(_)[y.wAp.DateTimeFormat],w)}function tn(_,w){const v=(0,y.cg1)(_),S=v[y.wAp.NumberSymbols][w];if(void 0===S){if(w===ie.CurrencyDecimal)return v[y.wAp.NumberSymbols][ie.Decimal];if(w===ie.CurrencyGroup)return v[y.wAp.NumberSymbols][ie.Group]}return S}const Cn=y.kL8;function Rn(_){if(!_[y.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${_[y.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function gt(_,w){for(let v=w;v>-1;v--)if(void 0!==_[v])return _[v];throw new Error("Locale data API: locale data undefined")}function tr(_){const[w,v]=_.split(":");return{hours:+w,minutes:+v}}const W=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ge={},ye=/((?:[^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]*)/;var Re=(()=>((Re=Re||{})[Re.Short=0]="Short",Re[Re.ShortGMT=1]="ShortGMT",Re[Re.Long=2]="Long",Re[Re.Extended=3]="Extended",Re))(),se=(()=>((se=se||{})[se.FullYear=0]="FullYear",se[se.Month=1]="Month",se[se.Date=2]="Date",se[se.Hours=3]="Hours",se[se.Minutes=4]="Minutes",se[se.Seconds=5]="Seconds",se[se.FractionalSeconds=6]="FractionalSeconds",se[se.Day=7]="Day",se))(),xe=(()=>((xe=xe||{})[xe.DayPeriods=0]="DayPeriods",xe[xe.Days=1]="Days",xe[xe.Months=2]="Months",xe[xe.Eras=3]="Eras",xe))();function Ne(_,w,v,S){let B=function(_){if(Fn(_))return _;if("number"==typeof _&&!isNaN(_))return new Date(_);if("string"==typeof _){if(_=_.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(_)){const[B,oe=1,pe=1]=_.split("-").map(Be=>+Be);return St(B,oe-1,pe)}const v=parseFloat(_);if(!isNaN(_-v))return new Date(v);let S;if(S=_.match(W))return function(_){const w=new Date(0);let v=0,S=0;const B=_[8]?w.setUTCFullYear:w.setFullYear,oe=_[8]?w.setUTCHours:w.setHours;_[9]&&(v=Number(_[9]+_[10]),S=Number(_[9]+_[11])),B.call(w,Number(_[1]),Number(_[2])-1,Number(_[3]));const pe=Number(_[4]||0)-v,Be=Number(_[5]||0)-S,Dt=Number(_[6]||0),E=Math.floor(1e3*parseFloat("0."+(_[7]||0)));return oe.call(w,pe,Be,Dt,E),w}(S)}const w=new Date(_);if(!Fn(w))throw new Error(`Unable to convert "${_}" into a date`);return w}(_);w=Lt(v,w)||w;let Be,pe=[];for(;w;){if(Be=ye.exec(w),!Be){pe.push(w);break}{pe=pe.concat(Be.slice(1));const m=pe.pop();if(!m)break;w=m}}let Dt=B.getTimezoneOffset();S&&(Dt=br(S,Dt),B=function(_,w,v){const B=_.getTimezoneOffset();return function(_,w){return(_=new Date(_.getTime())).setMinutes(_.getMinutes()+w),_}(_,-1*(br(w,B)-B))}(B,S));let E="";return pe.forEach(m=>{const h=function(_){if(mt[_])return mt[_];let w;switch(_){case"G":case"GG":case"GGG":w=Le(xe.Eras,ue.Abbreviated);break;case"GGGG":w=Le(xe.Eras,ue.Wide);break;case"GGGGG":w=Le(xe.Eras,ue.Narrow);break;case"y":w=ot(se.FullYear,1,0,!1,!0);break;case"yy":w=ot(se.FullYear,2,0,!0,!0);break;case"yyy":w=ot(se.FullYear,3,0,!1,!0);break;case"yyyy":w=ot(se.FullYear,4,0,!1,!0);break;case"Y":w=xn(1);break;case"YY":w=xn(2,!0);break;case"YYY":w=xn(3);break;case"YYYY":w=xn(4);break;case"M":case"L":w=ot(se.Month,1,1);break;case"MM":case"LL":w=ot(se.Month,2,1);break;case"MMM":w=Le(xe.Months,ue.Abbreviated);break;case"MMMM":w=Le(xe.Months,ue.Wide);break;case"MMMMM":w=Le(xe.Months,ue.Narrow);break;case"LLL":w=Le(xe.Months,ue.Abbreviated,X.Standalone);break;case"LLLL":w=Le(xe.Months,ue.Wide,X.Standalone);break;case"LLLLL":w=Le(xe.Months,ue.Narrow,X.Standalone);break;case"w":w=pi(1);break;case"ww":w=pi(2);break;case"W":w=pi(1,!0);break;case"d":w=ot(se.Date,1);break;case"dd":w=ot(se.Date,2);break;case"c":case"cc":w=ot(se.Day,1);break;case"ccc":w=Le(xe.Days,ue.Abbreviated,X.Standalone);break;case"cccc":w=Le(xe.Days,ue.Wide,X.Standalone);break;case"ccccc":w=Le(xe.Days,ue.Narrow,X.Standalone);break;case"cccccc":w=Le(xe.Days,ue.Short,X.Standalone);break;case"E":case"EE":case"EEE":w=Le(xe.Days,ue.Abbreviated);break;case"EEEE":w=Le(xe.Days,ue.Wide);break;case"EEEEE":w=Le(xe.Days,ue.Narrow);break;case"EEEEEE":w=Le(xe.Days,ue.Short);break;case"a":case"aa":case"aaa":w=Le(xe.DayPeriods,ue.Abbreviated);break;case"aaaa":w=Le(xe.DayPeriods,ue.Wide);break;case"aaaaa":w=Le(xe.DayPeriods,ue.Narrow);break;case"b":case"bb":case"bbb":w=Le(xe.DayPeriods,ue.Abbreviated,X.Standalone,!0);break;case"bbbb":w=Le(xe.DayPeriods,ue.Wide,X.Standalone,!0);break;case"bbbbb":w=Le(xe.DayPeriods,ue.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":w=Le(xe.DayPeriods,ue.Abbreviated,X.Format,!0);break;case"BBBB":w=Le(xe.DayPeriods,ue.Wide,X.Format,!0);break;case"BBBBB":w=Le(xe.DayPeriods,ue.Narrow,X.Format,!0);break;case"h":w=ot(se.Hours,1,-12);break;case"hh":w=ot(se.Hours,2,-12);break;case"H":w=ot(se.Hours,1);break;case"HH":w=ot(se.Hours,2);break;case"m":w=ot(se.Minutes,1);break;case"mm":w=ot(se.Minutes,2);break;case"s":w=ot(se.Seconds,1);break;case"ss":w=ot(se.Seconds,2);break;case"S":w=ot(se.FractionalSeconds,1);break;case"SS":w=ot(se.FractionalSeconds,2);break;case"SSS":w=ot(se.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":w=rn(Re.Short);break;case"ZZZZZ":w=rn(Re.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":w=rn(Re.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":w=rn(Re.Long);break;default:return null}return mt[_]=w,w}(m);E+=h?h(B,v,Dt):"''"===m?"'":m.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),E}function St(_,w,v){const S=new Date(0);return S.setFullYear(_,w,v),S.setHours(0,0,0),S}function Lt(_,w){const v=function(_){return(0,y.cg1)(_)[y.wAp.LocaleId]}(_);if(ge[v]=ge[v]||{},ge[v][w])return ge[v][w];let S="";switch(w){case"shortDate":S=jt(_,Ae.Short);break;case"mediumDate":S=jt(_,Ae.Medium);break;case"longDate":S=jt(_,Ae.Long);break;case"fullDate":S=jt(_,Ae.Full);break;case"shortTime":S=Kt(_,Ae.Short);break;case"mediumTime":S=Kt(_,Ae.Medium);break;case"longTime":S=Kt(_,Ae.Long);break;case"fullTime":S=Kt(_,Ae.Full);break;case"short":const B=Lt(_,"shortTime"),oe=Lt(_,"shortDate");S=zn(It(_,Ae.Short),[B,oe]);break;case"medium":const pe=Lt(_,"mediumTime"),Be=Lt(_,"mediumDate");S=zn(It(_,Ae.Medium),[pe,Be]);break;case"long":const Dt=Lt(_,"longTime"),E=Lt(_,"longDate");S=zn(It(_,Ae.Long),[Dt,E]);break;case"full":const m=Lt(_,"fullTime"),h=Lt(_,"fullDate");S=zn(It(_,Ae.Full),[m,h])}return S&&(ge[v][w]=S),S}function zn(_,w){return w&&(_=_.replace(/\{([^}]+)}/g,function(v,S){return null!=w&&S in w?w[S]:v})),_}function wt(_,w,v="-",S,B){let oe="";(_<0||B&&_<=0)&&(B?_=1-_:(_=-_,oe=v));let pe=String(_);for(;pe.length0||Be>-v)&&(Be+=v),_===se.Hours)0===Be&&-12===v&&(Be=12);else if(_===se.FractionalSeconds)return function(_,w){return wt(_,3).substr(0,w)}(Be,w);const Dt=tn(pe,ie.MinusSign);return wt(Be,w,Dt,S,B)}}function Le(_,w,v=X.Format,S=!1){return function(B,oe){return function(_,w,v,S,B,oe){switch(v){case xe.Months:return function(_,w,v){const S=(0,y.cg1)(_),oe=gt([S[y.wAp.MonthsFormat],S[y.wAp.MonthsStandalone]],w);return gt(oe,v)}(w,B,S)[_.getMonth()];case xe.Days:return function(_,w,v){const S=(0,y.cg1)(_),oe=gt([S[y.wAp.DaysFormat],S[y.wAp.DaysStandalone]],w);return gt(oe,v)}(w,B,S)[_.getDay()];case xe.DayPeriods:const pe=_.getHours(),Be=_.getMinutes();if(oe){const E=function(_){const w=(0,y.cg1)(_);return Rn(w),(w[y.wAp.ExtraData][2]||[]).map(S=>"string"==typeof S?tr(S):[tr(S[0]),tr(S[1])])}(w),m=function(_,w,v){const S=(0,y.cg1)(_);Rn(S);const oe=gt([S[y.wAp.ExtraData][0],S[y.wAp.ExtraData][1]],w)||[];return gt(oe,v)||[]}(w,B,S),h=E.findIndex(M=>{if(Array.isArray(M)){const[Z,we]=M,At=pe>=Z.hours&&Be>=Z.minutes,an=pe0?Math.floor(B/60):Math.ceil(B/60);switch(_){case Re.Short:return(B>=0?"+":"")+wt(pe,2,oe)+wt(Math.abs(B%60),2,oe);case Re.ShortGMT:return"GMT"+(B>=0?"+":"")+wt(pe,1,oe);case Re.Long:return"GMT"+(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);case Re.Extended:return 0===S?"Z":(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);default:throw new Error(`Unknown zone width "${_}"`)}}}function Mn(_){return St(_.getFullYear(),_.getMonth(),_.getDate()+(4-_.getDay()))}function pi(_,w=!1){return function(v,S){let B;if(w){const oe=new Date(v.getFullYear(),v.getMonth(),1).getDay()-1,pe=v.getDate();B=1+Math.floor((pe+oe)/7)}else{const oe=Mn(v),pe=function(_){const w=St(_,0,1).getDay();return St(_,0,1+(w<=4?4:11)-w)}(oe.getFullYear()),Be=oe.getTime()-pe.getTime();B=1+Math.round(Be/6048e5)}return wt(B,_,tn(S,ie.MinusSign))}}function xn(_,w=!1){return function(v,S){return wt(Mn(v).getFullYear(),_,tn(S,ie.MinusSign),w)}}const mt={};function br(_,w){_=_.replace(/:/g,"");const v=Date.parse("Jan 01, 1970 00:00:00 "+_)/6e4;return isNaN(v)?w:v}function Fn(_){return _ instanceof Date&&!isNaN(_.valueOf())}class tt{}let ut=(()=>{class _ extends tt{constructor(v){super(),this.locale=v}getPluralCategory(v,S){switch(Cn(S||this.locale)(v)){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(y.soG))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})();function Bt(_,w){w=encodeURIComponent(w);for(const v of _.split(";")){const S=v.indexOf("="),[B,oe]=-1==S?[v,""]:[v.slice(0,S),v.slice(S+1)];if(B.trim()===w)return decodeURIComponent(oe)}return null}let kn=(()=>{class _{constructor(v,S,B,oe){this._iterableDiffers=v,this._keyValueDiffers=S,this._ngEl=B,this._renderer=oe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(v){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof v?v.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(v){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof v?v.split(/\s+/):v,this._rawClass&&((0,y.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const v=this._iterableDiffer.diff(this._rawClass);v&&this._applyIterableChanges(v)}else if(this._keyValueDiffer){const v=this._keyValueDiffer.diff(this._rawClass);v&&this._applyKeyValueChanges(v)}}_applyKeyValueChanges(v){v.forEachAddedItem(S=>this._toggleClass(S.key,S.currentValue)),v.forEachChangedItem(S=>this._toggleClass(S.key,S.currentValue)),v.forEachRemovedItem(S=>{S.previousValue&&this._toggleClass(S.key,!1)})}_applyIterableChanges(v){v.forEachAddedItem(S=>{if("string"!=typeof S.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,y.AaK)(S.item)}`);this._toggleClass(S.item,!0)}),v.forEachRemovedItem(S=>this._toggleClass(S.item,!1))}_applyClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(S=>this._toggleClass(S,!0)):Object.keys(v).forEach(S=>this._toggleClass(S,!!v[S])))}_removeClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(S=>this._toggleClass(S,!1)):Object.keys(v).forEach(S=>this._toggleClass(S,!1)))}_toggleClass(v,S){(v=v.trim())&&v.split(/\s+/g).forEach(B=>{S?this._renderer.addClass(this._ngEl.nativeElement,B):this._renderer.removeClass(this._ngEl.nativeElement,B)})}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.ZZ4),y.Y36(y.aQg),y.Y36(y.SBq),y.Y36(y.Qsj))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),_})();class wr{constructor(w,v,S,B){this.$implicit=w,this.ngForOf=v,this.index=S,this.count=B}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Vn=(()=>{class _{constructor(v,S,B){this._viewContainer=v,this._template=S,this._differs=B,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;if(!this._differ&&v)try{this._differ=this._differs.find(v).create(this.ngForTrackBy)}catch(S){throw new Error(`Cannot find a differ supporting object '${v}' of type '${function(_){return _.name||typeof _}(v)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const S=[];v.forEachOperation((B,oe,pe)=>{if(null==B.previousIndex){const Be=this._viewContainer.createEmbeddedView(this._template,new wr(null,this._ngForOf,-1,-1),null===pe?void 0:pe),Dt=new Ze(B,Be);S.push(Dt)}else if(null==pe)this._viewContainer.remove(null===oe?void 0:oe);else if(null!==oe){const Be=this._viewContainer.get(oe);this._viewContainer.move(Be,pe);const Dt=new Ze(B,Be);S.push(Dt)}});for(let B=0;B{this._viewContainer.get(B.currentIndex).context.$implicit=B.item})}_perViewChange(v,S){v.context.$implicit=S.item}static ngTemplateContextGuard(v,S){return!0}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(y.ZZ4))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),_})();class Ze{constructor(w,v){this.record=w,this.view=v}}let Zn=(()=>{class _{constructor(v,S){this._viewContainer=v,this._context=new _n,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=S}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){hn("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){hn("ngIfElse",v),this._elseTemplateRef=v,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(v,S){return!0}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),_})();class _n{constructor(){this.$implicit=null,this.ngIf=null}}function hn(_,w){if(w&&!w.createEmbeddedView)throw new Error(`${_} must be a TemplateRef, but received '${(0,y.AaK)(w)}'.`)}class Ht{constructor(w,v){this._viewContainerRef=w,this._templateRef=v,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(w){w&&!this._created?this.create():!w&&this._created&&this.destroy()}}let Un=(()=>{class _{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(v){this._ngSwitch=v,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(v){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(v)}_matchCase(v){const S=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||S,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),S}_updateDefaultCases(v){if(this._defaultViews&&v!==this._defaultUsed){this._defaultUsed=v;for(let S=0;S{class _{constructor(v,S,B){this.ngSwitch=B,B._addCase(),this._view=new Ht(v,S)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),_})(),Gt=(()=>{class _{constructor(v,S,B){B._addDefault(new Ht(v,S))}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngSwitchDefault",""]]}),_})();let Ir=(()=>{class _{constructor(v){this.locale=v}transform(v,S="mediumDate",B,oe){if(null==v||""===v||v!=v)return null;try{return Ne(v,S,oe||this.locale,B)}catch(pe){throw function(_,w){return Error(`InvalidPipeArgument: '${w}' for pipe '${(0,y.AaK)(_)}'`)}(_,pe.message)}}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.soG,16))},_.\u0275pipe=y.Yjl({name:"date",type:_,pure:!0}),_})(),ne=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=y.oAB({type:_}),_.\u0275inj=y.cJS({providers:[{provide:tt,useClass:ut}]}),_})();const Oe="browser";let Li=(()=>{class _{}return _.\u0275prov=(0,y.Yz7)({token:_,providedIn:"root",factory:()=>new ki((0,y.LFG)(K),window)}),_})();class ki{constructor(w,v){this.document=w,this.window=v,this.offset=()=>[0,0]}setOffset(w){this.offset=Array.isArray(w)?()=>w:w}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(w){this.supportsScrolling()&&this.window.scrollTo(w[0],w[1])}scrollToAnchor(w){if(!this.supportsScrolling())return;const v=function(_,w){const v=_.getElementById(w)||_.getElementsByName(w)[0];if(v)return v;if("function"==typeof _.createTreeWalker&&_.body&&(_.body.createShadowRoot||_.body.attachShadow)){const S=_.createTreeWalker(_.body,NodeFilter.SHOW_ELEMENT);let B=S.currentNode;for(;B;){const oe=B.shadowRoot;if(oe){const pe=oe.getElementById(w)||oe.querySelector(`[name="${w}"]`);if(pe)return pe}B=S.nextNode()}}return null}(this.document,w);v&&(this.scrollToElement(v),this.attemptFocus(v))}setHistoryScrollRestoration(w){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=w)}}scrollToElement(w){const v=w.getBoundingClientRect(),S=v.left+this.window.pageXOffset,B=v.top+this.window.pageYOffset,oe=this.offset();this.window.scrollTo(S-oe[0],B-oe[1])}attemptFocus(w){return w.focus(),this.document.activeElement===w}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const w=Nr(this.window.history)||Nr(Object.getPrototypeOf(this.window.history));return!(!w||!w.writable&&!w.set)}catch(w){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(w){return!1}}}function Nr(_){return Object.getOwnPropertyDescriptor(_,"scrollRestoration")}class vi{}},1841:(Ye,me,O)=>{"use strict";O.d(me,{TP:()=>ee,eN:()=>ie,JF:()=>gt,WM:()=>U});var y=O(8583),u=O(476),ce=O(1964),re=O(1776),te=O(3766),Q=O(4689),K=O(5207);class P{}class x{}class U{constructor(G){this.normalizedNames=new Map,this.lazyUpdate=null,G?this.lazyInit="string"==typeof G?()=>{this.headers=new Map,G.split("\n").forEach(W=>{const ge=W.indexOf(":");if(ge>0){const ye=W.slice(0,ge),Re=ye.toLowerCase(),se=W.slice(ge+1).trim();this.maybeSetNormalizedName(ye,Re),this.headers.has(Re)?this.headers.get(Re).push(se):this.headers.set(Re,[se])}})}:()=>{this.headers=new Map,Object.keys(G).forEach(W=>{let ge=G[W];const ye=W.toLowerCase();"string"==typeof ge&&(ge=[ge]),ge.length>0&&(this.headers.set(ye,ge),this.maybeSetNormalizedName(W,ye))})}:this.headers=new Map}has(G){return this.init(),this.headers.has(G.toLowerCase())}get(G){this.init();const W=this.headers.get(G.toLowerCase());return W&&W.length>0?W[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(G){return this.init(),this.headers.get(G.toLowerCase())||null}append(G,W){return this.clone({name:G,value:W,op:"a"})}set(G,W){return this.clone({name:G,value:W,op:"s"})}delete(G,W){return this.clone({name:G,value:W,op:"d"})}maybeSetNormalizedName(G,W){this.normalizedNames.has(W)||this.normalizedNames.set(W,G)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(G=>this.applyUpdate(G)),this.lazyUpdate=null))}copyFrom(G){G.init(),Array.from(G.headers.keys()).forEach(W=>{this.headers.set(W,G.headers.get(W)),this.normalizedNames.set(W,G.normalizedNames.get(W))})}clone(G){const W=new U;return W.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,W.lazyUpdate=(this.lazyUpdate||[]).concat([G]),W}applyUpdate(G){const W=G.name.toLowerCase();switch(G.op){case"a":case"s":let ge=G.value;if("string"==typeof ge&&(ge=[ge]),0===ge.length)return;this.maybeSetNormalizedName(G.name,W);const ye=("a"===G.op?this.headers.get(W):void 0)||[];ye.push(...ge),this.headers.set(W,ye);break;case"d":const Re=G.value;if(Re){let se=this.headers.get(W);if(!se)return;se=se.filter(xe=>-1===Re.indexOf(xe)),0===se.length?(this.headers.delete(W),this.normalizedNames.delete(W)):this.headers.set(W,se)}else this.headers.delete(W),this.normalizedNames.delete(W)}}forEach(G){this.init(),Array.from(this.normalizedNames.keys()).forEach(W=>G(this.normalizedNames.get(W),this.headers.get(W)))}}class Y{encodeKey(G){return Pe(G)}encodeValue(G){return Pe(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}const Ee=/%(\d[a-f0-9])/gi,De={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Pe(fe){return encodeURIComponent(fe).replace(Ee,(G,W)=>{var ge;return null!==(ge=De[W])&&void 0!==ge?ge:G})}function ve(fe){return`${fe}`}class He{constructor(G={}){if(this.updates=null,this.cloneFrom=null,this.encoder=G.encoder||new Y,G.fromString){if(G.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(fe,G){const W=new Map;return fe.length>0&&fe.replace(/^\?/,"").split("&").forEach(ye=>{const Re=ye.indexOf("="),[se,xe]=-1==Re?[G.decodeKey(ye),""]:[G.decodeKey(ye.slice(0,Re)),G.decodeValue(ye.slice(Re+1))],Ne=W.get(se)||[];Ne.push(xe),W.set(se,Ne)}),W}(G.fromString,this.encoder)}else G.fromObject?(this.map=new Map,Object.keys(G.fromObject).forEach(W=>{const ge=G.fromObject[W];this.map.set(W,Array.isArray(ge)?ge:[ge])})):this.map=null}has(G){return this.init(),this.map.has(G)}get(G){this.init();const W=this.map.get(G);return W?W[0]:null}getAll(G){return this.init(),this.map.get(G)||null}keys(){return this.init(),Array.from(this.map.keys())}append(G,W){return this.clone({param:G,value:W,op:"a"})}appendAll(G){const W=[];return Object.keys(G).forEach(ge=>{const ye=G[ge];Array.isArray(ye)?ye.forEach(Re=>{W.push({param:ge,value:Re,op:"a"})}):W.push({param:ge,value:ye,op:"a"})}),this.clone(W)}set(G,W){return this.clone({param:G,value:W,op:"s"})}delete(G,W){return this.clone({param:G,value:W,op:"d"})}toString(){return this.init(),this.keys().map(G=>{const W=this.encoder.encodeKey(G);return this.map.get(G).map(ge=>W+"="+this.encoder.encodeValue(ge)).join("&")}).filter(G=>""!==G).join("&")}clone(G){const W=new He({encoder:this.encoder});return W.cloneFrom=this.cloneFrom||this,W.updates=(this.updates||[]).concat(G),W}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(G=>this.map.set(G,this.cloneFrom.map.get(G))),this.updates.forEach(G=>{switch(G.op){case"a":case"s":const W=("a"===G.op?this.map.get(G.param):void 0)||[];W.push(ve(G.value)),this.map.set(G.param,W);break;case"d":if(void 0===G.value){this.map.delete(G.param);break}{let ge=this.map.get(G.param)||[];const ye=ge.indexOf(ve(G.value));-1!==ye&&ge.splice(ye,1),ge.length>0?this.map.set(G.param,ge):this.map.delete(G.param)}}}),this.cloneFrom=this.updates=null)}}class Ge{constructor(){this.map=new Map}set(G,W){return this.map.set(G,W),this}get(G){return this.map.has(G)||this.map.set(G,G.defaultValue()),this.map.get(G)}delete(G){return this.map.delete(G),this}keys(){return this.map.keys()}}function Fe(fe){return"undefined"!=typeof ArrayBuffer&&fe instanceof ArrayBuffer}function he(fe){return"undefined"!=typeof Blob&&fe instanceof Blob}function Ke(fe){return"undefined"!=typeof FormData&&fe instanceof FormData}class $e{constructor(G,W,ge,ye){let Re;if(this.url=W,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=G.toUpperCase(),function(fe){switch(fe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ye?(this.body=void 0!==ge?ge:null,Re=ye):Re=ge,Re&&(this.reportProgress=!!Re.reportProgress,this.withCredentials=!!Re.withCredentials,Re.responseType&&(this.responseType=Re.responseType),Re.headers&&(this.headers=Re.headers),Re.context&&(this.context=Re.context),Re.params&&(this.params=Re.params)),this.headers||(this.headers=new U),this.context||(this.context=new Ge),this.params){const se=this.params.toString();if(0===se.length)this.urlWithParams=W;else{const xe=W.indexOf("?");this.urlWithParams=W+(-1===xe?"?":xewt.set(Qe,G.setHeaders[Qe]),St)),G.setParams&&(Lt=Object.keys(G.setParams).reduce((wt,Qe)=>wt.set(Qe,G.setParams[Qe]),Lt)),new $e(ge,ye,se,{params:Lt,headers:St,context:zn,reportProgress:Ne,responseType:Re,withCredentials:xe})}}var lt=(()=>((lt=lt||{})[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt))();class le{constructor(G,W=200,ge="OK"){this.headers=G.headers||new U,this.status=void 0!==G.status?G.status:W,this.statusText=G.statusText||ge,this.url=G.url||null,this.ok=this.status>=200&&this.status<300}}class H extends le{constructor(G={}){super(G),this.type=lt.ResponseHeader}clone(G={}){return new H({headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class X extends le{constructor(G={}){super(G),this.type=lt.Response,this.body=void 0!==G.body?G.body:null}clone(G={}){return new X({body:void 0!==G.body?G.body:this.body,headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class ue extends le{constructor(G){super(G,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${G.url||"(unknown url)"}`:`Http failure response for ${G.url||"(unknown url)"}: ${G.status} ${G.statusText}`,this.error=G.error||null}}function Ae(fe,G){return{body:G,headers:fe.headers,context:fe.context,observe:fe.observe,params:fe.params,reportProgress:fe.reportProgress,responseType:fe.responseType,withCredentials:fe.withCredentials}}let ie=(()=>{class fe{constructor(W){this.handler=W}request(W,ge,ye={}){let Re;if(W instanceof $e)Re=W;else{let Ne,St;Ne=ye.headers instanceof U?ye.headers:new U(ye.headers),ye.params&&(St=ye.params instanceof He?ye.params:new He({fromObject:ye.params})),Re=new $e(W,ge,void 0!==ye.body?ye.body:null,{headers:Ne,context:ye.context,params:St,reportProgress:ye.reportProgress,responseType:ye.responseType||"json",withCredentials:ye.withCredentials})}const se=(0,ce.of)(Re).pipe((0,te.b)(Ne=>this.handler.handle(Ne)));if(W instanceof $e||"events"===ye.observe)return se;const xe=se.pipe((0,Q.h)(Ne=>Ne instanceof X));switch(ye.observe||"body"){case"body":switch(Re.responseType){case"arraybuffer":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&!(Ne.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ne.body}));case"blob":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&!(Ne.body instanceof Blob))throw new Error("Response is not a Blob.");return Ne.body}));case"text":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&"string"!=typeof Ne.body)throw new Error("Response is not a string.");return Ne.body}));case"json":default:return xe.pipe((0,K.U)(Ne=>Ne.body))}case"response":return xe;default:throw new Error(`Unreachable: unhandled observe type ${ye.observe}}`)}}delete(W,ge={}){return this.request("DELETE",W,ge)}get(W,ge={}){return this.request("GET",W,ge)}head(W,ge={}){return this.request("HEAD",W,ge)}jsonp(W,ge){return this.request("JSONP",W,{params:(new He).append(ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(W,ge={}){return this.request("OPTIONS",W,ge)}patch(W,ge,ye={}){return this.request("PATCH",W,Ae(ye,ge))}post(W,ge,ye={}){return this.request("POST",W,Ae(ye,ge))}put(W,ge,ye={}){return this.request("PUT",W,Ae(ye,ge))}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(P))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();class ze{constructor(G,W){this.next=G,this.interceptor=W}handle(G){return this.interceptor.intercept(G,this.next)}}const ee=new u.OlP("HTTP_INTERCEPTORS");let Ie=(()=>{class fe{intercept(W,ge){return ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const It=/^\)\]\}',?\n/;let yt=(()=>{class fe{constructor(W){this.xhrFactory=W}handle(W){if("JSONP"===W.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new re.y(ge=>{const ye=this.xhrFactory.build();if(ye.open(W.method,W.urlWithParams),W.withCredentials&&(ye.withCredentials=!0),W.headers.forEach((Qe,ot)=>ye.setRequestHeader(Qe,ot.join(","))),W.headers.has("Accept")||ye.setRequestHeader("Accept","application/json, text/plain, */*"),!W.headers.has("Content-Type")){const Qe=W.detectContentTypeHeader();null!==Qe&&ye.setRequestHeader("Content-Type",Qe)}if(W.responseType){const Qe=W.responseType.toLowerCase();ye.responseType="json"!==Qe?Qe:"text"}const Re=W.serializeBody();let se=null;const xe=()=>{if(null!==se)return se;const Qe=1223===ye.status?204:ye.status,ot=ye.statusText||"OK",Sn=new U(ye.getAllResponseHeaders()),Le=function(fe){return"responseURL"in fe&&fe.responseURL?fe.responseURL:/^X-Request-URL:/m.test(fe.getAllResponseHeaders())?fe.getResponseHeader("X-Request-URL"):null}(ye)||W.url;return se=new H({headers:Sn,status:Qe,statusText:ot,url:Le}),se},Ne=()=>{let{headers:Qe,status:ot,statusText:Sn,url:Le}=xe(),Ut=null;204!==ot&&(Ut=void 0===ye.response?ye.responseText:ye.response),0===ot&&(ot=Ut?200:0);let rn=ot>=200&&ot<300;if("json"===W.responseType&&"string"==typeof Ut){const Dr=Ut;Ut=Ut.replace(It,"");try{Ut=""!==Ut?JSON.parse(Ut):null}catch(nr){Ut=Dr,rn&&(rn=!1,Ut={error:nr,text:Ut})}}rn?(ge.next(new X({body:Ut,headers:Qe,status:ot,statusText:Sn,url:Le||void 0})),ge.complete()):ge.error(new ue({error:Ut,headers:Qe,status:ot,statusText:Sn,url:Le||void 0}))},St=Qe=>{const{url:ot}=xe(),Sn=new ue({error:Qe,status:ye.status||0,statusText:ye.statusText||"Unknown Error",url:ot||void 0});ge.error(Sn)};let Lt=!1;const zn=Qe=>{Lt||(ge.next(xe()),Lt=!0);let ot={type:lt.DownloadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(ot.total=Qe.total),"text"===W.responseType&&!!ye.responseText&&(ot.partialText=ye.responseText),ge.next(ot)},wt=Qe=>{let ot={type:lt.UploadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(ot.total=Qe.total),ge.next(ot)};return ye.addEventListener("load",Ne),ye.addEventListener("error",St),ye.addEventListener("timeout",St),ye.addEventListener("abort",St),W.reportProgress&&(ye.addEventListener("progress",zn),null!==Re&&ye.upload&&ye.upload.addEventListener("progress",wt)),ye.send(Re),ge.next({type:lt.Sent}),()=>{ye.removeEventListener("error",St),ye.removeEventListener("abort",St),ye.removeEventListener("load",Ne),ye.removeEventListener("timeout",St),W.reportProgress&&(ye.removeEventListener("progress",zn),null!==Re&&ye.upload&&ye.upload.removeEventListener("progress",wt)),ye.readyState!==ye.DONE&&ye.abort()}})}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.JF))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const gn=new u.OlP("XSRF_COOKIE_NAME"),Tt=new u.OlP("XSRF_HEADER_NAME");class it{}let mn=(()=>{class fe{constructor(W,ge,ye){this.doc=W,this.platform=ge,this.cookieName=ye,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const W=this.doc.cookie||"";return W!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,y.Mx)(W,this.cookieName),this.lastCookieString=W),this.lastToken}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.K0),u.LFG(u.Lbi),u.LFG(gn))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Cn=(()=>{class fe{constructor(W,ge){this.tokenService=W,this.headerName=ge}intercept(W,ge){const ye=W.url.toLowerCase();if("GET"===W.method||"HEAD"===W.method||ye.startsWith("http://")||ye.startsWith("https://"))return ge.handle(W);const Re=this.tokenService.getToken();return null!==Re&&!W.headers.has(this.headerName)&&(W=W.clone({headers:W.headers.set(this.headerName,Re)})),ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(it),u.LFG(Tt))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Rn=(()=>{class fe{constructor(W,ge){this.backend=W,this.injector=ge,this.chain=null}handle(W){if(null===this.chain){const ge=this.injector.get(ee,[]);this.chain=ge.reduceRight((ye,Re)=>new ze(ye,Re),this.backend)}return this.chain.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(x),u.LFG(u.zs3))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Ft=(()=>{class fe{static disable(){return{ngModule:fe,providers:[{provide:Cn,useClass:Ie}]}}static withOptions(W={}){return{ngModule:fe,providers:[W.cookieName?{provide:gn,useValue:W.cookieName}:[],W.headerName?{provide:Tt,useValue:W.headerName}:[]]}}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[Cn,{provide:ee,useExisting:Cn,multi:!0},{provide:it,useClass:mn},{provide:gn,useValue:"XSRF-TOKEN"},{provide:Tt,useValue:"X-XSRF-TOKEN"}]}),fe})(),gt=(()=>{class fe{}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[ie,{provide:P,useClass:Rn},yt,{provide:x,useExisting:yt}],imports:[[Ft.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),fe})()},476:(Ye,me,O)=>{"use strict";O.d(me,{deG:()=>__,tb:()=>My,AFp:()=>wy,ip1:()=>Pd,CZH:()=>Os,hGG:()=>cS,z2F:()=>xa,sBO:()=>eb,Sil:()=>Ra,_Vd:()=>Do,EJc:()=>Ty,SBq:()=>Oi,qLn:()=>es,vpe:()=>Pi,gxx:()=>ss,tBr:()=>qo,XFs:()=>se,OlP:()=>ln,zs3:()=>Vt,ZZ4:()=>Rl,aQg:()=>xl,soG:()=>Wl,YKP:()=>pm,v3s:()=>HA,h0i:()=>bo,PXZ:()=>kA,R0b:()=>Er,FiY:()=>$i,Lbi:()=>Sy,g9A:()=>Ay,Qsj:()=>U0,FYo:()=>Nl,JOm:()=>Ai,Tiy:()=>od,q3G:()=>un,tp0:()=>to,EAV:()=>KA,Rgc:()=>Ea,dDg:()=>Ry,DyG:()=>el,GfV:()=>sm,s_b:()=>kl,ifc:()=>Le,eFA:()=>Uy,G48:()=>OA,Gpc:()=>Fe,_c5:()=>rS,VLi:()=>TA,c2e:()=>Iy,zSh:()=>ua,wAp:()=>qe,vHH:()=>$e,EiD:()=>Tf,mCW:()=>ta,qzn:()=>Xo,JVY:()=>K_,pB0:()=>J_,eBb:()=>Z_,L6k:()=>Y_,LAX:()=>q_,cg1:()=>Kc,Tjo:()=>tS,kL8:()=>Ig,yhl:()=>Ef,dqk:()=>nt,sIi:()=>fa,CqO:()=>Lc,QGY:()=>Fc,F4k:()=>Vp,RDi:()=>Be,AaK:()=>Me,z3N:()=>ji,qOj:()=>Ec,TTD:()=>Li,_Bn:()=>tm,xp6:()=>hh,uIk:()=>wc,Tol:()=>rg,ekj:()=>jc,Suo:()=>ty,Xpm:()=>et,lG2:()=>rr,Yz7:()=>xt,cJS:()=>Ft,oAB:()=>yn,Yjl:()=>Yn,Y36:()=>pa,_UZ:()=>Lp,BQk:()=>xc,ynx:()=>Rc,qZA:()=>Nc,TgZ:()=>Pc,EpF:()=>kp,n5z:()=>Ho,Ikx:()=>zc,SDv:()=>Jg,QtT:()=>Qg,N_p:()=>Qc,pQV:()=>Xc,Zx4:()=>Xg,tHW:()=>Jc,LFG:()=>vn,$8M:()=>vu,NdJ:()=>kc,CRH:()=>ny,oxw:()=>jp,ALo:()=>Zm,xi3:()=>qm,Q6J:()=>Tc,s9C:()=>Uc,MGl:()=>bl,hYB:()=>Bc,DdM:()=>jm,VKq:()=>Hm,iGM:()=>Xm,MAs:()=>wp,CHM:()=>$a,LSH:()=>Ru,kYT:()=>zr,Udp:()=>$c,YNc:()=>bp,W1O:()=>sy,_uU:()=>cg,Oqu:()=>Gc,hij:()=>Al,AsE:()=>Wc,Gf:()=>ey});var y=O(23),u=O(5994),ce=O(5929),re=O(6149),te=O(9528),K=O(6889),P=O(8839),x=O(1776),U=O(9162),Y=O(4294),ae=O(4111),Ee=O(4297);function Pe(e,t){for(var n=[],r=2;r ${n} ${r} ${t} <=Actual]`))}function xt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ft(e){return{providers:e.providers||[],imports:e.imports||[]}}function gt(e){return tr(e,W)||tr(e,ye)}function tr(e,t){return e.hasOwnProperty(t)?e[t]:null}function G(e){return e&&(e.hasOwnProperty(ge)||e.hasOwnProperty(Re))?e[ge]:null}const W=ve({\u0275prov:ve}),ge=ve({\u0275inj:ve}),ye=ve({ngInjectableDef:ve}),Re=ve({ngInjectorDef:ve});var se=(()=>((se=se||{})[se.Default=0]="Default",se[se.Host=1]="Host",se[se.Self=2]="Self",se[se.SkipSelf=4]="SkipSelf",se[se.Optional=8]="Optional",se))();let xe;function St(e){const t=xe;return xe=e,t}function Lt(e,t,n){const r=gt(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&se.Optional?null:void 0!==t?t:void ze(Me(e),"Injector")}function wt(e){return{toString:e}.toString()}var Qe=(()=>((Qe=Qe||{})[Qe.OnPush=0]="OnPush",Qe[Qe.Default=1]="Default",Qe))(),Le=(()=>((Le=Le||{})[Le.Emulated=0]="Emulated",Le[Le.None=2]="None",Le[Le.ShadowDom=3]="ShadowDom",Le))();const Ut="undefined"!=typeof globalThis&&globalThis,rn="undefined"!=typeof window&&window,Dr="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,nr="undefined"!=typeof global&&global,nt=Ut||nr||rn||Dr,xn={},mt=[],cr=ve({\u0275cmp:ve}),br=ve({\u0275dir:ve}),Gr=ve({\u0275pipe:ve}),gi=ve({\u0275mod:ve}),Wr=ve({\u0275loc:ve}),In=ve({\u0275fac:ve}),Fn=ve({__NG_ELEMENT_ID__:ve});let Kn=0;function et(e){return wt(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Qe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||mt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Le.Emulated,id:"c",styles:e.styles||mt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,s=e.pipes;return r.id+=Kn++,r.inputs=Kr(e.inputs,n),r.outputs=Kr(e.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Tn):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(En):null,r})}function Tn(e){return qt(e)||function(e){return e[br]||null}(e)}function En(e){return function(e){return e[Gr]||null}(e)}const Ln={};function yn(e){return wt(()=>{const t={type:e.type,bootstrap:e.bootstrap||mt,declarations:e.declarations||mt,imports:e.imports||mt,exports:e.exports||mt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Ln[e.id]=e.type),t})}function zr(e,t){return wt(()=>{const n=Yt(e,!0);n.declarations=t.declarations||mt,n.imports=t.imports||mt,n.exports=t.exports||mt})}function Kr(e,t){if(null==e)return xn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const rr=et;function Yn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function qt(e){return e[cr]||null}function Yt(e,t){const n=e[gi]||null;if(!n&&!0===t)throw new Error(`Type ${Me(e)} does not have '\u0275mod' property.`);return n}function sn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Dn(e){return Array.isArray(e)&&!0===e[1]}function pr(e){return 0!=(8&e.flags)}function Mr(e){return 2==(2&e.flags)}function jn(e){return 1==(1&e.flags)}function Pt(e){return null!==e.template}function Ir(e){return 0!=(512&e[2])}function Pr(e,t){return e.hasOwnProperty(In)?e[In]:null}class Yi{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Li(){return ki}function ki(e){return e.type.prototype.ngOnChanges&&(e.setInput=gr),Nr}function Nr(){const e=vi(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===xn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function gr(e,t,n,r){const i=vi(e)||function(e,t){return e[Zi]=t}(e,{previous:xn,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],d=s[a];o[a]=new Yi(d&&d.currentValue,t,s===xn),e[r]=t}Li.ngInherit=!0;const Zi="__ngSimpleChanges__";function vi(e){return e[Zi]||null}let pe;function Be(e){pe=e}function Dt(){return void 0!==pe?pe:"undefined"!=typeof document?document:void 0}function m(e){return!!e.listen}const M={createRenderer:(e,t)=>Dt()};function we(e){for(;Array.isArray(e);)e=e[0];return e}function Qt(e,t){return we(t[e])}function zt(e,t){return we(t[e.index])}function Rr(e,t){return e.data[t]}function mr(e,t){return e[t]}function bn(e,t){const n=t[e];return sn(n)?n:n[0]}function so(e){return 4==(4&e[2])}function Qr(e){return 128==(128&e[2])}function Xr(e,t){return null==t?null:e[t]}function ao(e){e[18]=0}function ks(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const st={lFrame:Hs(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ba(){return st.bindingsEnabled}function _e(){return st.lFrame.lView}function vt(){return st.lFrame.tView}function $a(e){return st.lFrame.contextLView=e,e[8]}function pn(){let e=ja();for(;null!==e&&64===e.type;)e=e.parent;return e}function ja(){return st.lFrame.currentTNode}function co(){const e=st.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function xr(e,t){const n=st.lFrame;n.currentTNode=e,n.isParent=t}function Us(){return st.lFrame.isParent}function To(){st.lFrame.isParent=!1}function Oo(){return st.isInCheckNoChangesMode}function Po(e){st.isInCheckNoChangesMode=e}function Hn(){const e=st.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yr(){return st.lFrame.bindingIndex}function Vi(){return st.lFrame.bindingIndex++}function Fr(e){const t=st.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Bs(e){st.lFrame.inI18n=e}function au(e,t){const n=st.lFrame;n.bindingIndex=n.bindingRootIndex=e,$s(t)}function $s(e){st.lFrame.currentDirectiveIndex=e}function Ga(){return st.lFrame.currentQueryIndex}function fo(e){st.lFrame.currentQueryIndex=e}function uu(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wa(e,t,n){if(n&se.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&se.Host||(i=uu(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=st.lFrame=Ro();return r.currentTNode=t,r.lView=e,!0}function No(e){const t=Ro(),n=e[1];st.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ro(){const e=st.lFrame,t=null===e?null:e.child;return null===t?Hs(e):t}function Hs(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function za(){const e=st.lFrame;return st.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ui=za;function xo(){const e=za();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Gn(){return st.lFrame.selectedIndex}function ei(e){st.lFrame.selectedIndex=e}function Xt(){const e=st.lFrame;return Rr(e.tView,e.selectedIndex)}function ti(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[d]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Ji{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Bo(e,t,n){const r=m(e);let i=0;for(;it){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Ks=!0;function jo(e){const t=Ks;return Ks=e,t}let f=0;function l(e,t){const n=C(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,p(r.data,e),p(t,null),p(r.blueprint,null));const i=b(e,t),o=e.injectorIndex;if(Qa(i)){const s=Qi(i),a=Ei(i,t),d=a[1].data;for(let g=0;g<8;g++)t[o+g]=a[s+g]|d[s+g]}return t[o+8]=i,o}function p(e,t){e.push(0,0,0,0,0,0,0,0,t)}function C(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function b(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function R(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Fn)&&(r=n[Fn]),null==r&&(r=n[Fn]=f++);const i=255&r;t.data[e+(i>>5)]|=1<=0?255&t:kt:t}(n);if("function"==typeof o){if(!Wa(t,e,r))return r&se.Host?q(i,n,r):Se(t,n,r,i);try{const s=o(r);if(null!=s||r&se.Optional)return s;ze(n)}finally{Ui()}}else if("number"==typeof o){let s=null,a=C(e,t),d=-1,g=r&se.Host?t[16][6]:null;for((-1===a||r&se.SkipSelf)&&(d=-1===a?b(e,t):t[a+8],-1!==d&&Bi(r,!1)?(s=t[1],a=Qi(d),t=Ei(d,t)):a=-1);-1!==a;){const D=t[1];if(Xi(o,a,D.data)){const I=Ct(a,t,n,s,r,g);if(I!==at)return I}d=t[a+8],-1!==d&&Bi(r,t[1].data[a+8]===g)&&Xi(o,a,t)?(s=D,a=Qi(d),t=Ei(d,t)):a=-1}}}return Se(t,n,r,i)}const at={};function kt(){return new sr(pn(),_e())}function Ct(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],D=_r(a,s,n,null==r?Mr(a)&&Ks:r!=s&&0!=(3&a.type),i&se.Host&&o===a);return null!==D?or(t,s,D,a):at}function _r(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,d=e.directiveStart,D=o>>20,T=i?a+D:e.directiveEnd;for(let k=r?a:a+D;k=d&&j.type===n)return k}if(i){const k=s[d];if(k&&Pt(k)&&k.type===n)return d}return null}function or(e,t,n,r){let i=e[n];const o=t.data;if(function(e){return e instanceof Ji}(i)){const s=i;s.resolving&&function(e,t){throw new $e("200",`Circular dependency in DI detected for ${e}`)}(X(o[n]));const a=jo(s.canSeeViewProviders);s.resolving=!0;const d=s.injectImpl?St(s.injectImpl):null;Wa(e,r,se.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=ki(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==d&&St(d),jo(a),s.resolving=!1,Ui()}}return i}function Xi(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[In]||_u(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[In]||_u(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function _u(e){return Ke(e)?()=>{const t=_u(he(e));return t&&t()}:Pr(e)}function vu(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{const r=function(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(d,g,D){const I=d.hasOwnProperty(Wo)?d[Wo]:Object.defineProperty(d,Wo,{value:[]})[Wo];for(;I.length<=D;)I.push(null);return(I[D]=I[D]||[]).push(s),d}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class ln{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=xt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const __=new ln("AnalyzeForEntryComponents"),el=Function;function kr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Di(n,t):t(n))}function nl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function mo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vr(e,t,n){let r=Ko(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Eu(e,t){const n=Ko(e,t);if(n>=0)return e[1|n]}function Ko(e,t){return function(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i< ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Me(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(I_,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Yo]=null,e}const qo=Xs(go("Inject",e=>({token:e})),-1),$i=Xs(go("Optional"),8),to=Xs(go("SkipSelf"),4);let sl;function Qo(e){var t;return(null===(t=function(){if(void 0===sl&&(sl=null,nt.trustedTypes))try{sl=nt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sl}())||void 0===t?void 0:t.createHTML(e))||e}class _o{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class j_ extends _o{getTypeName(){return"HTML"}}class H_ extends _o{getTypeName(){return"Style"}}class G_ extends _o{getTypeName(){return"Script"}}class W_ extends _o{getTypeName(){return"URL"}}class z_ extends _o{getTypeName(){return"ResourceURL"}}function ji(e){return e instanceof _o?e.changingThisBreaksApplicationSecurity:e}function Xo(e,t){const n=Ef(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Ef(e){return e instanceof _o&&e.getTypeName()||null}function K_(e){return new j_(e)}function Y_(e){return new H_(e)}function Z_(e){return new G_(e)}function q_(e){return new W_(e)}function J_(e){return new z_(e)}function Df(e){const t=new X_(e);return function(){try{return!!(new window.DOMParser).parseFromString(Qo(""),"text/html")}catch(e){return!1}}()?new Q_(t):t}class Q_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Qo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class X_{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Qo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Qo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0ta(t.trim())).join(", ")}function bi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function na(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const wf=bi("area,br,col,hr,img,wbr"),Af=bi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sf=bi("rp,rt"),Tu=na(wf,na(Af,bi("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")),na(Sf,bi("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")),na(Sf,Af)),Ou=bi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pu=bi("srcset"),Mf=na(Ou,Pu,bi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bi("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")),rv=bi("script,style,template");class iv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Tu.hasOwnProperty(n))return this.sanitizedSomething=!0,!rv.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i"),!0}endElement(t){const n=t.nodeName.toLowerCase();Tu.hasOwnProperty(n)&&!wf.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(If(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const ov=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sv=/([^\#-~ |!])/g;function If(e){return e.replace(/&/g,"&").replace(ov,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(sv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ll;function Tf(e,t){let n=null;try{ll=ll||Df(e);let r=t?String(t):"";n=ll.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ll.getInertBodyElement(r)}while(r!==o);return Qo((new iv).sanitizeChildren(Nu(n)||n))}finally{if(n){const r=Nu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Nu(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var un=(()=>((un=un||{})[un.NONE=0]="NONE",un[un.HTML=1]="HTML",un[un.STYLE=2]="STYLE",un[un.SCRIPT=3]="SCRIPT",un[un.URL=4]="URL",un[un.RESOURCE_URL=5]="RESOURCE_URL",un))();function Ru(e){const t=function(){const e=_e();return e&&e[12]}();return t?t.sanitize(un.URL,e)||"":Xo(e,"URL")?ji(e):ta(H(e))}const Nf="__ngContext__";function Jn(e,t){e[Nf]=t}function Fu(e){const t=function(e){return e[Nf]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ul(e){return e.ngOriginalError}function wv(e,...t){e.error(...t)}class es{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=this._findContext(t),i=(e=t)&&e.ngErrorLogger||wv;var e;i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n),r&&i(this._console,"ERROR CONTEXT",r)}_findContext(t){return t?t.ngDebugContext||this._findContext(ul(t)):null}_findOriginalError(t){let n=t&&ul(t);for(;n&&ul(n);)n=ul(n);return n||null}}const Mv=/^>|^->||--!>|)/;const $f=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(nt))();function wi(e){return e instanceof Function?e():e}var Ai=(()=>((Ai=Ai||{})[Ai.Important=1]="Important",Ai[Ai.DashCase=2]="DashCase",Ai))();let ku;function Vu(e,t){return ku(e,t)}function oa(e){const t=e[3];return Dn(t)?t[3]:t}function Uu(e){return zf(e[13])}function Bu(e){return zf(e[4])}function zf(e){for(;null!==e&&!Dn(e);)e=e[4];return e}function ns(e,t,n,r,i){if(null!=r){let o,s=!1;Dn(r)?o=r:sn(r)&&(s=!0,r=r[0]);const a=we(r);0===e&&null!==n?null==i?Qf(t,n,a):vo(t,n,a,i||null,!0):1===e&&null!==n?vo(t,n,a,i||null,!0):2===e?oh(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,r,i){const o=n[7];o!==we(n)&&ns(t,e,r,o,i);for(let a=10;at.replace(Iv,"\u200b$1\u200b"))}(t))}function ju(e,t,n){return m(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Yf(e,t){const n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,ks(i,-1)),n.splice(r,1)}function Hu(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&Yf(i,r),t>0&&(e[n-1][4]=r[4]);const o=mo(e,10+t);!function(e,t){sa(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Zf(e,t){if(!(256&t[2])){const n=t[11];m(n)&&n.destroyNode&&sa(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Gu(e[1],e);for(;t;){let n=null;if(sn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)sn(t)&&Gu(t[1],t),t=t[3];null===t&&(t=e),sn(t)&&Gu(t[1],t),n=t&&t[4]}t=n}}(t)}}function Gu(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[i=g]():r[i=-g].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;oo?"":i[I+1].toLowerCase();const k=8&r?T:null;if(k&&-1!==lh(k,g,0)||2&r&&g!==T){if(ri(r))return!1;s=!0}}}}else{if(!s&&!ri(r)&&!ri(d))return!1;if(s&&ri(d))continue;s=!1,r=d|1&r}}return ri(r)||s}function ri(e){return 0==(1&e)}function Xv(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!ri(s)&&(t+=fh(o,i),i=""),r=s,o=o||!ri(r);n++}return""!==i&&(t+=fh(o,i)),t}const dt={};function hh(e){ph(vt(),_e(),Gn()+e,Oo())}function ph(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&ho(t,o,n)}else{const o=e.preOrderHooks;null!==o&&Vo(t,o,0,n)}ei(n)}function pl(e,t){return e<<17|t<<2}function ii(e){return e>>17&32767}function Zu(e){return 2|e}function Hi(e){return(131068&e)>>2}function qu(e,t){return-131069&e|t<<2}function Ju(e){return 1|e}function wh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&ph(e,t,20,Oo()),n(r,i)}finally{ei(o)}}function Sh(e,t,n){if(pr(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=d&&a.push(d),a.push(r,i,s)}}function xh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function OC(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&uc(n)}}function uc(e){for(let r=Uu(e);null!==r;r=Bu(r))for(let i=10;i0&&uc(o)}const n=e[1].components;if(null!==n)for(let r=0;r0&&uc(i)}}function kC(e,t){const n=bn(t,e),r=n[1];(function(e,t){for(let n=t.length;nPromise.resolve(null))();function Bh(e){return e[7]||(e[7]=[])}function $h(e){return e.cleanup||(e.cleanup=[])}function Hh(e,t){const n=e[9],r=n?n.get(es,null):null;r&&r.handleError(t)}function Gh(e,t,n,r,i){for(let o=0;othis.processProvider(a,t,n)),Di([t],a=>this.processInjectorType(a,[],o)),this.records.set(ss,as(void 0,this));const s=this.records.get(ua);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:Me(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Js,r=se.Default){this.assertNotDestroyed();const i=Zo(this),o=St(void 0);try{if(!(r&se.SkipSelf)){let a=this.records.get(t);if(void 0===a){const d=("function"==typeof(e=t)||"object"==typeof e&&e instanceof ln)&>(t);a=d&&this.injectableDefInScope(d)?as(gc(t),ca):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&se.Self?zh():this.parent).get(t,n=r&se.Optional&&n===Js?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Yo]=s[Yo]||[]).unshift(Me(t)),i)throw s;return hf(s,t,"R3InjectorError",this.source)}throw s}finally{St(o),Zo(i)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(Me(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=he(t)))return!1;let i=G(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=G(o)),null==i)return!1;if(null!=i.imports&&!a){let D;r.push(s);try{Di(i.imports,I=>{this.processInjectorType(I,n,r)&&(void 0===D&&(D=[]),D.push(I))})}finally{}if(void 0!==D)for(let I=0;Ithis.processProvider(j,T,k||mt))}}this.injectorDefTypes.add(s);const d=Pr(s)||(()=>new s);this.records.set(s,as(d,ca));const g=i.providers;if(null!=g&&!a){const D=t;Di(g,I=>this.processProvider(I,D,g))}return void 0!==o&&void 0!==t.providers}processProvider(t,n,r){let i=ls(t=he(t))?t:he(t&&t.provide);const o=Zh(e=t)?as(void 0,e.useValue):as(Yh(e),ca);var e;if(ls(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=as(void 0,ca,!0),s.factory=()=>yo(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,n){return n.value===ca&&(n.value=WC,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=he(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function gc(e){const t=gt(e),n=null!==t?t.factory:Pr(e);if(null!==n)return n;if(e instanceof ln)throw new Error(`Token ${Me(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=function(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new Error("unreachable")}function Yh(e,t,n){let r;if(ls(e)){const i=he(e);return Pr(i)||gc(i)}if(Zh(e))r=()=>he(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...yo(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>vn(he(e.useExisting));else{const i=he(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Pr(i)||gc(i);r=()=>new i(...yo(e.deps))}return r}function as(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zh(e){return null!==e&&"object"==typeof e&&Au in e}function ls(e){return"function"==typeof e}const qh=function(e,t,n){return function(e,t=null,n=null,r){const i=Kh(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};class Vt{static create(t,n){return Array.isArray(t)?qh(t,n,""):qh(t.providers,t.parent,t.name||"")}}function pE(e,t){ti(Fu(e)[1],pn())}function Ec(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Pt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const s=e;s.inputs=Dc(e.inputs),s.declaredInputs=Dc(e.declaredInputs),s.outputs=Dc(e.outputs);const a=i.hostBindings;a&&_E(e,a);const d=i.viewQuery,g=i.contentQueries;if(d&&mE(e,d),g&&yE(e,g),He(e.inputs,i.inputs),He(e.declaredInputs,i.declaredInputs),He(e.outputs,i.outputs),Pt(i)&&i.data.animation){const D=e.data;D.animation=(D.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=$o(i.hostAttrs,n=$o(n,i.hostAttrs))}}(r)}function Dc(e){return e===xn?{}:e===mt?[]:e}function mE(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function yE(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,o)=>{t(r,i,o),n(r,i,o)}:t}function _E(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}Vt.THROW_IF_NOT_FOUND=Js,Vt.NULL=new Wh,Vt.\u0275prov=xt({token:Vt,providedIn:"any",factory:()=>vn(ss)}),Vt.__NG_ELEMENT_ID__=-1;let Cl=null;function us(){if(!Cl){const e=nt.Symbol;if(e&&e.iterator)Cl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(we(Je[r.index])):r.index;if(m(n)){let Je=null;if(!a&&d&&(Je=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;od?a[d]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==Je)(Je.__ngLastListenerFn__||Je).__ngNextListenerFn__=o,Je.__ngLastListenerFn__=o,k=!1;else{o=Vc(r,t,I,o,!1);const pt=n.listen(Ce,i,o);T.push(o,pt),D&&D.push(i,ke,de,de+1)}}else o=Vc(r,t,I,o,!0),Ce.addEventListener(i,o,s),T.push(o),D&&D.push(i,ke,de,s)}else o=Vc(r,t,I,o,!1);const j=r.outputs;let J;if(k&&null!==j&&(J=j[i])){const z=J.length;if(z)for(let Ce=0;Ce0;)t=t[15],e--;return t}(e,st.lFrame.contextLView))[8]}(e)}function Uc(e,t,n){return bl(e,"",t,"",n),Uc}function bl(e,t,n,r,i){const o=_e(),s=ds(o,t,n,r);return s!==dt&&Cr(vt(),Xt(),o,e,s,o[11],i,!1),bl}function Bc(e,t,n,r,i,o,s){const a=_e(),d=fs(a,t,n,r,i,o);return d!==dt&&Cr(vt(),Xt(),a,e,d,a[11],s,!1),Bc}function qp(e,t,n,r,i){const o=e[n+1],s=null===t;let a=r?ii(o):Hi(o),d=!1;for(;0!==a&&(!1===d||s);){const D=e[a+1];iD(e[a],t)&&(d=!0,e[a+1]=r?Ju(D):Zu(D)),a=r?ii(D):Hi(D)}d&&(e[n+1]=r?Zu(o):Ju(o))}function iD(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ko(e,t)>=0}const An={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jp(e){return e.substring(An.key,An.keyEnd)}function Qp(e,t){const n=An.textEnd;return n===t?-1:(t=An.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,An.key=t,n),Cs(e,t,n))}function Cs(e,t,n){for(;t=0;n=Qp(t,n))vr(e,Jp(t),!0)}function ai(e,t,n,r){const i=_e(),o=vt(),s=Fr(2);o.firstUpdatePass&&og(o,e,s,r),t!==dt&&Qn(i,s,t)&&ag(o,o.data[Gn()],i,i[11],e,i[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Me(ji(e)))),e}(t,n),r,s)}function ig(e,t){return t>=e.expandoStartIndex}function og(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[Gn()],s=ig(e,n);ug(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const i=function(e){const t=st.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=ga(n=Hc(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Hc(i,e,t,n,r),null===o){let d=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Hi(r))return e[ii(r)]}(e,t,r);void 0!==d&&Array.isArray(d)&&(d=Hc(null,e,t,d[1],r),d=ga(d,t.attrs,r),function(e,t,n,r){e[ii(n?t.classBindings:t.styleBindings)]=r}(e,t,r,d))}else o=function(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(g=!0)}else D=n;if(i)if(0!==d){const T=ii(e[a+1]);e[r+1]=pl(T,a),0!==T&&(e[T+1]=qu(e[T+1],r)),e[a+1]=function(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=pl(a,0),0!==a&&(e[a+1]=qu(e[a+1],r)),a=r;else e[r+1]=pl(d,0),0===a?a=r:e[d+1]=qu(e[d+1],r),d=r;g&&(e[r+1]=Zu(e[r+1])),qp(e,D,r,!0),qp(e,D,r,!1),function(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ko(o,t)>=0&&(n[r+1]=Ju(n[r+1]))}(t,D,e,r,o),s=pl(a,d),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function Hc(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const d=e[i],g=Array.isArray(d),D=g?d[1]:d,I=null===D;let T=n[i+1];T===dt&&(T=I?mt:void 0);let k=I?Eu(T,r):D===r?T:void 0;if(g&&!wl(k)&&(k=Eu(d,r)),wl(k)&&(a=k,s))return a;const j=e[i+1];i=s?ii(j):Hi(j)}if(null!==t){let d=o?t.residualClasses:t.residualStyles;null!=d&&(a=Eu(d,r))}return a}function wl(e){return void 0!==e}function ug(e,t){return 0!=(e.flags&(t?16:32))}function cg(e,t=""){const n=_e(),r=vt(),i=e+20,o=r.firstCreatePass?rs(r,i,1,t,null):r.data[i],s=n[i]=$u(n[11],t);fl(r,n,s,o),xr(o,!1)}function Gc(e){return Al("",e,""),Gc}function Al(e,t,n){const r=_e(),i=ds(r,e,t,n);return i!==dt&&Wi(r,Gn(),i),Al}function Wc(e,t,n,r,i){const o=_e(),s=fs(o,e,t,n,r,i);return s!==dt&&Wi(o,Gn(),s),Wc}function zc(e,t,n){const r=_e();return Qn(r,Vi(),t)&&Cr(vt(),Xt(),r,e,t,r[11],n,!0),zc}const Eo=void 0;var VD=["en",[["a","p"],["AM","PM"],Eo],[["AM","PM"],Eo,Eo],[["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"]],Eo,[["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"]],Eo,[["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}",Eo,"{1} 'at' {0}",Eo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Es={};function Kc(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Tg(t);if(n)return n;const r=t.split("-")[0];if(n=Tg(r),n)return n;if("en"===r)return VD;throw new Error(`Missing locale data for the locale "${e}".`)}function Ig(e){return Kc(e)[qe.PluralCase]}function Tg(e){return e in Es||(Es[e]=nt.ng&&nt.ng.common&&nt.ng.common.locales&&nt.ng.common.locales[e]),Es[e]}var qe=(()=>((qe=qe||{})[qe.LocaleId=0]="LocaleId",qe[qe.DayPeriodsFormat=1]="DayPeriodsFormat",qe[qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",qe[qe.DaysFormat=3]="DaysFormat",qe[qe.DaysStandalone=4]="DaysStandalone",qe[qe.MonthsFormat=5]="MonthsFormat",qe[qe.MonthsStandalone=6]="MonthsStandalone",qe[qe.Eras=7]="Eras",qe[qe.FirstDayOfWeek=8]="FirstDayOfWeek",qe[qe.WeekendRange=9]="WeekendRange",qe[qe.DateFormat=10]="DateFormat",qe[qe.TimeFormat=11]="TimeFormat",qe[qe.DateTimeFormat=12]="DateTimeFormat",qe[qe.NumberSymbols=13]="NumberSymbols",qe[qe.NumberFormats=14]="NumberFormats",qe[qe.CurrencyCode=15]="CurrencyCode",qe[qe.CurrencySymbol=16]="CurrencySymbol",qe[qe.CurrencyName=17]="CurrencyName",qe[qe.Currencies=18]="Currencies",qe[qe.Directionality=19]="Directionality",qe[qe.PluralCase=20]="PluralCase",qe[qe.ExtraData=21]="ExtraData",qe))();const BD=["zero","one","two","few","many"],Sl="en-US",Ml={marker:"element"},Il={marker:"ICU"};var cn=(()=>((cn=cn||{})[cn.SHIFT=2]="SHIFT",cn[cn.APPEND_EAGERLY=1]="APPEND_EAGERLY",cn[cn.COMMENT=2]="COMMENT",cn))();let Og=Sl;function Yc(e){(function(e,t){null==e&&it(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Og=e.toLowerCase().replace(/_/g,"-"))}function Pg(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?th(e,0,n):we(n[i])}function Ng(e,t,n,r,i){const o=t.insertBeforeIndex;if(Array.isArray(o)){let s=r,a=null;if(3&t.type||(a=s,s=i),null!==s&&0==(2&t.flags))for(let d=1;d1)for(let n=e.length-2;n>=0;n--){const r=e[n];xg(r)||GD(r,t)&&null===WD(r)&&zD(r,t.index)}}function xg(e){return!(64&e.type)}function GD(e,t){return xg(t)||e.index>t.index}function WD(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function zD(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(rh(Pg,Ng),e.insertBeforeIndex=t)}function ma(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function ZD(e,t,n){const r=ic(e,n,64,null,null);return Rg(t,r),r}function Tl(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Fg(e){return e>>>17}function Lg(e){return(131070&e)>>>1}let ya=0,_a=0;function Vg(e,t,n,r){const i=n[11];let s,o=null;for(let a=0;a>>1,n),null,null,k,j,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${d}"`)}else switch(d){case Il:const g=t[++a],D=t[++a];null===n[D]&&Jn(n[D]=Lv(i,g),n);break;case Ml:const I=t[++a],T=t[++a];null===n[T]&&Jn(n[T]=ju(i,I,null),n)}}}function Ug(e,t,n,r,i){for(let o=0;o>>2;switch(3&D){case 1:const T=n[++g],k=n[++g],j=e.data[I];"string"==typeof j?lc(t[11],t[I],null,j,T,d,k):Cr(e,j,t,T,d,t[11],k,!1);break;case 0:const J=t[I];null!==J&&Kf(t[11],J,d);break;case 2:e0(e,ma(e,I),t,d);break;case 3:Bg(e,ma(e,I),r,t)}}}}else{const d=n[o+1];if(d>0&&3==(3&d)){const D=ma(e,d>>>2);t[D.currentCaseLViewIndex]<0&&Bg(e,D,r,t)}}o+=a}}function Bg(e,t,n,r){let i=r[t.currentCaseLViewIndex];if(null!==i){let o=ya;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),Ug(e,r,t.update[i],n,o)}}function e0(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=Ig(t)(parseInt(e,10)),r=BD[n];return void 0!==r?r:"other"}(t,Og);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(Tl(t,n)!==i&&($g(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const s=n[t.anchorIdx];s&&Vg(e,t.create[i],n,s)}}function $g(e,t,n){let r=Tl(t,n);if(null!==r){const i=t.remove[r];for(let o=0;o0){const a=Qt(s,n);null!==a&&oh(n[11],a)}else $g(e,ma(e,~s),n)}}}function n0(){const e=[];let n,r,t=-1;function o(a,d){t=0;const g=Tl(a,d);r=null!==g?a.remove[g]:mt}function s(){if(t0?n[a]:(e.push(t,r),o(n[1].data[~a],n),s())}return 0===e.length?null:(r=e.pop(),t=e.pop(),s())}return function(a,d){for(n=d;e.length;)e.pop();return o(a.value,d),s}}const Ol=/\ufffd(\d+):?\d*\ufffd/gi,i0=/\ufffd(\d+)\ufffd/,Hg=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,o0=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,s0=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,a0=/\uE500/g;function Gg(e,t,n,r,i,o,s){const a=is(e,r,1,null);let d=a<n.length&&n.push(d)}return{type:r,mainBinding:i,cases:t,values:n}}function Zc(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(e);){const a=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const d=e.substring(t,a);Hg.test(d)?r.push(g0(d)):r.push(d),t=a+1}}else{if(0==n.length){const d=e.substring(t,a);r.push(d),t=a+1}n.push("{")}}const s=e.substring(t);return r.push(s),r}function m0(e,t,n,r,i,o,s,a){const d=[],g=[],D=[];t.cases.push(o),t.create.push(d),t.remove.push(g),t.update.push(D);const T=Df(Dt()).getInertBodyElement(s),k=Nu(T)||T;return k?Yg(e,t,n,r,d,g,D,k,i,a,0):0}function Yg(e,t,n,r,i,o,s,a,d,g,D){let I=0,T=a.firstChild;for(;T;){const k=is(e,n,1,null);switch(T.nodeType){case Node.ELEMENT_NODE:const j=T,J=j.tagName.toLowerCase();if(Tu.hasOwnProperty(J)){qc(i,Ml,J,d,k),e.data[k]=J;const ke=j.attributes;for(let Je=0;Je>>cn.SHIFT;let I=e[D];null===I&&(I=e[D]=d?i.createComment(a):$u(i,a)),g&&null!==n&&vo(i,n,I,r,!1)}})(i,d.create,D,a&&8&a.type?i[a.index]:null),Bs(!0)}function Qc(){Bs(!1)}function Jg(e,t,n){Jc(e,t,n),Qc()}function Xc(e){return function(e){e&&(ya|=1<0){const r=e.data[n];Ug(e,t,Array.isArray(r)?r:r.update,yr()-_a-1,ya)}ya=0,_a=0}(vt(),_e(),e+20)}function Xg(e,t={}){return function(e,t={}){let n=e;if(E0.test(e)){const r={},i=[0];n=n.replace(D0,(o,s,a)=>{const d=s||a,g=r[d]||[];if(g.length||(d.split("|").forEach(J=>{const z=J.match(M0),Ce=z?parseInt(z[1],10):0,de=S0.test(J);g.push([Ce,de,J])}),r[d]=g),!g.length)throw new Error(`i18n postprocess: unmatched placeholder - ${d}`);const D=i[i.length-1];let I=0;for(let J=0;Jt.hasOwnProperty(o)?`${i}${t[o]}${d}`:r),n=n.replace(w0,(r,i)=>t.hasOwnProperty(i)?t[i]:r),n=n.replace(A0,(r,i)=>{if(t.hasOwnProperty(i)){const o=t[i];if(!o.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${i}`);return o.shift()}return r})),n}(e,t)}function ed(e,t,n,r,i){if(e=he(e),Array.isArray(e))for(let o=0;o>20;if(ls(e)||!e.multi){const k=new Ji(d,i,pa),j=nd(a,t,i?D:D+T,I);-1===j?(R(l(g,s),o,a),td(o,e,t.length),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(k),s.push(k)):(n[j]=k,s[j]=k)}else{const k=nd(a,t,D+T,I),j=nd(a,t,D,D+T),J=k>=0&&n[k],z=j>=0&&n[j];if(i&&!z||!i&&!J){R(l(g,s),o,a);const Ce=function(e,t,n,r,i){const o=new Ji(e,n,pa);return o.multi=[],o.index=t,o.componentProviders=0,em(o,i,r&&!n),o}(i?N0:P0,n.length,i,r,d);!i&&z&&(n[j].providerFactory=Ce),td(o,e,t.length,0),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(Ce),s.push(Ce)}else td(o,e,k>-1?k:j,em(n[i?j:k],d,!i&&r));!i&&r&&z&&n[j].componentProviders++}}}function td(e,t,n,r){const i=ls(t);if(i||function(e){return!!e.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const d=a.indexOf(n);-1===d?a.push(n,[r,s]):a[d+1].push(r,s)}else a.push(n,s)}}}function em(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function nd(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>function(e,t,n){const r=vt();if(r.firstCreatePass){const i=Pt(e);ed(n,r.data,r.blueprint,i,!0),ed(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class nm{}const im="ngComponent";class F0{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${Me(e)}. Did you add it to @NgModule.entryComponents?`);return t[im]=e,t}(t)}}class Do{}function Pl(...e){}function bs(e,t){return new Oi(zt(e,t))}Do.NULL=new F0;const V0=function(){return bs(pn(),_e())};let Oi=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=V0,e})();function om(e){return e instanceof Oi?e.nativeElement:e}class Nl{}let U0=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>$0(),e})();const $0=function(){const e=_e(),n=bn(pn().index,e);return function(e){return e[11]}(sn(n)?n:e)};let od=(()=>{class e{}return e.\u0275prov=xt({token:e,providedIn:"root",factory:()=>null}),e})();class sm{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const am=new sm("12.2.4");class lm{constructor(){}supports(t){return fa(t)}create(t){return new W0(t)}}const G0=(e,t)=>t;class W0{constructor(t){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=t||G0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new z0(n,r),o,i),t}_verifyReinsertion(t,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new um),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new um),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class z0{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class K0{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class um{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new K0,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cm(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new Z0(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class Z0{constructor(t){this.key=t,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 fm(){return new Rl([new lm])}let Rl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||fm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:fm}),e})();function hm(){return new xl([new dm])}let xl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||hm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:hm}),e})();function Fl(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(we(o)),Dn(o))for(let a=10;a-1&&(Hu(t,r),mo(n,r))}this._attachedToViewContainer=!1}Zf(this._lView[1],this._lView)}onDestroy(t){Oh(this._lView[1],this._lView,null,t)}markForCheck(){cc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){fc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Po(!0);try{fc(e,t,n)}finally{Po(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,sa(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class J0 extends Ca{constructor(t){super(t),this._view=t}detectChanges(){Uh(this._view)}checkNoChanges(){!function(e){Po(!0);try{Uh(e)}finally{Po(!1)}}(this._view)}get context(){return null}}const X0=function(e){return function(e,t,n){if(Mr(e)&&!n){const r=bn(e.index,t);return new Ca(r,r)}return 47&e.type?new Ca(t[16],t):null}(pn(),_e(),16==(16&e))};let eb=(()=>{class e{}return e.__NG_ELEMENT_ID__=X0,e})();const rb=[new dm],ob=new Rl([new lm]),sb=new xl(rb),lb=function(){return Ll(pn(),_e())};let Ea=(()=>{class e{}return e.__NG_ELEMENT_ID__=lb,e})();const ub=Ea,cb=class extends ub{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=aa(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(n)),la(n,r,t),new Ca(r)}};function Ll(e,t){return 4&e.type?new cb(t,e,bs(e,t)):null}class bo{}class pm{}const hb=function(){return ym(pn(),_e())};let kl=(()=>{class e{}return e.__NG_ELEMENT_ID__=hb,e})();const gb=kl,gm=class extends gb{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return bs(this._hostTNode,this._hostLView)}get injector(){return new sr(this._hostTNode,this._hostLView)}get parentInjector(){const t=b(this._hostTNode,this._hostLView);if(Qa(t)){const n=Ei(t,this._hostLView),r=Qi(t);return new sr(n[1].data[r+8],n)}return new sr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=mm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const i=t.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(t,n,r,i,o){const s=r||this.parentInjector;if(!o&&null==t.ngModule&&s){const d=s.get(bo,null);d&&(o=d)}const a=t.create(s,i,void 0,o);return this.insert(a.hostView,n),a}insert(t,n){const r=t._lView,i=r[1];if(Dn(r[3])){const D=this.indexOf(t);if(-1!==D)this.detach(D);else{const I=r[3],T=new gm(I,I[6],I[3]);T.detach(T.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;!function(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r$f});class Um extends nm{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(iC).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Vm(this.componentDef.inputs)}get outputs(){return Vm(this.componentDef.outputs)}create(t,n,r,i){const o=(i=i||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const o=e.get(n,Ms,i);return o!==Ms||r===Ms?o:t.get(n,r,i)}}}(t,i.injector):t,s=o.get(Nl,M),a=o.get(od,null),d=s.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",D=r?function(e,t,n){if(m(e))return e.selectRootElement(t,n===Le.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(d,r,this.componentDef.encapsulation):ju(s.createRenderer(null,this.componentDef),g,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(g)),I=this.componentDef.onPush?576:528,T=function(e,t){return{components:[],scheduler:e||$f,clean:jC,playerHandler:t||null,flags:0}}(),k=yl(0,null,null,1,0,null,null,null,null,null),j=aa(null,k,T,I,null,null,s,d,a,o);let J,z;No(j);try{const Ce=function(e,t,n,r,i,o){const s=n[1];n[20]=e;const d=rs(s,20,2,"#host",null),g=d.mergedAttrs=t.hostAttrs;null!==g&&(vl(d,g,!0),null!==e&&(Bo(i,e,g),null!==d.classes&&Yu(i,e,d.classes),null!==d.styles&&ah(i,e,d.styles)));const D=r.createRenderer(e,t),I=aa(n,Mh(t),null,t.onPush?64:16,n[20],d,r,D,o||null,null);return s.firstCreatePass&&(R(l(d,n),s,t.type),Fh(s,d),Lh(d,n.length,1)),_l(n,I),n[20]=I}(D,this.componentDef,j,s,d);if(D)if(r)Bo(d,D,["ng-version",am.full]);else{const{attrs:de,classes:ke}=function(e){const t=[],n=[];let r=1,i=2;for(;r0&&Yu(d,D,ke.join(" "))}if(z=Rr(k,20),void 0!==n){const de=z.projection=[];for(let ke=0;ked(s,t)),t.contentQueries){const d=pn();t.contentQueries(1,s,d.directiveStart)}const a=pn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ei(a.index),Rh(n[1],a,0,a.directiveStart,a.directiveEnd,t),xh(t,s)),s}(Ce,this.componentDef,j,T,[pE]),la(k,j,null)}finally{xo()}return new pw(this.componentType,J,bs(z,j),j,z)}}class pw extends class{}{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new J0(i),this.componentType=t}get injector(){return new sr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Is=new Map;class yw extends bo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new km(this);const r=Yt(t),i=t[Wr]||null;i&&Yc(i),this._bootstrapComponents=wi(r.bootstrap),this._r3Injector=Kh(t,n,[{provide:bo,useValue:this},{provide:Do,useValue:this.componentFactoryResolver}],Me(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Vt.THROW_IF_NOT_FOUND,r=se.Default){return t===Vt||t===bo||t===ss?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class vd extends pm{constructor(t){super(),this.moduleType=t,null!==Yt(t)&&function(e){const t=new Set;!function n(r){const i=Yt(r,!0),o=i.id;null!==o&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${Me(t)} vs ${Me(t.name)}`)}(o,Is.get(o),r),Is.set(o,r));const s=wi(i.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new yw(this.moduleType,t)}}function jm(e,t,n){const r=Hn()+e,i=_e();return i[r]===dt?Mi(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function Hm(e,t,n,r){return function(e,t,n,r,i,o){const s=t+n;return Qn(e,s,i)?Mi(e,s+1,o?r.call(o,i):r(i)):Ta(e,s+1)}(_e(),Hn(),e,t,n,r)}function Ta(e,t){const n=e[t];return n===dt?void 0:n}function Zm(e,t){const n=vt();let r;const i=e+20;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new $e("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Pr(r.type)),s=St(pa);try{const a=jo(!1),d=o();return jo(a),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_e(),i,d),d}finally{St(s)}}function qm(e,t,n,r){const i=e+20,o=_e(),s=mr(o,i);return function(e,t){si.isWrapped(t)&&(t=si.unwrap(t),e[yr()]=dt);return t}(o,function(e,t){return e[1].data[t].pure}(o,i)?function(e,t,n,r,i,o,s){const a=t+n;return Co(e,a,i,o)?Mi(e,a+2,s?r.call(s,i,o):r(i,o)):Ta(e,a+2)}(o,Hn(),t,s.transform,n,r,s):s.transform(n,r))}function Cd(e){return t=>{setTimeout(e,void 0,t)}}const Pi=class extends K.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,o,s;let a=t,d=n||(()=>null),g=r;if(t&&"object"==typeof t){const I=t;a=null===(i=I.next)||void 0===i?void 0:i.bind(I),d=null===(o=I.error)||void 0===o?void 0:o.bind(I),g=null===(s=I.complete)||void 0===s?void 0:s.bind(I)}this.__isAsync&&(d=Cd(d),a&&(a=Cd(a)),g&&(g=Cd(g)));const D=super.subscribe({next:a,error:d,complete:g});return t instanceof P.w0&&t.add(D),D}};function Nw(){return this._results[us()]()}class jl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=us(),r=jl.prototype;r[n]||(r[n]=Nw)}get changes(){return this._changes||(this._changes=new Pi)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=kr(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0)r.push(s[a/2]);else{const g=o[a+1],D=t[-d];for(let I=10;I{class e{constructor(n){this.appInits=n,this.resolve=Pl,this.reject=Pl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:d})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(vn(Pd,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const wy=new ln("AppId"),hA={provide:wy,useFactory:function(){return`${Nd()}${Nd()}${Nd()}`},deps:[]};function Nd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ay=new ln("Platform Initializer"),Sy=new ln("Platform ID"),My=new ln("appBootstrapListener");let Iy=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const Wl=new ln("LocaleId"),Ty=new ln("DefaultCurrencyCode");class gA{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Rd=function(e){return new vd(e)},mA=Rd,yA=function(e){return Promise.resolve(Rd(e))},Oy=function(e){const t=Rd(e),r=wi(Yt(e).declarations).reduce((i,o)=>{const s=qt(o);return s&&i.push(new Um(s)),i},[]);return new gA(t,r)},_A=Oy,vA=function(e){return Promise.resolve(Oy(e))};let Ra=(()=>{class e{constructor(){this.compileModuleSync=mA,this.compileModuleAsync=yA,this.compileModuleAndAllComponentsSync=_A,this.compileModuleAndAllComponentsAsync=vA}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const DA=(()=>Promise.resolve(0))();function xd(e){"undefined"==typeof Zone?DA.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Er{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pi(!1),this.onMicrotaskEmpty=new Pi(!1),this.onStable=new Pi(!1),this.onError=new Pi(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let e=nt.requestAnimationFrame,t=nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(nt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ld(e),e.isCheckStableRunning=!0,Fd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ld(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return Py(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Ny(e)}},onInvoke:(n,r,i,o,s,a,d)=>{try{return Py(e),n.invoke(i,o,s,a,d)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ny(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Ld(e),Fd(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Er.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Er.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,wA,Pl,Pl);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const wA={};function Fd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ld(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Py(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ny(e){e._nesting--,Fd(e)}class MA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pi,this.onMicrotaskEmpty=new Pi,this.onStable=new Pi,this.onError=new Pi}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}let Ry=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Er.assertNotInAngularZone(),xd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())xd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(vn(Er))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})(),xy=(()=>{class e{constructor(){this._applications=new Map,kd.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return kd.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();class IA{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function TA(e){kd=e}let kd=new IA,Fy=!0,Ly=!1;function OA(){if(Ly)throw new Error("Cannot enable prod mode after platform setup.");Fy=!1}let di;const Vy=new ln("AllowMultipleToken");class kA{constructor(t,n){this.name=t,this.token=n}}function Uy(e,t,n=[]){const r=`Platform: ${t}`,i=new ln(r);return(o=[])=>{let s=By();if(!s||s.injector.get(Vy,!1))if(e)e(n.concat(o).concat({provide:i,useValue:!0}));else{const a=n.concat(o).concat({provide:i,useValue:!0},{provide:ua,useValue:"platform"});!function(e){if(di&&!di.destroyed&&!di.injector.get(Vy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");di=e.get($y);const t=e.get(Ay,null);t&&t.forEach(n=>n())}(Vt.create({providers:a,name:r}))}return function(e){const t=By();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function By(){return di&&!di.destroyed?di:null}let $y=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(e,t){let n;return n="noop"===e?new MA:("zone.js"===e?void 0:e)||new Er({enableLongStackTrace:(Ly=!0,Fy),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),d=[{provide:Er,useValue:a}];return a.run(()=>{const g=Vt.create({providers:d,parent:this.injector,name:n.moduleType.name}),D=n.create(g),I=D.injector.get(es,null);if(!I)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const T=a.onError.subscribe({next:k=>{I.handleError(k)}});D.onDestroy(()=>{Vd(this._modules,D),T.unsubscribe()})}),function(e,t,n){try{const r=n();return Fc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(I,a,()=>{const T=D.injector.get(Os);return T.runInitializers(),T.donePromise.then(()=>(Yc(D.injector.get(Wl,Sl)||Sl),this._moduleDoBootstrap(D),D))})})}bootstrapModule(n,r=[]){const i=jy({},r);return function(e,t,n){const r=new vd(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(xa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${Me(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(vn(Vt))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function jy(e,t){return Array.isArray(t)?t.reduce(jy,e):Object.assign(Object.assign({},e),t)}let xa=(()=>{class e{constructor(n,r,i,o,s){this._zone=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new x.y(g=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{g.next(this._stable),g.complete()})}),d=new x.y(g=>{let D;this._zone.runOutsideAngular(()=>{D=this._zone.onStable.subscribe(()=>{Er.assertNotInAngularZone(),xd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,g.next(!0))})})});const I=this._zone.onUnstable.subscribe(()=>{Er.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{g.next(!1)}))});return()=>{D.unsubscribe(),I.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t{this.detachView(a.hostView),Vd(this.components,a),D&&D.unregisterApplication(d)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Vd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(My,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(vn(Er),vn(Vt),vn(es),vn(Do),vn(Os))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function Vd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class HA{}class WA{}const zA={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let KA=(()=>{class e{constructor(n,r){this._compiler=n,this._config=r||zA}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,i]=n.split("#");return void 0===i&&(i="default"),O(8255)(r).then(o=>o[i]).then(o=>zy(o,r,i)).then(o=>this._compiler.compileModuleAsync(o))}loadFactory(n){let[r,i]=n.split("#"),o="NgFactory";return void 0===i&&(i="default",o=""),O(8255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(s=>s[i+o]).then(s=>zy(s,r,i))}}return e.\u0275fac=function(n){return new(n||e)(vn(Ra),vn(WA,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function zy(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const tS=function(e){return null},rS=Uy(null,"core",[{provide:Sy,useValue:"unknown"},{provide:$y,deps:[Vt]},{provide:xy,deps:[]},{provide:Iy,deps:[]}]),lS=[{provide:xa,useClass:xa,deps:[Er,Vt,es,Do,Os]},{provide:dw,deps:[Er],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Os,useClass:Os,deps:[[new $i,Pd]]},{provide:Ra,useClass:Ra,deps:[]},hA,{provide:Rl,useFactory:function(){return ob},deps:[]},{provide:xl,useFactory:function(){return sb},deps:[]},{provide:Wl,useFactory:function(e){return Yc(e=e||"undefined"!=typeof $localize&&$localize.locale||Sl),e},deps:[[new qo(Wl),new $i,new to]]},{provide:Ty,useValue:"USD"}];let cS=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(vn(xa))},e.\u0275mod=yn({type:e}),e.\u0275inj=Ft({providers:lS}),e})()},3092:(Ye,me,O)=>{"use strict";O.d(me,{Fj:()=>We,NI:()=>Yt,u:()=>Zr,cw:()=>dr,sg:()=>sn,u5:()=>B,nD:()=>gr,JJ:()=>G,JL:()=>W,F:()=>ut,On:()=>hn,YN:()=>xi,wV:()=>Bn,_:()=>ir,UX:()=>oe,Q7:()=>Tr,EJ:()=>qr,_Y:()=>Ht,Kr:()=>F});var y=O(476),u=O(8583),ce=O(1776),re=O(1260),te=O(5929),Q=O(9528),K=O(5076),P=O(9607),x=O(5526),Y=O(5207);let ae=(()=>{class E{constructor(h,M){this._renderer=h,this._elementRef=M,this.onChange=Z=>{},this.onTouched=()=>{}}setProperty(h,M){this._renderer.setProperty(this._elementRef.nativeElement,h,M)}registerOnTouched(h){this.onTouched=h}registerOnChange(h){this.onChange=h}setDisabledState(h){this.setProperty("disabled",h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq))},E.\u0275dir=y.lG2({type:E}),E})(),Ee=(()=>{class E extends ae{}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();const De=new y.OlP("NgValueAccessor"),He={provide:De,useExisting:(0,y.Gpc)(()=>We),multi:!0},Ge=new y.OlP("CompositionEventMode");let We=(()=>{class E extends ae{constructor(h,M,Z){super(h,M),this._compositionMode=Z,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const E=(0,u.q)()?(0,u.q)().getUserAgent():"";return/android (\d+)/.test(E.toLowerCase())}())}writeValue(h){this.setProperty("value",null==h?"":h)}_handleInput(h){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(h)}_compositionStart(){this._composing=!0}_compositionEnd(h){this._composing=!1,this._compositionMode&&this.onChange(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ge,8))},E.\u0275dir=y.lG2({type:E,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M._handleInput(we.target.value)})("blur",function(){return M.onTouched()})("compositionstart",function(){return M._compositionStart()})("compositionend",function(we){return M._compositionEnd(we.target.value)})},features:[y._Bn([He]),y.qOj]}),E})();const Ke=new y.OlP("NgValidators"),bt=new y.OlP("NgAsyncValidators");function Ie(E){return null}function be(E){return null!=E}function Ve(E){const m=(0,y.QGY)(E)?(0,te.Dp)(E):E;return(0,y.CqO)(m),m}function Xe(E){let m={};return E.forEach(h=>{m=null!=h?Object.assign(Object.assign({},m),h):m}),0===Object.keys(m).length?null:m}function rt(E,m){return m.map(h=>h(E))}function jt(E){return E.map(m=>function(E){return!E.validate}(m)?m:h=>m.validate(h))}function It(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return Xe(rt(h,m))}}(jt(E)):null}function yt(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return function(){for(var E=[],m=0;m{Cn(h,Z)||h.push(Z)}),h}function xt(E,m){return mn(m).filter(h=>!Cn(E,h))}let Hr=(()=>{class E{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(h){this._rawValidators=h||[],this._composedValidatorFn=It(this._rawValidators)}_setAsyncValidators(h){this._rawAsyncValidators=h||[],this._composedAsyncValidatorFn=yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(h){this._onDestroyCallbacks.push(h)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(h=>h()),this._onDestroyCallbacks=[]}reset(h){this.control&&this.control.reset(h)}hasError(h,M){return!!this.control&&this.control.hasError(h,M)}getError(h,M){return this.control?this.control.getError(h,M):null}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E}),E})(),Ft=(()=>{class E extends Hr{get formDirective(){return null}get path(){return null}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();class gt extends Hr{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class tr{constructor(m){this._cd=m}is(m){var h,M,Z;return"submitted"===m?!!(null===(h=this._cd)||void 0===h?void 0:h.submitted):!!(null===(Z=null===(M=this._cd)||void 0===M?void 0:M.control)||void 0===Z?void 0:Z[m])}}let G=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(gt,2))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))},features:[y.qOj]}),E})(),W=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))("ng-submitted",M.is("submitted"))},features:[y.qOj]}),E})();function Sn(E,m){return[...m.path,E]}function Le(E,m){nr(E,m),m.valueAccessor.writeValue(E.value),function(E,m){m.valueAccessor.registerOnChange(h=>{E._pendingValue=h,E._pendingChange=!0,E._pendingDirty=!0,"change"===E.updateOn&&xn(E,m)})}(E,m),function(E,m){const h=(M,Z)=>{m.valueAccessor.writeValue(M),Z&&m.viewToModelUpdate(M)};E.registerOnChange(h),m._registerOnDestroy(()=>{E._unregisterOnChange(h)})}(E,m),function(E,m){m.valueAccessor.registerOnTouched(()=>{E._pendingTouched=!0,"blur"===E.updateOn&&E._pendingChange&&xn(E,m),"submit"!==E.updateOn&&E.markAsTouched()})}(E,m),function(E,m){if(m.valueAccessor.setDisabledState){const h=M=>{m.valueAccessor.setDisabledState(M)};E.registerOnDisabledChange(h),m._registerOnDestroy(()=>{E._unregisterOnDisabledChange(h)})}}(E,m)}function Ut(E,m,h=!0){const M=()=>{};m.valueAccessor&&(m.valueAccessor.registerOnChange(M),m.valueAccessor.registerOnTouched(M)),nt(E,m),E&&(m._invokeOnDestroyCallbacks(),E._registerOnCollectionChange(()=>{}))}function rn(E,m){E.forEach(h=>{h.registerOnValidatorChange&&h.registerOnValidatorChange(m)})}function nr(E,m){const h=Tt(E);null!==m.validator?E.setValidators(gn(h,m.validator)):"function"==typeof h&&E.setValidators([h]);const M=it(E);null!==m.asyncValidator?E.setAsyncValidators(gn(M,m.asyncValidator)):"function"==typeof M&&E.setAsyncValidators([M]);const Z=()=>E.updateValueAndValidity();rn(m._rawValidators,Z),rn(m._rawAsyncValidators,Z)}function nt(E,m){let h=!1;if(null!==E){if(null!==m.validator){const Z=Tt(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.validator);we.length!==Z.length&&(h=!0,E.setValidators(we))}}if(null!==m.asyncValidator){const Z=it(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.asyncValidator);we.length!==Z.length&&(h=!0,E.setAsyncValidators(we))}}}const M=()=>{};return rn(m._rawValidators,M),rn(m._rawAsyncValidators,M),h}function xn(E,m){E._pendingDirty&&E.markAsDirty(),E.setValue(E._pendingValue,{emitModelToViewChange:!1}),m.viewToModelUpdate(E._pendingValue),E._pendingChange=!1}function cr(E,m){nr(E,m)}function Wr(E,m){if(!E.hasOwnProperty("model"))return!1;const h=E.model;return!!h.isFirstChange()||!Object.is(m,h.currentValue)}function Fn(E,m){E._syncPendingControls(),m.forEach(h=>{const M=h.control;"submit"===M.updateOn&&M._pendingChange&&(h.viewToModelUpdate(M._pendingValue),M._pendingChange=!1)})}function Kn(E,m){if(!m)return null;let h,M,Z;return Array.isArray(m),m.forEach(we=>{we.constructor===We?h=we:function(E){return Object.getPrototypeOf(E.constructor)===Ee}(we)?M=we:Z=we}),Z||M||h||null}function et(E,m){const h=E.indexOf(m);h>-1&&E.splice(h,1)}const Tn="VALID",En="INVALID",Ln="PENDING",yn="DISABLED";function Kr(E){return(dn(E)?E.validators:E)||null}function rr(E){return Array.isArray(E)?It(E):E||null}function Yn(E,m){return(dn(m)?m.asyncValidators:E)||null}function qt(E){return Array.isArray(E)?yt(E):E||null}function dn(E){return null!=E&&!Array.isArray(E)&&"object"==typeof E}class On{constructor(m,h){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=m,this._rawAsyncValidators=h,this._composedValidatorFn=rr(this._rawValidators),this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(m){this._rawValidators=this._composedValidatorFn=m}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(m){this._rawAsyncValidators=this._composedAsyncValidatorFn=m}get parent(){return this._parent}get valid(){return this.status===Tn}get invalid(){return this.status===En}get pending(){return this.status==Ln}get disabled(){return this.status===yn}get enabled(){return this.status!==yn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(m){this._rawValidators=m,this._composedValidatorFn=rr(m)}setAsyncValidators(m){this._rawAsyncValidators=m,this._composedAsyncValidatorFn=qt(m)}addValidators(m){this.setValidators(Rn(m,this._rawValidators))}addAsyncValidators(m){this.setAsyncValidators(Rn(m,this._rawAsyncValidators))}removeValidators(m){this.setValidators(xt(m,this._rawValidators))}removeAsyncValidators(m){this.setAsyncValidators(xt(m,this._rawAsyncValidators))}hasValidator(m){return Cn(this._rawValidators,m)}hasAsyncValidator(m){return Cn(this._rawAsyncValidators,m)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(m={}){this.touched=!0,this._parent&&!m.onlySelf&&this._parent.markAsTouched(m)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(m=>m.markAllAsTouched())}markAsUntouched(m={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(h=>{h.markAsUntouched({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}markAsDirty(m={}){this.pristine=!1,this._parent&&!m.onlySelf&&this._parent.markAsDirty(m)}markAsPristine(m={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(h=>{h.markAsPristine({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}markAsPending(m={}){this.status=Ln,!1!==m.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!m.onlySelf&&this._parent.markAsPending(m)}disable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=yn,this.errors=null,this._forEachChild(M=>{M.disable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this._updateValue(),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!0))}enable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=Tn,this._forEachChild(M=>{M.enable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!1))}_updateAncestors(m){this._parent&&!m.onlySelf&&(this._parent.updateValueAndValidity(m),m.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(m){this._parent=m}updateValueAndValidity(m={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tn||this.status===Ln)&&this._runAsyncValidator(m.emitEvent)),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!m.onlySelf&&this._parent.updateValueAndValidity(m)}_updateTreeValidity(m={emitEvent:!0}){this._forEachChild(h=>h._updateTreeValidity(m)),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yn:Tn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(m){if(this.asyncValidator){this.status=Ln,this._hasOwnPendingAsyncValidator=!0;const h=Ve(this.asyncValidator(this));this._asyncValidationSubscription=h.subscribe(M=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(M,{emitEvent:m})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(m,h={}){this.errors=m,this._updateControlsErrors(!1!==h.emitEvent)}get(m){return function(E,m,h){if(null==m||(Array.isArray(m)||(m=m.split(".")),Array.isArray(m)&&0===m.length))return null;let M=E;return m.forEach(Z=>{M=M instanceof dr?M.controls.hasOwnProperty(Z)?M.controls[Z]:null:M instanceof fn&&M.at(Z)||null}),M}(this,m)}getError(m,h){const M=h?this.get(h):this;return M&&M.errors?M.errors[m]:null}hasError(m,h){return!!this.getError(m,h)}get root(){let m=this;for(;m._parent;)m=m._parent;return m}_updateControlsErrors(m){this.status=this._calculateStatus(),m&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(m)}_initObservables(){this.valueChanges=new y.vpe,this.statusChanges=new y.vpe}_calculateStatus(){return this._allControlsDisabled()?yn:this.errors?En:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ln)?Ln:this._anyControlsHaveStatus(En)?En:Tn}_anyControlsHaveStatus(m){return this._anyControls(h=>h.status===m)}_anyControlsDirty(){return this._anyControls(m=>m.dirty)}_anyControlsTouched(){return this._anyControls(m=>m.touched)}_updatePristine(m={}){this.pristine=!this._anyControlsDirty(),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}_updateTouched(m={}){this.touched=this._anyControlsTouched(),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}_isBoxedValue(m){return"object"==typeof m&&null!==m&&2===Object.keys(m).length&&"value"in m&&"disabled"in m}_registerOnCollectionChange(m){this._onCollectionChange=m}_setUpdateStrategy(m){dn(m)&&null!=m.updateOn&&(this._updateOn=m.updateOn)}_parentMarkedDirty(m){return!m&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Yt extends On{constructor(m=null,h,M){super(Kr(h),Yn(M,h)),this._onChange=[],this._applyFormState(m),this._setUpdateStrategy(h),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(m,h={}){this.value=this._pendingValue=m,this._onChange.length&&!1!==h.emitModelToViewChange&&this._onChange.forEach(M=>M(this.value,!1!==h.emitViewToModelChange)),this.updateValueAndValidity(h)}patchValue(m,h={}){this.setValue(m,h)}reset(m=null,h={}){this._applyFormState(m),this.markAsPristine(h),this.markAsUntouched(h),this.setValue(this.value,h),this._pendingChange=!1}_updateValue(){}_anyControls(m){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(m){this._onChange.push(m)}_unregisterOnChange(m){et(this._onChange,m)}registerOnDisabledChange(m){this._onDisabledChange.push(m)}_unregisterOnDisabledChange(m){et(this._onDisabledChange,m)}_forEachChild(m){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(m){this._isBoxedValue(m)?(this.value=this._pendingValue=m.value,m.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=m}}class dr extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(m,h){return this.controls[m]?this.controls[m]:(this.controls[m]=h,h.setParent(this),h._registerOnCollectionChange(this._onCollectionChange),h)}addControl(m,h,M={}){this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}removeControl(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],h&&this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}contains(m){return this.controls.hasOwnProperty(m)&&this.controls[m].enabled}setValue(m,h={}){this._checkAllValuesPresent(m),Object.keys(m).forEach(M=>{this._throwIfControlMissing(M),this.controls[M].setValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(Object.keys(m).forEach(M=>{this.controls[M]&&this.controls[M].patchValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m={},h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this._reduceChildren({},(m,h,M)=>(m[M]=h instanceof Yt?h.value:h.getRawValue(),m))}_syncPendingControls(){let m=this._reduceChildren(!1,(h,M)=>!!M._syncPendingControls()||h);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[m])throw new Error(`Cannot find form control with name: ${m}.`)}_forEachChild(m){Object.keys(this.controls).forEach(h=>{const M=this.controls[h];M&&m(M,h)})}_setUpControls(){this._forEachChild(m=>{m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(m){for(const h of Object.keys(this.controls)){const M=this.controls[h];if(this.contains(h)&&m(M))return!0}return!1}_reduceValue(){return this._reduceChildren({},(m,h,M)=>((h.enabled||this.disabled)&&(m[M]=h.value),m))}_reduceChildren(m,h){let M=m;return this._forEachChild((Z,we)=>{M=h(M,Z,we)}),M}_allControlsDisabled(){for(const m of Object.keys(this.controls))if(this.controls[m].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control with name: '${M}'.`)})}}class fn extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(m){return this.controls[m]}push(m,h={}){this.controls.push(m),this._registerControl(m),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}insert(m,h,M={}){this.controls.splice(m,0,h),this._registerControl(h),this.updateValueAndValidity({emitEvent:M.emitEvent})}removeAt(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),this.updateValueAndValidity({emitEvent:h.emitEvent})}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),h&&(this.controls.splice(m,0,h),this._registerControl(h)),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(m,h={}){this._checkAllValuesPresent(m),m.forEach((M,Z)=>{this._throwIfControlMissing(Z),this.at(Z).setValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(m.forEach((M,Z)=>{this.at(Z)&&this.at(Z).patchValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m=[],h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this.controls.map(m=>m instanceof Yt?m.value:m.getRawValue())}clear(m={}){this.controls.length<1||(this._forEachChild(h=>h._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:m.emitEvent}))}_syncPendingControls(){let m=this.controls.reduce((h,M)=>!!M._syncPendingControls()||h,!1);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(m))throw new Error(`Cannot find form control at index ${m}`)}_forEachChild(m){this.controls.forEach((h,M)=>{m(h,M)})}_updateValue(){this.value=this.controls.filter(m=>m.enabled||this.disabled).map(m=>m.value)}_anyControls(m){return this.controls.some(h=>h.enabled&&m(h))}_setUpControls(){this._forEachChild(m=>this._registerControl(m))}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control at index: ${M}.`)})}_allControlsDisabled(){for(const m of this.controls)if(m.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(m){m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)}}const Te={provide:Ft,useExisting:(0,y.Gpc)(()=>ut)},ht=(()=>Promise.resolve(null))();let ut=(()=>{class E extends Ft{constructor(h,M){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new y.vpe,this.form=new dr({},It(h),yt(M))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(h){ht.then(()=>{const M=this._findContainer(h.path);h.control=M.registerControl(h.name,h.control),Le(h.control,h),h.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(h)})}getControl(h){return this.form.get(h.path)}removeControl(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name),et(this._directives,h)})}addFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path),Z=new dr({});cr(Z,h),M.registerControl(h.name,Z),Z.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name)})}getFormGroup(h){return this.form.get(h.path)}updateModel(h,M){ht.then(()=>{this.form.get(h.path).setValue(M)})}setValue(h){this.control.setValue(h)}onSubmit(h){return this.submitted=!0,Fn(this.form,this._directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(h){return h.pop(),h.length?this.form.get(h):this.form}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Te]),y.qOj]}),E})();const fr={provide:gt,useExisting:(0,y.Gpc)(()=>hn)},_n=(()=>Promise.resolve(null))();let hn=(()=>{class E extends gt{constructor(h,M,Z,we){super(),this.control=new Yt,this._registered=!1,this.update=new y.vpe,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}ngOnChanges(h){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in h&&this._updateDisabled(h),Wr(h,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Sn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Le(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(h){_n.then(()=>{this.control.setValue(h,{emitViewToModelChange:!1})})}_updateDisabled(h){const M=h.isDisabled.currentValue,Z=""===M||M&&"false"!==M;_n.then(()=>{Z&&!this.control.disabled?this.control.disable():!Z&&this.control.disabled&&this.control.enable()})}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,9),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[y._Bn([fr]),y.qOj,y.TTD]}),E})(),Ht=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),E})();const Un={provide:De,useExisting:(0,y.Gpc)(()=>Bn),multi:!0};let Bn=(()=>{class E extends Ee{writeValue(h){this.setProperty("value",null==h?"":h)}registerOnChange(h){this.onChange=M=>{h(""==M?null:parseFloat(M))}}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},features:[y._Bn([Un]),y.qOj]}),E})();const Gt={provide:De,useExisting:(0,y.Gpc)(()=>ir),multi:!0};let Yr=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({}),E})(),Ar=(()=>{class E{constructor(){this._accessors=[]}add(h,M){this._accessors.push([h,M])}remove(h){for(let M=this._accessors.length-1;M>=0;--M)if(this._accessors[M][1]===h)return void this._accessors.splice(M,1)}select(h){this._accessors.forEach(M=>{this._isSameGroup(M,h)&&M[1]!==h&&M[1].fireUncheck(h.value)})}_isSameGroup(h,M){return!!h[0].control&&h[0]._parent===M._control._parent&&h[1].name===M.name}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275prov=(0,y.Yz7)({factory:function(){return new E},token:E,providedIn:Yr}),E})(),ir=(()=>{class E extends Ee{constructor(h,M,Z,we){super(h,M),this._registry=Z,this._injector=we,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(gt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(h){this._state=h===this.value,this.setProperty("checked",this._state)}registerOnChange(h){this._fn=h,this.onChange=()=>{h(this.value),this._registry.select(this)}}fireUncheck(h){this.writeValue(h)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ar),y.Y36(y.zs3))},E.\u0275dir=y.lG2({type:E,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(){return M.onChange()})("blur",function(){return M.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[y._Bn([Gt]),y.qOj]}),E})();const Wt=new y.OlP("NgModelWithFormControlWarning"),Sr={provide:Ft,useExisting:(0,y.Gpc)(()=>sn)};let sn=(()=>{class E extends Ft{constructor(h,M){super(),this.validators=h,this.asyncValidators=M,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new y.vpe,this._setValidators(h),this._setAsyncValidators(M)}ngOnChanges(h){this._checkFormPresent(),h.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(h){const M=this.form.get(h.path);return Le(M,h),M.updateValueAndValidity({emitEvent:!1}),this.directives.push(h),M}getControl(h){return this.form.get(h.path)}removeControl(h){Ut(h.control||null,h,!1),et(this.directives,h)}addFormGroup(h){this._setUpFormContainer(h)}removeFormGroup(h){this._cleanUpFormContainer(h)}getFormGroup(h){return this.form.get(h.path)}addFormArray(h){this._setUpFormContainer(h)}removeFormArray(h){this._cleanUpFormContainer(h)}getFormArray(h){return this.form.get(h.path)}updateModel(h,M){this.form.get(h.path).setValue(M)}onSubmit(h){return this.submitted=!0,Fn(this.form,this.directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_updateDomValue(){this.directives.forEach(h=>{const M=h.control,Z=this.form.get(h.path);M!==Z&&(Ut(M||null,h),Z instanceof Yt&&(Le(Z,h),h.control=Z))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(h){const M=this.form.get(h.path);cr(M,h),M.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(h){if(this.form){const M=this.form.get(h.path);M&&function(E,m){return nt(E,m)}(M,h)&&M.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){nr(this.form,this),this._oldForm&&nt(this._oldForm,this)}_checkFormPresent(){}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroup",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Sr]),y.qOj,y.TTD]}),E})();const Ir={provide:gt,useExisting:(0,y.Gpc)(()=>Zr)};let Zr=(()=>{class E extends gt{constructor(h,M,Z,we,At){super(),this._ngModelWarningConfig=At,this._added=!1,this.update=new y.vpe,this._ngModelWarningSent=!1,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}set isDisabled(h){}ngOnChanges(h){this._added||this._setUpControl(),Wr(h,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}get path(){return Sn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,13),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10),y.Y36(Wt,8))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[y._Bn([Ir]),y.qOj,y.TTD]}),E._ngModelWarningSentOnce=!1,E})();const mi={provide:De,useExisting:(0,y.Gpc)(()=>qr),multi:!0};function Ri(E,m){return null==E?`${m}`:(m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let qr=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){this.value=h;const M=this._getOptionId(h);null==M&&this.setProperty("selectedIndex",-1);const Z=Ri(M,h);this.setProperty("value",Z)}registerOnChange(h){this.onChange=M=>{this.value=this._getOptionValue(M),h(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(h){for(const M of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(M),h))return M;return null}_getOptionValue(h){const M=function(E){return E.split(":")[0]}(h);return this._optionMap.has(M)?this._optionMap.get(M):h}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},inputs:{compareWith:"compareWith"},features:[y._Bn([mi]),y.qOj]}),E})(),xi=(()=>{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption())}set ngValue(h){null!=this._select&&(this._select._optionMap.set(this.id,h),this._setElementValue(Ri(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._setElementValue(h),this._select&&this._select.writeValue(this._select.value)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(qr,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Fi={provide:De,useExisting:(0,y.Gpc)(()=>N),multi:!0};function _i(E,m){return null==E?`${m}`:("string"==typeof m&&(m=`'${m}'`),m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let N=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){let M;if(this.value=h,Array.isArray(h)){const Z=h.map(we=>this._getOptionId(we));M=(we,At)=>{we._setSelected(Z.indexOf(At.toString())>-1)}}else M=(Z,we)=>{Z._setSelected(!1)};this._optionMap.forEach(M)}registerOnChange(h){this.onChange=M=>{const Z=[];if(void 0!==M.selectedOptions){const we=M.selectedOptions;for(let At=0;At{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption(this))}set ngValue(h){null!=this._select&&(this._value=h,this._setElementValue(_i(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._select?(this._value=h,this._setElementValue(_i(this.id,h)),this._select.writeValue(this._select.value)):this._setElementValue(h)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}_setSelected(h){this._renderer.setProperty(this._element.nativeElement,"selected",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(N,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Nt={provide:Ke,useExisting:(0,y.Gpc)(()=>Tr),multi:!0};let Tr=(()=>{class E{constructor(){this._required=!1}get required(){return this._required}set required(h){this._required=null!=h&&!1!==h&&"false"!=`${h}`,this._onChange&&this._onChange()}validate(h){return this.required?function(E){return function(E){return null==E||0===E.length}(E.value)?{required:!0}:null}(h):null}registerOnValidatorChange(h){this._onChange=h}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("required",M.required?"":null)},inputs:{required:"required"},features:[y._Bn([Nt])]}),E})();const Nr={provide:Ke,useExisting:(0,y.Gpc)(()=>gr),multi:!0};let gr=(()=>{class E{constructor(){this._validator=Ie}ngOnChanges(h){"maxlength"in h&&(this._createValidator(),this._onChange&&this._onChange())}validate(h){return this.enabled()?this._validator(h):null}registerOnValidatorChange(h){this._onChange=h}_createValidator(){this._validator=this.enabled()?function(E){return m=>function(E){return null!=E&&"number"==typeof E.length}(m.value)&&m.value.length>E?{maxlength:{requiredLength:E,actualLength:m.value.length}}:null}(function(E){return"number"==typeof E?E:parseInt(E,10)}(this.maxlength)):Ie}enabled(){return null!=this.maxlength}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("maxlength",M.enabled()?M.maxlength:null)},inputs:{maxlength:"maxlength"},features:[y._Bn([Nr]),y.TTD]}),E})(),S=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[[Yr]]}),E})(),B=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})(),oe=(()=>{class E{static withConfig(h){return{ngModule:E,providers:[{provide:Wt,useValue:h.warnOnNgModelWithFormControl}]}}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})()},9502:(Ye,me,O)=>{"use strict";O.d(me,{gz:()=>Gt,Eb:()=>ge,gk:()=>xt,m2:()=>Rn,Q3:()=>Hr,OD:()=>Cn,F0:()=>Wn,rH:()=>Lo,Od:()=>ho,yS:()=>ko,Bz:()=>Bo,lC:()=>po,R9:()=>Ft});var y=O(8583),u=O(476),ce=O(9162),re=O(6889),te=function(f){function c(l){var p=f.call(this)||this;return p._value=l,p}return(0,ce.ZT)(c,f),Object.defineProperty(c.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),c.prototype._subscribe=function(l){var p=f.prototype._subscribe.call(this,l);return!p.closed&&l.next(this._value),p},c.prototype.getValue=function(){var l=this,b=l._value;if(l.hasError)throw l.thrownError;return this._throwIfClosed(),b},c.prototype.next=function(l){f.prototype.next.call(this,this._value=l)},c}(re.x),Q=O(1776),K=O(1260),P=O(5929),x=O(2738),U=O(9607),Y=O(9528),ae=O(5526),Ee=O(5076);function Pe(f,c,l){return void 0===l&&(l=x.y),function(p){ve(c,function(){for(var C=f.length,b=new Array(C),R=C,V=C,q=function(Ue){ve(c,function(){var at=(0,P.Dp)(f[Ue],c),kt=!1;at.subscribe(new Ee.Q(p,function(Ct){b[Ue]=Ct,kt||(kt=!0,V--),V||p.next(l(b.slice()))},function(){--R||p.complete()}))},p)},Se=0;Se=2,!0))}var ee=O(4689);function Ie(f){return f<=0?function(){return X.E}:(0,$e.e)(function(c,l){var p=[];c.subscribe(new Ee.Q(l,function(C){p.push(C),f=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,(0,_t.q)(1),l?Xe(c):be(function(){return new Me}))}}var Kt=O(8853);function It(f,c,l){var p=(0,Kt.m)(f)||c||l?{next:f,error:c,complete:l}:f;return p?(0,$e.e)(function(C,b){var R;null===(R=p.subscribe)||void 0===R||R.call(p);var V=!0;C.subscribe(new Ee.Q(b,function(q){var Se;null===(Se=p.next)||void 0===Se||Se.call(p,q),b.next(q)},function(){var q;V=!1,null===(q=p.complete)||void 0===q||q.call(p),b.complete()},function(q){var Se;V=!1,null===(Se=p.error)||void 0===Se||Se.call(p,q),b.error(q)},function(){var q,Se;V&&(null===(q=p.unsubscribe)||void 0===q||q.call(p)),null===(Se=p.finalize)||void 0===Se||Se.call(p)}))}):x.y}var yt=O(5207),gn=O(5894),Tt=O(3766),it=O(7216);class mn{constructor(c,l){this.id=c,this.url=l}}class Cn extends mn{constructor(c,l,p="imperative",C=null){super(c,l),this.navigationTrigger=p,this.restoredState=C}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Rn extends mn{constructor(c,l,p){super(c,l),this.urlAfterRedirects=p}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class xt extends mn{constructor(c,l,p){super(c,l),this.reason=p}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Hr extends mn{constructor(c,l,p){super(c,l),this.error=p}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ft extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gt extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tr extends mn{constructor(c,l,p,C,b){super(c,l),this.urlAfterRedirects=p,this.state=C,this.shouldActivate=b}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ni extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fe extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G{constructor(c){this.route=c}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class W{constructor(c){this.route=c}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ge{constructor(c){this.snapshot=c}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ye{constructor(c){this.snapshot=c}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Re{constructor(c){this.snapshot=c}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class se{constructor(c){this.snapshot=c}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xe{constructor(c,l,p){this.routerEvent=c,this.position=l,this.anchor=p}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ne="primary";class St{constructor(c){this.params=c||{}}has(c){return Object.prototype.hasOwnProperty.call(this.params,c)}get(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l[0]:l}return null}getAll(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l:[l]}return[]}get keys(){return Object.keys(this.params)}}function Lt(f){return new St(f)}const zn="ngNavigationCancelingError";function wt(f){const c=Error("NavigationCancelingError: "+f);return c[zn]=!0,c}function ot(f,c,l){const p=l.path.split("/");if(p.length>f.length||"full"===l.pathMatch&&(c.hasChildren()||p.lengthp[b]===C)}return f===c}function rn(f){return Array.prototype.concat.apply([],f)}function Dr(f){return f.length>0?f[f.length-1]:null}function nt(f,c){for(const l in f)f.hasOwnProperty(l)&&c(f[l],l)}function Mn(f){return(0,u.CqO)(f)?f:(0,u.QGY)(f)?(0,P.Dp)(Promise.resolve(f)):(0,H.of)(f)}const xn={exact:function Gr(f,c,l){if(!En(f.segments,c.segments)||!Fn(f.segments,c.segments,l)||f.numberOfChildren!==c.numberOfChildren)return!1;for(const p in c.children)if(!f.children[p]||!Gr(f.children[p],c.children[p],l))return!1;return!0},subset:Wr},mt={exact:function(f,c){return Le(f,c)},subset:function(f,c){return Object.keys(c).length<=Object.keys(f).length&&Object.keys(c).every(l=>Ut(f[l],c[l]))},ignored:()=>!0};function cr(f,c,l){return xn[l.paths](f.root,c.root,l.matrixParams)&&mt[l.queryParams](f.queryParams,c.queryParams)&&!("exact"===l.fragment&&f.fragment!==c.fragment)}function Wr(f,c,l){return In(f,c,c.segments,l)}function In(f,c,l,p){if(f.segments.length>l.length){const C=f.segments.slice(0,l.length);return!(!En(C,l)||c.hasChildren()||!Fn(C,l,p))}if(f.segments.length===l.length){if(!En(f.segments,l)||!Fn(f.segments,l,p))return!1;for(const C in c.children)if(!f.children[C]||!Wr(f.children[C],c.children[C],p))return!1;return!0}{const C=l.slice(0,f.segments.length),b=l.slice(f.segments.length);return!!(En(f.segments,C)&&Fn(f.segments,C,p)&&f.children[Ne])&&In(f.children[Ne],c,b,p)}}function Fn(f,c,l){return c.every((p,C)=>mt[l](f[C].parameters,p.parameters))}class Kn{constructor(c,l,p){this.root=c,this.queryParams=l,this.fragment=p}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return Kr.serialize(this)}}class et{constructor(c,l){this.segments=c,this.children=l,this.parent=null,nt(l,(p,C)=>p.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rr(this)}}class on{constructor(c,l){this.path=c,this.parameters=l}get parameterMap(){return this._parameterMap||(this._parameterMap=Lt(this.parameters)),this._parameterMap}toString(){return Te(this)}}function En(f,c){return f.length===c.length&&f.every((l,p)=>l.path===c[p].path)}class yn{}class zr{parse(c){const l=new Vn(c);return new Kn(l.parseRootSegment(),l.parseQueryParams(),l.parseFragment())}serialize(c){var f;return`${`/${Yn(c.root,!0)}`}${function(f){const c=Object.keys(f).map(l=>{const p=f[l];return Array.isArray(p)?p.map(C=>`${dn(l)}=${dn(C)}`).join("&"):`${dn(l)}=${dn(p)}`}).filter(l=>!!l);return c.length?`?${c.join("&")}`:""}(c.queryParams)}${"string"==typeof c.fragment?`#${f=c.fragment,encodeURI(f)}`:""}`}}const Kr=new zr;function rr(f){return f.segments.map(c=>Te(c)).join("/")}function Yn(f,c){if(!f.hasChildren())return rr(f);if(c){const l=f.children[Ne]?Yn(f.children[Ne],!1):"",p=[];return nt(f.children,(C,b)=>{b!==Ne&&p.push(`${b}:${Yn(C,!1)}`)}),p.length>0?`${l}(${p.join("//")})`:l}{const l=function(f,c){let l=[];return nt(f.children,(p,C)=>{C===Ne&&(l=l.concat(c(p,C)))}),nt(f.children,(p,C)=>{C!==Ne&&(l=l.concat(c(p,C)))}),l}(f,(p,C)=>C===Ne?[Yn(f.children[Ne],!1)]:[`${C}:${Yn(p,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[Ne]?`${rr(f)}/${l[0]}`:`${rr(f)}/(${l.join("//")})`}}function qt(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dn(f){return qt(f).replace(/%3B/gi,";")}function Yt(f){return qt(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dr(f){return decodeURIComponent(f)}function fn(f){return dr(f.replace(/\+/g,"%20"))}function Te(f){return`${Yt(f.path)}${function(f){return Object.keys(f).map(c=>`;${Yt(c)}=${Yt(f[c])}`).join("")}(f.parameters)}`}const ut=/^[^\/()?;=#]+/;function Jt(f){const c=f.match(ut);return c?c[0]:""}const Bt=/^[^=?&#]+/,Ot=/^[^?&#]+/;class Vn{constructor(c){this.url=c,this.remaining=c}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new et([],{}):new et([],this.parseChildren())}parseQueryParams(){const c={};if(this.consumeOptional("?"))do{this.parseQueryParam(c)}while(this.consumeOptional("&"));return c}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const c=[];for(this.peekStartsWith("(")||c.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),c.push(this.parseSegment());let l={};this.peekStartsWith("/(")&&(this.capture("/"),l=this.parseParens(!0));let p={};return this.peekStartsWith("(")&&(p=this.parseParens(!1)),(c.length>0||Object.keys(l).length>0)&&(p[Ne]=new et(c,l)),p}parseSegment(){const c=Jt(this.remaining);if(""===c&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(c),new on(dr(c),this.parseMatrixParams())}parseMatrixParams(){const c={};for(;this.consumeOptional(";");)this.parseParam(c);return c}parseParam(c){const l=Jt(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const C=Jt(this.remaining);C&&(p=C,this.capture(p))}c[dr(l)]=dr(p)}parseQueryParam(c){const l=function(f){const c=f.match(Bt);return c?c[0]:""}(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const R=function(f){const c=f.match(Ot);return c?c[0]:""}(this.remaining);R&&(p=R,this.capture(p))}const C=fn(l),b=fn(p);if(c.hasOwnProperty(C)){let R=c[C];Array.isArray(R)||(R=[R],c[C]=R),R.push(b)}else c[C]=b}parseParens(c){const l={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const p=Jt(this.remaining),C=this.remaining[p.length];if("/"!==C&&")"!==C&&";"!==C)throw new Error(`Cannot parse url '${this.url}'`);let b;p.indexOf(":")>-1?(b=p.substr(0,p.indexOf(":")),this.capture(b),this.capture(":")):c&&(b=Ne);const R=this.parseChildren();l[b]=1===Object.keys(R).length?R[Ne]:new et([],R),this.consumeOptional("//")}return l}peekStartsWith(c){return this.remaining.startsWith(c)}consumeOptional(c){return!!this.peekStartsWith(c)&&(this.remaining=this.remaining.substring(c.length),!0)}capture(c){if(!this.consumeOptional(c))throw new Error(`Expected "${c}".`)}}class Ze{constructor(c){this._root=c}get root(){return this._root.value}parent(c){const l=this.pathFromRoot(c);return l.length>1?l[l.length-2]:null}children(c){const l=fr(c,this._root);return l?l.children.map(p=>p.value):[]}firstChild(c){const l=fr(c,this._root);return l&&l.children.length>0?l.children[0].value:null}siblings(c){const l=Zn(c,this._root);return l.length<2?[]:l[l.length-2].children.map(C=>C.value).filter(C=>C!==c)}pathFromRoot(c){return Zn(c,this._root).map(l=>l.value)}}function fr(f,c){if(f===c.value)return c;for(const l of c.children){const p=fr(f,l);if(p)return p}return null}function Zn(f,c){if(f===c.value)return[c];for(const l of c.children){const p=Zn(f,l);if(p.length)return p.unshift(c),p}return[]}class _n{constructor(c,l){this.value=c,this.children=l}toString(){return`TreeNode(${this.value})`}}function hn(f){const c={};return f&&f.children.forEach(l=>c[l.value.outlet]=l),c}class Ht extends Ze{constructor(c,l){super(c),this.snapshot=l,qn(this,c)}toString(){return this.snapshot.toString()}}function Un(f,c){const l=function(f,c){const R=new Ar([],{},{},"",{},Ne,c,null,f.root,-1,{});return new ir("",new _n(R,[]))}(f,c),p=new te([new on("",{})]),C=new te({}),b=new te({}),R=new te({}),V=new te(""),q=new Gt(p,C,R,V,b,Ne,c,l.root);return q.snapshot=l.root,new Ht(new _n(q,[]),l)}class Gt{constructor(c,l,p,C,b,R,V,q){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=R,this.component=V,this._futureSnapshot=q}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,yt.U)(c=>Lt(c)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,yt.U)(c=>Lt(c)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Mt(f,c="emptyOnly"){const l=f.pathFromRoot;let p=0;if("always"!==c)for(p=l.length-1;p>=1;){const C=l[p],b=l[p-1];if(C.routeConfig&&""===C.routeConfig.path)p--;else{if(b.component)break;p--}}return function(f){return f.reduce((c,l)=>({params:Object.assign(Object.assign({},c.params),l.params),data:Object.assign(Object.assign({},c.data),l.data),resolve:Object.assign(Object.assign({},c.resolve),l._resolvedData)}),{params:{},data:{},resolve:{}})}(l.slice(p))}class Ar{constructor(c,l,p,C,b,R,V,q,Se,Ue,at){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=R,this.component=V,this.routeConfig=q,this._urlSegment=Se,this._lastPathIndex=Ue,this._resolve=at}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(p=>p.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ir extends Ze{constructor(c,l){super(l),this.url=c,qn(this,l)}toString(){return hr(this._root)}}function qn(f,c){c.value._routerState=f,c.children.forEach(l=>qn(f,l))}function hr(f){const c=f.children.length>0?` { ${f.children.map(hr).join(", ")} } `:"";return`${f.value}${c}`}function Wt(f){if(f.snapshot){const c=f.snapshot,l=f._futureSnapshot;f.snapshot=l,Le(c.queryParams,l.queryParams)||f.queryParams.next(l.queryParams),c.fragment!==l.fragment&&f.fragment.next(l.fragment),Le(c.params,l.params)||f.params.next(l.params),function(f,c){if(f.length!==c.length)return!1;for(let l=0;lLe(l.parameters,c[p].parameters))}(f.url,c.url)&&!(!f.parent!=!c.parent)&&(!f.parent||$n(f.parent,c.parent))}function Sr(f,c,l){if(l&&f.shouldReuseRoute(c.value,l.value.snapshot)){const p=l.value;p._futureSnapshot=c.value;const C=function(f,c,l){return c.children.map(p=>{for(const C of l.children)if(f.shouldReuseRoute(p.value,C.value.snapshot))return Sr(f,p,C);return Sr(f,p)})}(f,c,l);return new _n(p,C)}{if(f.shouldAttach(c.value)){const b=f.retrieve(c.value);if(null!==b){const R=b.route;return sn(c,R),R}}const p=function(f){return new Gt(new te(f.url),new te(f.params),new te(f.queryParams),new te(f.fragment),new te(f.data),f.outlet,f.component,f)}(c.value),C=c.children.map(b=>Sr(f,b));return new _n(p,C)}}function sn(f,c){if(f.value.routeConfig!==c.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(f.children.length!==c.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");c.value._futureSnapshot=f.value;for(let l=0;l{b[V]=Array.isArray(R)?R.map(q=>`${q}`):`${R}`}),new Kn(l.root===f?c:Zr(l.root,f,c),b,C)}function Zr(f,c,l){const p={};return nt(f.children,(C,b)=>{p[b]=C===c?l:Zr(C,c,l)}),new et(f.segments,p)}class mi{constructor(c,l,p){if(this.isAbsolute=c,this.numberOfDoubleDots=l,this.commands=p,c&&p.length>0&&jn(p[0]))throw new Error("Root segment cannot have matrix parameters");const C=p.find(Pt);if(C&&C!==Dr(p))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yi{constructor(c,l,p){this.segmentGroup=c,this.processChildren=l,this.index=p}}function _i(f,c,l){if(f||(f=new et([],{})),0===f.segments.length&&f.hasChildren())return Jr(f,c,l);const p=function(f,c,l){let p=0,C=c;const b={match:!1,pathIndex:0,commandIndex:0};for(;C=l.length)return b;const R=f.segments[C],V=l[p];if(Pt(V))break;const q=`${V}`,Se=p0&&void 0===q)break;if(q&&Se&&"object"==typeof Se&&void 0===Se.outlets){if(!L(q,Se,R))return b;p+=2}else{if(!L(q,{},R))return b;p++}C++}return{match:!0,pathIndex:C,commandIndex:p}}(f,c,l),C=l.slice(p.commandIndex);if(p.match&&p.pathIndex{"string"==typeof b&&(b=[b]),null!==b&&(C[R]=_i(f.children[R],c,b))}),nt(f.children,(b,R)=>{void 0===p[R]&&(C[R]=b)}),new et(f.segments,C)}}function N(f,c,l){const p=f.segments.slice(0,c);let C=0;for(;C{"string"==typeof l&&(l=[l]),null!==l&&(c[p]=N(new et([],{}),0,l))}),c}function A(f){const c={};return nt(f,(l,p)=>c[p]=`${l}`),c}function L(f,c,l){return f==l.path&&Le(c,l.parameters)}class Oe{constructor(c,l,p,C){this.routeReuseStrategy=c,this.futureState=l,this.currState=p,this.forwardEvent=C}activate(c){const l=this.futureState._root,p=this.currState?this.currState._root:null;this.deactivateChildRoutes(l,p,c),Wt(this.futureState.root),this.activateChildRoutes(l,p,c)}deactivateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{const R=b.value.outlet;this.deactivateRoutes(b,C[R],p),delete C[R]}),nt(C,(b,R)=>{this.deactivateRouteAndItsChildren(b,p)})}deactivateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(C===b)if(C.component){const R=p.getContext(C.outlet);R&&this.deactivateChildRoutes(c,l,R.children)}else this.deactivateChildRoutes(c,l,p);else b&&this.deactivateRouteAndItsChildren(l,p)}deactivateRouteAndItsChildren(c,l){this.routeReuseStrategy.shouldDetach(c.value.snapshot)?this.detachAndStoreRouteSubtree(c,l):this.deactivateRouteAndOutlet(c,l)}detachAndStoreRouteSubtree(c,l){const p=l.getContext(c.value.outlet);if(p&&p.outlet){const C=p.outlet.detach(),b=p.children.onOutletDeactivated();this.routeReuseStrategy.store(c.value.snapshot,{componentRef:C,route:c,contexts:b})}}deactivateRouteAndOutlet(c,l){const p=l.getContext(c.value.outlet),C=p&&c.value.component?p.children:l,b=hn(c);for(const R of Object.keys(b))this.deactivateRouteAndItsChildren(b[R],C);p&&p.outlet&&(p.outlet.deactivate(),p.children.onOutletDeactivated(),p.attachRef=null,p.resolver=null,p.route=null)}activateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{this.activateRoutes(b,C[b.value.outlet],p),this.forwardEvent(new se(b.value.snapshot))}),c.children.length&&this.forwardEvent(new ye(c.value.snapshot))}activateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(Wt(C),C===b)if(C.component){const R=p.getOrCreateContext(C.outlet);this.activateChildRoutes(c,l,R.children)}else this.activateChildRoutes(c,l,p);else if(C.component){const R=p.getOrCreateContext(C.outlet);if(this.routeReuseStrategy.shouldAttach(C.snapshot)){const V=this.routeReuseStrategy.retrieve(C.snapshot);this.routeReuseStrategy.store(C.snapshot,null),R.children.onOutletReAttached(V.contexts),R.attachRef=V.componentRef,R.route=V.route.value,R.outlet&&R.outlet.attach(V.componentRef,V.route.value),je(V.route)}else{const V=function(f){for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig;if(l&&l.component)return null}return null}(C.snapshot),q=V?V.module.componentFactoryResolver:null;R.attachRef=null,R.route=C,R.resolver=q,R.outlet&&R.outlet.activateWith(C,q),this.activateChildRoutes(c,null,R.children)}}else this.activateChildRoutes(c,null,p)}}function je(f){Wt(f.value),f.children.forEach(je)}class Nt{constructor(c,l){this.routes=c,this.module=l}}function $t(f){return"function"==typeof f}function Or(f){return f instanceof Kn}const Nr=Symbol("INITIAL_VALUE");function gr(){return ue(f=>function(){for(var f=[],c=0;cc.pipe((0,_t.q)(1),function(){for(var f=[],c=0;c{let p=!1;return l.reduce((C,b,R)=>C!==Nr?C:(b===Nr&&(p=!0),p||!1!==b&&R!==l.length-1&&!Or(b)?C:b),c)},Nr),(0,ee.h)(c=>c!==Nr),(0,yt.U)(c=>Or(c)?c:!0===c),(0,_t.q)(1)))}let Zi=(()=>{class f{}return f.\u0275fac=function(l){return new(l||f)},f.\u0275cmp=u.Xpm({type:f,selectors:[["ng-component"]],decls:1,vars:0,template:function(l,p){1&l&&u._UZ(0,"router-outlet")},directives:function(){return[po]},encapsulation:2}),f})();function vi(f,c=""){for(let l=0;lS(p)===c);return l.push(...f.filter(p=>S(p)!==c)),l}const oe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function pe(f,c,l){var p;if(""===c.path)return"full"===c.pathMatch&&(f.hasChildren()||l.length>0)?Object.assign({},oe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const b=(c.matcher||ot)(l,f,c);if(!b)return Object.assign({},oe);const R={};nt(b.posParams,(q,Se)=>{R[Se]=q.path});const V=b.consumed.length>0?Object.assign(Object.assign({},R),b.consumed[b.consumed.length-1].parameters):R;return{matched:!0,consumedSegments:b.consumed,lastChild:b.consumed.length,parameters:V,positionalParamSegments:null!==(p=b.posParams)&&void 0!==p?p:{}}}function Be(f,c,l,p,C="corrected"){if(l.length>0&&function(f,c,l){return l.some(p=>M(f,c,p)&&S(p)!==Ne)}(f,l,p)){const R=new et(c,function(f,c,l,p){const C={};C[Ne]=p,p._sourceSegment=f,p._segmentIndexShift=c.length;for(const b of l)if(""===b.path&&S(b)!==Ne){const R=new et([],{});R._sourceSegment=f,R._segmentIndexShift=c.length,C[S(b)]=R}return C}(f,c,p,new et(l,f.children)));return R._sourceSegment=f,R._segmentIndexShift=c.length,{segmentGroup:R,slicedSegments:[]}}if(0===l.length&&function(f,c,l){return l.some(p=>M(f,c,p))}(f,l,p)){const R=new et(f.segments,function(f,c,l,p,C,b){const R={};for(const V of p)if(M(f,l,V)&&!C[S(V)]){const q=new et([],{});q._sourceSegment=f,q._segmentIndexShift="legacy"===b?f.segments.length:c.length,R[S(V)]=q}return Object.assign(Object.assign({},C),R)}(f,c,l,p,f.children,C));return R._sourceSegment=f,R._segmentIndexShift=c.length,{segmentGroup:R,slicedSegments:l}}const b=new et(f.segments,f.children);return b._sourceSegment=f,b._segmentIndexShift=c.length,{segmentGroup:b,slicedSegments:l}}function M(f,c,l){return(!(f.hasChildren()||c.length>0)||"full"!==l.pathMatch)&&""===l.path}function Z(f,c,l,p){return!!(S(f)===p||p!==Ne&&M(c,l,f))&&("**"===f.path||pe(c,f,l).matched)}function we(f,c,l){return 0===c.length&&!f.children[l]}class At{constructor(c){this.segmentGroup=c||null}}class an{constructor(c){this.urlTree=c}}function Qt(f){return new Q.y(c=>c.error(new At(f)))}function zt(f){return new Q.y(c=>c.error(new an(f)))}function qi(f){return new Q.y(c=>c.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f}'`)))}class bn{constructor(c,l,p,C,b){this.configLoader=l,this.urlSerializer=p,this.urlTree=C,this.config=b,this.allowRedirects=!0,this.ngModule=c.get(u.h0i)}apply(){const c=Be(this.urlTree.root,[],[],this.config).segmentGroup,l=new et(c.segments,c.children);return this.expandSegmentGroup(this.ngModule,this.config,l,Ne).pipe((0,yt.U)(b=>this.createUrlTree(Qr(b),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,gn.K)(b=>{if(b instanceof an)return this.allowRedirects=!1,this.match(b.urlTree);throw b instanceof At?this.noMatchError(b):b}))}match(c){return this.expandSegmentGroup(this.ngModule,this.config,c.root,Ne).pipe((0,yt.U)(C=>this.createUrlTree(Qr(C),c.queryParams,c.fragment))).pipe((0,gn.K)(C=>{throw C instanceof At?this.noMatchError(C):C}))}noMatchError(c){return new Error(`Cannot match any routes. URL Segment: '${c.segmentGroup}'`)}createUrlTree(c,l,p){const C=c.segments.length>0?new et([],{[Ne]:c}):c;return new Kn(C,l,p)}expandSegmentGroup(c,l,p,C){return 0===p.segments.length&&p.hasChildren()?this.expandChildren(c,l,p).pipe((0,yt.U)(b=>new et([],b))):this.expandSegment(c,p,l,p.segments,C,!0)}expandChildren(c,l,p){const C=[];for(const b of Object.keys(p.children))"primary"===b?C.unshift(b):C.push(b);return(0,P.Dp)(C).pipe((0,Tt.b)(b=>{const R=p.children[b],V=B(l,b);return this.expandSegmentGroup(c,V,R,b).pipe((0,yt.U)(q=>({segment:q,outlet:b})))}),ze((b,R)=>(b[R.outlet]=R.segment,b),{}),function(f,c){var l=arguments.length>=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,Ie(1),l?Xe(c):be(function(){return new Me}))}}())}expandSegment(c,l,p,C,b,R){return(0,P.Dp)(p).pipe((0,Tt.b)(V=>this.expandSegmentAgainstRoute(c,l,p,V,C,b,R).pipe((0,gn.K)(Se=>{if(Se instanceof At)return(0,H.of)(null);throw Se}))),jt(V=>!!V),(0,gn.K)((V,q)=>{if(V instanceof Me||"EmptyError"===V.name){if(we(l,C,b))return(0,H.of)(new et([],{}));throw new At(l)}throw V}))}expandSegmentAgainstRoute(c,l,p,C,b,R,V){return Z(C,l,b,R)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(c,l,C,b,R):V&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R):Qt(l):Qt(l)}expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R){return"**"===C.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(c,p,C,R):this.expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R)}expandWildCardWithParamsAgainstRouteUsingRedirect(c,l,p,C){const b=this.applyRedirectCommands([],p.redirectTo,{});return p.redirectTo.startsWith("/")?zt(b):this.lineralizeSegments(p,b).pipe((0,it.z)(R=>{const V=new et(R,{});return this.expandSegment(c,V,l,R,C,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R){const{matched:V,consumedSegments:q,lastChild:Se,positionalParamSegments:Ue}=pe(l,C,b);if(!V)return Qt(l);const at=this.applyRedirectCommands(q,C.redirectTo,Ue);return C.redirectTo.startsWith("/")?zt(at):this.lineralizeSegments(C,at).pipe((0,it.z)(kt=>this.expandSegment(c,l,p,kt.concat(b.slice(Se)),R,!1)))}matchSegmentAgainstRoute(c,l,p,C,b){if("**"===p.path)return p.loadChildren?(p._loadedConfig?(0,H.of)(p._loadedConfig):this.configLoader.load(c.injector,p)).pipe((0,yt.U)(kt=>(p._loadedConfig=kt,new et(C,{})))):(0,H.of)(new et(C,{}));const{matched:R,consumedSegments:V,lastChild:q}=pe(l,p,C);if(!R)return Qt(l);const Se=C.slice(q);return this.getChildConfig(c,p,C).pipe((0,it.z)(at=>{const kt=at.module,Ct=at.routes,{segmentGroup:_r,slicedSegments:or}=Be(l,V,Se,Ct),Lr=new et(_r.segments,_r.children);if(0===or.length&&Lr.hasChildren())return this.expandChildren(kt,Ct,Lr).pipe((0,yt.U)(Ho=>new et(V,Ho)));if(0===Ct.length&&0===or.length)return(0,H.of)(new et(V,{}));const Xi=S(p)===b;return this.expandSegment(kt,Lr,Ct,or,Xi?Ne:b,!0).pipe((0,yt.U)(sr=>new et(V.concat(sr.segments),sr.children)))}))}getChildConfig(c,l,p){return l.children?(0,H.of)(new Nt(l.children,c)):l.loadChildren?void 0!==l._loadedConfig?(0,H.of)(l._loadedConfig):this.runCanLoadGuards(c.injector,l,p).pipe((0,it.z)(C=>{return C?this.configLoader.load(c.injector,l).pipe((0,yt.U)(b=>(l._loadedConfig=b,b))):(f=l,new Q.y(c=>c.error(wt(`Cannot load children because the guard of the route "path: '${f.path}'" returned false`))));var f})):(0,H.of)(new Nt([],c))}runCanLoadGuards(c,l,p){const C=l.canLoad;if(!C||0===C.length)return(0,H.of)(!0);const b=C.map(R=>{const V=c.get(R);let q;if((f=V)&&$t(f.canLoad))q=V.canLoad(l,p);else{if(!$t(V))throw new Error("Invalid CanLoad guard");q=V(l,p)}var f;return Mn(q)});return(0,H.of)(b).pipe(gr(),It(R=>{if(!Or(R))return;const V=wt(`Redirecting to "${this.urlSerializer.serialize(R)}"`);throw V.url=R,V}),(0,yt.U)(R=>!0===R))}lineralizeSegments(c,l){let p=[],C=l.root;for(;;){if(p=p.concat(C.segments),0===C.numberOfChildren)return(0,H.of)(p);if(C.numberOfChildren>1||!C.children[Ne])return qi(c.redirectTo);C=C.children[Ne]}}applyRedirectCommands(c,l,p){return this.applyRedirectCreatreUrlTree(l,this.urlSerializer.parse(l),c,p)}applyRedirectCreatreUrlTree(c,l,p,C){const b=this.createSegmentGroup(c,l.root,p,C);return new Kn(b,this.createQueryParams(l.queryParams,this.urlTree.queryParams),l.fragment)}createQueryParams(c,l){const p={};return nt(c,(C,b)=>{if("string"==typeof C&&C.startsWith(":")){const V=C.substring(1);p[b]=l[V]}else p[b]=C}),p}createSegmentGroup(c,l,p,C){const b=this.createSegments(c,l.segments,p,C);let R={};return nt(l.children,(V,q)=>{R[q]=this.createSegmentGroup(c,V,p,C)}),new et(b,R)}createSegments(c,l,p,C){return l.map(b=>b.path.startsWith(":")?this.findPosParam(c,b,C):this.findOrReturn(b,p))}findPosParam(c,l,p){const C=p[l.path.substring(1)];if(!C)throw new Error(`Cannot redirect to '${c}'. Cannot find '${l.path}'.`);return C}findOrReturn(c,l){let p=0;for(const C of l){if(C.path===c.path)return l.splice(p),C;p++}return c}}function Qr(f){const c={};for(const p of Object.keys(f.children)){const b=Qr(f.children[p]);(b.segments.length>0||b.hasChildren())&&(c[p]=b)}return function(f){if(1===f.numberOfChildren&&f.children[Ne]){const c=f.children[Ne];return new et(f.segments.concat(c.segments),c.children)}return f}(new et(f.segments,c))}class Xr{constructor(c){this.path=c,this.route=this.path[this.path.length-1]}}class ao{constructor(c,l){this.component=c,this.route=l}}function ks(f,c,l){const p=f._root;return lo(p,c?c._root:null,l,[p.value])}function Vs(f,c,l){const p=function(f){if(!f)return null;for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig}return null}(c);return(p?p.module.injector:l).get(f)}function lo(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=hn(c);return f.children.forEach(R=>{(function(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=f.value,R=c?c.value:null,V=l?l.getContext(f.value.outlet):null;if(R&&b.routeConfig===R.routeConfig){const q=function(f,c,l){if("function"==typeof l)return l(f,c);switch(l){case"pathParamsChange":return!En(f.url,c.url);case"pathParamsOrQueryParamsChange":return!En(f.url,c.url)||!Le(f.queryParams,c.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$n(f,c)||!Le(f.queryParams,c.queryParams);case"paramsChange":default:return!$n(f,c)}}(R,b,b.routeConfig.runGuardsAndResolvers);q?C.canActivateChecks.push(new Xr(p)):(b.data=R.data,b._resolvedData=R._resolvedData),lo(f,c,b.component?V?V.children:null:l,p,C),q&&V&&V.outlet&&V.outlet.isActivated&&C.canDeactivateChecks.push(new ao(V.outlet.component,R))}else R&&uo(c,V,C),C.canActivateChecks.push(new Xr(p)),lo(f,null,b.component?V?V.children:null:l,p,C)})(R,b[R.value.outlet],l,p.concat([R.value]),C),delete b[R.value.outlet]}),nt(b,(R,V)=>uo(R,l.getContext(V),C)),C}function uo(f,c,l){const p=hn(f),C=f.value;nt(p,(b,R)=>{uo(b,C.component?c?c.children.getContext(R):null:c,l)}),l.canDeactivateChecks.push(new ao(C.component&&c&&c.outlet&&c.outlet.isActivated?c.outlet.component:null,C))}class Us{}function To(f){return new Q.y(c=>c.error(f))}class ou{constructor(c,l,p,C,b,R){this.rootComponentType=c,this.config=l,this.urlTree=p,this.url=C,this.paramsInheritanceStrategy=b,this.relativeLinkResolution=R}recognize(){const c=Be(this.urlTree.root,[],[],this.config.filter(R=>void 0===R.redirectTo),this.relativeLinkResolution).segmentGroup,l=this.processSegmentGroup(this.config,c,Ne);if(null===l)return null;const p=new Ar([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),C=new _n(p,l),b=new ir(this.url,C);return this.inheritParamsAndData(b._root),b}inheritParamsAndData(c){const l=c.value,p=Mt(l,this.paramsInheritanceStrategy);l.params=Object.freeze(p.params),l.data=Object.freeze(p.data),c.children.forEach(C=>this.inheritParamsAndData(C))}processSegmentGroup(c,l,p){return 0===l.segments.length&&l.hasChildren()?this.processChildren(c,l):this.processSegment(c,l,l.segments,p)}processChildren(c,l){const p=[];for(const b of Object.keys(l.children)){const R=l.children[b],V=B(c,b),q=this.processSegmentGroup(V,R,b);if(null===q)return null;p.push(...q)}const C=yr(p);return C.sort((c,l)=>c.value.outlet===Ne?-1:l.value.outlet===Ne?1:c.value.outlet.localeCompare(l.value.outlet)),C}processSegment(c,l,p,C){for(const b of c){const R=this.processSegmentAgainstRoute(b,l,p,C);if(null!==R)return R}return we(l,p,C)?[]:null}processSegmentAgainstRoute(c,l,p,C){if(c.redirectTo||!Z(c,l,p,C))return null;let b,R=[],V=[];if("**"===c.path){const Ct=p.length>0?Dr(p).parameters:{};b=new Ar(p,Ct,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+p.length,Bs(c))}else{const Ct=pe(l,c,p);if(!Ct.matched)return null;R=Ct.consumedSegments,V=p.slice(Ct.lastChild),b=new Ar(R,Ct.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+R.length,Bs(c))}const q=(f=c).children?f.children:f.loadChildren?f._loadedConfig.routes:[],{segmentGroup:Se,slicedSegments:Ue}=Be(l,R,V,q.filter(Ct=>void 0===Ct.redirectTo),this.relativeLinkResolution);var f;if(0===Ue.length&&Se.hasChildren()){const Ct=this.processChildren(q,Se);return null===Ct?null:[new _n(b,Ct)]}if(0===q.length&&0===Ue.length)return[new _n(b,[])];const at=S(c)===C,kt=this.processSegment(q,Se,Ue,at?Ne:C);return null===kt?null:[new _n(b,kt)]}}function Hn(f){const c=f.value.routeConfig;return c&&""===c.path&&void 0===c.redirectTo}function yr(f){const c=[],l=new Set;for(const p of f){if(!Hn(p)){c.push(p);continue}const C=c.find(b=>p.value.routeConfig===b.value.routeConfig);void 0!==C?(C.children.push(...p.children),l.add(C)):c.push(p)}for(const p of l){const C=yr(p.children);c.push(new _n(p.value,C))}return c.filter(p=>!l.has(p))}function Vi(f){let c=f;for(;c._sourceSegment;)c=c._sourceSegment;return c}function Fr(f){let c=f,l=c._segmentIndexShift?c._segmentIndexShift:0;for(;c._sourceSegment;)c=c._sourceSegment,l+=c._segmentIndexShift?c._segmentIndexShift:0;return l-1}function Ha(f){return f.data||{}}function Bs(f){return f.resolve||{}}function fo(f){return ue(c=>{const l=f(c);return l?(0,P.Dp)(l).pipe((0,yt.U)(()=>c)):(0,H.of)(c)})}class No extends class{shouldDetach(c){return!1}store(c,l){}shouldAttach(c){return!1}retrieve(c){return null}shouldReuseRoute(c,l){return c.routeConfig===l.routeConfig}}{}const Ro=new u.OlP("ROUTES");class Hs{constructor(c,l,p,C){this.loader=c,this.compiler=l,this.onLoadStartListener=p,this.onLoadEndListener=C}load(c,l){if(l._loader$)return l._loader$;this.onLoadStartListener&&this.onLoadStartListener(l);const C=this.loadModuleFactory(l.loadChildren).pipe((0,yt.U)(b=>{this.onLoadEndListener&&this.onLoadEndListener(l);const R=b.create(c);return new Nt(rn(R.injector.get(Ro,void 0,u.XFs.Self|u.XFs.Optional)).map(v),R)}),(0,gn.K)(b=>{throw l._loader$=void 0,b}));return l._loader$=new le(C,()=>new re.x).pipe(lt()),l._loader$}loadModuleFactory(c){return"string"==typeof c?(0,P.Dp)(this.loader.load(c)):Mn(c()).pipe((0,it.z)(l=>l instanceof u.YKP?(0,H.of)(l):(0,P.Dp)(this.compiler.compileModuleAsync(l))))}}class za{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ui,this.attachRef=null}}class Ui{constructor(){this.contexts=new Map}onChildOutletCreated(c,l){const p=this.getOrCreateContext(c);p.outlet=l,this.contexts.set(c,p)}onChildOutletDestroyed(c){const l=this.getContext(c);l&&(l.outlet=null)}onOutletDeactivated(){const c=this.contexts;return this.contexts=new Map,c}onOutletReAttached(c){this.contexts=c}getOrCreateContext(c){let l=this.getContext(c);return l||(l=new za,this.contexts.set(c,l)),l}getContext(c){return this.contexts.get(c)||null}}class cu{shouldProcessUrl(c){return!0}extract(c){return c}merge(c,l){return c}}function du(f){throw f}function Gn(f,c,l){return c.parse("/")}function ei(f,c){return(0,H.of)(null)}const Xt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fu={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wn=(()=>{class f{constructor(l,p,C,b,R,V,q,Se){this.rootComponentType=l,this.urlSerializer=p,this.rootContexts=C,this.location=b,this.config=Se,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new re.x,this.errorHandler=du,this.malformedUriErrorHandler=Gn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ei,afterPreactivation:ei},this.urlHandlingStrategy=new cu,this.routeReuseStrategy=new No,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=R.get(u.h0i),this.console=R.get(u.c2e);const kt=R.get(u.R0b);this.isNgZoneEnabled=kt instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(Se),this.currentUrlTree=new Kn(new et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Hs(V,q,Ct=>this.triggerEvent(new G(Ct)),Ct=>this.triggerEvent(new W(Ct))),this.routerState=Un(this.currentUrlTree,this.rootComponentType),this.transitions=new te({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()}get browserPageId(){var l;return null===(l=this.location.getState())||void 0===l?void 0:l.\u0275routerPageId}setupNavigations(l){const p=this.events;return l.pipe((0,ee.h)(C=>0!==C.id),(0,yt.U)(C=>Object.assign(Object.assign({},C),{extractedUrl:this.urlHandlingStrategy.extract(C.rawUrl)})),ue(C=>{let b=!1,R=!1;return(0,H.of)(C).pipe(It(V=>{this.currentNavigation={id:V.id,initialUrl:V.currentRawUrl,extractedUrl:V.extractedUrl,trigger:V.source,extras:V.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ue(V=>{const q=!this.navigated||V.extractedUrl.toString()!==this.browserUrlTree.toString(),Se=("reload"===this.onSameUrlNavigation||q)&&this.urlHandlingStrategy.shouldProcessUrl(V.rawUrl);if(Fo(V.source)&&(this.browserUrlTree=V.rawUrl),Se)return(0,H.of)(V).pipe(ue(Ue=>{const at=this.transitions.getValue();return p.next(new Cn(Ue.id,this.serializeUrl(Ue.extractedUrl),Ue.source,Ue.restoredState)),at!==this.transitions.getValue()?X.E:Promise.resolve(Ue)}),function(f,c,l,p){return ue(C=>function(f,c,l,p,C){return new bn(f,c,l,p,C).apply()}(f,c,l,C.extractedUrl,p).pipe((0,yt.U)(b=>Object.assign(Object.assign({},C),{urlAfterRedirects:b}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),It(Ue=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Ue.urlAfterRedirects})}),function(f,c,l,p,C){return(0,it.z)(b=>function(f,c,l,p,C="emptyOnly",b="legacy"){try{const R=new ou(f,c,l,p,C,b).recognize();return null===R?To(new Us):(0,H.of)(R)}catch(R){return To(R)}}(f,c,b.urlAfterRedirects,l(b.urlAfterRedirects),p,C).pipe((0,yt.U)(R=>Object.assign(Object.assign({},b),{targetSnapshot:R}))))}(this.rootComponentType,this.config,Ue=>this.serializeUrl(Ue),this.paramsInheritanceStrategy,this.relativeLinkResolution),It(Ue=>{"eager"===this.urlUpdateStrategy&&(Ue.extras.skipLocationChange||this.setBrowserUrl(Ue.urlAfterRedirects,Ue),this.browserUrlTree=Ue.urlAfterRedirects);const at=new Ft(Ue.id,this.serializeUrl(Ue.extractedUrl),this.serializeUrl(Ue.urlAfterRedirects),Ue.targetSnapshot);p.next(at)}));if(q&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:at,extractedUrl:kt,source:Ct,restoredState:_r,extras:or}=V,Lr=new Cn(at,this.serializeUrl(kt),Ct,_r);p.next(Lr);const Xi=Un(kt,this.rootComponentType).snapshot;return(0,H.of)(Object.assign(Object.assign({},V),{targetSnapshot:Xi,urlAfterRedirects:kt,extras:Object.assign(Object.assign({},or),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=V.rawUrl,this.browserUrlTree=V.urlAfterRedirects,V.resolve(null),X.E}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.beforePreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),It(V=>{const q=new gt(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot);this.triggerEvent(q)}),(0,yt.U)(V=>Object.assign(Object.assign({},V),{guards:ks(V.targetSnapshot,V.currentSnapshot,this.rootContexts)})),function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,currentSnapshot:C,guards:{canActivateChecks:b,canDeactivateChecks:R}}=l;return 0===R.length&&0===b.length?(0,H.of)(Object.assign(Object.assign({},l),{guardsResult:!0})):function(f,c,l,p){return(0,P.Dp)(f).pipe((0,it.z)(C=>function(f,c,l,p,C){const b=c&&c.routeConfig?c.routeConfig.canDeactivate:null;if(!b||0===b.length)return(0,H.of)(!0);const R=b.map(V=>{const q=Vs(V,c,C);let Se;if(function(f){return f&&$t(f.canDeactivate)}(q))Se=Mn(q.canDeactivate(f,c,l,p));else{if(!$t(q))throw new Error("Invalid CanDeactivate guard");Se=Mn(q(f,c,l,p))}return Se.pipe(jt())});return(0,H.of)(R).pipe(gr())}(C.component,C.route,l,c,p)),jt(C=>!0!==C,!0))}(R,p,C,f).pipe((0,it.z)(V=>V&&function(f){return"boolean"==typeof f}(V)?function(f,c,l,p){return(0,P.Dp)(c).pipe((0,Tt.b)(C=>he(function(f,c){return null!==f&&c&&c(new ge(f)),(0,H.of)(!0)}(C.route.parent,p),function(f,c){return null!==f&&c&&c(new Re(f)),(0,H.of)(!0)}(C.route,p),function(f,c,l){const p=c[c.length-1],b=c.slice(0,c.length-1).reverse().map(R=>function(f){const c=f.routeConfig?f.routeConfig.canActivateChild:null;return c&&0!==c.length?{node:f,guards:c}:null}(R)).filter(R=>null!==R).map(R=>Ke(()=>{const V=R.guards.map(q=>{const Se=Vs(q,R.node,l);let Ue;if(function(f){return f&&$t(f.canActivateChild)}(Se))Ue=Mn(Se.canActivateChild(p,f));else{if(!$t(Se))throw new Error("Invalid CanActivateChild guard");Ue=Mn(Se(p,f))}return Ue.pipe(jt())});return(0,H.of)(V).pipe(gr())}));return(0,H.of)(b).pipe(gr())}(f,C.path,l),function(f,c,l){const p=c.routeConfig?c.routeConfig.canActivate:null;if(!p||0===p.length)return(0,H.of)(!0);const C=p.map(b=>Ke(()=>{const R=Vs(b,c,l);let V;if(function(f){return f&&$t(f.canActivate)}(R))V=Mn(R.canActivate(c,f));else{if(!$t(R))throw new Error("Invalid CanActivate guard");V=Mn(R(c,f))}return V.pipe(jt())}));return(0,H.of)(C).pipe(gr())}(f,C.route,l))),jt(C=>!0!==C,!0))}(p,b,f,c):(0,H.of)(V)),(0,yt.U)(V=>Object.assign(Object.assign({},l),{guardsResult:V})))})}(this.ngModule.injector,V=>this.triggerEvent(V)),It(V=>{if(Or(V.guardsResult)){const Se=wt(`Redirecting to "${this.serializeUrl(V.guardsResult)}"`);throw Se.url=V.guardsResult,Se}const q=new tr(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot,!!V.guardsResult);this.triggerEvent(q)}),(0,ee.h)(V=>!!V.guardsResult||(this.restoreHistory(V),this.cancelNavigationTransition(V,""),!1)),fo(V=>{if(V.guards.canActivateChecks.length)return(0,H.of)(V).pipe(It(q=>{const Se=new Ni(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}),ue(q=>{let Se=!1;return(0,H.of)(q).pipe(function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,guards:{canActivateChecks:C}}=l;if(!C.length)return(0,H.of)(l);let b=0;return(0,P.Dp)(C).pipe((0,Tt.b)(R=>function(f,c,l,p){return function(f,c,l,p){const C=Object.keys(f);if(0===C.length)return(0,H.of)({});const b={};return(0,P.Dp)(C).pipe((0,it.z)(R=>function(f,c,l,p){const C=Vs(f,c,p);return Mn(C.resolve?C.resolve(c,l):C(c,l))}(f[R],c,l,p).pipe(It(V=>{b[R]=V}))),Ie(1),(0,it.z)(()=>Object.keys(b).length===C.length?(0,H.of)(b):X.E))}(f._resolve,f,c,p).pipe((0,yt.U)(b=>(f._resolvedData=b,f.data=Object.assign(Object.assign({},f.data),Mt(f,l).resolve),null)))}(R.route,p,f,c)),It(()=>b++),Ie(1),(0,it.z)(R=>b===C.length?(0,H.of)(l):X.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),It({next:()=>Se=!0,complete:()=>{Se||(this.restoreHistory(q),this.cancelNavigationTransition(q,"At least one route resolver didn't emit any value."))}}))}),It(q=>{const Se=new fe(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}))}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.afterPreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),(0,yt.U)(V=>{const q=function(f,c,l){const p=Sr(f,c._root,l?l._root:void 0);return new Ht(p,c)}(this.routeReuseStrategy,V.targetSnapshot,V.currentRouterState);return Object.assign(Object.assign({},V),{targetRouterState:q})}),It(V=>{this.currentUrlTree=V.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,V.rawUrl),this.routerState=V.targetRouterState,"deferred"===this.urlUpdateStrategy&&(V.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,V),this.browserUrlTree=V.urlAfterRedirects)}),((f,c,l)=>(0,yt.U)(p=>(new Oe(c,p.targetRouterState,p.currentRouterState,l).activate(f),p)))(this.rootContexts,this.routeReuseStrategy,V=>this.triggerEvent(V)),It({next(){b=!0},complete(){b=!0}}),function(f){return(0,$e.e)(function(c,l){try{c.subscribe(l)}finally{l.add(f)}})}(()=>{if(!b&&!R){const V=`Navigation ID ${C.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(C),this.cancelNavigationTransition(C,V)):this.cancelNavigationTransition(C,V)}this.currentNavigation=null}),(0,gn.K)(V=>{if(R=!0,function(f){return f&&f[zn]}(V)){const q=Or(V.url);q||(this.navigated=!0,this.restoreHistory(C,!0));const Se=new xt(C.id,this.serializeUrl(C.extractedUrl),V.message);p.next(Se),q?setTimeout(()=>{const Ue=this.urlHandlingStrategy.merge(V.url,this.rawUrlTree),at={skipLocationChange:C.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Fo(C.source)};this.scheduleNavigation(Ue,"imperative",null,at,{resolve:C.resolve,reject:C.reject,promise:C.promise})},0):C.resolve(!1)}else{this.restoreHistory(C,!0);const q=new Hr(C.id,this.serializeUrl(C.extractedUrl),V);p.next(q);try{C.resolve(this.errorHandler(V))}catch(Se){C.reject(Se)}}return X.E}))}))}resetRootComponentType(l){this.rootComponentType=l,this.routerState.root.component=this.rootComponentType}getTransition(){const l=this.transitions.value;return l.urlAfterRedirects=this.browserUrlTree,l}setTransition(l){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),l))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(l=>{const p=this.extractLocationChangeInfoFromEvent(l);this.shouldScheduleNavigation(this.lastLocationChangeInfo,p)&&setTimeout(()=>{const{source:C,state:b,urlTree:R}=p,V={replaceUrl:!0};if(b){const q=Object.assign({},b);delete q.navigationId,delete q.\u0275routerPageId,0!==Object.keys(q).length&&(V.state=q)}this.scheduleNavigation(R,C,b,V)},0),this.lastLocationChangeInfo=p}))}extractLocationChangeInfoFromEvent(l){var p;return{source:"popstate"===l.type?"popstate":"hashchange",urlTree:this.parseUrl(l.url),state:(null===(p=l.state)||void 0===p?void 0:p.navigationId)?l.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(l,p){if(!l)return!0;const C=p.urlTree.toString()===l.urlTree.toString();return p.transitionId!==l.transitionId||!C||!("hashchange"===p.source&&"popstate"===l.source||"popstate"===p.source&&"hashchange"===l.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(l){this.events.next(l)}resetConfig(l){vi(l),this.config=l.map(v),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(l,p={}){const{relativeTo:C,queryParams:b,fragment:R,queryParamsHandling:V,preserveFragment:q}=p,Se=C||this.routerState.root,Ue=q?this.currentUrlTree.fragment:R;let at=null;switch(V){case"merge":at=Object.assign(Object.assign({},this.currentUrlTree.queryParams),b);break;case"preserve":at=this.currentUrlTree.queryParams;break;default:at=b||null}return null!==at&&(at=this.removeEmptyProps(at)),function(f,c,l,p,C){if(0===l.length)return Ir(c.root,c.root,c,p,C);const b=function(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new mi(!0,0,f);let c=0,l=!1;const p=f.reduce((C,b,R)=>{if("object"==typeof b&&null!=b){if(b.outlets){const V={};return nt(b.outlets,(q,Se)=>{V[Se]="string"==typeof q?q.split("/"):q}),[...C,{outlets:V}]}if(b.segmentPath)return[...C,b.segmentPath]}return"string"!=typeof b?[...C,b]:0===R?(b.split("/").forEach((V,q)=>{0==q&&"."===V||(0==q&&""===V?l=!0:".."===V?c++:""!=V&&C.push(V))}),C):[...C,b]},[]);return new mi(l,c,p)}(l);if(b.toRoot())return Ir(c.root,new et([],{}),c,p,C);const R=function(f,c,l){if(f.isAbsolute)return new yi(c.root,!0,0);if(-1===l.snapshot._lastPathIndex){const b=l.snapshot._urlSegment;return new yi(b,b===c.root,0)}const p=jn(f.commands[0])?0:1;return function(f,c,l){let p=f,C=c,b=l;for(;b>C;){if(b-=C,p=p.parent,!p)throw new Error("Invalid number of '../'");C=p.segments.length}return new yi(p,!1,C-b)}(l.snapshot._urlSegment,l.snapshot._lastPathIndex+p,f.numberOfDoubleDots)}(b,c,f),V=R.processChildren?Jr(R.segmentGroup,R.index,b.commands):_i(R.segmentGroup,R.index,b.commands);return Ir(R.segmentGroup,V,c,p,C)}(Se,this.currentUrlTree,l,at,null!=Ue?Ue:null)}navigateByUrl(l,p={skipLocationChange:!1}){const C=Or(l)?l:this.parseUrl(l),b=this.urlHandlingStrategy.merge(C,this.rawUrlTree);return this.scheduleNavigation(b,"imperative",null,p)}navigate(l,p={skipLocationChange:!1}){return function(f){for(let c=0;c{const b=l[C];return null!=b&&(p[C]=b),p},{})}processNavigations(){this.navigations.subscribe(l=>{this.navigated=!0,this.lastSuccessfulId=l.id,this.currentPageId=l.targetPageId,this.events.next(new Rn(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,l.resolve(!0)},l=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(l,p,C,b,R){var V,q;if(this.disposed)return Promise.resolve(!1);const Se=this.getTransition(),Ue=Fo(p)&&Se&&!Fo(Se.source),Ct=(this.lastSuccessfulId===Se.id||this.currentNavigation?Se.rawUrl:Se.urlAfterRedirects).toString()===l.toString();if(Ue&&Ct)return Promise.resolve(!0);let _r,or,Lr;R?(_r=R.resolve,or=R.reject,Lr=R.promise):Lr=new Promise((sr,Ho)=>{_r=sr,or=Ho});const Xi=++this.navigationId;let Bi;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(C=this.location.getState()),Bi=C&&C.\u0275routerPageId?C.\u0275routerPageId:b.replaceUrl||b.skipLocationChange?null!==(V=this.browserPageId)&&void 0!==V?V:0:(null!==(q=this.browserPageId)&&void 0!==q?q:0)+1):Bi=0,this.setTransition({id:Xi,targetPageId:Bi,source:p,restoredState:C,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:l,extras:b,resolve:_r,reject:or,promise:Lr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Lr.catch(sr=>Promise.reject(sr))}setBrowserUrl(l,p){const C=this.urlSerializer.serialize(l),b=Object.assign(Object.assign({},p.extras.state),this.generateNgRouterState(p.id,p.targetPageId));this.location.isCurrentPathEqualTo(C)||p.extras.replaceUrl?this.location.replaceState(C,"",b):this.location.go(C,"",b)}restoreHistory(l,p=!1){var C,b;if("computed"===this.canceledNavigationResolution){const R=this.currentPageId-l.targetPageId;"popstate"!==l.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(C=this.currentNavigation)||void 0===C?void 0:C.finalUrl)||0===R?this.currentUrlTree===(null===(b=this.currentNavigation)||void 0===b?void 0:b.finalUrl)&&0===R&&(this.resetState(l),this.browserUrlTree=l.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(R)}else"replace"===this.canceledNavigationResolution&&(p&&this.resetState(l),this.resetUrlToCurrentUrlTree())}resetState(l){this.routerState=l.currentRouterState,this.currentUrlTree=l.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,l.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(l,p){const C=new xt(l.id,this.serializeUrl(l.extractedUrl),p);this.triggerEvent(C),l.resolve(!1)}generateNgRouterState(l,p){return"computed"===this.canceledNavigationResolution?{navigationId:l,\u0275routerPageId:p}:{navigationId:l}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.DyG),u.LFG(yn),u.LFG(Ui),u.LFG(y.Ye),u.LFG(u.zs3),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Fo(f){return"imperative"!==f}let Lo=(()=>{class f{constructor(l,p,C,b,R){this.router=l,this.route=p,this.commands=[],this.onChanges=new re.x,null==C&&b.setAttribute(R.nativeElement,"tabindex","0")}ngOnChanges(l){this.onChanges.next(this)}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}onClick(){const l={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(l,p){1&l&&u.NdJ("click",function(){return p.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})(),ko=(()=>{class f{constructor(l,p,C){this.router=l,this.route=p,this.locationStrategy=C,this.commands=[],this.onChanges=new re.x,this.subscription=l.events.subscribe(b=>{b instanceof Rn&&this.updateTargetUrlAndHref()})}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}ngOnChanges(l){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(l,p,C,b,R){if(0!==l||p||C||b||R||"string"==typeof this.target&&"_self"!=this.target)return!0;const V={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,V),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.Y36(y.S$))},f.\u0275dir=u.lG2({type:f,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(l,p){1&l&&u.NdJ("click",function(b){return p.onClick(b.button,b.ctrlKey,b.shiftKey,b.altKey,b.metaKey)}),2&l&&(u.Ikx("href",p.href,u.LSH),u.uIk("target",p.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})();function ti(f){return""===f||!!f}let ho=(()=>{class f{constructor(l,p,C,b,R,V){this.router=l,this.element=p,this.renderer=C,this.cdr=b,this.link=R,this.linkWithHref=V,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=l.events.subscribe(q=>{q instanceof Rn&&this.update()})}ngAfterContentInit(){(0,H.of)(this.links.changes,this.linksWithHrefs.changes,(0,H.of)(null)).pipe((0,Ge.J)()).subscribe(l=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var l;null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe();const p=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(C=>!!C).map(C=>C.onChanges);this.linkInputChangesSubscription=(0,P.Dp)(p).pipe((0,Ge.J)()).subscribe(C=>{this.isActive!==this.isLinkActive(this.router)(C)&&this.update()})}set routerLinkActive(l){const p=Array.isArray(l)?l:l.split(" ");this.classes=p.filter(C=>!!C)}ngOnChanges(l){this.update()}ngOnDestroy(){var l;this.routerEventsSubscription.unsubscribe(),null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const l=this.hasActiveLinks();this.isActive!==l&&(this.isActive=l,this.cdr.markForCheck(),this.classes.forEach(p=>{l?this.renderer.addClass(this.element.nativeElement,p):this.renderer.removeClass(this.element.nativeElement,p)}))})}isLinkActive(l){const p=function(f){return!!f.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return C=>l.isActive(C.urlTree,p)}hasActiveLinks(){const l=this.isLinkActive(this.router);return this.link&&l(this.link)||this.linkWithHref&&l(this.linkWithHref)||this.links.some(l)||this.linksWithHrefs.some(l)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(u.sBO),u.Y36(Lo,8),u.Y36(ko,8))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLinkActive",""]],contentQueries:function(l,p,C){if(1&l&&(u.Suo(C,Lo,5),u.Suo(C,ko,5)),2&l){let b;u.iGM(b=u.CRH())&&(p.links=b),u.iGM(b=u.CRH())&&(p.linksWithHrefs=b)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[u.TTD]}),f})(),po=(()=>{class f{constructor(l,p,C,b,R){this.parentContexts=l,this.location=p,this.resolver=C,this.changeDetector=R,this.activated=null,this._activatedRoute=null,this.activateEvents=new u.vpe,this.deactivateEvents=new u.vpe,this.name=b||Ne,l.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const l=this.parentContexts.getContext(this.name);l&&l.route&&(l.attachRef?this.attach(l.attachRef,l.route):this.activateWith(l.route,l.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const l=this.activated;return this.activated=null,this._activatedRoute=null,l}attach(l,p){this.activated=l,this._activatedRoute=p,this.location.insert(l.hostView)}deactivate(){if(this.activated){const l=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(l)}}activateWith(l,p){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=l;const R=(p=p||this.resolver).resolveComponentFactory(l._futureSnapshot.routeConfig.component),V=this.parentContexts.getOrCreateContext(this.name).children,q=new Ka(l,V,this.location.injector);this.activated=this.location.createComponent(R,this.location.length,q),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Ui),u.Y36(u.s_b),u.Y36(u._Vd),u.$8M("name"),u.Y36(u.sBO))},f.\u0275dir=u.lG2({type:f,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),f})();class Ka{constructor(c,l,p){this.route=c,this.childContexts=l,this.parent=p}get(c,l){return c===Gt?this.route:c===Ui?this.childContexts:this.parent.get(c,l)}}class Ya{}class Ji{preload(c,l){return(0,H.of)(null)}}let Za=(()=>{class f{constructor(l,p,C,b,R){this.router=l,this.injector=b,this.preloadingStrategy=R,this.loader=new Hs(p,C,Se=>l.triggerEvent(new G(Se)),Se=>l.triggerEvent(new W(Se)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,ee.h)(l=>l instanceof Rn),(0,Tt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const l=this.injector.get(u.h0i);return this.processRoutes(l,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(l,p){const C=[];for(const b of p)if(b.loadChildren&&!b.canLoad&&b._loadedConfig){const R=b._loadedConfig;C.push(this.processRoutes(R.module,R.routes))}else b.loadChildren&&!b.canLoad?C.push(this.preloadConfig(l,b)):b.children&&C.push(this.processRoutes(l,b.children));return(0,P.Dp)(C).pipe((0,Ge.J)(),(0,yt.U)(b=>{}))}preloadConfig(l,p){return this.preloadingStrategy.preload(p,()=>(p._loadedConfig?(0,H.of)(p._loadedConfig):this.loader.load(l.injector,p)).pipe((0,it.z)(b=>(p._loadedConfig=b,this.processRoutes(b.module,b.routes)))))}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(u.zs3),u.LFG(Ya))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})(),Gs=(()=>{class f{constructor(l,p,C={}){this.router=l,this.viewportScroller=p,this.options=C,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},C.scrollPositionRestoration=C.scrollPositionRestoration||"disabled",C.anchorScrolling=C.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(l=>{l instanceof Cn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=l.navigationTrigger,this.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof Rn&&(this.lastId=l.id,this.scheduleScrollEvent(l,this.router.parseUrl(l.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(l=>{l instanceof xe&&(l.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(l,p){this.router.triggerEvent(new xe(l,"popstate"===this.lastSource?this.store[this.restoredId]:null,p))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(y.EM),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();const ni=new u.OlP("ROUTER_CONFIGURATION"),qa=new u.OlP("ROUTER_FORROOT_GUARD"),sf=[y.Ye,{provide:yn,useClass:zr},{provide:Wn,useFactory:function(f,c,l,p,C,b,R,V={},q,Se){const Ue=new Wn(null,f,c,l,p,C,b,rn(R));return q&&(Ue.urlHandlingStrategy=q),Se&&(Ue.routeReuseStrategy=Se),function(f,c){f.errorHandler&&(c.errorHandler=f.errorHandler),f.malformedUriErrorHandler&&(c.malformedUriErrorHandler=f.malformedUriErrorHandler),f.onSameUrlNavigation&&(c.onSameUrlNavigation=f.onSameUrlNavigation),f.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=f.paramsInheritanceStrategy),f.relativeLinkResolution&&(c.relativeLinkResolution=f.relativeLinkResolution),f.urlUpdateStrategy&&(c.urlUpdateStrategy=f.urlUpdateStrategy)}(V,Ue),V.enableTracing&&Ue.events.subscribe(at=>{var kt,Ct;null===(kt=console.group)||void 0===kt||kt.call(console,`Router Event: ${at.constructor.name}`),console.log(at.toString()),console.log(at),null===(Ct=console.groupEnd)||void 0===Ct||Ct.call(console)}),Ue},deps:[yn,Ui,y.Ye,u.zs3,u.v3s,u.Sil,Ro,ni,[class{},new u.FiY],[class{},new u.FiY]]},Ui,{provide:Gt,useFactory:function(f){return f.routerState.root},deps:[Wn]},{provide:u.v3s,useClass:u.EAV},Za,Ji,class{preload(c,l){return l().pipe((0,gn.K)(()=>(0,H.of)(null)))}},{provide:ni,useValue:{enableTracing:!1}}];function af(){return new u.PXZ("Router",Wn)}let Bo=(()=>{class f{constructor(l,p){}static forRoot(l,p){return{ngModule:f,providers:[sf,zs(l),{provide:qa,useFactory:$o,deps:[[Wn,new u.FiY,new u.tp0]]},{provide:ni,useValue:p||{}},{provide:y.S$,useFactory:Ws,deps:[y.lw,[new u.tBr(y.mr),new u.FiY],ni]},{provide:Gs,useFactory:Ja,deps:[Wn,y.EM,ni]},{provide:Ya,useExisting:p&&p.preloadingStrategy?p.preloadingStrategy:Ji},{provide:u.PXZ,multi:!0,useFactory:af},[Ei,{provide:u.ip1,multi:!0,useFactory:Ks,deps:[Ei]},{provide:mu,useFactory:jo,deps:[Ei]},{provide:u.tb,multi:!0,useExisting:mu}]]}}static forChild(l){return{ngModule:f,providers:[zs(l)]}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(qa,8),u.LFG(Wn,8))},f.\u0275mod=u.oAB({type:f}),f.\u0275inj=u.cJS({}),f})();function Ja(f,c,l){return l.scrollOffset&&c.setOffset(l.scrollOffset),new Gs(f,c,l)}function Ws(f,c,l={}){return l.useHash?new y.Do(f,c):new y.b0(f,c)}function $o(f){return"guarded"}function zs(f){return[{provide:u.deG,multi:!0,useValue:f},{provide:Ro,multi:!0,useValue:f}]}let Ei=(()=>{class f{constructor(l){this.injector=l,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new re.x}appInitializer(){return this.injector.get(y.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let p=null;const C=new Promise(V=>p=V),b=this.injector.get(Wn),R=this.injector.get(ni);return"disabled"===R.initialNavigation?(b.setUpLocationChangeListener(),p(!0)):"enabled"===R.initialNavigation||"enabledBlocking"===R.initialNavigation?(b.hooks.afterPreactivation=()=>this.initNavigation?(0,H.of)(null):(this.initNavigation=!0,p(!0),this.resultOfPreactivationDone),b.initialNavigation()):p(!0),C})}bootstrapListener(l){const p=this.injector.get(ni),C=this.injector.get(Za),b=this.injector.get(Gs),R=this.injector.get(Wn),V=this.injector.get(u.z2F);l===V.components[0]&&(("enabledNonBlocking"===p.initialNavigation||void 0===p.initialNavigation)&&R.initialNavigation(),C.setUpPreloading(),b.init(),R.resetRootComponentType(V.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.zs3))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Ks(f){return f.appInitializer.bind(f)}function jo(f){return f.bootstrapListener.bind(f)}const mu=new u.OlP("Router Initializer")},1776:(Ye,me,O)=>{"use strict";O.d(me,{y:()=>U});var y=O(4111),u=O(8839),ce=O(8794),re=O(2738);function Q(De){return 0===De.length?re.y:1===De.length?De[0]:function(ve){return De.reduce(function(He,Me){return Me(He)},ve)}}var K=O(6806),P=O(8853),x=O(4112),U=function(){function De(Pe){Pe&&(this._subscribe=Pe)}return De.prototype.lift=function(Pe){var ve=new De;return ve.source=this,ve.operator=Pe,ve},De.prototype.subscribe=function(Pe,ve,He){var Me=this,Ge=function(De){return De&&De instanceof y.Lv||function(De){return De&&(0,P.m)(De.next)&&(0,P.m)(De.error)&&(0,P.m)(De.complete)}(De)&&(0,u.Nn)(De)}(Pe)?Pe:new y.Hp(Pe,ve,He);return(0,x.x)(function(){var Fe=Me.operator,he=Me.source;Ge.add(Fe?Fe.call(Ge,he):he?Me._subscribe(Ge):Me._trySubscribe(Ge))}),Ge},De.prototype._trySubscribe=function(Pe){try{return this._subscribe(Pe)}catch(ve){Pe.error(ve)}},De.prototype.forEach=function(Pe,ve){var He=this;return new(ve=Y(ve))(function(Me,Ge){var We;We=He.subscribe(function(Fe){try{Pe(Fe)}catch(he){Ge(he),null==We||We.unsubscribe()}},Ge,Me)})},De.prototype._subscribe=function(Pe){var ve;return null===(ve=this.source)||void 0===ve?void 0:ve.subscribe(Pe)},De.prototype[ce.L]=function(){return this},De.prototype.pipe=function(){for(var Pe=[],ve=0;ve{"use strict";O.d(me,{x:()=>P});var y=O(9162),u=O(1776),ce=O(8839),te=(0,O(3864).d)(function(U){return function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Q=O(5850),K=O(4112),P=function(U){function Y(){var ae=U.call(this)||this;return ae.closed=!1,ae.observers=[],ae.isStopped=!1,ae.hasError=!1,ae.thrownError=null,ae}return(0,y.ZT)(Y,U),Y.prototype.lift=function(ae){var Ee=new x(this,this);return Ee.operator=ae,Ee},Y.prototype._throwIfClosed=function(){if(this.closed)throw new te},Y.prototype.next=function(ae){var Ee=this;(0,K.x)(function(){var De,Pe;if(Ee._throwIfClosed(),!Ee.isStopped){var ve=Ee.observers.slice();try{for(var He=(0,y.XA)(ve),Me=He.next();!Me.done;Me=He.next())Me.value.next(ae)}catch(We){De={error:We}}finally{try{Me&&!Me.done&&(Pe=He.return)&&Pe.call(He)}finally{if(De)throw De.error}}}})},Y.prototype.error=function(ae){var Ee=this;(0,K.x)(function(){if(Ee._throwIfClosed(),!Ee.isStopped){Ee.hasError=Ee.isStopped=!0,Ee.thrownError=ae;for(var De=Ee.observers;De.length;)De.shift().error(ae)}})},Y.prototype.complete=function(){var ae=this;(0,K.x)(function(){if(ae._throwIfClosed(),!ae.isStopped){ae.isStopped=!0;for(var Ee=ae.observers;Ee.length;)Ee.shift().complete()}})},Y.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Y.prototype,"observed",{get:function(){var ae;return(null===(ae=this.observers)||void 0===ae?void 0:ae.length)>0},enumerable:!1,configurable:!0}),Y.prototype._trySubscribe=function(ae){return this._throwIfClosed(),U.prototype._trySubscribe.call(this,ae)},Y.prototype._subscribe=function(ae){return this._throwIfClosed(),this._checkFinalizedStatuses(ae),this._innerSubscribe(ae)},Y.prototype._innerSubscribe=function(ae){var ve=this.observers;return this.hasError||this.isStopped?ce.Lc:(ve.push(ae),new ce.w0(function(){return(0,Q.P)(ve,ae)}))},Y.prototype._checkFinalizedStatuses=function(ae){var ve=this.isStopped;this.hasError?ae.error(this.thrownError):ve&&ae.complete()},Y.prototype.asObservable=function(){var ae=new u.y;return ae.source=this,ae},Y.create=function(ae,Ee){return new x(ae,Ee)},Y}(u.y),x=function(U){function Y(ae,Ee){var De=U.call(this)||this;return De.destination=ae,De.source=Ee,De}return(0,y.ZT)(Y,U),Y.prototype.next=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.next)||void 0===De||De.call(Ee,ae)},Y.prototype.error=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.error)||void 0===De||De.call(Ee,ae)},Y.prototype.complete=function(){var ae,Ee;null===(Ee=null===(ae=this.destination)||void 0===ae?void 0:ae.complete)||void 0===Ee||Ee.call(ae)},Y.prototype._subscribe=function(ae){var Ee,De;return null!==(De=null===(Ee=this.source)||void 0===Ee?void 0:Ee.subscribe(ae))&&void 0!==De?De:ce.Lc},Y}(P)},4111:(Ye,me,O)=>{"use strict";O.d(me,{Hp:()=>De,Lv:()=>Ee});var y=O(9162),u=O(8853),ce=O(8839),re=O(6806),te=O(8550);function Q(){}var K=U("C",void 0,void 0);function U(Ge,We,Fe){return{kind:Ge,value:We,error:Fe}}var Y=O(9385),ae=O(4112),Ee=function(Ge){function We(Fe){var he=Ge.call(this)||this;return he.isStopped=!1,Fe?(he.destination=Fe,(0,ce.Nn)(Fe)&&Fe.add(he)):he.destination=Me,he}return(0,y.ZT)(We,Ge),We.create=function(Fe,he,Ke){return new De(Fe,he,Ke)},We.prototype.next=function(Fe){this.isStopped?He(function(Ge){return U("N",Ge,void 0)}(Fe),this):this._next(Fe)},We.prototype.error=function(Fe){this.isStopped?He(function(Ge){return U("E",void 0,Ge)}(Fe),this):(this.isStopped=!0,this._error(Fe))},We.prototype.complete=function(){this.isStopped?He(K,this):(this.isStopped=!0,this._complete())},We.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ge.prototype.unsubscribe.call(this),this.destination=null)},We.prototype._next=function(Fe){this.destination.next(Fe)},We.prototype._error=function(Fe){try{this.destination.error(Fe)}finally{this.unsubscribe()}},We.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},We}(ce.w0),De=function(Ge){function We(Fe,he,Ke){var $e,bt=Ge.call(this)||this;if((0,u.m)(Fe))$e=Fe;else if(Fe){var lt;$e=Fe.next,he=Fe.error,Ke=Fe.complete,bt&&re.v.useDeprecatedNextContext?(lt=Object.create(Fe)).unsubscribe=function(){return bt.unsubscribe()}:lt=Fe,$e=null==$e?void 0:$e.bind(lt),he=null==he?void 0:he.bind(lt),Ke=null==Ke?void 0:Ke.bind(lt)}return bt.destination={next:$e?Pe($e):Q,error:Pe(null!=he?he:ve),complete:Ke?Pe(Ke):Q},bt}return(0,y.ZT)(We,Ge),We}(Ee);function Pe(Ge,We){return function(){for(var Fe=[],he=0;he{"use strict";O.d(me,{Lc:()=>K,w0:()=>Q,Nn:()=>P});var y=O(9162),u=O(8853),re=(0,O(3864).d)(function(U){return function(ae){U(this),this.message=ae?ae.length+" errors occurred during unsubscription:\n"+ae.map(function(Ee,De){return De+1+") "+Ee.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=ae}}),te=O(5850),Q=function(){function U(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._teardowns=null}return U.prototype.unsubscribe=function(){var Y,ae,Ee,De,Pe;if(!this.closed){this.closed=!0;var ve=this._parentage;if(ve)if(this._parentage=null,Array.isArray(ve))try{for(var He=(0,y.XA)(ve),Me=He.next();!Me.done;Me=He.next())Me.value.remove(this)}catch($e){Y={error:$e}}finally{try{Me&&!Me.done&&(ae=He.return)&&ae.call(He)}finally{if(Y)throw Y.error}}else ve.remove(this);var We=this.initialTeardown;if((0,u.m)(We))try{We()}catch($e){Pe=$e instanceof re?$e.errors:[$e]}var Fe=this._teardowns;if(Fe){this._teardowns=null;try{for(var he=(0,y.XA)(Fe),Ke=he.next();!Ke.done;Ke=he.next()){var bt=Ke.value;try{x(bt)}catch($e){Pe=null!=Pe?Pe:[],$e instanceof re?Pe=(0,y.ev)((0,y.ev)([],(0,y.CR)(Pe)),(0,y.CR)($e.errors)):Pe.push($e)}}}catch($e){Ee={error:$e}}finally{try{Ke&&!Ke.done&&(De=he.return)&&De.call(he)}finally{if(Ee)throw Ee.error}}}if(Pe)throw new re(Pe)}},U.prototype.add=function(Y){var ae;if(Y&&Y!==this)if(this.closed)x(Y);else{if(Y instanceof U){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._teardowns=null!==(ae=this._teardowns)&&void 0!==ae?ae:[]).push(Y)}},U.prototype._hasParent=function(Y){var ae=this._parentage;return ae===Y||Array.isArray(ae)&&ae.includes(Y)},U.prototype._addParent=function(Y){var ae=this._parentage;this._parentage=Array.isArray(ae)?(ae.push(Y),ae):ae?[ae,Y]:Y},U.prototype._removeParent=function(Y){var ae=this._parentage;ae===Y?this._parentage=null:Array.isArray(ae)&&(0,te.P)(ae,Y)},U.prototype.remove=function(Y){var ae=this._teardowns;ae&&(0,te.P)(ae,Y),Y instanceof U&&Y._removeParent(this)},U.EMPTY=((Y=new U).closed=!0,Y),U;var Y}(),K=Q.EMPTY;function P(U){return U instanceof Q||U&&"closed"in U&&(0,u.m)(U.remove)&&(0,u.m)(U.add)&&(0,u.m)(U.unsubscribe)}function x(U){(0,u.m)(U)?U():U.unsubscribe()}},6806:(Ye,me,O)=>{"use strict";O.d(me,{v:()=>y});var y={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},6149:(Ye,me,O)=>{"use strict";O.d(me,{E:()=>u});var u=new(O(1776).y)(function(te){return te.complete()})},5929:(Ye,me,O)=>{"use strict";O.d(me,{Dp:()=>$e,OO:()=>H,Xf:()=>lt});var y=O(9162),u=function(ee){return ee&&"number"==typeof ee.length&&"function"!=typeof ee},ce=O(8853);function re(ee){return(0,ce.m)(null==ee?void 0:ee.then)}var te=O(8794),Q=O(1776),K=O(8839),U=O(2504),ae="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Pe(ee,Ie){if(!ee)throw new Error("Iterable cannot be null");return new Q.y(function(be){var Ve=new K.w0;return Ve.add(Ie.schedule(function(){var Xe=ee[Symbol.asyncIterator]();Ve.add(Ie.schedule(function(){var rt=this;Xe.next().then(function(_t){_t.done?be.complete():(be.next(_t.value),rt.schedule())})}))})),Ve})}function ve(ee){return(0,ce.m)(ee[te.L])}function He(ee){return(0,ce.m)(null==ee?void 0:ee[ae])}function Me(ee){return Symbol.asyncIterator&&(0,ce.m)(null==ee?void 0:ee[Symbol.asyncIterator])}function Ge(ee){return new TypeError("You provided "+(null!==ee&&"object"==typeof ee?"an invalid object":"'"+ee+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function We(ee){return(0,y.FC)(this,arguments,function(){var be,Ve,Xe;return(0,y.Jh)(this,function(_t){switch(_t.label){case 0:be=ee.getReader(),_t.label=1;case 1:_t.trys.push([1,,9,10]),_t.label=2;case 2:return[4,(0,y.qq)(be.read())];case 3:return Ve=_t.sent(),Xe=Ve.value,Ve.done?[4,(0,y.qq)(void 0)]:[3,5];case 4:return[2,_t.sent()];case 5:return[4,(0,y.qq)(Xe)];case 6:return[4,_t.sent()];case 7:return _t.sent(),[3,2];case 8:return[3,10];case 9:return be.releaseLock(),[7];case 10:return[2]}})})}function Fe(ee){return(0,ce.m)(null==ee?void 0:ee.getReader)}var bt=O(8550);function $e(ee,Ie){return Ie?function(ee,Ie){if(null!=ee){if(ve(ee))return function(ee,Ie){return new Q.y(function(be){var Ve=new K.w0;return Ve.add(Ie.schedule(function(){var Xe=ee[te.L]();Ve.add(Xe.subscribe({next:function(rt){Ve.add(Ie.schedule(function(){return be.next(rt)}))},error:function(rt){Ve.add(Ie.schedule(function(){return be.error(rt)}))},complete:function(){Ve.add(Ie.schedule(function(){return be.complete()}))}}))})),Ve})}(ee,Ie);if(u(ee))return(0,U.r)(ee,Ie);if(re(ee))return function(ee,Ie){return new Q.y(function(be){return Ie.schedule(function(){return ee.then(function(Ve){be.add(Ie.schedule(function(){be.next(Ve),be.add(Ie.schedule(function(){return be.complete()}))}))},function(Ve){be.add(Ie.schedule(function(){return be.error(Ve)}))})})})}(ee,Ie);if(Me(ee))return Pe(ee,Ie);if(He(ee))return function(ee,Ie){return new Q.y(function(be){var Ve;return be.add(Ie.schedule(function(){Ve=ee[ae](),function(ee,Ie,be,Ve){void 0===Ve&&(Ve=0);var Xe=Ie.schedule(function(){try{be.call(this)}catch(rt){ee.error(rt)}},Ve);ee.add(Xe)}(be,Ie,function(){var Xe=Ve.next(),rt=Xe.value;Xe.done?be.complete():(be.next(rt),this.schedule())})})),function(){return(0,ce.m)(null==Ve?void 0:Ve.return)&&Ve.return()}})}(ee,Ie);if(Fe(ee))return function(ee,Ie){return Pe(We(ee),Ie)}(ee,Ie)}throw Ge(ee)}(ee,Ie):lt(ee)}function lt(ee){if(ee instanceof Q.y)return ee;if(null!=ee){if(ve(ee))return function(ee){return new Q.y(function(Ie){var be=ee[te.L]();if((0,ce.m)(be.subscribe))return be.subscribe(Ie);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ee);if(u(ee))return H(ee);if(re(ee))return function(ee){return new Q.y(function(Ie){ee.then(function(be){Ie.closed||(Ie.next(be),Ie.complete())},function(be){return Ie.error(be)}).then(null,bt.h)})}(ee);if(Me(ee))return Ae(ee);if(He(ee))return function(ee){return new Q.y(function(Ie){var be,Ve;try{for(var Xe=(0,y.XA)(ee),rt=Xe.next();!rt.done;rt=Xe.next())if(Ie.next(rt.value),Ie.closed)return}catch(jt){be={error:jt}}finally{try{rt&&!rt.done&&(Ve=Xe.return)&&Ve.call(Xe)}finally{if(be)throw be.error}}Ie.complete()})}(ee);if(Fe(ee))return function(ee){return Ae(We(ee))}(ee)}throw Ge(ee)}function H(ee){return new Q.y(function(Ie){for(var be=0;be{"use strict";O.d(me,{h:()=>ce});var y=O(2504),u=O(5929);function ce(re,te){return te?(0,y.r)(re,te):(0,u.OO)(re)}},1964:(Ye,me,O)=>{"use strict";O.d(me,{of:()=>re});var y=O(5994),u=O(2504),ce=O(9528);function re(){for(var te=[],Q=0;Q{"use strict";O.d(me,{_:()=>ce});var y=O(1776),u=O(8853);function ce(re,te){var Q=(0,u.m)(re)?re:function(){return re},K=function(P){return P.error(Q())};return new y.y(te?function(P){return te.schedule(K,0,P)}:K)}},5076:(Ye,me,O)=>{"use strict";O.d(me,{Q:()=>ce});var y=O(9162),ce=function(re){function te(Q,K,P,x,U){var Y=re.call(this,Q)||this;return Y.onFinalize=U,Y._next=K?function(ae){try{K(ae)}catch(Ee){Q.error(Ee)}}:re.prototype._next,Y._error=x?function(ae){try{x(ae)}catch(Ee){Q.error(Ee)}finally{this.unsubscribe()}}:re.prototype._error,Y._complete=P?function(){try{P()}catch(ae){Q.error(ae)}finally{this.unsubscribe()}}:re.prototype._complete,Y}return(0,y.ZT)(te,re),te.prototype.unsubscribe=function(){var Q,K=this.closed;re.prototype.unsubscribe.call(this),!K&&(null===(Q=this.onFinalize)||void 0===Q||Q.call(this))},te}(O(4111).Lv)},5894:(Ye,me,O)=>{"use strict";O.d(me,{K:()=>re});var y=O(5929),u=O(5076),ce=O(4297);function re(te){return(0,ce.e)(function(Q,K){var U,P=null,x=!1;P=Q.subscribe(new u.Q(K,void 0,void 0,function(Y){U=(0,y.Xf)(te(Y,re(te)(Q))),P?(P.unsubscribe(),P=null,U.subscribe(K)):x=!0})),x&&(P.unsubscribe(),P=null,U.subscribe(K))})}},3766:(Ye,me,O)=>{"use strict";O.d(me,{b:()=>ce});var y=O(7216),u=O(8853);function ce(re,te){return(0,u.m)(te)?(0,y.z)(re,te,1):(0,y.z)(re,1)}},4689:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(Q,K){var P=0;Q.subscribe(new u.Q(K,function(x){return re.call(te,x,P++)&&K.next(x)}))})}},5207:(Ye,me,O)=>{"use strict";O.d(me,{U:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(Q,K){var P=0;Q.subscribe(new u.Q(K,function(x){K.next(re.call(te,x,P++))}))})}},23:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>ce});var y=O(7216),u=O(2738);function ce(re){return void 0===re&&(re=1/0),(0,y.z)(u.y,re)}},7216:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>K});var y=O(5207),u=O(5929),ce=O(4297),re=O(5076),Q=O(8853);function K(P,x,U){return void 0===U&&(U=1/0),(0,Q.m)(x)?K(function(Y,ae){return(0,y.U)(function(Ee,De){return x(Y,Ee,ae,De)})((0,u.Xf)(P(Y,ae)))},U):("number"==typeof x&&(U=x),(0,ce.e)(function(Y,ae){return function(P,x,U,Y,ae,Ee,De,Pe){var ve=[],He=0,Me=0,Ge=!1,We=function(){Ge&&!ve.length&&!He&&x.complete()},Fe=function(Ke){return He{"use strict";O.d(me,{q:()=>re});var y=O(6149),u=O(4297),ce=O(5076);function re(te){return te<=0?function(){return y.E}:(0,u.e)(function(Q,K){var P=0;Q.subscribe(new ce.Q(K,function(x){++P<=te&&(K.next(x),te<=P&&K.complete())}))})}},2504:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>u});var y=O(1776);function u(ce,re){return new y.y(function(te){var Q=0;return re.schedule(function(){Q===ce.length?te.complete():(te.next(ce[Q++]),te.closed||this.schedule())})})}},9385:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>u});var y=O(9162),u={setTimeout:function(){for(var ce=[],re=0;re{"use strict";O.d(me,{L:()=>y});var y="function"==typeof Symbol&&Symbol.observable||"@@observable"},9528:(Ye,me,O)=>{"use strict";O.d(me,{_6:()=>Q,jO:()=>re,yG:()=>te});var y=O(8853);function ce(K){return K[K.length-1]}function re(K){return(0,y.m)(ce(K))?K.pop():void 0}function te(K){return function(K){return K&&(0,y.m)(K.schedule)}(ce(K))?K.pop():void 0}function Q(K,P){return"number"==typeof ce(K)?K.pop():P}},1260:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=Array.isArray,u=Object.getPrototypeOf,ce=Object.prototype,re=Object.keys;function te(K){if(1===K.length){var P=K[0];if(y(P))return{args:P,keys:null};if(function(K){return K&&"object"==typeof K&&u(K)===ce}(P)){var x=re(P);return{args:x.map(function(U){return P[U]}),keys:x}}}return{args:K,keys:null}}},5850:(Ye,me,O)=>{"use strict";function y(u,ce){if(u){var re=u.indexOf(ce);0<=re&&u.splice(re,1)}}O.d(me,{P:()=>y})},3864:(Ye,me,O)=>{"use strict";function y(u){var re=u(function(te){Error.call(te),te.stack=(new Error).stack});return re.prototype=Object.create(Error.prototype),re.prototype.constructor=re,re}O.d(me,{d:()=>y})},5526:(Ye,me,O)=>{"use strict";function y(u,ce){return u.reduce(function(re,te,Q){return re[te]=ce[Q],re},{})}O.d(me,{n:()=>y})},4112:(Ye,me,O)=>{"use strict";O.d(me,{x:()=>ce,O:()=>re});var y=O(6806),u=null;function ce(te){if(y.v.useDeprecatedSynchronousErrorHandling){var Q=!u;if(Q&&(u={errorThrown:!1,error:null}),te(),Q){var K=u;if(u=null,K.errorThrown)throw K.error}}else te()}function re(te){y.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=te)}},2738:(Ye,me,O)=>{"use strict";function y(u){return u}O.d(me,{y:()=>y})},8853:(Ye,me,O)=>{"use strict";function y(u){return"function"==typeof u}O.d(me,{m:()=>y})},4297:(Ye,me,O)=>{"use strict";O.d(me,{A:()=>u,e:()=>ce});var y=O(8853);function u(re){return(0,y.m)(null==re?void 0:re.lift)}function ce(re){return function(te){if(u(te))return te.lift(function(Q){try{return re(Q,this)}catch(K){this.error(K)}});throw new TypeError("Unable to lift unknown Observable type")}}},9607:(Ye,me,O)=>{"use strict";O.d(me,{Z:()=>te});var y=O(9162),u=O(5207),ce=Array.isArray;function te(Q){return(0,u.U)(function(K){return function(Q,K){return ce(K)?Q.apply(void 0,(0,y.ev)([],(0,y.CR)(K))):Q(K)}(Q,K)})}},8550:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(6806),u=O(9385);function ce(re){u.z.setTimeout(function(){var te=y.v.onUnhandledError;if(!te)throw re;te(re)})}},8253:(Ye,me,O)=>{"use strict";O.d(me,{a:()=>re});var y=O(476),u=O(9502),ce=O(7556);let re=(()=>{class te{constructor(K,P){this.router=K,this.authSvc=P}canActivate(K,P){return this.checkLogin(P.url)}canActivateChild(K,P){return this.canActivate(K,P)}canLoad(K){return this.checkLogin(`/${K.path}`)}checkLogin(K){return!(this.authSvc.isSecureMode&&!this.authSvc.isLoggedIn)||this.router.parseUrl("/login")}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.F0),y.LFG(ce.e))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},7822:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>ce});var y=O(476);let ce=(()=>{class re{constructor(){this.messages=[]}success(Q="operation",K){this.messages.push({class:"alert alert-success shadow rounded alert-dismissible fade show",content:`${Q} success! ${K||""}`})}errors(Q){this.messages.push({class:"alert alert-danger shadow rounded alert-dismissible fade show",content:Q})}clear(){this.messages.shift()}}return re.\u0275fac=function(Q){return new(Q||re)},re.\u0275prov=y.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})()},7556:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>re});var y=O(476),u=O(1841),ce=O(4889);let re=(()=>{class te{constructor(K,P){this.http=K,this.errorSvc=P,this.accessToken=null,this.isLoggedIn=!1,this.redirectUrl=null,this.isSecureMode=!1}login(){return this.tokenValidate()}tokenValidate(){return this.http.get("/core-metadata/api/v3/ping")}setAccessToken(K){this.accessToken=K,window.sessionStorage.setItem("EdgeX_Access_Token",this.accessToken)}getAccessToken(){if(this.accessToken)return this.accessToken;let K=window.sessionStorage.getItem("EdgeX_Access_Token");return K&&(this.accessToken=K),this.accessToken}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.eN),y.LFG(ce.T))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2468:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(5894),u=O(476),ce=O(1841),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-data",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.endpointHealthUrl=`${this.urlPrefix}/ping`,this.eventCountUrl=`${this.urlPrefix}/event/count`,this.readingCountUrl=`${this.urlPrefix}/reading/count`,this.allEventsUrl=`${this.urlPrefix}/event/all`,this.allReadingsUrl=`${this.urlPrefix}/reading/all`,this.associatedEventsByDeviceNameUrl=`${this.urlPrefix}/event/device/name/`,this.associatedReadinsByDeviceNameUrl=`${this.urlPrefix}/reading/device/name/`}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}endpointHealth(){return this.http.get(`${this.endpointHealthUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}eventCount(){return this.http.get(`${this.eventCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}readingCount(){return this.http.get(`${this.readingCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}allEventsPagination(P,x){return this.http.get(`${this.allEventsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allReadingsPagination(P,x){return this.http.get(`${this.allReadingsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedReadingsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedEventsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedEventsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedReadinsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}}return Q.\u0275fac=function(P){return new(P||Q)(u.LFG(ce.eN),u.LFG(re.T))},Q.\u0275prov=u.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},4889:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>re});var y=O(8567),u=O(476),ce=O(7822);let re=(()=>{class te{constructor(K){this.msgSvc=K}handleErrorForAPI(K){let P=Object.prototype.toString.call(K);if("[object Array]"===P){if(!K[0].statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K[0].statusCode}, message: ${K[0].message}`),!0}else if("[object Object]"===P&&!K.statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K.statusCode}, message: ${K.message}`),!0;return!1}handleError(K){return K.error instanceof ErrorEvent?this.msgSvc.errors(`'An error occurred:', ${K.error.message}`):"[object Object]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.error.statusCode} , message: ${K.error.message}`):"[object String]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.status} , message: ${K.error}`):this.msgSvc.errors(`code: ${K.status} , message: ${K.message}`),(0,y._)(`Backend returned code ${K.status}, body was: ${K.error.message}`)}}return te.\u0275fac=function(K){return new(K||te)(u.LFG(ce.e))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2437:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-metadata",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.devicesListUrl=`${this.urlPrefix}/device/all`,this.addOneDeviceUrl=`${this.urlPrefix}/device`,this.updateOneDeviceUrl=`${this.urlPrefix}/device`,this.deleteOneDeviceByIdUrl=`${this.urlPrefix}/device/Id`,this.deleteOneDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByIdUrl=`${this.urlPrefix}/device/id`,this.findDevicesByServiceIdUrl=`${this.urlPrefix}/device/service/id`,this.findDevicesByServiceNameUrl=`${this.urlPrefix}/device/service/name`,this.findDevicesByProfileIdUrl=`${this.urlPrefix}/device/profile/id`,this.findDevicesByProfileNameUrl=`${this.urlPrefix}/device/profile/name`,this.deviceServicesListUrl=`${this.urlPrefix}/deviceservice/all`,this.updateDeviceServiceUrl=`${this.urlPrefix}/deviceservice`,this.findDeviceServiceByIdUrl=`${this.urlPrefix}/deviceservice/id`,this.findDeviceServiceByNameUrl=`${this.urlPrefix}/deviceservice/name`,this.deviceProfilesListUrl=`${this.urlPrefix}/deviceprofile/all`,this.findProfilesByIdUrl=`${this.urlPrefix}/deviceprofile`,this.findProfilesByNameUrl=`${this.urlPrefix}/deviceprofile/name`,this.updateDeviceProfileUrl=`${this.urlPrefix}/deviceprofile`,this.uploadProfileYamlFileUrl=`${this.urlPrefix}/deviceprofile/uploadfile`,this.uploadProfileYamlContentUrl=`${this.urlPrefix}/deviceprofile/upload`,this.deviceProfileYamlUrl=`${this.urlPrefix}/deviceprofile/yaml`,this.deleteProfileByIdUrl=`${this.urlPrefix}/deviceprofile/id`,this.deleteProfileByNamedUrl=`${this.urlPrefix}/deviceprofile/name`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevices(){return this.http.get(`${this.devicesListUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevicesPagination(P,x){return this.http.get(`${this.devicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addDevice(P){let x=`${this.addOneDeviceUrl}`;return P.apiVersion="v3",this.http.post(x,JSON.stringify([{apiVersion:"v3",device:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneDeviceByName(P){return this.http.delete(`${this.deleteOneDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneDeviceById(P){return this.http.delete(`${this.deleteOneDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDevice(P){return this.http.patch(`${this.updateOneDeviceUrl}`,JSON.stringify([{apiVersion:"v3",device:P}]),{headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDeviceByName(P){return this.http.get(`${this.findDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDeviceById(P){return this.http.get(`${this.findDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceId(P){return this.http.get(`${this.findDevicesByServiceIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceName(P,x,U){return this.http.get(`${this.findDevicesByServiceNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findDevicesByProfileId(P){return this.http.get(`${this.findDevicesByProfileIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByProfileName(P,x,U){return this.http.get(`${this.findDevicesByProfileNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}allDeviceServices(){return this.http.get(`${this.deviceServicesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllDeviceServicesPagination(P,x){return this.http.get(`${this.deviceServicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateDeviceService(P){return this.http.patch(`${this.updateDeviceServiceUrl}`,JSON.stringify([{apiVersion:"v3",service:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDevcieServiceById(P){return this.http.get(`${this.findDeviceServiceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevcieServiceByName(P){return this.http.get(`${this.findDeviceServiceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allDeviceProfoles(){return this.http.get(`${this.deviceProfilesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDeviceProfolesPagination(P,x){return this.http.get(`${this.deviceProfilesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addProfileYamlByNameViaUIBackend(P){return this.http.request("POST","/api/v3/profile/yaml",{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileById(P){return this.http.get(`${this.findProfilesByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileByName(P){return this.http.get(`${this.findProfilesByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlByNameViaUIBackend(P){return this.http.request("GET","/api/v3/profile/yaml/name/"+P,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlFile(P){return this.http.request("POST",`${this.uploadProfileYamlFileUrl}`,{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDeviceProfile(P){return this.http.put(`${this.updateDeviceProfileUrl}`,P,this.httpPostOrPutJSONOptions).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateProfileYamlContentViaUIBackend(P){return this.http.put("/api/v3/profile/yaml",P,{headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlContent(P){return this.http.request("POST",`${this.uploadProfileYamlContentUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlById(P){return this.http.request("GET",`${this.deviceProfileYamlUrl}/${P}`,{responseType:"text"})}deleteProfileById(P){return this.http.delete(`${this.deleteProfileByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteProfileByName(P){return this.http.delete(`${this.deleteProfileByNamedUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},9744:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-notifications",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.findNotificationByCategoryUrl=`${this.urlPrefix}/notification/category/`,this.findNotificationByLabelUrl=`${this.urlPrefix}/notification/label/`,this.findNotificationByStatusUrl=`${this.urlPrefix}/notification/status/`,this.findNotificationByStartEndUrl=`${this.urlPrefix}/notification/start/`,this.deleteNotificationByIdUrl=`${this.urlPrefix}/notification/id/`,this.deleteNotificationByAgeAndStatusUrl=`${this.urlPrefix}/notification/age/`,this.cleanupNotificationByAgeUrl=`${this.urlPrefix}/cleanup/age/`,this.cleanupNotificationAllUrl=`${this.urlPrefix}/cleanup`,this.findAllSubscriptionsPaginationUrl=`${this.urlPrefix}/subscription/all`,this.findAllSubscriptionsByCategoryPaginationUrl=`${this.urlPrefix}/subscription/category/`,this.findAllSubscriptionsByLabelPaginationUrl=`${this.urlPrefix}/subscription/label/`,this.findAllSubscriptionsByReceiverPaginationUrl=`${this.urlPrefix}/subscription/receiver/`,this.findOneSubscriptionsByNameUrl=`${this.urlPrefix}/subscription/name/`,this.addOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.updateOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.deleteOneSubscriptionByNameUrl=`${this.urlPrefix}/subscription/name/`,this.httpPostOrPutOrPatchJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findNotificationsByCategoryPagination(P,x,U){return this.http.get(`${this.findNotificationByCategoryUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByLabelPagination(P,x,U){return this.http.get(`${this.findNotificationByLabelUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStatusPagination(P,x,U){return this.http.get(`${this.findNotificationByStatusUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStartEndPagination(P,x,U,Y){return this.http.get(`${this.findNotificationByStartEndUrl}${U}/end/${Y}?offset=${P}&limit=${x}`).pipe((0,u.K)(Ee=>this.errorSvc.handleError(Ee)))}deleteNotificationByAgeAndStatus(P){return this.http.delete(`${this.deleteNotificationByAgeAndStatusUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteNotificationById(P){return this.http.delete(`${this.deleteNotificationByIdUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationByAge(P){return this.http.delete(`${this.cleanupNotificationByAgeUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationAll(){return this.http.delete(`${this.cleanupNotificationAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllSubscriptionPagination(P,x){return this.http.get(`${this.findAllSubscriptionsPaginationUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findOneSubscriptionByName(P){return this.http.get(`${this.findOneSubscriptionsByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}addOneSubscription(P){return this.http.post(`${this.addOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateOneSubscription(P){return this.http.patch(`${this.updateOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneSubscriptionByName(P){return this.http.delete(`${this.deleteOneSubscriptionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},3692:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.version="/api/v3",this.pingUrl=`${this.version}/registrycenter/ping`,this.appSvcDeployConfigUrl=`${this.version}/registrycenter/deploy`,this.appSvcGetConfigUrl=`${this.version}/registrycenter/config`,this.appSvcAllUrl=`${this.version}/registrycenter/service/all`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}getAppSvcConfigBySvcKey(P){return this.http.get(`${this.appSvcGetConfigUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deployToConsul(P,x){return this.http.post(`${this.appSvcDeployConfigUrl}/${x}`,JSON.stringify(P),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllAppSvc(){return this.http.get(`${this.appSvcAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},4791:(Ye,me,O)=>{"use strict";O.d(me,{n:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/rules-engine",this.version="",this.pingUrl=`${this.endpoint}${this.version}/ping`,this.streamUrl=`${this.endpoint}${this.version}/streams`,this.ruleUrl=`${this.endpoint}${this.version}/rules`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}addStream(P){return this.http.request("POST",`${this.streamUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneStreamById(P){return this.http.delete(`${this.streamUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateStream(P,x){return this.http.request("PUT",`${this.streamUrl}/${x}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findStreamByName(P){return this.http.get(`${this.streamUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allStreams(){return this.http.get(`${this.streamUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}addRule(P){return this.http.request("POST",`${this.ruleUrl}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneRuleById(P){return this.http.delete(`${this.ruleUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateRule(P){return this.http.request("PUT",`${this.ruleUrl}/${P.id}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findRuleById(P){return this.http.get(`${this.ruleUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allRules(){return this.http.get(`${this.ruleUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}getRuleStatusMetricsById(P){return this.http.get(`${this.ruleUrl}/${P}/status`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}getRuleTopoById(P){return this.http.get(`${this.ruleUrl}/${P}/topo`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}executeRuleCommand(P,x){return this.http.post(`${this.ruleUrl}/${P}/${x}`,null,{responseType:"text"}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},8391:(Ye,me,O)=>{"use strict";O.d(me,{G:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-scheduler",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.intervalListUrl=`${this.urlPrefix}/interval/all`,this.addOneIntervalUrl=`${this.urlPrefix}/interval`,this.updateOneIntervalUrl=`${this.urlPrefix}/interval`,this.findOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.deleteOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.intervalActionListUrl=`${this.urlPrefix}/intervalaction/all`,this.addOneIntervalActionUrl=`${this.urlPrefix}/intervalaction`,this.updateOneIntervaActionlUrl=`${this.urlPrefix}/intervalaction`,this.findOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.deleteOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllIntervalsPagination(P,x){return this.http.get(`${this.intervalListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addInterval(P){return this.http.post(`${this.addOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateInterval(P){return this.http.patch(`${this.updateOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalByName(P){return this.http.get(`${this.findOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalByName(P){return this.http.delete(`${this.deleteOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findAllIntervalActionsPagination(P,x){return this.http.get(`${this.intervalActionListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addIntervalAction(P){return this.http.post(`${this.addOneIntervalActionUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateIntervalAction(P){return this.http.patch(`${this.updateOneIntervaActionlUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalActionByName(P){return this.http.get(`${this.findOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalActionByName(P){return this.http.delete(`${this.deleteOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},9386:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>Q});var y=O(1841),u=O(5894),ce=O(476),re=O(4889),te=O(3692);let Q=(()=>{class K{constructor(x,U,Y){this.http=x,this.errorSvc=U,this.registrySvc=Y,this.endpoint="/sys-mgmt-agent",this.version2="/api/v3",this.urlPrefix=`${this.endpoint}${this.version2}`,this.pingUrl="/ping",this.allRegisteredSvcUrl="/api/v3/registrycenter/service/all",this.configUrl=`${this.urlPrefix}/system/config`,this.metricsUrl=`${this.urlPrefix}/system/metrics`,this.healthUrl=`${this.urlPrefix}/system/health`,this.operationUrl=`${this.urlPrefix}/system/operation`,this.httpPostOrPutOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getRegisteredServiceAll(){return this.registrySvc.getAllAppSvc()}getConfigBySvcName(x){return this.http.get(`${this.configUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getMetricsBySvcName(x){return this.http.get(`${this.metricsUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllSvcHealth(x){return this.http.get(`${this.healthUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}operate(x){return this.http.post(`${this.operationUrl}`,JSON.stringify(x),this.httpPostOrPutOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}startV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"start"}])}stopV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"stop"}])}restartV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"restart"}])}}return K.\u0275fac=function(x){return new(x||K)(ce.LFG(y.eN),ce.LFG(re.T),ce.LFG(te.r))},K.\u0275prov=ce.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},4705:(Ye,me,O)=>{"use strict";var y=O(8583),u=O(476);class ce extends y.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class re extends ce{static makeCurrent(){(0,y.HT)(new re)}onAndCancel(F,A,L){return F.addEventListener(A,L,!1),()=>{F.removeEventListener(A,L,!1)}}dispatchEvent(F,A){F.dispatchEvent(A)}remove(F){F.parentNode&&F.parentNode.removeChild(F)}createElement(F,A){return(A=A||this.getDefaultDocument()).createElement(F)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(F){return F.nodeType===Node.ELEMENT_NODE}isShadowRoot(F){return F instanceof DocumentFragment}getGlobalEventTarget(F,A){return"window"===A?window:"document"===A?F:"body"===A?F.body:null}getBaseHref(F){const A=(te=te||document.querySelector("base"),te?te.getAttribute("href"):null);return null==A?null:function(N){K=K||document.createElement("a"),K.setAttribute("href",N);const F=K.pathname;return"/"===F.charAt(0)?F:`/${F}`}(A)}resetBaseElement(){te=null}getUserAgent(){return window.navigator.userAgent}getCookie(F){return(0,y.Mx)(document.cookie,F)}}let K,te=null;const x=new u.OlP("TRANSITION_ID"),Y=[{provide:u.ip1,useFactory:function(N,F,A){return()=>{A.get(u.CZH).donePromise.then(()=>{const L=(0,y.q)(),ne=F.querySelectorAll(`style[ng-transition="${N}"]`);for(let Oe=0;Oe{const Oe=F.findTestabilityInTree(L,ne);if(null==Oe)throw new Error("Could not find testability for element.");return Oe},u.dqk.getAllAngularTestabilities=()=>F.getAllTestabilities(),u.dqk.getAllAngularRootElements=()=>F.getAllRootElements(),u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(L=>{const ne=u.dqk.getAllAngularTestabilities();let Oe=ne.length,je=!1;const Et=function(Nt){je=je||Nt,Oe--,0==Oe&&L(je)};ne.forEach(function(Nt){Nt.whenStable(Et)})})}findTestabilityInTree(F,A,L){if(null==A)return null;const ne=F.getTestability(A);return null!=ne?ne:L?(0,y.q)().isShadowRoot(A)?this.findTestabilityInTree(F,A.host,!0):this.findTestabilityInTree(F,A.parentElement,!0):null}}let Ee=(()=>{class N{build(){return new XMLHttpRequest}}return N.\u0275fac=function(A){return new(A||N)},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const X=new u.OlP("EventManagerPlugins");let ue=(()=>{class N{constructor(A,L){this._zone=L,this._eventNameToPlugin=new Map,A.forEach(ne=>ne.manager=this),this._plugins=A.slice().reverse()}addEventListener(A,L,ne){return this._findPluginFor(L).addEventListener(A,L,ne)}addGlobalEventListener(A,L,ne){return this._findPluginFor(L).addGlobalEventListener(A,L,ne)}getZone(){return this._zone}_findPluginFor(A){const L=this._eventNameToPlugin.get(A);if(L)return L;const ne=this._plugins;for(let Oe=0;Oe{class N{constructor(){this._stylesSet=new Set}addStyles(A){const L=new Set;A.forEach(ne=>{this._stylesSet.has(ne)||(this._stylesSet.add(ne),L.add(ne))}),this.onStylesAdded(L)}onStylesAdded(A){}getAllStyles(){return Array.from(this._stylesSet)}}return N.\u0275fac=function(A){return new(A||N)},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})(),ze=(()=>{class N extends ie{constructor(A){super(),this._doc=A,this._hostNodes=new Map,this._hostNodes.set(A.head,[])}_addStylesToHost(A,L,ne){A.forEach(Oe=>{const je=this._doc.createElement("style");je.textContent=Oe,ne.push(L.appendChild(je))})}addHost(A){const L=[];this._addStylesToHost(this._stylesSet,A,L),this._hostNodes.set(A,L)}removeHost(A){const L=this._hostNodes.get(A);L&&L.forEach(ee),this._hostNodes.delete(A)}onStylesAdded(A){this._hostNodes.forEach((L,ne)=>{this._addStylesToHost(A,ne,L)})}ngOnDestroy(){this._hostNodes.forEach(A=>A.forEach(ee))}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();function ee(N){(0,y.q)().remove(N)}const Ie={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/"},be=/%COMP%/g;function It(N,F,A){for(let L=0;L{if("__ngUnwrap__"===F)return N;!1===N(F)&&(F.preventDefault(),F.returnValue=!1)}}let gn=(()=>{class N{constructor(A,L,ne){this.eventManager=A,this.sharedStylesHost=L,this.appId=ne,this.rendererByCompId=new Map,this.defaultRenderer=new Tt(A)}createRenderer(A,L){if(!A||!L)return this.defaultRenderer;switch(L.encapsulation){case u.ifc.Emulated:{let ne=this.rendererByCompId.get(L.id);return ne||(ne=new Rn(this.eventManager,this.sharedStylesHost,L,this.appId),this.rendererByCompId.set(L.id,ne)),ne.applyToHost(A),ne}case 1:case u.ifc.ShadowDom:return new xt(this.eventManager,this.sharedStylesHost,A,L);default:if(!this.rendererByCompId.has(L.id)){const ne=It(L.id,L.styles,[]);this.sharedStylesHost.addStyles(ne),this.rendererByCompId.set(L.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(ue),u.LFG(ze),u.LFG(u.AFp))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();class Tt{constructor(F){this.eventManager=F,this.data=Object.create(null)}destroy(){}createElement(F,A){return A?document.createElementNS(Ie[A]||A,F):document.createElement(F)}createComment(F){return document.createComment(F)}createText(F){return document.createTextNode(F)}appendChild(F,A){F.appendChild(A)}insertBefore(F,A,L){F&&F.insertBefore(A,L)}removeChild(F,A){F&&F.removeChild(A)}selectRootElement(F,A){let L="string"==typeof F?document.querySelector(F):F;if(!L)throw new Error(`The selector "${F}" did not match any elements`);return A||(L.textContent=""),L}parentNode(F){return F.parentNode}nextSibling(F){return F.nextSibling}setAttribute(F,A,L,ne){if(ne){A=ne+":"+A;const Oe=Ie[ne];Oe?F.setAttributeNS(Oe,A,L):F.setAttribute(A,L)}else F.setAttribute(A,L)}removeAttribute(F,A,L){if(L){const ne=Ie[L];ne?F.removeAttributeNS(ne,A):F.removeAttribute(`${L}:${A}`)}else F.removeAttribute(A)}addClass(F,A){F.classList.add(A)}removeClass(F,A){F.classList.remove(A)}setStyle(F,A,L,ne){ne&(u.JOm.DashCase|u.JOm.Important)?F.style.setProperty(A,L,ne&u.JOm.Important?"important":""):F.style[A]=L}removeStyle(F,A,L){L&u.JOm.DashCase?F.style.removeProperty(A):F.style[A]=""}setProperty(F,A,L){F[A]=L}setValue(F,A){F.nodeValue=A}listen(F,A,L){return"string"==typeof F?this.eventManager.addGlobalEventListener(F,A,tn(L)):this.eventManager.addEventListener(F,A,tn(L))}}class Rn extends Tt{constructor(F,A,L,ne){super(F),this.component=L;const Oe=It(ne+"-"+L.id,L.styles,[]);A.addStyles(Oe),this.contentAttr="_ngcontent-%COMP%".replace(be,ne+"-"+L.id),this.hostAttr="_nghost-%COMP%".replace(be,ne+"-"+L.id)}applyToHost(F){super.setAttribute(F,this.hostAttr,"")}createElement(F,A){const L=super.createElement(F,A);return super.setAttribute(L,this.contentAttr,""),L}}class xt extends Tt{constructor(F,A,L,ne){super(F),this.sharedStylesHost=A,this.hostEl=L,this.shadowRoot=L.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Oe=It(ne.id,ne.styles,[]);for(let je=0;je{class N extends Ae{constructor(A){super(A)}supports(A){return!0}addEventListener(A,L,ne){return A.addEventListener(L,ne,!1),()=>this.removeEventListener(A,L,ne)}removeEventListener(A,L,ne){return A.removeEventListener(L,ne)}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const Re=["alt","control","meta","shift"],xe={"\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"},Ne={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Qe={alt:N=>N.altKey,control:N=>N.ctrlKey,meta:N=>N.metaKey,shift:N=>N.shiftKey};let ot=(()=>{class N extends Ae{constructor(A){super(A)}supports(A){return null!=N.parseEventName(A)}addEventListener(A,L,ne){const Oe=N.parseEventName(L),je=N.eventCallback(Oe.fullKey,ne,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,y.q)().onAndCancel(A,Oe.domEventName,je))}static parseEventName(A){const L=A.toLowerCase().split("."),ne=L.shift();if(0===L.length||"keydown"!==ne&&"keyup"!==ne)return null;const Oe=N._normalizeKey(L.pop());let je="";if(Re.forEach(Nt=>{const $t=L.indexOf(Nt);$t>-1&&(L.splice($t,1),je+=Nt+".")}),je+=Oe,0!=L.length||0===Oe.length)return null;const Et={};return Et.domEventName=ne,Et.fullKey=je,Et}static getEventFullKey(A){let L="",ne=function(N){let F=N.key;if(null==F){if(F=N.keyIdentifier,null==F)return"Unidentified";F.startsWith("U+")&&(F=String.fromCharCode(parseInt(F.substring(2),16)),3===N.location&&Ne.hasOwnProperty(F)&&(F=Ne[F]))}return xe[F]||F}(A);return ne=ne.toLowerCase()," "===ne?ne="space":"."===ne&&(ne="dot"),Re.forEach(Oe=>{Oe!=ne&&Qe[Oe](A)&&(L+=Oe+".")}),L+=ne,L}static eventCallback(A,L,ne){return Oe=>{N.getEventFullKey(Oe)===A&&ne.runGuarded(()=>L(Oe))}}static _normalizeKey(A){switch(A){case"esc":return"escape";default:return A}}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const br=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:y.bD},{provide:u.g9A,useValue:function(){re.makeCurrent(),ae.init()},multi:!0},{provide:y.K0,useFactory:function(){return(0,u.RDi)(document),document},deps:[]}]),Gr=[[],{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function(){return new u.qLn},deps:[]},{provide:X,useClass:Hr,multi:!0,deps:[y.K0,u.R0b,u.Lbi]},{provide:X,useClass:ot,multi:!0,deps:[y.K0]},[],{provide:gn,useClass:gn,deps:[ue,ze,u.AFp]},{provide:u.FYo,useExisting:gn},{provide:ie,useExisting:ze},{provide:ze,useClass:ze,deps:[y.K0]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b]},{provide:ue,useClass:ue,deps:[X,u.R0b]},{provide:y.JF,useClass:Ee,deps:[]},[]];let gi=(()=>{class N{constructor(A){if(A)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(A){return{ngModule:N,providers:[{provide:u.AFp,useValue:A.appId},{provide:x,useExisting:u.AFp},Y]}}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(N,12))},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({providers:Gr,imports:[y.ez,u.hGG]}),N})();"undefined"!=typeof window&&window;var tt=O(1841),ht=O(3092),ut=O(9502),Jt=O(8253),Bt=O(5894),kn=O(8567),Ot=O(4889);let wr=(()=>{class N{constructor(A,L){this.http=A,this.errorSvc=L,this.endpoint="",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.secureModeUrl=`${this.urlPrefix}/auth/securemode`}getSecureMode(){return this.http.get(`${this.secureModeUrl}`,{responseType:"text"}).pipe((0,Bt.K)(L=>this.errorSvc.handleError(L)))}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(tt.eN),u.LFG(Ot.T))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();var Vn=O(7556);let Ze=(()=>{class N{constructor(A,L,ne,Oe,je){this.initSvc=A,this.errorSvc=L,this.authSvc=ne,this.router=Oe,this.route=je}ngOnInit(){this.initializor()}initializor(){this.environmentCheck()}environmentCheck(){this.progressMsg="environment checking",this.initSvc.getSecureMode().subscribe(A=>{"secure"===A?(this.authSvc.isSecureMode=!0,this.tokenValidate()):(this.authSvc.isSecureMode=!1,this.navigateToHome())})}tokenValidate(){this.progressMsg="access token validating",this.authSvc.tokenValidate().pipe((0,Bt.K)(A=>(this.authSvc.isLoggedIn=!1,this.router.navigate(["/login"],{relativeTo:this.route}),(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.navigateToHome()})}navigateToHome(){this.router.navigate(["/dashboard"],{relativeTo:this.route})}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(wr),u.Y36(Ot.T),u.Y36(Vn.e),u.Y36(ut.F0),u.Y36(ut.gz))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-initializer"]],decls:16,vars:1,consts:[[1,"init","text-center","bg-dark"],[1,"init-progress"],["role","status",1,"spinner-grow","text-success"],[1,"sr-only"],["role","status",1,"spinner-grow","text-danger"],["role","status",1,"spinner-grow","text-warning"],["role","status",1,"spinner-grow","text-info"],[1,"text-light"]],template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span",3),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"span",3),u._uU(7,"Loading..."),u.qZA(),u.qZA(),u.TgZ(8,"div",5),u.TgZ(9,"span",3),u._uU(10,"Loading..."),u.qZA(),u.qZA(),u.TgZ(11,"div",6),u.TgZ(12,"span",3),u._uU(13,"Loading..."),u.qZA(),u.qZA(),u.TgZ(14,"p",7),u._uU(15),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(15),u.hij("",L.progressMsg,"..."))},styles:[".init[_ngcontent-%COMP%]{position:fixed;top:0;bottom:-100px;left:0;right:0;z-index:999}.init-progress[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:45%}"]}),N})();var fr=O(1964),Zn=O(2468),_n=O(2437),hn=O(9744),Ht=O(8391),Un=O(4791),Bn=O(9386),Gt=O(3692);function Mt(N,F){if(1&N&&(u.TgZ(0,"p",6),u._UZ(1,"span",7),u._uU(2),u.qZA()),2&N){const A=u.oxw();u.xp6(2),u.hij(" The ",A.svcName," service is inaccessible!!! please try again later! ")}}const Ar=[{path:"dashboard",canLoad:[Jt.a],loadChildren:()=>O.e(849).then(O.bind(O,8849)).then(N=>N.DashboardModule)},{path:"metadata",canLoad:[Jt.a],loadChildren:()=>O.e(10).then(O.bind(O,4010)).then(N=>N.MetadataModule)},{path:"core-data",canLoad:[Jt.a],loadChildren:()=>O.e(489).then(O.bind(O,3489)).then(N=>N.CoreDataModule)},{path:"notifications",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(827),O.e(634)]).then(O.bind(O,2634)).then(N=>N.NotificationsModule)},{path:"scheduler",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(827),O.e(707),O.e(536)]).then(O.bind(O,5886)).then(N=>N.SchedulerModule)},{path:"rule-engine",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(10),O.e(753),O.e(707),O.e(155)]).then(O.bind(O,4155)).then(N=>N.RuleEngineModule)},{path:"app-service",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(10),O.e(753),O.e(894)]).then(O.bind(O,894)).then(N=>N.AppServiceModule)},{path:"initializer",component:Ze},{path:"svc-unavailable",component:(()=>{class N{constructor(A,L,ne,Oe,je,Et,Nt,$t,Tr){this.router=A,this.route=L,this.coredataSvc=ne,this.metadataSvc=Oe,this.notiSvc=je,this.schedulerSvc=Et,this.ruleSvc=Nt,this.systemSvc=$t,this.registrySvc=Tr,this.refresgMsg=!1,this.refreshBtnDisable=!1}ngOnInit(){this.route.queryParams.subscribe(A=>{this.svcName=A.svcName,this.routerPath=A.routerPath})}refresh(){this.refreshBtnDisable=!0,this.ping().pipe((0,Bt.K)(A=>(this.refresgMsg=!0,window.setTimeout(()=>{this.refresgMsg=!1,this.refreshBtnDisable=!1},3e3),(0,kn._)(()=>"Something bad happened; please try again later.")))).subscribe(()=>this.router.navigate([`${this.routerPath}`]))}ping(){switch(this.svcName){case"core data":return this.coredataSvc.ping();case"metadata":return this.metadataSvc.ping();case"scheduler":return this.schedulerSvc.ping();case"notification":return this.notiSvc.ping();case"rule engine":return this.ruleSvc.ping();case"system agent":return this.systemSvc.ping();case"registry center":return this.registrySvc.ping();default:return(0,fr.of)()}}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(ut.F0),u.Y36(ut.gz),u.Y36(Zn.D),u.Y36(_n.D),u.Y36(hn.T),u.Y36(Ht.G),u.Y36(Un.n),u.Y36(Bn.J),u.Y36(Gt.r))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-service-unavailable"]],decls:11,vars:5,consts:[["class","alert alert-danger","role","alert",4,"ngIf"],[1,"jumbotron"],[1,"display-5"],[1,"lead"],[1,"my-4"],["role","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"]],template:function(A,L){1&A&&(u.YNc(0,Mt,3,1,"p",0),u.TgZ(1,"div",1),u.TgZ(2,"h2",2),u._uU(3),u.qZA(),u.TgZ(4,"p",3),u._uU(5),u.qZA(),u._UZ(6,"hr",4),u.TgZ(7,"p"),u._uU(8,"EdgeXFoundry uses a microservices architecture, each service is running independently, please make sure that the current service is already running, if you have manually started the service, click the Refresh button."),u.qZA(),u.TgZ(9,"button",5),u.NdJ("click",function(){return L.refresh()}),u._uU(10,"Refresh"),u.qZA(),u.qZA()),2&A&&(u.Q6J("ngIf",L.refresgMsg),u.xp6(3),u.hij("Oops!!! ",L.svcName," service is unavailable!"),u.xp6(2),u.AsE("This could be a network reason, or it could be that the ",L.svcName," microservice is not running, make sure there is no network problem or that the ",L.svcName," service is already running!"),u.xp6(4),u.Q6J("disabled",L.refreshBtnDisable))},directives:[y.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),N})()}];let ir=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[ut.Bz.forRoot(Ar,{useHash:!0})],ut.Bz]}),N})();var qn=O(4689),hr=O(7822);function Wt(N,F){if(1&N){const A=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",3),u.TgZ(2,"span",4),u.NdJ("click",function(){const Oe=u.CHM(A).$implicit;return u.oxw(2).close(Oe)}),u.TgZ(3,"span",5),u._uU(4,"\xd7"),u.qZA(),u.qZA(),u.TgZ(5,"div"),u._uU(6),u.qZA(),u.qZA(),u.qZA()}if(2&N){const A=F.$implicit;u.xp6(1),u.Tol(A.class),u.xp6(5),u.hij(" ",A.content," ")}}function $n(N,F){if(1&N&&(u.TgZ(0,"div",1),u.YNc(1,Wt,7,3,"div",2),u.qZA()),2&N){const A=u.oxw();u.xp6(1),u.Q6J("ngForOf",A.messageService.messages)}}let Zt=(()=>{class N{constructor(A){this.messageService=A}ngOnInit(){}close(A){this.messageService.messages.splice(this.messageService.messages.indexOf(A),1)}ngOnDestroy(){this.timer&&clearInterval(this.timer)}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(hr.e))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-message"]],decls:1,vars:1,consts:[["class","position-fixed overflow-hidden text-break","style","top: 10px; right: 0;min-width: 300px; max-width: 300px;z-index: 999;",4,"ngIf"],[1,"position-fixed","overflow-hidden","text-break",2,"top","10px","right","0","min-width","300px","max-width","300px","z-index","999"],[4,"ngFor","ngForOf"],["role","alert"],["type","button","aria-label","Close",1,"btn","btn-lg","close",3,"click"],["aria-hidden","true"]],template:function(A,L){1&A&&u.YNc(0,$n,2,1,"div",0),2&A&&u.Q6J("ngIf",L.messageService.messages.length)},directives:[y.O5,y.sg],styles:[""]}),N})();function Sr(N,F){if(1&N&&(u.TgZ(0,"a",49),u._uU(1),u.qZA()),2&N){const A=u.oxw().$implicit,L=u.oxw();u.s9C("routerLink",L.navChainMap.get(A)),u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function sn(N,F){if(1&N&&(u.TgZ(0,"span",50),u._uU(1),u.qZA()),2&N){const A=u.oxw().$implicit,L=u.oxw();u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function Dn(N,F){1&N&&(u.TgZ(0,"span"),u._uU(1,">"),u.qZA())}function pr(N,F){if(1&N&&(u.TgZ(0,"h6",35),u.YNc(1,Sr,2,2,"a",47),u.YNc(2,sn,2,1,"span",48),u.YNc(3,Dn,2,0,"span",46),u.qZA()),2&N){const A=F.index,L=u.oxw();u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1)}}function Mr(N,F){1&N&&(u.TgZ(0,"div",51),u.TgZ(1,"div"),u._UZ(2,"span",52),u.TgZ(3,"span"),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.qZA())}function jn(N,F){1&N&&u._UZ(0,"router-outlet")}const Pt=function(){return{exact:!1}};let Ir=(()=>{class N{constructor(A,L){this.activatedRoute=A,this.router=L,this.title="EdgeX Console",this.isSelected=!1,this.toggleClass="",this.shrink=!1,this.shrinkSidebarOnly=!1,this.shrinkCenterNo=!1,this.navChainMap=new Map,this.navChainCache=[],this.navChain=[],this.currentNav="",this.loading=!1,this.navRecognized=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.R9)),this.navStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.OD)),this.navEnd=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.m2)),this.childStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.Eb))}ngOnInit(){this.router.events.subscribe(A=>{A instanceof ut.OD&&(this.loading=!0),(A instanceof ut.m2||A instanceof ut.gk||A instanceof ut.Q3)&&(this.loading=!1)}),this.navEnd.subscribe(A=>{this.navChainCache=[],this.navChainMap=new Map,this.currentNav=A.urlAfterRedirects.split("?")[0].split("/").pop(),this.navChain=A.urlAfterRedirects.split("?")[0].split("/"),this.navChain.shift();let L=this;this.navChain.map(Oe=>Oe).reverse().forEach(function(Oe,je){let $t=L.navChain.map(Tr=>Tr).reverse().slice(je).reverse().join("/");L.navChainCache.push("/"+$t),L.navChainMap.set(Oe,"/"+$t)}),this.navChainCache.reverse()}),$(window).resize(()=>{this.shrinkCenterNo=!1,this.shrink=document.body.clientWidth<1340}),this.router.navigate(["/initializer"],{relativeTo:this.activatedRoute})}pathFormat(A){let L=A.split("-");return L.forEach((ne,Oe)=>{L[Oe]=ne.charAt(0).toUpperCase()+ne.substring(1)}),L.join(" ")}sideBarToggle(){this.shrink?(document.body.clientWidth<1340&&(this.shrinkCenterNo=!0),this.shrink=!1):(document.body.clientWidth<1340&&(this.shrinkCenterNo=!1),this.shrink=!0)}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(ut.gz),u.Y36(ut.F0))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-root"]],decls:60,vars:44,consts:function(){let F,A,L,ne,Oe,je,Et,Nt;return F="Dashboard",A="Metadata",L="DataCenter",ne="Scheduler",Oe="Notifications",je="RuleEngine",Et="AppService",Nt="English",[[1,"container-fluid"],[1,"row"],[1,"px-0"],[1,"sidebar-center","font-weight-bold","text-white","vh-100"],[1,"sidebar-header","p-2"],["src","assets/img/bg_x.png","width","35","height","34","alt","","loading","lazy",1,"mt-2"],[1,"float-right","mt-3","mr-2"],["role","button",1,"fa","fa-navicon","fa-lg","text-light",3,"click"],[1,"overflow-hidden"],[1,"nav","flex-column"],["data-testid","menu-item-dashboard","routerLink","/dashboard","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-tachometer","fa-fw","mr-5"],["data-testid","menu-item-dashboard-text"],F,["routerLink","/metadata","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cubes","fa-fw","mr-5"],A,["routerLink","/core-data","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-database","fa-fw","mr-5"],L,["routerLink","/scheduler","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-clock-o","fa-fw","mr-5"],ne,["routerLink","/notifications","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-envelope","fa-fw","mr-5"],Oe,["routerLink","/rule-engine","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-sliders","fa-fw","mr-5"],je,["routerLink","/app-service","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cloud-upload","fa-fw","mr-5"],Et,[1,"col-12"],[1,"bg-light","center-header","px-3","pt-2","font-weight-bold"],[1,"nav-router","mw-100","align-middle"],[1,"d-inline"],[1,"dropdown","float-right"],["id","dropdownLangLink","type","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","btn-sm","dropdown-toggle"],Nt,["aria-labelledby","dropdownLangLink",1,"dropdown-menu","dropdown-menu-sm","dropdown-menu-right"],["href","/",1,"dropdown-item"],["href","/zh",1,"dropdown-item"],[1,"mw-100","align-middle","mt-1"],["class","d-inline",4,"ngFor","ngForOf"],[1,"center-center","p-3"],["class","text-center","style","margin-top: 20%;",4,"ngIf"],[4,"ngIf"],["class","text-decoration-none d-inline",3,"routerLink",4,"ngIf"],["class","text-decoration-none d-inline",4,"ngIf"],[1,"text-decoration-none","d-inline",3,"routerLink"],[1,"text-decoration-none","d-inline"],[1,"text-center",2,"margin-top","20%"],["role","status","aria-hidden","true",1,"spinner-border","mr-2"]]},template:function(A,L){1&A&&(u._UZ(0,"app-message"),u.TgZ(1,"div",0),u.TgZ(2,"div",1),u.TgZ(3,"div",2),u.TgZ(4,"div",3),u.TgZ(5,"div",4),u._UZ(6,"img",5),u.TgZ(7,"p",6),u.TgZ(8,"i",7),u.NdJ("click",function(){return L.sideBarToggle()}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(9,"div",8),u.TgZ(10,"nav",9),u.TgZ(11,"a",10),u._UZ(12,"i",11),u.TgZ(13,"span",12),u.SDv(14,13),u.qZA(),u.qZA(),u.TgZ(15,"a",14),u._UZ(16,"i",15),u.TgZ(17,"span"),u.SDv(18,16),u.qZA(),u.qZA(),u.TgZ(19,"a",17),u._UZ(20,"i",18),u.TgZ(21,"span"),u.SDv(22,19),u.qZA(),u.qZA(),u.TgZ(23,"a",20),u._UZ(24,"i",21),u.TgZ(25,"span"),u.SDv(26,22),u.qZA(),u.qZA(),u.TgZ(27,"a",23),u._UZ(28,"i",24),u.TgZ(29,"span"),u.SDv(30,25),u.qZA(),u.qZA(),u.TgZ(31,"a",26),u._UZ(32,"i",27),u.TgZ(33,"span"),u.SDv(34,28),u.qZA(),u.qZA(),u.TgZ(35,"a",29),u._UZ(36,"i",30),u.TgZ(37,"span"),u.SDv(38,31),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(39,"div",32),u.TgZ(40,"div"),u.TgZ(41,"nav",33),u.TgZ(42,"div",34),u.TgZ(43,"h4",35),u._uU(44),u.qZA(),u.TgZ(45,"div",36),u.TgZ(46,"button",37),u.TgZ(47,"span"),u.SDv(48,38),u.qZA(),u.qZA(),u.TgZ(49,"div",39),u.TgZ(50,"a",40),u._uU(51,"English"),u.qZA(),u.TgZ(52,"a",41),u._uU(53,"\u4e2d\u6587\u7b80\u4f53"),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(54,"div",42),u.TgZ(55,"div",35),u.YNc(56,pr,4,3,"h6",43),u.qZA(),u.qZA(),u.qZA(),u.TgZ(57,"div",44),u.YNc(58,Mr,5,0,"div",45),u.YNc(59,jn,1,0,"router-outlet",46),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(3),u.ekj("sidebar-shrink",L.shrink)("sidebar",!L.shrink),u.xp6(3),u.ekj("d-none",L.shrink),u.xp6(5),u.Q6J("routerLinkActiveOptions",u.DdM(37,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(38,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(39,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(40,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(41,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(42,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(43,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(3),u.ekj("center-shrink",L.shrink)("center-no-shrink",L.shrinkCenterNo)("center",!L.shrink),u.xp6(4),u.Oqu(L.pathFormat(L.currentNav)),u.xp6(12),u.Q6J("ngForOf",L.navChain),u.xp6(2),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[Zt,ut.yS,ut.Od,y.sg,y.O5,ut.lC],styles:[".sidebar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:250px;z-index:10}.sidebar-shrink[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:45px;z-index:10}.sidebar-center[_ngcontent-%COMP%]{background-color:#2d2848e6!important}.sidebar-header[_ngcontent-%COMP%]{background-color:#2d2848!important;height:65px}.active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}.sidebar-center[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#922c48;background-color:#922c4866!important}.center[_ngcontent-%COMP%]{position:absolute;left:250px;right:0}.center-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-no-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-header[_ngcontent-%COMP%]{height:65px}"]}),N})();function Zr(N,F){1&N&&(u.TgZ(0,"button",18),u._UZ(1,"span",19),u.TgZ(2,"span"),u._uU(3,"Loading..."),u.qZA(),u.qZA())}function mi(N,F){if(1&N){const A=u.EpF();u.TgZ(0,"button",20),u.NdJ("click",function(){return u.CHM(A),u.oxw().login()}),u.TgZ(1,"span"),u.SDv(2,21),u.qZA(),u.qZA()}}const yi=[{path:"login",component:(()=>{class N{constructor(A,L,ne,Oe){this.authSvc=A,this.errorSvc=L,this.router=ne,this.route=Oe,this.loading=!1,this.accessToken=null,this.tokenIsValid=!0}ngOnInit(){}login(){this.loading=!0,this.authSvc.setAccessToken(this.accessToken),this.authSvc.login().pipe((0,Bt.K)(A=>(this.loading=!1,this.authSvc.isLoggedIn=!1,this.accessToken=null,this.tokenIsValid=!1,(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.loading=!1,this.tokenIsValid=!0,this.router.navigate(["/dashboard"],{relativeTo:this.route})})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onInput(){this.tokenIsValid=!0}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(Vn.e),u.Y36(Ot.T),u.Y36(ut.F0),u.Y36(ut.gz))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-login"]],decls:22,vars:5,consts:function(){let F,A,L,ne,Oe;return F="Log in to EdgeX with a token",A="Token",L="the token is invalid!",ne="How to get access token?",Oe="Login",[[1,"login","bg-dark"],[1,"card","login-form"],[1,"card-header"],F,[1,"card-body","bg-light","shadow"],[1,""],[1,"form-group"],["for","accessToken",1,"col-form-label"],[1,"mr-1"],A,["type","password","id","accessToken","name","accessToken",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],L,["class","btn btn-success btn-sm w-100","type","button","disabled","",4,"ngIf"],["type","button","class","btn btn-success btn-sm w-100",3,"click",4,"ngIf"],[1,"mt-2"],["href","https://docs.edgexfoundry.org/3.0/security/Ch-Authenticating/#how-to-make-authenticated-edgex-calls","target","_blank",1,"text-decoration-none"],ne,["type","button","disabled","",1,"btn","btn-success","btn-sm","w-100"],["role","status","aria-hidden","true",1,"spinner-grow","spinner-grow-sm"],["type","button",1,"btn","btn-success","btn-sm","w-100",3,"click"],Oe]},template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span"),u.SDv(4,3),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"form",5),u.TgZ(7,"div",6),u.TgZ(8,"label",7),u.TgZ(9,"span",8),u.SDv(10,9),u.qZA(),u.qZA(),u.TgZ(11,"div",5),u.TgZ(12,"input",10),u.NdJ("ngModelChange",function(Oe){return L.accessToken=Oe})("ngModelChange",function(){return L.onInput()}),u.qZA(),u.TgZ(13,"div",11),u.TgZ(14,"small"),u.SDv(15,12),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.YNc(16,Zr,4,0,"button",13),u.YNc(17,mi,3,0,"button",14),u.TgZ(18,"div",15),u.TgZ(19,"a",16),u.TgZ(20,"small"),u.SDv(21,17),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(12),u.ekj("is-invalid",!L.tokenIsValid),u.Q6J("ngModel",L.accessToken),u.xp6(4),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[ht._Y,ht.JL,ht.F,ht.Fj,ht.JJ,ht.On,y.O5],styles:[".login[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;left:0;right:0;z-index:999}.login-form[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:40%;width:350px;margin:auto}"]}),N})()}];let qr=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[ut.Bz.forChild(yi)],ut.Bz]}),N})(),xi=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[y.ez,ht.u5,qr]]}),N})();const _i=[{provide:tt.TP,useClass:(()=>{class N{constructor(A){this.authSvc=A}intercept(A,L){let ne=A.headers.set("X-Requested-With","XMLHttpRequest");if(this.authSvc.isSecureMode){let je=`Bearer ${this.authSvc.getAccessToken()}`;ne=A.headers.set("X-Requested-With","XMLHttpRequest").set("Authorization",je)}const Oe=A.clone({headers:ne});return L.handle(Oe)}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(Vn.e))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),multi:!0}];let Jr=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N,bootstrap:[Ir]}),N.\u0275inj=u.cJS({providers:[_i],imports:[[gi,y.ez,ht.u5,tt.JF,ir,xi]]}),N})();(0,u.G48)(),br().bootstrapModule(Jr).catch(N=>console.error(N))},9162:(Ye,me,O)=>{"use strict";O.d(me,{ZT:()=>u,mG:()=>P,Jh:()=>x,XA:()=>ae,CR:()=>Ee,ev:()=>ve,qq:()=>He,FC:()=>Me,KL:()=>We});var y=function(le,H){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,ue){X.__proto__=ue}||function(X,ue){for(var Ae in ue)Object.prototype.hasOwnProperty.call(ue,Ae)&&(X[Ae]=ue[Ae])})(le,H)};function u(le,H){if("function"!=typeof H&&null!==H)throw new TypeError("Class extends value "+String(H)+" is not a constructor or null");function X(){this.constructor=le}y(le,H),le.prototype=null===H?Object.create(H):(X.prototype=H.prototype,new X)}function P(le,H,X,ue){return new(X||(X=Promise))(function(ie,ze){function ee(Ve){try{be(ue.next(Ve))}catch(Xe){ze(Xe)}}function Ie(Ve){try{be(ue.throw(Ve))}catch(Xe){ze(Xe)}}function be(Ve){Ve.done?ie(Ve.value):function(ie){return ie instanceof X?ie:new X(function(ze){ze(ie)})}(Ve.value).then(ee,Ie)}be((ue=ue.apply(le,H||[])).next())})}function x(le,H){var ue,Ae,ie,ze,X={label:0,sent:function(){if(1&ie[0])throw ie[1];return ie[1]},trys:[],ops:[]};return ze={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(ze[Symbol.iterator]=function(){return this}),ze;function ee(be){return function(Ve){return function(be){if(ue)throw new TypeError("Generator is already executing.");for(;X;)try{if(ue=1,Ae&&(ie=2&be[0]?Ae.return:be[0]?Ae.throw||((ie=Ae.return)&&ie.call(Ae),0):Ae.next)&&!(ie=ie.call(Ae,be[1])).done)return ie;switch(Ae=0,ie&&(be=[2&be[0],ie.value]),be[0]){case 0:case 1:ie=be;break;case 4:return X.label++,{value:be[1],done:!1};case 5:X.label++,Ae=be[1],be=[0];continue;case 7:be=X.ops.pop(),X.trys.pop();continue;default:if(!(ie=(ie=X.trys).length>0&&ie[ie.length-1])&&(6===be[0]||2===be[0])){X=0;continue}if(3===be[0]&&(!ie||be[1]>ie[0]&&be[1]=le.length&&(le=void 0),{value:le&&le[ue++],done:!le}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ee(le,H){var X="function"==typeof Symbol&&le[Symbol.iterator];if(!X)return le;var Ae,ze,ue=X.call(le),ie=[];try{for(;(void 0===H||H-- >0)&&!(Ae=ue.next()).done;)ie.push(Ae.value)}catch(ee){ze={error:ee}}finally{try{Ae&&!Ae.done&&(X=ue.return)&&X.call(ue)}finally{if(ze)throw ze.error}}return ie}function ve(le,H){for(var X=0,ue=H.length,Ae=le.length;X1||ee(rt,_t)})})}function ee(rt,_t){try{!function(rt){rt.value instanceof He?Promise.resolve(rt.value.v).then(be,Ve):Xe(ie[0][2],rt)}(ue[rt](_t))}catch(jt){Xe(ie[0][3],jt)}}function be(rt){ee("next",rt)}function Ve(rt){ee("throw",rt)}function Xe(rt,_t){rt(_t),ie.shift(),ie.length&&ee(ie[0][0],ie[0][1])}}function We(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,H=le[Symbol.asyncIterator];return H?H.call(le):(le=ae(le),X={},ue("next"),ue("throw"),ue("return"),X[Symbol.asyncIterator]=function(){return this},X);function ue(ie){X[ie]=le[ie]&&function(ze){return new Promise(function(ee,Ie){!function(ie,ze,ee,Ie){Promise.resolve(Ie).then(function(be){ie({value:be,done:ee})},ze)}(ee,Ie,(ze=le[ie](ze)).done,ze.value)})}}}}},Ye=>{Ye(Ye.s=4705)}]); \ No newline at end of file +(self.webpackChunkweb=self.webpackChunkweb||[]).push([[179],{8255:Ye=>{function me(O){return Promise.resolve().then(()=>{var y=new Error("Cannot find module '"+O+"'");throw y.code="MODULE_NOT_FOUND",y})}me.keys=()=>[],me.resolve=me,me.id=8255,Ye.exports=me},8583:(Ye,me,O)=>{"use strict";O.d(me,{mr:()=>Ge,ez:()=>ne,K0:()=>K,uU:()=>Tr,Do:()=>Fe,V_:()=>U,Ye:()=>he,S$:()=>He,mk:()=>kn,sg:()=>Vn,O5:()=>Zn,RF:()=>Un,n9:()=>Bn,ED:()=>Gt,b0:()=>We,lw:()=>P,EM:()=>Li,JF:()=>_i,w_:()=>J,bD:()=>Oe,q:()=>ce,Mx:()=>Bt,HT:()=>te});var y=O(476);let u=null;function ce(){return u}function te(v){u||(u=v)}class J{}const K=new y.OlP("DocumentToken");let P=(()=>{class v{historyGo(_){throw new Error("Not implemented")}}return v.\u0275fac=function(_){return new(_||v)},v.\u0275prov=(0,y.Yz7)({factory:x,token:v,providedIn:"platform"}),v})();function x(){return(0,y.LFG)(Y)}const U=new y.OlP("Location Initialized");let Y=(()=>{class v extends P{constructor(_){super(),this._doc=_,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ce().getBaseHref(this._doc)}onPopState(_){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("popstate",_,!1),()=>S.removeEventListener("popstate",_)}onHashChange(_){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("hashchange",_,!1),()=>S.removeEventListener("hashchange",_)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(_){this.location.pathname=_}pushState(_,S,B){ae()?this._history.pushState(_,S,B):this.location.hash=B}replaceState(_,S,B){ae()?this._history.replaceState(_,S,B):this.location.hash=B}forward(){this._history.forward()}back(){this._history.back()}historyGo(_=0){this._history.go(_)}getState(){return this._history.state}}return v.\u0275fac=function(_){return new(_||v)(y.LFG(K))},v.\u0275prov=(0,y.Yz7)({factory:Ee,token:v,providedIn:"platform"}),v})();function ae(){return!!window.history.pushState}function Ee(){return new Y((0,y.LFG)(K))}function De(v,w){if(0==v.length)return w;if(0==w.length)return v;let _=0;return v.endsWith("/")&&_++,w.startsWith("/")&&_++,2==_?v+w.substring(1):1==_?v+w:v+"/"+w}function Pe(v){const w=v.match(/#|\?|$/),_=w&&w.index||v.length;return v.slice(0,_-("/"===v[_-1]?1:0))+v.slice(_)}function _e(v){return v&&"?"!==v[0]?"?"+v:v}let He=(()=>{class v{historyGo(_){throw new Error("Not implemented")}}return v.\u0275fac=function(_){return new(_||v)},v.\u0275prov=(0,y.Yz7)({factory:Me,token:v,providedIn:"root"}),v})();function Me(v){const w=(0,y.LFG)(K).location;return new We((0,y.LFG)(P),w&&w.origin||"")}const Ge=new y.OlP("appBaseHref");let We=(()=>{class v extends He{constructor(_,S){if(super(),this._platformLocation=_,this._removeListenerFns=[],null==S&&(S=this._platformLocation.getBaseHrefFromDOM()),null==S)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=S}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(_){this._removeListenerFns.push(this._platformLocation.onPopState(_),this._platformLocation.onHashChange(_))}getBaseHref(){return this._baseHref}prepareExternalUrl(_){return De(this._baseHref,_)}path(_=!1){const S=this._platformLocation.pathname+_e(this._platformLocation.search),B=this._platformLocation.hash;return B&&_?`${S}${B}`:S}pushState(_,S,B,oe){const pe=this.prepareExternalUrl(B+_e(oe));this._platformLocation.pushState(_,S,pe)}replaceState(_,S,B,oe){const pe=this.prepareExternalUrl(B+_e(oe));this._platformLocation.replaceState(_,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(_=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,_)}}return v.\u0275fac=function(_){return new(_||v)(y.LFG(P),y.LFG(Ge,8))},v.\u0275prov=y.Yz7({token:v,factory:v.\u0275fac}),v})(),Fe=(()=>{class v extends He{constructor(_,S){super(),this._platformLocation=_,this._baseHref="",this._removeListenerFns=[],null!=S&&(this._baseHref=S)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(_){this._removeListenerFns.push(this._platformLocation.onPopState(_),this._platformLocation.onHashChange(_))}getBaseHref(){return this._baseHref}path(_=!1){let S=this._platformLocation.hash;return null==S&&(S="#"),S.length>0?S.substring(1):S}prepareExternalUrl(_){const S=De(this._baseHref,_);return S.length>0?"#"+S:S}pushState(_,S,B,oe){let pe=this.prepareExternalUrl(B+_e(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.pushState(_,S,pe)}replaceState(_,S,B,oe){let pe=this.prepareExternalUrl(B+_e(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.replaceState(_,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(_=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,_)}}return v.\u0275fac=function(_){return new(_||v)(y.LFG(P),y.LFG(Ge,8))},v.\u0275prov=y.Yz7({token:v,factory:v.\u0275fac}),v})(),he=(()=>{class v{constructor(_,S){this._subject=new y.vpe,this._urlChangeListeners=[],this._platformStrategy=_;const B=this._platformStrategy.getBaseHref();this._platformLocation=S,this._baseHref=Pe($e(B)),this._platformStrategy.onPopState(oe=>{this._subject.emit({url:this.path(!0),pop:!0,state:oe.state,type:oe.type})})}path(_=!1){return this.normalize(this._platformStrategy.path(_))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(_,S=""){return this.path()==this.normalize(_+_e(S))}normalize(_){return v.stripTrailingSlash(function(v,w){return v&&w.startsWith(v)?w.substring(v.length):w}(this._baseHref,$e(_)))}prepareExternalUrl(_){return _&&"/"!==_[0]&&(_="/"+_),this._platformStrategy.prepareExternalUrl(_)}go(_,S="",B=null){this._platformStrategy.pushState(B,"",_,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(_+_e(S)),B)}replaceState(_,S="",B=null){this._platformStrategy.replaceState(B,"",_,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(_+_e(S)),B)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(_=0){var S,B;null===(B=(S=this._platformStrategy).historyGo)||void 0===B||B.call(S,_)}onUrlChange(_){this._urlChangeListeners.push(_),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(S=>{this._notifyUrlChangeListeners(S.url,S.state)}))}_notifyUrlChangeListeners(_="",S){this._urlChangeListeners.forEach(B=>B(_,S))}subscribe(_,S,B){return this._subject.subscribe({next:_,error:S,complete:B})}}return v.\u0275fac=function(_){return new(_||v)(y.LFG(He),y.LFG(P))},v.normalizeQueryParams=_e,v.joinWithSlash=De,v.stripTrailingSlash=Pe,v.\u0275prov=(0,y.Yz7)({factory:Ke,token:v,providedIn:"root"}),v})();function Ke(){return new he((0,y.LFG)(He),(0,y.LFG)(P))}function $e(v){return v.replace(/\/index.html$/,"")}var H=(()=>((H=H||{})[H.Zero=0]="Zero",H[H.One=1]="One",H[H.Two=2]="Two",H[H.Few=3]="Few",H[H.Many=4]="Many",H[H.Other=5]="Other",H))(),X=(()=>((X=X||{})[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X))(),ue=(()=>((ue=ue||{})[ue.Narrow=0]="Narrow",ue[ue.Abbreviated=1]="Abbreviated",ue[ue.Wide=2]="Wide",ue[ue.Short=3]="Short",ue))(),Ae=(()=>((Ae=Ae||{})[Ae.Short=0]="Short",Ae[Ae.Medium=1]="Medium",Ae[Ae.Long=2]="Long",Ae[Ae.Full=3]="Full",Ae))(),ie=(()=>((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",ie))();function jt(v,w){return gt((0,y.cg1)(v)[y.wAp.DateFormat],w)}function Kt(v,w){return gt((0,y.cg1)(v)[y.wAp.TimeFormat],w)}function Tt(v,w){return gt((0,y.cg1)(v)[y.wAp.DateTimeFormat],w)}function tn(v,w){const _=(0,y.cg1)(v),S=_[y.wAp.NumberSymbols][w];if(void 0===S){if(w===ie.CurrencyDecimal)return _[y.wAp.NumberSymbols][ie.Decimal];if(w===ie.CurrencyGroup)return _[y.wAp.NumberSymbols][ie.Group]}return S}const Cn=y.kL8;function Nn(v){if(!v[y.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${v[y.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function gt(v,w){for(let _=w;_>-1;_--)if(void 0!==v[_])return v[_];throw new Error("Locale data API: locale data undefined")}function tr(v){const[w,_]=v.split(":");return{hours:+w,minutes:+_}}const W=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ge={},ye=/((?:[^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]*)/;var Ne=(()=>((Ne=Ne||{})[Ne.Short=0]="Short",Ne[Ne.ShortGMT=1]="ShortGMT",Ne[Ne.Long=2]="Long",Ne[Ne.Extended=3]="Extended",Ne))(),se=(()=>((se=se||{})[se.FullYear=0]="FullYear",se[se.Month=1]="Month",se[se.Date=2]="Date",se[se.Hours=3]="Hours",se[se.Minutes=4]="Minutes",se[se.Seconds=5]="Seconds",se[se.FractionalSeconds=6]="FractionalSeconds",se[se.Day=7]="Day",se))(),xe=(()=>((xe=xe||{})[xe.DayPeriods=0]="DayPeriods",xe[xe.Days=1]="Days",xe[xe.Months=2]="Months",xe[xe.Eras=3]="Eras",xe))();function Re(v,w,_,S){let B=function(v){if(Fn(v))return v;if("number"==typeof v&&!isNaN(v))return new Date(v);if("string"==typeof v){if(v=v.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(v)){const[B,oe=1,pe=1]=v.split("-").map(Be=>+Be);return St(B,oe-1,pe)}const _=parseFloat(v);if(!isNaN(v-_))return new Date(_);let S;if(S=v.match(W))return function(v){const w=new Date(0);let _=0,S=0;const B=v[8]?w.setUTCFullYear:w.setFullYear,oe=v[8]?w.setUTCHours:w.setHours;v[9]&&(_=Number(v[9]+v[10]),S=Number(v[9]+v[11])),B.call(w,Number(v[1]),Number(v[2])-1,Number(v[3]));const pe=Number(v[4]||0)-_,Be=Number(v[5]||0)-S,Dt=Number(v[6]||0),E=Math.floor(1e3*parseFloat("0."+(v[7]||0)));return oe.call(w,pe,Be,Dt,E),w}(S)}const w=new Date(v);if(!Fn(w))throw new Error(`Unable to convert "${v}" into a date`);return w}(v);w=Lt(_,w)||w;let Be,pe=[];for(;w;){if(Be=ye.exec(w),!Be){pe.push(w);break}{pe=pe.concat(Be.slice(1));const m=pe.pop();if(!m)break;w=m}}let Dt=B.getTimezoneOffset();S&&(Dt=br(S,Dt),B=function(v,w,_){const B=v.getTimezoneOffset();return function(v,w){return(v=new Date(v.getTime())).setMinutes(v.getMinutes()+w),v}(v,-1*(br(w,B)-B))}(B,S));let E="";return pe.forEach(m=>{const h=function(v){if(mt[v])return mt[v];let w;switch(v){case"G":case"GG":case"GGG":w=Le(xe.Eras,ue.Abbreviated);break;case"GGGG":w=Le(xe.Eras,ue.Wide);break;case"GGGGG":w=Le(xe.Eras,ue.Narrow);break;case"y":w=ot(se.FullYear,1,0,!1,!0);break;case"yy":w=ot(se.FullYear,2,0,!0,!0);break;case"yyy":w=ot(se.FullYear,3,0,!1,!0);break;case"yyyy":w=ot(se.FullYear,4,0,!1,!0);break;case"Y":w=xn(1);break;case"YY":w=xn(2,!0);break;case"YYY":w=xn(3);break;case"YYYY":w=xn(4);break;case"M":case"L":w=ot(se.Month,1,1);break;case"MM":case"LL":w=ot(se.Month,2,1);break;case"MMM":w=Le(xe.Months,ue.Abbreviated);break;case"MMMM":w=Le(xe.Months,ue.Wide);break;case"MMMMM":w=Le(xe.Months,ue.Narrow);break;case"LLL":w=Le(xe.Months,ue.Abbreviated,X.Standalone);break;case"LLLL":w=Le(xe.Months,ue.Wide,X.Standalone);break;case"LLLLL":w=Le(xe.Months,ue.Narrow,X.Standalone);break;case"w":w=pi(1);break;case"ww":w=pi(2);break;case"W":w=pi(1,!0);break;case"d":w=ot(se.Date,1);break;case"dd":w=ot(se.Date,2);break;case"c":case"cc":w=ot(se.Day,1);break;case"ccc":w=Le(xe.Days,ue.Abbreviated,X.Standalone);break;case"cccc":w=Le(xe.Days,ue.Wide,X.Standalone);break;case"ccccc":w=Le(xe.Days,ue.Narrow,X.Standalone);break;case"cccccc":w=Le(xe.Days,ue.Short,X.Standalone);break;case"E":case"EE":case"EEE":w=Le(xe.Days,ue.Abbreviated);break;case"EEEE":w=Le(xe.Days,ue.Wide);break;case"EEEEE":w=Le(xe.Days,ue.Narrow);break;case"EEEEEE":w=Le(xe.Days,ue.Short);break;case"a":case"aa":case"aaa":w=Le(xe.DayPeriods,ue.Abbreviated);break;case"aaaa":w=Le(xe.DayPeriods,ue.Wide);break;case"aaaaa":w=Le(xe.DayPeriods,ue.Narrow);break;case"b":case"bb":case"bbb":w=Le(xe.DayPeriods,ue.Abbreviated,X.Standalone,!0);break;case"bbbb":w=Le(xe.DayPeriods,ue.Wide,X.Standalone,!0);break;case"bbbbb":w=Le(xe.DayPeriods,ue.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":w=Le(xe.DayPeriods,ue.Abbreviated,X.Format,!0);break;case"BBBB":w=Le(xe.DayPeriods,ue.Wide,X.Format,!0);break;case"BBBBB":w=Le(xe.DayPeriods,ue.Narrow,X.Format,!0);break;case"h":w=ot(se.Hours,1,-12);break;case"hh":w=ot(se.Hours,2,-12);break;case"H":w=ot(se.Hours,1);break;case"HH":w=ot(se.Hours,2);break;case"m":w=ot(se.Minutes,1);break;case"mm":w=ot(se.Minutes,2);break;case"s":w=ot(se.Seconds,1);break;case"ss":w=ot(se.Seconds,2);break;case"S":w=ot(se.FractionalSeconds,1);break;case"SS":w=ot(se.FractionalSeconds,2);break;case"SSS":w=ot(se.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":w=rn(Ne.Short);break;case"ZZZZZ":w=rn(Ne.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":w=rn(Ne.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":w=rn(Ne.Long);break;default:return null}return mt[v]=w,w}(m);E+=h?h(B,_,Dt):"''"===m?"'":m.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),E}function St(v,w,_){const S=new Date(0);return S.setFullYear(v,w,_),S.setHours(0,0,0),S}function Lt(v,w){const _=function(v){return(0,y.cg1)(v)[y.wAp.LocaleId]}(v);if(ge[_]=ge[_]||{},ge[_][w])return ge[_][w];let S="";switch(w){case"shortDate":S=jt(v,Ae.Short);break;case"mediumDate":S=jt(v,Ae.Medium);break;case"longDate":S=jt(v,Ae.Long);break;case"fullDate":S=jt(v,Ae.Full);break;case"shortTime":S=Kt(v,Ae.Short);break;case"mediumTime":S=Kt(v,Ae.Medium);break;case"longTime":S=Kt(v,Ae.Long);break;case"fullTime":S=Kt(v,Ae.Full);break;case"short":const B=Lt(v,"shortTime"),oe=Lt(v,"shortDate");S=zn(Tt(v,Ae.Short),[B,oe]);break;case"medium":const pe=Lt(v,"mediumTime"),Be=Lt(v,"mediumDate");S=zn(Tt(v,Ae.Medium),[pe,Be]);break;case"long":const Dt=Lt(v,"longTime"),E=Lt(v,"longDate");S=zn(Tt(v,Ae.Long),[Dt,E]);break;case"full":const m=Lt(v,"fullTime"),h=Lt(v,"fullDate");S=zn(Tt(v,Ae.Full),[m,h])}return S&&(ge[_][w]=S),S}function zn(v,w){return w&&(v=v.replace(/\{([^}]+)}/g,function(_,S){return null!=w&&S in w?w[S]:_})),v}function wt(v,w,_="-",S,B){let oe="";(v<0||B&&v<=0)&&(B?v=1-v:(v=-v,oe=_));let pe=String(v);for(;pe.length0||Be>-_)&&(Be+=_),v===se.Hours)0===Be&&-12===_&&(Be=12);else if(v===se.FractionalSeconds)return function(v,w){return wt(v,3).substr(0,w)}(Be,w);const Dt=tn(pe,ie.MinusSign);return wt(Be,w,Dt,S,B)}}function Le(v,w,_=X.Format,S=!1){return function(B,oe){return function(v,w,_,S,B,oe){switch(_){case xe.Months:return function(v,w,_){const S=(0,y.cg1)(v),oe=gt([S[y.wAp.MonthsFormat],S[y.wAp.MonthsStandalone]],w);return gt(oe,_)}(w,B,S)[v.getMonth()];case xe.Days:return function(v,w,_){const S=(0,y.cg1)(v),oe=gt([S[y.wAp.DaysFormat],S[y.wAp.DaysStandalone]],w);return gt(oe,_)}(w,B,S)[v.getDay()];case xe.DayPeriods:const pe=v.getHours(),Be=v.getMinutes();if(oe){const E=function(v){const w=(0,y.cg1)(v);return Nn(w),(w[y.wAp.ExtraData][2]||[]).map(S=>"string"==typeof S?tr(S):[tr(S[0]),tr(S[1])])}(w),m=function(v,w,_){const S=(0,y.cg1)(v);Nn(S);const oe=gt([S[y.wAp.ExtraData][0],S[y.wAp.ExtraData][1]],w)||[];return gt(oe,_)||[]}(w,B,S),h=E.findIndex(M=>{if(Array.isArray(M)){const[Z,we]=M,At=pe>=Z.hours&&Be>=Z.minutes,an=pe0?Math.floor(B/60):Math.ceil(B/60);switch(v){case Ne.Short:return(B>=0?"+":"")+wt(pe,2,oe)+wt(Math.abs(B%60),2,oe);case Ne.ShortGMT:return"GMT"+(B>=0?"+":"")+wt(pe,1,oe);case Ne.Long:return"GMT"+(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);case Ne.Extended:return 0===S?"Z":(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);default:throw new Error(`Unknown zone width "${v}"`)}}}function Mn(v){return St(v.getFullYear(),v.getMonth(),v.getDate()+(4-v.getDay()))}function pi(v,w=!1){return function(_,S){let B;if(w){const oe=new Date(_.getFullYear(),_.getMonth(),1).getDay()-1,pe=_.getDate();B=1+Math.floor((pe+oe)/7)}else{const oe=Mn(_),pe=function(v){const w=St(v,0,1).getDay();return St(v,0,1+(w<=4?4:11)-w)}(oe.getFullYear()),Be=oe.getTime()-pe.getTime();B=1+Math.round(Be/6048e5)}return wt(B,v,tn(S,ie.MinusSign))}}function xn(v,w=!1){return function(_,S){return wt(Mn(_).getFullYear(),v,tn(S,ie.MinusSign),w)}}const mt={};function br(v,w){v=v.replace(/:/g,"");const _=Date.parse("Jan 01, 1970 00:00:00 "+v)/6e4;return isNaN(_)?w:_}function Fn(v){return v instanceof Date&&!isNaN(v.valueOf())}class tt{}let ut=(()=>{class v extends tt{constructor(_){super(),this.locale=_}getPluralCategory(_,S){switch(Cn(S||this.locale)(_)){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}}}return v.\u0275fac=function(_){return new(_||v)(y.LFG(y.soG))},v.\u0275prov=y.Yz7({token:v,factory:v.\u0275fac}),v})();function Bt(v,w){w=encodeURIComponent(w);for(const _ of v.split(";")){const S=_.indexOf("="),[B,oe]=-1==S?[_,""]:[_.slice(0,S),_.slice(S+1)];if(B.trim()===w)return decodeURIComponent(oe)}return null}let kn=(()=>{class v{constructor(_,S,B,oe){this._iterableDiffers=_,this._keyValueDiffers=S,this._ngEl=B,this._renderer=oe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(_){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof _?_.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(_){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof _?_.split(/\s+/):_,this._rawClass&&((0,y.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const _=this._iterableDiffer.diff(this._rawClass);_&&this._applyIterableChanges(_)}else if(this._keyValueDiffer){const _=this._keyValueDiffer.diff(this._rawClass);_&&this._applyKeyValueChanges(_)}}_applyKeyValueChanges(_){_.forEachAddedItem(S=>this._toggleClass(S.key,S.currentValue)),_.forEachChangedItem(S=>this._toggleClass(S.key,S.currentValue)),_.forEachRemovedItem(S=>{S.previousValue&&this._toggleClass(S.key,!1)})}_applyIterableChanges(_){_.forEachAddedItem(S=>{if("string"!=typeof S.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,y.AaK)(S.item)}`);this._toggleClass(S.item,!0)}),_.forEachRemovedItem(S=>this._toggleClass(S.item,!1))}_applyClasses(_){_&&(Array.isArray(_)||_ instanceof Set?_.forEach(S=>this._toggleClass(S,!0)):Object.keys(_).forEach(S=>this._toggleClass(S,!!_[S])))}_removeClasses(_){_&&(Array.isArray(_)||_ instanceof Set?_.forEach(S=>this._toggleClass(S,!1)):Object.keys(_).forEach(S=>this._toggleClass(S,!1)))}_toggleClass(_,S){(_=_.trim())&&_.split(/\s+/g).forEach(B=>{S?this._renderer.addClass(this._ngEl.nativeElement,B):this._renderer.removeClass(this._ngEl.nativeElement,B)})}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.ZZ4),y.Y36(y.aQg),y.Y36(y.SBq),y.Y36(y.Qsj))},v.\u0275dir=y.lG2({type:v,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),v})();class wr{constructor(w,_,S,B){this.$implicit=w,this.ngForOf=_,this.index=S,this.count=B}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Vn=(()=>{class v{constructor(_,S,B){this._viewContainer=_,this._template=S,this._differs=B,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(_){this._ngForOf=_,this._ngForOfDirty=!0}set ngForTrackBy(_){this._trackByFn=_}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(_){_&&(this._template=_)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const _=this._ngForOf;if(!this._differ&&_)try{this._differ=this._differs.find(_).create(this.ngForTrackBy)}catch(S){throw new Error(`Cannot find a differ supporting object '${_}' of type '${function(v){return v.name||typeof v}(_)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const _=this._differ.diff(this._ngForOf);_&&this._applyChanges(_)}}_applyChanges(_){const S=[];_.forEachOperation((B,oe,pe)=>{if(null==B.previousIndex){const Be=this._viewContainer.createEmbeddedView(this._template,new wr(null,this._ngForOf,-1,-1),null===pe?void 0:pe),Dt=new Ze(B,Be);S.push(Dt)}else if(null==pe)this._viewContainer.remove(null===oe?void 0:oe);else if(null!==oe){const Be=this._viewContainer.get(oe);this._viewContainer.move(Be,pe);const Dt=new Ze(B,Be);S.push(Dt)}});for(let B=0;B{this._viewContainer.get(B.currentIndex).context.$implicit=B.item})}_perViewChange(_,S){_.context.$implicit=S.item}static ngTemplateContextGuard(_,S){return!0}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(y.ZZ4))},v.\u0275dir=y.lG2({type:v,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),v})();class Ze{constructor(w,_){this.record=w,this.view=_}}let Zn=(()=>{class v{constructor(_,S){this._viewContainer=_,this._context=new vn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=S}set ngIf(_){this._context.$implicit=this._context.ngIf=_,this._updateView()}set ngIfThen(_){hn("ngIfThen",_),this._thenTemplateRef=_,this._thenViewRef=null,this._updateView()}set ngIfElse(_){hn("ngIfElse",_),this._elseTemplateRef=_,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(_,S){return!0}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.s_b),y.Y36(y.Rgc))},v.\u0275dir=y.lG2({type:v,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),v})();class vn{constructor(){this.$implicit=null,this.ngIf=null}}function hn(v,w){if(w&&!w.createEmbeddedView)throw new Error(`${v} must be a TemplateRef, but received '${(0,y.AaK)(w)}'.`)}class Ht{constructor(w,_){this._viewContainerRef=w,this._templateRef=_,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(w){w&&!this._created?this.create():!w&&this._created&&this.destroy()}}let Un=(()=>{class v{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(_){this._ngSwitch=_,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(_){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(_)}_matchCase(_){const S=_==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||S,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),S}_updateDefaultCases(_){if(this._defaultViews&&_!==this._defaultUsed){this._defaultUsed=_;for(let S=0;S{class v{constructor(_,S,B){this.ngSwitch=B,B._addCase(),this._view=new Ht(_,S)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},v.\u0275dir=y.lG2({type:v,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),v})(),Gt=(()=>{class v{constructor(_,S,B){B._addDefault(new Ht(_,S))}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},v.\u0275dir=y.lG2({type:v,selectors:[["","ngSwitchDefault",""]]}),v})();let Tr=(()=>{class v{constructor(_){this.locale=_}transform(_,S="mediumDate",B,oe){if(null==_||""===_||_!=_)return null;try{return Re(_,S,oe||this.locale,B)}catch(pe){throw function(v,w){return Error(`InvalidPipeArgument: '${w}' for pipe '${(0,y.AaK)(v)}'`)}(v,pe.message)}}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.soG,16))},v.\u0275pipe=y.Yjl({name:"date",type:v,pure:!0}),v})(),ne=(()=>{class v{}return v.\u0275fac=function(_){return new(_||v)},v.\u0275mod=y.oAB({type:v}),v.\u0275inj=y.cJS({providers:[{provide:tt,useClass:ut}]}),v})();const Oe="browser";let Li=(()=>{class v{}return v.\u0275prov=(0,y.Yz7)({token:v,providedIn:"root",factory:()=>new ki((0,y.LFG)(K),window)}),v})();class ki{constructor(w,_){this.document=w,this.window=_,this.offset=()=>[0,0]}setOffset(w){this.offset=Array.isArray(w)?()=>w:w}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(w){this.supportsScrolling()&&this.window.scrollTo(w[0],w[1])}scrollToAnchor(w){if(!this.supportsScrolling())return;const _=function(v,w){const _=v.getElementById(w)||v.getElementsByName(w)[0];if(_)return _;if("function"==typeof v.createTreeWalker&&v.body&&(v.body.createShadowRoot||v.body.attachShadow)){const S=v.createTreeWalker(v.body,NodeFilter.SHOW_ELEMENT);let B=S.currentNode;for(;B;){const oe=B.shadowRoot;if(oe){const pe=oe.getElementById(w)||oe.querySelector(`[name="${w}"]`);if(pe)return pe}B=S.nextNode()}}return null}(this.document,w);_&&(this.scrollToElement(_),this.attemptFocus(_))}setHistoryScrollRestoration(w){if(this.supportScrollRestoration()){const _=this.window.history;_&&_.scrollRestoration&&(_.scrollRestoration=w)}}scrollToElement(w){const _=w.getBoundingClientRect(),S=_.left+this.window.pageXOffset,B=_.top+this.window.pageYOffset,oe=this.offset();this.window.scrollTo(S-oe[0],B-oe[1])}attemptFocus(w){return w.focus(),this.document.activeElement===w}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const w=Rr(this.window.history)||Rr(Object.getPrototypeOf(this.window.history));return!(!w||!w.writable&&!w.set)}catch(w){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(w){return!1}}}function Rr(v){return Object.getOwnPropertyDescriptor(v,"scrollRestoration")}class _i{}},1841:(Ye,me,O)=>{"use strict";O.d(me,{TP:()=>ee,eN:()=>ie,JF:()=>gt,WM:()=>U});var y=O(8583),u=O(476),ce=O(1964),re=O(1776),te=O(3766),J=O(4689),K=O(5207);class P{}class x{}class U{constructor(G){this.normalizedNames=new Map,this.lazyUpdate=null,G?this.lazyInit="string"==typeof G?()=>{this.headers=new Map,G.split("\n").forEach(W=>{const ge=W.indexOf(":");if(ge>0){const ye=W.slice(0,ge),Ne=ye.toLowerCase(),se=W.slice(ge+1).trim();this.maybeSetNormalizedName(ye,Ne),this.headers.has(Ne)?this.headers.get(Ne).push(se):this.headers.set(Ne,[se])}})}:()=>{this.headers=new Map,Object.keys(G).forEach(W=>{let ge=G[W];const ye=W.toLowerCase();"string"==typeof ge&&(ge=[ge]),ge.length>0&&(this.headers.set(ye,ge),this.maybeSetNormalizedName(W,ye))})}:this.headers=new Map}has(G){return this.init(),this.headers.has(G.toLowerCase())}get(G){this.init();const W=this.headers.get(G.toLowerCase());return W&&W.length>0?W[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(G){return this.init(),this.headers.get(G.toLowerCase())||null}append(G,W){return this.clone({name:G,value:W,op:"a"})}set(G,W){return this.clone({name:G,value:W,op:"s"})}delete(G,W){return this.clone({name:G,value:W,op:"d"})}maybeSetNormalizedName(G,W){this.normalizedNames.has(W)||this.normalizedNames.set(W,G)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(G=>this.applyUpdate(G)),this.lazyUpdate=null))}copyFrom(G){G.init(),Array.from(G.headers.keys()).forEach(W=>{this.headers.set(W,G.headers.get(W)),this.normalizedNames.set(W,G.normalizedNames.get(W))})}clone(G){const W=new U;return W.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,W.lazyUpdate=(this.lazyUpdate||[]).concat([G]),W}applyUpdate(G){const W=G.name.toLowerCase();switch(G.op){case"a":case"s":let ge=G.value;if("string"==typeof ge&&(ge=[ge]),0===ge.length)return;this.maybeSetNormalizedName(G.name,W);const ye=("a"===G.op?this.headers.get(W):void 0)||[];ye.push(...ge),this.headers.set(W,ye);break;case"d":const Ne=G.value;if(Ne){let se=this.headers.get(W);if(!se)return;se=se.filter(xe=>-1===Ne.indexOf(xe)),0===se.length?(this.headers.delete(W),this.normalizedNames.delete(W)):this.headers.set(W,se)}else this.headers.delete(W),this.normalizedNames.delete(W)}}forEach(G){this.init(),Array.from(this.normalizedNames.keys()).forEach(W=>G(this.normalizedNames.get(W),this.headers.get(W)))}}class Y{encodeKey(G){return Pe(G)}encodeValue(G){return Pe(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}const Ee=/%(\d[a-f0-9])/gi,De={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Pe(fe){return encodeURIComponent(fe).replace(Ee,(G,W)=>{var ge;return null!==(ge=De[W])&&void 0!==ge?ge:G})}function _e(fe){return`${fe}`}class He{constructor(G={}){if(this.updates=null,this.cloneFrom=null,this.encoder=G.encoder||new Y,G.fromString){if(G.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(fe,G){const W=new Map;return fe.length>0&&fe.replace(/^\?/,"").split("&").forEach(ye=>{const Ne=ye.indexOf("="),[se,xe]=-1==Ne?[G.decodeKey(ye),""]:[G.decodeKey(ye.slice(0,Ne)),G.decodeValue(ye.slice(Ne+1))],Re=W.get(se)||[];Re.push(xe),W.set(se,Re)}),W}(G.fromString,this.encoder)}else G.fromObject?(this.map=new Map,Object.keys(G.fromObject).forEach(W=>{const ge=G.fromObject[W];this.map.set(W,Array.isArray(ge)?ge:[ge])})):this.map=null}has(G){return this.init(),this.map.has(G)}get(G){this.init();const W=this.map.get(G);return W?W[0]:null}getAll(G){return this.init(),this.map.get(G)||null}keys(){return this.init(),Array.from(this.map.keys())}append(G,W){return this.clone({param:G,value:W,op:"a"})}appendAll(G){const W=[];return Object.keys(G).forEach(ge=>{const ye=G[ge];Array.isArray(ye)?ye.forEach(Ne=>{W.push({param:ge,value:Ne,op:"a"})}):W.push({param:ge,value:ye,op:"a"})}),this.clone(W)}set(G,W){return this.clone({param:G,value:W,op:"s"})}delete(G,W){return this.clone({param:G,value:W,op:"d"})}toString(){return this.init(),this.keys().map(G=>{const W=this.encoder.encodeKey(G);return this.map.get(G).map(ge=>W+"="+this.encoder.encodeValue(ge)).join("&")}).filter(G=>""!==G).join("&")}clone(G){const W=new He({encoder:this.encoder});return W.cloneFrom=this.cloneFrom||this,W.updates=(this.updates||[]).concat(G),W}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(G=>this.map.set(G,this.cloneFrom.map.get(G))),this.updates.forEach(G=>{switch(G.op){case"a":case"s":const W=("a"===G.op?this.map.get(G.param):void 0)||[];W.push(_e(G.value)),this.map.set(G.param,W);break;case"d":if(void 0===G.value){this.map.delete(G.param);break}{let ge=this.map.get(G.param)||[];const ye=ge.indexOf(_e(G.value));-1!==ye&&ge.splice(ye,1),ge.length>0?this.map.set(G.param,ge):this.map.delete(G.param)}}}),this.cloneFrom=this.updates=null)}}class Ge{constructor(){this.map=new Map}set(G,W){return this.map.set(G,W),this}get(G){return this.map.has(G)||this.map.set(G,G.defaultValue()),this.map.get(G)}delete(G){return this.map.delete(G),this}keys(){return this.map.keys()}}function Fe(fe){return"undefined"!=typeof ArrayBuffer&&fe instanceof ArrayBuffer}function he(fe){return"undefined"!=typeof Blob&&fe instanceof Blob}function Ke(fe){return"undefined"!=typeof FormData&&fe instanceof FormData}class $e{constructor(G,W,ge,ye){let Ne;if(this.url=W,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=G.toUpperCase(),function(fe){switch(fe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ye?(this.body=void 0!==ge?ge:null,Ne=ye):Ne=ge,Ne&&(this.reportProgress=!!Ne.reportProgress,this.withCredentials=!!Ne.withCredentials,Ne.responseType&&(this.responseType=Ne.responseType),Ne.headers&&(this.headers=Ne.headers),Ne.context&&(this.context=Ne.context),Ne.params&&(this.params=Ne.params)),this.headers||(this.headers=new U),this.context||(this.context=new Ge),this.params){const se=this.params.toString();if(0===se.length)this.urlWithParams=W;else{const xe=W.indexOf("?");this.urlWithParams=W+(-1===xe?"?":xewt.set(Je,G.setHeaders[Je]),St)),G.setParams&&(Lt=Object.keys(G.setParams).reduce((wt,Je)=>wt.set(Je,G.setParams[Je]),Lt)),new $e(ge,ye,se,{params:Lt,headers:St,context:zn,reportProgress:Re,responseType:Ne,withCredentials:xe})}}var lt=(()=>((lt=lt||{})[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt))();class le{constructor(G,W=200,ge="OK"){this.headers=G.headers||new U,this.status=void 0!==G.status?G.status:W,this.statusText=G.statusText||ge,this.url=G.url||null,this.ok=this.status>=200&&this.status<300}}class H extends le{constructor(G={}){super(G),this.type=lt.ResponseHeader}clone(G={}){return new H({headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class X extends le{constructor(G={}){super(G),this.type=lt.Response,this.body=void 0!==G.body?G.body:null}clone(G={}){return new X({body:void 0!==G.body?G.body:this.body,headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class ue extends le{constructor(G){super(G,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${G.url||"(unknown url)"}`:`Http failure response for ${G.url||"(unknown url)"}: ${G.status} ${G.statusText}`,this.error=G.error||null}}function Ae(fe,G){return{body:G,headers:fe.headers,context:fe.context,observe:fe.observe,params:fe.params,reportProgress:fe.reportProgress,responseType:fe.responseType,withCredentials:fe.withCredentials}}let ie=(()=>{class fe{constructor(W){this.handler=W}request(W,ge,ye={}){let Ne;if(W instanceof $e)Ne=W;else{let Re,St;Re=ye.headers instanceof U?ye.headers:new U(ye.headers),ye.params&&(St=ye.params instanceof He?ye.params:new He({fromObject:ye.params})),Ne=new $e(W,ge,void 0!==ye.body?ye.body:null,{headers:Re,context:ye.context,params:St,reportProgress:ye.reportProgress,responseType:ye.responseType||"json",withCredentials:ye.withCredentials})}const se=(0,ce.of)(Ne).pipe((0,te.b)(Re=>this.handler.handle(Re)));if(W instanceof $e||"events"===ye.observe)return se;const xe=se.pipe((0,J.h)(Re=>Re instanceof X));switch(ye.observe||"body"){case"body":switch(Ne.responseType){case"arraybuffer":return xe.pipe((0,K.U)(Re=>{if(null!==Re.body&&!(Re.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Re.body}));case"blob":return xe.pipe((0,K.U)(Re=>{if(null!==Re.body&&!(Re.body instanceof Blob))throw new Error("Response is not a Blob.");return Re.body}));case"text":return xe.pipe((0,K.U)(Re=>{if(null!==Re.body&&"string"!=typeof Re.body)throw new Error("Response is not a string.");return Re.body}));case"json":default:return xe.pipe((0,K.U)(Re=>Re.body))}case"response":return xe;default:throw new Error(`Unreachable: unhandled observe type ${ye.observe}}`)}}delete(W,ge={}){return this.request("DELETE",W,ge)}get(W,ge={}){return this.request("GET",W,ge)}head(W,ge={}){return this.request("HEAD",W,ge)}jsonp(W,ge){return this.request("JSONP",W,{params:(new He).append(ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(W,ge={}){return this.request("OPTIONS",W,ge)}patch(W,ge,ye={}){return this.request("PATCH",W,Ae(ye,ge))}post(W,ge,ye={}){return this.request("POST",W,Ae(ye,ge))}put(W,ge,ye={}){return this.request("PUT",W,Ae(ye,ge))}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(P))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();class ze{constructor(G,W){this.next=G,this.interceptor=W}handle(G){return this.interceptor.intercept(G,this.next)}}const ee=new u.OlP("HTTP_INTERCEPTORS");let Te=(()=>{class fe{intercept(W,ge){return ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const Tt=/^\)\]\}',?\n/;let yt=(()=>{class fe{constructor(W){this.xhrFactory=W}handle(W){if("JSONP"===W.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new re.y(ge=>{const ye=this.xhrFactory.build();if(ye.open(W.method,W.urlWithParams),W.withCredentials&&(ye.withCredentials=!0),W.headers.forEach((Je,ot)=>ye.setRequestHeader(Je,ot.join(","))),W.headers.has("Accept")||ye.setRequestHeader("Accept","application/json, text/plain, */*"),!W.headers.has("Content-Type")){const Je=W.detectContentTypeHeader();null!==Je&&ye.setRequestHeader("Content-Type",Je)}if(W.responseType){const Je=W.responseType.toLowerCase();ye.responseType="json"!==Je?Je:"text"}const Ne=W.serializeBody();let se=null;const xe=()=>{if(null!==se)return se;const Je=1223===ye.status?204:ye.status,ot=ye.statusText||"OK",Sn=new U(ye.getAllResponseHeaders()),Le=function(fe){return"responseURL"in fe&&fe.responseURL?fe.responseURL:/^X-Request-URL:/m.test(fe.getAllResponseHeaders())?fe.getResponseHeader("X-Request-URL"):null}(ye)||W.url;return se=new H({headers:Sn,status:Je,statusText:ot,url:Le}),se},Re=()=>{let{headers:Je,status:ot,statusText:Sn,url:Le}=xe(),Ut=null;204!==ot&&(Ut=void 0===ye.response?ye.responseText:ye.response),0===ot&&(ot=Ut?200:0);let rn=ot>=200&&ot<300;if("json"===W.responseType&&"string"==typeof Ut){const Dr=Ut;Ut=Ut.replace(Tt,"");try{Ut=""!==Ut?JSON.parse(Ut):null}catch(nr){Ut=Dr,rn&&(rn=!1,Ut={error:nr,text:Ut})}}rn?(ge.next(new X({body:Ut,headers:Je,status:ot,statusText:Sn,url:Le||void 0})),ge.complete()):ge.error(new ue({error:Ut,headers:Je,status:ot,statusText:Sn,url:Le||void 0}))},St=Je=>{const{url:ot}=xe(),Sn=new ue({error:Je,status:ye.status||0,statusText:ye.statusText||"Unknown Error",url:ot||void 0});ge.error(Sn)};let Lt=!1;const zn=Je=>{Lt||(ge.next(xe()),Lt=!0);let ot={type:lt.DownloadProgress,loaded:Je.loaded};Je.lengthComputable&&(ot.total=Je.total),"text"===W.responseType&&!!ye.responseText&&(ot.partialText=ye.responseText),ge.next(ot)},wt=Je=>{let ot={type:lt.UploadProgress,loaded:Je.loaded};Je.lengthComputable&&(ot.total=Je.total),ge.next(ot)};return ye.addEventListener("load",Re),ye.addEventListener("error",St),ye.addEventListener("timeout",St),ye.addEventListener("abort",St),W.reportProgress&&(ye.addEventListener("progress",zn),null!==Ne&&ye.upload&&ye.upload.addEventListener("progress",wt)),ye.send(Ne),ge.next({type:lt.Sent}),()=>{ye.removeEventListener("error",St),ye.removeEventListener("abort",St),ye.removeEventListener("load",Re),ye.removeEventListener("timeout",St),W.reportProgress&&(ye.removeEventListener("progress",zn),null!==Ne&&ye.upload&&ye.upload.removeEventListener("progress",wt)),ye.readyState!==ye.DONE&&ye.abort()}})}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.JF))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const gn=new u.OlP("XSRF_COOKIE_NAME"),It=new u.OlP("XSRF_HEADER_NAME");class it{}let mn=(()=>{class fe{constructor(W,ge,ye){this.doc=W,this.platform=ge,this.cookieName=ye,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const W=this.doc.cookie||"";return W!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,y.Mx)(W,this.cookieName),this.lastCookieString=W),this.lastToken}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.K0),u.LFG(u.Lbi),u.LFG(gn))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Cn=(()=>{class fe{constructor(W,ge){this.tokenService=W,this.headerName=ge}intercept(W,ge){const ye=W.url.toLowerCase();if("GET"===W.method||"HEAD"===W.method||ye.startsWith("http://")||ye.startsWith("https://"))return ge.handle(W);const Ne=this.tokenService.getToken();return null!==Ne&&!W.headers.has(this.headerName)&&(W=W.clone({headers:W.headers.set(this.headerName,Ne)})),ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(it),u.LFG(It))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Nn=(()=>{class fe{constructor(W,ge){this.backend=W,this.injector=ge,this.chain=null}handle(W){if(null===this.chain){const ge=this.injector.get(ee,[]);this.chain=ge.reduceRight((ye,Ne)=>new ze(ye,Ne),this.backend)}return this.chain.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(x),u.LFG(u.zs3))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Ft=(()=>{class fe{static disable(){return{ngModule:fe,providers:[{provide:Cn,useClass:Te}]}}static withOptions(W={}){return{ngModule:fe,providers:[W.cookieName?{provide:gn,useValue:W.cookieName}:[],W.headerName?{provide:It,useValue:W.headerName}:[]]}}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[Cn,{provide:ee,useExisting:Cn,multi:!0},{provide:it,useClass:mn},{provide:gn,useValue:"XSRF-TOKEN"},{provide:It,useValue:"X-XSRF-TOKEN"}]}),fe})(),gt=(()=>{class fe{}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[ie,{provide:P,useClass:Nn},yt,{provide:x,useExisting:yt}],imports:[[Ft.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),fe})()},476:(Ye,me,O)=>{"use strict";O.d(me,{deG:()=>vv,tb:()=>My,AFp:()=>wy,ip1:()=>Pd,CZH:()=>Os,hGG:()=>cS,z2F:()=>xa,sBO:()=>eb,Sil:()=>Na,_Vd:()=>Do,EJc:()=>Iy,SBq:()=>Oi,qLn:()=>es,vpe:()=>Pi,gxx:()=>ss,tBr:()=>qo,XFs:()=>se,OlP:()=>ln,zs3:()=>Vt,ZZ4:()=>Nl,aQg:()=>xl,soG:()=>Wl,YKP:()=>pm,v3s:()=>HA,h0i:()=>bo,PXZ:()=>kA,R0b:()=>Er,FiY:()=>$i,Lbi:()=>Sy,g9A:()=>Ay,Qsj:()=>U0,FYo:()=>Rl,JOm:()=>Ai,Tiy:()=>od,q3G:()=>un,tp0:()=>to,EAV:()=>KA,Rgc:()=>Ea,dDg:()=>Ny,DyG:()=>el,GfV:()=>sm,s_b:()=>kl,ifc:()=>Le,eFA:()=>Uy,G48:()=>OA,Gpc:()=>Fe,_c5:()=>rS,VLi:()=>IA,c2e:()=>Ty,zSh:()=>ua,wAp:()=>qe,vHH:()=>$e,EiD:()=>If,mCW:()=>ta,qzn:()=>Xo,JVY:()=>Kv,pB0:()=>Qv,eBb:()=>Zv,L6k:()=>Yv,LAX:()=>qv,cg1:()=>Kc,Tjo:()=>tS,kL8:()=>Tg,yhl:()=>Ef,dqk:()=>nt,sIi:()=>fa,CqO:()=>Lc,QGY:()=>Fc,F4k:()=>Vp,RDi:()=>Be,AaK:()=>Me,z3N:()=>ji,qOj:()=>Ec,TTD:()=>Li,_Bn:()=>tm,xp6:()=>hh,uIk:()=>wc,Tol:()=>rg,ekj:()=>jc,Suo:()=>ty,Xpm:()=>et,lG2:()=>rr,Yz7:()=>xt,cJS:()=>Ft,oAB:()=>yn,Yjl:()=>Yn,Y36:()=>pa,_UZ:()=>Lp,BQk:()=>xc,ynx:()=>Nc,qZA:()=>Rc,TgZ:()=>Pc,EpF:()=>kp,n5z:()=>Ho,Ikx:()=>zc,SDv:()=>Qg,QtT:()=>Jg,N_p:()=>Jc,pQV:()=>Xc,Zx4:()=>Xg,tHW:()=>Qc,LFG:()=>_n,$8M:()=>_u,NdJ:()=>kc,CRH:()=>ny,oxw:()=>jp,ALo:()=>Zm,xi3:()=>qm,Q6J:()=>Ic,s9C:()=>Uc,MGl:()=>bl,hYB:()=>Bc,DdM:()=>jm,VKq:()=>Hm,iGM:()=>Xm,MAs:()=>wp,CHM:()=>$a,LSH:()=>Nu,kYT:()=>zr,Udp:()=>$c,YNc:()=>bp,W1O:()=>sy,_uU:()=>cg,Oqu:()=>Gc,hij:()=>Al,AsE:()=>Wc,Gf:()=>ey});var y=O(23),u=O(5994),ce=O(5929),re=O(6149),te=O(9528),K=O(6889),P=O(8839),x=O(1776),U=O(9162),Y=O(4294),ae=O(4111),Ee=O(4297);function Pe(e,t){for(var n=[],r=2;r ${n} ${r} ${t} <=Actual]`))}function xt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ft(e){return{providers:e.providers||[],imports:e.imports||[]}}function gt(e){return tr(e,W)||tr(e,ye)}function tr(e,t){return e.hasOwnProperty(t)?e[t]:null}function G(e){return e&&(e.hasOwnProperty(ge)||e.hasOwnProperty(Ne))?e[ge]:null}const W=_e({\u0275prov:_e}),ge=_e({\u0275inj:_e}),ye=_e({ngInjectableDef:_e}),Ne=_e({ngInjectorDef:_e});var se=(()=>((se=se||{})[se.Default=0]="Default",se[se.Host=1]="Host",se[se.Self=2]="Self",se[se.SkipSelf=4]="SkipSelf",se[se.Optional=8]="Optional",se))();let xe;function St(e){const t=xe;return xe=e,t}function Lt(e,t,n){const r=gt(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&se.Optional?null:void 0!==t?t:void ze(Me(e),"Injector")}function wt(e){return{toString:e}.toString()}var Je=(()=>((Je=Je||{})[Je.OnPush=0]="OnPush",Je[Je.Default=1]="Default",Je))(),Le=(()=>((Le=Le||{})[Le.Emulated=0]="Emulated",Le[Le.None=2]="None",Le[Le.ShadowDom=3]="ShadowDom",Le))();const Ut="undefined"!=typeof globalThis&&globalThis,rn="undefined"!=typeof window&&window,Dr="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,nr="undefined"!=typeof global&&global,nt=Ut||nr||rn||Dr,xn={},mt=[],cr=_e({\u0275cmp:_e}),br=_e({\u0275dir:_e}),Gr=_e({\u0275pipe:_e}),gi=_e({\u0275mod:_e}),Wr=_e({\u0275loc:_e}),Tn=_e({\u0275fac:_e}),Fn=_e({__NG_ELEMENT_ID__:_e});let Kn=0;function et(e){return wt(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Je.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||mt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Le.Emulated,id:"c",styles:e.styles||mt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,s=e.pipes;return r.id+=Kn++,r.inputs=Kr(e.inputs,n),r.outputs=Kr(e.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(In):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(En):null,r})}function In(e){return qt(e)||function(e){return e[br]||null}(e)}function En(e){return function(e){return e[Gr]||null}(e)}const Ln={};function yn(e){return wt(()=>{const t={type:e.type,bootstrap:e.bootstrap||mt,declarations:e.declarations||mt,imports:e.imports||mt,exports:e.exports||mt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Ln[e.id]=e.type),t})}function zr(e,t){return wt(()=>{const n=Yt(e,!0);n.declarations=t.declarations||mt,n.imports=t.imports||mt,n.exports=t.exports||mt})}function Kr(e,t){if(null==e)return xn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const rr=et;function Yn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function qt(e){return e[cr]||null}function Yt(e,t){const n=e[gi]||null;if(!n&&!0===t)throw new Error(`Type ${Me(e)} does not have '\u0275mod' property.`);return n}function sn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Dn(e){return Array.isArray(e)&&!0===e[1]}function pr(e){return 0!=(8&e.flags)}function Mr(e){return 2==(2&e.flags)}function jn(e){return 1==(1&e.flags)}function Pt(e){return null!==e.template}function Tr(e){return 0!=(512&e[2])}function Pr(e,t){return e.hasOwnProperty(Tn)?e[Tn]:null}class Yi{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Li(){return ki}function ki(e){return e.type.prototype.ngOnChanges&&(e.setInput=gr),Rr}function Rr(){const e=_i(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===xn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function gr(e,t,n,r){const i=_i(e)||function(e,t){return e[Zi]=t}(e,{previous:xn,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],d=s[a];o[a]=new Yi(d&&d.currentValue,t,s===xn),e[r]=t}Li.ngInherit=!0;const Zi="__ngSimpleChanges__";function _i(e){return e[Zi]||null}let pe;function Be(e){pe=e}function Dt(){return void 0!==pe?pe:"undefined"!=typeof document?document:void 0}function m(e){return!!e.listen}const M={createRenderer:(e,t)=>Dt()};function we(e){for(;Array.isArray(e);)e=e[0];return e}function Jt(e,t){return we(t[e])}function zt(e,t){return we(t[e.index])}function Nr(e,t){return e.data[t]}function mr(e,t){return e[t]}function bn(e,t){const n=t[e];return sn(n)?n:n[0]}function so(e){return 4==(4&e[2])}function Jr(e){return 128==(128&e[2])}function Xr(e,t){return null==t?null:e[t]}function ao(e){e[18]=0}function ks(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const st={lFrame:Hs(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ba(){return st.bindingsEnabled}function ve(){return st.lFrame.lView}function _t(){return st.lFrame.tView}function $a(e){return st.lFrame.contextLView=e,e[8]}function pn(){let e=ja();for(;null!==e&&64===e.type;)e=e.parent;return e}function ja(){return st.lFrame.currentTNode}function co(){const e=st.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function xr(e,t){const n=st.lFrame;n.currentTNode=e,n.isParent=t}function Us(){return st.lFrame.isParent}function Io(){st.lFrame.isParent=!1}function Oo(){return st.isInCheckNoChangesMode}function Po(e){st.isInCheckNoChangesMode=e}function Hn(){const e=st.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yr(){return st.lFrame.bindingIndex}function Vi(){return st.lFrame.bindingIndex++}function Fr(e){const t=st.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Bs(e){st.lFrame.inI18n=e}function au(e,t){const n=st.lFrame;n.bindingIndex=n.bindingRootIndex=e,$s(t)}function $s(e){st.lFrame.currentDirectiveIndex=e}function Ga(){return st.lFrame.currentQueryIndex}function fo(e){st.lFrame.currentQueryIndex=e}function uu(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wa(e,t,n){if(n&se.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&se.Host||(i=uu(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=st.lFrame=No();return r.currentTNode=t,r.lView=e,!0}function Ro(e){const t=No(),n=e[1];st.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function No(){const e=st.lFrame,t=null===e?null:e.child;return null===t?Hs(e):t}function Hs(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function za(){const e=st.lFrame;return st.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ui=za;function xo(){const e=za();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Gn(){return st.lFrame.selectedIndex}function ei(e){st.lFrame.selectedIndex=e}function Xt(){const e=st.lFrame;return Nr(e.tView,e.selectedIndex)}function ti(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[d]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Qi{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Bo(e,t,n){const r=m(e);let i=0;for(;it){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Ks=!0;function jo(e){const t=Ks;return Ks=e,t}let f=0;function l(e,t){const n=C(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,p(r.data,e),p(t,null),p(r.blueprint,null));const i=b(e,t),o=e.injectorIndex;if(Ja(i)){const s=Ji(i),a=Ei(i,t),d=a[1].data;for(let g=0;g<8;g++)t[o+g]=a[s+g]|d[s+g]}return t[o+8]=i,o}function p(e,t){e.push(0,0,0,0,0,0,0,0,t)}function C(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function b(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function N(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Fn)&&(r=n[Fn]),null==r&&(r=n[Fn]=f++);const i=255&r;t.data[e+(i>>5)]|=1<=0?255&t:kt:t}(n);if("function"==typeof o){if(!Wa(t,e,r))return r&se.Host?q(i,n,r):Se(t,n,r,i);try{const s=o(r);if(null!=s||r&se.Optional)return s;ze(n)}finally{Ui()}}else if("number"==typeof o){let s=null,a=C(e,t),d=-1,g=r&se.Host?t[16][6]:null;for((-1===a||r&se.SkipSelf)&&(d=-1===a?b(e,t):t[a+8],-1!==d&&Bi(r,!1)?(s=t[1],a=Ji(d),t=Ei(d,t)):a=-1);-1!==a;){const D=t[1];if(Xi(o,a,D.data)){const T=Ct(a,t,n,s,r,g);if(T!==at)return T}d=t[a+8],-1!==d&&Bi(r,t[1].data[a+8]===g)&&Xi(o,a,t)?(s=D,a=Ji(d),t=Ei(d,t)):a=-1}}}return Se(t,n,r,i)}const at={};function kt(){return new sr(pn(),ve())}function Ct(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],D=vr(a,s,n,null==r?Mr(a)&&Ks:r!=s&&0!=(3&a.type),i&se.Host&&o===a);return null!==D?or(t,s,D,a):at}function vr(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,d=e.directiveStart,D=o>>20,I=i?a+D:e.directiveEnd;for(let k=r?a:a+D;k=d&&j.type===n)return k}if(i){const k=s[d];if(k&&Pt(k)&&k.type===n)return d}return null}function or(e,t,n,r){let i=e[n];const o=t.data;if(function(e){return e instanceof Qi}(i)){const s=i;s.resolving&&function(e,t){throw new $e("200",`Circular dependency in DI detected for ${e}`)}(X(o[n]));const a=jo(s.canSeeViewProviders);s.resolving=!0;const d=s.injectImpl?St(s.injectImpl):null;Wa(e,r,se.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=ki(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==d&&St(d),jo(a),s.resolving=!1,Ui()}}return i}function Xi(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Tn]||vu(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[Tn]||vu(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function vu(e){return Ke(e)?()=>{const t=vu(he(e));return t&&t()}:Pr(e)}function _u(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{const r=function(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(d,g,D){const T=d.hasOwnProperty(Wo)?d[Wo]:Object.defineProperty(d,Wo,{value:[]})[Wo];for(;T.length<=D;)T.push(null);return(T[D]=T[D]||[]).push(s),d}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class ln{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=xt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const vv=new ln("AnalyzeForEntryComponents"),el=Function;function kr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Di(n,t):t(n))}function nl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function mo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function _r(e,t,n){let r=Ko(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Eu(e,t){const n=Ko(e,t);if(n>=0)return e[1|n]}function Ko(e,t){return function(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i< ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Me(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Tv,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Yo]=null,e}const qo=Xs(go("Inject",e=>({token:e})),-1),$i=Xs(go("Optional"),8),to=Xs(go("SkipSelf"),4);let sl;function Jo(e){var t;return(null===(t=function(){if(void 0===sl&&(sl=null,nt.trustedTypes))try{sl=nt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sl}())||void 0===t?void 0:t.createHTML(e))||e}class vo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class jv extends vo{getTypeName(){return"HTML"}}class Hv extends vo{getTypeName(){return"Style"}}class Gv extends vo{getTypeName(){return"Script"}}class Wv extends vo{getTypeName(){return"URL"}}class zv extends vo{getTypeName(){return"ResourceURL"}}function ji(e){return e instanceof vo?e.changingThisBreaksApplicationSecurity:e}function Xo(e,t){const n=Ef(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Ef(e){return e instanceof vo&&e.getTypeName()||null}function Kv(e){return new jv(e)}function Yv(e){return new Hv(e)}function Zv(e){return new Gv(e)}function qv(e){return new Wv(e)}function Qv(e){return new zv(e)}function Df(e){const t=new Xv(e);return function(){try{return!!(new window.DOMParser).parseFromString(Jo(""),"text/html")}catch(e){return!1}}()?new Jv(t):t}class Jv{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Jo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class Xv{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Jo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Jo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0ta(t.trim())).join(", ")}function bi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function na(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const wf=bi("area,br,col,hr,img,wbr"),Af=bi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sf=bi("rp,rt"),Iu=na(wf,na(Af,bi("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")),na(Sf,bi("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")),na(Sf,Af)),Ou=bi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pu=bi("srcset"),Mf=na(Ou,Pu,bi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bi("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")),r_=bi("script,style,template");class i_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Iu.hasOwnProperty(n))return this.sanitizedSomething=!0,!r_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i"),!0}endElement(t){const n=t.nodeName.toLowerCase();Iu.hasOwnProperty(n)&&!wf.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Tf(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const o_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s_=/([^\#-~ |!])/g;function Tf(e){return e.replace(/&/g,"&").replace(o_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(s_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ll;function If(e,t){let n=null;try{ll=ll||Df(e);let r=t?String(t):"";n=ll.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ll.getInertBodyElement(r)}while(r!==o);return Jo((new i_).sanitizeChildren(Ru(n)||n))}finally{if(n){const r=Ru(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ru(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var un=(()=>((un=un||{})[un.NONE=0]="NONE",un[un.HTML=1]="HTML",un[un.STYLE=2]="STYLE",un[un.SCRIPT=3]="SCRIPT",un[un.URL=4]="URL",un[un.RESOURCE_URL=5]="RESOURCE_URL",un))();function Nu(e){const t=function(){const e=ve();return e&&e[12]}();return t?t.sanitize(un.URL,e)||"":Xo(e,"URL")?ji(e):ta(H(e))}const Rf="__ngContext__";function Qn(e,t){e[Rf]=t}function Fu(e){const t=function(e){return e[Rf]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ul(e){return e.ngOriginalError}function w_(e,...t){e.error(...t)}class es{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=this._findContext(t),i=(e=t)&&e.ngErrorLogger||w_;var e;i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n),r&&i(this._console,"ERROR CONTEXT",r)}_findContext(t){return t?t.ngDebugContext||this._findContext(ul(t)):null}_findOriginalError(t){let n=t&&ul(t);for(;n&&ul(n);)n=ul(n);return n||null}}const M_=/^>|^->||--!>|)/;const $f=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(nt))();function wi(e){return e instanceof Function?e():e}var Ai=(()=>((Ai=Ai||{})[Ai.Important=1]="Important",Ai[Ai.DashCase=2]="DashCase",Ai))();let ku;function Vu(e,t){return ku(e,t)}function oa(e){const t=e[3];return Dn(t)?t[3]:t}function Uu(e){return zf(e[13])}function Bu(e){return zf(e[4])}function zf(e){for(;null!==e&&!Dn(e);)e=e[4];return e}function ns(e,t,n,r,i){if(null!=r){let o,s=!1;Dn(r)?o=r:sn(r)&&(s=!0,r=r[0]);const a=we(r);0===e&&null!==n?null==i?Jf(t,n,a):_o(t,n,a,i||null,!0):1===e&&null!==n?_o(t,n,a,i||null,!0):2===e?oh(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,r,i){const o=n[7];o!==we(n)&&ns(t,e,r,o,i);for(let a=10;at.replace(T_,"\u200b$1\u200b"))}(t))}function ju(e,t,n){return m(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Yf(e,t){const n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,ks(i,-1)),n.splice(r,1)}function Hu(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&Yf(i,r),t>0&&(e[n-1][4]=r[4]);const o=mo(e,10+t);!function(e,t){sa(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Zf(e,t){if(!(256&t[2])){const n=t[11];m(n)&&n.destroyNode&&sa(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Gu(e[1],e);for(;t;){let n=null;if(sn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)sn(t)&&Gu(t[1],t),t=t[3];null===t&&(t=e),sn(t)&&Gu(t[1],t),n=t&&t[4]}t=n}}(t)}}function Gu(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[i=g]():r[i=-g].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;oo?"":i[T+1].toLowerCase();const k=8&r?I:null;if(k&&-1!==lh(k,g,0)||2&r&&g!==I){if(ri(r))return!1;s=!0}}}}else{if(!s&&!ri(r)&&!ri(d))return!1;if(s&&ri(d))continue;s=!1,r=d|1&r}}return ri(r)||s}function ri(e){return 0==(1&e)}function X_(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!ri(s)&&(t+=fh(o,i),i=""),r=s,o=o||!ri(r);n++}return""!==i&&(t+=fh(o,i)),t}const dt={};function hh(e){ph(_t(),ve(),Gn()+e,Oo())}function ph(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&ho(t,o,n)}else{const o=e.preOrderHooks;null!==o&&Vo(t,o,0,n)}ei(n)}function pl(e,t){return e<<17|t<<2}function ii(e){return e>>17&32767}function Zu(e){return 2|e}function Hi(e){return(131068&e)>>2}function qu(e,t){return-131069&e|t<<2}function Qu(e){return 1|e}function wh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&ph(e,t,20,Oo()),n(r,i)}finally{ei(o)}}function Sh(e,t,n){if(pr(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=d&&a.push(d),a.push(r,i,s)}}function xh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function OC(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&uc(n)}}function uc(e){for(let r=Uu(e);null!==r;r=Bu(r))for(let i=10;i0&&uc(o)}const n=e[1].components;if(null!==n)for(let r=0;r0&&uc(i)}}function kC(e,t){const n=bn(t,e),r=n[1];(function(e,t){for(let n=t.length;nPromise.resolve(null))();function Bh(e){return e[7]||(e[7]=[])}function $h(e){return e.cleanup||(e.cleanup=[])}function Hh(e,t){const n=e[9],r=n?n.get(es,null):null;r&&r.handleError(t)}function Gh(e,t,n,r,i){for(let o=0;othis.processProvider(a,t,n)),Di([t],a=>this.processInjectorType(a,[],o)),this.records.set(ss,as(void 0,this));const s=this.records.get(ua);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:Me(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Qs,r=se.Default){this.assertNotDestroyed();const i=Zo(this),o=St(void 0);try{if(!(r&se.SkipSelf)){let a=this.records.get(t);if(void 0===a){const d=("function"==typeof(e=t)||"object"==typeof e&&e instanceof ln)&>(t);a=d&&this.injectableDefInScope(d)?as(gc(t),ca):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&se.Self?zh():this.parent).get(t,n=r&se.Optional&&n===Qs?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Yo]=s[Yo]||[]).unshift(Me(t)),i)throw s;return hf(s,t,"R3InjectorError",this.source)}throw s}finally{St(o),Zo(i)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(Me(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=he(t)))return!1;let i=G(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=G(o)),null==i)return!1;if(null!=i.imports&&!a){let D;r.push(s);try{Di(i.imports,T=>{this.processInjectorType(T,n,r)&&(void 0===D&&(D=[]),D.push(T))})}finally{}if(void 0!==D)for(let T=0;Tthis.processProvider(j,I,k||mt))}}this.injectorDefTypes.add(s);const d=Pr(s)||(()=>new s);this.records.set(s,as(d,ca));const g=i.providers;if(null!=g&&!a){const D=t;Di(g,T=>this.processProvider(T,D,g))}return void 0!==o&&void 0!==t.providers}processProvider(t,n,r){let i=ls(t=he(t))?t:he(t&&t.provide);const o=Zh(e=t)?as(void 0,e.useValue):as(Yh(e),ca);var e;if(ls(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=as(void 0,ca,!0),s.factory=()=>yo(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,n){return n.value===ca&&(n.value=WC,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=he(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function gc(e){const t=gt(e),n=null!==t?t.factory:Pr(e);if(null!==n)return n;if(e instanceof ln)throw new Error(`Token ${Me(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=function(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new Error("unreachable")}function Yh(e,t,n){let r;if(ls(e)){const i=he(e);return Pr(i)||gc(i)}if(Zh(e))r=()=>he(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...yo(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>_n(he(e.useExisting));else{const i=he(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Pr(i)||gc(i);r=()=>new i(...yo(e.deps))}return r}function as(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zh(e){return null!==e&&"object"==typeof e&&Au in e}function ls(e){return"function"==typeof e}const qh=function(e,t,n){return function(e,t=null,n=null,r){const i=Kh(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};class Vt{static create(t,n){return Array.isArray(t)?qh(t,n,""):qh(t.providers,t.parent,t.name||"")}}function pE(e,t){ti(Fu(e)[1],pn())}function Ec(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Pt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const s=e;s.inputs=Dc(e.inputs),s.declaredInputs=Dc(e.declaredInputs),s.outputs=Dc(e.outputs);const a=i.hostBindings;a&&vE(e,a);const d=i.viewQuery,g=i.contentQueries;if(d&&mE(e,d),g&&yE(e,g),He(e.inputs,i.inputs),He(e.declaredInputs,i.declaredInputs),He(e.outputs,i.outputs),Pt(i)&&i.data.animation){const D=e.data;D.animation=(D.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=$o(i.hostAttrs,n=$o(n,i.hostAttrs))}}(r)}function Dc(e){return e===xn?{}:e===mt?[]:e}function mE(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function yE(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,o)=>{t(r,i,o),n(r,i,o)}:t}function vE(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}Vt.THROW_IF_NOT_FOUND=Qs,Vt.NULL=new Wh,Vt.\u0275prov=xt({token:Vt,providedIn:"any",factory:()=>_n(ss)}),Vt.__NG_ELEMENT_ID__=-1;let Cl=null;function us(){if(!Cl){const e=nt.Symbol;if(e&&e.iterator)Cl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(we(Qe[r.index])):r.index;if(m(n)){let Qe=null;if(!a&&d&&(Qe=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;od?a[d]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==Qe)(Qe.__ngLastListenerFn__||Qe).__ngNextListenerFn__=o,Qe.__ngLastListenerFn__=o,k=!1;else{o=Vc(r,t,T,o,!1);const pt=n.listen(Ce,i,o);I.push(o,pt),D&&D.push(i,ke,de,de+1)}}else o=Vc(r,t,T,o,!0),Ce.addEventListener(i,o,s),I.push(o),D&&D.push(i,ke,de,s)}else o=Vc(r,t,T,o,!1);const j=r.outputs;let Q;if(k&&null!==j&&(Q=j[i])){const z=Q.length;if(z)for(let Ce=0;Ce0;)t=t[15],e--;return t}(e,st.lFrame.contextLView))[8]}(e)}function Uc(e,t,n){return bl(e,"",t,"",n),Uc}function bl(e,t,n,r,i){const o=ve(),s=ds(o,t,n,r);return s!==dt&&Cr(_t(),Xt(),o,e,s,o[11],i,!1),bl}function Bc(e,t,n,r,i,o,s){const a=ve(),d=fs(a,t,n,r,i,o);return d!==dt&&Cr(_t(),Xt(),a,e,d,a[11],s,!1),Bc}function qp(e,t,n,r,i){const o=e[n+1],s=null===t;let a=r?ii(o):Hi(o),d=!1;for(;0!==a&&(!1===d||s);){const D=e[a+1];iD(e[a],t)&&(d=!0,e[a+1]=r?Qu(D):Zu(D)),a=r?ii(D):Hi(D)}d&&(e[n+1]=r?Zu(o):Qu(o))}function iD(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ko(e,t)>=0}const An={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Qp(e){return e.substring(An.key,An.keyEnd)}function Jp(e,t){const n=An.textEnd;return n===t?-1:(t=An.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,An.key=t,n),Cs(e,t,n))}function Cs(e,t,n){for(;t=0;n=Jp(t,n))_r(e,Qp(t),!0)}function ai(e,t,n,r){const i=ve(),o=_t(),s=Fr(2);o.firstUpdatePass&&og(o,e,s,r),t!==dt&&Jn(i,s,t)&&ag(o,o.data[Gn()],i,i[11],e,i[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Me(ji(e)))),e}(t,n),r,s)}function ig(e,t){return t>=e.expandoStartIndex}function og(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[Gn()],s=ig(e,n);ug(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const i=function(e){const t=st.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=ga(n=Hc(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Hc(i,e,t,n,r),null===o){let d=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Hi(r))return e[ii(r)]}(e,t,r);void 0!==d&&Array.isArray(d)&&(d=Hc(null,e,t,d[1],r),d=ga(d,t.attrs,r),function(e,t,n,r){e[ii(n?t.classBindings:t.styleBindings)]=r}(e,t,r,d))}else o=function(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(g=!0)}else D=n;if(i)if(0!==d){const I=ii(e[a+1]);e[r+1]=pl(I,a),0!==I&&(e[I+1]=qu(e[I+1],r)),e[a+1]=function(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=pl(a,0),0!==a&&(e[a+1]=qu(e[a+1],r)),a=r;else e[r+1]=pl(d,0),0===a?a=r:e[d+1]=qu(e[d+1],r),d=r;g&&(e[r+1]=Zu(e[r+1])),qp(e,D,r,!0),qp(e,D,r,!1),function(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ko(o,t)>=0&&(n[r+1]=Qu(n[r+1]))}(t,D,e,r,o),s=pl(a,d),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function Hc(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const d=e[i],g=Array.isArray(d),D=g?d[1]:d,T=null===D;let I=n[i+1];I===dt&&(I=T?mt:void 0);let k=T?Eu(I,r):D===r?I:void 0;if(g&&!wl(k)&&(k=Eu(d,r)),wl(k)&&(a=k,s))return a;const j=e[i+1];i=s?ii(j):Hi(j)}if(null!==t){let d=o?t.residualClasses:t.residualStyles;null!=d&&(a=Eu(d,r))}return a}function wl(e){return void 0!==e}function ug(e,t){return 0!=(e.flags&(t?16:32))}function cg(e,t=""){const n=ve(),r=_t(),i=e+20,o=r.firstCreatePass?rs(r,i,1,t,null):r.data[i],s=n[i]=$u(n[11],t);fl(r,n,s,o),xr(o,!1)}function Gc(e){return Al("",e,""),Gc}function Al(e,t,n){const r=ve(),i=ds(r,e,t,n);return i!==dt&&Wi(r,Gn(),i),Al}function Wc(e,t,n,r,i){const o=ve(),s=fs(o,e,t,n,r,i);return s!==dt&&Wi(o,Gn(),s),Wc}function zc(e,t,n){const r=ve();return Jn(r,Vi(),t)&&Cr(_t(),Xt(),r,e,t,r[11],n,!0),zc}const Eo=void 0;var VD=["en",[["a","p"],["AM","PM"],Eo],[["AM","PM"],Eo,Eo],[["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"]],Eo,[["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"]],Eo,[["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}",Eo,"{1} 'at' {0}",Eo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Es={};function Kc(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Ig(t);if(n)return n;const r=t.split("-")[0];if(n=Ig(r),n)return n;if("en"===r)return VD;throw new Error(`Missing locale data for the locale "${e}".`)}function Tg(e){return Kc(e)[qe.PluralCase]}function Ig(e){return e in Es||(Es[e]=nt.ng&&nt.ng.common&&nt.ng.common.locales&&nt.ng.common.locales[e]),Es[e]}var qe=(()=>((qe=qe||{})[qe.LocaleId=0]="LocaleId",qe[qe.DayPeriodsFormat=1]="DayPeriodsFormat",qe[qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",qe[qe.DaysFormat=3]="DaysFormat",qe[qe.DaysStandalone=4]="DaysStandalone",qe[qe.MonthsFormat=5]="MonthsFormat",qe[qe.MonthsStandalone=6]="MonthsStandalone",qe[qe.Eras=7]="Eras",qe[qe.FirstDayOfWeek=8]="FirstDayOfWeek",qe[qe.WeekendRange=9]="WeekendRange",qe[qe.DateFormat=10]="DateFormat",qe[qe.TimeFormat=11]="TimeFormat",qe[qe.DateTimeFormat=12]="DateTimeFormat",qe[qe.NumberSymbols=13]="NumberSymbols",qe[qe.NumberFormats=14]="NumberFormats",qe[qe.CurrencyCode=15]="CurrencyCode",qe[qe.CurrencySymbol=16]="CurrencySymbol",qe[qe.CurrencyName=17]="CurrencyName",qe[qe.Currencies=18]="Currencies",qe[qe.Directionality=19]="Directionality",qe[qe.PluralCase=20]="PluralCase",qe[qe.ExtraData=21]="ExtraData",qe))();const BD=["zero","one","two","few","many"],Sl="en-US",Ml={marker:"element"},Tl={marker:"ICU"};var cn=(()=>((cn=cn||{})[cn.SHIFT=2]="SHIFT",cn[cn.APPEND_EAGERLY=1]="APPEND_EAGERLY",cn[cn.COMMENT=2]="COMMENT",cn))();let Og=Sl;function Yc(e){(function(e,t){null==e&&it(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Og=e.toLowerCase().replace(/_/g,"-"))}function Pg(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?th(e,0,n):we(n[i])}function Rg(e,t,n,r,i){const o=t.insertBeforeIndex;if(Array.isArray(o)){let s=r,a=null;if(3&t.type||(a=s,s=i),null!==s&&0==(2&t.flags))for(let d=1;d1)for(let n=e.length-2;n>=0;n--){const r=e[n];xg(r)||GD(r,t)&&null===WD(r)&&zD(r,t.index)}}function xg(e){return!(64&e.type)}function GD(e,t){return xg(t)||e.index>t.index}function WD(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function zD(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(rh(Pg,Rg),e.insertBeforeIndex=t)}function ma(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function ZD(e,t,n){const r=ic(e,n,64,null,null);return Ng(t,r),r}function Il(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Fg(e){return e>>>17}function Lg(e){return(131070&e)>>>1}let ya=0,va=0;function Vg(e,t,n,r){const i=n[11];let s,o=null;for(let a=0;a>>1,n),null,null,k,j,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${d}"`)}else switch(d){case Tl:const g=t[++a],D=t[++a];null===n[D]&&Qn(n[D]=L_(i,g),n);break;case Ml:const T=t[++a],I=t[++a];null===n[I]&&Qn(n[I]=ju(i,T,null),n)}}}function Ug(e,t,n,r,i){for(let o=0;o>>2;switch(3&D){case 1:const I=n[++g],k=n[++g],j=e.data[T];"string"==typeof j?lc(t[11],t[T],null,j,I,d,k):Cr(e,j,t,I,d,t[11],k,!1);break;case 0:const Q=t[T];null!==Q&&Kf(t[11],Q,d);break;case 2:e0(e,ma(e,T),t,d);break;case 3:Bg(e,ma(e,T),r,t)}}}}else{const d=n[o+1];if(d>0&&3==(3&d)){const D=ma(e,d>>>2);t[D.currentCaseLViewIndex]<0&&Bg(e,D,r,t)}}o+=a}}function Bg(e,t,n,r){let i=r[t.currentCaseLViewIndex];if(null!==i){let o=ya;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),Ug(e,r,t.update[i],n,o)}}function e0(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=Tg(t)(parseInt(e,10)),r=BD[n];return void 0!==r?r:"other"}(t,Og);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(Il(t,n)!==i&&($g(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const s=n[t.anchorIdx];s&&Vg(e,t.create[i],n,s)}}function $g(e,t,n){let r=Il(t,n);if(null!==r){const i=t.remove[r];for(let o=0;o0){const a=Jt(s,n);null!==a&&oh(n[11],a)}else $g(e,ma(e,~s),n)}}}function n0(){const e=[];let n,r,t=-1;function o(a,d){t=0;const g=Il(a,d);r=null!==g?a.remove[g]:mt}function s(){if(t0?n[a]:(e.push(t,r),o(n[1].data[~a],n),s())}return 0===e.length?null:(r=e.pop(),t=e.pop(),s())}return function(a,d){for(n=d;e.length;)e.pop();return o(a.value,d),s}}const Ol=/\ufffd(\d+):?\d*\ufffd/gi,i0=/\ufffd(\d+)\ufffd/,Hg=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,o0=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,s0=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,a0=/\uE500/g;function Gg(e,t,n,r,i,o,s){const a=is(e,r,1,null);let d=a<n.length&&n.push(d)}return{type:r,mainBinding:i,cases:t,values:n}}function Zc(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(e);){const a=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const d=e.substring(t,a);Hg.test(d)?r.push(g0(d)):r.push(d),t=a+1}}else{if(0==n.length){const d=e.substring(t,a);r.push(d),t=a+1}n.push("{")}}const s=e.substring(t);return r.push(s),r}function m0(e,t,n,r,i,o,s,a){const d=[],g=[],D=[];t.cases.push(o),t.create.push(d),t.remove.push(g),t.update.push(D);const I=Df(Dt()).getInertBodyElement(s),k=Ru(I)||I;return k?Yg(e,t,n,r,d,g,D,k,i,a,0):0}function Yg(e,t,n,r,i,o,s,a,d,g,D){let T=0,I=a.firstChild;for(;I;){const k=is(e,n,1,null);switch(I.nodeType){case Node.ELEMENT_NODE:const j=I,Q=j.tagName.toLowerCase();if(Iu.hasOwnProperty(Q)){qc(i,Ml,Q,d,k),e.data[k]=Q;const ke=j.attributes;for(let Qe=0;Qe>>cn.SHIFT;let T=e[D];null===T&&(T=e[D]=d?i.createComment(a):$u(i,a)),g&&null!==n&&_o(i,n,T,r,!1)}})(i,d.create,D,a&&8&a.type?i[a.index]:null),Bs(!0)}function Jc(){Bs(!1)}function Qg(e,t,n){Qc(e,t,n),Jc()}function Xc(e){return function(e){e&&(ya|=1<0){const r=e.data[n];Ug(e,t,Array.isArray(r)?r:r.update,yr()-va-1,ya)}ya=0,va=0}(_t(),ve(),e+20)}function Xg(e,t={}){return function(e,t={}){let n=e;if(E0.test(e)){const r={},i=[0];n=n.replace(D0,(o,s,a)=>{const d=s||a,g=r[d]||[];if(g.length||(d.split("|").forEach(Q=>{const z=Q.match(M0),Ce=z?parseInt(z[1],10):0,de=S0.test(Q);g.push([Ce,de,Q])}),r[d]=g),!g.length)throw new Error(`i18n postprocess: unmatched placeholder - ${d}`);const D=i[i.length-1];let T=0;for(let Q=0;Qt.hasOwnProperty(o)?`${i}${t[o]}${d}`:r),n=n.replace(w0,(r,i)=>t.hasOwnProperty(i)?t[i]:r),n=n.replace(A0,(r,i)=>{if(t.hasOwnProperty(i)){const o=t[i];if(!o.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${i}`);return o.shift()}return r})),n}(e,t)}function ed(e,t,n,r,i){if(e=he(e),Array.isArray(e))for(let o=0;o>20;if(ls(e)||!e.multi){const k=new Qi(d,i,pa),j=nd(a,t,i?D:D+I,T);-1===j?(N(l(g,s),o,a),td(o,e,t.length),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(k),s.push(k)):(n[j]=k,s[j]=k)}else{const k=nd(a,t,D+I,T),j=nd(a,t,D,D+I),Q=k>=0&&n[k],z=j>=0&&n[j];if(i&&!z||!i&&!Q){N(l(g,s),o,a);const Ce=function(e,t,n,r,i){const o=new Qi(e,n,pa);return o.multi=[],o.index=t,o.componentProviders=0,em(o,i,r&&!n),o}(i?R0:P0,n.length,i,r,d);!i&&z&&(n[j].providerFactory=Ce),td(o,e,t.length,0),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(Ce),s.push(Ce)}else td(o,e,k>-1?k:j,em(n[i?j:k],d,!i&&r));!i&&r&&z&&n[j].componentProviders++}}}function td(e,t,n,r){const i=ls(t);if(i||function(e){return!!e.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const d=a.indexOf(n);-1===d?a.push(n,[r,s]):a[d+1].push(r,s)}else a.push(n,s)}}}function em(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function nd(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>function(e,t,n){const r=_t();if(r.firstCreatePass){const i=Pt(e);ed(n,r.data,r.blueprint,i,!0),ed(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class nm{}const im="ngComponent";class F0{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${Me(e)}. Did you add it to @NgModule.entryComponents?`);return t[im]=e,t}(t)}}class Do{}function Pl(...e){}function bs(e,t){return new Oi(zt(e,t))}Do.NULL=new F0;const V0=function(){return bs(pn(),ve())};let Oi=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=V0,e})();function om(e){return e instanceof Oi?e.nativeElement:e}class Rl{}let U0=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>$0(),e})();const $0=function(){const e=ve(),n=bn(pn().index,e);return function(e){return e[11]}(sn(n)?n:e)};let od=(()=>{class e{}return e.\u0275prov=xt({token:e,providedIn:"root",factory:()=>null}),e})();class sm{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const am=new sm("12.2.4");class lm{constructor(){}supports(t){return fa(t)}create(t){return new W0(t)}}const G0=(e,t)=>t;class W0{constructor(t){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=t||G0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new z0(n,r),o,i),t}_verifyReinsertion(t,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new um),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new um),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class z0{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class K0{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class um{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new K0,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cm(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new Z0(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class Z0{constructor(t){this.key=t,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 fm(){return new Nl([new lm])}let Nl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||fm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:fm}),e})();function hm(){return new xl([new dm])}let xl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||hm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:hm}),e})();function Fl(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(we(o)),Dn(o))for(let a=10;a-1&&(Hu(t,r),mo(n,r))}this._attachedToViewContainer=!1}Zf(this._lView[1],this._lView)}onDestroy(t){Oh(this._lView[1],this._lView,null,t)}markForCheck(){cc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){fc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Po(!0);try{fc(e,t,n)}finally{Po(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,sa(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Q0 extends Ca{constructor(t){super(t),this._view=t}detectChanges(){Uh(this._view)}checkNoChanges(){!function(e){Po(!0);try{Uh(e)}finally{Po(!1)}}(this._view)}get context(){return null}}const X0=function(e){return function(e,t,n){if(Mr(e)&&!n){const r=bn(e.index,t);return new Ca(r,r)}return 47&e.type?new Ca(t[16],t):null}(pn(),ve(),16==(16&e))};let eb=(()=>{class e{}return e.__NG_ELEMENT_ID__=X0,e})();const rb=[new dm],ob=new Nl([new lm]),sb=new xl(rb),lb=function(){return Ll(pn(),ve())};let Ea=(()=>{class e{}return e.__NG_ELEMENT_ID__=lb,e})();const ub=Ea,cb=class extends ub{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=aa(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(n)),la(n,r,t),new Ca(r)}};function Ll(e,t){return 4&e.type?new cb(t,e,bs(e,t)):null}class bo{}class pm{}const hb=function(){return ym(pn(),ve())};let kl=(()=>{class e{}return e.__NG_ELEMENT_ID__=hb,e})();const gb=kl,gm=class extends gb{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return bs(this._hostTNode,this._hostLView)}get injector(){return new sr(this._hostTNode,this._hostLView)}get parentInjector(){const t=b(this._hostTNode,this._hostLView);if(Ja(t)){const n=Ei(t,this._hostLView),r=Ji(t);return new sr(n[1].data[r+8],n)}return new sr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=mm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const i=t.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(t,n,r,i,o){const s=r||this.parentInjector;if(!o&&null==t.ngModule&&s){const d=s.get(bo,null);d&&(o=d)}const a=t.create(s,i,void 0,o);return this.insert(a.hostView,n),a}insert(t,n){const r=t._lView,i=r[1];if(Dn(r[3])){const D=this.indexOf(t);if(-1!==D)this.detach(D);else{const T=r[3],I=new gm(T,T[6],T[3]);I.detach(I.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;!function(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r$f});class Um extends nm{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(iC).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Vm(this.componentDef.inputs)}get outputs(){return Vm(this.componentDef.outputs)}create(t,n,r,i){const o=(i=i||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const o=e.get(n,Ms,i);return o!==Ms||r===Ms?o:t.get(n,r,i)}}}(t,i.injector):t,s=o.get(Rl,M),a=o.get(od,null),d=s.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",D=r?function(e,t,n){if(m(e))return e.selectRootElement(t,n===Le.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(d,r,this.componentDef.encapsulation):ju(s.createRenderer(null,this.componentDef),g,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(g)),T=this.componentDef.onPush?576:528,I=function(e,t){return{components:[],scheduler:e||$f,clean:jC,playerHandler:t||null,flags:0}}(),k=yl(0,null,null,1,0,null,null,null,null,null),j=aa(null,k,I,T,null,null,s,d,a,o);let Q,z;Ro(j);try{const Ce=function(e,t,n,r,i,o){const s=n[1];n[20]=e;const d=rs(s,20,2,"#host",null),g=d.mergedAttrs=t.hostAttrs;null!==g&&(_l(d,g,!0),null!==e&&(Bo(i,e,g),null!==d.classes&&Yu(i,e,d.classes),null!==d.styles&&ah(i,e,d.styles)));const D=r.createRenderer(e,t),T=aa(n,Mh(t),null,t.onPush?64:16,n[20],d,r,D,o||null,null);return s.firstCreatePass&&(N(l(d,n),s,t.type),Fh(s,d),Lh(d,n.length,1)),vl(n,T),n[20]=T}(D,this.componentDef,j,s,d);if(D)if(r)Bo(d,D,["ng-version",am.full]);else{const{attrs:de,classes:ke}=function(e){const t=[],n=[];let r=1,i=2;for(;r0&&Yu(d,D,ke.join(" "))}if(z=Nr(k,20),void 0!==n){const de=z.projection=[];for(let ke=0;ked(s,t)),t.contentQueries){const d=pn();t.contentQueries(1,s,d.directiveStart)}const a=pn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ei(a.index),Nh(n[1],a,0,a.directiveStart,a.directiveEnd,t),xh(t,s)),s}(Ce,this.componentDef,j,I,[pE]),la(k,j,null)}finally{xo()}return new pw(this.componentType,Q,bs(z,j),j,z)}}class pw extends class{}{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new Q0(i),this.componentType=t}get injector(){return new sr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Ts=new Map;class yw extends bo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new km(this);const r=Yt(t),i=t[Wr]||null;i&&Yc(i),this._bootstrapComponents=wi(r.bootstrap),this._r3Injector=Kh(t,n,[{provide:bo,useValue:this},{provide:Do,useValue:this.componentFactoryResolver}],Me(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Vt.THROW_IF_NOT_FOUND,r=se.Default){return t===Vt||t===bo||t===ss?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class _d extends pm{constructor(t){super(),this.moduleType=t,null!==Yt(t)&&function(e){const t=new Set;!function n(r){const i=Yt(r,!0),o=i.id;null!==o&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${Me(t)} vs ${Me(t.name)}`)}(o,Ts.get(o),r),Ts.set(o,r));const s=wi(i.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new yw(this.moduleType,t)}}function jm(e,t,n){const r=Hn()+e,i=ve();return i[r]===dt?Mi(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function Hm(e,t,n,r){return function(e,t,n,r,i,o){const s=t+n;return Jn(e,s,i)?Mi(e,s+1,o?r.call(o,i):r(i)):Ia(e,s+1)}(ve(),Hn(),e,t,n,r)}function Ia(e,t){const n=e[t];return n===dt?void 0:n}function Zm(e,t){const n=_t();let r;const i=e+20;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new $e("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Pr(r.type)),s=St(pa);try{const a=jo(!1),d=o();return jo(a),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,ve(),i,d),d}finally{St(s)}}function qm(e,t,n,r){const i=e+20,o=ve(),s=mr(o,i);return function(e,t){si.isWrapped(t)&&(t=si.unwrap(t),e[yr()]=dt);return t}(o,function(e,t){return e[1].data[t].pure}(o,i)?function(e,t,n,r,i,o,s){const a=t+n;return Co(e,a,i,o)?Mi(e,a+2,s?r.call(s,i,o):r(i,o)):Ia(e,a+2)}(o,Hn(),t,s.transform,n,r,s):s.transform(n,r))}function Cd(e){return t=>{setTimeout(e,void 0,t)}}const Pi=class extends K.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,o,s;let a=t,d=n||(()=>null),g=r;if(t&&"object"==typeof t){const T=t;a=null===(i=T.next)||void 0===i?void 0:i.bind(T),d=null===(o=T.error)||void 0===o?void 0:o.bind(T),g=null===(s=T.complete)||void 0===s?void 0:s.bind(T)}this.__isAsync&&(d=Cd(d),a&&(a=Cd(a)),g&&(g=Cd(g)));const D=super.subscribe({next:a,error:d,complete:g});return t instanceof P.w0&&t.add(D),D}};function Rw(){return this._results[us()]()}class jl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=us(),r=jl.prototype;r[n]||(r[n]=Rw)}get changes(){return this._changes||(this._changes=new Pi)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=kr(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0)r.push(s[a/2]);else{const g=o[a+1],D=t[-d];for(let T=10;T{class e{constructor(n){this.appInits=n,this.resolve=Pl,this.reject=Pl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:d})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(_n(Pd,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const wy=new ln("AppId"),hA={provide:wy,useFactory:function(){return`${Rd()}${Rd()}${Rd()}`},deps:[]};function Rd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ay=new ln("Platform Initializer"),Sy=new ln("Platform ID"),My=new ln("appBootstrapListener");let Ty=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const Wl=new ln("LocaleId"),Iy=new ln("DefaultCurrencyCode");class gA{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Nd=function(e){return new _d(e)},mA=Nd,yA=function(e){return Promise.resolve(Nd(e))},Oy=function(e){const t=Nd(e),r=wi(Yt(e).declarations).reduce((i,o)=>{const s=qt(o);return s&&i.push(new Um(s)),i},[]);return new gA(t,r)},vA=Oy,_A=function(e){return Promise.resolve(Oy(e))};let Na=(()=>{class e{constructor(){this.compileModuleSync=mA,this.compileModuleAsync=yA,this.compileModuleAndAllComponentsSync=vA,this.compileModuleAndAllComponentsAsync=_A}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const DA=(()=>Promise.resolve(0))();function xd(e){"undefined"==typeof Zone?DA.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Er{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pi(!1),this.onMicrotaskEmpty=new Pi(!1),this.onStable=new Pi(!1),this.onError=new Pi(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let e=nt.requestAnimationFrame,t=nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(nt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ld(e),e.isCheckStableRunning=!0,Fd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ld(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return Py(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Ry(e)}},onInvoke:(n,r,i,o,s,a,d)=>{try{return Py(e),n.invoke(i,o,s,a,d)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ry(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Ld(e),Fd(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Er.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Er.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,wA,Pl,Pl);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const wA={};function Fd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ld(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Py(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ry(e){e._nesting--,Fd(e)}class MA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pi,this.onMicrotaskEmpty=new Pi,this.onStable=new Pi,this.onError=new Pi}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}let Ny=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Er.assertNotInAngularZone(),xd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())xd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(_n(Er))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})(),xy=(()=>{class e{constructor(){this._applications=new Map,kd.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return kd.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();class TA{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function IA(e){kd=e}let kd=new TA,Fy=!0,Ly=!1;function OA(){if(Ly)throw new Error("Cannot enable prod mode after platform setup.");Fy=!1}let di;const Vy=new ln("AllowMultipleToken");class kA{constructor(t,n){this.name=t,this.token=n}}function Uy(e,t,n=[]){const r=`Platform: ${t}`,i=new ln(r);return(o=[])=>{let s=By();if(!s||s.injector.get(Vy,!1))if(e)e(n.concat(o).concat({provide:i,useValue:!0}));else{const a=n.concat(o).concat({provide:i,useValue:!0},{provide:ua,useValue:"platform"});!function(e){if(di&&!di.destroyed&&!di.injector.get(Vy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");di=e.get($y);const t=e.get(Ay,null);t&&t.forEach(n=>n())}(Vt.create({providers:a,name:r}))}return function(e){const t=By();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function By(){return di&&!di.destroyed?di:null}let $y=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(e,t){let n;return n="noop"===e?new MA:("zone.js"===e?void 0:e)||new Er({enableLongStackTrace:(Ly=!0,Fy),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),d=[{provide:Er,useValue:a}];return a.run(()=>{const g=Vt.create({providers:d,parent:this.injector,name:n.moduleType.name}),D=n.create(g),T=D.injector.get(es,null);if(!T)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const I=a.onError.subscribe({next:k=>{T.handleError(k)}});D.onDestroy(()=>{Vd(this._modules,D),I.unsubscribe()})}),function(e,t,n){try{const r=n();return Fc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(T,a,()=>{const I=D.injector.get(Os);return I.runInitializers(),I.donePromise.then(()=>(Yc(D.injector.get(Wl,Sl)||Sl),this._moduleDoBootstrap(D),D))})})}bootstrapModule(n,r=[]){const i=jy({},r);return function(e,t,n){const r=new _d(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(xa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${Me(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(_n(Vt))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function jy(e,t){return Array.isArray(t)?t.reduce(jy,e):Object.assign(Object.assign({},e),t)}let xa=(()=>{class e{constructor(n,r,i,o,s){this._zone=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new x.y(g=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{g.next(this._stable),g.complete()})}),d=new x.y(g=>{let D;this._zone.runOutsideAngular(()=>{D=this._zone.onStable.subscribe(()=>{Er.assertNotInAngularZone(),xd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,g.next(!0))})})});const T=this._zone.onUnstable.subscribe(()=>{Er.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{g.next(!1)}))});return()=>{D.unsubscribe(),T.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t{this.detachView(a.hostView),Vd(this.components,a),D&&D.unregisterApplication(d)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Vd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(My,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(_n(Er),_n(Vt),_n(es),_n(Do),_n(Os))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function Vd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class HA{}class WA{}const zA={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let KA=(()=>{class e{constructor(n,r){this._compiler=n,this._config=r||zA}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,i]=n.split("#");return void 0===i&&(i="default"),O(8255)(r).then(o=>o[i]).then(o=>zy(o,r,i)).then(o=>this._compiler.compileModuleAsync(o))}loadFactory(n){let[r,i]=n.split("#"),o="NgFactory";return void 0===i&&(i="default",o=""),O(8255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(s=>s[i+o]).then(s=>zy(s,r,i))}}return e.\u0275fac=function(n){return new(n||e)(_n(Na),_n(WA,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function zy(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const tS=function(e){return null},rS=Uy(null,"core",[{provide:Sy,useValue:"unknown"},{provide:$y,deps:[Vt]},{provide:xy,deps:[]},{provide:Ty,deps:[]}]),lS=[{provide:xa,useClass:xa,deps:[Er,Vt,es,Do,Os]},{provide:dw,deps:[Er],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Os,useClass:Os,deps:[[new $i,Pd]]},{provide:Na,useClass:Na,deps:[]},hA,{provide:Nl,useFactory:function(){return ob},deps:[]},{provide:xl,useFactory:function(){return sb},deps:[]},{provide:Wl,useFactory:function(e){return Yc(e=e||"undefined"!=typeof $localize&&$localize.locale||Sl),e},deps:[[new qo(Wl),new $i,new to]]},{provide:Iy,useValue:"USD"}];let cS=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(_n(xa))},e.\u0275mod=yn({type:e}),e.\u0275inj=Ft({providers:lS}),e})()},3092:(Ye,me,O)=>{"use strict";O.d(me,{Fj:()=>We,NI:()=>Yt,u:()=>Zr,cw:()=>dr,sg:()=>sn,u5:()=>B,nD:()=>gr,JJ:()=>G,JL:()=>W,F:()=>ut,On:()=>hn,YN:()=>xi,wV:()=>Bn,_:()=>ir,UX:()=>oe,Q7:()=>Ir,EJ:()=>qr,_Y:()=>Ht,Kr:()=>F});var y=O(476),u=O(8583),ce=O(1776),re=O(1260),te=O(5929),J=O(9528),K=O(5076),P=O(9607),x=O(5526),Y=O(5207);let ae=(()=>{class E{constructor(h,M){this._renderer=h,this._elementRef=M,this.onChange=Z=>{},this.onTouched=()=>{}}setProperty(h,M){this._renderer.setProperty(this._elementRef.nativeElement,h,M)}registerOnTouched(h){this.onTouched=h}registerOnChange(h){this.onChange=h}setDisabledState(h){this.setProperty("disabled",h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq))},E.\u0275dir=y.lG2({type:E}),E})(),Ee=(()=>{class E extends ae{}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();const De=new y.OlP("NgValueAccessor"),He={provide:De,useExisting:(0,y.Gpc)(()=>We),multi:!0},Ge=new y.OlP("CompositionEventMode");let We=(()=>{class E extends ae{constructor(h,M,Z){super(h,M),this._compositionMode=Z,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const E=(0,u.q)()?(0,u.q)().getUserAgent():"";return/android (\d+)/.test(E.toLowerCase())}())}writeValue(h){this.setProperty("value",null==h?"":h)}_handleInput(h){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(h)}_compositionStart(){this._composing=!0}_compositionEnd(h){this._composing=!1,this._compositionMode&&this.onChange(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ge,8))},E.\u0275dir=y.lG2({type:E,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M._handleInput(we.target.value)})("blur",function(){return M.onTouched()})("compositionstart",function(){return M._compositionStart()})("compositionend",function(we){return M._compositionEnd(we.target.value)})},features:[y._Bn([He]),y.qOj]}),E})();const Ke=new y.OlP("NgValidators"),bt=new y.OlP("NgAsyncValidators");function Te(E){return null}function be(E){return null!=E}function Ve(E){const m=(0,y.QGY)(E)?(0,te.Dp)(E):E;return(0,y.CqO)(m),m}function Xe(E){let m={};return E.forEach(h=>{m=null!=h?Object.assign(Object.assign({},m),h):m}),0===Object.keys(m).length?null:m}function rt(E,m){return m.map(h=>h(E))}function jt(E){return E.map(m=>function(E){return!E.validate}(m)?m:h=>m.validate(h))}function Tt(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return Xe(rt(h,m))}}(jt(E)):null}function yt(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return function(){for(var E=[],m=0;m{Cn(h,Z)||h.push(Z)}),h}function xt(E,m){return mn(m).filter(h=>!Cn(E,h))}let Hr=(()=>{class E{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(h){this._rawValidators=h||[],this._composedValidatorFn=Tt(this._rawValidators)}_setAsyncValidators(h){this._rawAsyncValidators=h||[],this._composedAsyncValidatorFn=yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(h){this._onDestroyCallbacks.push(h)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(h=>h()),this._onDestroyCallbacks=[]}reset(h){this.control&&this.control.reset(h)}hasError(h,M){return!!this.control&&this.control.hasError(h,M)}getError(h,M){return this.control?this.control.getError(h,M):null}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E}),E})(),Ft=(()=>{class E extends Hr{get formDirective(){return null}get path(){return null}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();class gt extends Hr{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class tr{constructor(m){this._cd=m}is(m){var h,M,Z;return"submitted"===m?!!(null===(h=this._cd)||void 0===h?void 0:h.submitted):!!(null===(Z=null===(M=this._cd)||void 0===M?void 0:M.control)||void 0===Z?void 0:Z[m])}}let G=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(gt,2))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))},features:[y.qOj]}),E})(),W=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))("ng-submitted",M.is("submitted"))},features:[y.qOj]}),E})();function Sn(E,m){return[...m.path,E]}function Le(E,m){nr(E,m),m.valueAccessor.writeValue(E.value),function(E,m){m.valueAccessor.registerOnChange(h=>{E._pendingValue=h,E._pendingChange=!0,E._pendingDirty=!0,"change"===E.updateOn&&xn(E,m)})}(E,m),function(E,m){const h=(M,Z)=>{m.valueAccessor.writeValue(M),Z&&m.viewToModelUpdate(M)};E.registerOnChange(h),m._registerOnDestroy(()=>{E._unregisterOnChange(h)})}(E,m),function(E,m){m.valueAccessor.registerOnTouched(()=>{E._pendingTouched=!0,"blur"===E.updateOn&&E._pendingChange&&xn(E,m),"submit"!==E.updateOn&&E.markAsTouched()})}(E,m),function(E,m){if(m.valueAccessor.setDisabledState){const h=M=>{m.valueAccessor.setDisabledState(M)};E.registerOnDisabledChange(h),m._registerOnDestroy(()=>{E._unregisterOnDisabledChange(h)})}}(E,m)}function Ut(E,m,h=!0){const M=()=>{};m.valueAccessor&&(m.valueAccessor.registerOnChange(M),m.valueAccessor.registerOnTouched(M)),nt(E,m),E&&(m._invokeOnDestroyCallbacks(),E._registerOnCollectionChange(()=>{}))}function rn(E,m){E.forEach(h=>{h.registerOnValidatorChange&&h.registerOnValidatorChange(m)})}function nr(E,m){const h=It(E);null!==m.validator?E.setValidators(gn(h,m.validator)):"function"==typeof h&&E.setValidators([h]);const M=it(E);null!==m.asyncValidator?E.setAsyncValidators(gn(M,m.asyncValidator)):"function"==typeof M&&E.setAsyncValidators([M]);const Z=()=>E.updateValueAndValidity();rn(m._rawValidators,Z),rn(m._rawAsyncValidators,Z)}function nt(E,m){let h=!1;if(null!==E){if(null!==m.validator){const Z=It(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.validator);we.length!==Z.length&&(h=!0,E.setValidators(we))}}if(null!==m.asyncValidator){const Z=it(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.asyncValidator);we.length!==Z.length&&(h=!0,E.setAsyncValidators(we))}}}const M=()=>{};return rn(m._rawValidators,M),rn(m._rawAsyncValidators,M),h}function xn(E,m){E._pendingDirty&&E.markAsDirty(),E.setValue(E._pendingValue,{emitModelToViewChange:!1}),m.viewToModelUpdate(E._pendingValue),E._pendingChange=!1}function cr(E,m){nr(E,m)}function Wr(E,m){if(!E.hasOwnProperty("model"))return!1;const h=E.model;return!!h.isFirstChange()||!Object.is(m,h.currentValue)}function Fn(E,m){E._syncPendingControls(),m.forEach(h=>{const M=h.control;"submit"===M.updateOn&&M._pendingChange&&(h.viewToModelUpdate(M._pendingValue),M._pendingChange=!1)})}function Kn(E,m){if(!m)return null;let h,M,Z;return Array.isArray(m),m.forEach(we=>{we.constructor===We?h=we:function(E){return Object.getPrototypeOf(E.constructor)===Ee}(we)?M=we:Z=we}),Z||M||h||null}function et(E,m){const h=E.indexOf(m);h>-1&&E.splice(h,1)}const In="VALID",En="INVALID",Ln="PENDING",yn="DISABLED";function Kr(E){return(dn(E)?E.validators:E)||null}function rr(E){return Array.isArray(E)?Tt(E):E||null}function Yn(E,m){return(dn(m)?m.asyncValidators:E)||null}function qt(E){return Array.isArray(E)?yt(E):E||null}function dn(E){return null!=E&&!Array.isArray(E)&&"object"==typeof E}class On{constructor(m,h){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=m,this._rawAsyncValidators=h,this._composedValidatorFn=rr(this._rawValidators),this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(m){this._rawValidators=this._composedValidatorFn=m}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(m){this._rawAsyncValidators=this._composedAsyncValidatorFn=m}get parent(){return this._parent}get valid(){return this.status===In}get invalid(){return this.status===En}get pending(){return this.status==Ln}get disabled(){return this.status===yn}get enabled(){return this.status!==yn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(m){this._rawValidators=m,this._composedValidatorFn=rr(m)}setAsyncValidators(m){this._rawAsyncValidators=m,this._composedAsyncValidatorFn=qt(m)}addValidators(m){this.setValidators(Nn(m,this._rawValidators))}addAsyncValidators(m){this.setAsyncValidators(Nn(m,this._rawAsyncValidators))}removeValidators(m){this.setValidators(xt(m,this._rawValidators))}removeAsyncValidators(m){this.setAsyncValidators(xt(m,this._rawAsyncValidators))}hasValidator(m){return Cn(this._rawValidators,m)}hasAsyncValidator(m){return Cn(this._rawAsyncValidators,m)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(m={}){this.touched=!0,this._parent&&!m.onlySelf&&this._parent.markAsTouched(m)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(m=>m.markAllAsTouched())}markAsUntouched(m={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(h=>{h.markAsUntouched({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}markAsDirty(m={}){this.pristine=!1,this._parent&&!m.onlySelf&&this._parent.markAsDirty(m)}markAsPristine(m={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(h=>{h.markAsPristine({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}markAsPending(m={}){this.status=Ln,!1!==m.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!m.onlySelf&&this._parent.markAsPending(m)}disable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=yn,this.errors=null,this._forEachChild(M=>{M.disable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this._updateValue(),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!0))}enable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=In,this._forEachChild(M=>{M.enable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!1))}_updateAncestors(m){this._parent&&!m.onlySelf&&(this._parent.updateValueAndValidity(m),m.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(m){this._parent=m}updateValueAndValidity(m={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===In||this.status===Ln)&&this._runAsyncValidator(m.emitEvent)),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!m.onlySelf&&this._parent.updateValueAndValidity(m)}_updateTreeValidity(m={emitEvent:!0}){this._forEachChild(h=>h._updateTreeValidity(m)),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yn:In}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(m){if(this.asyncValidator){this.status=Ln,this._hasOwnPendingAsyncValidator=!0;const h=Ve(this.asyncValidator(this));this._asyncValidationSubscription=h.subscribe(M=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(M,{emitEvent:m})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(m,h={}){this.errors=m,this._updateControlsErrors(!1!==h.emitEvent)}get(m){return function(E,m,h){if(null==m||(Array.isArray(m)||(m=m.split(".")),Array.isArray(m)&&0===m.length))return null;let M=E;return m.forEach(Z=>{M=M instanceof dr?M.controls.hasOwnProperty(Z)?M.controls[Z]:null:M instanceof fn&&M.at(Z)||null}),M}(this,m)}getError(m,h){const M=h?this.get(h):this;return M&&M.errors?M.errors[m]:null}hasError(m,h){return!!this.getError(m,h)}get root(){let m=this;for(;m._parent;)m=m._parent;return m}_updateControlsErrors(m){this.status=this._calculateStatus(),m&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(m)}_initObservables(){this.valueChanges=new y.vpe,this.statusChanges=new y.vpe}_calculateStatus(){return this._allControlsDisabled()?yn:this.errors?En:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ln)?Ln:this._anyControlsHaveStatus(En)?En:In}_anyControlsHaveStatus(m){return this._anyControls(h=>h.status===m)}_anyControlsDirty(){return this._anyControls(m=>m.dirty)}_anyControlsTouched(){return this._anyControls(m=>m.touched)}_updatePristine(m={}){this.pristine=!this._anyControlsDirty(),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}_updateTouched(m={}){this.touched=this._anyControlsTouched(),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}_isBoxedValue(m){return"object"==typeof m&&null!==m&&2===Object.keys(m).length&&"value"in m&&"disabled"in m}_registerOnCollectionChange(m){this._onCollectionChange=m}_setUpdateStrategy(m){dn(m)&&null!=m.updateOn&&(this._updateOn=m.updateOn)}_parentMarkedDirty(m){return!m&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Yt extends On{constructor(m=null,h,M){super(Kr(h),Yn(M,h)),this._onChange=[],this._applyFormState(m),this._setUpdateStrategy(h),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(m,h={}){this.value=this._pendingValue=m,this._onChange.length&&!1!==h.emitModelToViewChange&&this._onChange.forEach(M=>M(this.value,!1!==h.emitViewToModelChange)),this.updateValueAndValidity(h)}patchValue(m,h={}){this.setValue(m,h)}reset(m=null,h={}){this._applyFormState(m),this.markAsPristine(h),this.markAsUntouched(h),this.setValue(this.value,h),this._pendingChange=!1}_updateValue(){}_anyControls(m){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(m){this._onChange.push(m)}_unregisterOnChange(m){et(this._onChange,m)}registerOnDisabledChange(m){this._onDisabledChange.push(m)}_unregisterOnDisabledChange(m){et(this._onDisabledChange,m)}_forEachChild(m){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(m){this._isBoxedValue(m)?(this.value=this._pendingValue=m.value,m.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=m}}class dr extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(m,h){return this.controls[m]?this.controls[m]:(this.controls[m]=h,h.setParent(this),h._registerOnCollectionChange(this._onCollectionChange),h)}addControl(m,h,M={}){this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}removeControl(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],h&&this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}contains(m){return this.controls.hasOwnProperty(m)&&this.controls[m].enabled}setValue(m,h={}){this._checkAllValuesPresent(m),Object.keys(m).forEach(M=>{this._throwIfControlMissing(M),this.controls[M].setValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(Object.keys(m).forEach(M=>{this.controls[M]&&this.controls[M].patchValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m={},h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this._reduceChildren({},(m,h,M)=>(m[M]=h instanceof Yt?h.value:h.getRawValue(),m))}_syncPendingControls(){let m=this._reduceChildren(!1,(h,M)=>!!M._syncPendingControls()||h);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[m])throw new Error(`Cannot find form control with name: ${m}.`)}_forEachChild(m){Object.keys(this.controls).forEach(h=>{const M=this.controls[h];M&&m(M,h)})}_setUpControls(){this._forEachChild(m=>{m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(m){for(const h of Object.keys(this.controls)){const M=this.controls[h];if(this.contains(h)&&m(M))return!0}return!1}_reduceValue(){return this._reduceChildren({},(m,h,M)=>((h.enabled||this.disabled)&&(m[M]=h.value),m))}_reduceChildren(m,h){let M=m;return this._forEachChild((Z,we)=>{M=h(M,Z,we)}),M}_allControlsDisabled(){for(const m of Object.keys(this.controls))if(this.controls[m].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control with name: '${M}'.`)})}}class fn extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(m){return this.controls[m]}push(m,h={}){this.controls.push(m),this._registerControl(m),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}insert(m,h,M={}){this.controls.splice(m,0,h),this._registerControl(h),this.updateValueAndValidity({emitEvent:M.emitEvent})}removeAt(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),this.updateValueAndValidity({emitEvent:h.emitEvent})}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),h&&(this.controls.splice(m,0,h),this._registerControl(h)),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(m,h={}){this._checkAllValuesPresent(m),m.forEach((M,Z)=>{this._throwIfControlMissing(Z),this.at(Z).setValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(m.forEach((M,Z)=>{this.at(Z)&&this.at(Z).patchValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m=[],h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this.controls.map(m=>m instanceof Yt?m.value:m.getRawValue())}clear(m={}){this.controls.length<1||(this._forEachChild(h=>h._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:m.emitEvent}))}_syncPendingControls(){let m=this.controls.reduce((h,M)=>!!M._syncPendingControls()||h,!1);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(m))throw new Error(`Cannot find form control at index ${m}`)}_forEachChild(m){this.controls.forEach((h,M)=>{m(h,M)})}_updateValue(){this.value=this.controls.filter(m=>m.enabled||this.disabled).map(m=>m.value)}_anyControls(m){return this.controls.some(h=>h.enabled&&m(h))}_setUpControls(){this._forEachChild(m=>this._registerControl(m))}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control at index: ${M}.`)})}_allControlsDisabled(){for(const m of this.controls)if(m.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(m){m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)}}const Ie={provide:Ft,useExisting:(0,y.Gpc)(()=>ut)},ht=(()=>Promise.resolve(null))();let ut=(()=>{class E extends Ft{constructor(h,M){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new y.vpe,this.form=new dr({},Tt(h),yt(M))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(h){ht.then(()=>{const M=this._findContainer(h.path);h.control=M.registerControl(h.name,h.control),Le(h.control,h),h.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(h)})}getControl(h){return this.form.get(h.path)}removeControl(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name),et(this._directives,h)})}addFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path),Z=new dr({});cr(Z,h),M.registerControl(h.name,Z),Z.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name)})}getFormGroup(h){return this.form.get(h.path)}updateModel(h,M){ht.then(()=>{this.form.get(h.path).setValue(M)})}setValue(h){this.control.setValue(h)}onSubmit(h){return this.submitted=!0,Fn(this.form,this._directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(h){return h.pop(),h.length?this.form.get(h):this.form}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Ie]),y.qOj]}),E})();const fr={provide:gt,useExisting:(0,y.Gpc)(()=>hn)},vn=(()=>Promise.resolve(null))();let hn=(()=>{class E extends gt{constructor(h,M,Z,we){super(),this.control=new Yt,this._registered=!1,this.update=new y.vpe,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}ngOnChanges(h){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in h&&this._updateDisabled(h),Wr(h,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Sn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Le(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(h){vn.then(()=>{this.control.setValue(h,{emitViewToModelChange:!1})})}_updateDisabled(h){const M=h.isDisabled.currentValue,Z=""===M||M&&"false"!==M;vn.then(()=>{Z&&!this.control.disabled?this.control.disable():!Z&&this.control.disabled&&this.control.enable()})}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,9),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[y._Bn([fr]),y.qOj,y.TTD]}),E})(),Ht=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),E})();const Un={provide:De,useExisting:(0,y.Gpc)(()=>Bn),multi:!0};let Bn=(()=>{class E extends Ee{writeValue(h){this.setProperty("value",null==h?"":h)}registerOnChange(h){this.onChange=M=>{h(""==M?null:parseFloat(M))}}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},features:[y._Bn([Un]),y.qOj]}),E})();const Gt={provide:De,useExisting:(0,y.Gpc)(()=>ir),multi:!0};let Yr=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({}),E})(),Ar=(()=>{class E{constructor(){this._accessors=[]}add(h,M){this._accessors.push([h,M])}remove(h){for(let M=this._accessors.length-1;M>=0;--M)if(this._accessors[M][1]===h)return void this._accessors.splice(M,1)}select(h){this._accessors.forEach(M=>{this._isSameGroup(M,h)&&M[1]!==h&&M[1].fireUncheck(h.value)})}_isSameGroup(h,M){return!!h[0].control&&h[0]._parent===M._control._parent&&h[1].name===M.name}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275prov=(0,y.Yz7)({factory:function(){return new E},token:E,providedIn:Yr}),E})(),ir=(()=>{class E extends Ee{constructor(h,M,Z,we){super(h,M),this._registry=Z,this._injector=we,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(gt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(h){this._state=h===this.value,this.setProperty("checked",this._state)}registerOnChange(h){this._fn=h,this.onChange=()=>{h(this.value),this._registry.select(this)}}fireUncheck(h){this.writeValue(h)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ar),y.Y36(y.zs3))},E.\u0275dir=y.lG2({type:E,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(){return M.onChange()})("blur",function(){return M.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[y._Bn([Gt]),y.qOj]}),E})();const Wt=new y.OlP("NgModelWithFormControlWarning"),Sr={provide:Ft,useExisting:(0,y.Gpc)(()=>sn)};let sn=(()=>{class E extends Ft{constructor(h,M){super(),this.validators=h,this.asyncValidators=M,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new y.vpe,this._setValidators(h),this._setAsyncValidators(M)}ngOnChanges(h){this._checkFormPresent(),h.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(h){const M=this.form.get(h.path);return Le(M,h),M.updateValueAndValidity({emitEvent:!1}),this.directives.push(h),M}getControl(h){return this.form.get(h.path)}removeControl(h){Ut(h.control||null,h,!1),et(this.directives,h)}addFormGroup(h){this._setUpFormContainer(h)}removeFormGroup(h){this._cleanUpFormContainer(h)}getFormGroup(h){return this.form.get(h.path)}addFormArray(h){this._setUpFormContainer(h)}removeFormArray(h){this._cleanUpFormContainer(h)}getFormArray(h){return this.form.get(h.path)}updateModel(h,M){this.form.get(h.path).setValue(M)}onSubmit(h){return this.submitted=!0,Fn(this.form,this.directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_updateDomValue(){this.directives.forEach(h=>{const M=h.control,Z=this.form.get(h.path);M!==Z&&(Ut(M||null,h),Z instanceof Yt&&(Le(Z,h),h.control=Z))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(h){const M=this.form.get(h.path);cr(M,h),M.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(h){if(this.form){const M=this.form.get(h.path);M&&function(E,m){return nt(E,m)}(M,h)&&M.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){nr(this.form,this),this._oldForm&&nt(this._oldForm,this)}_checkFormPresent(){}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroup",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Sr]),y.qOj,y.TTD]}),E})();const Tr={provide:gt,useExisting:(0,y.Gpc)(()=>Zr)};let Zr=(()=>{class E extends gt{constructor(h,M,Z,we,At){super(),this._ngModelWarningConfig=At,this._added=!1,this.update=new y.vpe,this._ngModelWarningSent=!1,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}set isDisabled(h){}ngOnChanges(h){this._added||this._setUpControl(),Wr(h,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}get path(){return Sn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,13),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10),y.Y36(Wt,8))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[y._Bn([Tr]),y.qOj,y.TTD]}),E._ngModelWarningSentOnce=!1,E})();const mi={provide:De,useExisting:(0,y.Gpc)(()=>qr),multi:!0};function Ni(E,m){return null==E?`${m}`:(m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let qr=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){this.value=h;const M=this._getOptionId(h);null==M&&this.setProperty("selectedIndex",-1);const Z=Ni(M,h);this.setProperty("value",Z)}registerOnChange(h){this.onChange=M=>{this.value=this._getOptionValue(M),h(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(h){for(const M of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(M),h))return M;return null}_getOptionValue(h){const M=function(E){return E.split(":")[0]}(h);return this._optionMap.has(M)?this._optionMap.get(M):h}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},inputs:{compareWith:"compareWith"},features:[y._Bn([mi]),y.qOj]}),E})(),xi=(()=>{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption())}set ngValue(h){null!=this._select&&(this._select._optionMap.set(this.id,h),this._setElementValue(Ni(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._setElementValue(h),this._select&&this._select.writeValue(this._select.value)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(qr,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Fi={provide:De,useExisting:(0,y.Gpc)(()=>R),multi:!0};function vi(E,m){return null==E?`${m}`:("string"==typeof m&&(m=`'${m}'`),m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let R=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){let M;if(this.value=h,Array.isArray(h)){const Z=h.map(we=>this._getOptionId(we));M=(we,At)=>{we._setSelected(Z.indexOf(At.toString())>-1)}}else M=(Z,we)=>{Z._setSelected(!1)};this._optionMap.forEach(M)}registerOnChange(h){this.onChange=M=>{const Z=[];if(void 0!==M.selectedOptions){const we=M.selectedOptions;for(let At=0;At{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption(this))}set ngValue(h){null!=this._select&&(this._value=h,this._setElementValue(vi(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._select?(this._value=h,this._setElementValue(vi(this.id,h)),this._select.writeValue(this._select.value)):this._setElementValue(h)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}_setSelected(h){this._renderer.setProperty(this._element.nativeElement,"selected",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(R,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Rt={provide:Ke,useExisting:(0,y.Gpc)(()=>Ir),multi:!0};let Ir=(()=>{class E{constructor(){this._required=!1}get required(){return this._required}set required(h){this._required=null!=h&&!1!==h&&"false"!=`${h}`,this._onChange&&this._onChange()}validate(h){return this.required?function(E){return function(E){return null==E||0===E.length}(E.value)?{required:!0}:null}(h):null}registerOnValidatorChange(h){this._onChange=h}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("required",M.required?"":null)},inputs:{required:"required"},features:[y._Bn([Rt])]}),E})();const Rr={provide:Ke,useExisting:(0,y.Gpc)(()=>gr),multi:!0};let gr=(()=>{class E{constructor(){this._validator=Te}ngOnChanges(h){"maxlength"in h&&(this._createValidator(),this._onChange&&this._onChange())}validate(h){return this.enabled()?this._validator(h):null}registerOnValidatorChange(h){this._onChange=h}_createValidator(){this._validator=this.enabled()?function(E){return m=>function(E){return null!=E&&"number"==typeof E.length}(m.value)&&m.value.length>E?{maxlength:{requiredLength:E,actualLength:m.value.length}}:null}(function(E){return"number"==typeof E?E:parseInt(E,10)}(this.maxlength)):Te}enabled(){return null!=this.maxlength}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("maxlength",M.enabled()?M.maxlength:null)},inputs:{maxlength:"maxlength"},features:[y._Bn([Rr]),y.TTD]}),E})(),S=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[[Yr]]}),E})(),B=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})(),oe=(()=>{class E{static withConfig(h){return{ngModule:E,providers:[{provide:Wt,useValue:h.warnOnNgModelWithFormControl}]}}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})()},9502:(Ye,me,O)=>{"use strict";O.d(me,{gz:()=>Gt,Eb:()=>ge,gk:()=>xt,m2:()=>Nn,Q3:()=>Hr,OD:()=>Cn,F0:()=>Wn,rH:()=>Lo,Od:()=>ho,yS:()=>ko,Bz:()=>Bo,lC:()=>po,R9:()=>Ft});var y=O(8583),u=O(476),ce=O(9162),re=O(6889),te=function(f){function c(l){var p=f.call(this)||this;return p._value=l,p}return(0,ce.ZT)(c,f),Object.defineProperty(c.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),c.prototype._subscribe=function(l){var p=f.prototype._subscribe.call(this,l);return!p.closed&&l.next(this._value),p},c.prototype.getValue=function(){var l=this,b=l._value;if(l.hasError)throw l.thrownError;return this._throwIfClosed(),b},c.prototype.next=function(l){f.prototype.next.call(this,this._value=l)},c}(re.x),J=O(1776),K=O(1260),P=O(5929),x=O(2738),U=O(9607),Y=O(9528),ae=O(5526),Ee=O(5076);function Pe(f,c,l){return void 0===l&&(l=x.y),function(p){_e(c,function(){for(var C=f.length,b=new Array(C),N=C,V=C,q=function(Ue){_e(c,function(){var at=(0,P.Dp)(f[Ue],c),kt=!1;at.subscribe(new Ee.Q(p,function(Ct){b[Ue]=Ct,kt||(kt=!0,V--),V||p.next(l(b.slice()))},function(){--N||p.complete()}))},p)},Se=0;Se=2,!0))}var ee=O(4689);function Te(f){return f<=0?function(){return X.E}:(0,$e.e)(function(c,l){var p=[];c.subscribe(new Ee.Q(l,function(C){p.push(C),f=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,(0,vt.q)(1),l?Xe(c):be(function(){return new Me}))}}var Kt=O(8853);function Tt(f,c,l){var p=(0,Kt.m)(f)||c||l?{next:f,error:c,complete:l}:f;return p?(0,$e.e)(function(C,b){var N;null===(N=p.subscribe)||void 0===N||N.call(p);var V=!0;C.subscribe(new Ee.Q(b,function(q){var Se;null===(Se=p.next)||void 0===Se||Se.call(p,q),b.next(q)},function(){var q;V=!1,null===(q=p.complete)||void 0===q||q.call(p),b.complete()},function(q){var Se;V=!1,null===(Se=p.error)||void 0===Se||Se.call(p,q),b.error(q)},function(){var q,Se;V&&(null===(q=p.unsubscribe)||void 0===q||q.call(p)),null===(Se=p.finalize)||void 0===Se||Se.call(p)}))}):x.y}var yt=O(5207),gn=O(5894),It=O(3766),it=O(7216);class mn{constructor(c,l){this.id=c,this.url=l}}class Cn extends mn{constructor(c,l,p="imperative",C=null){super(c,l),this.navigationTrigger=p,this.restoredState=C}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nn extends mn{constructor(c,l,p){super(c,l),this.urlAfterRedirects=p}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class xt extends mn{constructor(c,l,p){super(c,l),this.reason=p}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Hr extends mn{constructor(c,l,p){super(c,l),this.error=p}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ft extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gt extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tr extends mn{constructor(c,l,p,C,b){super(c,l),this.urlAfterRedirects=p,this.state=C,this.shouldActivate=b}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ri extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fe extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G{constructor(c){this.route=c}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class W{constructor(c){this.route=c}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ge{constructor(c){this.snapshot=c}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ye{constructor(c){this.snapshot=c}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ne{constructor(c){this.snapshot=c}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class se{constructor(c){this.snapshot=c}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xe{constructor(c,l,p){this.routerEvent=c,this.position=l,this.anchor=p}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Re="primary";class St{constructor(c){this.params=c||{}}has(c){return Object.prototype.hasOwnProperty.call(this.params,c)}get(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l[0]:l}return null}getAll(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l:[l]}return[]}get keys(){return Object.keys(this.params)}}function Lt(f){return new St(f)}const zn="ngNavigationCancelingError";function wt(f){const c=Error("NavigationCancelingError: "+f);return c[zn]=!0,c}function ot(f,c,l){const p=l.path.split("/");if(p.length>f.length||"full"===l.pathMatch&&(c.hasChildren()||p.lengthp[b]===C)}return f===c}function rn(f){return Array.prototype.concat.apply([],f)}function Dr(f){return f.length>0?f[f.length-1]:null}function nt(f,c){for(const l in f)f.hasOwnProperty(l)&&c(f[l],l)}function Mn(f){return(0,u.CqO)(f)?f:(0,u.QGY)(f)?(0,P.Dp)(Promise.resolve(f)):(0,H.of)(f)}const xn={exact:function Gr(f,c,l){if(!En(f.segments,c.segments)||!Fn(f.segments,c.segments,l)||f.numberOfChildren!==c.numberOfChildren)return!1;for(const p in c.children)if(!f.children[p]||!Gr(f.children[p],c.children[p],l))return!1;return!0},subset:Wr},mt={exact:function(f,c){return Le(f,c)},subset:function(f,c){return Object.keys(c).length<=Object.keys(f).length&&Object.keys(c).every(l=>Ut(f[l],c[l]))},ignored:()=>!0};function cr(f,c,l){return xn[l.paths](f.root,c.root,l.matrixParams)&&mt[l.queryParams](f.queryParams,c.queryParams)&&!("exact"===l.fragment&&f.fragment!==c.fragment)}function Wr(f,c,l){return Tn(f,c,c.segments,l)}function Tn(f,c,l,p){if(f.segments.length>l.length){const C=f.segments.slice(0,l.length);return!(!En(C,l)||c.hasChildren()||!Fn(C,l,p))}if(f.segments.length===l.length){if(!En(f.segments,l)||!Fn(f.segments,l,p))return!1;for(const C in c.children)if(!f.children[C]||!Wr(f.children[C],c.children[C],p))return!1;return!0}{const C=l.slice(0,f.segments.length),b=l.slice(f.segments.length);return!!(En(f.segments,C)&&Fn(f.segments,C,p)&&f.children[Re])&&Tn(f.children[Re],c,b,p)}}function Fn(f,c,l){return c.every((p,C)=>mt[l](f[C].parameters,p.parameters))}class Kn{constructor(c,l,p){this.root=c,this.queryParams=l,this.fragment=p}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return Kr.serialize(this)}}class et{constructor(c,l){this.segments=c,this.children=l,this.parent=null,nt(l,(p,C)=>p.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rr(this)}}class on{constructor(c,l){this.path=c,this.parameters=l}get parameterMap(){return this._parameterMap||(this._parameterMap=Lt(this.parameters)),this._parameterMap}toString(){return Ie(this)}}function En(f,c){return f.length===c.length&&f.every((l,p)=>l.path===c[p].path)}class yn{}class zr{parse(c){const l=new Vn(c);return new Kn(l.parseRootSegment(),l.parseQueryParams(),l.parseFragment())}serialize(c){var f;return`${`/${Yn(c.root,!0)}`}${function(f){const c=Object.keys(f).map(l=>{const p=f[l];return Array.isArray(p)?p.map(C=>`${dn(l)}=${dn(C)}`).join("&"):`${dn(l)}=${dn(p)}`}).filter(l=>!!l);return c.length?`?${c.join("&")}`:""}(c.queryParams)}${"string"==typeof c.fragment?`#${f=c.fragment,encodeURI(f)}`:""}`}}const Kr=new zr;function rr(f){return f.segments.map(c=>Ie(c)).join("/")}function Yn(f,c){if(!f.hasChildren())return rr(f);if(c){const l=f.children[Re]?Yn(f.children[Re],!1):"",p=[];return nt(f.children,(C,b)=>{b!==Re&&p.push(`${b}:${Yn(C,!1)}`)}),p.length>0?`${l}(${p.join("//")})`:l}{const l=function(f,c){let l=[];return nt(f.children,(p,C)=>{C===Re&&(l=l.concat(c(p,C)))}),nt(f.children,(p,C)=>{C!==Re&&(l=l.concat(c(p,C)))}),l}(f,(p,C)=>C===Re?[Yn(f.children[Re],!1)]:[`${C}:${Yn(p,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[Re]?`${rr(f)}/${l[0]}`:`${rr(f)}/(${l.join("//")})`}}function qt(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dn(f){return qt(f).replace(/%3B/gi,";")}function Yt(f){return qt(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dr(f){return decodeURIComponent(f)}function fn(f){return dr(f.replace(/\+/g,"%20"))}function Ie(f){return`${Yt(f.path)}${function(f){return Object.keys(f).map(c=>`;${Yt(c)}=${Yt(f[c])}`).join("")}(f.parameters)}`}const ut=/^[^\/()?;=#]+/;function Qt(f){const c=f.match(ut);return c?c[0]:""}const Bt=/^[^=?&#]+/,Ot=/^[^?&#]+/;class Vn{constructor(c){this.url=c,this.remaining=c}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new et([],{}):new et([],this.parseChildren())}parseQueryParams(){const c={};if(this.consumeOptional("?"))do{this.parseQueryParam(c)}while(this.consumeOptional("&"));return c}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const c=[];for(this.peekStartsWith("(")||c.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),c.push(this.parseSegment());let l={};this.peekStartsWith("/(")&&(this.capture("/"),l=this.parseParens(!0));let p={};return this.peekStartsWith("(")&&(p=this.parseParens(!1)),(c.length>0||Object.keys(l).length>0)&&(p[Re]=new et(c,l)),p}parseSegment(){const c=Qt(this.remaining);if(""===c&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(c),new on(dr(c),this.parseMatrixParams())}parseMatrixParams(){const c={};for(;this.consumeOptional(";");)this.parseParam(c);return c}parseParam(c){const l=Qt(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const C=Qt(this.remaining);C&&(p=C,this.capture(p))}c[dr(l)]=dr(p)}parseQueryParam(c){const l=function(f){const c=f.match(Bt);return c?c[0]:""}(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const N=function(f){const c=f.match(Ot);return c?c[0]:""}(this.remaining);N&&(p=N,this.capture(p))}const C=fn(l),b=fn(p);if(c.hasOwnProperty(C)){let N=c[C];Array.isArray(N)||(N=[N],c[C]=N),N.push(b)}else c[C]=b}parseParens(c){const l={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const p=Qt(this.remaining),C=this.remaining[p.length];if("/"!==C&&")"!==C&&";"!==C)throw new Error(`Cannot parse url '${this.url}'`);let b;p.indexOf(":")>-1?(b=p.substr(0,p.indexOf(":")),this.capture(b),this.capture(":")):c&&(b=Re);const N=this.parseChildren();l[b]=1===Object.keys(N).length?N[Re]:new et([],N),this.consumeOptional("//")}return l}peekStartsWith(c){return this.remaining.startsWith(c)}consumeOptional(c){return!!this.peekStartsWith(c)&&(this.remaining=this.remaining.substring(c.length),!0)}capture(c){if(!this.consumeOptional(c))throw new Error(`Expected "${c}".`)}}class Ze{constructor(c){this._root=c}get root(){return this._root.value}parent(c){const l=this.pathFromRoot(c);return l.length>1?l[l.length-2]:null}children(c){const l=fr(c,this._root);return l?l.children.map(p=>p.value):[]}firstChild(c){const l=fr(c,this._root);return l&&l.children.length>0?l.children[0].value:null}siblings(c){const l=Zn(c,this._root);return l.length<2?[]:l[l.length-2].children.map(C=>C.value).filter(C=>C!==c)}pathFromRoot(c){return Zn(c,this._root).map(l=>l.value)}}function fr(f,c){if(f===c.value)return c;for(const l of c.children){const p=fr(f,l);if(p)return p}return null}function Zn(f,c){if(f===c.value)return[c];for(const l of c.children){const p=Zn(f,l);if(p.length)return p.unshift(c),p}return[]}class vn{constructor(c,l){this.value=c,this.children=l}toString(){return`TreeNode(${this.value})`}}function hn(f){const c={};return f&&f.children.forEach(l=>c[l.value.outlet]=l),c}class Ht extends Ze{constructor(c,l){super(c),this.snapshot=l,qn(this,c)}toString(){return this.snapshot.toString()}}function Un(f,c){const l=function(f,c){const N=new Ar([],{},{},"",{},Re,c,null,f.root,-1,{});return new ir("",new vn(N,[]))}(f,c),p=new te([new on("",{})]),C=new te({}),b=new te({}),N=new te({}),V=new te(""),q=new Gt(p,C,N,V,b,Re,c,l.root);return q.snapshot=l.root,new Ht(new vn(q,[]),l)}class Gt{constructor(c,l,p,C,b,N,V,q){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=N,this.component=V,this._futureSnapshot=q}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,yt.U)(c=>Lt(c)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,yt.U)(c=>Lt(c)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Mt(f,c="emptyOnly"){const l=f.pathFromRoot;let p=0;if("always"!==c)for(p=l.length-1;p>=1;){const C=l[p],b=l[p-1];if(C.routeConfig&&""===C.routeConfig.path)p--;else{if(b.component)break;p--}}return function(f){return f.reduce((c,l)=>({params:Object.assign(Object.assign({},c.params),l.params),data:Object.assign(Object.assign({},c.data),l.data),resolve:Object.assign(Object.assign({},c.resolve),l._resolvedData)}),{params:{},data:{},resolve:{}})}(l.slice(p))}class Ar{constructor(c,l,p,C,b,N,V,q,Se,Ue,at){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=N,this.component=V,this.routeConfig=q,this._urlSegment=Se,this._lastPathIndex=Ue,this._resolve=at}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(p=>p.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ir extends Ze{constructor(c,l){super(l),this.url=c,qn(this,l)}toString(){return hr(this._root)}}function qn(f,c){c.value._routerState=f,c.children.forEach(l=>qn(f,l))}function hr(f){const c=f.children.length>0?` { ${f.children.map(hr).join(", ")} } `:"";return`${f.value}${c}`}function Wt(f){if(f.snapshot){const c=f.snapshot,l=f._futureSnapshot;f.snapshot=l,Le(c.queryParams,l.queryParams)||f.queryParams.next(l.queryParams),c.fragment!==l.fragment&&f.fragment.next(l.fragment),Le(c.params,l.params)||f.params.next(l.params),function(f,c){if(f.length!==c.length)return!1;for(let l=0;lLe(l.parameters,c[p].parameters))}(f.url,c.url)&&!(!f.parent!=!c.parent)&&(!f.parent||$n(f.parent,c.parent))}function Sr(f,c,l){if(l&&f.shouldReuseRoute(c.value,l.value.snapshot)){const p=l.value;p._futureSnapshot=c.value;const C=function(f,c,l){return c.children.map(p=>{for(const C of l.children)if(f.shouldReuseRoute(p.value,C.value.snapshot))return Sr(f,p,C);return Sr(f,p)})}(f,c,l);return new vn(p,C)}{if(f.shouldAttach(c.value)){const b=f.retrieve(c.value);if(null!==b){const N=b.route;return sn(c,N),N}}const p=function(f){return new Gt(new te(f.url),new te(f.params),new te(f.queryParams),new te(f.fragment),new te(f.data),f.outlet,f.component,f)}(c.value),C=c.children.map(b=>Sr(f,b));return new vn(p,C)}}function sn(f,c){if(f.value.routeConfig!==c.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(f.children.length!==c.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");c.value._futureSnapshot=f.value;for(let l=0;l{b[V]=Array.isArray(N)?N.map(q=>`${q}`):`${N}`}),new Kn(l.root===f?c:Zr(l.root,f,c),b,C)}function Zr(f,c,l){const p={};return nt(f.children,(C,b)=>{p[b]=C===c?l:Zr(C,c,l)}),new et(f.segments,p)}class mi{constructor(c,l,p){if(this.isAbsolute=c,this.numberOfDoubleDots=l,this.commands=p,c&&p.length>0&&jn(p[0]))throw new Error("Root segment cannot have matrix parameters");const C=p.find(Pt);if(C&&C!==Dr(p))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yi{constructor(c,l,p){this.segmentGroup=c,this.processChildren=l,this.index=p}}function vi(f,c,l){if(f||(f=new et([],{})),0===f.segments.length&&f.hasChildren())return Qr(f,c,l);const p=function(f,c,l){let p=0,C=c;const b={match:!1,pathIndex:0,commandIndex:0};for(;C=l.length)return b;const N=f.segments[C],V=l[p];if(Pt(V))break;const q=`${V}`,Se=p0&&void 0===q)break;if(q&&Se&&"object"==typeof Se&&void 0===Se.outlets){if(!L(q,Se,N))return b;p+=2}else{if(!L(q,{},N))return b;p++}C++}return{match:!0,pathIndex:C,commandIndex:p}}(f,c,l),C=l.slice(p.commandIndex);if(p.match&&p.pathIndex{"string"==typeof b&&(b=[b]),null!==b&&(C[N]=vi(f.children[N],c,b))}),nt(f.children,(b,N)=>{void 0===p[N]&&(C[N]=b)}),new et(f.segments,C)}}function R(f,c,l){const p=f.segments.slice(0,c);let C=0;for(;C{"string"==typeof l&&(l=[l]),null!==l&&(c[p]=R(new et([],{}),0,l))}),c}function A(f){const c={};return nt(f,(l,p)=>c[p]=`${l}`),c}function L(f,c,l){return f==l.path&&Le(c,l.parameters)}class Oe{constructor(c,l,p,C){this.routeReuseStrategy=c,this.futureState=l,this.currState=p,this.forwardEvent=C}activate(c){const l=this.futureState._root,p=this.currState?this.currState._root:null;this.deactivateChildRoutes(l,p,c),Wt(this.futureState.root),this.activateChildRoutes(l,p,c)}deactivateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{const N=b.value.outlet;this.deactivateRoutes(b,C[N],p),delete C[N]}),nt(C,(b,N)=>{this.deactivateRouteAndItsChildren(b,p)})}deactivateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(C===b)if(C.component){const N=p.getContext(C.outlet);N&&this.deactivateChildRoutes(c,l,N.children)}else this.deactivateChildRoutes(c,l,p);else b&&this.deactivateRouteAndItsChildren(l,p)}deactivateRouteAndItsChildren(c,l){this.routeReuseStrategy.shouldDetach(c.value.snapshot)?this.detachAndStoreRouteSubtree(c,l):this.deactivateRouteAndOutlet(c,l)}detachAndStoreRouteSubtree(c,l){const p=l.getContext(c.value.outlet);if(p&&p.outlet){const C=p.outlet.detach(),b=p.children.onOutletDeactivated();this.routeReuseStrategy.store(c.value.snapshot,{componentRef:C,route:c,contexts:b})}}deactivateRouteAndOutlet(c,l){const p=l.getContext(c.value.outlet),C=p&&c.value.component?p.children:l,b=hn(c);for(const N of Object.keys(b))this.deactivateRouteAndItsChildren(b[N],C);p&&p.outlet&&(p.outlet.deactivate(),p.children.onOutletDeactivated(),p.attachRef=null,p.resolver=null,p.route=null)}activateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{this.activateRoutes(b,C[b.value.outlet],p),this.forwardEvent(new se(b.value.snapshot))}),c.children.length&&this.forwardEvent(new ye(c.value.snapshot))}activateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(Wt(C),C===b)if(C.component){const N=p.getOrCreateContext(C.outlet);this.activateChildRoutes(c,l,N.children)}else this.activateChildRoutes(c,l,p);else if(C.component){const N=p.getOrCreateContext(C.outlet);if(this.routeReuseStrategy.shouldAttach(C.snapshot)){const V=this.routeReuseStrategy.retrieve(C.snapshot);this.routeReuseStrategy.store(C.snapshot,null),N.children.onOutletReAttached(V.contexts),N.attachRef=V.componentRef,N.route=V.route.value,N.outlet&&N.outlet.attach(V.componentRef,V.route.value),je(V.route)}else{const V=function(f){for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig;if(l&&l.component)return null}return null}(C.snapshot),q=V?V.module.componentFactoryResolver:null;N.attachRef=null,N.route=C,N.resolver=q,N.outlet&&N.outlet.activateWith(C,q),this.activateChildRoutes(c,null,N.children)}}else this.activateChildRoutes(c,null,p)}}function je(f){Wt(f.value),f.children.forEach(je)}class Rt{constructor(c,l){this.routes=c,this.module=l}}function $t(f){return"function"==typeof f}function Or(f){return f instanceof Kn}const Rr=Symbol("INITIAL_VALUE");function gr(){return ue(f=>function(){for(var f=[],c=0;cc.pipe((0,vt.q)(1),function(){for(var f=[],c=0;c{let p=!1;return l.reduce((C,b,N)=>C!==Rr?C:(b===Rr&&(p=!0),p||!1!==b&&N!==l.length-1&&!Or(b)?C:b),c)},Rr),(0,ee.h)(c=>c!==Rr),(0,yt.U)(c=>Or(c)?c:!0===c),(0,vt.q)(1)))}let Zi=(()=>{class f{}return f.\u0275fac=function(l){return new(l||f)},f.\u0275cmp=u.Xpm({type:f,selectors:[["ng-component"]],decls:1,vars:0,template:function(l,p){1&l&&u._UZ(0,"router-outlet")},directives:function(){return[po]},encapsulation:2}),f})();function _i(f,c=""){for(let l=0;lS(p)===c);return l.push(...f.filter(p=>S(p)!==c)),l}const oe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function pe(f,c,l){var p;if(""===c.path)return"full"===c.pathMatch&&(f.hasChildren()||l.length>0)?Object.assign({},oe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const b=(c.matcher||ot)(l,f,c);if(!b)return Object.assign({},oe);const N={};nt(b.posParams,(q,Se)=>{N[Se]=q.path});const V=b.consumed.length>0?Object.assign(Object.assign({},N),b.consumed[b.consumed.length-1].parameters):N;return{matched:!0,consumedSegments:b.consumed,lastChild:b.consumed.length,parameters:V,positionalParamSegments:null!==(p=b.posParams)&&void 0!==p?p:{}}}function Be(f,c,l,p,C="corrected"){if(l.length>0&&function(f,c,l){return l.some(p=>M(f,c,p)&&S(p)!==Re)}(f,l,p)){const N=new et(c,function(f,c,l,p){const C={};C[Re]=p,p._sourceSegment=f,p._segmentIndexShift=c.length;for(const b of l)if(""===b.path&&S(b)!==Re){const N=new et([],{});N._sourceSegment=f,N._segmentIndexShift=c.length,C[S(b)]=N}return C}(f,c,p,new et(l,f.children)));return N._sourceSegment=f,N._segmentIndexShift=c.length,{segmentGroup:N,slicedSegments:[]}}if(0===l.length&&function(f,c,l){return l.some(p=>M(f,c,p))}(f,l,p)){const N=new et(f.segments,function(f,c,l,p,C,b){const N={};for(const V of p)if(M(f,l,V)&&!C[S(V)]){const q=new et([],{});q._sourceSegment=f,q._segmentIndexShift="legacy"===b?f.segments.length:c.length,N[S(V)]=q}return Object.assign(Object.assign({},C),N)}(f,c,l,p,f.children,C));return N._sourceSegment=f,N._segmentIndexShift=c.length,{segmentGroup:N,slicedSegments:l}}const b=new et(f.segments,f.children);return b._sourceSegment=f,b._segmentIndexShift=c.length,{segmentGroup:b,slicedSegments:l}}function M(f,c,l){return(!(f.hasChildren()||c.length>0)||"full"!==l.pathMatch)&&""===l.path}function Z(f,c,l,p){return!!(S(f)===p||p!==Re&&M(c,l,f))&&("**"===f.path||pe(c,f,l).matched)}function we(f,c,l){return 0===c.length&&!f.children[l]}class At{constructor(c){this.segmentGroup=c||null}}class an{constructor(c){this.urlTree=c}}function Jt(f){return new J.y(c=>c.error(new At(f)))}function zt(f){return new J.y(c=>c.error(new an(f)))}function qi(f){return new J.y(c=>c.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f}'`)))}class bn{constructor(c,l,p,C,b){this.configLoader=l,this.urlSerializer=p,this.urlTree=C,this.config=b,this.allowRedirects=!0,this.ngModule=c.get(u.h0i)}apply(){const c=Be(this.urlTree.root,[],[],this.config).segmentGroup,l=new et(c.segments,c.children);return this.expandSegmentGroup(this.ngModule,this.config,l,Re).pipe((0,yt.U)(b=>this.createUrlTree(Jr(b),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,gn.K)(b=>{if(b instanceof an)return this.allowRedirects=!1,this.match(b.urlTree);throw b instanceof At?this.noMatchError(b):b}))}match(c){return this.expandSegmentGroup(this.ngModule,this.config,c.root,Re).pipe((0,yt.U)(C=>this.createUrlTree(Jr(C),c.queryParams,c.fragment))).pipe((0,gn.K)(C=>{throw C instanceof At?this.noMatchError(C):C}))}noMatchError(c){return new Error(`Cannot match any routes. URL Segment: '${c.segmentGroup}'`)}createUrlTree(c,l,p){const C=c.segments.length>0?new et([],{[Re]:c}):c;return new Kn(C,l,p)}expandSegmentGroup(c,l,p,C){return 0===p.segments.length&&p.hasChildren()?this.expandChildren(c,l,p).pipe((0,yt.U)(b=>new et([],b))):this.expandSegment(c,p,l,p.segments,C,!0)}expandChildren(c,l,p){const C=[];for(const b of Object.keys(p.children))"primary"===b?C.unshift(b):C.push(b);return(0,P.Dp)(C).pipe((0,It.b)(b=>{const N=p.children[b],V=B(l,b);return this.expandSegmentGroup(c,V,N,b).pipe((0,yt.U)(q=>({segment:q,outlet:b})))}),ze((b,N)=>(b[N.outlet]=N.segment,b),{}),function(f,c){var l=arguments.length>=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,Te(1),l?Xe(c):be(function(){return new Me}))}}())}expandSegment(c,l,p,C,b,N){return(0,P.Dp)(p).pipe((0,It.b)(V=>this.expandSegmentAgainstRoute(c,l,p,V,C,b,N).pipe((0,gn.K)(Se=>{if(Se instanceof At)return(0,H.of)(null);throw Se}))),jt(V=>!!V),(0,gn.K)((V,q)=>{if(V instanceof Me||"EmptyError"===V.name){if(we(l,C,b))return(0,H.of)(new et([],{}));throw new At(l)}throw V}))}expandSegmentAgainstRoute(c,l,p,C,b,N,V){return Z(C,l,b,N)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(c,l,C,b,N):V&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,N):Jt(l):Jt(l)}expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,N){return"**"===C.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(c,p,C,N):this.expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,N)}expandWildCardWithParamsAgainstRouteUsingRedirect(c,l,p,C){const b=this.applyRedirectCommands([],p.redirectTo,{});return p.redirectTo.startsWith("/")?zt(b):this.lineralizeSegments(p,b).pipe((0,it.z)(N=>{const V=new et(N,{});return this.expandSegment(c,V,l,N,C,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,N){const{matched:V,consumedSegments:q,lastChild:Se,positionalParamSegments:Ue}=pe(l,C,b);if(!V)return Jt(l);const at=this.applyRedirectCommands(q,C.redirectTo,Ue);return C.redirectTo.startsWith("/")?zt(at):this.lineralizeSegments(C,at).pipe((0,it.z)(kt=>this.expandSegment(c,l,p,kt.concat(b.slice(Se)),N,!1)))}matchSegmentAgainstRoute(c,l,p,C,b){if("**"===p.path)return p.loadChildren?(p._loadedConfig?(0,H.of)(p._loadedConfig):this.configLoader.load(c.injector,p)).pipe((0,yt.U)(kt=>(p._loadedConfig=kt,new et(C,{})))):(0,H.of)(new et(C,{}));const{matched:N,consumedSegments:V,lastChild:q}=pe(l,p,C);if(!N)return Jt(l);const Se=C.slice(q);return this.getChildConfig(c,p,C).pipe((0,it.z)(at=>{const kt=at.module,Ct=at.routes,{segmentGroup:vr,slicedSegments:or}=Be(l,V,Se,Ct),Lr=new et(vr.segments,vr.children);if(0===or.length&&Lr.hasChildren())return this.expandChildren(kt,Ct,Lr).pipe((0,yt.U)(Ho=>new et(V,Ho)));if(0===Ct.length&&0===or.length)return(0,H.of)(new et(V,{}));const Xi=S(p)===b;return this.expandSegment(kt,Lr,Ct,or,Xi?Re:b,!0).pipe((0,yt.U)(sr=>new et(V.concat(sr.segments),sr.children)))}))}getChildConfig(c,l,p){return l.children?(0,H.of)(new Rt(l.children,c)):l.loadChildren?void 0!==l._loadedConfig?(0,H.of)(l._loadedConfig):this.runCanLoadGuards(c.injector,l,p).pipe((0,it.z)(C=>{return C?this.configLoader.load(c.injector,l).pipe((0,yt.U)(b=>(l._loadedConfig=b,b))):(f=l,new J.y(c=>c.error(wt(`Cannot load children because the guard of the route "path: '${f.path}'" returned false`))));var f})):(0,H.of)(new Rt([],c))}runCanLoadGuards(c,l,p){const C=l.canLoad;if(!C||0===C.length)return(0,H.of)(!0);const b=C.map(N=>{const V=c.get(N);let q;if((f=V)&&$t(f.canLoad))q=V.canLoad(l,p);else{if(!$t(V))throw new Error("Invalid CanLoad guard");q=V(l,p)}var f;return Mn(q)});return(0,H.of)(b).pipe(gr(),Tt(N=>{if(!Or(N))return;const V=wt(`Redirecting to "${this.urlSerializer.serialize(N)}"`);throw V.url=N,V}),(0,yt.U)(N=>!0===N))}lineralizeSegments(c,l){let p=[],C=l.root;for(;;){if(p=p.concat(C.segments),0===C.numberOfChildren)return(0,H.of)(p);if(C.numberOfChildren>1||!C.children[Re])return qi(c.redirectTo);C=C.children[Re]}}applyRedirectCommands(c,l,p){return this.applyRedirectCreatreUrlTree(l,this.urlSerializer.parse(l),c,p)}applyRedirectCreatreUrlTree(c,l,p,C){const b=this.createSegmentGroup(c,l.root,p,C);return new Kn(b,this.createQueryParams(l.queryParams,this.urlTree.queryParams),l.fragment)}createQueryParams(c,l){const p={};return nt(c,(C,b)=>{if("string"==typeof C&&C.startsWith(":")){const V=C.substring(1);p[b]=l[V]}else p[b]=C}),p}createSegmentGroup(c,l,p,C){const b=this.createSegments(c,l.segments,p,C);let N={};return nt(l.children,(V,q)=>{N[q]=this.createSegmentGroup(c,V,p,C)}),new et(b,N)}createSegments(c,l,p,C){return l.map(b=>b.path.startsWith(":")?this.findPosParam(c,b,C):this.findOrReturn(b,p))}findPosParam(c,l,p){const C=p[l.path.substring(1)];if(!C)throw new Error(`Cannot redirect to '${c}'. Cannot find '${l.path}'.`);return C}findOrReturn(c,l){let p=0;for(const C of l){if(C.path===c.path)return l.splice(p),C;p++}return c}}function Jr(f){const c={};for(const p of Object.keys(f.children)){const b=Jr(f.children[p]);(b.segments.length>0||b.hasChildren())&&(c[p]=b)}return function(f){if(1===f.numberOfChildren&&f.children[Re]){const c=f.children[Re];return new et(f.segments.concat(c.segments),c.children)}return f}(new et(f.segments,c))}class Xr{constructor(c){this.path=c,this.route=this.path[this.path.length-1]}}class ao{constructor(c,l){this.component=c,this.route=l}}function ks(f,c,l){const p=f._root;return lo(p,c?c._root:null,l,[p.value])}function Vs(f,c,l){const p=function(f){if(!f)return null;for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig}return null}(c);return(p?p.module.injector:l).get(f)}function lo(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=hn(c);return f.children.forEach(N=>{(function(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=f.value,N=c?c.value:null,V=l?l.getContext(f.value.outlet):null;if(N&&b.routeConfig===N.routeConfig){const q=function(f,c,l){if("function"==typeof l)return l(f,c);switch(l){case"pathParamsChange":return!En(f.url,c.url);case"pathParamsOrQueryParamsChange":return!En(f.url,c.url)||!Le(f.queryParams,c.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$n(f,c)||!Le(f.queryParams,c.queryParams);case"paramsChange":default:return!$n(f,c)}}(N,b,b.routeConfig.runGuardsAndResolvers);q?C.canActivateChecks.push(new Xr(p)):(b.data=N.data,b._resolvedData=N._resolvedData),lo(f,c,b.component?V?V.children:null:l,p,C),q&&V&&V.outlet&&V.outlet.isActivated&&C.canDeactivateChecks.push(new ao(V.outlet.component,N))}else N&&uo(c,V,C),C.canActivateChecks.push(new Xr(p)),lo(f,null,b.component?V?V.children:null:l,p,C)})(N,b[N.value.outlet],l,p.concat([N.value]),C),delete b[N.value.outlet]}),nt(b,(N,V)=>uo(N,l.getContext(V),C)),C}function uo(f,c,l){const p=hn(f),C=f.value;nt(p,(b,N)=>{uo(b,C.component?c?c.children.getContext(N):null:c,l)}),l.canDeactivateChecks.push(new ao(C.component&&c&&c.outlet&&c.outlet.isActivated?c.outlet.component:null,C))}class Us{}function Io(f){return new J.y(c=>c.error(f))}class ou{constructor(c,l,p,C,b,N){this.rootComponentType=c,this.config=l,this.urlTree=p,this.url=C,this.paramsInheritanceStrategy=b,this.relativeLinkResolution=N}recognize(){const c=Be(this.urlTree.root,[],[],this.config.filter(N=>void 0===N.redirectTo),this.relativeLinkResolution).segmentGroup,l=this.processSegmentGroup(this.config,c,Re);if(null===l)return null;const p=new Ar([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Re,this.rootComponentType,null,this.urlTree.root,-1,{}),C=new vn(p,l),b=new ir(this.url,C);return this.inheritParamsAndData(b._root),b}inheritParamsAndData(c){const l=c.value,p=Mt(l,this.paramsInheritanceStrategy);l.params=Object.freeze(p.params),l.data=Object.freeze(p.data),c.children.forEach(C=>this.inheritParamsAndData(C))}processSegmentGroup(c,l,p){return 0===l.segments.length&&l.hasChildren()?this.processChildren(c,l):this.processSegment(c,l,l.segments,p)}processChildren(c,l){const p=[];for(const b of Object.keys(l.children)){const N=l.children[b],V=B(c,b),q=this.processSegmentGroup(V,N,b);if(null===q)return null;p.push(...q)}const C=yr(p);return C.sort((c,l)=>c.value.outlet===Re?-1:l.value.outlet===Re?1:c.value.outlet.localeCompare(l.value.outlet)),C}processSegment(c,l,p,C){for(const b of c){const N=this.processSegmentAgainstRoute(b,l,p,C);if(null!==N)return N}return we(l,p,C)?[]:null}processSegmentAgainstRoute(c,l,p,C){if(c.redirectTo||!Z(c,l,p,C))return null;let b,N=[],V=[];if("**"===c.path){const Ct=p.length>0?Dr(p).parameters:{};b=new Ar(p,Ct,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+p.length,Bs(c))}else{const Ct=pe(l,c,p);if(!Ct.matched)return null;N=Ct.consumedSegments,V=p.slice(Ct.lastChild),b=new Ar(N,Ct.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+N.length,Bs(c))}const q=(f=c).children?f.children:f.loadChildren?f._loadedConfig.routes:[],{segmentGroup:Se,slicedSegments:Ue}=Be(l,N,V,q.filter(Ct=>void 0===Ct.redirectTo),this.relativeLinkResolution);var f;if(0===Ue.length&&Se.hasChildren()){const Ct=this.processChildren(q,Se);return null===Ct?null:[new vn(b,Ct)]}if(0===q.length&&0===Ue.length)return[new vn(b,[])];const at=S(c)===C,kt=this.processSegment(q,Se,Ue,at?Re:C);return null===kt?null:[new vn(b,kt)]}}function Hn(f){const c=f.value.routeConfig;return c&&""===c.path&&void 0===c.redirectTo}function yr(f){const c=[],l=new Set;for(const p of f){if(!Hn(p)){c.push(p);continue}const C=c.find(b=>p.value.routeConfig===b.value.routeConfig);void 0!==C?(C.children.push(...p.children),l.add(C)):c.push(p)}for(const p of l){const C=yr(p.children);c.push(new vn(p.value,C))}return c.filter(p=>!l.has(p))}function Vi(f){let c=f;for(;c._sourceSegment;)c=c._sourceSegment;return c}function Fr(f){let c=f,l=c._segmentIndexShift?c._segmentIndexShift:0;for(;c._sourceSegment;)c=c._sourceSegment,l+=c._segmentIndexShift?c._segmentIndexShift:0;return l-1}function Ha(f){return f.data||{}}function Bs(f){return f.resolve||{}}function fo(f){return ue(c=>{const l=f(c);return l?(0,P.Dp)(l).pipe((0,yt.U)(()=>c)):(0,H.of)(c)})}class Ro extends class{shouldDetach(c){return!1}store(c,l){}shouldAttach(c){return!1}retrieve(c){return null}shouldReuseRoute(c,l){return c.routeConfig===l.routeConfig}}{}const No=new u.OlP("ROUTES");class Hs{constructor(c,l,p,C){this.loader=c,this.compiler=l,this.onLoadStartListener=p,this.onLoadEndListener=C}load(c,l){if(l._loader$)return l._loader$;this.onLoadStartListener&&this.onLoadStartListener(l);const C=this.loadModuleFactory(l.loadChildren).pipe((0,yt.U)(b=>{this.onLoadEndListener&&this.onLoadEndListener(l);const N=b.create(c);return new Rt(rn(N.injector.get(No,void 0,u.XFs.Self|u.XFs.Optional)).map(_),N)}),(0,gn.K)(b=>{throw l._loader$=void 0,b}));return l._loader$=new le(C,()=>new re.x).pipe(lt()),l._loader$}loadModuleFactory(c){return"string"==typeof c?(0,P.Dp)(this.loader.load(c)):Mn(c()).pipe((0,it.z)(l=>l instanceof u.YKP?(0,H.of)(l):(0,P.Dp)(this.compiler.compileModuleAsync(l))))}}class za{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ui,this.attachRef=null}}class Ui{constructor(){this.contexts=new Map}onChildOutletCreated(c,l){const p=this.getOrCreateContext(c);p.outlet=l,this.contexts.set(c,p)}onChildOutletDestroyed(c){const l=this.getContext(c);l&&(l.outlet=null)}onOutletDeactivated(){const c=this.contexts;return this.contexts=new Map,c}onOutletReAttached(c){this.contexts=c}getOrCreateContext(c){let l=this.getContext(c);return l||(l=new za,this.contexts.set(c,l)),l}getContext(c){return this.contexts.get(c)||null}}class cu{shouldProcessUrl(c){return!0}extract(c){return c}merge(c,l){return c}}function du(f){throw f}function Gn(f,c,l){return c.parse("/")}function ei(f,c){return(0,H.of)(null)}const Xt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fu={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wn=(()=>{class f{constructor(l,p,C,b,N,V,q,Se){this.rootComponentType=l,this.urlSerializer=p,this.rootContexts=C,this.location=b,this.config=Se,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new re.x,this.errorHandler=du,this.malformedUriErrorHandler=Gn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ei,afterPreactivation:ei},this.urlHandlingStrategy=new cu,this.routeReuseStrategy=new Ro,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=N.get(u.h0i),this.console=N.get(u.c2e);const kt=N.get(u.R0b);this.isNgZoneEnabled=kt instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(Se),this.currentUrlTree=new Kn(new et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Hs(V,q,Ct=>this.triggerEvent(new G(Ct)),Ct=>this.triggerEvent(new W(Ct))),this.routerState=Un(this.currentUrlTree,this.rootComponentType),this.transitions=new te({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()}get browserPageId(){var l;return null===(l=this.location.getState())||void 0===l?void 0:l.\u0275routerPageId}setupNavigations(l){const p=this.events;return l.pipe((0,ee.h)(C=>0!==C.id),(0,yt.U)(C=>Object.assign(Object.assign({},C),{extractedUrl:this.urlHandlingStrategy.extract(C.rawUrl)})),ue(C=>{let b=!1,N=!1;return(0,H.of)(C).pipe(Tt(V=>{this.currentNavigation={id:V.id,initialUrl:V.currentRawUrl,extractedUrl:V.extractedUrl,trigger:V.source,extras:V.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ue(V=>{const q=!this.navigated||V.extractedUrl.toString()!==this.browserUrlTree.toString(),Se=("reload"===this.onSameUrlNavigation||q)&&this.urlHandlingStrategy.shouldProcessUrl(V.rawUrl);if(Fo(V.source)&&(this.browserUrlTree=V.rawUrl),Se)return(0,H.of)(V).pipe(ue(Ue=>{const at=this.transitions.getValue();return p.next(new Cn(Ue.id,this.serializeUrl(Ue.extractedUrl),Ue.source,Ue.restoredState)),at!==this.transitions.getValue()?X.E:Promise.resolve(Ue)}),function(f,c,l,p){return ue(C=>function(f,c,l,p,C){return new bn(f,c,l,p,C).apply()}(f,c,l,C.extractedUrl,p).pipe((0,yt.U)(b=>Object.assign(Object.assign({},C),{urlAfterRedirects:b}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Tt(Ue=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Ue.urlAfterRedirects})}),function(f,c,l,p,C){return(0,it.z)(b=>function(f,c,l,p,C="emptyOnly",b="legacy"){try{const N=new ou(f,c,l,p,C,b).recognize();return null===N?Io(new Us):(0,H.of)(N)}catch(N){return Io(N)}}(f,c,b.urlAfterRedirects,l(b.urlAfterRedirects),p,C).pipe((0,yt.U)(N=>Object.assign(Object.assign({},b),{targetSnapshot:N}))))}(this.rootComponentType,this.config,Ue=>this.serializeUrl(Ue),this.paramsInheritanceStrategy,this.relativeLinkResolution),Tt(Ue=>{"eager"===this.urlUpdateStrategy&&(Ue.extras.skipLocationChange||this.setBrowserUrl(Ue.urlAfterRedirects,Ue),this.browserUrlTree=Ue.urlAfterRedirects);const at=new Ft(Ue.id,this.serializeUrl(Ue.extractedUrl),this.serializeUrl(Ue.urlAfterRedirects),Ue.targetSnapshot);p.next(at)}));if(q&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:at,extractedUrl:kt,source:Ct,restoredState:vr,extras:or}=V,Lr=new Cn(at,this.serializeUrl(kt),Ct,vr);p.next(Lr);const Xi=Un(kt,this.rootComponentType).snapshot;return(0,H.of)(Object.assign(Object.assign({},V),{targetSnapshot:Xi,urlAfterRedirects:kt,extras:Object.assign(Object.assign({},or),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=V.rawUrl,this.browserUrlTree=V.urlAfterRedirects,V.resolve(null),X.E}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.beforePreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),Tt(V=>{const q=new gt(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot);this.triggerEvent(q)}),(0,yt.U)(V=>Object.assign(Object.assign({},V),{guards:ks(V.targetSnapshot,V.currentSnapshot,this.rootContexts)})),function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,currentSnapshot:C,guards:{canActivateChecks:b,canDeactivateChecks:N}}=l;return 0===N.length&&0===b.length?(0,H.of)(Object.assign(Object.assign({},l),{guardsResult:!0})):function(f,c,l,p){return(0,P.Dp)(f).pipe((0,it.z)(C=>function(f,c,l,p,C){const b=c&&c.routeConfig?c.routeConfig.canDeactivate:null;if(!b||0===b.length)return(0,H.of)(!0);const N=b.map(V=>{const q=Vs(V,c,C);let Se;if(function(f){return f&&$t(f.canDeactivate)}(q))Se=Mn(q.canDeactivate(f,c,l,p));else{if(!$t(q))throw new Error("Invalid CanDeactivate guard");Se=Mn(q(f,c,l,p))}return Se.pipe(jt())});return(0,H.of)(N).pipe(gr())}(C.component,C.route,l,c,p)),jt(C=>!0!==C,!0))}(N,p,C,f).pipe((0,it.z)(V=>V&&function(f){return"boolean"==typeof f}(V)?function(f,c,l,p){return(0,P.Dp)(c).pipe((0,It.b)(C=>he(function(f,c){return null!==f&&c&&c(new ge(f)),(0,H.of)(!0)}(C.route.parent,p),function(f,c){return null!==f&&c&&c(new Ne(f)),(0,H.of)(!0)}(C.route,p),function(f,c,l){const p=c[c.length-1],b=c.slice(0,c.length-1).reverse().map(N=>function(f){const c=f.routeConfig?f.routeConfig.canActivateChild:null;return c&&0!==c.length?{node:f,guards:c}:null}(N)).filter(N=>null!==N).map(N=>Ke(()=>{const V=N.guards.map(q=>{const Se=Vs(q,N.node,l);let Ue;if(function(f){return f&&$t(f.canActivateChild)}(Se))Ue=Mn(Se.canActivateChild(p,f));else{if(!$t(Se))throw new Error("Invalid CanActivateChild guard");Ue=Mn(Se(p,f))}return Ue.pipe(jt())});return(0,H.of)(V).pipe(gr())}));return(0,H.of)(b).pipe(gr())}(f,C.path,l),function(f,c,l){const p=c.routeConfig?c.routeConfig.canActivate:null;if(!p||0===p.length)return(0,H.of)(!0);const C=p.map(b=>Ke(()=>{const N=Vs(b,c,l);let V;if(function(f){return f&&$t(f.canActivate)}(N))V=Mn(N.canActivate(c,f));else{if(!$t(N))throw new Error("Invalid CanActivate guard");V=Mn(N(c,f))}return V.pipe(jt())}));return(0,H.of)(C).pipe(gr())}(f,C.route,l))),jt(C=>!0!==C,!0))}(p,b,f,c):(0,H.of)(V)),(0,yt.U)(V=>Object.assign(Object.assign({},l),{guardsResult:V})))})}(this.ngModule.injector,V=>this.triggerEvent(V)),Tt(V=>{if(Or(V.guardsResult)){const Se=wt(`Redirecting to "${this.serializeUrl(V.guardsResult)}"`);throw Se.url=V.guardsResult,Se}const q=new tr(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot,!!V.guardsResult);this.triggerEvent(q)}),(0,ee.h)(V=>!!V.guardsResult||(this.restoreHistory(V),this.cancelNavigationTransition(V,""),!1)),fo(V=>{if(V.guards.canActivateChecks.length)return(0,H.of)(V).pipe(Tt(q=>{const Se=new Ri(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}),ue(q=>{let Se=!1;return(0,H.of)(q).pipe(function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,guards:{canActivateChecks:C}}=l;if(!C.length)return(0,H.of)(l);let b=0;return(0,P.Dp)(C).pipe((0,It.b)(N=>function(f,c,l,p){return function(f,c,l,p){const C=Object.keys(f);if(0===C.length)return(0,H.of)({});const b={};return(0,P.Dp)(C).pipe((0,it.z)(N=>function(f,c,l,p){const C=Vs(f,c,p);return Mn(C.resolve?C.resolve(c,l):C(c,l))}(f[N],c,l,p).pipe(Tt(V=>{b[N]=V}))),Te(1),(0,it.z)(()=>Object.keys(b).length===C.length?(0,H.of)(b):X.E))}(f._resolve,f,c,p).pipe((0,yt.U)(b=>(f._resolvedData=b,f.data=Object.assign(Object.assign({},f.data),Mt(f,l).resolve),null)))}(N.route,p,f,c)),Tt(()=>b++),Te(1),(0,it.z)(N=>b===C.length?(0,H.of)(l):X.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Tt({next:()=>Se=!0,complete:()=>{Se||(this.restoreHistory(q),this.cancelNavigationTransition(q,"At least one route resolver didn't emit any value."))}}))}),Tt(q=>{const Se=new fe(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}))}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.afterPreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),(0,yt.U)(V=>{const q=function(f,c,l){const p=Sr(f,c._root,l?l._root:void 0);return new Ht(p,c)}(this.routeReuseStrategy,V.targetSnapshot,V.currentRouterState);return Object.assign(Object.assign({},V),{targetRouterState:q})}),Tt(V=>{this.currentUrlTree=V.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,V.rawUrl),this.routerState=V.targetRouterState,"deferred"===this.urlUpdateStrategy&&(V.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,V),this.browserUrlTree=V.urlAfterRedirects)}),((f,c,l)=>(0,yt.U)(p=>(new Oe(c,p.targetRouterState,p.currentRouterState,l).activate(f),p)))(this.rootContexts,this.routeReuseStrategy,V=>this.triggerEvent(V)),Tt({next(){b=!0},complete(){b=!0}}),function(f){return(0,$e.e)(function(c,l){try{c.subscribe(l)}finally{l.add(f)}})}(()=>{if(!b&&!N){const V=`Navigation ID ${C.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(C),this.cancelNavigationTransition(C,V)):this.cancelNavigationTransition(C,V)}this.currentNavigation=null}),(0,gn.K)(V=>{if(N=!0,function(f){return f&&f[zn]}(V)){const q=Or(V.url);q||(this.navigated=!0,this.restoreHistory(C,!0));const Se=new xt(C.id,this.serializeUrl(C.extractedUrl),V.message);p.next(Se),q?setTimeout(()=>{const Ue=this.urlHandlingStrategy.merge(V.url,this.rawUrlTree),at={skipLocationChange:C.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Fo(C.source)};this.scheduleNavigation(Ue,"imperative",null,at,{resolve:C.resolve,reject:C.reject,promise:C.promise})},0):C.resolve(!1)}else{this.restoreHistory(C,!0);const q=new Hr(C.id,this.serializeUrl(C.extractedUrl),V);p.next(q);try{C.resolve(this.errorHandler(V))}catch(Se){C.reject(Se)}}return X.E}))}))}resetRootComponentType(l){this.rootComponentType=l,this.routerState.root.component=this.rootComponentType}getTransition(){const l=this.transitions.value;return l.urlAfterRedirects=this.browserUrlTree,l}setTransition(l){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),l))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(l=>{const p=this.extractLocationChangeInfoFromEvent(l);this.shouldScheduleNavigation(this.lastLocationChangeInfo,p)&&setTimeout(()=>{const{source:C,state:b,urlTree:N}=p,V={replaceUrl:!0};if(b){const q=Object.assign({},b);delete q.navigationId,delete q.\u0275routerPageId,0!==Object.keys(q).length&&(V.state=q)}this.scheduleNavigation(N,C,b,V)},0),this.lastLocationChangeInfo=p}))}extractLocationChangeInfoFromEvent(l){var p;return{source:"popstate"===l.type?"popstate":"hashchange",urlTree:this.parseUrl(l.url),state:(null===(p=l.state)||void 0===p?void 0:p.navigationId)?l.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(l,p){if(!l)return!0;const C=p.urlTree.toString()===l.urlTree.toString();return p.transitionId!==l.transitionId||!C||!("hashchange"===p.source&&"popstate"===l.source||"popstate"===p.source&&"hashchange"===l.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(l){this.events.next(l)}resetConfig(l){_i(l),this.config=l.map(_),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(l,p={}){const{relativeTo:C,queryParams:b,fragment:N,queryParamsHandling:V,preserveFragment:q}=p,Se=C||this.routerState.root,Ue=q?this.currentUrlTree.fragment:N;let at=null;switch(V){case"merge":at=Object.assign(Object.assign({},this.currentUrlTree.queryParams),b);break;case"preserve":at=this.currentUrlTree.queryParams;break;default:at=b||null}return null!==at&&(at=this.removeEmptyProps(at)),function(f,c,l,p,C){if(0===l.length)return Tr(c.root,c.root,c,p,C);const b=function(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new mi(!0,0,f);let c=0,l=!1;const p=f.reduce((C,b,N)=>{if("object"==typeof b&&null!=b){if(b.outlets){const V={};return nt(b.outlets,(q,Se)=>{V[Se]="string"==typeof q?q.split("/"):q}),[...C,{outlets:V}]}if(b.segmentPath)return[...C,b.segmentPath]}return"string"!=typeof b?[...C,b]:0===N?(b.split("/").forEach((V,q)=>{0==q&&"."===V||(0==q&&""===V?l=!0:".."===V?c++:""!=V&&C.push(V))}),C):[...C,b]},[]);return new mi(l,c,p)}(l);if(b.toRoot())return Tr(c.root,new et([],{}),c,p,C);const N=function(f,c,l){if(f.isAbsolute)return new yi(c.root,!0,0);if(-1===l.snapshot._lastPathIndex){const b=l.snapshot._urlSegment;return new yi(b,b===c.root,0)}const p=jn(f.commands[0])?0:1;return function(f,c,l){let p=f,C=c,b=l;for(;b>C;){if(b-=C,p=p.parent,!p)throw new Error("Invalid number of '../'");C=p.segments.length}return new yi(p,!1,C-b)}(l.snapshot._urlSegment,l.snapshot._lastPathIndex+p,f.numberOfDoubleDots)}(b,c,f),V=N.processChildren?Qr(N.segmentGroup,N.index,b.commands):vi(N.segmentGroup,N.index,b.commands);return Tr(N.segmentGroup,V,c,p,C)}(Se,this.currentUrlTree,l,at,null!=Ue?Ue:null)}navigateByUrl(l,p={skipLocationChange:!1}){const C=Or(l)?l:this.parseUrl(l),b=this.urlHandlingStrategy.merge(C,this.rawUrlTree);return this.scheduleNavigation(b,"imperative",null,p)}navigate(l,p={skipLocationChange:!1}){return function(f){for(let c=0;c{const b=l[C];return null!=b&&(p[C]=b),p},{})}processNavigations(){this.navigations.subscribe(l=>{this.navigated=!0,this.lastSuccessfulId=l.id,this.currentPageId=l.targetPageId,this.events.next(new Nn(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,l.resolve(!0)},l=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(l,p,C,b,N){var V,q;if(this.disposed)return Promise.resolve(!1);const Se=this.getTransition(),Ue=Fo(p)&&Se&&!Fo(Se.source),Ct=(this.lastSuccessfulId===Se.id||this.currentNavigation?Se.rawUrl:Se.urlAfterRedirects).toString()===l.toString();if(Ue&&Ct)return Promise.resolve(!0);let vr,or,Lr;N?(vr=N.resolve,or=N.reject,Lr=N.promise):Lr=new Promise((sr,Ho)=>{vr=sr,or=Ho});const Xi=++this.navigationId;let Bi;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(C=this.location.getState()),Bi=C&&C.\u0275routerPageId?C.\u0275routerPageId:b.replaceUrl||b.skipLocationChange?null!==(V=this.browserPageId)&&void 0!==V?V:0:(null!==(q=this.browserPageId)&&void 0!==q?q:0)+1):Bi=0,this.setTransition({id:Xi,targetPageId:Bi,source:p,restoredState:C,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:l,extras:b,resolve:vr,reject:or,promise:Lr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Lr.catch(sr=>Promise.reject(sr))}setBrowserUrl(l,p){const C=this.urlSerializer.serialize(l),b=Object.assign(Object.assign({},p.extras.state),this.generateNgRouterState(p.id,p.targetPageId));this.location.isCurrentPathEqualTo(C)||p.extras.replaceUrl?this.location.replaceState(C,"",b):this.location.go(C,"",b)}restoreHistory(l,p=!1){var C,b;if("computed"===this.canceledNavigationResolution){const N=this.currentPageId-l.targetPageId;"popstate"!==l.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(C=this.currentNavigation)||void 0===C?void 0:C.finalUrl)||0===N?this.currentUrlTree===(null===(b=this.currentNavigation)||void 0===b?void 0:b.finalUrl)&&0===N&&(this.resetState(l),this.browserUrlTree=l.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(N)}else"replace"===this.canceledNavigationResolution&&(p&&this.resetState(l),this.resetUrlToCurrentUrlTree())}resetState(l){this.routerState=l.currentRouterState,this.currentUrlTree=l.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,l.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(l,p){const C=new xt(l.id,this.serializeUrl(l.extractedUrl),p);this.triggerEvent(C),l.resolve(!1)}generateNgRouterState(l,p){return"computed"===this.canceledNavigationResolution?{navigationId:l,\u0275routerPageId:p}:{navigationId:l}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.DyG),u.LFG(yn),u.LFG(Ui),u.LFG(y.Ye),u.LFG(u.zs3),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Fo(f){return"imperative"!==f}let Lo=(()=>{class f{constructor(l,p,C,b,N){this.router=l,this.route=p,this.commands=[],this.onChanges=new re.x,null==C&&b.setAttribute(N.nativeElement,"tabindex","0")}ngOnChanges(l){this.onChanges.next(this)}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}onClick(){const l={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(l,p){1&l&&u.NdJ("click",function(){return p.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})(),ko=(()=>{class f{constructor(l,p,C){this.router=l,this.route=p,this.locationStrategy=C,this.commands=[],this.onChanges=new re.x,this.subscription=l.events.subscribe(b=>{b instanceof Nn&&this.updateTargetUrlAndHref()})}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}ngOnChanges(l){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(l,p,C,b,N){if(0!==l||p||C||b||N||"string"==typeof this.target&&"_self"!=this.target)return!0;const V={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,V),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.Y36(y.S$))},f.\u0275dir=u.lG2({type:f,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(l,p){1&l&&u.NdJ("click",function(b){return p.onClick(b.button,b.ctrlKey,b.shiftKey,b.altKey,b.metaKey)}),2&l&&(u.Ikx("href",p.href,u.LSH),u.uIk("target",p.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})();function ti(f){return""===f||!!f}let ho=(()=>{class f{constructor(l,p,C,b,N,V){this.router=l,this.element=p,this.renderer=C,this.cdr=b,this.link=N,this.linkWithHref=V,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=l.events.subscribe(q=>{q instanceof Nn&&this.update()})}ngAfterContentInit(){(0,H.of)(this.links.changes,this.linksWithHrefs.changes,(0,H.of)(null)).pipe((0,Ge.J)()).subscribe(l=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var l;null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe();const p=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(C=>!!C).map(C=>C.onChanges);this.linkInputChangesSubscription=(0,P.Dp)(p).pipe((0,Ge.J)()).subscribe(C=>{this.isActive!==this.isLinkActive(this.router)(C)&&this.update()})}set routerLinkActive(l){const p=Array.isArray(l)?l:l.split(" ");this.classes=p.filter(C=>!!C)}ngOnChanges(l){this.update()}ngOnDestroy(){var l;this.routerEventsSubscription.unsubscribe(),null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const l=this.hasActiveLinks();this.isActive!==l&&(this.isActive=l,this.cdr.markForCheck(),this.classes.forEach(p=>{l?this.renderer.addClass(this.element.nativeElement,p):this.renderer.removeClass(this.element.nativeElement,p)}))})}isLinkActive(l){const p=function(f){return!!f.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return C=>l.isActive(C.urlTree,p)}hasActiveLinks(){const l=this.isLinkActive(this.router);return this.link&&l(this.link)||this.linkWithHref&&l(this.linkWithHref)||this.links.some(l)||this.linksWithHrefs.some(l)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(u.sBO),u.Y36(Lo,8),u.Y36(ko,8))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLinkActive",""]],contentQueries:function(l,p,C){if(1&l&&(u.Suo(C,Lo,5),u.Suo(C,ko,5)),2&l){let b;u.iGM(b=u.CRH())&&(p.links=b),u.iGM(b=u.CRH())&&(p.linksWithHrefs=b)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[u.TTD]}),f})(),po=(()=>{class f{constructor(l,p,C,b,N){this.parentContexts=l,this.location=p,this.resolver=C,this.changeDetector=N,this.activated=null,this._activatedRoute=null,this.activateEvents=new u.vpe,this.deactivateEvents=new u.vpe,this.name=b||Re,l.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const l=this.parentContexts.getContext(this.name);l&&l.route&&(l.attachRef?this.attach(l.attachRef,l.route):this.activateWith(l.route,l.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const l=this.activated;return this.activated=null,this._activatedRoute=null,l}attach(l,p){this.activated=l,this._activatedRoute=p,this.location.insert(l.hostView)}deactivate(){if(this.activated){const l=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(l)}}activateWith(l,p){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=l;const N=(p=p||this.resolver).resolveComponentFactory(l._futureSnapshot.routeConfig.component),V=this.parentContexts.getOrCreateContext(this.name).children,q=new Ka(l,V,this.location.injector);this.activated=this.location.createComponent(N,this.location.length,q),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Ui),u.Y36(u.s_b),u.Y36(u._Vd),u.$8M("name"),u.Y36(u.sBO))},f.\u0275dir=u.lG2({type:f,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),f})();class Ka{constructor(c,l,p){this.route=c,this.childContexts=l,this.parent=p}get(c,l){return c===Gt?this.route:c===Ui?this.childContexts:this.parent.get(c,l)}}class Ya{}class Qi{preload(c,l){return(0,H.of)(null)}}let Za=(()=>{class f{constructor(l,p,C,b,N){this.router=l,this.injector=b,this.preloadingStrategy=N,this.loader=new Hs(p,C,Se=>l.triggerEvent(new G(Se)),Se=>l.triggerEvent(new W(Se)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,ee.h)(l=>l instanceof Nn),(0,It.b)(()=>this.preload())).subscribe(()=>{})}preload(){const l=this.injector.get(u.h0i);return this.processRoutes(l,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(l,p){const C=[];for(const b of p)if(b.loadChildren&&!b.canLoad&&b._loadedConfig){const N=b._loadedConfig;C.push(this.processRoutes(N.module,N.routes))}else b.loadChildren&&!b.canLoad?C.push(this.preloadConfig(l,b)):b.children&&C.push(this.processRoutes(l,b.children));return(0,P.Dp)(C).pipe((0,Ge.J)(),(0,yt.U)(b=>{}))}preloadConfig(l,p){return this.preloadingStrategy.preload(p,()=>(p._loadedConfig?(0,H.of)(p._loadedConfig):this.loader.load(l.injector,p)).pipe((0,it.z)(b=>(p._loadedConfig=b,this.processRoutes(b.module,b.routes)))))}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(u.zs3),u.LFG(Ya))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})(),Gs=(()=>{class f{constructor(l,p,C={}){this.router=l,this.viewportScroller=p,this.options=C,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},C.scrollPositionRestoration=C.scrollPositionRestoration||"disabled",C.anchorScrolling=C.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(l=>{l instanceof Cn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=l.navigationTrigger,this.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof Nn&&(this.lastId=l.id,this.scheduleScrollEvent(l,this.router.parseUrl(l.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(l=>{l instanceof xe&&(l.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(l,p){this.router.triggerEvent(new xe(l,"popstate"===this.lastSource?this.store[this.restoredId]:null,p))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(y.EM),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();const ni=new u.OlP("ROUTER_CONFIGURATION"),qa=new u.OlP("ROUTER_FORROOT_GUARD"),sf=[y.Ye,{provide:yn,useClass:zr},{provide:Wn,useFactory:function(f,c,l,p,C,b,N,V={},q,Se){const Ue=new Wn(null,f,c,l,p,C,b,rn(N));return q&&(Ue.urlHandlingStrategy=q),Se&&(Ue.routeReuseStrategy=Se),function(f,c){f.errorHandler&&(c.errorHandler=f.errorHandler),f.malformedUriErrorHandler&&(c.malformedUriErrorHandler=f.malformedUriErrorHandler),f.onSameUrlNavigation&&(c.onSameUrlNavigation=f.onSameUrlNavigation),f.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=f.paramsInheritanceStrategy),f.relativeLinkResolution&&(c.relativeLinkResolution=f.relativeLinkResolution),f.urlUpdateStrategy&&(c.urlUpdateStrategy=f.urlUpdateStrategy)}(V,Ue),V.enableTracing&&Ue.events.subscribe(at=>{var kt,Ct;null===(kt=console.group)||void 0===kt||kt.call(console,`Router Event: ${at.constructor.name}`),console.log(at.toString()),console.log(at),null===(Ct=console.groupEnd)||void 0===Ct||Ct.call(console)}),Ue},deps:[yn,Ui,y.Ye,u.zs3,u.v3s,u.Sil,No,ni,[class{},new u.FiY],[class{},new u.FiY]]},Ui,{provide:Gt,useFactory:function(f){return f.routerState.root},deps:[Wn]},{provide:u.v3s,useClass:u.EAV},Za,Qi,class{preload(c,l){return l().pipe((0,gn.K)(()=>(0,H.of)(null)))}},{provide:ni,useValue:{enableTracing:!1}}];function af(){return new u.PXZ("Router",Wn)}let Bo=(()=>{class f{constructor(l,p){}static forRoot(l,p){return{ngModule:f,providers:[sf,zs(l),{provide:qa,useFactory:$o,deps:[[Wn,new u.FiY,new u.tp0]]},{provide:ni,useValue:p||{}},{provide:y.S$,useFactory:Ws,deps:[y.lw,[new u.tBr(y.mr),new u.FiY],ni]},{provide:Gs,useFactory:Qa,deps:[Wn,y.EM,ni]},{provide:Ya,useExisting:p&&p.preloadingStrategy?p.preloadingStrategy:Qi},{provide:u.PXZ,multi:!0,useFactory:af},[Ei,{provide:u.ip1,multi:!0,useFactory:Ks,deps:[Ei]},{provide:mu,useFactory:jo,deps:[Ei]},{provide:u.tb,multi:!0,useExisting:mu}]]}}static forChild(l){return{ngModule:f,providers:[zs(l)]}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(qa,8),u.LFG(Wn,8))},f.\u0275mod=u.oAB({type:f}),f.\u0275inj=u.cJS({}),f})();function Qa(f,c,l){return l.scrollOffset&&c.setOffset(l.scrollOffset),new Gs(f,c,l)}function Ws(f,c,l={}){return l.useHash?new y.Do(f,c):new y.b0(f,c)}function $o(f){return"guarded"}function zs(f){return[{provide:u.deG,multi:!0,useValue:f},{provide:No,multi:!0,useValue:f}]}let Ei=(()=>{class f{constructor(l){this.injector=l,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new re.x}appInitializer(){return this.injector.get(y.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let p=null;const C=new Promise(V=>p=V),b=this.injector.get(Wn),N=this.injector.get(ni);return"disabled"===N.initialNavigation?(b.setUpLocationChangeListener(),p(!0)):"enabled"===N.initialNavigation||"enabledBlocking"===N.initialNavigation?(b.hooks.afterPreactivation=()=>this.initNavigation?(0,H.of)(null):(this.initNavigation=!0,p(!0),this.resultOfPreactivationDone),b.initialNavigation()):p(!0),C})}bootstrapListener(l){const p=this.injector.get(ni),C=this.injector.get(Za),b=this.injector.get(Gs),N=this.injector.get(Wn),V=this.injector.get(u.z2F);l===V.components[0]&&(("enabledNonBlocking"===p.initialNavigation||void 0===p.initialNavigation)&&N.initialNavigation(),C.setUpPreloading(),b.init(),N.resetRootComponentType(V.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.zs3))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Ks(f){return f.appInitializer.bind(f)}function jo(f){return f.bootstrapListener.bind(f)}const mu=new u.OlP("Router Initializer")},1776:(Ye,me,O)=>{"use strict";O.d(me,{y:()=>U});var y=O(4111),u=O(8839),ce=O(8794),re=O(2738);function J(De){return 0===De.length?re.y:1===De.length?De[0]:function(_e){return De.reduce(function(He,Me){return Me(He)},_e)}}var K=O(6806),P=O(8853),x=O(4112),U=function(){function De(Pe){Pe&&(this._subscribe=Pe)}return De.prototype.lift=function(Pe){var _e=new De;return _e.source=this,_e.operator=Pe,_e},De.prototype.subscribe=function(Pe,_e,He){var Me=this,Ge=function(De){return De&&De instanceof y.Lv||function(De){return De&&(0,P.m)(De.next)&&(0,P.m)(De.error)&&(0,P.m)(De.complete)}(De)&&(0,u.Nn)(De)}(Pe)?Pe:new y.Hp(Pe,_e,He);return(0,x.x)(function(){var Fe=Me.operator,he=Me.source;Ge.add(Fe?Fe.call(Ge,he):he?Me._subscribe(Ge):Me._trySubscribe(Ge))}),Ge},De.prototype._trySubscribe=function(Pe){try{return this._subscribe(Pe)}catch(_e){Pe.error(_e)}},De.prototype.forEach=function(Pe,_e){var He=this;return new(_e=Y(_e))(function(Me,Ge){var We;We=He.subscribe(function(Fe){try{Pe(Fe)}catch(he){Ge(he),null==We||We.unsubscribe()}},Ge,Me)})},De.prototype._subscribe=function(Pe){var _e;return null===(_e=this.source)||void 0===_e?void 0:_e.subscribe(Pe)},De.prototype[ce.L]=function(){return this},De.prototype.pipe=function(){for(var Pe=[],_e=0;_e{"use strict";O.d(me,{x:()=>P});var y=O(9162),u=O(1776),ce=O(8839),te=(0,O(3864).d)(function(U){return function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),J=O(5850),K=O(4112),P=function(U){function Y(){var ae=U.call(this)||this;return ae.closed=!1,ae.observers=[],ae.isStopped=!1,ae.hasError=!1,ae.thrownError=null,ae}return(0,y.ZT)(Y,U),Y.prototype.lift=function(ae){var Ee=new x(this,this);return Ee.operator=ae,Ee},Y.prototype._throwIfClosed=function(){if(this.closed)throw new te},Y.prototype.next=function(ae){var Ee=this;(0,K.x)(function(){var De,Pe;if(Ee._throwIfClosed(),!Ee.isStopped){var _e=Ee.observers.slice();try{for(var He=(0,y.XA)(_e),Me=He.next();!Me.done;Me=He.next())Me.value.next(ae)}catch(We){De={error:We}}finally{try{Me&&!Me.done&&(Pe=He.return)&&Pe.call(He)}finally{if(De)throw De.error}}}})},Y.prototype.error=function(ae){var Ee=this;(0,K.x)(function(){if(Ee._throwIfClosed(),!Ee.isStopped){Ee.hasError=Ee.isStopped=!0,Ee.thrownError=ae;for(var De=Ee.observers;De.length;)De.shift().error(ae)}})},Y.prototype.complete=function(){var ae=this;(0,K.x)(function(){if(ae._throwIfClosed(),!ae.isStopped){ae.isStopped=!0;for(var Ee=ae.observers;Ee.length;)Ee.shift().complete()}})},Y.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Y.prototype,"observed",{get:function(){var ae;return(null===(ae=this.observers)||void 0===ae?void 0:ae.length)>0},enumerable:!1,configurable:!0}),Y.prototype._trySubscribe=function(ae){return this._throwIfClosed(),U.prototype._trySubscribe.call(this,ae)},Y.prototype._subscribe=function(ae){return this._throwIfClosed(),this._checkFinalizedStatuses(ae),this._innerSubscribe(ae)},Y.prototype._innerSubscribe=function(ae){var _e=this.observers;return this.hasError||this.isStopped?ce.Lc:(_e.push(ae),new ce.w0(function(){return(0,J.P)(_e,ae)}))},Y.prototype._checkFinalizedStatuses=function(ae){var _e=this.isStopped;this.hasError?ae.error(this.thrownError):_e&&ae.complete()},Y.prototype.asObservable=function(){var ae=new u.y;return ae.source=this,ae},Y.create=function(ae,Ee){return new x(ae,Ee)},Y}(u.y),x=function(U){function Y(ae,Ee){var De=U.call(this)||this;return De.destination=ae,De.source=Ee,De}return(0,y.ZT)(Y,U),Y.prototype.next=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.next)||void 0===De||De.call(Ee,ae)},Y.prototype.error=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.error)||void 0===De||De.call(Ee,ae)},Y.prototype.complete=function(){var ae,Ee;null===(Ee=null===(ae=this.destination)||void 0===ae?void 0:ae.complete)||void 0===Ee||Ee.call(ae)},Y.prototype._subscribe=function(ae){var Ee,De;return null!==(De=null===(Ee=this.source)||void 0===Ee?void 0:Ee.subscribe(ae))&&void 0!==De?De:ce.Lc},Y}(P)},4111:(Ye,me,O)=>{"use strict";O.d(me,{Hp:()=>De,Lv:()=>Ee});var y=O(9162),u=O(8853),ce=O(8839),re=O(6806),te=O(8550);function J(){}var K=U("C",void 0,void 0);function U(Ge,We,Fe){return{kind:Ge,value:We,error:Fe}}var Y=O(9385),ae=O(4112),Ee=function(Ge){function We(Fe){var he=Ge.call(this)||this;return he.isStopped=!1,Fe?(he.destination=Fe,(0,ce.Nn)(Fe)&&Fe.add(he)):he.destination=Me,he}return(0,y.ZT)(We,Ge),We.create=function(Fe,he,Ke){return new De(Fe,he,Ke)},We.prototype.next=function(Fe){this.isStopped?He(function(Ge){return U("N",Ge,void 0)}(Fe),this):this._next(Fe)},We.prototype.error=function(Fe){this.isStopped?He(function(Ge){return U("E",void 0,Ge)}(Fe),this):(this.isStopped=!0,this._error(Fe))},We.prototype.complete=function(){this.isStopped?He(K,this):(this.isStopped=!0,this._complete())},We.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ge.prototype.unsubscribe.call(this),this.destination=null)},We.prototype._next=function(Fe){this.destination.next(Fe)},We.prototype._error=function(Fe){try{this.destination.error(Fe)}finally{this.unsubscribe()}},We.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},We}(ce.w0),De=function(Ge){function We(Fe,he,Ke){var $e,bt=Ge.call(this)||this;if((0,u.m)(Fe))$e=Fe;else if(Fe){var lt;$e=Fe.next,he=Fe.error,Ke=Fe.complete,bt&&re.v.useDeprecatedNextContext?(lt=Object.create(Fe)).unsubscribe=function(){return bt.unsubscribe()}:lt=Fe,$e=null==$e?void 0:$e.bind(lt),he=null==he?void 0:he.bind(lt),Ke=null==Ke?void 0:Ke.bind(lt)}return bt.destination={next:$e?Pe($e):J,error:Pe(null!=he?he:_e),complete:Ke?Pe(Ke):J},bt}return(0,y.ZT)(We,Ge),We}(Ee);function Pe(Ge,We){return function(){for(var Fe=[],he=0;he{"use strict";O.d(me,{Lc:()=>K,w0:()=>J,Nn:()=>P});var y=O(9162),u=O(8853),re=(0,O(3864).d)(function(U){return function(ae){U(this),this.message=ae?ae.length+" errors occurred during unsubscription:\n"+ae.map(function(Ee,De){return De+1+") "+Ee.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=ae}}),te=O(5850),J=function(){function U(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._teardowns=null}return U.prototype.unsubscribe=function(){var Y,ae,Ee,De,Pe;if(!this.closed){this.closed=!0;var _e=this._parentage;if(_e)if(this._parentage=null,Array.isArray(_e))try{for(var He=(0,y.XA)(_e),Me=He.next();!Me.done;Me=He.next())Me.value.remove(this)}catch($e){Y={error:$e}}finally{try{Me&&!Me.done&&(ae=He.return)&&ae.call(He)}finally{if(Y)throw Y.error}}else _e.remove(this);var We=this.initialTeardown;if((0,u.m)(We))try{We()}catch($e){Pe=$e instanceof re?$e.errors:[$e]}var Fe=this._teardowns;if(Fe){this._teardowns=null;try{for(var he=(0,y.XA)(Fe),Ke=he.next();!Ke.done;Ke=he.next()){var bt=Ke.value;try{x(bt)}catch($e){Pe=null!=Pe?Pe:[],$e instanceof re?Pe=(0,y.ev)((0,y.ev)([],(0,y.CR)(Pe)),(0,y.CR)($e.errors)):Pe.push($e)}}}catch($e){Ee={error:$e}}finally{try{Ke&&!Ke.done&&(De=he.return)&&De.call(he)}finally{if(Ee)throw Ee.error}}}if(Pe)throw new re(Pe)}},U.prototype.add=function(Y){var ae;if(Y&&Y!==this)if(this.closed)x(Y);else{if(Y instanceof U){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._teardowns=null!==(ae=this._teardowns)&&void 0!==ae?ae:[]).push(Y)}},U.prototype._hasParent=function(Y){var ae=this._parentage;return ae===Y||Array.isArray(ae)&&ae.includes(Y)},U.prototype._addParent=function(Y){var ae=this._parentage;this._parentage=Array.isArray(ae)?(ae.push(Y),ae):ae?[ae,Y]:Y},U.prototype._removeParent=function(Y){var ae=this._parentage;ae===Y?this._parentage=null:Array.isArray(ae)&&(0,te.P)(ae,Y)},U.prototype.remove=function(Y){var ae=this._teardowns;ae&&(0,te.P)(ae,Y),Y instanceof U&&Y._removeParent(this)},U.EMPTY=((Y=new U).closed=!0,Y),U;var Y}(),K=J.EMPTY;function P(U){return U instanceof J||U&&"closed"in U&&(0,u.m)(U.remove)&&(0,u.m)(U.add)&&(0,u.m)(U.unsubscribe)}function x(U){(0,u.m)(U)?U():U.unsubscribe()}},6806:(Ye,me,O)=>{"use strict";O.d(me,{v:()=>y});var y={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},6149:(Ye,me,O)=>{"use strict";O.d(me,{E:()=>u});var u=new(O(1776).y)(function(te){return te.complete()})},5929:(Ye,me,O)=>{"use strict";O.d(me,{Dp:()=>$e,OO:()=>H,Xf:()=>lt});var y=O(9162),u=function(ee){return ee&&"number"==typeof ee.length&&"function"!=typeof ee},ce=O(8853);function re(ee){return(0,ce.m)(null==ee?void 0:ee.then)}var te=O(8794),J=O(1776),K=O(8839),U=O(2504),ae="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Pe(ee,Te){if(!ee)throw new Error("Iterable cannot be null");return new J.y(function(be){var Ve=new K.w0;return Ve.add(Te.schedule(function(){var Xe=ee[Symbol.asyncIterator]();Ve.add(Te.schedule(function(){var rt=this;Xe.next().then(function(vt){vt.done?be.complete():(be.next(vt.value),rt.schedule())})}))})),Ve})}function _e(ee){return(0,ce.m)(ee[te.L])}function He(ee){return(0,ce.m)(null==ee?void 0:ee[ae])}function Me(ee){return Symbol.asyncIterator&&(0,ce.m)(null==ee?void 0:ee[Symbol.asyncIterator])}function Ge(ee){return new TypeError("You provided "+(null!==ee&&"object"==typeof ee?"an invalid object":"'"+ee+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function We(ee){return(0,y.FC)(this,arguments,function(){var be,Ve,Xe;return(0,y.Jh)(this,function(vt){switch(vt.label){case 0:be=ee.getReader(),vt.label=1;case 1:vt.trys.push([1,,9,10]),vt.label=2;case 2:return[4,(0,y.qq)(be.read())];case 3:return Ve=vt.sent(),Xe=Ve.value,Ve.done?[4,(0,y.qq)(void 0)]:[3,5];case 4:return[2,vt.sent()];case 5:return[4,(0,y.qq)(Xe)];case 6:return[4,vt.sent()];case 7:return vt.sent(),[3,2];case 8:return[3,10];case 9:return be.releaseLock(),[7];case 10:return[2]}})})}function Fe(ee){return(0,ce.m)(null==ee?void 0:ee.getReader)}var bt=O(8550);function $e(ee,Te){return Te?function(ee,Te){if(null!=ee){if(_e(ee))return function(ee,Te){return new J.y(function(be){var Ve=new K.w0;return Ve.add(Te.schedule(function(){var Xe=ee[te.L]();Ve.add(Xe.subscribe({next:function(rt){Ve.add(Te.schedule(function(){return be.next(rt)}))},error:function(rt){Ve.add(Te.schedule(function(){return be.error(rt)}))},complete:function(){Ve.add(Te.schedule(function(){return be.complete()}))}}))})),Ve})}(ee,Te);if(u(ee))return(0,U.r)(ee,Te);if(re(ee))return function(ee,Te){return new J.y(function(be){return Te.schedule(function(){return ee.then(function(Ve){be.add(Te.schedule(function(){be.next(Ve),be.add(Te.schedule(function(){return be.complete()}))}))},function(Ve){be.add(Te.schedule(function(){return be.error(Ve)}))})})})}(ee,Te);if(Me(ee))return Pe(ee,Te);if(He(ee))return function(ee,Te){return new J.y(function(be){var Ve;return be.add(Te.schedule(function(){Ve=ee[ae](),function(ee,Te,be,Ve){void 0===Ve&&(Ve=0);var Xe=Te.schedule(function(){try{be.call(this)}catch(rt){ee.error(rt)}},Ve);ee.add(Xe)}(be,Te,function(){var Xe=Ve.next(),rt=Xe.value;Xe.done?be.complete():(be.next(rt),this.schedule())})})),function(){return(0,ce.m)(null==Ve?void 0:Ve.return)&&Ve.return()}})}(ee,Te);if(Fe(ee))return function(ee,Te){return Pe(We(ee),Te)}(ee,Te)}throw Ge(ee)}(ee,Te):lt(ee)}function lt(ee){if(ee instanceof J.y)return ee;if(null!=ee){if(_e(ee))return function(ee){return new J.y(function(Te){var be=ee[te.L]();if((0,ce.m)(be.subscribe))return be.subscribe(Te);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ee);if(u(ee))return H(ee);if(re(ee))return function(ee){return new J.y(function(Te){ee.then(function(be){Te.closed||(Te.next(be),Te.complete())},function(be){return Te.error(be)}).then(null,bt.h)})}(ee);if(Me(ee))return Ae(ee);if(He(ee))return function(ee){return new J.y(function(Te){var be,Ve;try{for(var Xe=(0,y.XA)(ee),rt=Xe.next();!rt.done;rt=Xe.next())if(Te.next(rt.value),Te.closed)return}catch(jt){be={error:jt}}finally{try{rt&&!rt.done&&(Ve=Xe.return)&&Ve.call(Xe)}finally{if(be)throw be.error}}Te.complete()})}(ee);if(Fe(ee))return function(ee){return Ae(We(ee))}(ee)}throw Ge(ee)}function H(ee){return new J.y(function(Te){for(var be=0;be{"use strict";O.d(me,{h:()=>ce});var y=O(2504),u=O(5929);function ce(re,te){return te?(0,y.r)(re,te):(0,u.OO)(re)}},1964:(Ye,me,O)=>{"use strict";O.d(me,{of:()=>re});var y=O(5994),u=O(2504),ce=O(9528);function re(){for(var te=[],J=0;J{"use strict";O.d(me,{_:()=>ce});var y=O(1776),u=O(8853);function ce(re,te){var J=(0,u.m)(re)?re:function(){return re},K=function(P){return P.error(J())};return new y.y(te?function(P){return te.schedule(K,0,P)}:K)}},5076:(Ye,me,O)=>{"use strict";O.d(me,{Q:()=>ce});var y=O(9162),ce=function(re){function te(J,K,P,x,U){var Y=re.call(this,J)||this;return Y.onFinalize=U,Y._next=K?function(ae){try{K(ae)}catch(Ee){J.error(Ee)}}:re.prototype._next,Y._error=x?function(ae){try{x(ae)}catch(Ee){J.error(Ee)}finally{this.unsubscribe()}}:re.prototype._error,Y._complete=P?function(){try{P()}catch(ae){J.error(ae)}finally{this.unsubscribe()}}:re.prototype._complete,Y}return(0,y.ZT)(te,re),te.prototype.unsubscribe=function(){var J,K=this.closed;re.prototype.unsubscribe.call(this),!K&&(null===(J=this.onFinalize)||void 0===J||J.call(this))},te}(O(4111).Lv)},5894:(Ye,me,O)=>{"use strict";O.d(me,{K:()=>re});var y=O(5929),u=O(5076),ce=O(4297);function re(te){return(0,ce.e)(function(J,K){var U,P=null,x=!1;P=J.subscribe(new u.Q(K,void 0,void 0,function(Y){U=(0,y.Xf)(te(Y,re(te)(J))),P?(P.unsubscribe(),P=null,U.subscribe(K)):x=!0})),x&&(P.unsubscribe(),P=null,U.subscribe(K))})}},3766:(Ye,me,O)=>{"use strict";O.d(me,{b:()=>ce});var y=O(7216),u=O(8853);function ce(re,te){return(0,u.m)(te)?(0,y.z)(re,te,1):(0,y.z)(re,1)}},4689:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(J,K){var P=0;J.subscribe(new u.Q(K,function(x){return re.call(te,x,P++)&&K.next(x)}))})}},5207:(Ye,me,O)=>{"use strict";O.d(me,{U:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(J,K){var P=0;J.subscribe(new u.Q(K,function(x){K.next(re.call(te,x,P++))}))})}},23:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>ce});var y=O(7216),u=O(2738);function ce(re){return void 0===re&&(re=1/0),(0,y.z)(u.y,re)}},7216:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>K});var y=O(5207),u=O(5929),ce=O(4297),re=O(5076),J=O(8853);function K(P,x,U){return void 0===U&&(U=1/0),(0,J.m)(x)?K(function(Y,ae){return(0,y.U)(function(Ee,De){return x(Y,Ee,ae,De)})((0,u.Xf)(P(Y,ae)))},U):("number"==typeof x&&(U=x),(0,ce.e)(function(Y,ae){return function(P,x,U,Y,ae,Ee,De,Pe){var _e=[],He=0,Me=0,Ge=!1,We=function(){Ge&&!_e.length&&!He&&x.complete()},Fe=function(Ke){return He{"use strict";O.d(me,{q:()=>re});var y=O(6149),u=O(4297),ce=O(5076);function re(te){return te<=0?function(){return y.E}:(0,u.e)(function(J,K){var P=0;J.subscribe(new ce.Q(K,function(x){++P<=te&&(K.next(x),te<=P&&K.complete())}))})}},2504:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>u});var y=O(1776);function u(ce,re){return new y.y(function(te){var J=0;return re.schedule(function(){J===ce.length?te.complete():(te.next(ce[J++]),te.closed||this.schedule())})})}},9385:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>u});var y=O(9162),u={setTimeout:function(){for(var ce=[],re=0;re{"use strict";O.d(me,{L:()=>y});var y="function"==typeof Symbol&&Symbol.observable||"@@observable"},9528:(Ye,me,O)=>{"use strict";O.d(me,{_6:()=>J,jO:()=>re,yG:()=>te});var y=O(8853);function ce(K){return K[K.length-1]}function re(K){return(0,y.m)(ce(K))?K.pop():void 0}function te(K){return function(K){return K&&(0,y.m)(K.schedule)}(ce(K))?K.pop():void 0}function J(K,P){return"number"==typeof ce(K)?K.pop():P}},1260:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=Array.isArray,u=Object.getPrototypeOf,ce=Object.prototype,re=Object.keys;function te(K){if(1===K.length){var P=K[0];if(y(P))return{args:P,keys:null};if(function(K){return K&&"object"==typeof K&&u(K)===ce}(P)){var x=re(P);return{args:x.map(function(U){return P[U]}),keys:x}}}return{args:K,keys:null}}},5850:(Ye,me,O)=>{"use strict";function y(u,ce){if(u){var re=u.indexOf(ce);0<=re&&u.splice(re,1)}}O.d(me,{P:()=>y})},3864:(Ye,me,O)=>{"use strict";function y(u){var re=u(function(te){Error.call(te),te.stack=(new Error).stack});return re.prototype=Object.create(Error.prototype),re.prototype.constructor=re,re}O.d(me,{d:()=>y})},5526:(Ye,me,O)=>{"use strict";function y(u,ce){return u.reduce(function(re,te,J){return re[te]=ce[J],re},{})}O.d(me,{n:()=>y})},4112:(Ye,me,O)=>{"use strict";O.d(me,{x:()=>ce,O:()=>re});var y=O(6806),u=null;function ce(te){if(y.v.useDeprecatedSynchronousErrorHandling){var J=!u;if(J&&(u={errorThrown:!1,error:null}),te(),J){var K=u;if(u=null,K.errorThrown)throw K.error}}else te()}function re(te){y.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=te)}},2738:(Ye,me,O)=>{"use strict";function y(u){return u}O.d(me,{y:()=>y})},8853:(Ye,me,O)=>{"use strict";function y(u){return"function"==typeof u}O.d(me,{m:()=>y})},4297:(Ye,me,O)=>{"use strict";O.d(me,{A:()=>u,e:()=>ce});var y=O(8853);function u(re){return(0,y.m)(null==re?void 0:re.lift)}function ce(re){return function(te){if(u(te))return te.lift(function(J){try{return re(J,this)}catch(K){this.error(K)}});throw new TypeError("Unable to lift unknown Observable type")}}},9607:(Ye,me,O)=>{"use strict";O.d(me,{Z:()=>te});var y=O(9162),u=O(5207),ce=Array.isArray;function te(J){return(0,u.U)(function(K){return function(J,K){return ce(K)?J.apply(void 0,(0,y.ev)([],(0,y.CR)(K))):J(K)}(J,K)})}},8550:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(6806),u=O(9385);function ce(re){u.z.setTimeout(function(){var te=y.v.onUnhandledError;if(!te)throw re;te(re)})}},8253:(Ye,me,O)=>{"use strict";O.d(me,{a:()=>re});var y=O(476),u=O(9502),ce=O(7556);let re=(()=>{class te{constructor(K,P){this.router=K,this.authSvc=P}canActivate(K,P){return this.checkLogin(P.url)}canActivateChild(K,P){return this.canActivate(K,P)}canLoad(K){return this.checkLogin(`/${K.path}`)}checkLogin(K){return!(this.authSvc.isSecureMode&&!this.authSvc.isLoggedIn)||this.router.parseUrl("/login")}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.F0),y.LFG(ce.e))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},7822:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>ce});var y=O(476);let ce=(()=>{class re{constructor(){this.messages=[]}success(J="operation",K){this.messages.push({class:"alert alert-success shadow rounded alert-dismissible fade show",content:`${J} success! ${K||""}`})}errors(J){this.messages.push({class:"alert alert-danger shadow rounded alert-dismissible fade show",content:J})}clear(){this.messages.shift()}}return re.\u0275fac=function(J){return new(J||re)},re.\u0275prov=y.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})()},7556:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>re});var y=O(476),u=O(1841),ce=O(4889);let re=(()=>{class te{constructor(K,P){this.http=K,this.errorSvc=P,this.accessToken=null,this.isLoggedIn=!1,this.redirectUrl=null,this.isSecureMode=!1}login(){return this.tokenValidate()}tokenValidate(){return this.http.get("/core-metadata/api/v3/version")}setAccessToken(K){this.accessToken=K,window.sessionStorage.setItem("EdgeX_Access_Token",this.accessToken)}getAccessToken(){if(this.accessToken)return this.accessToken;let K=window.sessionStorage.getItem("EdgeX_Access_Token");return K&&(this.accessToken=K),this.accessToken}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.eN),y.LFG(ce.T))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2468:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(5894),u=O(476),ce=O(1841),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-data",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.endpointHealthUrl=`${this.urlPrefix}/ping`,this.eventCountUrl=`${this.urlPrefix}/event/count`,this.readingCountUrl=`${this.urlPrefix}/reading/count`,this.allEventsUrl=`${this.urlPrefix}/event/all`,this.allReadingsUrl=`${this.urlPrefix}/reading/all`,this.associatedEventsByDeviceNameUrl=`${this.urlPrefix}/event/device/name/`,this.associatedReadinsByDeviceNameUrl=`${this.urlPrefix}/reading/device/name/`}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}endpointHealth(){return this.http.get(`${this.endpointHealthUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}eventCount(){return this.http.get(`${this.eventCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}readingCount(){return this.http.get(`${this.readingCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}allEventsPagination(P,x){return this.http.get(`${this.allEventsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allReadingsPagination(P,x){return this.http.get(`${this.allReadingsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedReadingsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedEventsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedEventsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedReadinsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}}return J.\u0275fac=function(P){return new(P||J)(u.LFG(ce.eN),u.LFG(re.T))},J.\u0275prov=u.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},4889:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>re});var y=O(8567),u=O(476),ce=O(7822);let re=(()=>{class te{constructor(K){this.msgSvc=K}handleErrorForAPI(K){let P=Object.prototype.toString.call(K);if("[object Array]"===P){if(!K[0].statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K[0].statusCode}, message: ${K[0].message}`),!0}else if("[object Object]"===P&&!K.statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K.statusCode}, message: ${K.message}`),!0;return!1}handleError(K){return K.error instanceof ErrorEvent?this.msgSvc.errors(`'An error occurred:', ${K.error.message}`):"[object Object]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.error.statusCode} , message: ${K.error.message}`):"[object String]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.status} , message: ${K.error}`):this.msgSvc.errors(`code: ${K.status} , message: ${K.message}`),(0,y._)(`Backend returned code ${K.status}, body was: ${K.error.message}`)}}return te.\u0275fac=function(K){return new(K||te)(u.LFG(ce.e))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2437:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-metadata",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.devicesListUrl=`${this.urlPrefix}/device/all`,this.addOneDeviceUrl=`${this.urlPrefix}/device`,this.updateOneDeviceUrl=`${this.urlPrefix}/device`,this.deleteOneDeviceByIdUrl=`${this.urlPrefix}/device/Id`,this.deleteOneDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByIdUrl=`${this.urlPrefix}/device/id`,this.findDevicesByServiceIdUrl=`${this.urlPrefix}/device/service/id`,this.findDevicesByServiceNameUrl=`${this.urlPrefix}/device/service/name`,this.findDevicesByProfileIdUrl=`${this.urlPrefix}/device/profile/id`,this.findDevicesByProfileNameUrl=`${this.urlPrefix}/device/profile/name`,this.deviceServicesListUrl=`${this.urlPrefix}/deviceservice/all`,this.updateDeviceServiceUrl=`${this.urlPrefix}/deviceservice`,this.findDeviceServiceByIdUrl=`${this.urlPrefix}/deviceservice/id`,this.findDeviceServiceByNameUrl=`${this.urlPrefix}/deviceservice/name`,this.deviceProfilesListUrl=`${this.urlPrefix}/deviceprofile/all`,this.findProfilesByIdUrl=`${this.urlPrefix}/deviceprofile`,this.findProfilesByNameUrl=`${this.urlPrefix}/deviceprofile/name`,this.updateDeviceProfileUrl=`${this.urlPrefix}/deviceprofile`,this.uploadProfileYamlFileUrl=`${this.urlPrefix}/deviceprofile/uploadfile`,this.uploadProfileYamlContentUrl=`${this.urlPrefix}/deviceprofile/upload`,this.deviceProfileYamlUrl=`${this.urlPrefix}/deviceprofile/yaml`,this.deleteProfileByIdUrl=`${this.urlPrefix}/deviceprofile/id`,this.deleteProfileByNamedUrl=`${this.urlPrefix}/deviceprofile/name`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevices(){return this.http.get(`${this.devicesListUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevicesPagination(P,x){return this.http.get(`${this.devicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addDevice(P){let x=`${this.addOneDeviceUrl}`;return P.apiVersion="v3",this.http.post(x,JSON.stringify([{apiVersion:"v3",device:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneDeviceByName(P){return this.http.delete(`${this.deleteOneDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneDeviceById(P){return this.http.delete(`${this.deleteOneDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDevice(P){return this.http.patch(`${this.updateOneDeviceUrl}`,JSON.stringify([{apiVersion:"v3",device:P}]),{headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDeviceByName(P){return this.http.get(`${this.findDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDeviceById(P){return this.http.get(`${this.findDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceId(P){return this.http.get(`${this.findDevicesByServiceIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceName(P,x,U){return this.http.get(`${this.findDevicesByServiceNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findDevicesByProfileId(P){return this.http.get(`${this.findDevicesByProfileIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByProfileName(P,x,U){return this.http.get(`${this.findDevicesByProfileNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}allDeviceServices(){return this.http.get(`${this.deviceServicesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllDeviceServicesPagination(P,x){return this.http.get(`${this.deviceServicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateDeviceService(P){return this.http.patch(`${this.updateDeviceServiceUrl}`,JSON.stringify([{apiVersion:"v3",service:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDevcieServiceById(P){return this.http.get(`${this.findDeviceServiceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevcieServiceByName(P){return this.http.get(`${this.findDeviceServiceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allDeviceProfoles(){return this.http.get(`${this.deviceProfilesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDeviceProfolesPagination(P,x){return this.http.get(`${this.deviceProfilesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addProfileYamlByNameViaUIBackend(P){return this.http.request("POST","/api/v3/profile/yaml",{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileById(P){return this.http.get(`${this.findProfilesByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileByName(P){return this.http.get(`${this.findProfilesByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlByNameViaUIBackend(P){return this.http.request("GET","/api/v3/profile/yaml/name/"+P,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlFile(P){return this.http.request("POST",`${this.uploadProfileYamlFileUrl}`,{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDeviceProfile(P){return this.http.put(`${this.updateDeviceProfileUrl}`,P,this.httpPostOrPutJSONOptions).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateProfileYamlContentViaUIBackend(P){return this.http.put("/api/v3/profile/yaml",P,{headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlContent(P){return this.http.request("POST",`${this.uploadProfileYamlContentUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlById(P){return this.http.request("GET",`${this.deviceProfileYamlUrl}/${P}`,{responseType:"text"})}deleteProfileById(P){return this.http.delete(`${this.deleteProfileByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteProfileByName(P){return this.http.delete(`${this.deleteProfileByNamedUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return J.\u0275fac=function(P){return new(P||J)(ce.LFG(y.eN),ce.LFG(re.T))},J.\u0275prov=ce.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},9744:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-notifications",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.findNotificationByCategoryUrl=`${this.urlPrefix}/notification/category/`,this.findNotificationByLabelUrl=`${this.urlPrefix}/notification/label/`,this.findNotificationByStatusUrl=`${this.urlPrefix}/notification/status/`,this.findNotificationByStartEndUrl=`${this.urlPrefix}/notification/start/`,this.deleteNotificationByIdUrl=`${this.urlPrefix}/notification/id/`,this.deleteNotificationByAgeAndStatusUrl=`${this.urlPrefix}/notification/age/`,this.cleanupNotificationByAgeUrl=`${this.urlPrefix}/cleanup/age/`,this.cleanupNotificationAllUrl=`${this.urlPrefix}/cleanup`,this.findAllSubscriptionsPaginationUrl=`${this.urlPrefix}/subscription/all`,this.findAllSubscriptionsByCategoryPaginationUrl=`${this.urlPrefix}/subscription/category/`,this.findAllSubscriptionsByLabelPaginationUrl=`${this.urlPrefix}/subscription/label/`,this.findAllSubscriptionsByReceiverPaginationUrl=`${this.urlPrefix}/subscription/receiver/`,this.findOneSubscriptionsByNameUrl=`${this.urlPrefix}/subscription/name/`,this.addOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.updateOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.deleteOneSubscriptionByNameUrl=`${this.urlPrefix}/subscription/name/`,this.httpPostOrPutOrPatchJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findNotificationsByCategoryPagination(P,x,U){return this.http.get(`${this.findNotificationByCategoryUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByLabelPagination(P,x,U){return this.http.get(`${this.findNotificationByLabelUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStatusPagination(P,x,U){return this.http.get(`${this.findNotificationByStatusUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStartEndPagination(P,x,U,Y){return this.http.get(`${this.findNotificationByStartEndUrl}${U}/end/${Y}?offset=${P}&limit=${x}`).pipe((0,u.K)(Ee=>this.errorSvc.handleError(Ee)))}deleteNotificationByAgeAndStatus(P){return this.http.delete(`${this.deleteNotificationByAgeAndStatusUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteNotificationById(P){return this.http.delete(`${this.deleteNotificationByIdUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationByAge(P){return this.http.delete(`${this.cleanupNotificationByAgeUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationAll(){return this.http.delete(`${this.cleanupNotificationAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllSubscriptionPagination(P,x){return this.http.get(`${this.findAllSubscriptionsPaginationUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findOneSubscriptionByName(P){return this.http.get(`${this.findOneSubscriptionsByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}addOneSubscription(P){return this.http.post(`${this.addOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateOneSubscription(P){return this.http.patch(`${this.updateOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneSubscriptionByName(P){return this.http.delete(`${this.deleteOneSubscriptionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return J.\u0275fac=function(P){return new(P||J)(ce.LFG(y.eN),ce.LFG(re.T))},J.\u0275prov=ce.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},3692:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.version="/api/v3",this.pingUrl=`${this.version}/registrycenter/ping`,this.appSvcDeployConfigUrl=`${this.version}/registrycenter/deploy`,this.appSvcGetConfigUrl=`${this.version}/registrycenter/config`,this.appSvcAllUrl=`${this.version}/registrycenter/service/all`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}getAppSvcConfigBySvcKey(P){return this.http.get(`${this.appSvcGetConfigUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deployToConsul(P,x){return this.http.post(`${this.appSvcDeployConfigUrl}/${x}`,JSON.stringify(P),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllAppSvc(){return this.http.get(`${this.appSvcAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}}return J.\u0275fac=function(P){return new(P||J)(ce.LFG(y.eN),ce.LFG(re.T))},J.\u0275prov=ce.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},4791:(Ye,me,O)=>{"use strict";O.d(me,{n:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/rules-engine",this.version="",this.pingUrl=`${this.endpoint}${this.version}/ping`,this.streamUrl=`${this.endpoint}${this.version}/streams`,this.ruleUrl=`${this.endpoint}${this.version}/rules`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}addStream(P){return this.http.request("POST",`${this.streamUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneStreamById(P){return this.http.delete(`${this.streamUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateStream(P,x){return this.http.request("PUT",`${this.streamUrl}/${x}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findStreamByName(P){return this.http.get(`${this.streamUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allStreams(){return this.http.get(`${this.streamUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}addRule(P){return this.http.request("POST",`${this.ruleUrl}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneRuleById(P){return this.http.delete(`${this.ruleUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateRule(P){return this.http.request("PUT",`${this.ruleUrl}/${P.id}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findRuleById(P){return this.http.get(`${this.ruleUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allRules(){return this.http.get(`${this.ruleUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}getRuleStatusMetricsById(P){return this.http.get(`${this.ruleUrl}/${P}/status`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}getRuleTopoById(P){return this.http.get(`${this.ruleUrl}/${P}/topo`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}executeRuleCommand(P,x){return this.http.post(`${this.ruleUrl}/${P}/${x}`,null,{responseType:"text"}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}}return J.\u0275fac=function(P){return new(P||J)(ce.LFG(y.eN),ce.LFG(re.T))},J.\u0275prov=ce.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},8391:(Ye,me,O)=>{"use strict";O.d(me,{G:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-scheduler",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.intervalListUrl=`${this.urlPrefix}/interval/all`,this.addOneIntervalUrl=`${this.urlPrefix}/interval`,this.updateOneIntervalUrl=`${this.urlPrefix}/interval`,this.findOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.deleteOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.intervalActionListUrl=`${this.urlPrefix}/intervalaction/all`,this.addOneIntervalActionUrl=`${this.urlPrefix}/intervalaction`,this.updateOneIntervaActionlUrl=`${this.urlPrefix}/intervalaction`,this.findOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.deleteOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllIntervalsPagination(P,x){return this.http.get(`${this.intervalListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addInterval(P){return this.http.post(`${this.addOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateInterval(P){return this.http.patch(`${this.updateOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalByName(P){return this.http.get(`${this.findOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalByName(P){return this.http.delete(`${this.deleteOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findAllIntervalActionsPagination(P,x){return this.http.get(`${this.intervalActionListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addIntervalAction(P){return this.http.post(`${this.addOneIntervalActionUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateIntervalAction(P){return this.http.patch(`${this.updateOneIntervaActionlUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalActionByName(P){return this.http.get(`${this.findOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalActionByName(P){return this.http.delete(`${this.deleteOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return J.\u0275fac=function(P){return new(P||J)(ce.LFG(y.eN),ce.LFG(re.T))},J.\u0275prov=ce.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},9386:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>J});var y=O(1841),u=O(5894),ce=O(476),re=O(4889),te=O(3692);let J=(()=>{class K{constructor(x,U,Y){this.http=x,this.errorSvc=U,this.registrySvc=Y,this.endpoint="/sys-mgmt-agent",this.version2="/api/v3",this.urlPrefix=`${this.endpoint}${this.version2}`,this.pingUrl="/ping",this.allRegisteredSvcUrl="/api/v3/registrycenter/service/all",this.configUrl=`${this.urlPrefix}/system/config`,this.metricsUrl=`${this.urlPrefix}/system/metrics`,this.healthUrl=`${this.urlPrefix}/system/health`,this.operationUrl=`${this.urlPrefix}/system/operation`,this.httpPostOrPutOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getRegisteredServiceAll(){return this.registrySvc.getAllAppSvc()}getConfigBySvcName(x){return this.http.get(`${this.configUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getMetricsBySvcName(x){return this.http.get(`${this.metricsUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllSvcHealth(x){return this.http.get(`${this.healthUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}operate(x){return this.http.post(`${this.operationUrl}`,JSON.stringify(x),this.httpPostOrPutOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}startV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"start"}])}stopV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"stop"}])}restartV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"restart"}])}}return K.\u0275fac=function(x){return new(x||K)(ce.LFG(y.eN),ce.LFG(re.T),ce.LFG(te.r))},K.\u0275prov=ce.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},4705:(Ye,me,O)=>{"use strict";var y=O(8583),u=O(476);class ce extends y.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class re extends ce{static makeCurrent(){(0,y.HT)(new re)}onAndCancel(F,A,L){return F.addEventListener(A,L,!1),()=>{F.removeEventListener(A,L,!1)}}dispatchEvent(F,A){F.dispatchEvent(A)}remove(F){F.parentNode&&F.parentNode.removeChild(F)}createElement(F,A){return(A=A||this.getDefaultDocument()).createElement(F)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(F){return F.nodeType===Node.ELEMENT_NODE}isShadowRoot(F){return F instanceof DocumentFragment}getGlobalEventTarget(F,A){return"window"===A?window:"document"===A?F:"body"===A?F.body:null}getBaseHref(F){const A=(te=te||document.querySelector("base"),te?te.getAttribute("href"):null);return null==A?null:function(R){K=K||document.createElement("a"),K.setAttribute("href",R);const F=K.pathname;return"/"===F.charAt(0)?F:`/${F}`}(A)}resetBaseElement(){te=null}getUserAgent(){return window.navigator.userAgent}getCookie(F){return(0,y.Mx)(document.cookie,F)}}let K,te=null;const x=new u.OlP("TRANSITION_ID"),Y=[{provide:u.ip1,useFactory:function(R,F,A){return()=>{A.get(u.CZH).donePromise.then(()=>{const L=(0,y.q)(),ne=F.querySelectorAll(`style[ng-transition="${R}"]`);for(let Oe=0;Oe{const Oe=F.findTestabilityInTree(L,ne);if(null==Oe)throw new Error("Could not find testability for element.");return Oe},u.dqk.getAllAngularTestabilities=()=>F.getAllTestabilities(),u.dqk.getAllAngularRootElements=()=>F.getAllRootElements(),u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(L=>{const ne=u.dqk.getAllAngularTestabilities();let Oe=ne.length,je=!1;const Et=function(Rt){je=je||Rt,Oe--,0==Oe&&L(je)};ne.forEach(function(Rt){Rt.whenStable(Et)})})}findTestabilityInTree(F,A,L){if(null==A)return null;const ne=F.getTestability(A);return null!=ne?ne:L?(0,y.q)().isShadowRoot(A)?this.findTestabilityInTree(F,A.host,!0):this.findTestabilityInTree(F,A.parentElement,!0):null}}let Ee=(()=>{class R{build(){return new XMLHttpRequest}}return R.\u0275fac=function(A){return new(A||R)},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})();const X=new u.OlP("EventManagerPlugins");let ue=(()=>{class R{constructor(A,L){this._zone=L,this._eventNameToPlugin=new Map,A.forEach(ne=>ne.manager=this),this._plugins=A.slice().reverse()}addEventListener(A,L,ne){return this._findPluginFor(L).addEventListener(A,L,ne)}addGlobalEventListener(A,L,ne){return this._findPluginFor(L).addGlobalEventListener(A,L,ne)}getZone(){return this._zone}_findPluginFor(A){const L=this._eventNameToPlugin.get(A);if(L)return L;const ne=this._plugins;for(let Oe=0;Oe{class R{constructor(){this._stylesSet=new Set}addStyles(A){const L=new Set;A.forEach(ne=>{this._stylesSet.has(ne)||(this._stylesSet.add(ne),L.add(ne))}),this.onStylesAdded(L)}onStylesAdded(A){}getAllStyles(){return Array.from(this._stylesSet)}}return R.\u0275fac=function(A){return new(A||R)},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})(),ze=(()=>{class R extends ie{constructor(A){super(),this._doc=A,this._hostNodes=new Map,this._hostNodes.set(A.head,[])}_addStylesToHost(A,L,ne){A.forEach(Oe=>{const je=this._doc.createElement("style");je.textContent=Oe,ne.push(L.appendChild(je))})}addHost(A){const L=[];this._addStylesToHost(this._stylesSet,A,L),this._hostNodes.set(A,L)}removeHost(A){const L=this._hostNodes.get(A);L&&L.forEach(ee),this._hostNodes.delete(A)}onStylesAdded(A){this._hostNodes.forEach((L,ne)=>{this._addStylesToHost(A,ne,L)})}ngOnDestroy(){this._hostNodes.forEach(A=>A.forEach(ee))}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(y.K0))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})();function ee(R){(0,y.q)().remove(R)}const Te={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/"},be=/%COMP%/g;function Tt(R,F,A){for(let L=0;L{if("__ngUnwrap__"===F)return R;!1===R(F)&&(F.preventDefault(),F.returnValue=!1)}}let gn=(()=>{class R{constructor(A,L,ne){this.eventManager=A,this.sharedStylesHost=L,this.appId=ne,this.rendererByCompId=new Map,this.defaultRenderer=new It(A)}createRenderer(A,L){if(!A||!L)return this.defaultRenderer;switch(L.encapsulation){case u.ifc.Emulated:{let ne=this.rendererByCompId.get(L.id);return ne||(ne=new Nn(this.eventManager,this.sharedStylesHost,L,this.appId),this.rendererByCompId.set(L.id,ne)),ne.applyToHost(A),ne}case 1:case u.ifc.ShadowDom:return new xt(this.eventManager,this.sharedStylesHost,A,L);default:if(!this.rendererByCompId.has(L.id)){const ne=Tt(L.id,L.styles,[]);this.sharedStylesHost.addStyles(ne),this.rendererByCompId.set(L.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(ue),u.LFG(ze),u.LFG(u.AFp))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})();class It{constructor(F){this.eventManager=F,this.data=Object.create(null)}destroy(){}createElement(F,A){return A?document.createElementNS(Te[A]||A,F):document.createElement(F)}createComment(F){return document.createComment(F)}createText(F){return document.createTextNode(F)}appendChild(F,A){F.appendChild(A)}insertBefore(F,A,L){F&&F.insertBefore(A,L)}removeChild(F,A){F&&F.removeChild(A)}selectRootElement(F,A){let L="string"==typeof F?document.querySelector(F):F;if(!L)throw new Error(`The selector "${F}" did not match any elements`);return A||(L.textContent=""),L}parentNode(F){return F.parentNode}nextSibling(F){return F.nextSibling}setAttribute(F,A,L,ne){if(ne){A=ne+":"+A;const Oe=Te[ne];Oe?F.setAttributeNS(Oe,A,L):F.setAttribute(A,L)}else F.setAttribute(A,L)}removeAttribute(F,A,L){if(L){const ne=Te[L];ne?F.removeAttributeNS(ne,A):F.removeAttribute(`${L}:${A}`)}else F.removeAttribute(A)}addClass(F,A){F.classList.add(A)}removeClass(F,A){F.classList.remove(A)}setStyle(F,A,L,ne){ne&(u.JOm.DashCase|u.JOm.Important)?F.style.setProperty(A,L,ne&u.JOm.Important?"important":""):F.style[A]=L}removeStyle(F,A,L){L&u.JOm.DashCase?F.style.removeProperty(A):F.style[A]=""}setProperty(F,A,L){F[A]=L}setValue(F,A){F.nodeValue=A}listen(F,A,L){return"string"==typeof F?this.eventManager.addGlobalEventListener(F,A,tn(L)):this.eventManager.addEventListener(F,A,tn(L))}}class Nn extends It{constructor(F,A,L,ne){super(F),this.component=L;const Oe=Tt(ne+"-"+L.id,L.styles,[]);A.addStyles(Oe),this.contentAttr="_ngcontent-%COMP%".replace(be,ne+"-"+L.id),this.hostAttr="_nghost-%COMP%".replace(be,ne+"-"+L.id)}applyToHost(F){super.setAttribute(F,this.hostAttr,"")}createElement(F,A){const L=super.createElement(F,A);return super.setAttribute(L,this.contentAttr,""),L}}class xt extends It{constructor(F,A,L,ne){super(F),this.sharedStylesHost=A,this.hostEl=L,this.shadowRoot=L.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Oe=Tt(ne.id,ne.styles,[]);for(let je=0;je{class R extends Ae{constructor(A){super(A)}supports(A){return!0}addEventListener(A,L,ne){return A.addEventListener(L,ne,!1),()=>this.removeEventListener(A,L,ne)}removeEventListener(A,L,ne){return A.removeEventListener(L,ne)}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(y.K0))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})();const Ne=["alt","control","meta","shift"],xe={"\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"},Re={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Je={alt:R=>R.altKey,control:R=>R.ctrlKey,meta:R=>R.metaKey,shift:R=>R.shiftKey};let ot=(()=>{class R extends Ae{constructor(A){super(A)}supports(A){return null!=R.parseEventName(A)}addEventListener(A,L,ne){const Oe=R.parseEventName(L),je=R.eventCallback(Oe.fullKey,ne,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,y.q)().onAndCancel(A,Oe.domEventName,je))}static parseEventName(A){const L=A.toLowerCase().split("."),ne=L.shift();if(0===L.length||"keydown"!==ne&&"keyup"!==ne)return null;const Oe=R._normalizeKey(L.pop());let je="";if(Ne.forEach(Rt=>{const $t=L.indexOf(Rt);$t>-1&&(L.splice($t,1),je+=Rt+".")}),je+=Oe,0!=L.length||0===Oe.length)return null;const Et={};return Et.domEventName=ne,Et.fullKey=je,Et}static getEventFullKey(A){let L="",ne=function(R){let F=R.key;if(null==F){if(F=R.keyIdentifier,null==F)return"Unidentified";F.startsWith("U+")&&(F=String.fromCharCode(parseInt(F.substring(2),16)),3===R.location&&Re.hasOwnProperty(F)&&(F=Re[F]))}return xe[F]||F}(A);return ne=ne.toLowerCase()," "===ne?ne="space":"."===ne&&(ne="dot"),Ne.forEach(Oe=>{Oe!=ne&&Je[Oe](A)&&(L+=Oe+".")}),L+=ne,L}static eventCallback(A,L,ne){return Oe=>{R.getEventFullKey(Oe)===A&&ne.runGuarded(()=>L(Oe))}}static _normalizeKey(A){switch(A){case"esc":return"escape";default:return A}}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(y.K0))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})();const br=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:y.bD},{provide:u.g9A,useValue:function(){re.makeCurrent(),ae.init()},multi:!0},{provide:y.K0,useFactory:function(){return(0,u.RDi)(document),document},deps:[]}]),Gr=[[],{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function(){return new u.qLn},deps:[]},{provide:X,useClass:Hr,multi:!0,deps:[y.K0,u.R0b,u.Lbi]},{provide:X,useClass:ot,multi:!0,deps:[y.K0]},[],{provide:gn,useClass:gn,deps:[ue,ze,u.AFp]},{provide:u.FYo,useExisting:gn},{provide:ie,useExisting:ze},{provide:ze,useClass:ze,deps:[y.K0]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b]},{provide:ue,useClass:ue,deps:[X,u.R0b]},{provide:y.JF,useClass:Ee,deps:[]},[]];let gi=(()=>{class R{constructor(A){if(A)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(A){return{ngModule:R,providers:[{provide:u.AFp,useValue:A.appId},{provide:x,useExisting:u.AFp},Y]}}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(R,12))},R.\u0275mod=u.oAB({type:R}),R.\u0275inj=u.cJS({providers:Gr,imports:[y.ez,u.hGG]}),R})();"undefined"!=typeof window&&window;var tt=O(1841),ht=O(3092),ut=O(9502),Qt=O(8253),Bt=O(5894),kn=O(8567),Ot=O(4889);let wr=(()=>{class R{constructor(A,L){this.http=A,this.errorSvc=L,this.endpoint="",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.secureModeUrl=`${this.urlPrefix}/auth/securemode`}getSecureMode(){return this.http.get(`${this.secureModeUrl}`,{responseType:"text"}).pipe((0,Bt.K)(L=>this.errorSvc.handleError(L)))}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(tt.eN),u.LFG(Ot.T))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();var Vn=O(7556);let Ze=(()=>{class R{constructor(A,L,ne,Oe,je){this.initSvc=A,this.errorSvc=L,this.authSvc=ne,this.router=Oe,this.route=je}ngOnInit(){this.initializor()}initializor(){this.environmentCheck()}environmentCheck(){this.progressMsg="environment checking",this.initSvc.getSecureMode().subscribe(A=>{"secure"===A?(this.authSvc.isSecureMode=!0,this.tokenValidate()):(this.authSvc.isSecureMode=!1,this.navigateToHome())})}tokenValidate(){this.progressMsg="access token validating",this.authSvc.tokenValidate().pipe((0,Bt.K)(A=>(this.authSvc.isLoggedIn=!1,this.router.navigate(["/login"],{relativeTo:this.route}),(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.navigateToHome()})}navigateToHome(){this.router.navigate(["/dashboard"],{relativeTo:this.route})}}return R.\u0275fac=function(A){return new(A||R)(u.Y36(wr),u.Y36(Ot.T),u.Y36(Vn.e),u.Y36(ut.F0),u.Y36(ut.gz))},R.\u0275cmp=u.Xpm({type:R,selectors:[["app-initializer"]],decls:16,vars:1,consts:[[1,"init","text-center","bg-dark"],[1,"init-progress"],["role","status",1,"spinner-grow","text-success"],[1,"sr-only"],["role","status",1,"spinner-grow","text-danger"],["role","status",1,"spinner-grow","text-warning"],["role","status",1,"spinner-grow","text-info"],[1,"text-light"]],template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span",3),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"span",3),u._uU(7,"Loading..."),u.qZA(),u.qZA(),u.TgZ(8,"div",5),u.TgZ(9,"span",3),u._uU(10,"Loading..."),u.qZA(),u.qZA(),u.TgZ(11,"div",6),u.TgZ(12,"span",3),u._uU(13,"Loading..."),u.qZA(),u.qZA(),u.TgZ(14,"p",7),u._uU(15),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(15),u.hij("",L.progressMsg,"..."))},styles:[".init[_ngcontent-%COMP%]{position:fixed;top:0;bottom:-100px;left:0;right:0;z-index:999}.init-progress[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:45%}"]}),R})();var fr=O(1964),Zn=O(2468),vn=O(2437),hn=O(9744),Ht=O(8391),Un=O(4791),Bn=O(9386),Gt=O(3692);function Mt(R,F){if(1&R&&(u.TgZ(0,"p",6),u._UZ(1,"span",7),u._uU(2),u.qZA()),2&R){const A=u.oxw();u.xp6(2),u.hij(" The ",A.svcName," service is inaccessible!!! please try again later! ")}}const Ar=[{path:"dashboard",canLoad:[Qt.a],loadChildren:()=>O.e(849).then(O.bind(O,8849)).then(R=>R.DashboardModule)},{path:"metadata",canLoad:[Qt.a],loadChildren:()=>O.e(10).then(O.bind(O,4010)).then(R=>R.MetadataModule)},{path:"core-data",canLoad:[Qt.a],loadChildren:()=>O.e(489).then(O.bind(O,3489)).then(R=>R.CoreDataModule)},{path:"notifications",canLoad:[Qt.a],loadChildren:()=>Promise.all([O.e(827),O.e(634)]).then(O.bind(O,2634)).then(R=>R.NotificationsModule)},{path:"scheduler",canLoad:[Qt.a],loadChildren:()=>Promise.all([O.e(827),O.e(707),O.e(536)]).then(O.bind(O,5886)).then(R=>R.SchedulerModule)},{path:"rule-engine",canLoad:[Qt.a],loadChildren:()=>Promise.all([O.e(10),O.e(707),O.e(753),O.e(155)]).then(O.bind(O,4155)).then(R=>R.RuleEngineModule)},{path:"app-service",canLoad:[Qt.a],loadChildren:()=>Promise.all([O.e(10),O.e(753),O.e(894)]).then(O.bind(O,894)).then(R=>R.AppServiceModule)},{path:"initializer",component:Ze},{path:"svc-unavailable",component:(()=>{class R{constructor(A,L,ne,Oe,je,Et,Rt,$t,Ir){this.router=A,this.route=L,this.coredataSvc=ne,this.metadataSvc=Oe,this.notiSvc=je,this.schedulerSvc=Et,this.ruleSvc=Rt,this.systemSvc=$t,this.registrySvc=Ir,this.refresgMsg=!1,this.refreshBtnDisable=!1}ngOnInit(){this.route.queryParams.subscribe(A=>{this.svcName=A.svcName,this.routerPath=A.routerPath})}refresh(){this.refreshBtnDisable=!0,this.ping().pipe((0,Bt.K)(A=>(this.refresgMsg=!0,window.setTimeout(()=>{this.refresgMsg=!1,this.refreshBtnDisable=!1},3e3),(0,kn._)(()=>"Something bad happened; please try again later.")))).subscribe(()=>this.router.navigate([`${this.routerPath}`]))}ping(){switch(this.svcName){case"core data":return this.coredataSvc.ping();case"metadata":return this.metadataSvc.ping();case"scheduler":return this.schedulerSvc.ping();case"notification":return this.notiSvc.ping();case"rule engine":return this.ruleSvc.ping();case"system agent":return this.systemSvc.ping();case"registry center":return this.registrySvc.ping();default:return(0,fr.of)()}}}return R.\u0275fac=function(A){return new(A||R)(u.Y36(ut.F0),u.Y36(ut.gz),u.Y36(Zn.D),u.Y36(vn.D),u.Y36(hn.T),u.Y36(Ht.G),u.Y36(Un.n),u.Y36(Bn.J),u.Y36(Gt.r))},R.\u0275cmp=u.Xpm({type:R,selectors:[["app-service-unavailable"]],decls:11,vars:5,consts:[["class","alert alert-danger","role","alert",4,"ngIf"],[1,"jumbotron"],[1,"display-5"],[1,"lead"],[1,"my-4"],["role","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"]],template:function(A,L){1&A&&(u.YNc(0,Mt,3,1,"p",0),u.TgZ(1,"div",1),u.TgZ(2,"h2",2),u._uU(3),u.qZA(),u.TgZ(4,"p",3),u._uU(5),u.qZA(),u._UZ(6,"hr",4),u.TgZ(7,"p"),u._uU(8,"EdgeXFoundry uses a microservices architecture, each service is running independently, please make sure that the current service is already running, if you have manually started the service, click the Refresh button."),u.qZA(),u.TgZ(9,"button",5),u.NdJ("click",function(){return L.refresh()}),u._uU(10,"Refresh"),u.qZA(),u.qZA()),2&A&&(u.Q6J("ngIf",L.refresgMsg),u.xp6(3),u.hij("Oops!!! ",L.svcName," service is unavailable!"),u.xp6(2),u.AsE("This could be a network reason, or it could be that the ",L.svcName," microservice is not running, make sure there is no network problem or that the ",L.svcName," service is already running!"),u.xp6(4),u.Q6J("disabled",L.refreshBtnDisable))},directives:[y.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),R})()}];let ir=(()=>{class R{}return R.\u0275fac=function(A){return new(A||R)},R.\u0275mod=u.oAB({type:R}),R.\u0275inj=u.cJS({imports:[[ut.Bz.forRoot(Ar,{useHash:!0})],ut.Bz]}),R})();var qn=O(4689),hr=O(7822);function Wt(R,F){if(1&R){const A=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",3),u.TgZ(2,"span",4),u.NdJ("click",function(){const Oe=u.CHM(A).$implicit;return u.oxw(2).close(Oe)}),u.TgZ(3,"span",5),u._uU(4,"\xd7"),u.qZA(),u.qZA(),u.TgZ(5,"div"),u._uU(6),u.qZA(),u.qZA(),u.qZA()}if(2&R){const A=F.$implicit;u.xp6(1),u.Tol(A.class),u.xp6(5),u.hij(" ",A.content," ")}}function $n(R,F){if(1&R&&(u.TgZ(0,"div",1),u.YNc(1,Wt,7,3,"div",2),u.qZA()),2&R){const A=u.oxw();u.xp6(1),u.Q6J("ngForOf",A.messageService.messages)}}let Zt=(()=>{class R{constructor(A){this.messageService=A}ngOnInit(){}close(A){this.messageService.messages.splice(this.messageService.messages.indexOf(A),1)}ngOnDestroy(){this.timer&&clearInterval(this.timer)}}return R.\u0275fac=function(A){return new(A||R)(u.Y36(hr.e))},R.\u0275cmp=u.Xpm({type:R,selectors:[["app-message"]],decls:1,vars:1,consts:[["class","position-fixed overflow-hidden text-break","style","top: 10px; right: 0;min-width: 300px; max-width: 300px;z-index: 999;",4,"ngIf"],[1,"position-fixed","overflow-hidden","text-break",2,"top","10px","right","0","min-width","300px","max-width","300px","z-index","999"],[4,"ngFor","ngForOf"],["role","alert"],["type","button","aria-label","Close",1,"btn","btn-lg","close",3,"click"],["aria-hidden","true"]],template:function(A,L){1&A&&u.YNc(0,$n,2,1,"div",0),2&A&&u.Q6J("ngIf",L.messageService.messages.length)},directives:[y.O5,y.sg],styles:[""]}),R})();function Sr(R,F){if(1&R&&(u.TgZ(0,"a",49),u._uU(1),u.qZA()),2&R){const A=u.oxw().$implicit,L=u.oxw();u.s9C("routerLink",L.navChainMap.get(A)),u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function sn(R,F){if(1&R&&(u.TgZ(0,"span",50),u._uU(1),u.qZA()),2&R){const A=u.oxw().$implicit,L=u.oxw();u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function Dn(R,F){1&R&&(u.TgZ(0,"span"),u._uU(1,">"),u.qZA())}function pr(R,F){if(1&R&&(u.TgZ(0,"h6",35),u.YNc(1,Sr,2,2,"a",47),u.YNc(2,sn,2,1,"span",48),u.YNc(3,Dn,2,0,"span",46),u.qZA()),2&R){const A=F.index,L=u.oxw();u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1)}}function Mr(R,F){1&R&&(u.TgZ(0,"div",51),u.TgZ(1,"div"),u._UZ(2,"span",52),u.TgZ(3,"span"),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.qZA())}function jn(R,F){1&R&&u._UZ(0,"router-outlet")}const Pt=function(){return{exact:!1}};let Tr=(()=>{class R{constructor(A,L){this.activatedRoute=A,this.router=L,this.title="EdgeX Console",this.isSelected=!1,this.toggleClass="",this.shrink=!1,this.shrinkSidebarOnly=!1,this.shrinkCenterNo=!1,this.navChainMap=new Map,this.navChainCache=[],this.navChain=[],this.currentNav="",this.loading=!1,this.navRecognized=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.R9)),this.navStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.OD)),this.navEnd=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.m2)),this.childStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.Eb))}ngOnInit(){this.router.events.subscribe(A=>{A instanceof ut.OD&&(this.loading=!0),(A instanceof ut.m2||A instanceof ut.gk||A instanceof ut.Q3)&&(this.loading=!1)}),this.navEnd.subscribe(A=>{this.navChainCache=[],this.navChainMap=new Map,this.currentNav=A.urlAfterRedirects.split("?")[0].split("/").pop(),this.navChain=A.urlAfterRedirects.split("?")[0].split("/"),this.navChain.shift();let L=this;this.navChain.map(Oe=>Oe).reverse().forEach(function(Oe,je){let $t=L.navChain.map(Ir=>Ir).reverse().slice(je).reverse().join("/");L.navChainCache.push("/"+$t),L.navChainMap.set(Oe,"/"+$t)}),this.navChainCache.reverse()}),$(window).resize(()=>{this.shrinkCenterNo=!1,this.shrink=document.body.clientWidth<1340}),this.router.navigate(["/initializer"],{relativeTo:this.activatedRoute})}pathFormat(A){let L=A.split("-");return L.forEach((ne,Oe)=>{L[Oe]=ne.charAt(0).toUpperCase()+ne.substring(1)}),L.join(" ")}sideBarToggle(){this.shrink?(document.body.clientWidth<1340&&(this.shrinkCenterNo=!0),this.shrink=!1):(document.body.clientWidth<1340&&(this.shrinkCenterNo=!1),this.shrink=!0)}}return R.\u0275fac=function(A){return new(A||R)(u.Y36(ut.gz),u.Y36(ut.F0))},R.\u0275cmp=u.Xpm({type:R,selectors:[["app-root"]],decls:60,vars:44,consts:function(){let F,A,L,ne,Oe,je,Et,Rt;return F="Dashboard",A="Metadata",L="DataCenter",ne="Scheduler",Oe="Notifications",je="RuleEngine",Et="AppService",Rt="English",[[1,"container-fluid"],[1,"row"],[1,"px-0"],[1,"sidebar-center","font-weight-bold","text-white","vh-100"],[1,"sidebar-header","p-2"],["src","assets/img/bg_x.png","width","35","height","34","alt","","loading","lazy",1,"mt-2"],[1,"float-right","mt-3","mr-2"],["role","button",1,"fa","fa-navicon","fa-lg","text-light",3,"click"],[1,"overflow-hidden"],[1,"nav","flex-column"],["data-testid","menu-item-dashboard","routerLink","/dashboard","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-tachometer","fa-fw","mr-5"],["data-testid","menu-item-dashboard-text"],F,["routerLink","/metadata","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cubes","fa-fw","mr-5"],A,["routerLink","/core-data","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-database","fa-fw","mr-5"],L,["routerLink","/scheduler","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-clock-o","fa-fw","mr-5"],ne,["routerLink","/notifications","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-envelope","fa-fw","mr-5"],Oe,["routerLink","/rule-engine","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-sliders","fa-fw","mr-5"],je,["routerLink","/app-service","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cloud-upload","fa-fw","mr-5"],Et,[1,"col-12"],[1,"bg-light","center-header","px-3","pt-2","font-weight-bold"],[1,"nav-router","mw-100","align-middle"],[1,"d-inline"],[1,"dropdown","float-right"],["id","dropdownLangLink","type","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","btn-sm","dropdown-toggle"],Rt,["aria-labelledby","dropdownLangLink",1,"dropdown-menu","dropdown-menu-sm","dropdown-menu-right"],["href","/",1,"dropdown-item"],["href","/zh",1,"dropdown-item"],[1,"mw-100","align-middle","mt-1"],["class","d-inline",4,"ngFor","ngForOf"],[1,"center-center","p-3"],["class","text-center","style","margin-top: 20%;",4,"ngIf"],[4,"ngIf"],["class","text-decoration-none d-inline",3,"routerLink",4,"ngIf"],["class","text-decoration-none d-inline",4,"ngIf"],[1,"text-decoration-none","d-inline",3,"routerLink"],[1,"text-decoration-none","d-inline"],[1,"text-center",2,"margin-top","20%"],["role","status","aria-hidden","true",1,"spinner-border","mr-2"]]},template:function(A,L){1&A&&(u._UZ(0,"app-message"),u.TgZ(1,"div",0),u.TgZ(2,"div",1),u.TgZ(3,"div",2),u.TgZ(4,"div",3),u.TgZ(5,"div",4),u._UZ(6,"img",5),u.TgZ(7,"p",6),u.TgZ(8,"i",7),u.NdJ("click",function(){return L.sideBarToggle()}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(9,"div",8),u.TgZ(10,"nav",9),u.TgZ(11,"a",10),u._UZ(12,"i",11),u.TgZ(13,"span",12),u.SDv(14,13),u.qZA(),u.qZA(),u.TgZ(15,"a",14),u._UZ(16,"i",15),u.TgZ(17,"span"),u.SDv(18,16),u.qZA(),u.qZA(),u.TgZ(19,"a",17),u._UZ(20,"i",18),u.TgZ(21,"span"),u.SDv(22,19),u.qZA(),u.qZA(),u.TgZ(23,"a",20),u._UZ(24,"i",21),u.TgZ(25,"span"),u.SDv(26,22),u.qZA(),u.qZA(),u.TgZ(27,"a",23),u._UZ(28,"i",24),u.TgZ(29,"span"),u.SDv(30,25),u.qZA(),u.qZA(),u.TgZ(31,"a",26),u._UZ(32,"i",27),u.TgZ(33,"span"),u.SDv(34,28),u.qZA(),u.qZA(),u.TgZ(35,"a",29),u._UZ(36,"i",30),u.TgZ(37,"span"),u.SDv(38,31),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(39,"div",32),u.TgZ(40,"div"),u.TgZ(41,"nav",33),u.TgZ(42,"div",34),u.TgZ(43,"h4",35),u._uU(44),u.qZA(),u.TgZ(45,"div",36),u.TgZ(46,"button",37),u.TgZ(47,"span"),u.SDv(48,38),u.qZA(),u.qZA(),u.TgZ(49,"div",39),u.TgZ(50,"a",40),u._uU(51,"English"),u.qZA(),u.TgZ(52,"a",41),u._uU(53,"\u4e2d\u6587\u7b80\u4f53"),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(54,"div",42),u.TgZ(55,"div",35),u.YNc(56,pr,4,3,"h6",43),u.qZA(),u.qZA(),u.qZA(),u.TgZ(57,"div",44),u.YNc(58,Mr,5,0,"div",45),u.YNc(59,jn,1,0,"router-outlet",46),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(3),u.ekj("sidebar-shrink",L.shrink)("sidebar",!L.shrink),u.xp6(3),u.ekj("d-none",L.shrink),u.xp6(5),u.Q6J("routerLinkActiveOptions",u.DdM(37,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(38,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(39,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(40,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(41,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(42,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(43,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(3),u.ekj("center-shrink",L.shrink)("center-no-shrink",L.shrinkCenterNo)("center",!L.shrink),u.xp6(4),u.Oqu(L.pathFormat(L.currentNav)),u.xp6(12),u.Q6J("ngForOf",L.navChain),u.xp6(2),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[Zt,ut.yS,ut.Od,y.sg,y.O5,ut.lC],styles:[".sidebar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:250px;z-index:10}.sidebar-shrink[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:45px;z-index:10}.sidebar-center[_ngcontent-%COMP%]{background-color:#2d2848e6!important}.sidebar-header[_ngcontent-%COMP%]{background-color:#2d2848!important;height:65px}.active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}.sidebar-center[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#922c48;background-color:#922c4866!important}.center[_ngcontent-%COMP%]{position:absolute;left:250px;right:0}.center-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-no-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-header[_ngcontent-%COMP%]{height:65px}"]}),R})();function Zr(R,F){1&R&&(u.TgZ(0,"button",18),u._UZ(1,"span",19),u.TgZ(2,"span"),u._uU(3,"Loading..."),u.qZA(),u.qZA())}function mi(R,F){if(1&R){const A=u.EpF();u.TgZ(0,"button",20),u.NdJ("click",function(){return u.CHM(A),u.oxw().login()}),u.TgZ(1,"span"),u.SDv(2,21),u.qZA(),u.qZA()}}const yi=[{path:"login",component:(()=>{class R{constructor(A,L,ne,Oe){this.authSvc=A,this.errorSvc=L,this.router=ne,this.route=Oe,this.loading=!1,this.accessToken=null,this.tokenIsValid=!0}ngOnInit(){}login(){this.loading=!0,this.authSvc.setAccessToken(this.accessToken),this.authSvc.login().pipe((0,Bt.K)(A=>(this.loading=!1,this.authSvc.isLoggedIn=!1,this.accessToken=null,this.tokenIsValid=!1,(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.loading=!1,this.tokenIsValid=!0,this.router.navigate(["/dashboard"],{relativeTo:this.route})})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onInput(){this.tokenIsValid=!0}}return R.\u0275fac=function(A){return new(A||R)(u.Y36(Vn.e),u.Y36(Ot.T),u.Y36(ut.F0),u.Y36(ut.gz))},R.\u0275cmp=u.Xpm({type:R,selectors:[["app-login"]],decls:22,vars:5,consts:function(){let F,A,L,ne,Oe;return F="Log in to EdgeX with a token",A="Token",L="the token is invalid!",ne="How to get access token?",Oe="Login",[[1,"login","bg-dark"],[1,"card","login-form"],[1,"card-header"],F,[1,"card-body","bg-light","shadow"],[1,""],[1,"form-group"],["for","accessToken",1,"col-form-label"],[1,"mr-1"],A,["type","password","id","accessToken","name","accessToken",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],L,["class","btn btn-success btn-sm w-100","type","button","disabled","",4,"ngIf"],["type","button","class","btn btn-success btn-sm w-100",3,"click",4,"ngIf"],[1,"mt-2"],["href","https://docs.edgexfoundry.org/3.0/security/Ch-Authenticating/#how-to-make-authenticated-edgex-calls","target","_blank",1,"text-decoration-none"],ne,["type","button","disabled","",1,"btn","btn-success","btn-sm","w-100"],["role","status","aria-hidden","true",1,"spinner-grow","spinner-grow-sm"],["type","button",1,"btn","btn-success","btn-sm","w-100",3,"click"],Oe]},template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span"),u.SDv(4,3),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"form",5),u.TgZ(7,"div",6),u.TgZ(8,"label",7),u.TgZ(9,"span",8),u.SDv(10,9),u.qZA(),u.qZA(),u.TgZ(11,"div",5),u.TgZ(12,"input",10),u.NdJ("ngModelChange",function(Oe){return L.accessToken=Oe})("ngModelChange",function(){return L.onInput()}),u.qZA(),u.TgZ(13,"div",11),u.TgZ(14,"small"),u.SDv(15,12),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.YNc(16,Zr,4,0,"button",13),u.YNc(17,mi,3,0,"button",14),u.TgZ(18,"div",15),u.TgZ(19,"a",16),u.TgZ(20,"small"),u.SDv(21,17),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(12),u.ekj("is-invalid",!L.tokenIsValid),u.Q6J("ngModel",L.accessToken),u.xp6(4),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[ht._Y,ht.JL,ht.F,ht.Fj,ht.JJ,ht.On,y.O5],styles:[".login[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;left:0;right:0;z-index:999}.login-form[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:40%;width:350px;margin:auto}"]}),R})()}];let qr=(()=>{class R{}return R.\u0275fac=function(A){return new(A||R)},R.\u0275mod=u.oAB({type:R}),R.\u0275inj=u.cJS({imports:[[ut.Bz.forChild(yi)],ut.Bz]}),R})(),xi=(()=>{class R{}return R.\u0275fac=function(A){return new(A||R)},R.\u0275mod=u.oAB({type:R}),R.\u0275inj=u.cJS({imports:[[y.ez,ht.u5,qr]]}),R})();const vi=[{provide:tt.TP,useClass:(()=>{class R{constructor(A){this.authSvc=A}intercept(A,L){let ne=A.headers.set("X-Requested-With","XMLHttpRequest");if(this.authSvc.isSecureMode){let je=`Bearer ${this.authSvc.getAccessToken()}`;ne=A.headers.set("X-Requested-With","XMLHttpRequest").set("Authorization",je)}const Oe=A.clone({headers:ne});return L.handle(Oe)}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(Vn.e))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),multi:!0}];let Qr=(()=>{class R{}return R.\u0275fac=function(A){return new(A||R)},R.\u0275mod=u.oAB({type:R,bootstrap:[Tr]}),R.\u0275inj=u.cJS({providers:[vi],imports:[[gi,y.ez,ht.u5,tt.JF,ir,xi]]}),R})();(0,u.G48)(),br().bootstrapModule(Qr).catch(R=>console.error(R))},9162:(Ye,me,O)=>{"use strict";O.d(me,{ZT:()=>u,mG:()=>P,Jh:()=>x,XA:()=>ae,CR:()=>Ee,ev:()=>_e,qq:()=>He,FC:()=>Me,KL:()=>We});var y=function(le,H){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,ue){X.__proto__=ue}||function(X,ue){for(var Ae in ue)Object.prototype.hasOwnProperty.call(ue,Ae)&&(X[Ae]=ue[Ae])})(le,H)};function u(le,H){if("function"!=typeof H&&null!==H)throw new TypeError("Class extends value "+String(H)+" is not a constructor or null");function X(){this.constructor=le}y(le,H),le.prototype=null===H?Object.create(H):(X.prototype=H.prototype,new X)}function P(le,H,X,ue){return new(X||(X=Promise))(function(ie,ze){function ee(Ve){try{be(ue.next(Ve))}catch(Xe){ze(Xe)}}function Te(Ve){try{be(ue.throw(Ve))}catch(Xe){ze(Xe)}}function be(Ve){Ve.done?ie(Ve.value):function(ie){return ie instanceof X?ie:new X(function(ze){ze(ie)})}(Ve.value).then(ee,Te)}be((ue=ue.apply(le,H||[])).next())})}function x(le,H){var ue,Ae,ie,ze,X={label:0,sent:function(){if(1&ie[0])throw ie[1];return ie[1]},trys:[],ops:[]};return ze={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(ze[Symbol.iterator]=function(){return this}),ze;function ee(be){return function(Ve){return function(be){if(ue)throw new TypeError("Generator is already executing.");for(;X;)try{if(ue=1,Ae&&(ie=2&be[0]?Ae.return:be[0]?Ae.throw||((ie=Ae.return)&&ie.call(Ae),0):Ae.next)&&!(ie=ie.call(Ae,be[1])).done)return ie;switch(Ae=0,ie&&(be=[2&be[0],ie.value]),be[0]){case 0:case 1:ie=be;break;case 4:return X.label++,{value:be[1],done:!1};case 5:X.label++,Ae=be[1],be=[0];continue;case 7:be=X.ops.pop(),X.trys.pop();continue;default:if(!(ie=(ie=X.trys).length>0&&ie[ie.length-1])&&(6===be[0]||2===be[0])){X=0;continue}if(3===be[0]&&(!ie||be[1]>ie[0]&&be[1]=le.length&&(le=void 0),{value:le&&le[ue++],done:!le}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ee(le,H){var X="function"==typeof Symbol&&le[Symbol.iterator];if(!X)return le;var Ae,ze,ue=X.call(le),ie=[];try{for(;(void 0===H||H-- >0)&&!(Ae=ue.next()).done;)ie.push(Ae.value)}catch(ee){ze={error:ee}}finally{try{Ae&&!Ae.done&&(X=ue.return)&&X.call(ue)}finally{if(ze)throw ze.error}}return ie}function _e(le,H){for(var X=0,ue=H.length,Ae=le.length;X1||ee(rt,vt)})})}function ee(rt,vt){try{!function(rt){rt.value instanceof He?Promise.resolve(rt.value.v).then(be,Ve):Xe(ie[0][2],rt)}(ue[rt](vt))}catch(jt){Xe(ie[0][3],jt)}}function be(rt){ee("next",rt)}function Ve(rt){ee("throw",rt)}function Xe(rt,vt){rt(vt),ie.shift(),ie.length&&ee(ie[0][0],ie[0][1])}}function We(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,H=le[Symbol.asyncIterator];return H?H.call(le):(le=ae(le),X={},ue("next"),ue("throw"),ue("return"),X[Symbol.asyncIterator]=function(){return this},X);function ue(ie){X[ie]=le[ie]&&function(ze){return new Promise(function(ee,Te){!function(ie,ze,ee,Te){Promise.resolve(Te).then(function(be){ie({value:be,done:ee})},ze)}(ee,Te,(ze=le[ie](ze)).done,ze.value)})}}}}},Ye=>{Ye(Ye.s=4705)}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/main.adfd2144e5b69830edb7.js b/cmd/edgex-ui-server/static/web/en-US/main.adfd2144e5b69830edb7.js deleted file mode 100644 index 59a35622..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/main.adfd2144e5b69830edb7.js +++ /dev/null @@ -1,3 +0,0 @@ -var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"en-US"}); -"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(n){const i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;if(i===1&&v===0)return 1;return 5}global.ng.common.locales["en-us-posix"]=["en-US-POSIX",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],u,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","\xD7","0/00","INF","NaN",":"],["0.######","0%","\xA4\xA00.00","0.000000E+000"],"USD","$","US Dollar",{},"ltr",plural,[[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);; -(self.webpackChunkweb=self.webpackChunkweb||[]).push([[179],{8255:Ye=>{function me(O){return Promise.resolve().then(()=>{var y=new Error("Cannot find module '"+O+"'");throw y.code="MODULE_NOT_FOUND",y})}me.keys=()=>[],me.resolve=me,me.id=8255,Ye.exports=me},8583:(Ye,me,O)=>{"use strict";O.d(me,{mr:()=>Ge,ez:()=>ne,K0:()=>K,uU:()=>Ir,Do:()=>Fe,V_:()=>U,Ye:()=>he,S$:()=>He,mk:()=>kn,sg:()=>Vn,O5:()=>Zn,RF:()=>Un,n9:()=>Bn,ED:()=>Gt,b0:()=>We,lw:()=>P,EM:()=>Li,JF:()=>vi,w_:()=>Q,bD:()=>Oe,q:()=>ce,Mx:()=>Bt,HT:()=>te});var y=O(476);let u=null;function ce(){return u}function te(_){u||(u=_)}class Q{}const K=new y.OlP("DocumentToken");let P=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=(0,y.Yz7)({factory:x,token:_,providedIn:"platform"}),_})();function x(){return(0,y.LFG)(Y)}const U=new y.OlP("Location Initialized");let Y=(()=>{class _ extends P{constructor(v){super(),this._doc=v,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ce().getBaseHref(this._doc)}onPopState(v){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("popstate",v,!1),()=>S.removeEventListener("popstate",v)}onHashChange(v){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("hashchange",v,!1),()=>S.removeEventListener("hashchange",v)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(v){this.location.pathname=v}pushState(v,S,B){ae()?this._history.pushState(v,S,B):this.location.hash=B}replaceState(v,S,B){ae()?this._history.replaceState(v,S,B):this.location.hash=B}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(K))},_.\u0275prov=(0,y.Yz7)({factory:Ee,token:_,providedIn:"platform"}),_})();function ae(){return!!window.history.pushState}function Ee(){return new Y((0,y.LFG)(K))}function De(_,w){if(0==_.length)return w;if(0==w.length)return _;let v=0;return _.endsWith("/")&&v++,w.startsWith("/")&&v++,2==v?_+w.substring(1):1==v?_+w:_+"/"+w}function Pe(_){const w=_.match(/#|\?|$/),v=w&&w.index||_.length;return _.slice(0,v-("/"===_[v-1]?1:0))+_.slice(v)}function ve(_){return _&&"?"!==_[0]?"?"+_:_}let He=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=(0,y.Yz7)({factory:Me,token:_,providedIn:"root"}),_})();function Me(_){const w=(0,y.LFG)(K).location;return new We((0,y.LFG)(P),w&&w.origin||"")}const Ge=new y.OlP("appBaseHref");let We=(()=>{class _ extends He{constructor(v,S){if(super(),this._platformLocation=v,this._removeListenerFns=[],null==S&&(S=this._platformLocation.getBaseHrefFromDOM()),null==S)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=S}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return De(this._baseHref,v)}path(v=!1){const S=this._platformLocation.pathname+ve(this._platformLocation.search),B=this._platformLocation.hash;return B&&v?`${S}${B}`:S}pushState(v,S,B,oe){const pe=this.prepareExternalUrl(B+ve(oe));this._platformLocation.pushState(v,S,pe)}replaceState(v,S,B,oe){const pe=this.prepareExternalUrl(B+ve(oe));this._platformLocation.replaceState(v,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,v)}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(P),y.LFG(Ge,8))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})(),Fe=(()=>{class _ extends He{constructor(v,S){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=S&&(this._baseHref=S)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){let S=this._platformLocation.hash;return null==S&&(S="#"),S.length>0?S.substring(1):S}prepareExternalUrl(v){const S=De(this._baseHref,v);return S.length>0?"#"+S:S}pushState(v,S,B,oe){let pe=this.prepareExternalUrl(B+ve(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.pushState(v,S,pe)}replaceState(v,S,B,oe){let pe=this.prepareExternalUrl(B+ve(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.replaceState(v,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,v)}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(P),y.LFG(Ge,8))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})(),he=(()=>{class _{constructor(v,S){this._subject=new y.vpe,this._urlChangeListeners=[],this._platformStrategy=v;const B=this._platformStrategy.getBaseHref();this._platformLocation=S,this._baseHref=Pe($e(B)),this._platformStrategy.onPopState(oe=>{this._subject.emit({url:this.path(!0),pop:!0,state:oe.state,type:oe.type})})}path(v=!1){return this.normalize(this._platformStrategy.path(v))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(v,S=""){return this.path()==this.normalize(v+ve(S))}normalize(v){return _.stripTrailingSlash(function(_,w){return _&&w.startsWith(_)?w.substring(_.length):w}(this._baseHref,$e(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._platformStrategy.prepareExternalUrl(v)}go(v,S="",B=null){this._platformStrategy.pushState(B,"",v,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ve(S)),B)}replaceState(v,S="",B=null){this._platformStrategy.replaceState(B,"",v,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ve(S)),B)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformStrategy).historyGo)||void 0===B||B.call(S,v)}onUrlChange(v){this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(S=>{this._notifyUrlChangeListeners(S.url,S.state)}))}_notifyUrlChangeListeners(v="",S){this._urlChangeListeners.forEach(B=>B(v,S))}subscribe(v,S,B){return this._subject.subscribe({next:v,error:S,complete:B})}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(He),y.LFG(P))},_.normalizeQueryParams=ve,_.joinWithSlash=De,_.stripTrailingSlash=Pe,_.\u0275prov=(0,y.Yz7)({factory:Ke,token:_,providedIn:"root"}),_})();function Ke(){return new he((0,y.LFG)(He),(0,y.LFG)(P))}function $e(_){return _.replace(/\/index.html$/,"")}var H=(()=>((H=H||{})[H.Zero=0]="Zero",H[H.One=1]="One",H[H.Two=2]="Two",H[H.Few=3]="Few",H[H.Many=4]="Many",H[H.Other=5]="Other",H))(),X=(()=>((X=X||{})[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X))(),ue=(()=>((ue=ue||{})[ue.Narrow=0]="Narrow",ue[ue.Abbreviated=1]="Abbreviated",ue[ue.Wide=2]="Wide",ue[ue.Short=3]="Short",ue))(),Ae=(()=>((Ae=Ae||{})[Ae.Short=0]="Short",Ae[Ae.Medium=1]="Medium",Ae[Ae.Long=2]="Long",Ae[Ae.Full=3]="Full",Ae))(),ie=(()=>((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",ie))();function jt(_,w){return gt((0,y.cg1)(_)[y.wAp.DateFormat],w)}function Kt(_,w){return gt((0,y.cg1)(_)[y.wAp.TimeFormat],w)}function It(_,w){return gt((0,y.cg1)(_)[y.wAp.DateTimeFormat],w)}function tn(_,w){const v=(0,y.cg1)(_),S=v[y.wAp.NumberSymbols][w];if(void 0===S){if(w===ie.CurrencyDecimal)return v[y.wAp.NumberSymbols][ie.Decimal];if(w===ie.CurrencyGroup)return v[y.wAp.NumberSymbols][ie.Group]}return S}const Cn=y.kL8;function Rn(_){if(!_[y.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${_[y.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function gt(_,w){for(let v=w;v>-1;v--)if(void 0!==_[v])return _[v];throw new Error("Locale data API: locale data undefined")}function tr(_){const[w,v]=_.split(":");return{hours:+w,minutes:+v}}const W=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ge={},ye=/((?:[^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]*)/;var Re=(()=>((Re=Re||{})[Re.Short=0]="Short",Re[Re.ShortGMT=1]="ShortGMT",Re[Re.Long=2]="Long",Re[Re.Extended=3]="Extended",Re))(),se=(()=>((se=se||{})[se.FullYear=0]="FullYear",se[se.Month=1]="Month",se[se.Date=2]="Date",se[se.Hours=3]="Hours",se[se.Minutes=4]="Minutes",se[se.Seconds=5]="Seconds",se[se.FractionalSeconds=6]="FractionalSeconds",se[se.Day=7]="Day",se))(),xe=(()=>((xe=xe||{})[xe.DayPeriods=0]="DayPeriods",xe[xe.Days=1]="Days",xe[xe.Months=2]="Months",xe[xe.Eras=3]="Eras",xe))();function Ne(_,w,v,S){let B=function(_){if(Fn(_))return _;if("number"==typeof _&&!isNaN(_))return new Date(_);if("string"==typeof _){if(_=_.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(_)){const[B,oe=1,pe=1]=_.split("-").map(Be=>+Be);return St(B,oe-1,pe)}const v=parseFloat(_);if(!isNaN(_-v))return new Date(v);let S;if(S=_.match(W))return function(_){const w=new Date(0);let v=0,S=0;const B=_[8]?w.setUTCFullYear:w.setFullYear,oe=_[8]?w.setUTCHours:w.setHours;_[9]&&(v=Number(_[9]+_[10]),S=Number(_[9]+_[11])),B.call(w,Number(_[1]),Number(_[2])-1,Number(_[3]));const pe=Number(_[4]||0)-v,Be=Number(_[5]||0)-S,Dt=Number(_[6]||0),E=Math.floor(1e3*parseFloat("0."+(_[7]||0)));return oe.call(w,pe,Be,Dt,E),w}(S)}const w=new Date(_);if(!Fn(w))throw new Error(`Unable to convert "${_}" into a date`);return w}(_);w=Lt(v,w)||w;let Be,pe=[];for(;w;){if(Be=ye.exec(w),!Be){pe.push(w);break}{pe=pe.concat(Be.slice(1));const m=pe.pop();if(!m)break;w=m}}let Dt=B.getTimezoneOffset();S&&(Dt=br(S,Dt),B=function(_,w,v){const B=_.getTimezoneOffset();return function(_,w){return(_=new Date(_.getTime())).setMinutes(_.getMinutes()+w),_}(_,-1*(br(w,B)-B))}(B,S));let E="";return pe.forEach(m=>{const h=function(_){if(mt[_])return mt[_];let w;switch(_){case"G":case"GG":case"GGG":w=Le(xe.Eras,ue.Abbreviated);break;case"GGGG":w=Le(xe.Eras,ue.Wide);break;case"GGGGG":w=Le(xe.Eras,ue.Narrow);break;case"y":w=ot(se.FullYear,1,0,!1,!0);break;case"yy":w=ot(se.FullYear,2,0,!0,!0);break;case"yyy":w=ot(se.FullYear,3,0,!1,!0);break;case"yyyy":w=ot(se.FullYear,4,0,!1,!0);break;case"Y":w=xn(1);break;case"YY":w=xn(2,!0);break;case"YYY":w=xn(3);break;case"YYYY":w=xn(4);break;case"M":case"L":w=ot(se.Month,1,1);break;case"MM":case"LL":w=ot(se.Month,2,1);break;case"MMM":w=Le(xe.Months,ue.Abbreviated);break;case"MMMM":w=Le(xe.Months,ue.Wide);break;case"MMMMM":w=Le(xe.Months,ue.Narrow);break;case"LLL":w=Le(xe.Months,ue.Abbreviated,X.Standalone);break;case"LLLL":w=Le(xe.Months,ue.Wide,X.Standalone);break;case"LLLLL":w=Le(xe.Months,ue.Narrow,X.Standalone);break;case"w":w=pi(1);break;case"ww":w=pi(2);break;case"W":w=pi(1,!0);break;case"d":w=ot(se.Date,1);break;case"dd":w=ot(se.Date,2);break;case"c":case"cc":w=ot(se.Day,1);break;case"ccc":w=Le(xe.Days,ue.Abbreviated,X.Standalone);break;case"cccc":w=Le(xe.Days,ue.Wide,X.Standalone);break;case"ccccc":w=Le(xe.Days,ue.Narrow,X.Standalone);break;case"cccccc":w=Le(xe.Days,ue.Short,X.Standalone);break;case"E":case"EE":case"EEE":w=Le(xe.Days,ue.Abbreviated);break;case"EEEE":w=Le(xe.Days,ue.Wide);break;case"EEEEE":w=Le(xe.Days,ue.Narrow);break;case"EEEEEE":w=Le(xe.Days,ue.Short);break;case"a":case"aa":case"aaa":w=Le(xe.DayPeriods,ue.Abbreviated);break;case"aaaa":w=Le(xe.DayPeriods,ue.Wide);break;case"aaaaa":w=Le(xe.DayPeriods,ue.Narrow);break;case"b":case"bb":case"bbb":w=Le(xe.DayPeriods,ue.Abbreviated,X.Standalone,!0);break;case"bbbb":w=Le(xe.DayPeriods,ue.Wide,X.Standalone,!0);break;case"bbbbb":w=Le(xe.DayPeriods,ue.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":w=Le(xe.DayPeriods,ue.Abbreviated,X.Format,!0);break;case"BBBB":w=Le(xe.DayPeriods,ue.Wide,X.Format,!0);break;case"BBBBB":w=Le(xe.DayPeriods,ue.Narrow,X.Format,!0);break;case"h":w=ot(se.Hours,1,-12);break;case"hh":w=ot(se.Hours,2,-12);break;case"H":w=ot(se.Hours,1);break;case"HH":w=ot(se.Hours,2);break;case"m":w=ot(se.Minutes,1);break;case"mm":w=ot(se.Minutes,2);break;case"s":w=ot(se.Seconds,1);break;case"ss":w=ot(se.Seconds,2);break;case"S":w=ot(se.FractionalSeconds,1);break;case"SS":w=ot(se.FractionalSeconds,2);break;case"SSS":w=ot(se.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":w=rn(Re.Short);break;case"ZZZZZ":w=rn(Re.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":w=rn(Re.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":w=rn(Re.Long);break;default:return null}return mt[_]=w,w}(m);E+=h?h(B,v,Dt):"''"===m?"'":m.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),E}function St(_,w,v){const S=new Date(0);return S.setFullYear(_,w,v),S.setHours(0,0,0),S}function Lt(_,w){const v=function(_){return(0,y.cg1)(_)[y.wAp.LocaleId]}(_);if(ge[v]=ge[v]||{},ge[v][w])return ge[v][w];let S="";switch(w){case"shortDate":S=jt(_,Ae.Short);break;case"mediumDate":S=jt(_,Ae.Medium);break;case"longDate":S=jt(_,Ae.Long);break;case"fullDate":S=jt(_,Ae.Full);break;case"shortTime":S=Kt(_,Ae.Short);break;case"mediumTime":S=Kt(_,Ae.Medium);break;case"longTime":S=Kt(_,Ae.Long);break;case"fullTime":S=Kt(_,Ae.Full);break;case"short":const B=Lt(_,"shortTime"),oe=Lt(_,"shortDate");S=zn(It(_,Ae.Short),[B,oe]);break;case"medium":const pe=Lt(_,"mediumTime"),Be=Lt(_,"mediumDate");S=zn(It(_,Ae.Medium),[pe,Be]);break;case"long":const Dt=Lt(_,"longTime"),E=Lt(_,"longDate");S=zn(It(_,Ae.Long),[Dt,E]);break;case"full":const m=Lt(_,"fullTime"),h=Lt(_,"fullDate");S=zn(It(_,Ae.Full),[m,h])}return S&&(ge[v][w]=S),S}function zn(_,w){return w&&(_=_.replace(/\{([^}]+)}/g,function(v,S){return null!=w&&S in w?w[S]:v})),_}function wt(_,w,v="-",S,B){let oe="";(_<0||B&&_<=0)&&(B?_=1-_:(_=-_,oe=v));let pe=String(_);for(;pe.length0||Be>-v)&&(Be+=v),_===se.Hours)0===Be&&-12===v&&(Be=12);else if(_===se.FractionalSeconds)return function(_,w){return wt(_,3).substr(0,w)}(Be,w);const Dt=tn(pe,ie.MinusSign);return wt(Be,w,Dt,S,B)}}function Le(_,w,v=X.Format,S=!1){return function(B,oe){return function(_,w,v,S,B,oe){switch(v){case xe.Months:return function(_,w,v){const S=(0,y.cg1)(_),oe=gt([S[y.wAp.MonthsFormat],S[y.wAp.MonthsStandalone]],w);return gt(oe,v)}(w,B,S)[_.getMonth()];case xe.Days:return function(_,w,v){const S=(0,y.cg1)(_),oe=gt([S[y.wAp.DaysFormat],S[y.wAp.DaysStandalone]],w);return gt(oe,v)}(w,B,S)[_.getDay()];case xe.DayPeriods:const pe=_.getHours(),Be=_.getMinutes();if(oe){const E=function(_){const w=(0,y.cg1)(_);return Rn(w),(w[y.wAp.ExtraData][2]||[]).map(S=>"string"==typeof S?tr(S):[tr(S[0]),tr(S[1])])}(w),m=function(_,w,v){const S=(0,y.cg1)(_);Rn(S);const oe=gt([S[y.wAp.ExtraData][0],S[y.wAp.ExtraData][1]],w)||[];return gt(oe,v)||[]}(w,B,S),h=E.findIndex(M=>{if(Array.isArray(M)){const[Z,we]=M,At=pe>=Z.hours&&Be>=Z.minutes,an=pe0?Math.floor(B/60):Math.ceil(B/60);switch(_){case Re.Short:return(B>=0?"+":"")+wt(pe,2,oe)+wt(Math.abs(B%60),2,oe);case Re.ShortGMT:return"GMT"+(B>=0?"+":"")+wt(pe,1,oe);case Re.Long:return"GMT"+(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);case Re.Extended:return 0===S?"Z":(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);default:throw new Error(`Unknown zone width "${_}"`)}}}function Mn(_){return St(_.getFullYear(),_.getMonth(),_.getDate()+(4-_.getDay()))}function pi(_,w=!1){return function(v,S){let B;if(w){const oe=new Date(v.getFullYear(),v.getMonth(),1).getDay()-1,pe=v.getDate();B=1+Math.floor((pe+oe)/7)}else{const oe=Mn(v),pe=function(_){const w=St(_,0,1).getDay();return St(_,0,1+(w<=4?4:11)-w)}(oe.getFullYear()),Be=oe.getTime()-pe.getTime();B=1+Math.round(Be/6048e5)}return wt(B,_,tn(S,ie.MinusSign))}}function xn(_,w=!1){return function(v,S){return wt(Mn(v).getFullYear(),_,tn(S,ie.MinusSign),w)}}const mt={};function br(_,w){_=_.replace(/:/g,"");const v=Date.parse("Jan 01, 1970 00:00:00 "+_)/6e4;return isNaN(v)?w:v}function Fn(_){return _ instanceof Date&&!isNaN(_.valueOf())}class tt{}let ut=(()=>{class _ extends tt{constructor(v){super(),this.locale=v}getPluralCategory(v,S){switch(Cn(S||this.locale)(v)){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(y.soG))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})();function Bt(_,w){w=encodeURIComponent(w);for(const v of _.split(";")){const S=v.indexOf("="),[B,oe]=-1==S?[v,""]:[v.slice(0,S),v.slice(S+1)];if(B.trim()===w)return decodeURIComponent(oe)}return null}let kn=(()=>{class _{constructor(v,S,B,oe){this._iterableDiffers=v,this._keyValueDiffers=S,this._ngEl=B,this._renderer=oe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(v){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof v?v.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(v){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof v?v.split(/\s+/):v,this._rawClass&&((0,y.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const v=this._iterableDiffer.diff(this._rawClass);v&&this._applyIterableChanges(v)}else if(this._keyValueDiffer){const v=this._keyValueDiffer.diff(this._rawClass);v&&this._applyKeyValueChanges(v)}}_applyKeyValueChanges(v){v.forEachAddedItem(S=>this._toggleClass(S.key,S.currentValue)),v.forEachChangedItem(S=>this._toggleClass(S.key,S.currentValue)),v.forEachRemovedItem(S=>{S.previousValue&&this._toggleClass(S.key,!1)})}_applyIterableChanges(v){v.forEachAddedItem(S=>{if("string"!=typeof S.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,y.AaK)(S.item)}`);this._toggleClass(S.item,!0)}),v.forEachRemovedItem(S=>this._toggleClass(S.item,!1))}_applyClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(S=>this._toggleClass(S,!0)):Object.keys(v).forEach(S=>this._toggleClass(S,!!v[S])))}_removeClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(S=>this._toggleClass(S,!1)):Object.keys(v).forEach(S=>this._toggleClass(S,!1)))}_toggleClass(v,S){(v=v.trim())&&v.split(/\s+/g).forEach(B=>{S?this._renderer.addClass(this._ngEl.nativeElement,B):this._renderer.removeClass(this._ngEl.nativeElement,B)})}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.ZZ4),y.Y36(y.aQg),y.Y36(y.SBq),y.Y36(y.Qsj))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),_})();class wr{constructor(w,v,S,B){this.$implicit=w,this.ngForOf=v,this.index=S,this.count=B}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Vn=(()=>{class _{constructor(v,S,B){this._viewContainer=v,this._template=S,this._differs=B,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;if(!this._differ&&v)try{this._differ=this._differs.find(v).create(this.ngForTrackBy)}catch(S){throw new Error(`Cannot find a differ supporting object '${v}' of type '${function(_){return _.name||typeof _}(v)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const S=[];v.forEachOperation((B,oe,pe)=>{if(null==B.previousIndex){const Be=this._viewContainer.createEmbeddedView(this._template,new wr(null,this._ngForOf,-1,-1),null===pe?void 0:pe),Dt=new Ze(B,Be);S.push(Dt)}else if(null==pe)this._viewContainer.remove(null===oe?void 0:oe);else if(null!==oe){const Be=this._viewContainer.get(oe);this._viewContainer.move(Be,pe);const Dt=new Ze(B,Be);S.push(Dt)}});for(let B=0;B{this._viewContainer.get(B.currentIndex).context.$implicit=B.item})}_perViewChange(v,S){v.context.$implicit=S.item}static ngTemplateContextGuard(v,S){return!0}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(y.ZZ4))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),_})();class Ze{constructor(w,v){this.record=w,this.view=v}}let Zn=(()=>{class _{constructor(v,S){this._viewContainer=v,this._context=new _n,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=S}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){hn("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){hn("ngIfElse",v),this._elseTemplateRef=v,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(v,S){return!0}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),_})();class _n{constructor(){this.$implicit=null,this.ngIf=null}}function hn(_,w){if(w&&!w.createEmbeddedView)throw new Error(`${_} must be a TemplateRef, but received '${(0,y.AaK)(w)}'.`)}class Ht{constructor(w,v){this._viewContainerRef=w,this._templateRef=v,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(w){w&&!this._created?this.create():!w&&this._created&&this.destroy()}}let Un=(()=>{class _{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(v){this._ngSwitch=v,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(v){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(v)}_matchCase(v){const S=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||S,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),S}_updateDefaultCases(v){if(this._defaultViews&&v!==this._defaultUsed){this._defaultUsed=v;for(let S=0;S{class _{constructor(v,S,B){this.ngSwitch=B,B._addCase(),this._view=new Ht(v,S)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),_})(),Gt=(()=>{class _{constructor(v,S,B){B._addDefault(new Ht(v,S))}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngSwitchDefault",""]]}),_})();let Ir=(()=>{class _{constructor(v){this.locale=v}transform(v,S="mediumDate",B,oe){if(null==v||""===v||v!=v)return null;try{return Ne(v,S,oe||this.locale,B)}catch(pe){throw function(_,w){return Error(`InvalidPipeArgument: '${w}' for pipe '${(0,y.AaK)(_)}'`)}(_,pe.message)}}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.soG,16))},_.\u0275pipe=y.Yjl({name:"date",type:_,pure:!0}),_})(),ne=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=y.oAB({type:_}),_.\u0275inj=y.cJS({providers:[{provide:tt,useClass:ut}]}),_})();const Oe="browser";let Li=(()=>{class _{}return _.\u0275prov=(0,y.Yz7)({token:_,providedIn:"root",factory:()=>new ki((0,y.LFG)(K),window)}),_})();class ki{constructor(w,v){this.document=w,this.window=v,this.offset=()=>[0,0]}setOffset(w){this.offset=Array.isArray(w)?()=>w:w}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(w){this.supportsScrolling()&&this.window.scrollTo(w[0],w[1])}scrollToAnchor(w){if(!this.supportsScrolling())return;const v=function(_,w){const v=_.getElementById(w)||_.getElementsByName(w)[0];if(v)return v;if("function"==typeof _.createTreeWalker&&_.body&&(_.body.createShadowRoot||_.body.attachShadow)){const S=_.createTreeWalker(_.body,NodeFilter.SHOW_ELEMENT);let B=S.currentNode;for(;B;){const oe=B.shadowRoot;if(oe){const pe=oe.getElementById(w)||oe.querySelector(`[name="${w}"]`);if(pe)return pe}B=S.nextNode()}}return null}(this.document,w);v&&(this.scrollToElement(v),this.attemptFocus(v))}setHistoryScrollRestoration(w){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=w)}}scrollToElement(w){const v=w.getBoundingClientRect(),S=v.left+this.window.pageXOffset,B=v.top+this.window.pageYOffset,oe=this.offset();this.window.scrollTo(S-oe[0],B-oe[1])}attemptFocus(w){return w.focus(),this.document.activeElement===w}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const w=Nr(this.window.history)||Nr(Object.getPrototypeOf(this.window.history));return!(!w||!w.writable&&!w.set)}catch(w){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(w){return!1}}}function Nr(_){return Object.getOwnPropertyDescriptor(_,"scrollRestoration")}class vi{}},1841:(Ye,me,O)=>{"use strict";O.d(me,{TP:()=>ee,eN:()=>ie,JF:()=>gt,WM:()=>U});var y=O(8583),u=O(476),ce=O(1964),re=O(1776),te=O(3766),Q=O(4689),K=O(5207);class P{}class x{}class U{constructor(G){this.normalizedNames=new Map,this.lazyUpdate=null,G?this.lazyInit="string"==typeof G?()=>{this.headers=new Map,G.split("\n").forEach(W=>{const ge=W.indexOf(":");if(ge>0){const ye=W.slice(0,ge),Re=ye.toLowerCase(),se=W.slice(ge+1).trim();this.maybeSetNormalizedName(ye,Re),this.headers.has(Re)?this.headers.get(Re).push(se):this.headers.set(Re,[se])}})}:()=>{this.headers=new Map,Object.keys(G).forEach(W=>{let ge=G[W];const ye=W.toLowerCase();"string"==typeof ge&&(ge=[ge]),ge.length>0&&(this.headers.set(ye,ge),this.maybeSetNormalizedName(W,ye))})}:this.headers=new Map}has(G){return this.init(),this.headers.has(G.toLowerCase())}get(G){this.init();const W=this.headers.get(G.toLowerCase());return W&&W.length>0?W[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(G){return this.init(),this.headers.get(G.toLowerCase())||null}append(G,W){return this.clone({name:G,value:W,op:"a"})}set(G,W){return this.clone({name:G,value:W,op:"s"})}delete(G,W){return this.clone({name:G,value:W,op:"d"})}maybeSetNormalizedName(G,W){this.normalizedNames.has(W)||this.normalizedNames.set(W,G)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(G=>this.applyUpdate(G)),this.lazyUpdate=null))}copyFrom(G){G.init(),Array.from(G.headers.keys()).forEach(W=>{this.headers.set(W,G.headers.get(W)),this.normalizedNames.set(W,G.normalizedNames.get(W))})}clone(G){const W=new U;return W.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,W.lazyUpdate=(this.lazyUpdate||[]).concat([G]),W}applyUpdate(G){const W=G.name.toLowerCase();switch(G.op){case"a":case"s":let ge=G.value;if("string"==typeof ge&&(ge=[ge]),0===ge.length)return;this.maybeSetNormalizedName(G.name,W);const ye=("a"===G.op?this.headers.get(W):void 0)||[];ye.push(...ge),this.headers.set(W,ye);break;case"d":const Re=G.value;if(Re){let se=this.headers.get(W);if(!se)return;se=se.filter(xe=>-1===Re.indexOf(xe)),0===se.length?(this.headers.delete(W),this.normalizedNames.delete(W)):this.headers.set(W,se)}else this.headers.delete(W),this.normalizedNames.delete(W)}}forEach(G){this.init(),Array.from(this.normalizedNames.keys()).forEach(W=>G(this.normalizedNames.get(W),this.headers.get(W)))}}class Y{encodeKey(G){return Pe(G)}encodeValue(G){return Pe(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}const Ee=/%(\d[a-f0-9])/gi,De={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Pe(fe){return encodeURIComponent(fe).replace(Ee,(G,W)=>{var ge;return null!==(ge=De[W])&&void 0!==ge?ge:G})}function ve(fe){return`${fe}`}class He{constructor(G={}){if(this.updates=null,this.cloneFrom=null,this.encoder=G.encoder||new Y,G.fromString){if(G.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(fe,G){const W=new Map;return fe.length>0&&fe.replace(/^\?/,"").split("&").forEach(ye=>{const Re=ye.indexOf("="),[se,xe]=-1==Re?[G.decodeKey(ye),""]:[G.decodeKey(ye.slice(0,Re)),G.decodeValue(ye.slice(Re+1))],Ne=W.get(se)||[];Ne.push(xe),W.set(se,Ne)}),W}(G.fromString,this.encoder)}else G.fromObject?(this.map=new Map,Object.keys(G.fromObject).forEach(W=>{const ge=G.fromObject[W];this.map.set(W,Array.isArray(ge)?ge:[ge])})):this.map=null}has(G){return this.init(),this.map.has(G)}get(G){this.init();const W=this.map.get(G);return W?W[0]:null}getAll(G){return this.init(),this.map.get(G)||null}keys(){return this.init(),Array.from(this.map.keys())}append(G,W){return this.clone({param:G,value:W,op:"a"})}appendAll(G){const W=[];return Object.keys(G).forEach(ge=>{const ye=G[ge];Array.isArray(ye)?ye.forEach(Re=>{W.push({param:ge,value:Re,op:"a"})}):W.push({param:ge,value:ye,op:"a"})}),this.clone(W)}set(G,W){return this.clone({param:G,value:W,op:"s"})}delete(G,W){return this.clone({param:G,value:W,op:"d"})}toString(){return this.init(),this.keys().map(G=>{const W=this.encoder.encodeKey(G);return this.map.get(G).map(ge=>W+"="+this.encoder.encodeValue(ge)).join("&")}).filter(G=>""!==G).join("&")}clone(G){const W=new He({encoder:this.encoder});return W.cloneFrom=this.cloneFrom||this,W.updates=(this.updates||[]).concat(G),W}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(G=>this.map.set(G,this.cloneFrom.map.get(G))),this.updates.forEach(G=>{switch(G.op){case"a":case"s":const W=("a"===G.op?this.map.get(G.param):void 0)||[];W.push(ve(G.value)),this.map.set(G.param,W);break;case"d":if(void 0===G.value){this.map.delete(G.param);break}{let ge=this.map.get(G.param)||[];const ye=ge.indexOf(ve(G.value));-1!==ye&&ge.splice(ye,1),ge.length>0?this.map.set(G.param,ge):this.map.delete(G.param)}}}),this.cloneFrom=this.updates=null)}}class Ge{constructor(){this.map=new Map}set(G,W){return this.map.set(G,W),this}get(G){return this.map.has(G)||this.map.set(G,G.defaultValue()),this.map.get(G)}delete(G){return this.map.delete(G),this}keys(){return this.map.keys()}}function Fe(fe){return"undefined"!=typeof ArrayBuffer&&fe instanceof ArrayBuffer}function he(fe){return"undefined"!=typeof Blob&&fe instanceof Blob}function Ke(fe){return"undefined"!=typeof FormData&&fe instanceof FormData}class $e{constructor(G,W,ge,ye){let Re;if(this.url=W,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=G.toUpperCase(),function(fe){switch(fe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ye?(this.body=void 0!==ge?ge:null,Re=ye):Re=ge,Re&&(this.reportProgress=!!Re.reportProgress,this.withCredentials=!!Re.withCredentials,Re.responseType&&(this.responseType=Re.responseType),Re.headers&&(this.headers=Re.headers),Re.context&&(this.context=Re.context),Re.params&&(this.params=Re.params)),this.headers||(this.headers=new U),this.context||(this.context=new Ge),this.params){const se=this.params.toString();if(0===se.length)this.urlWithParams=W;else{const xe=W.indexOf("?");this.urlWithParams=W+(-1===xe?"?":xewt.set(Qe,G.setHeaders[Qe]),St)),G.setParams&&(Lt=Object.keys(G.setParams).reduce((wt,Qe)=>wt.set(Qe,G.setParams[Qe]),Lt)),new $e(ge,ye,se,{params:Lt,headers:St,context:zn,reportProgress:Ne,responseType:Re,withCredentials:xe})}}var lt=(()=>((lt=lt||{})[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt))();class le{constructor(G,W=200,ge="OK"){this.headers=G.headers||new U,this.status=void 0!==G.status?G.status:W,this.statusText=G.statusText||ge,this.url=G.url||null,this.ok=this.status>=200&&this.status<300}}class H extends le{constructor(G={}){super(G),this.type=lt.ResponseHeader}clone(G={}){return new H({headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class X extends le{constructor(G={}){super(G),this.type=lt.Response,this.body=void 0!==G.body?G.body:null}clone(G={}){return new X({body:void 0!==G.body?G.body:this.body,headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class ue extends le{constructor(G){super(G,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${G.url||"(unknown url)"}`:`Http failure response for ${G.url||"(unknown url)"}: ${G.status} ${G.statusText}`,this.error=G.error||null}}function Ae(fe,G){return{body:G,headers:fe.headers,context:fe.context,observe:fe.observe,params:fe.params,reportProgress:fe.reportProgress,responseType:fe.responseType,withCredentials:fe.withCredentials}}let ie=(()=>{class fe{constructor(W){this.handler=W}request(W,ge,ye={}){let Re;if(W instanceof $e)Re=W;else{let Ne,St;Ne=ye.headers instanceof U?ye.headers:new U(ye.headers),ye.params&&(St=ye.params instanceof He?ye.params:new He({fromObject:ye.params})),Re=new $e(W,ge,void 0!==ye.body?ye.body:null,{headers:Ne,context:ye.context,params:St,reportProgress:ye.reportProgress,responseType:ye.responseType||"json",withCredentials:ye.withCredentials})}const se=(0,ce.of)(Re).pipe((0,te.b)(Ne=>this.handler.handle(Ne)));if(W instanceof $e||"events"===ye.observe)return se;const xe=se.pipe((0,Q.h)(Ne=>Ne instanceof X));switch(ye.observe||"body"){case"body":switch(Re.responseType){case"arraybuffer":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&!(Ne.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ne.body}));case"blob":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&!(Ne.body instanceof Blob))throw new Error("Response is not a Blob.");return Ne.body}));case"text":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&"string"!=typeof Ne.body)throw new Error("Response is not a string.");return Ne.body}));case"json":default:return xe.pipe((0,K.U)(Ne=>Ne.body))}case"response":return xe;default:throw new Error(`Unreachable: unhandled observe type ${ye.observe}}`)}}delete(W,ge={}){return this.request("DELETE",W,ge)}get(W,ge={}){return this.request("GET",W,ge)}head(W,ge={}){return this.request("HEAD",W,ge)}jsonp(W,ge){return this.request("JSONP",W,{params:(new He).append(ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(W,ge={}){return this.request("OPTIONS",W,ge)}patch(W,ge,ye={}){return this.request("PATCH",W,Ae(ye,ge))}post(W,ge,ye={}){return this.request("POST",W,Ae(ye,ge))}put(W,ge,ye={}){return this.request("PUT",W,Ae(ye,ge))}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(P))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();class ze{constructor(G,W){this.next=G,this.interceptor=W}handle(G){return this.interceptor.intercept(G,this.next)}}const ee=new u.OlP("HTTP_INTERCEPTORS");let Ie=(()=>{class fe{intercept(W,ge){return ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const It=/^\)\]\}',?\n/;let yt=(()=>{class fe{constructor(W){this.xhrFactory=W}handle(W){if("JSONP"===W.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new re.y(ge=>{const ye=this.xhrFactory.build();if(ye.open(W.method,W.urlWithParams),W.withCredentials&&(ye.withCredentials=!0),W.headers.forEach((Qe,ot)=>ye.setRequestHeader(Qe,ot.join(","))),W.headers.has("Accept")||ye.setRequestHeader("Accept","application/json, text/plain, */*"),!W.headers.has("Content-Type")){const Qe=W.detectContentTypeHeader();null!==Qe&&ye.setRequestHeader("Content-Type",Qe)}if(W.responseType){const Qe=W.responseType.toLowerCase();ye.responseType="json"!==Qe?Qe:"text"}const Re=W.serializeBody();let se=null;const xe=()=>{if(null!==se)return se;const Qe=1223===ye.status?204:ye.status,ot=ye.statusText||"OK",Sn=new U(ye.getAllResponseHeaders()),Le=function(fe){return"responseURL"in fe&&fe.responseURL?fe.responseURL:/^X-Request-URL:/m.test(fe.getAllResponseHeaders())?fe.getResponseHeader("X-Request-URL"):null}(ye)||W.url;return se=new H({headers:Sn,status:Qe,statusText:ot,url:Le}),se},Ne=()=>{let{headers:Qe,status:ot,statusText:Sn,url:Le}=xe(),Ut=null;204!==ot&&(Ut=void 0===ye.response?ye.responseText:ye.response),0===ot&&(ot=Ut?200:0);let rn=ot>=200&&ot<300;if("json"===W.responseType&&"string"==typeof Ut){const Dr=Ut;Ut=Ut.replace(It,"");try{Ut=""!==Ut?JSON.parse(Ut):null}catch(nr){Ut=Dr,rn&&(rn=!1,Ut={error:nr,text:Ut})}}rn?(ge.next(new X({body:Ut,headers:Qe,status:ot,statusText:Sn,url:Le||void 0})),ge.complete()):ge.error(new ue({error:Ut,headers:Qe,status:ot,statusText:Sn,url:Le||void 0}))},St=Qe=>{const{url:ot}=xe(),Sn=new ue({error:Qe,status:ye.status||0,statusText:ye.statusText||"Unknown Error",url:ot||void 0});ge.error(Sn)};let Lt=!1;const zn=Qe=>{Lt||(ge.next(xe()),Lt=!0);let ot={type:lt.DownloadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(ot.total=Qe.total),"text"===W.responseType&&!!ye.responseText&&(ot.partialText=ye.responseText),ge.next(ot)},wt=Qe=>{let ot={type:lt.UploadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(ot.total=Qe.total),ge.next(ot)};return ye.addEventListener("load",Ne),ye.addEventListener("error",St),ye.addEventListener("timeout",St),ye.addEventListener("abort",St),W.reportProgress&&(ye.addEventListener("progress",zn),null!==Re&&ye.upload&&ye.upload.addEventListener("progress",wt)),ye.send(Re),ge.next({type:lt.Sent}),()=>{ye.removeEventListener("error",St),ye.removeEventListener("abort",St),ye.removeEventListener("load",Ne),ye.removeEventListener("timeout",St),W.reportProgress&&(ye.removeEventListener("progress",zn),null!==Re&&ye.upload&&ye.upload.removeEventListener("progress",wt)),ye.readyState!==ye.DONE&&ye.abort()}})}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.JF))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const gn=new u.OlP("XSRF_COOKIE_NAME"),Tt=new u.OlP("XSRF_HEADER_NAME");class it{}let mn=(()=>{class fe{constructor(W,ge,ye){this.doc=W,this.platform=ge,this.cookieName=ye,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const W=this.doc.cookie||"";return W!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,y.Mx)(W,this.cookieName),this.lastCookieString=W),this.lastToken}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.K0),u.LFG(u.Lbi),u.LFG(gn))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Cn=(()=>{class fe{constructor(W,ge){this.tokenService=W,this.headerName=ge}intercept(W,ge){const ye=W.url.toLowerCase();if("GET"===W.method||"HEAD"===W.method||ye.startsWith("http://")||ye.startsWith("https://"))return ge.handle(W);const Re=this.tokenService.getToken();return null!==Re&&!W.headers.has(this.headerName)&&(W=W.clone({headers:W.headers.set(this.headerName,Re)})),ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(it),u.LFG(Tt))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Rn=(()=>{class fe{constructor(W,ge){this.backend=W,this.injector=ge,this.chain=null}handle(W){if(null===this.chain){const ge=this.injector.get(ee,[]);this.chain=ge.reduceRight((ye,Re)=>new ze(ye,Re),this.backend)}return this.chain.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(x),u.LFG(u.zs3))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Ft=(()=>{class fe{static disable(){return{ngModule:fe,providers:[{provide:Cn,useClass:Ie}]}}static withOptions(W={}){return{ngModule:fe,providers:[W.cookieName?{provide:gn,useValue:W.cookieName}:[],W.headerName?{provide:Tt,useValue:W.headerName}:[]]}}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[Cn,{provide:ee,useExisting:Cn,multi:!0},{provide:it,useClass:mn},{provide:gn,useValue:"XSRF-TOKEN"},{provide:Tt,useValue:"X-XSRF-TOKEN"}]}),fe})(),gt=(()=>{class fe{}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[ie,{provide:P,useClass:Rn},yt,{provide:x,useExisting:yt}],imports:[[Ft.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),fe})()},476:(Ye,me,O)=>{"use strict";O.d(me,{deG:()=>__,tb:()=>My,AFp:()=>wy,ip1:()=>Pd,CZH:()=>Os,hGG:()=>cS,z2F:()=>xa,sBO:()=>eb,Sil:()=>Ra,_Vd:()=>Do,EJc:()=>Ty,SBq:()=>Oi,qLn:()=>es,vpe:()=>Pi,gxx:()=>ss,tBr:()=>qo,XFs:()=>se,OlP:()=>ln,zs3:()=>Vt,ZZ4:()=>Rl,aQg:()=>xl,soG:()=>Wl,YKP:()=>pm,v3s:()=>HA,h0i:()=>bo,PXZ:()=>kA,R0b:()=>Er,FiY:()=>$i,Lbi:()=>Sy,g9A:()=>Ay,Qsj:()=>U0,FYo:()=>Nl,JOm:()=>Ai,Tiy:()=>od,q3G:()=>un,tp0:()=>to,EAV:()=>KA,Rgc:()=>Ea,dDg:()=>Ry,DyG:()=>el,GfV:()=>sm,s_b:()=>kl,ifc:()=>Le,eFA:()=>Uy,G48:()=>OA,Gpc:()=>Fe,_c5:()=>rS,VLi:()=>TA,c2e:()=>Iy,zSh:()=>ua,wAp:()=>qe,vHH:()=>$e,EiD:()=>Tf,mCW:()=>ta,qzn:()=>Xo,JVY:()=>K_,pB0:()=>J_,eBb:()=>Z_,L6k:()=>Y_,LAX:()=>q_,cg1:()=>Kc,Tjo:()=>tS,kL8:()=>Ig,yhl:()=>Ef,dqk:()=>nt,sIi:()=>fa,CqO:()=>Lc,QGY:()=>Fc,F4k:()=>Vp,RDi:()=>Be,AaK:()=>Me,z3N:()=>ji,qOj:()=>Ec,TTD:()=>Li,_Bn:()=>tm,xp6:()=>hh,uIk:()=>wc,Tol:()=>rg,ekj:()=>jc,Suo:()=>ty,Xpm:()=>et,lG2:()=>rr,Yz7:()=>xt,cJS:()=>Ft,oAB:()=>yn,Yjl:()=>Yn,Y36:()=>pa,_UZ:()=>Lp,BQk:()=>xc,ynx:()=>Rc,qZA:()=>Nc,TgZ:()=>Pc,EpF:()=>kp,n5z:()=>Ho,Ikx:()=>zc,SDv:()=>Jg,QtT:()=>Qg,N_p:()=>Qc,pQV:()=>Xc,Zx4:()=>Xg,tHW:()=>Jc,LFG:()=>vn,$8M:()=>vu,NdJ:()=>kc,CRH:()=>ny,oxw:()=>jp,ALo:()=>Zm,xi3:()=>qm,Q6J:()=>Tc,s9C:()=>Uc,MGl:()=>bl,hYB:()=>Bc,DdM:()=>jm,VKq:()=>Hm,iGM:()=>Xm,MAs:()=>wp,CHM:()=>$a,LSH:()=>Ru,kYT:()=>zr,Udp:()=>$c,YNc:()=>bp,W1O:()=>sy,_uU:()=>cg,Oqu:()=>Gc,hij:()=>Al,AsE:()=>Wc,Gf:()=>ey});var y=O(23),u=O(5994),ce=O(5929),re=O(6149),te=O(9528),K=O(6889),P=O(8839),x=O(1776),U=O(9162),Y=O(4294),ae=O(4111),Ee=O(4297);function Pe(e,t){for(var n=[],r=2;r ${n} ${r} ${t} <=Actual]`))}function xt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ft(e){return{providers:e.providers||[],imports:e.imports||[]}}function gt(e){return tr(e,W)||tr(e,ye)}function tr(e,t){return e.hasOwnProperty(t)?e[t]:null}function G(e){return e&&(e.hasOwnProperty(ge)||e.hasOwnProperty(Re))?e[ge]:null}const W=ve({\u0275prov:ve}),ge=ve({\u0275inj:ve}),ye=ve({ngInjectableDef:ve}),Re=ve({ngInjectorDef:ve});var se=(()=>((se=se||{})[se.Default=0]="Default",se[se.Host=1]="Host",se[se.Self=2]="Self",se[se.SkipSelf=4]="SkipSelf",se[se.Optional=8]="Optional",se))();let xe;function St(e){const t=xe;return xe=e,t}function Lt(e,t,n){const r=gt(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&se.Optional?null:void 0!==t?t:void ze(Me(e),"Injector")}function wt(e){return{toString:e}.toString()}var Qe=(()=>((Qe=Qe||{})[Qe.OnPush=0]="OnPush",Qe[Qe.Default=1]="Default",Qe))(),Le=(()=>((Le=Le||{})[Le.Emulated=0]="Emulated",Le[Le.None=2]="None",Le[Le.ShadowDom=3]="ShadowDom",Le))();const Ut="undefined"!=typeof globalThis&&globalThis,rn="undefined"!=typeof window&&window,Dr="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,nr="undefined"!=typeof global&&global,nt=Ut||nr||rn||Dr,xn={},mt=[],cr=ve({\u0275cmp:ve}),br=ve({\u0275dir:ve}),Gr=ve({\u0275pipe:ve}),gi=ve({\u0275mod:ve}),Wr=ve({\u0275loc:ve}),In=ve({\u0275fac:ve}),Fn=ve({__NG_ELEMENT_ID__:ve});let Kn=0;function et(e){return wt(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Qe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||mt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Le.Emulated,id:"c",styles:e.styles||mt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,s=e.pipes;return r.id+=Kn++,r.inputs=Kr(e.inputs,n),r.outputs=Kr(e.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Tn):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(En):null,r})}function Tn(e){return qt(e)||function(e){return e[br]||null}(e)}function En(e){return function(e){return e[Gr]||null}(e)}const Ln={};function yn(e){return wt(()=>{const t={type:e.type,bootstrap:e.bootstrap||mt,declarations:e.declarations||mt,imports:e.imports||mt,exports:e.exports||mt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Ln[e.id]=e.type),t})}function zr(e,t){return wt(()=>{const n=Yt(e,!0);n.declarations=t.declarations||mt,n.imports=t.imports||mt,n.exports=t.exports||mt})}function Kr(e,t){if(null==e)return xn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const rr=et;function Yn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function qt(e){return e[cr]||null}function Yt(e,t){const n=e[gi]||null;if(!n&&!0===t)throw new Error(`Type ${Me(e)} does not have '\u0275mod' property.`);return n}function sn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Dn(e){return Array.isArray(e)&&!0===e[1]}function pr(e){return 0!=(8&e.flags)}function Mr(e){return 2==(2&e.flags)}function jn(e){return 1==(1&e.flags)}function Pt(e){return null!==e.template}function Ir(e){return 0!=(512&e[2])}function Pr(e,t){return e.hasOwnProperty(In)?e[In]:null}class Yi{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Li(){return ki}function ki(e){return e.type.prototype.ngOnChanges&&(e.setInput=gr),Nr}function Nr(){const e=vi(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===xn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function gr(e,t,n,r){const i=vi(e)||function(e,t){return e[Zi]=t}(e,{previous:xn,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],d=s[a];o[a]=new Yi(d&&d.currentValue,t,s===xn),e[r]=t}Li.ngInherit=!0;const Zi="__ngSimpleChanges__";function vi(e){return e[Zi]||null}let pe;function Be(e){pe=e}function Dt(){return void 0!==pe?pe:"undefined"!=typeof document?document:void 0}function m(e){return!!e.listen}const M={createRenderer:(e,t)=>Dt()};function we(e){for(;Array.isArray(e);)e=e[0];return e}function Qt(e,t){return we(t[e])}function zt(e,t){return we(t[e.index])}function Rr(e,t){return e.data[t]}function mr(e,t){return e[t]}function bn(e,t){const n=t[e];return sn(n)?n:n[0]}function so(e){return 4==(4&e[2])}function Qr(e){return 128==(128&e[2])}function Xr(e,t){return null==t?null:e[t]}function ao(e){e[18]=0}function ks(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const st={lFrame:Hs(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ba(){return st.bindingsEnabled}function _e(){return st.lFrame.lView}function vt(){return st.lFrame.tView}function $a(e){return st.lFrame.contextLView=e,e[8]}function pn(){let e=ja();for(;null!==e&&64===e.type;)e=e.parent;return e}function ja(){return st.lFrame.currentTNode}function co(){const e=st.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function xr(e,t){const n=st.lFrame;n.currentTNode=e,n.isParent=t}function Us(){return st.lFrame.isParent}function To(){st.lFrame.isParent=!1}function Oo(){return st.isInCheckNoChangesMode}function Po(e){st.isInCheckNoChangesMode=e}function Hn(){const e=st.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yr(){return st.lFrame.bindingIndex}function Vi(){return st.lFrame.bindingIndex++}function Fr(e){const t=st.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Bs(e){st.lFrame.inI18n=e}function au(e,t){const n=st.lFrame;n.bindingIndex=n.bindingRootIndex=e,$s(t)}function $s(e){st.lFrame.currentDirectiveIndex=e}function Ga(){return st.lFrame.currentQueryIndex}function fo(e){st.lFrame.currentQueryIndex=e}function uu(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wa(e,t,n){if(n&se.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&se.Host||(i=uu(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=st.lFrame=Ro();return r.currentTNode=t,r.lView=e,!0}function No(e){const t=Ro(),n=e[1];st.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ro(){const e=st.lFrame,t=null===e?null:e.child;return null===t?Hs(e):t}function Hs(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function za(){const e=st.lFrame;return st.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ui=za;function xo(){const e=za();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Gn(){return st.lFrame.selectedIndex}function ei(e){st.lFrame.selectedIndex=e}function Xt(){const e=st.lFrame;return Rr(e.tView,e.selectedIndex)}function ti(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[d]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Ji{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Bo(e,t,n){const r=m(e);let i=0;for(;it){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Ks=!0;function jo(e){const t=Ks;return Ks=e,t}let f=0;function l(e,t){const n=C(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,p(r.data,e),p(t,null),p(r.blueprint,null));const i=b(e,t),o=e.injectorIndex;if(Qa(i)){const s=Qi(i),a=Ei(i,t),d=a[1].data;for(let g=0;g<8;g++)t[o+g]=a[s+g]|d[s+g]}return t[o+8]=i,o}function p(e,t){e.push(0,0,0,0,0,0,0,0,t)}function C(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function b(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function R(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Fn)&&(r=n[Fn]),null==r&&(r=n[Fn]=f++);const i=255&r;t.data[e+(i>>5)]|=1<=0?255&t:kt:t}(n);if("function"==typeof o){if(!Wa(t,e,r))return r&se.Host?q(i,n,r):Se(t,n,r,i);try{const s=o(r);if(null!=s||r&se.Optional)return s;ze(n)}finally{Ui()}}else if("number"==typeof o){let s=null,a=C(e,t),d=-1,g=r&se.Host?t[16][6]:null;for((-1===a||r&se.SkipSelf)&&(d=-1===a?b(e,t):t[a+8],-1!==d&&Bi(r,!1)?(s=t[1],a=Qi(d),t=Ei(d,t)):a=-1);-1!==a;){const D=t[1];if(Xi(o,a,D.data)){const I=Ct(a,t,n,s,r,g);if(I!==at)return I}d=t[a+8],-1!==d&&Bi(r,t[1].data[a+8]===g)&&Xi(o,a,t)?(s=D,a=Qi(d),t=Ei(d,t)):a=-1}}}return Se(t,n,r,i)}const at={};function kt(){return new sr(pn(),_e())}function Ct(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],D=_r(a,s,n,null==r?Mr(a)&&Ks:r!=s&&0!=(3&a.type),i&se.Host&&o===a);return null!==D?or(t,s,D,a):at}function _r(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,d=e.directiveStart,D=o>>20,T=i?a+D:e.directiveEnd;for(let k=r?a:a+D;k=d&&j.type===n)return k}if(i){const k=s[d];if(k&&Pt(k)&&k.type===n)return d}return null}function or(e,t,n,r){let i=e[n];const o=t.data;if(function(e){return e instanceof Ji}(i)){const s=i;s.resolving&&function(e,t){throw new $e("200",`Circular dependency in DI detected for ${e}`)}(X(o[n]));const a=jo(s.canSeeViewProviders);s.resolving=!0;const d=s.injectImpl?St(s.injectImpl):null;Wa(e,r,se.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=ki(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==d&&St(d),jo(a),s.resolving=!1,Ui()}}return i}function Xi(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[In]||_u(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[In]||_u(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function _u(e){return Ke(e)?()=>{const t=_u(he(e));return t&&t()}:Pr(e)}function vu(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{const r=function(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(d,g,D){const I=d.hasOwnProperty(Wo)?d[Wo]:Object.defineProperty(d,Wo,{value:[]})[Wo];for(;I.length<=D;)I.push(null);return(I[D]=I[D]||[]).push(s),d}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class ln{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=xt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const __=new ln("AnalyzeForEntryComponents"),el=Function;function kr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Di(n,t):t(n))}function nl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function mo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vr(e,t,n){let r=Ko(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Eu(e,t){const n=Ko(e,t);if(n>=0)return e[1|n]}function Ko(e,t){return function(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i< ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Me(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(I_,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Yo]=null,e}const qo=Xs(go("Inject",e=>({token:e})),-1),$i=Xs(go("Optional"),8),to=Xs(go("SkipSelf"),4);let sl;function Qo(e){var t;return(null===(t=function(){if(void 0===sl&&(sl=null,nt.trustedTypes))try{sl=nt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sl}())||void 0===t?void 0:t.createHTML(e))||e}class _o{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class j_ extends _o{getTypeName(){return"HTML"}}class H_ extends _o{getTypeName(){return"Style"}}class G_ extends _o{getTypeName(){return"Script"}}class W_ extends _o{getTypeName(){return"URL"}}class z_ extends _o{getTypeName(){return"ResourceURL"}}function ji(e){return e instanceof _o?e.changingThisBreaksApplicationSecurity:e}function Xo(e,t){const n=Ef(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Ef(e){return e instanceof _o&&e.getTypeName()||null}function K_(e){return new j_(e)}function Y_(e){return new H_(e)}function Z_(e){return new G_(e)}function q_(e){return new W_(e)}function J_(e){return new z_(e)}function Df(e){const t=new X_(e);return function(){try{return!!(new window.DOMParser).parseFromString(Qo(""),"text/html")}catch(e){return!1}}()?new Q_(t):t}class Q_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Qo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class X_{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Qo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Qo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0ta(t.trim())).join(", ")}function bi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function na(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const wf=bi("area,br,col,hr,img,wbr"),Af=bi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sf=bi("rp,rt"),Tu=na(wf,na(Af,bi("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")),na(Sf,bi("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")),na(Sf,Af)),Ou=bi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pu=bi("srcset"),Mf=na(Ou,Pu,bi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bi("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")),rv=bi("script,style,template");class iv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Tu.hasOwnProperty(n))return this.sanitizedSomething=!0,!rv.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i"),!0}endElement(t){const n=t.nodeName.toLowerCase();Tu.hasOwnProperty(n)&&!wf.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(If(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const ov=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sv=/([^\#-~ |!])/g;function If(e){return e.replace(/&/g,"&").replace(ov,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(sv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ll;function Tf(e,t){let n=null;try{ll=ll||Df(e);let r=t?String(t):"";n=ll.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ll.getInertBodyElement(r)}while(r!==o);return Qo((new iv).sanitizeChildren(Nu(n)||n))}finally{if(n){const r=Nu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Nu(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var un=(()=>((un=un||{})[un.NONE=0]="NONE",un[un.HTML=1]="HTML",un[un.STYLE=2]="STYLE",un[un.SCRIPT=3]="SCRIPT",un[un.URL=4]="URL",un[un.RESOURCE_URL=5]="RESOURCE_URL",un))();function Ru(e){const t=function(){const e=_e();return e&&e[12]}();return t?t.sanitize(un.URL,e)||"":Xo(e,"URL")?ji(e):ta(H(e))}const Nf="__ngContext__";function Jn(e,t){e[Nf]=t}function Fu(e){const t=function(e){return e[Nf]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ul(e){return e.ngOriginalError}function wv(e,...t){e.error(...t)}class es{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=this._findContext(t),i=(e=t)&&e.ngErrorLogger||wv;var e;i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n),r&&i(this._console,"ERROR CONTEXT",r)}_findContext(t){return t?t.ngDebugContext||this._findContext(ul(t)):null}_findOriginalError(t){let n=t&&ul(t);for(;n&&ul(n);)n=ul(n);return n||null}}const Mv=/^>|^->||--!>|)/;const $f=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(nt))();function wi(e){return e instanceof Function?e():e}var Ai=(()=>((Ai=Ai||{})[Ai.Important=1]="Important",Ai[Ai.DashCase=2]="DashCase",Ai))();let ku;function Vu(e,t){return ku(e,t)}function oa(e){const t=e[3];return Dn(t)?t[3]:t}function Uu(e){return zf(e[13])}function Bu(e){return zf(e[4])}function zf(e){for(;null!==e&&!Dn(e);)e=e[4];return e}function ns(e,t,n,r,i){if(null!=r){let o,s=!1;Dn(r)?o=r:sn(r)&&(s=!0,r=r[0]);const a=we(r);0===e&&null!==n?null==i?Qf(t,n,a):vo(t,n,a,i||null,!0):1===e&&null!==n?vo(t,n,a,i||null,!0):2===e?oh(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,r,i){const o=n[7];o!==we(n)&&ns(t,e,r,o,i);for(let a=10;at.replace(Iv,"\u200b$1\u200b"))}(t))}function ju(e,t,n){return m(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Yf(e,t){const n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,ks(i,-1)),n.splice(r,1)}function Hu(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&Yf(i,r),t>0&&(e[n-1][4]=r[4]);const o=mo(e,10+t);!function(e,t){sa(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Zf(e,t){if(!(256&t[2])){const n=t[11];m(n)&&n.destroyNode&&sa(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Gu(e[1],e);for(;t;){let n=null;if(sn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)sn(t)&&Gu(t[1],t),t=t[3];null===t&&(t=e),sn(t)&&Gu(t[1],t),n=t&&t[4]}t=n}}(t)}}function Gu(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[i=g]():r[i=-g].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;oo?"":i[I+1].toLowerCase();const k=8&r?T:null;if(k&&-1!==lh(k,g,0)||2&r&&g!==T){if(ri(r))return!1;s=!0}}}}else{if(!s&&!ri(r)&&!ri(d))return!1;if(s&&ri(d))continue;s=!1,r=d|1&r}}return ri(r)||s}function ri(e){return 0==(1&e)}function Xv(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!ri(s)&&(t+=fh(o,i),i=""),r=s,o=o||!ri(r);n++}return""!==i&&(t+=fh(o,i)),t}const dt={};function hh(e){ph(vt(),_e(),Gn()+e,Oo())}function ph(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&ho(t,o,n)}else{const o=e.preOrderHooks;null!==o&&Vo(t,o,0,n)}ei(n)}function pl(e,t){return e<<17|t<<2}function ii(e){return e>>17&32767}function Zu(e){return 2|e}function Hi(e){return(131068&e)>>2}function qu(e,t){return-131069&e|t<<2}function Ju(e){return 1|e}function wh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&ph(e,t,20,Oo()),n(r,i)}finally{ei(o)}}function Sh(e,t,n){if(pr(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=d&&a.push(d),a.push(r,i,s)}}function xh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function OC(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&uc(n)}}function uc(e){for(let r=Uu(e);null!==r;r=Bu(r))for(let i=10;i0&&uc(o)}const n=e[1].components;if(null!==n)for(let r=0;r0&&uc(i)}}function kC(e,t){const n=bn(t,e),r=n[1];(function(e,t){for(let n=t.length;nPromise.resolve(null))();function Bh(e){return e[7]||(e[7]=[])}function $h(e){return e.cleanup||(e.cleanup=[])}function Hh(e,t){const n=e[9],r=n?n.get(es,null):null;r&&r.handleError(t)}function Gh(e,t,n,r,i){for(let o=0;othis.processProvider(a,t,n)),Di([t],a=>this.processInjectorType(a,[],o)),this.records.set(ss,as(void 0,this));const s=this.records.get(ua);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:Me(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Js,r=se.Default){this.assertNotDestroyed();const i=Zo(this),o=St(void 0);try{if(!(r&se.SkipSelf)){let a=this.records.get(t);if(void 0===a){const d=("function"==typeof(e=t)||"object"==typeof e&&e instanceof ln)&>(t);a=d&&this.injectableDefInScope(d)?as(gc(t),ca):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&se.Self?zh():this.parent).get(t,n=r&se.Optional&&n===Js?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Yo]=s[Yo]||[]).unshift(Me(t)),i)throw s;return hf(s,t,"R3InjectorError",this.source)}throw s}finally{St(o),Zo(i)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(Me(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=he(t)))return!1;let i=G(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=G(o)),null==i)return!1;if(null!=i.imports&&!a){let D;r.push(s);try{Di(i.imports,I=>{this.processInjectorType(I,n,r)&&(void 0===D&&(D=[]),D.push(I))})}finally{}if(void 0!==D)for(let I=0;Ithis.processProvider(j,T,k||mt))}}this.injectorDefTypes.add(s);const d=Pr(s)||(()=>new s);this.records.set(s,as(d,ca));const g=i.providers;if(null!=g&&!a){const D=t;Di(g,I=>this.processProvider(I,D,g))}return void 0!==o&&void 0!==t.providers}processProvider(t,n,r){let i=ls(t=he(t))?t:he(t&&t.provide);const o=Zh(e=t)?as(void 0,e.useValue):as(Yh(e),ca);var e;if(ls(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=as(void 0,ca,!0),s.factory=()=>yo(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,n){return n.value===ca&&(n.value=WC,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=he(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function gc(e){const t=gt(e),n=null!==t?t.factory:Pr(e);if(null!==n)return n;if(e instanceof ln)throw new Error(`Token ${Me(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=function(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new Error("unreachable")}function Yh(e,t,n){let r;if(ls(e)){const i=he(e);return Pr(i)||gc(i)}if(Zh(e))r=()=>he(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...yo(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>vn(he(e.useExisting));else{const i=he(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Pr(i)||gc(i);r=()=>new i(...yo(e.deps))}return r}function as(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zh(e){return null!==e&&"object"==typeof e&&Au in e}function ls(e){return"function"==typeof e}const qh=function(e,t,n){return function(e,t=null,n=null,r){const i=Kh(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};class Vt{static create(t,n){return Array.isArray(t)?qh(t,n,""):qh(t.providers,t.parent,t.name||"")}}function pE(e,t){ti(Fu(e)[1],pn())}function Ec(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Pt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const s=e;s.inputs=Dc(e.inputs),s.declaredInputs=Dc(e.declaredInputs),s.outputs=Dc(e.outputs);const a=i.hostBindings;a&&_E(e,a);const d=i.viewQuery,g=i.contentQueries;if(d&&mE(e,d),g&&yE(e,g),He(e.inputs,i.inputs),He(e.declaredInputs,i.declaredInputs),He(e.outputs,i.outputs),Pt(i)&&i.data.animation){const D=e.data;D.animation=(D.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=$o(i.hostAttrs,n=$o(n,i.hostAttrs))}}(r)}function Dc(e){return e===xn?{}:e===mt?[]:e}function mE(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function yE(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,o)=>{t(r,i,o),n(r,i,o)}:t}function _E(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}Vt.THROW_IF_NOT_FOUND=Js,Vt.NULL=new Wh,Vt.\u0275prov=xt({token:Vt,providedIn:"any",factory:()=>vn(ss)}),Vt.__NG_ELEMENT_ID__=-1;let Cl=null;function us(){if(!Cl){const e=nt.Symbol;if(e&&e.iterator)Cl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(we(Je[r.index])):r.index;if(m(n)){let Je=null;if(!a&&d&&(Je=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;od?a[d]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==Je)(Je.__ngLastListenerFn__||Je).__ngNextListenerFn__=o,Je.__ngLastListenerFn__=o,k=!1;else{o=Vc(r,t,I,o,!1);const pt=n.listen(Ce,i,o);T.push(o,pt),D&&D.push(i,ke,de,de+1)}}else o=Vc(r,t,I,o,!0),Ce.addEventListener(i,o,s),T.push(o),D&&D.push(i,ke,de,s)}else o=Vc(r,t,I,o,!1);const j=r.outputs;let J;if(k&&null!==j&&(J=j[i])){const z=J.length;if(z)for(let Ce=0;Ce0;)t=t[15],e--;return t}(e,st.lFrame.contextLView))[8]}(e)}function Uc(e,t,n){return bl(e,"",t,"",n),Uc}function bl(e,t,n,r,i){const o=_e(),s=ds(o,t,n,r);return s!==dt&&Cr(vt(),Xt(),o,e,s,o[11],i,!1),bl}function Bc(e,t,n,r,i,o,s){const a=_e(),d=fs(a,t,n,r,i,o);return d!==dt&&Cr(vt(),Xt(),a,e,d,a[11],s,!1),Bc}function qp(e,t,n,r,i){const o=e[n+1],s=null===t;let a=r?ii(o):Hi(o),d=!1;for(;0!==a&&(!1===d||s);){const D=e[a+1];iD(e[a],t)&&(d=!0,e[a+1]=r?Ju(D):Zu(D)),a=r?ii(D):Hi(D)}d&&(e[n+1]=r?Zu(o):Ju(o))}function iD(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ko(e,t)>=0}const An={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jp(e){return e.substring(An.key,An.keyEnd)}function Qp(e,t){const n=An.textEnd;return n===t?-1:(t=An.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,An.key=t,n),Cs(e,t,n))}function Cs(e,t,n){for(;t=0;n=Qp(t,n))vr(e,Jp(t),!0)}function ai(e,t,n,r){const i=_e(),o=vt(),s=Fr(2);o.firstUpdatePass&&og(o,e,s,r),t!==dt&&Qn(i,s,t)&&ag(o,o.data[Gn()],i,i[11],e,i[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Me(ji(e)))),e}(t,n),r,s)}function ig(e,t){return t>=e.expandoStartIndex}function og(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[Gn()],s=ig(e,n);ug(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const i=function(e){const t=st.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=ga(n=Hc(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Hc(i,e,t,n,r),null===o){let d=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Hi(r))return e[ii(r)]}(e,t,r);void 0!==d&&Array.isArray(d)&&(d=Hc(null,e,t,d[1],r),d=ga(d,t.attrs,r),function(e,t,n,r){e[ii(n?t.classBindings:t.styleBindings)]=r}(e,t,r,d))}else o=function(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(g=!0)}else D=n;if(i)if(0!==d){const T=ii(e[a+1]);e[r+1]=pl(T,a),0!==T&&(e[T+1]=qu(e[T+1],r)),e[a+1]=function(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=pl(a,0),0!==a&&(e[a+1]=qu(e[a+1],r)),a=r;else e[r+1]=pl(d,0),0===a?a=r:e[d+1]=qu(e[d+1],r),d=r;g&&(e[r+1]=Zu(e[r+1])),qp(e,D,r,!0),qp(e,D,r,!1),function(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ko(o,t)>=0&&(n[r+1]=Ju(n[r+1]))}(t,D,e,r,o),s=pl(a,d),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function Hc(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const d=e[i],g=Array.isArray(d),D=g?d[1]:d,I=null===D;let T=n[i+1];T===dt&&(T=I?mt:void 0);let k=I?Eu(T,r):D===r?T:void 0;if(g&&!wl(k)&&(k=Eu(d,r)),wl(k)&&(a=k,s))return a;const j=e[i+1];i=s?ii(j):Hi(j)}if(null!==t){let d=o?t.residualClasses:t.residualStyles;null!=d&&(a=Eu(d,r))}return a}function wl(e){return void 0!==e}function ug(e,t){return 0!=(e.flags&(t?16:32))}function cg(e,t=""){const n=_e(),r=vt(),i=e+20,o=r.firstCreatePass?rs(r,i,1,t,null):r.data[i],s=n[i]=$u(n[11],t);fl(r,n,s,o),xr(o,!1)}function Gc(e){return Al("",e,""),Gc}function Al(e,t,n){const r=_e(),i=ds(r,e,t,n);return i!==dt&&Wi(r,Gn(),i),Al}function Wc(e,t,n,r,i){const o=_e(),s=fs(o,e,t,n,r,i);return s!==dt&&Wi(o,Gn(),s),Wc}function zc(e,t,n){const r=_e();return Qn(r,Vi(),t)&&Cr(vt(),Xt(),r,e,t,r[11],n,!0),zc}const Eo=void 0;var VD=["en",[["a","p"],["AM","PM"],Eo],[["AM","PM"],Eo,Eo],[["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"]],Eo,[["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"]],Eo,[["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}",Eo,"{1} 'at' {0}",Eo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Es={};function Kc(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Tg(t);if(n)return n;const r=t.split("-")[0];if(n=Tg(r),n)return n;if("en"===r)return VD;throw new Error(`Missing locale data for the locale "${e}".`)}function Ig(e){return Kc(e)[qe.PluralCase]}function Tg(e){return e in Es||(Es[e]=nt.ng&&nt.ng.common&&nt.ng.common.locales&&nt.ng.common.locales[e]),Es[e]}var qe=(()=>((qe=qe||{})[qe.LocaleId=0]="LocaleId",qe[qe.DayPeriodsFormat=1]="DayPeriodsFormat",qe[qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",qe[qe.DaysFormat=3]="DaysFormat",qe[qe.DaysStandalone=4]="DaysStandalone",qe[qe.MonthsFormat=5]="MonthsFormat",qe[qe.MonthsStandalone=6]="MonthsStandalone",qe[qe.Eras=7]="Eras",qe[qe.FirstDayOfWeek=8]="FirstDayOfWeek",qe[qe.WeekendRange=9]="WeekendRange",qe[qe.DateFormat=10]="DateFormat",qe[qe.TimeFormat=11]="TimeFormat",qe[qe.DateTimeFormat=12]="DateTimeFormat",qe[qe.NumberSymbols=13]="NumberSymbols",qe[qe.NumberFormats=14]="NumberFormats",qe[qe.CurrencyCode=15]="CurrencyCode",qe[qe.CurrencySymbol=16]="CurrencySymbol",qe[qe.CurrencyName=17]="CurrencyName",qe[qe.Currencies=18]="Currencies",qe[qe.Directionality=19]="Directionality",qe[qe.PluralCase=20]="PluralCase",qe[qe.ExtraData=21]="ExtraData",qe))();const BD=["zero","one","two","few","many"],Sl="en-US",Ml={marker:"element"},Il={marker:"ICU"};var cn=(()=>((cn=cn||{})[cn.SHIFT=2]="SHIFT",cn[cn.APPEND_EAGERLY=1]="APPEND_EAGERLY",cn[cn.COMMENT=2]="COMMENT",cn))();let Og=Sl;function Yc(e){(function(e,t){null==e&&it(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Og=e.toLowerCase().replace(/_/g,"-"))}function Pg(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?th(e,0,n):we(n[i])}function Ng(e,t,n,r,i){const o=t.insertBeforeIndex;if(Array.isArray(o)){let s=r,a=null;if(3&t.type||(a=s,s=i),null!==s&&0==(2&t.flags))for(let d=1;d1)for(let n=e.length-2;n>=0;n--){const r=e[n];xg(r)||GD(r,t)&&null===WD(r)&&zD(r,t.index)}}function xg(e){return!(64&e.type)}function GD(e,t){return xg(t)||e.index>t.index}function WD(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function zD(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(rh(Pg,Ng),e.insertBeforeIndex=t)}function ma(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function ZD(e,t,n){const r=ic(e,n,64,null,null);return Rg(t,r),r}function Tl(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Fg(e){return e>>>17}function Lg(e){return(131070&e)>>>1}let ya=0,_a=0;function Vg(e,t,n,r){const i=n[11];let s,o=null;for(let a=0;a>>1,n),null,null,k,j,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${d}"`)}else switch(d){case Il:const g=t[++a],D=t[++a];null===n[D]&&Jn(n[D]=Lv(i,g),n);break;case Ml:const I=t[++a],T=t[++a];null===n[T]&&Jn(n[T]=ju(i,I,null),n)}}}function Ug(e,t,n,r,i){for(let o=0;o>>2;switch(3&D){case 1:const T=n[++g],k=n[++g],j=e.data[I];"string"==typeof j?lc(t[11],t[I],null,j,T,d,k):Cr(e,j,t,T,d,t[11],k,!1);break;case 0:const J=t[I];null!==J&&Kf(t[11],J,d);break;case 2:e0(e,ma(e,I),t,d);break;case 3:Bg(e,ma(e,I),r,t)}}}}else{const d=n[o+1];if(d>0&&3==(3&d)){const D=ma(e,d>>>2);t[D.currentCaseLViewIndex]<0&&Bg(e,D,r,t)}}o+=a}}function Bg(e,t,n,r){let i=r[t.currentCaseLViewIndex];if(null!==i){let o=ya;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),Ug(e,r,t.update[i],n,o)}}function e0(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=Ig(t)(parseInt(e,10)),r=BD[n];return void 0!==r?r:"other"}(t,Og);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(Tl(t,n)!==i&&($g(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const s=n[t.anchorIdx];s&&Vg(e,t.create[i],n,s)}}function $g(e,t,n){let r=Tl(t,n);if(null!==r){const i=t.remove[r];for(let o=0;o0){const a=Qt(s,n);null!==a&&oh(n[11],a)}else $g(e,ma(e,~s),n)}}}function n0(){const e=[];let n,r,t=-1;function o(a,d){t=0;const g=Tl(a,d);r=null!==g?a.remove[g]:mt}function s(){if(t0?n[a]:(e.push(t,r),o(n[1].data[~a],n),s())}return 0===e.length?null:(r=e.pop(),t=e.pop(),s())}return function(a,d){for(n=d;e.length;)e.pop();return o(a.value,d),s}}const Ol=/\ufffd(\d+):?\d*\ufffd/gi,i0=/\ufffd(\d+)\ufffd/,Hg=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,o0=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,s0=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,a0=/\uE500/g;function Gg(e,t,n,r,i,o,s){const a=is(e,r,1,null);let d=a<n.length&&n.push(d)}return{type:r,mainBinding:i,cases:t,values:n}}function Zc(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(e);){const a=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const d=e.substring(t,a);Hg.test(d)?r.push(g0(d)):r.push(d),t=a+1}}else{if(0==n.length){const d=e.substring(t,a);r.push(d),t=a+1}n.push("{")}}const s=e.substring(t);return r.push(s),r}function m0(e,t,n,r,i,o,s,a){const d=[],g=[],D=[];t.cases.push(o),t.create.push(d),t.remove.push(g),t.update.push(D);const T=Df(Dt()).getInertBodyElement(s),k=Nu(T)||T;return k?Yg(e,t,n,r,d,g,D,k,i,a,0):0}function Yg(e,t,n,r,i,o,s,a,d,g,D){let I=0,T=a.firstChild;for(;T;){const k=is(e,n,1,null);switch(T.nodeType){case Node.ELEMENT_NODE:const j=T,J=j.tagName.toLowerCase();if(Tu.hasOwnProperty(J)){qc(i,Ml,J,d,k),e.data[k]=J;const ke=j.attributes;for(let Je=0;Je>>cn.SHIFT;let I=e[D];null===I&&(I=e[D]=d?i.createComment(a):$u(i,a)),g&&null!==n&&vo(i,n,I,r,!1)}})(i,d.create,D,a&&8&a.type?i[a.index]:null),Bs(!0)}function Qc(){Bs(!1)}function Jg(e,t,n){Jc(e,t,n),Qc()}function Xc(e){return function(e){e&&(ya|=1<0){const r=e.data[n];Ug(e,t,Array.isArray(r)?r:r.update,yr()-_a-1,ya)}ya=0,_a=0}(vt(),_e(),e+20)}function Xg(e,t={}){return function(e,t={}){let n=e;if(E0.test(e)){const r={},i=[0];n=n.replace(D0,(o,s,a)=>{const d=s||a,g=r[d]||[];if(g.length||(d.split("|").forEach(J=>{const z=J.match(M0),Ce=z?parseInt(z[1],10):0,de=S0.test(J);g.push([Ce,de,J])}),r[d]=g),!g.length)throw new Error(`i18n postprocess: unmatched placeholder - ${d}`);const D=i[i.length-1];let I=0;for(let J=0;Jt.hasOwnProperty(o)?`${i}${t[o]}${d}`:r),n=n.replace(w0,(r,i)=>t.hasOwnProperty(i)?t[i]:r),n=n.replace(A0,(r,i)=>{if(t.hasOwnProperty(i)){const o=t[i];if(!o.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${i}`);return o.shift()}return r})),n}(e,t)}function ed(e,t,n,r,i){if(e=he(e),Array.isArray(e))for(let o=0;o>20;if(ls(e)||!e.multi){const k=new Ji(d,i,pa),j=nd(a,t,i?D:D+T,I);-1===j?(R(l(g,s),o,a),td(o,e,t.length),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(k),s.push(k)):(n[j]=k,s[j]=k)}else{const k=nd(a,t,D+T,I),j=nd(a,t,D,D+T),J=k>=0&&n[k],z=j>=0&&n[j];if(i&&!z||!i&&!J){R(l(g,s),o,a);const Ce=function(e,t,n,r,i){const o=new Ji(e,n,pa);return o.multi=[],o.index=t,o.componentProviders=0,em(o,i,r&&!n),o}(i?N0:P0,n.length,i,r,d);!i&&z&&(n[j].providerFactory=Ce),td(o,e,t.length,0),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(Ce),s.push(Ce)}else td(o,e,k>-1?k:j,em(n[i?j:k],d,!i&&r));!i&&r&&z&&n[j].componentProviders++}}}function td(e,t,n,r){const i=ls(t);if(i||function(e){return!!e.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const d=a.indexOf(n);-1===d?a.push(n,[r,s]):a[d+1].push(r,s)}else a.push(n,s)}}}function em(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function nd(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>function(e,t,n){const r=vt();if(r.firstCreatePass){const i=Pt(e);ed(n,r.data,r.blueprint,i,!0),ed(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class nm{}const im="ngComponent";class F0{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${Me(e)}. Did you add it to @NgModule.entryComponents?`);return t[im]=e,t}(t)}}class Do{}function Pl(...e){}function bs(e,t){return new Oi(zt(e,t))}Do.NULL=new F0;const V0=function(){return bs(pn(),_e())};let Oi=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=V0,e})();function om(e){return e instanceof Oi?e.nativeElement:e}class Nl{}let U0=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>$0(),e})();const $0=function(){const e=_e(),n=bn(pn().index,e);return function(e){return e[11]}(sn(n)?n:e)};let od=(()=>{class e{}return e.\u0275prov=xt({token:e,providedIn:"root",factory:()=>null}),e})();class sm{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const am=new sm("12.2.4");class lm{constructor(){}supports(t){return fa(t)}create(t){return new W0(t)}}const G0=(e,t)=>t;class W0{constructor(t){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=t||G0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new z0(n,r),o,i),t}_verifyReinsertion(t,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new um),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new um),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class z0{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class K0{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class um{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new K0,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cm(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new Z0(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class Z0{constructor(t){this.key=t,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 fm(){return new Rl([new lm])}let Rl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||fm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:fm}),e})();function hm(){return new xl([new dm])}let xl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||hm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:hm}),e})();function Fl(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(we(o)),Dn(o))for(let a=10;a-1&&(Hu(t,r),mo(n,r))}this._attachedToViewContainer=!1}Zf(this._lView[1],this._lView)}onDestroy(t){Oh(this._lView[1],this._lView,null,t)}markForCheck(){cc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){fc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Po(!0);try{fc(e,t,n)}finally{Po(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,sa(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class J0 extends Ca{constructor(t){super(t),this._view=t}detectChanges(){Uh(this._view)}checkNoChanges(){!function(e){Po(!0);try{Uh(e)}finally{Po(!1)}}(this._view)}get context(){return null}}const X0=function(e){return function(e,t,n){if(Mr(e)&&!n){const r=bn(e.index,t);return new Ca(r,r)}return 47&e.type?new Ca(t[16],t):null}(pn(),_e(),16==(16&e))};let eb=(()=>{class e{}return e.__NG_ELEMENT_ID__=X0,e})();const rb=[new dm],ob=new Rl([new lm]),sb=new xl(rb),lb=function(){return Ll(pn(),_e())};let Ea=(()=>{class e{}return e.__NG_ELEMENT_ID__=lb,e})();const ub=Ea,cb=class extends ub{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=aa(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(n)),la(n,r,t),new Ca(r)}};function Ll(e,t){return 4&e.type?new cb(t,e,bs(e,t)):null}class bo{}class pm{}const hb=function(){return ym(pn(),_e())};let kl=(()=>{class e{}return e.__NG_ELEMENT_ID__=hb,e})();const gb=kl,gm=class extends gb{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return bs(this._hostTNode,this._hostLView)}get injector(){return new sr(this._hostTNode,this._hostLView)}get parentInjector(){const t=b(this._hostTNode,this._hostLView);if(Qa(t)){const n=Ei(t,this._hostLView),r=Qi(t);return new sr(n[1].data[r+8],n)}return new sr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=mm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const i=t.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(t,n,r,i,o){const s=r||this.parentInjector;if(!o&&null==t.ngModule&&s){const d=s.get(bo,null);d&&(o=d)}const a=t.create(s,i,void 0,o);return this.insert(a.hostView,n),a}insert(t,n){const r=t._lView,i=r[1];if(Dn(r[3])){const D=this.indexOf(t);if(-1!==D)this.detach(D);else{const I=r[3],T=new gm(I,I[6],I[3]);T.detach(T.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;!function(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r$f});class Um extends nm{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(iC).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Vm(this.componentDef.inputs)}get outputs(){return Vm(this.componentDef.outputs)}create(t,n,r,i){const o=(i=i||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const o=e.get(n,Ms,i);return o!==Ms||r===Ms?o:t.get(n,r,i)}}}(t,i.injector):t,s=o.get(Nl,M),a=o.get(od,null),d=s.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",D=r?function(e,t,n){if(m(e))return e.selectRootElement(t,n===Le.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(d,r,this.componentDef.encapsulation):ju(s.createRenderer(null,this.componentDef),g,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(g)),I=this.componentDef.onPush?576:528,T=function(e,t){return{components:[],scheduler:e||$f,clean:jC,playerHandler:t||null,flags:0}}(),k=yl(0,null,null,1,0,null,null,null,null,null),j=aa(null,k,T,I,null,null,s,d,a,o);let J,z;No(j);try{const Ce=function(e,t,n,r,i,o){const s=n[1];n[20]=e;const d=rs(s,20,2,"#host",null),g=d.mergedAttrs=t.hostAttrs;null!==g&&(vl(d,g,!0),null!==e&&(Bo(i,e,g),null!==d.classes&&Yu(i,e,d.classes),null!==d.styles&&ah(i,e,d.styles)));const D=r.createRenderer(e,t),I=aa(n,Mh(t),null,t.onPush?64:16,n[20],d,r,D,o||null,null);return s.firstCreatePass&&(R(l(d,n),s,t.type),Fh(s,d),Lh(d,n.length,1)),_l(n,I),n[20]=I}(D,this.componentDef,j,s,d);if(D)if(r)Bo(d,D,["ng-version",am.full]);else{const{attrs:de,classes:ke}=function(e){const t=[],n=[];let r=1,i=2;for(;r0&&Yu(d,D,ke.join(" "))}if(z=Rr(k,20),void 0!==n){const de=z.projection=[];for(let ke=0;ked(s,t)),t.contentQueries){const d=pn();t.contentQueries(1,s,d.directiveStart)}const a=pn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ei(a.index),Rh(n[1],a,0,a.directiveStart,a.directiveEnd,t),xh(t,s)),s}(Ce,this.componentDef,j,T,[pE]),la(k,j,null)}finally{xo()}return new pw(this.componentType,J,bs(z,j),j,z)}}class pw extends class{}{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new J0(i),this.componentType=t}get injector(){return new sr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Is=new Map;class yw extends bo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new km(this);const r=Yt(t),i=t[Wr]||null;i&&Yc(i),this._bootstrapComponents=wi(r.bootstrap),this._r3Injector=Kh(t,n,[{provide:bo,useValue:this},{provide:Do,useValue:this.componentFactoryResolver}],Me(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Vt.THROW_IF_NOT_FOUND,r=se.Default){return t===Vt||t===bo||t===ss?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class vd extends pm{constructor(t){super(),this.moduleType=t,null!==Yt(t)&&function(e){const t=new Set;!function n(r){const i=Yt(r,!0),o=i.id;null!==o&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${Me(t)} vs ${Me(t.name)}`)}(o,Is.get(o),r),Is.set(o,r));const s=wi(i.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new yw(this.moduleType,t)}}function jm(e,t,n){const r=Hn()+e,i=_e();return i[r]===dt?Mi(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function Hm(e,t,n,r){return function(e,t,n,r,i,o){const s=t+n;return Qn(e,s,i)?Mi(e,s+1,o?r.call(o,i):r(i)):Ta(e,s+1)}(_e(),Hn(),e,t,n,r)}function Ta(e,t){const n=e[t];return n===dt?void 0:n}function Zm(e,t){const n=vt();let r;const i=e+20;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new $e("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Pr(r.type)),s=St(pa);try{const a=jo(!1),d=o();return jo(a),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_e(),i,d),d}finally{St(s)}}function qm(e,t,n,r){const i=e+20,o=_e(),s=mr(o,i);return function(e,t){si.isWrapped(t)&&(t=si.unwrap(t),e[yr()]=dt);return t}(o,function(e,t){return e[1].data[t].pure}(o,i)?function(e,t,n,r,i,o,s){const a=t+n;return Co(e,a,i,o)?Mi(e,a+2,s?r.call(s,i,o):r(i,o)):Ta(e,a+2)}(o,Hn(),t,s.transform,n,r,s):s.transform(n,r))}function Cd(e){return t=>{setTimeout(e,void 0,t)}}const Pi=class extends K.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,o,s;let a=t,d=n||(()=>null),g=r;if(t&&"object"==typeof t){const I=t;a=null===(i=I.next)||void 0===i?void 0:i.bind(I),d=null===(o=I.error)||void 0===o?void 0:o.bind(I),g=null===(s=I.complete)||void 0===s?void 0:s.bind(I)}this.__isAsync&&(d=Cd(d),a&&(a=Cd(a)),g&&(g=Cd(g)));const D=super.subscribe({next:a,error:d,complete:g});return t instanceof P.w0&&t.add(D),D}};function Nw(){return this._results[us()]()}class jl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=us(),r=jl.prototype;r[n]||(r[n]=Nw)}get changes(){return this._changes||(this._changes=new Pi)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=kr(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0)r.push(s[a/2]);else{const g=o[a+1],D=t[-d];for(let I=10;I{class e{constructor(n){this.appInits=n,this.resolve=Pl,this.reject=Pl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:d})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(vn(Pd,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const wy=new ln("AppId"),hA={provide:wy,useFactory:function(){return`${Nd()}${Nd()}${Nd()}`},deps:[]};function Nd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ay=new ln("Platform Initializer"),Sy=new ln("Platform ID"),My=new ln("appBootstrapListener");let Iy=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const Wl=new ln("LocaleId"),Ty=new ln("DefaultCurrencyCode");class gA{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Rd=function(e){return new vd(e)},mA=Rd,yA=function(e){return Promise.resolve(Rd(e))},Oy=function(e){const t=Rd(e),r=wi(Yt(e).declarations).reduce((i,o)=>{const s=qt(o);return s&&i.push(new Um(s)),i},[]);return new gA(t,r)},_A=Oy,vA=function(e){return Promise.resolve(Oy(e))};let Ra=(()=>{class e{constructor(){this.compileModuleSync=mA,this.compileModuleAsync=yA,this.compileModuleAndAllComponentsSync=_A,this.compileModuleAndAllComponentsAsync=vA}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const DA=(()=>Promise.resolve(0))();function xd(e){"undefined"==typeof Zone?DA.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Er{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pi(!1),this.onMicrotaskEmpty=new Pi(!1),this.onStable=new Pi(!1),this.onError=new Pi(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let e=nt.requestAnimationFrame,t=nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(nt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ld(e),e.isCheckStableRunning=!0,Fd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ld(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return Py(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Ny(e)}},onInvoke:(n,r,i,o,s,a,d)=>{try{return Py(e),n.invoke(i,o,s,a,d)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ny(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Ld(e),Fd(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Er.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Er.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,wA,Pl,Pl);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const wA={};function Fd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ld(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Py(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ny(e){e._nesting--,Fd(e)}class MA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pi,this.onMicrotaskEmpty=new Pi,this.onStable=new Pi,this.onError=new Pi}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}let Ry=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Er.assertNotInAngularZone(),xd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())xd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(vn(Er))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})(),xy=(()=>{class e{constructor(){this._applications=new Map,kd.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return kd.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();class IA{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function TA(e){kd=e}let kd=new IA,Fy=!0,Ly=!1;function OA(){if(Ly)throw new Error("Cannot enable prod mode after platform setup.");Fy=!1}let di;const Vy=new ln("AllowMultipleToken");class kA{constructor(t,n){this.name=t,this.token=n}}function Uy(e,t,n=[]){const r=`Platform: ${t}`,i=new ln(r);return(o=[])=>{let s=By();if(!s||s.injector.get(Vy,!1))if(e)e(n.concat(o).concat({provide:i,useValue:!0}));else{const a=n.concat(o).concat({provide:i,useValue:!0},{provide:ua,useValue:"platform"});!function(e){if(di&&!di.destroyed&&!di.injector.get(Vy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");di=e.get($y);const t=e.get(Ay,null);t&&t.forEach(n=>n())}(Vt.create({providers:a,name:r}))}return function(e){const t=By();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function By(){return di&&!di.destroyed?di:null}let $y=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(e,t){let n;return n="noop"===e?new MA:("zone.js"===e?void 0:e)||new Er({enableLongStackTrace:(Ly=!0,Fy),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),d=[{provide:Er,useValue:a}];return a.run(()=>{const g=Vt.create({providers:d,parent:this.injector,name:n.moduleType.name}),D=n.create(g),I=D.injector.get(es,null);if(!I)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const T=a.onError.subscribe({next:k=>{I.handleError(k)}});D.onDestroy(()=>{Vd(this._modules,D),T.unsubscribe()})}),function(e,t,n){try{const r=n();return Fc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(I,a,()=>{const T=D.injector.get(Os);return T.runInitializers(),T.donePromise.then(()=>(Yc(D.injector.get(Wl,Sl)||Sl),this._moduleDoBootstrap(D),D))})})}bootstrapModule(n,r=[]){const i=jy({},r);return function(e,t,n){const r=new vd(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(xa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${Me(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(vn(Vt))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function jy(e,t){return Array.isArray(t)?t.reduce(jy,e):Object.assign(Object.assign({},e),t)}let xa=(()=>{class e{constructor(n,r,i,o,s){this._zone=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new x.y(g=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{g.next(this._stable),g.complete()})}),d=new x.y(g=>{let D;this._zone.runOutsideAngular(()=>{D=this._zone.onStable.subscribe(()=>{Er.assertNotInAngularZone(),xd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,g.next(!0))})})});const I=this._zone.onUnstable.subscribe(()=>{Er.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{g.next(!1)}))});return()=>{D.unsubscribe(),I.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t{this.detachView(a.hostView),Vd(this.components,a),D&&D.unregisterApplication(d)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Vd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(My,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(vn(Er),vn(Vt),vn(es),vn(Do),vn(Os))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function Vd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class HA{}class WA{}const zA={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let KA=(()=>{class e{constructor(n,r){this._compiler=n,this._config=r||zA}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,i]=n.split("#");return void 0===i&&(i="default"),O(8255)(r).then(o=>o[i]).then(o=>zy(o,r,i)).then(o=>this._compiler.compileModuleAsync(o))}loadFactory(n){let[r,i]=n.split("#"),o="NgFactory";return void 0===i&&(i="default",o=""),O(8255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(s=>s[i+o]).then(s=>zy(s,r,i))}}return e.\u0275fac=function(n){return new(n||e)(vn(Ra),vn(WA,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function zy(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const tS=function(e){return null},rS=Uy(null,"core",[{provide:Sy,useValue:"unknown"},{provide:$y,deps:[Vt]},{provide:xy,deps:[]},{provide:Iy,deps:[]}]),lS=[{provide:xa,useClass:xa,deps:[Er,Vt,es,Do,Os]},{provide:dw,deps:[Er],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Os,useClass:Os,deps:[[new $i,Pd]]},{provide:Ra,useClass:Ra,deps:[]},hA,{provide:Rl,useFactory:function(){return ob},deps:[]},{provide:xl,useFactory:function(){return sb},deps:[]},{provide:Wl,useFactory:function(e){return Yc(e=e||"undefined"!=typeof $localize&&$localize.locale||Sl),e},deps:[[new qo(Wl),new $i,new to]]},{provide:Ty,useValue:"USD"}];let cS=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(vn(xa))},e.\u0275mod=yn({type:e}),e.\u0275inj=Ft({providers:lS}),e})()},3092:(Ye,me,O)=>{"use strict";O.d(me,{Fj:()=>We,NI:()=>Yt,u:()=>Zr,cw:()=>dr,sg:()=>sn,u5:()=>B,nD:()=>gr,JJ:()=>G,JL:()=>W,F:()=>ut,On:()=>hn,YN:()=>xi,wV:()=>Bn,_:()=>ir,UX:()=>oe,Q7:()=>Tr,EJ:()=>qr,_Y:()=>Ht,Kr:()=>F});var y=O(476),u=O(8583),ce=O(1776),re=O(1260),te=O(5929),Q=O(9528),K=O(5076),P=O(9607),x=O(5526),Y=O(5207);let ae=(()=>{class E{constructor(h,M){this._renderer=h,this._elementRef=M,this.onChange=Z=>{},this.onTouched=()=>{}}setProperty(h,M){this._renderer.setProperty(this._elementRef.nativeElement,h,M)}registerOnTouched(h){this.onTouched=h}registerOnChange(h){this.onChange=h}setDisabledState(h){this.setProperty("disabled",h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq))},E.\u0275dir=y.lG2({type:E}),E})(),Ee=(()=>{class E extends ae{}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();const De=new y.OlP("NgValueAccessor"),He={provide:De,useExisting:(0,y.Gpc)(()=>We),multi:!0},Ge=new y.OlP("CompositionEventMode");let We=(()=>{class E extends ae{constructor(h,M,Z){super(h,M),this._compositionMode=Z,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const E=(0,u.q)()?(0,u.q)().getUserAgent():"";return/android (\d+)/.test(E.toLowerCase())}())}writeValue(h){this.setProperty("value",null==h?"":h)}_handleInput(h){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(h)}_compositionStart(){this._composing=!0}_compositionEnd(h){this._composing=!1,this._compositionMode&&this.onChange(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ge,8))},E.\u0275dir=y.lG2({type:E,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M._handleInput(we.target.value)})("blur",function(){return M.onTouched()})("compositionstart",function(){return M._compositionStart()})("compositionend",function(we){return M._compositionEnd(we.target.value)})},features:[y._Bn([He]),y.qOj]}),E})();const Ke=new y.OlP("NgValidators"),bt=new y.OlP("NgAsyncValidators");function Ie(E){return null}function be(E){return null!=E}function Ve(E){const m=(0,y.QGY)(E)?(0,te.Dp)(E):E;return(0,y.CqO)(m),m}function Xe(E){let m={};return E.forEach(h=>{m=null!=h?Object.assign(Object.assign({},m),h):m}),0===Object.keys(m).length?null:m}function rt(E,m){return m.map(h=>h(E))}function jt(E){return E.map(m=>function(E){return!E.validate}(m)?m:h=>m.validate(h))}function It(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return Xe(rt(h,m))}}(jt(E)):null}function yt(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return function(){for(var E=[],m=0;m{Cn(h,Z)||h.push(Z)}),h}function xt(E,m){return mn(m).filter(h=>!Cn(E,h))}let Hr=(()=>{class E{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(h){this._rawValidators=h||[],this._composedValidatorFn=It(this._rawValidators)}_setAsyncValidators(h){this._rawAsyncValidators=h||[],this._composedAsyncValidatorFn=yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(h){this._onDestroyCallbacks.push(h)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(h=>h()),this._onDestroyCallbacks=[]}reset(h){this.control&&this.control.reset(h)}hasError(h,M){return!!this.control&&this.control.hasError(h,M)}getError(h,M){return this.control?this.control.getError(h,M):null}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E}),E})(),Ft=(()=>{class E extends Hr{get formDirective(){return null}get path(){return null}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();class gt extends Hr{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class tr{constructor(m){this._cd=m}is(m){var h,M,Z;return"submitted"===m?!!(null===(h=this._cd)||void 0===h?void 0:h.submitted):!!(null===(Z=null===(M=this._cd)||void 0===M?void 0:M.control)||void 0===Z?void 0:Z[m])}}let G=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(gt,2))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))},features:[y.qOj]}),E})(),W=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))("ng-submitted",M.is("submitted"))},features:[y.qOj]}),E})();function Sn(E,m){return[...m.path,E]}function Le(E,m){nr(E,m),m.valueAccessor.writeValue(E.value),function(E,m){m.valueAccessor.registerOnChange(h=>{E._pendingValue=h,E._pendingChange=!0,E._pendingDirty=!0,"change"===E.updateOn&&xn(E,m)})}(E,m),function(E,m){const h=(M,Z)=>{m.valueAccessor.writeValue(M),Z&&m.viewToModelUpdate(M)};E.registerOnChange(h),m._registerOnDestroy(()=>{E._unregisterOnChange(h)})}(E,m),function(E,m){m.valueAccessor.registerOnTouched(()=>{E._pendingTouched=!0,"blur"===E.updateOn&&E._pendingChange&&xn(E,m),"submit"!==E.updateOn&&E.markAsTouched()})}(E,m),function(E,m){if(m.valueAccessor.setDisabledState){const h=M=>{m.valueAccessor.setDisabledState(M)};E.registerOnDisabledChange(h),m._registerOnDestroy(()=>{E._unregisterOnDisabledChange(h)})}}(E,m)}function Ut(E,m,h=!0){const M=()=>{};m.valueAccessor&&(m.valueAccessor.registerOnChange(M),m.valueAccessor.registerOnTouched(M)),nt(E,m),E&&(m._invokeOnDestroyCallbacks(),E._registerOnCollectionChange(()=>{}))}function rn(E,m){E.forEach(h=>{h.registerOnValidatorChange&&h.registerOnValidatorChange(m)})}function nr(E,m){const h=Tt(E);null!==m.validator?E.setValidators(gn(h,m.validator)):"function"==typeof h&&E.setValidators([h]);const M=it(E);null!==m.asyncValidator?E.setAsyncValidators(gn(M,m.asyncValidator)):"function"==typeof M&&E.setAsyncValidators([M]);const Z=()=>E.updateValueAndValidity();rn(m._rawValidators,Z),rn(m._rawAsyncValidators,Z)}function nt(E,m){let h=!1;if(null!==E){if(null!==m.validator){const Z=Tt(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.validator);we.length!==Z.length&&(h=!0,E.setValidators(we))}}if(null!==m.asyncValidator){const Z=it(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.asyncValidator);we.length!==Z.length&&(h=!0,E.setAsyncValidators(we))}}}const M=()=>{};return rn(m._rawValidators,M),rn(m._rawAsyncValidators,M),h}function xn(E,m){E._pendingDirty&&E.markAsDirty(),E.setValue(E._pendingValue,{emitModelToViewChange:!1}),m.viewToModelUpdate(E._pendingValue),E._pendingChange=!1}function cr(E,m){nr(E,m)}function Wr(E,m){if(!E.hasOwnProperty("model"))return!1;const h=E.model;return!!h.isFirstChange()||!Object.is(m,h.currentValue)}function Fn(E,m){E._syncPendingControls(),m.forEach(h=>{const M=h.control;"submit"===M.updateOn&&M._pendingChange&&(h.viewToModelUpdate(M._pendingValue),M._pendingChange=!1)})}function Kn(E,m){if(!m)return null;let h,M,Z;return Array.isArray(m),m.forEach(we=>{we.constructor===We?h=we:function(E){return Object.getPrototypeOf(E.constructor)===Ee}(we)?M=we:Z=we}),Z||M||h||null}function et(E,m){const h=E.indexOf(m);h>-1&&E.splice(h,1)}const Tn="VALID",En="INVALID",Ln="PENDING",yn="DISABLED";function Kr(E){return(dn(E)?E.validators:E)||null}function rr(E){return Array.isArray(E)?It(E):E||null}function Yn(E,m){return(dn(m)?m.asyncValidators:E)||null}function qt(E){return Array.isArray(E)?yt(E):E||null}function dn(E){return null!=E&&!Array.isArray(E)&&"object"==typeof E}class On{constructor(m,h){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=m,this._rawAsyncValidators=h,this._composedValidatorFn=rr(this._rawValidators),this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(m){this._rawValidators=this._composedValidatorFn=m}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(m){this._rawAsyncValidators=this._composedAsyncValidatorFn=m}get parent(){return this._parent}get valid(){return this.status===Tn}get invalid(){return this.status===En}get pending(){return this.status==Ln}get disabled(){return this.status===yn}get enabled(){return this.status!==yn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(m){this._rawValidators=m,this._composedValidatorFn=rr(m)}setAsyncValidators(m){this._rawAsyncValidators=m,this._composedAsyncValidatorFn=qt(m)}addValidators(m){this.setValidators(Rn(m,this._rawValidators))}addAsyncValidators(m){this.setAsyncValidators(Rn(m,this._rawAsyncValidators))}removeValidators(m){this.setValidators(xt(m,this._rawValidators))}removeAsyncValidators(m){this.setAsyncValidators(xt(m,this._rawAsyncValidators))}hasValidator(m){return Cn(this._rawValidators,m)}hasAsyncValidator(m){return Cn(this._rawAsyncValidators,m)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(m={}){this.touched=!0,this._parent&&!m.onlySelf&&this._parent.markAsTouched(m)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(m=>m.markAllAsTouched())}markAsUntouched(m={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(h=>{h.markAsUntouched({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}markAsDirty(m={}){this.pristine=!1,this._parent&&!m.onlySelf&&this._parent.markAsDirty(m)}markAsPristine(m={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(h=>{h.markAsPristine({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}markAsPending(m={}){this.status=Ln,!1!==m.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!m.onlySelf&&this._parent.markAsPending(m)}disable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=yn,this.errors=null,this._forEachChild(M=>{M.disable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this._updateValue(),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!0))}enable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=Tn,this._forEachChild(M=>{M.enable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!1))}_updateAncestors(m){this._parent&&!m.onlySelf&&(this._parent.updateValueAndValidity(m),m.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(m){this._parent=m}updateValueAndValidity(m={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tn||this.status===Ln)&&this._runAsyncValidator(m.emitEvent)),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!m.onlySelf&&this._parent.updateValueAndValidity(m)}_updateTreeValidity(m={emitEvent:!0}){this._forEachChild(h=>h._updateTreeValidity(m)),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yn:Tn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(m){if(this.asyncValidator){this.status=Ln,this._hasOwnPendingAsyncValidator=!0;const h=Ve(this.asyncValidator(this));this._asyncValidationSubscription=h.subscribe(M=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(M,{emitEvent:m})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(m,h={}){this.errors=m,this._updateControlsErrors(!1!==h.emitEvent)}get(m){return function(E,m,h){if(null==m||(Array.isArray(m)||(m=m.split(".")),Array.isArray(m)&&0===m.length))return null;let M=E;return m.forEach(Z=>{M=M instanceof dr?M.controls.hasOwnProperty(Z)?M.controls[Z]:null:M instanceof fn&&M.at(Z)||null}),M}(this,m)}getError(m,h){const M=h?this.get(h):this;return M&&M.errors?M.errors[m]:null}hasError(m,h){return!!this.getError(m,h)}get root(){let m=this;for(;m._parent;)m=m._parent;return m}_updateControlsErrors(m){this.status=this._calculateStatus(),m&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(m)}_initObservables(){this.valueChanges=new y.vpe,this.statusChanges=new y.vpe}_calculateStatus(){return this._allControlsDisabled()?yn:this.errors?En:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ln)?Ln:this._anyControlsHaveStatus(En)?En:Tn}_anyControlsHaveStatus(m){return this._anyControls(h=>h.status===m)}_anyControlsDirty(){return this._anyControls(m=>m.dirty)}_anyControlsTouched(){return this._anyControls(m=>m.touched)}_updatePristine(m={}){this.pristine=!this._anyControlsDirty(),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}_updateTouched(m={}){this.touched=this._anyControlsTouched(),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}_isBoxedValue(m){return"object"==typeof m&&null!==m&&2===Object.keys(m).length&&"value"in m&&"disabled"in m}_registerOnCollectionChange(m){this._onCollectionChange=m}_setUpdateStrategy(m){dn(m)&&null!=m.updateOn&&(this._updateOn=m.updateOn)}_parentMarkedDirty(m){return!m&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Yt extends On{constructor(m=null,h,M){super(Kr(h),Yn(M,h)),this._onChange=[],this._applyFormState(m),this._setUpdateStrategy(h),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(m,h={}){this.value=this._pendingValue=m,this._onChange.length&&!1!==h.emitModelToViewChange&&this._onChange.forEach(M=>M(this.value,!1!==h.emitViewToModelChange)),this.updateValueAndValidity(h)}patchValue(m,h={}){this.setValue(m,h)}reset(m=null,h={}){this._applyFormState(m),this.markAsPristine(h),this.markAsUntouched(h),this.setValue(this.value,h),this._pendingChange=!1}_updateValue(){}_anyControls(m){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(m){this._onChange.push(m)}_unregisterOnChange(m){et(this._onChange,m)}registerOnDisabledChange(m){this._onDisabledChange.push(m)}_unregisterOnDisabledChange(m){et(this._onDisabledChange,m)}_forEachChild(m){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(m){this._isBoxedValue(m)?(this.value=this._pendingValue=m.value,m.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=m}}class dr extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(m,h){return this.controls[m]?this.controls[m]:(this.controls[m]=h,h.setParent(this),h._registerOnCollectionChange(this._onCollectionChange),h)}addControl(m,h,M={}){this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}removeControl(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],h&&this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}contains(m){return this.controls.hasOwnProperty(m)&&this.controls[m].enabled}setValue(m,h={}){this._checkAllValuesPresent(m),Object.keys(m).forEach(M=>{this._throwIfControlMissing(M),this.controls[M].setValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(Object.keys(m).forEach(M=>{this.controls[M]&&this.controls[M].patchValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m={},h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this._reduceChildren({},(m,h,M)=>(m[M]=h instanceof Yt?h.value:h.getRawValue(),m))}_syncPendingControls(){let m=this._reduceChildren(!1,(h,M)=>!!M._syncPendingControls()||h);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[m])throw new Error(`Cannot find form control with name: ${m}.`)}_forEachChild(m){Object.keys(this.controls).forEach(h=>{const M=this.controls[h];M&&m(M,h)})}_setUpControls(){this._forEachChild(m=>{m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(m){for(const h of Object.keys(this.controls)){const M=this.controls[h];if(this.contains(h)&&m(M))return!0}return!1}_reduceValue(){return this._reduceChildren({},(m,h,M)=>((h.enabled||this.disabled)&&(m[M]=h.value),m))}_reduceChildren(m,h){let M=m;return this._forEachChild((Z,we)=>{M=h(M,Z,we)}),M}_allControlsDisabled(){for(const m of Object.keys(this.controls))if(this.controls[m].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control with name: '${M}'.`)})}}class fn extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(m){return this.controls[m]}push(m,h={}){this.controls.push(m),this._registerControl(m),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}insert(m,h,M={}){this.controls.splice(m,0,h),this._registerControl(h),this.updateValueAndValidity({emitEvent:M.emitEvent})}removeAt(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),this.updateValueAndValidity({emitEvent:h.emitEvent})}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),h&&(this.controls.splice(m,0,h),this._registerControl(h)),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(m,h={}){this._checkAllValuesPresent(m),m.forEach((M,Z)=>{this._throwIfControlMissing(Z),this.at(Z).setValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(m.forEach((M,Z)=>{this.at(Z)&&this.at(Z).patchValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m=[],h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this.controls.map(m=>m instanceof Yt?m.value:m.getRawValue())}clear(m={}){this.controls.length<1||(this._forEachChild(h=>h._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:m.emitEvent}))}_syncPendingControls(){let m=this.controls.reduce((h,M)=>!!M._syncPendingControls()||h,!1);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(m))throw new Error(`Cannot find form control at index ${m}`)}_forEachChild(m){this.controls.forEach((h,M)=>{m(h,M)})}_updateValue(){this.value=this.controls.filter(m=>m.enabled||this.disabled).map(m=>m.value)}_anyControls(m){return this.controls.some(h=>h.enabled&&m(h))}_setUpControls(){this._forEachChild(m=>this._registerControl(m))}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control at index: ${M}.`)})}_allControlsDisabled(){for(const m of this.controls)if(m.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(m){m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)}}const Te={provide:Ft,useExisting:(0,y.Gpc)(()=>ut)},ht=(()=>Promise.resolve(null))();let ut=(()=>{class E extends Ft{constructor(h,M){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new y.vpe,this.form=new dr({},It(h),yt(M))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(h){ht.then(()=>{const M=this._findContainer(h.path);h.control=M.registerControl(h.name,h.control),Le(h.control,h),h.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(h)})}getControl(h){return this.form.get(h.path)}removeControl(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name),et(this._directives,h)})}addFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path),Z=new dr({});cr(Z,h),M.registerControl(h.name,Z),Z.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name)})}getFormGroup(h){return this.form.get(h.path)}updateModel(h,M){ht.then(()=>{this.form.get(h.path).setValue(M)})}setValue(h){this.control.setValue(h)}onSubmit(h){return this.submitted=!0,Fn(this.form,this._directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(h){return h.pop(),h.length?this.form.get(h):this.form}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Te]),y.qOj]}),E})();const fr={provide:gt,useExisting:(0,y.Gpc)(()=>hn)},_n=(()=>Promise.resolve(null))();let hn=(()=>{class E extends gt{constructor(h,M,Z,we){super(),this.control=new Yt,this._registered=!1,this.update=new y.vpe,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}ngOnChanges(h){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in h&&this._updateDisabled(h),Wr(h,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Sn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Le(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(h){_n.then(()=>{this.control.setValue(h,{emitViewToModelChange:!1})})}_updateDisabled(h){const M=h.isDisabled.currentValue,Z=""===M||M&&"false"!==M;_n.then(()=>{Z&&!this.control.disabled?this.control.disable():!Z&&this.control.disabled&&this.control.enable()})}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,9),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[y._Bn([fr]),y.qOj,y.TTD]}),E})(),Ht=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),E})();const Un={provide:De,useExisting:(0,y.Gpc)(()=>Bn),multi:!0};let Bn=(()=>{class E extends Ee{writeValue(h){this.setProperty("value",null==h?"":h)}registerOnChange(h){this.onChange=M=>{h(""==M?null:parseFloat(M))}}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},features:[y._Bn([Un]),y.qOj]}),E})();const Gt={provide:De,useExisting:(0,y.Gpc)(()=>ir),multi:!0};let Yr=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({}),E})(),Ar=(()=>{class E{constructor(){this._accessors=[]}add(h,M){this._accessors.push([h,M])}remove(h){for(let M=this._accessors.length-1;M>=0;--M)if(this._accessors[M][1]===h)return void this._accessors.splice(M,1)}select(h){this._accessors.forEach(M=>{this._isSameGroup(M,h)&&M[1]!==h&&M[1].fireUncheck(h.value)})}_isSameGroup(h,M){return!!h[0].control&&h[0]._parent===M._control._parent&&h[1].name===M.name}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275prov=(0,y.Yz7)({factory:function(){return new E},token:E,providedIn:Yr}),E})(),ir=(()=>{class E extends Ee{constructor(h,M,Z,we){super(h,M),this._registry=Z,this._injector=we,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(gt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(h){this._state=h===this.value,this.setProperty("checked",this._state)}registerOnChange(h){this._fn=h,this.onChange=()=>{h(this.value),this._registry.select(this)}}fireUncheck(h){this.writeValue(h)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ar),y.Y36(y.zs3))},E.\u0275dir=y.lG2({type:E,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(){return M.onChange()})("blur",function(){return M.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[y._Bn([Gt]),y.qOj]}),E})();const Wt=new y.OlP("NgModelWithFormControlWarning"),Sr={provide:Ft,useExisting:(0,y.Gpc)(()=>sn)};let sn=(()=>{class E extends Ft{constructor(h,M){super(),this.validators=h,this.asyncValidators=M,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new y.vpe,this._setValidators(h),this._setAsyncValidators(M)}ngOnChanges(h){this._checkFormPresent(),h.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(h){const M=this.form.get(h.path);return Le(M,h),M.updateValueAndValidity({emitEvent:!1}),this.directives.push(h),M}getControl(h){return this.form.get(h.path)}removeControl(h){Ut(h.control||null,h,!1),et(this.directives,h)}addFormGroup(h){this._setUpFormContainer(h)}removeFormGroup(h){this._cleanUpFormContainer(h)}getFormGroup(h){return this.form.get(h.path)}addFormArray(h){this._setUpFormContainer(h)}removeFormArray(h){this._cleanUpFormContainer(h)}getFormArray(h){return this.form.get(h.path)}updateModel(h,M){this.form.get(h.path).setValue(M)}onSubmit(h){return this.submitted=!0,Fn(this.form,this.directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_updateDomValue(){this.directives.forEach(h=>{const M=h.control,Z=this.form.get(h.path);M!==Z&&(Ut(M||null,h),Z instanceof Yt&&(Le(Z,h),h.control=Z))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(h){const M=this.form.get(h.path);cr(M,h),M.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(h){if(this.form){const M=this.form.get(h.path);M&&function(E,m){return nt(E,m)}(M,h)&&M.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){nr(this.form,this),this._oldForm&&nt(this._oldForm,this)}_checkFormPresent(){}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroup",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Sr]),y.qOj,y.TTD]}),E})();const Ir={provide:gt,useExisting:(0,y.Gpc)(()=>Zr)};let Zr=(()=>{class E extends gt{constructor(h,M,Z,we,At){super(),this._ngModelWarningConfig=At,this._added=!1,this.update=new y.vpe,this._ngModelWarningSent=!1,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}set isDisabled(h){}ngOnChanges(h){this._added||this._setUpControl(),Wr(h,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}get path(){return Sn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,13),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10),y.Y36(Wt,8))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[y._Bn([Ir]),y.qOj,y.TTD]}),E._ngModelWarningSentOnce=!1,E})();const mi={provide:De,useExisting:(0,y.Gpc)(()=>qr),multi:!0};function Ri(E,m){return null==E?`${m}`:(m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let qr=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){this.value=h;const M=this._getOptionId(h);null==M&&this.setProperty("selectedIndex",-1);const Z=Ri(M,h);this.setProperty("value",Z)}registerOnChange(h){this.onChange=M=>{this.value=this._getOptionValue(M),h(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(h){for(const M of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(M),h))return M;return null}_getOptionValue(h){const M=function(E){return E.split(":")[0]}(h);return this._optionMap.has(M)?this._optionMap.get(M):h}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},inputs:{compareWith:"compareWith"},features:[y._Bn([mi]),y.qOj]}),E})(),xi=(()=>{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption())}set ngValue(h){null!=this._select&&(this._select._optionMap.set(this.id,h),this._setElementValue(Ri(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._setElementValue(h),this._select&&this._select.writeValue(this._select.value)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(qr,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Fi={provide:De,useExisting:(0,y.Gpc)(()=>N),multi:!0};function _i(E,m){return null==E?`${m}`:("string"==typeof m&&(m=`'${m}'`),m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let N=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){let M;if(this.value=h,Array.isArray(h)){const Z=h.map(we=>this._getOptionId(we));M=(we,At)=>{we._setSelected(Z.indexOf(At.toString())>-1)}}else M=(Z,we)=>{Z._setSelected(!1)};this._optionMap.forEach(M)}registerOnChange(h){this.onChange=M=>{const Z=[];if(void 0!==M.selectedOptions){const we=M.selectedOptions;for(let At=0;At{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption(this))}set ngValue(h){null!=this._select&&(this._value=h,this._setElementValue(_i(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._select?(this._value=h,this._setElementValue(_i(this.id,h)),this._select.writeValue(this._select.value)):this._setElementValue(h)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}_setSelected(h){this._renderer.setProperty(this._element.nativeElement,"selected",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(N,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Nt={provide:Ke,useExisting:(0,y.Gpc)(()=>Tr),multi:!0};let Tr=(()=>{class E{constructor(){this._required=!1}get required(){return this._required}set required(h){this._required=null!=h&&!1!==h&&"false"!=`${h}`,this._onChange&&this._onChange()}validate(h){return this.required?function(E){return function(E){return null==E||0===E.length}(E.value)?{required:!0}:null}(h):null}registerOnValidatorChange(h){this._onChange=h}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("required",M.required?"":null)},inputs:{required:"required"},features:[y._Bn([Nt])]}),E})();const Nr={provide:Ke,useExisting:(0,y.Gpc)(()=>gr),multi:!0};let gr=(()=>{class E{constructor(){this._validator=Ie}ngOnChanges(h){"maxlength"in h&&(this._createValidator(),this._onChange&&this._onChange())}validate(h){return this.enabled()?this._validator(h):null}registerOnValidatorChange(h){this._onChange=h}_createValidator(){this._validator=this.enabled()?function(E){return m=>function(E){return null!=E&&"number"==typeof E.length}(m.value)&&m.value.length>E?{maxlength:{requiredLength:E,actualLength:m.value.length}}:null}(function(E){return"number"==typeof E?E:parseInt(E,10)}(this.maxlength)):Ie}enabled(){return null!=this.maxlength}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("maxlength",M.enabled()?M.maxlength:null)},inputs:{maxlength:"maxlength"},features:[y._Bn([Nr]),y.TTD]}),E})(),S=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[[Yr]]}),E})(),B=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})(),oe=(()=>{class E{static withConfig(h){return{ngModule:E,providers:[{provide:Wt,useValue:h.warnOnNgModelWithFormControl}]}}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})()},9502:(Ye,me,O)=>{"use strict";O.d(me,{gz:()=>Gt,Eb:()=>ge,gk:()=>xt,m2:()=>Rn,Q3:()=>Hr,OD:()=>Cn,F0:()=>Wn,rH:()=>Lo,Od:()=>ho,yS:()=>ko,Bz:()=>Bo,lC:()=>po,R9:()=>Ft});var y=O(8583),u=O(476),ce=O(9162),re=O(6889),te=function(f){function c(l){var p=f.call(this)||this;return p._value=l,p}return(0,ce.ZT)(c,f),Object.defineProperty(c.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),c.prototype._subscribe=function(l){var p=f.prototype._subscribe.call(this,l);return!p.closed&&l.next(this._value),p},c.prototype.getValue=function(){var l=this,b=l._value;if(l.hasError)throw l.thrownError;return this._throwIfClosed(),b},c.prototype.next=function(l){f.prototype.next.call(this,this._value=l)},c}(re.x),Q=O(1776),K=O(1260),P=O(5929),x=O(2738),U=O(9607),Y=O(9528),ae=O(5526),Ee=O(5076);function Pe(f,c,l){return void 0===l&&(l=x.y),function(p){ve(c,function(){for(var C=f.length,b=new Array(C),R=C,V=C,q=function(Ue){ve(c,function(){var at=(0,P.Dp)(f[Ue],c),kt=!1;at.subscribe(new Ee.Q(p,function(Ct){b[Ue]=Ct,kt||(kt=!0,V--),V||p.next(l(b.slice()))},function(){--R||p.complete()}))},p)},Se=0;Se=2,!0))}var ee=O(4689);function Ie(f){return f<=0?function(){return X.E}:(0,$e.e)(function(c,l){var p=[];c.subscribe(new Ee.Q(l,function(C){p.push(C),f=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,(0,_t.q)(1),l?Xe(c):be(function(){return new Me}))}}var Kt=O(8853);function It(f,c,l){var p=(0,Kt.m)(f)||c||l?{next:f,error:c,complete:l}:f;return p?(0,$e.e)(function(C,b){var R;null===(R=p.subscribe)||void 0===R||R.call(p);var V=!0;C.subscribe(new Ee.Q(b,function(q){var Se;null===(Se=p.next)||void 0===Se||Se.call(p,q),b.next(q)},function(){var q;V=!1,null===(q=p.complete)||void 0===q||q.call(p),b.complete()},function(q){var Se;V=!1,null===(Se=p.error)||void 0===Se||Se.call(p,q),b.error(q)},function(){var q,Se;V&&(null===(q=p.unsubscribe)||void 0===q||q.call(p)),null===(Se=p.finalize)||void 0===Se||Se.call(p)}))}):x.y}var yt=O(5207),gn=O(5894),Tt=O(3766),it=O(7216);class mn{constructor(c,l){this.id=c,this.url=l}}class Cn extends mn{constructor(c,l,p="imperative",C=null){super(c,l),this.navigationTrigger=p,this.restoredState=C}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Rn extends mn{constructor(c,l,p){super(c,l),this.urlAfterRedirects=p}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class xt extends mn{constructor(c,l,p){super(c,l),this.reason=p}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Hr extends mn{constructor(c,l,p){super(c,l),this.error=p}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ft extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gt extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tr extends mn{constructor(c,l,p,C,b){super(c,l),this.urlAfterRedirects=p,this.state=C,this.shouldActivate=b}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ni extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fe extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G{constructor(c){this.route=c}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class W{constructor(c){this.route=c}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ge{constructor(c){this.snapshot=c}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ye{constructor(c){this.snapshot=c}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Re{constructor(c){this.snapshot=c}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class se{constructor(c){this.snapshot=c}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xe{constructor(c,l,p){this.routerEvent=c,this.position=l,this.anchor=p}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ne="primary";class St{constructor(c){this.params=c||{}}has(c){return Object.prototype.hasOwnProperty.call(this.params,c)}get(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l[0]:l}return null}getAll(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l:[l]}return[]}get keys(){return Object.keys(this.params)}}function Lt(f){return new St(f)}const zn="ngNavigationCancelingError";function wt(f){const c=Error("NavigationCancelingError: "+f);return c[zn]=!0,c}function ot(f,c,l){const p=l.path.split("/");if(p.length>f.length||"full"===l.pathMatch&&(c.hasChildren()||p.lengthp[b]===C)}return f===c}function rn(f){return Array.prototype.concat.apply([],f)}function Dr(f){return f.length>0?f[f.length-1]:null}function nt(f,c){for(const l in f)f.hasOwnProperty(l)&&c(f[l],l)}function Mn(f){return(0,u.CqO)(f)?f:(0,u.QGY)(f)?(0,P.Dp)(Promise.resolve(f)):(0,H.of)(f)}const xn={exact:function Gr(f,c,l){if(!En(f.segments,c.segments)||!Fn(f.segments,c.segments,l)||f.numberOfChildren!==c.numberOfChildren)return!1;for(const p in c.children)if(!f.children[p]||!Gr(f.children[p],c.children[p],l))return!1;return!0},subset:Wr},mt={exact:function(f,c){return Le(f,c)},subset:function(f,c){return Object.keys(c).length<=Object.keys(f).length&&Object.keys(c).every(l=>Ut(f[l],c[l]))},ignored:()=>!0};function cr(f,c,l){return xn[l.paths](f.root,c.root,l.matrixParams)&&mt[l.queryParams](f.queryParams,c.queryParams)&&!("exact"===l.fragment&&f.fragment!==c.fragment)}function Wr(f,c,l){return In(f,c,c.segments,l)}function In(f,c,l,p){if(f.segments.length>l.length){const C=f.segments.slice(0,l.length);return!(!En(C,l)||c.hasChildren()||!Fn(C,l,p))}if(f.segments.length===l.length){if(!En(f.segments,l)||!Fn(f.segments,l,p))return!1;for(const C in c.children)if(!f.children[C]||!Wr(f.children[C],c.children[C],p))return!1;return!0}{const C=l.slice(0,f.segments.length),b=l.slice(f.segments.length);return!!(En(f.segments,C)&&Fn(f.segments,C,p)&&f.children[Ne])&&In(f.children[Ne],c,b,p)}}function Fn(f,c,l){return c.every((p,C)=>mt[l](f[C].parameters,p.parameters))}class Kn{constructor(c,l,p){this.root=c,this.queryParams=l,this.fragment=p}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return Kr.serialize(this)}}class et{constructor(c,l){this.segments=c,this.children=l,this.parent=null,nt(l,(p,C)=>p.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rr(this)}}class on{constructor(c,l){this.path=c,this.parameters=l}get parameterMap(){return this._parameterMap||(this._parameterMap=Lt(this.parameters)),this._parameterMap}toString(){return Te(this)}}function En(f,c){return f.length===c.length&&f.every((l,p)=>l.path===c[p].path)}class yn{}class zr{parse(c){const l=new Vn(c);return new Kn(l.parseRootSegment(),l.parseQueryParams(),l.parseFragment())}serialize(c){var f;return`${`/${Yn(c.root,!0)}`}${function(f){const c=Object.keys(f).map(l=>{const p=f[l];return Array.isArray(p)?p.map(C=>`${dn(l)}=${dn(C)}`).join("&"):`${dn(l)}=${dn(p)}`}).filter(l=>!!l);return c.length?`?${c.join("&")}`:""}(c.queryParams)}${"string"==typeof c.fragment?`#${f=c.fragment,encodeURI(f)}`:""}`}}const Kr=new zr;function rr(f){return f.segments.map(c=>Te(c)).join("/")}function Yn(f,c){if(!f.hasChildren())return rr(f);if(c){const l=f.children[Ne]?Yn(f.children[Ne],!1):"",p=[];return nt(f.children,(C,b)=>{b!==Ne&&p.push(`${b}:${Yn(C,!1)}`)}),p.length>0?`${l}(${p.join("//")})`:l}{const l=function(f,c){let l=[];return nt(f.children,(p,C)=>{C===Ne&&(l=l.concat(c(p,C)))}),nt(f.children,(p,C)=>{C!==Ne&&(l=l.concat(c(p,C)))}),l}(f,(p,C)=>C===Ne?[Yn(f.children[Ne],!1)]:[`${C}:${Yn(p,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[Ne]?`${rr(f)}/${l[0]}`:`${rr(f)}/(${l.join("//")})`}}function qt(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dn(f){return qt(f).replace(/%3B/gi,";")}function Yt(f){return qt(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dr(f){return decodeURIComponent(f)}function fn(f){return dr(f.replace(/\+/g,"%20"))}function Te(f){return`${Yt(f.path)}${function(f){return Object.keys(f).map(c=>`;${Yt(c)}=${Yt(f[c])}`).join("")}(f.parameters)}`}const ut=/^[^\/()?;=#]+/;function Jt(f){const c=f.match(ut);return c?c[0]:""}const Bt=/^[^=?&#]+/,Ot=/^[^?&#]+/;class Vn{constructor(c){this.url=c,this.remaining=c}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new et([],{}):new et([],this.parseChildren())}parseQueryParams(){const c={};if(this.consumeOptional("?"))do{this.parseQueryParam(c)}while(this.consumeOptional("&"));return c}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const c=[];for(this.peekStartsWith("(")||c.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),c.push(this.parseSegment());let l={};this.peekStartsWith("/(")&&(this.capture("/"),l=this.parseParens(!0));let p={};return this.peekStartsWith("(")&&(p=this.parseParens(!1)),(c.length>0||Object.keys(l).length>0)&&(p[Ne]=new et(c,l)),p}parseSegment(){const c=Jt(this.remaining);if(""===c&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(c),new on(dr(c),this.parseMatrixParams())}parseMatrixParams(){const c={};for(;this.consumeOptional(";");)this.parseParam(c);return c}parseParam(c){const l=Jt(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const C=Jt(this.remaining);C&&(p=C,this.capture(p))}c[dr(l)]=dr(p)}parseQueryParam(c){const l=function(f){const c=f.match(Bt);return c?c[0]:""}(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const R=function(f){const c=f.match(Ot);return c?c[0]:""}(this.remaining);R&&(p=R,this.capture(p))}const C=fn(l),b=fn(p);if(c.hasOwnProperty(C)){let R=c[C];Array.isArray(R)||(R=[R],c[C]=R),R.push(b)}else c[C]=b}parseParens(c){const l={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const p=Jt(this.remaining),C=this.remaining[p.length];if("/"!==C&&")"!==C&&";"!==C)throw new Error(`Cannot parse url '${this.url}'`);let b;p.indexOf(":")>-1?(b=p.substr(0,p.indexOf(":")),this.capture(b),this.capture(":")):c&&(b=Ne);const R=this.parseChildren();l[b]=1===Object.keys(R).length?R[Ne]:new et([],R),this.consumeOptional("//")}return l}peekStartsWith(c){return this.remaining.startsWith(c)}consumeOptional(c){return!!this.peekStartsWith(c)&&(this.remaining=this.remaining.substring(c.length),!0)}capture(c){if(!this.consumeOptional(c))throw new Error(`Expected "${c}".`)}}class Ze{constructor(c){this._root=c}get root(){return this._root.value}parent(c){const l=this.pathFromRoot(c);return l.length>1?l[l.length-2]:null}children(c){const l=fr(c,this._root);return l?l.children.map(p=>p.value):[]}firstChild(c){const l=fr(c,this._root);return l&&l.children.length>0?l.children[0].value:null}siblings(c){const l=Zn(c,this._root);return l.length<2?[]:l[l.length-2].children.map(C=>C.value).filter(C=>C!==c)}pathFromRoot(c){return Zn(c,this._root).map(l=>l.value)}}function fr(f,c){if(f===c.value)return c;for(const l of c.children){const p=fr(f,l);if(p)return p}return null}function Zn(f,c){if(f===c.value)return[c];for(const l of c.children){const p=Zn(f,l);if(p.length)return p.unshift(c),p}return[]}class _n{constructor(c,l){this.value=c,this.children=l}toString(){return`TreeNode(${this.value})`}}function hn(f){const c={};return f&&f.children.forEach(l=>c[l.value.outlet]=l),c}class Ht extends Ze{constructor(c,l){super(c),this.snapshot=l,qn(this,c)}toString(){return this.snapshot.toString()}}function Un(f,c){const l=function(f,c){const R=new Ar([],{},{},"",{},Ne,c,null,f.root,-1,{});return new ir("",new _n(R,[]))}(f,c),p=new te([new on("",{})]),C=new te({}),b=new te({}),R=new te({}),V=new te(""),q=new Gt(p,C,R,V,b,Ne,c,l.root);return q.snapshot=l.root,new Ht(new _n(q,[]),l)}class Gt{constructor(c,l,p,C,b,R,V,q){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=R,this.component=V,this._futureSnapshot=q}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,yt.U)(c=>Lt(c)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,yt.U)(c=>Lt(c)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Mt(f,c="emptyOnly"){const l=f.pathFromRoot;let p=0;if("always"!==c)for(p=l.length-1;p>=1;){const C=l[p],b=l[p-1];if(C.routeConfig&&""===C.routeConfig.path)p--;else{if(b.component)break;p--}}return function(f){return f.reduce((c,l)=>({params:Object.assign(Object.assign({},c.params),l.params),data:Object.assign(Object.assign({},c.data),l.data),resolve:Object.assign(Object.assign({},c.resolve),l._resolvedData)}),{params:{},data:{},resolve:{}})}(l.slice(p))}class Ar{constructor(c,l,p,C,b,R,V,q,Se,Ue,at){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=R,this.component=V,this.routeConfig=q,this._urlSegment=Se,this._lastPathIndex=Ue,this._resolve=at}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(p=>p.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ir extends Ze{constructor(c,l){super(l),this.url=c,qn(this,l)}toString(){return hr(this._root)}}function qn(f,c){c.value._routerState=f,c.children.forEach(l=>qn(f,l))}function hr(f){const c=f.children.length>0?` { ${f.children.map(hr).join(", ")} } `:"";return`${f.value}${c}`}function Wt(f){if(f.snapshot){const c=f.snapshot,l=f._futureSnapshot;f.snapshot=l,Le(c.queryParams,l.queryParams)||f.queryParams.next(l.queryParams),c.fragment!==l.fragment&&f.fragment.next(l.fragment),Le(c.params,l.params)||f.params.next(l.params),function(f,c){if(f.length!==c.length)return!1;for(let l=0;lLe(l.parameters,c[p].parameters))}(f.url,c.url)&&!(!f.parent!=!c.parent)&&(!f.parent||$n(f.parent,c.parent))}function Sr(f,c,l){if(l&&f.shouldReuseRoute(c.value,l.value.snapshot)){const p=l.value;p._futureSnapshot=c.value;const C=function(f,c,l){return c.children.map(p=>{for(const C of l.children)if(f.shouldReuseRoute(p.value,C.value.snapshot))return Sr(f,p,C);return Sr(f,p)})}(f,c,l);return new _n(p,C)}{if(f.shouldAttach(c.value)){const b=f.retrieve(c.value);if(null!==b){const R=b.route;return sn(c,R),R}}const p=function(f){return new Gt(new te(f.url),new te(f.params),new te(f.queryParams),new te(f.fragment),new te(f.data),f.outlet,f.component,f)}(c.value),C=c.children.map(b=>Sr(f,b));return new _n(p,C)}}function sn(f,c){if(f.value.routeConfig!==c.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(f.children.length!==c.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");c.value._futureSnapshot=f.value;for(let l=0;l{b[V]=Array.isArray(R)?R.map(q=>`${q}`):`${R}`}),new Kn(l.root===f?c:Zr(l.root,f,c),b,C)}function Zr(f,c,l){const p={};return nt(f.children,(C,b)=>{p[b]=C===c?l:Zr(C,c,l)}),new et(f.segments,p)}class mi{constructor(c,l,p){if(this.isAbsolute=c,this.numberOfDoubleDots=l,this.commands=p,c&&p.length>0&&jn(p[0]))throw new Error("Root segment cannot have matrix parameters");const C=p.find(Pt);if(C&&C!==Dr(p))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yi{constructor(c,l,p){this.segmentGroup=c,this.processChildren=l,this.index=p}}function _i(f,c,l){if(f||(f=new et([],{})),0===f.segments.length&&f.hasChildren())return Jr(f,c,l);const p=function(f,c,l){let p=0,C=c;const b={match:!1,pathIndex:0,commandIndex:0};for(;C=l.length)return b;const R=f.segments[C],V=l[p];if(Pt(V))break;const q=`${V}`,Se=p0&&void 0===q)break;if(q&&Se&&"object"==typeof Se&&void 0===Se.outlets){if(!L(q,Se,R))return b;p+=2}else{if(!L(q,{},R))return b;p++}C++}return{match:!0,pathIndex:C,commandIndex:p}}(f,c,l),C=l.slice(p.commandIndex);if(p.match&&p.pathIndex{"string"==typeof b&&(b=[b]),null!==b&&(C[R]=_i(f.children[R],c,b))}),nt(f.children,(b,R)=>{void 0===p[R]&&(C[R]=b)}),new et(f.segments,C)}}function N(f,c,l){const p=f.segments.slice(0,c);let C=0;for(;C{"string"==typeof l&&(l=[l]),null!==l&&(c[p]=N(new et([],{}),0,l))}),c}function A(f){const c={};return nt(f,(l,p)=>c[p]=`${l}`),c}function L(f,c,l){return f==l.path&&Le(c,l.parameters)}class Oe{constructor(c,l,p,C){this.routeReuseStrategy=c,this.futureState=l,this.currState=p,this.forwardEvent=C}activate(c){const l=this.futureState._root,p=this.currState?this.currState._root:null;this.deactivateChildRoutes(l,p,c),Wt(this.futureState.root),this.activateChildRoutes(l,p,c)}deactivateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{const R=b.value.outlet;this.deactivateRoutes(b,C[R],p),delete C[R]}),nt(C,(b,R)=>{this.deactivateRouteAndItsChildren(b,p)})}deactivateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(C===b)if(C.component){const R=p.getContext(C.outlet);R&&this.deactivateChildRoutes(c,l,R.children)}else this.deactivateChildRoutes(c,l,p);else b&&this.deactivateRouteAndItsChildren(l,p)}deactivateRouteAndItsChildren(c,l){this.routeReuseStrategy.shouldDetach(c.value.snapshot)?this.detachAndStoreRouteSubtree(c,l):this.deactivateRouteAndOutlet(c,l)}detachAndStoreRouteSubtree(c,l){const p=l.getContext(c.value.outlet);if(p&&p.outlet){const C=p.outlet.detach(),b=p.children.onOutletDeactivated();this.routeReuseStrategy.store(c.value.snapshot,{componentRef:C,route:c,contexts:b})}}deactivateRouteAndOutlet(c,l){const p=l.getContext(c.value.outlet),C=p&&c.value.component?p.children:l,b=hn(c);for(const R of Object.keys(b))this.deactivateRouteAndItsChildren(b[R],C);p&&p.outlet&&(p.outlet.deactivate(),p.children.onOutletDeactivated(),p.attachRef=null,p.resolver=null,p.route=null)}activateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{this.activateRoutes(b,C[b.value.outlet],p),this.forwardEvent(new se(b.value.snapshot))}),c.children.length&&this.forwardEvent(new ye(c.value.snapshot))}activateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(Wt(C),C===b)if(C.component){const R=p.getOrCreateContext(C.outlet);this.activateChildRoutes(c,l,R.children)}else this.activateChildRoutes(c,l,p);else if(C.component){const R=p.getOrCreateContext(C.outlet);if(this.routeReuseStrategy.shouldAttach(C.snapshot)){const V=this.routeReuseStrategy.retrieve(C.snapshot);this.routeReuseStrategy.store(C.snapshot,null),R.children.onOutletReAttached(V.contexts),R.attachRef=V.componentRef,R.route=V.route.value,R.outlet&&R.outlet.attach(V.componentRef,V.route.value),je(V.route)}else{const V=function(f){for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig;if(l&&l.component)return null}return null}(C.snapshot),q=V?V.module.componentFactoryResolver:null;R.attachRef=null,R.route=C,R.resolver=q,R.outlet&&R.outlet.activateWith(C,q),this.activateChildRoutes(c,null,R.children)}}else this.activateChildRoutes(c,null,p)}}function je(f){Wt(f.value),f.children.forEach(je)}class Nt{constructor(c,l){this.routes=c,this.module=l}}function $t(f){return"function"==typeof f}function Or(f){return f instanceof Kn}const Nr=Symbol("INITIAL_VALUE");function gr(){return ue(f=>function(){for(var f=[],c=0;cc.pipe((0,_t.q)(1),function(){for(var f=[],c=0;c{let p=!1;return l.reduce((C,b,R)=>C!==Nr?C:(b===Nr&&(p=!0),p||!1!==b&&R!==l.length-1&&!Or(b)?C:b),c)},Nr),(0,ee.h)(c=>c!==Nr),(0,yt.U)(c=>Or(c)?c:!0===c),(0,_t.q)(1)))}let Zi=(()=>{class f{}return f.\u0275fac=function(l){return new(l||f)},f.\u0275cmp=u.Xpm({type:f,selectors:[["ng-component"]],decls:1,vars:0,template:function(l,p){1&l&&u._UZ(0,"router-outlet")},directives:function(){return[po]},encapsulation:2}),f})();function vi(f,c=""){for(let l=0;lS(p)===c);return l.push(...f.filter(p=>S(p)!==c)),l}const oe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function pe(f,c,l){var p;if(""===c.path)return"full"===c.pathMatch&&(f.hasChildren()||l.length>0)?Object.assign({},oe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const b=(c.matcher||ot)(l,f,c);if(!b)return Object.assign({},oe);const R={};nt(b.posParams,(q,Se)=>{R[Se]=q.path});const V=b.consumed.length>0?Object.assign(Object.assign({},R),b.consumed[b.consumed.length-1].parameters):R;return{matched:!0,consumedSegments:b.consumed,lastChild:b.consumed.length,parameters:V,positionalParamSegments:null!==(p=b.posParams)&&void 0!==p?p:{}}}function Be(f,c,l,p,C="corrected"){if(l.length>0&&function(f,c,l){return l.some(p=>M(f,c,p)&&S(p)!==Ne)}(f,l,p)){const R=new et(c,function(f,c,l,p){const C={};C[Ne]=p,p._sourceSegment=f,p._segmentIndexShift=c.length;for(const b of l)if(""===b.path&&S(b)!==Ne){const R=new et([],{});R._sourceSegment=f,R._segmentIndexShift=c.length,C[S(b)]=R}return C}(f,c,p,new et(l,f.children)));return R._sourceSegment=f,R._segmentIndexShift=c.length,{segmentGroup:R,slicedSegments:[]}}if(0===l.length&&function(f,c,l){return l.some(p=>M(f,c,p))}(f,l,p)){const R=new et(f.segments,function(f,c,l,p,C,b){const R={};for(const V of p)if(M(f,l,V)&&!C[S(V)]){const q=new et([],{});q._sourceSegment=f,q._segmentIndexShift="legacy"===b?f.segments.length:c.length,R[S(V)]=q}return Object.assign(Object.assign({},C),R)}(f,c,l,p,f.children,C));return R._sourceSegment=f,R._segmentIndexShift=c.length,{segmentGroup:R,slicedSegments:l}}const b=new et(f.segments,f.children);return b._sourceSegment=f,b._segmentIndexShift=c.length,{segmentGroup:b,slicedSegments:l}}function M(f,c,l){return(!(f.hasChildren()||c.length>0)||"full"!==l.pathMatch)&&""===l.path}function Z(f,c,l,p){return!!(S(f)===p||p!==Ne&&M(c,l,f))&&("**"===f.path||pe(c,f,l).matched)}function we(f,c,l){return 0===c.length&&!f.children[l]}class At{constructor(c){this.segmentGroup=c||null}}class an{constructor(c){this.urlTree=c}}function Qt(f){return new Q.y(c=>c.error(new At(f)))}function zt(f){return new Q.y(c=>c.error(new an(f)))}function qi(f){return new Q.y(c=>c.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f}'`)))}class bn{constructor(c,l,p,C,b){this.configLoader=l,this.urlSerializer=p,this.urlTree=C,this.config=b,this.allowRedirects=!0,this.ngModule=c.get(u.h0i)}apply(){const c=Be(this.urlTree.root,[],[],this.config).segmentGroup,l=new et(c.segments,c.children);return this.expandSegmentGroup(this.ngModule,this.config,l,Ne).pipe((0,yt.U)(b=>this.createUrlTree(Qr(b),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,gn.K)(b=>{if(b instanceof an)return this.allowRedirects=!1,this.match(b.urlTree);throw b instanceof At?this.noMatchError(b):b}))}match(c){return this.expandSegmentGroup(this.ngModule,this.config,c.root,Ne).pipe((0,yt.U)(C=>this.createUrlTree(Qr(C),c.queryParams,c.fragment))).pipe((0,gn.K)(C=>{throw C instanceof At?this.noMatchError(C):C}))}noMatchError(c){return new Error(`Cannot match any routes. URL Segment: '${c.segmentGroup}'`)}createUrlTree(c,l,p){const C=c.segments.length>0?new et([],{[Ne]:c}):c;return new Kn(C,l,p)}expandSegmentGroup(c,l,p,C){return 0===p.segments.length&&p.hasChildren()?this.expandChildren(c,l,p).pipe((0,yt.U)(b=>new et([],b))):this.expandSegment(c,p,l,p.segments,C,!0)}expandChildren(c,l,p){const C=[];for(const b of Object.keys(p.children))"primary"===b?C.unshift(b):C.push(b);return(0,P.Dp)(C).pipe((0,Tt.b)(b=>{const R=p.children[b],V=B(l,b);return this.expandSegmentGroup(c,V,R,b).pipe((0,yt.U)(q=>({segment:q,outlet:b})))}),ze((b,R)=>(b[R.outlet]=R.segment,b),{}),function(f,c){var l=arguments.length>=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,Ie(1),l?Xe(c):be(function(){return new Me}))}}())}expandSegment(c,l,p,C,b,R){return(0,P.Dp)(p).pipe((0,Tt.b)(V=>this.expandSegmentAgainstRoute(c,l,p,V,C,b,R).pipe((0,gn.K)(Se=>{if(Se instanceof At)return(0,H.of)(null);throw Se}))),jt(V=>!!V),(0,gn.K)((V,q)=>{if(V instanceof Me||"EmptyError"===V.name){if(we(l,C,b))return(0,H.of)(new et([],{}));throw new At(l)}throw V}))}expandSegmentAgainstRoute(c,l,p,C,b,R,V){return Z(C,l,b,R)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(c,l,C,b,R):V&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R):Qt(l):Qt(l)}expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R){return"**"===C.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(c,p,C,R):this.expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R)}expandWildCardWithParamsAgainstRouteUsingRedirect(c,l,p,C){const b=this.applyRedirectCommands([],p.redirectTo,{});return p.redirectTo.startsWith("/")?zt(b):this.lineralizeSegments(p,b).pipe((0,it.z)(R=>{const V=new et(R,{});return this.expandSegment(c,V,l,R,C,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R){const{matched:V,consumedSegments:q,lastChild:Se,positionalParamSegments:Ue}=pe(l,C,b);if(!V)return Qt(l);const at=this.applyRedirectCommands(q,C.redirectTo,Ue);return C.redirectTo.startsWith("/")?zt(at):this.lineralizeSegments(C,at).pipe((0,it.z)(kt=>this.expandSegment(c,l,p,kt.concat(b.slice(Se)),R,!1)))}matchSegmentAgainstRoute(c,l,p,C,b){if("**"===p.path)return p.loadChildren?(p._loadedConfig?(0,H.of)(p._loadedConfig):this.configLoader.load(c.injector,p)).pipe((0,yt.U)(kt=>(p._loadedConfig=kt,new et(C,{})))):(0,H.of)(new et(C,{}));const{matched:R,consumedSegments:V,lastChild:q}=pe(l,p,C);if(!R)return Qt(l);const Se=C.slice(q);return this.getChildConfig(c,p,C).pipe((0,it.z)(at=>{const kt=at.module,Ct=at.routes,{segmentGroup:_r,slicedSegments:or}=Be(l,V,Se,Ct),Lr=new et(_r.segments,_r.children);if(0===or.length&&Lr.hasChildren())return this.expandChildren(kt,Ct,Lr).pipe((0,yt.U)(Ho=>new et(V,Ho)));if(0===Ct.length&&0===or.length)return(0,H.of)(new et(V,{}));const Xi=S(p)===b;return this.expandSegment(kt,Lr,Ct,or,Xi?Ne:b,!0).pipe((0,yt.U)(sr=>new et(V.concat(sr.segments),sr.children)))}))}getChildConfig(c,l,p){return l.children?(0,H.of)(new Nt(l.children,c)):l.loadChildren?void 0!==l._loadedConfig?(0,H.of)(l._loadedConfig):this.runCanLoadGuards(c.injector,l,p).pipe((0,it.z)(C=>{return C?this.configLoader.load(c.injector,l).pipe((0,yt.U)(b=>(l._loadedConfig=b,b))):(f=l,new Q.y(c=>c.error(wt(`Cannot load children because the guard of the route "path: '${f.path}'" returned false`))));var f})):(0,H.of)(new Nt([],c))}runCanLoadGuards(c,l,p){const C=l.canLoad;if(!C||0===C.length)return(0,H.of)(!0);const b=C.map(R=>{const V=c.get(R);let q;if((f=V)&&$t(f.canLoad))q=V.canLoad(l,p);else{if(!$t(V))throw new Error("Invalid CanLoad guard");q=V(l,p)}var f;return Mn(q)});return(0,H.of)(b).pipe(gr(),It(R=>{if(!Or(R))return;const V=wt(`Redirecting to "${this.urlSerializer.serialize(R)}"`);throw V.url=R,V}),(0,yt.U)(R=>!0===R))}lineralizeSegments(c,l){let p=[],C=l.root;for(;;){if(p=p.concat(C.segments),0===C.numberOfChildren)return(0,H.of)(p);if(C.numberOfChildren>1||!C.children[Ne])return qi(c.redirectTo);C=C.children[Ne]}}applyRedirectCommands(c,l,p){return this.applyRedirectCreatreUrlTree(l,this.urlSerializer.parse(l),c,p)}applyRedirectCreatreUrlTree(c,l,p,C){const b=this.createSegmentGroup(c,l.root,p,C);return new Kn(b,this.createQueryParams(l.queryParams,this.urlTree.queryParams),l.fragment)}createQueryParams(c,l){const p={};return nt(c,(C,b)=>{if("string"==typeof C&&C.startsWith(":")){const V=C.substring(1);p[b]=l[V]}else p[b]=C}),p}createSegmentGroup(c,l,p,C){const b=this.createSegments(c,l.segments,p,C);let R={};return nt(l.children,(V,q)=>{R[q]=this.createSegmentGroup(c,V,p,C)}),new et(b,R)}createSegments(c,l,p,C){return l.map(b=>b.path.startsWith(":")?this.findPosParam(c,b,C):this.findOrReturn(b,p))}findPosParam(c,l,p){const C=p[l.path.substring(1)];if(!C)throw new Error(`Cannot redirect to '${c}'. Cannot find '${l.path}'.`);return C}findOrReturn(c,l){let p=0;for(const C of l){if(C.path===c.path)return l.splice(p),C;p++}return c}}function Qr(f){const c={};for(const p of Object.keys(f.children)){const b=Qr(f.children[p]);(b.segments.length>0||b.hasChildren())&&(c[p]=b)}return function(f){if(1===f.numberOfChildren&&f.children[Ne]){const c=f.children[Ne];return new et(f.segments.concat(c.segments),c.children)}return f}(new et(f.segments,c))}class Xr{constructor(c){this.path=c,this.route=this.path[this.path.length-1]}}class ao{constructor(c,l){this.component=c,this.route=l}}function ks(f,c,l){const p=f._root;return lo(p,c?c._root:null,l,[p.value])}function Vs(f,c,l){const p=function(f){if(!f)return null;for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig}return null}(c);return(p?p.module.injector:l).get(f)}function lo(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=hn(c);return f.children.forEach(R=>{(function(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=f.value,R=c?c.value:null,V=l?l.getContext(f.value.outlet):null;if(R&&b.routeConfig===R.routeConfig){const q=function(f,c,l){if("function"==typeof l)return l(f,c);switch(l){case"pathParamsChange":return!En(f.url,c.url);case"pathParamsOrQueryParamsChange":return!En(f.url,c.url)||!Le(f.queryParams,c.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$n(f,c)||!Le(f.queryParams,c.queryParams);case"paramsChange":default:return!$n(f,c)}}(R,b,b.routeConfig.runGuardsAndResolvers);q?C.canActivateChecks.push(new Xr(p)):(b.data=R.data,b._resolvedData=R._resolvedData),lo(f,c,b.component?V?V.children:null:l,p,C),q&&V&&V.outlet&&V.outlet.isActivated&&C.canDeactivateChecks.push(new ao(V.outlet.component,R))}else R&&uo(c,V,C),C.canActivateChecks.push(new Xr(p)),lo(f,null,b.component?V?V.children:null:l,p,C)})(R,b[R.value.outlet],l,p.concat([R.value]),C),delete b[R.value.outlet]}),nt(b,(R,V)=>uo(R,l.getContext(V),C)),C}function uo(f,c,l){const p=hn(f),C=f.value;nt(p,(b,R)=>{uo(b,C.component?c?c.children.getContext(R):null:c,l)}),l.canDeactivateChecks.push(new ao(C.component&&c&&c.outlet&&c.outlet.isActivated?c.outlet.component:null,C))}class Us{}function To(f){return new Q.y(c=>c.error(f))}class ou{constructor(c,l,p,C,b,R){this.rootComponentType=c,this.config=l,this.urlTree=p,this.url=C,this.paramsInheritanceStrategy=b,this.relativeLinkResolution=R}recognize(){const c=Be(this.urlTree.root,[],[],this.config.filter(R=>void 0===R.redirectTo),this.relativeLinkResolution).segmentGroup,l=this.processSegmentGroup(this.config,c,Ne);if(null===l)return null;const p=new Ar([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),C=new _n(p,l),b=new ir(this.url,C);return this.inheritParamsAndData(b._root),b}inheritParamsAndData(c){const l=c.value,p=Mt(l,this.paramsInheritanceStrategy);l.params=Object.freeze(p.params),l.data=Object.freeze(p.data),c.children.forEach(C=>this.inheritParamsAndData(C))}processSegmentGroup(c,l,p){return 0===l.segments.length&&l.hasChildren()?this.processChildren(c,l):this.processSegment(c,l,l.segments,p)}processChildren(c,l){const p=[];for(const b of Object.keys(l.children)){const R=l.children[b],V=B(c,b),q=this.processSegmentGroup(V,R,b);if(null===q)return null;p.push(...q)}const C=yr(p);return C.sort((c,l)=>c.value.outlet===Ne?-1:l.value.outlet===Ne?1:c.value.outlet.localeCompare(l.value.outlet)),C}processSegment(c,l,p,C){for(const b of c){const R=this.processSegmentAgainstRoute(b,l,p,C);if(null!==R)return R}return we(l,p,C)?[]:null}processSegmentAgainstRoute(c,l,p,C){if(c.redirectTo||!Z(c,l,p,C))return null;let b,R=[],V=[];if("**"===c.path){const Ct=p.length>0?Dr(p).parameters:{};b=new Ar(p,Ct,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+p.length,Bs(c))}else{const Ct=pe(l,c,p);if(!Ct.matched)return null;R=Ct.consumedSegments,V=p.slice(Ct.lastChild),b=new Ar(R,Ct.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+R.length,Bs(c))}const q=(f=c).children?f.children:f.loadChildren?f._loadedConfig.routes:[],{segmentGroup:Se,slicedSegments:Ue}=Be(l,R,V,q.filter(Ct=>void 0===Ct.redirectTo),this.relativeLinkResolution);var f;if(0===Ue.length&&Se.hasChildren()){const Ct=this.processChildren(q,Se);return null===Ct?null:[new _n(b,Ct)]}if(0===q.length&&0===Ue.length)return[new _n(b,[])];const at=S(c)===C,kt=this.processSegment(q,Se,Ue,at?Ne:C);return null===kt?null:[new _n(b,kt)]}}function Hn(f){const c=f.value.routeConfig;return c&&""===c.path&&void 0===c.redirectTo}function yr(f){const c=[],l=new Set;for(const p of f){if(!Hn(p)){c.push(p);continue}const C=c.find(b=>p.value.routeConfig===b.value.routeConfig);void 0!==C?(C.children.push(...p.children),l.add(C)):c.push(p)}for(const p of l){const C=yr(p.children);c.push(new _n(p.value,C))}return c.filter(p=>!l.has(p))}function Vi(f){let c=f;for(;c._sourceSegment;)c=c._sourceSegment;return c}function Fr(f){let c=f,l=c._segmentIndexShift?c._segmentIndexShift:0;for(;c._sourceSegment;)c=c._sourceSegment,l+=c._segmentIndexShift?c._segmentIndexShift:0;return l-1}function Ha(f){return f.data||{}}function Bs(f){return f.resolve||{}}function fo(f){return ue(c=>{const l=f(c);return l?(0,P.Dp)(l).pipe((0,yt.U)(()=>c)):(0,H.of)(c)})}class No extends class{shouldDetach(c){return!1}store(c,l){}shouldAttach(c){return!1}retrieve(c){return null}shouldReuseRoute(c,l){return c.routeConfig===l.routeConfig}}{}const Ro=new u.OlP("ROUTES");class Hs{constructor(c,l,p,C){this.loader=c,this.compiler=l,this.onLoadStartListener=p,this.onLoadEndListener=C}load(c,l){if(l._loader$)return l._loader$;this.onLoadStartListener&&this.onLoadStartListener(l);const C=this.loadModuleFactory(l.loadChildren).pipe((0,yt.U)(b=>{this.onLoadEndListener&&this.onLoadEndListener(l);const R=b.create(c);return new Nt(rn(R.injector.get(Ro,void 0,u.XFs.Self|u.XFs.Optional)).map(v),R)}),(0,gn.K)(b=>{throw l._loader$=void 0,b}));return l._loader$=new le(C,()=>new re.x).pipe(lt()),l._loader$}loadModuleFactory(c){return"string"==typeof c?(0,P.Dp)(this.loader.load(c)):Mn(c()).pipe((0,it.z)(l=>l instanceof u.YKP?(0,H.of)(l):(0,P.Dp)(this.compiler.compileModuleAsync(l))))}}class za{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ui,this.attachRef=null}}class Ui{constructor(){this.contexts=new Map}onChildOutletCreated(c,l){const p=this.getOrCreateContext(c);p.outlet=l,this.contexts.set(c,p)}onChildOutletDestroyed(c){const l=this.getContext(c);l&&(l.outlet=null)}onOutletDeactivated(){const c=this.contexts;return this.contexts=new Map,c}onOutletReAttached(c){this.contexts=c}getOrCreateContext(c){let l=this.getContext(c);return l||(l=new za,this.contexts.set(c,l)),l}getContext(c){return this.contexts.get(c)||null}}class cu{shouldProcessUrl(c){return!0}extract(c){return c}merge(c,l){return c}}function du(f){throw f}function Gn(f,c,l){return c.parse("/")}function ei(f,c){return(0,H.of)(null)}const Xt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fu={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wn=(()=>{class f{constructor(l,p,C,b,R,V,q,Se){this.rootComponentType=l,this.urlSerializer=p,this.rootContexts=C,this.location=b,this.config=Se,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new re.x,this.errorHandler=du,this.malformedUriErrorHandler=Gn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ei,afterPreactivation:ei},this.urlHandlingStrategy=new cu,this.routeReuseStrategy=new No,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=R.get(u.h0i),this.console=R.get(u.c2e);const kt=R.get(u.R0b);this.isNgZoneEnabled=kt instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(Se),this.currentUrlTree=new Kn(new et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Hs(V,q,Ct=>this.triggerEvent(new G(Ct)),Ct=>this.triggerEvent(new W(Ct))),this.routerState=Un(this.currentUrlTree,this.rootComponentType),this.transitions=new te({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()}get browserPageId(){var l;return null===(l=this.location.getState())||void 0===l?void 0:l.\u0275routerPageId}setupNavigations(l){const p=this.events;return l.pipe((0,ee.h)(C=>0!==C.id),(0,yt.U)(C=>Object.assign(Object.assign({},C),{extractedUrl:this.urlHandlingStrategy.extract(C.rawUrl)})),ue(C=>{let b=!1,R=!1;return(0,H.of)(C).pipe(It(V=>{this.currentNavigation={id:V.id,initialUrl:V.currentRawUrl,extractedUrl:V.extractedUrl,trigger:V.source,extras:V.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ue(V=>{const q=!this.navigated||V.extractedUrl.toString()!==this.browserUrlTree.toString(),Se=("reload"===this.onSameUrlNavigation||q)&&this.urlHandlingStrategy.shouldProcessUrl(V.rawUrl);if(Fo(V.source)&&(this.browserUrlTree=V.rawUrl),Se)return(0,H.of)(V).pipe(ue(Ue=>{const at=this.transitions.getValue();return p.next(new Cn(Ue.id,this.serializeUrl(Ue.extractedUrl),Ue.source,Ue.restoredState)),at!==this.transitions.getValue()?X.E:Promise.resolve(Ue)}),function(f,c,l,p){return ue(C=>function(f,c,l,p,C){return new bn(f,c,l,p,C).apply()}(f,c,l,C.extractedUrl,p).pipe((0,yt.U)(b=>Object.assign(Object.assign({},C),{urlAfterRedirects:b}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),It(Ue=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Ue.urlAfterRedirects})}),function(f,c,l,p,C){return(0,it.z)(b=>function(f,c,l,p,C="emptyOnly",b="legacy"){try{const R=new ou(f,c,l,p,C,b).recognize();return null===R?To(new Us):(0,H.of)(R)}catch(R){return To(R)}}(f,c,b.urlAfterRedirects,l(b.urlAfterRedirects),p,C).pipe((0,yt.U)(R=>Object.assign(Object.assign({},b),{targetSnapshot:R}))))}(this.rootComponentType,this.config,Ue=>this.serializeUrl(Ue),this.paramsInheritanceStrategy,this.relativeLinkResolution),It(Ue=>{"eager"===this.urlUpdateStrategy&&(Ue.extras.skipLocationChange||this.setBrowserUrl(Ue.urlAfterRedirects,Ue),this.browserUrlTree=Ue.urlAfterRedirects);const at=new Ft(Ue.id,this.serializeUrl(Ue.extractedUrl),this.serializeUrl(Ue.urlAfterRedirects),Ue.targetSnapshot);p.next(at)}));if(q&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:at,extractedUrl:kt,source:Ct,restoredState:_r,extras:or}=V,Lr=new Cn(at,this.serializeUrl(kt),Ct,_r);p.next(Lr);const Xi=Un(kt,this.rootComponentType).snapshot;return(0,H.of)(Object.assign(Object.assign({},V),{targetSnapshot:Xi,urlAfterRedirects:kt,extras:Object.assign(Object.assign({},or),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=V.rawUrl,this.browserUrlTree=V.urlAfterRedirects,V.resolve(null),X.E}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.beforePreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),It(V=>{const q=new gt(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot);this.triggerEvent(q)}),(0,yt.U)(V=>Object.assign(Object.assign({},V),{guards:ks(V.targetSnapshot,V.currentSnapshot,this.rootContexts)})),function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,currentSnapshot:C,guards:{canActivateChecks:b,canDeactivateChecks:R}}=l;return 0===R.length&&0===b.length?(0,H.of)(Object.assign(Object.assign({},l),{guardsResult:!0})):function(f,c,l,p){return(0,P.Dp)(f).pipe((0,it.z)(C=>function(f,c,l,p,C){const b=c&&c.routeConfig?c.routeConfig.canDeactivate:null;if(!b||0===b.length)return(0,H.of)(!0);const R=b.map(V=>{const q=Vs(V,c,C);let Se;if(function(f){return f&&$t(f.canDeactivate)}(q))Se=Mn(q.canDeactivate(f,c,l,p));else{if(!$t(q))throw new Error("Invalid CanDeactivate guard");Se=Mn(q(f,c,l,p))}return Se.pipe(jt())});return(0,H.of)(R).pipe(gr())}(C.component,C.route,l,c,p)),jt(C=>!0!==C,!0))}(R,p,C,f).pipe((0,it.z)(V=>V&&function(f){return"boolean"==typeof f}(V)?function(f,c,l,p){return(0,P.Dp)(c).pipe((0,Tt.b)(C=>he(function(f,c){return null!==f&&c&&c(new ge(f)),(0,H.of)(!0)}(C.route.parent,p),function(f,c){return null!==f&&c&&c(new Re(f)),(0,H.of)(!0)}(C.route,p),function(f,c,l){const p=c[c.length-1],b=c.slice(0,c.length-1).reverse().map(R=>function(f){const c=f.routeConfig?f.routeConfig.canActivateChild:null;return c&&0!==c.length?{node:f,guards:c}:null}(R)).filter(R=>null!==R).map(R=>Ke(()=>{const V=R.guards.map(q=>{const Se=Vs(q,R.node,l);let Ue;if(function(f){return f&&$t(f.canActivateChild)}(Se))Ue=Mn(Se.canActivateChild(p,f));else{if(!$t(Se))throw new Error("Invalid CanActivateChild guard");Ue=Mn(Se(p,f))}return Ue.pipe(jt())});return(0,H.of)(V).pipe(gr())}));return(0,H.of)(b).pipe(gr())}(f,C.path,l),function(f,c,l){const p=c.routeConfig?c.routeConfig.canActivate:null;if(!p||0===p.length)return(0,H.of)(!0);const C=p.map(b=>Ke(()=>{const R=Vs(b,c,l);let V;if(function(f){return f&&$t(f.canActivate)}(R))V=Mn(R.canActivate(c,f));else{if(!$t(R))throw new Error("Invalid CanActivate guard");V=Mn(R(c,f))}return V.pipe(jt())}));return(0,H.of)(C).pipe(gr())}(f,C.route,l))),jt(C=>!0!==C,!0))}(p,b,f,c):(0,H.of)(V)),(0,yt.U)(V=>Object.assign(Object.assign({},l),{guardsResult:V})))})}(this.ngModule.injector,V=>this.triggerEvent(V)),It(V=>{if(Or(V.guardsResult)){const Se=wt(`Redirecting to "${this.serializeUrl(V.guardsResult)}"`);throw Se.url=V.guardsResult,Se}const q=new tr(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot,!!V.guardsResult);this.triggerEvent(q)}),(0,ee.h)(V=>!!V.guardsResult||(this.restoreHistory(V),this.cancelNavigationTransition(V,""),!1)),fo(V=>{if(V.guards.canActivateChecks.length)return(0,H.of)(V).pipe(It(q=>{const Se=new Ni(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}),ue(q=>{let Se=!1;return(0,H.of)(q).pipe(function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,guards:{canActivateChecks:C}}=l;if(!C.length)return(0,H.of)(l);let b=0;return(0,P.Dp)(C).pipe((0,Tt.b)(R=>function(f,c,l,p){return function(f,c,l,p){const C=Object.keys(f);if(0===C.length)return(0,H.of)({});const b={};return(0,P.Dp)(C).pipe((0,it.z)(R=>function(f,c,l,p){const C=Vs(f,c,p);return Mn(C.resolve?C.resolve(c,l):C(c,l))}(f[R],c,l,p).pipe(It(V=>{b[R]=V}))),Ie(1),(0,it.z)(()=>Object.keys(b).length===C.length?(0,H.of)(b):X.E))}(f._resolve,f,c,p).pipe((0,yt.U)(b=>(f._resolvedData=b,f.data=Object.assign(Object.assign({},f.data),Mt(f,l).resolve),null)))}(R.route,p,f,c)),It(()=>b++),Ie(1),(0,it.z)(R=>b===C.length?(0,H.of)(l):X.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),It({next:()=>Se=!0,complete:()=>{Se||(this.restoreHistory(q),this.cancelNavigationTransition(q,"At least one route resolver didn't emit any value."))}}))}),It(q=>{const Se=new fe(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}))}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.afterPreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),(0,yt.U)(V=>{const q=function(f,c,l){const p=Sr(f,c._root,l?l._root:void 0);return new Ht(p,c)}(this.routeReuseStrategy,V.targetSnapshot,V.currentRouterState);return Object.assign(Object.assign({},V),{targetRouterState:q})}),It(V=>{this.currentUrlTree=V.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,V.rawUrl),this.routerState=V.targetRouterState,"deferred"===this.urlUpdateStrategy&&(V.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,V),this.browserUrlTree=V.urlAfterRedirects)}),((f,c,l)=>(0,yt.U)(p=>(new Oe(c,p.targetRouterState,p.currentRouterState,l).activate(f),p)))(this.rootContexts,this.routeReuseStrategy,V=>this.triggerEvent(V)),It({next(){b=!0},complete(){b=!0}}),function(f){return(0,$e.e)(function(c,l){try{c.subscribe(l)}finally{l.add(f)}})}(()=>{if(!b&&!R){const V=`Navigation ID ${C.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(C),this.cancelNavigationTransition(C,V)):this.cancelNavigationTransition(C,V)}this.currentNavigation=null}),(0,gn.K)(V=>{if(R=!0,function(f){return f&&f[zn]}(V)){const q=Or(V.url);q||(this.navigated=!0,this.restoreHistory(C,!0));const Se=new xt(C.id,this.serializeUrl(C.extractedUrl),V.message);p.next(Se),q?setTimeout(()=>{const Ue=this.urlHandlingStrategy.merge(V.url,this.rawUrlTree),at={skipLocationChange:C.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Fo(C.source)};this.scheduleNavigation(Ue,"imperative",null,at,{resolve:C.resolve,reject:C.reject,promise:C.promise})},0):C.resolve(!1)}else{this.restoreHistory(C,!0);const q=new Hr(C.id,this.serializeUrl(C.extractedUrl),V);p.next(q);try{C.resolve(this.errorHandler(V))}catch(Se){C.reject(Se)}}return X.E}))}))}resetRootComponentType(l){this.rootComponentType=l,this.routerState.root.component=this.rootComponentType}getTransition(){const l=this.transitions.value;return l.urlAfterRedirects=this.browserUrlTree,l}setTransition(l){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),l))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(l=>{const p=this.extractLocationChangeInfoFromEvent(l);this.shouldScheduleNavigation(this.lastLocationChangeInfo,p)&&setTimeout(()=>{const{source:C,state:b,urlTree:R}=p,V={replaceUrl:!0};if(b){const q=Object.assign({},b);delete q.navigationId,delete q.\u0275routerPageId,0!==Object.keys(q).length&&(V.state=q)}this.scheduleNavigation(R,C,b,V)},0),this.lastLocationChangeInfo=p}))}extractLocationChangeInfoFromEvent(l){var p;return{source:"popstate"===l.type?"popstate":"hashchange",urlTree:this.parseUrl(l.url),state:(null===(p=l.state)||void 0===p?void 0:p.navigationId)?l.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(l,p){if(!l)return!0;const C=p.urlTree.toString()===l.urlTree.toString();return p.transitionId!==l.transitionId||!C||!("hashchange"===p.source&&"popstate"===l.source||"popstate"===p.source&&"hashchange"===l.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(l){this.events.next(l)}resetConfig(l){vi(l),this.config=l.map(v),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(l,p={}){const{relativeTo:C,queryParams:b,fragment:R,queryParamsHandling:V,preserveFragment:q}=p,Se=C||this.routerState.root,Ue=q?this.currentUrlTree.fragment:R;let at=null;switch(V){case"merge":at=Object.assign(Object.assign({},this.currentUrlTree.queryParams),b);break;case"preserve":at=this.currentUrlTree.queryParams;break;default:at=b||null}return null!==at&&(at=this.removeEmptyProps(at)),function(f,c,l,p,C){if(0===l.length)return Ir(c.root,c.root,c,p,C);const b=function(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new mi(!0,0,f);let c=0,l=!1;const p=f.reduce((C,b,R)=>{if("object"==typeof b&&null!=b){if(b.outlets){const V={};return nt(b.outlets,(q,Se)=>{V[Se]="string"==typeof q?q.split("/"):q}),[...C,{outlets:V}]}if(b.segmentPath)return[...C,b.segmentPath]}return"string"!=typeof b?[...C,b]:0===R?(b.split("/").forEach((V,q)=>{0==q&&"."===V||(0==q&&""===V?l=!0:".."===V?c++:""!=V&&C.push(V))}),C):[...C,b]},[]);return new mi(l,c,p)}(l);if(b.toRoot())return Ir(c.root,new et([],{}),c,p,C);const R=function(f,c,l){if(f.isAbsolute)return new yi(c.root,!0,0);if(-1===l.snapshot._lastPathIndex){const b=l.snapshot._urlSegment;return new yi(b,b===c.root,0)}const p=jn(f.commands[0])?0:1;return function(f,c,l){let p=f,C=c,b=l;for(;b>C;){if(b-=C,p=p.parent,!p)throw new Error("Invalid number of '../'");C=p.segments.length}return new yi(p,!1,C-b)}(l.snapshot._urlSegment,l.snapshot._lastPathIndex+p,f.numberOfDoubleDots)}(b,c,f),V=R.processChildren?Jr(R.segmentGroup,R.index,b.commands):_i(R.segmentGroup,R.index,b.commands);return Ir(R.segmentGroup,V,c,p,C)}(Se,this.currentUrlTree,l,at,null!=Ue?Ue:null)}navigateByUrl(l,p={skipLocationChange:!1}){const C=Or(l)?l:this.parseUrl(l),b=this.urlHandlingStrategy.merge(C,this.rawUrlTree);return this.scheduleNavigation(b,"imperative",null,p)}navigate(l,p={skipLocationChange:!1}){return function(f){for(let c=0;c{const b=l[C];return null!=b&&(p[C]=b),p},{})}processNavigations(){this.navigations.subscribe(l=>{this.navigated=!0,this.lastSuccessfulId=l.id,this.currentPageId=l.targetPageId,this.events.next(new Rn(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,l.resolve(!0)},l=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(l,p,C,b,R){var V,q;if(this.disposed)return Promise.resolve(!1);const Se=this.getTransition(),Ue=Fo(p)&&Se&&!Fo(Se.source),Ct=(this.lastSuccessfulId===Se.id||this.currentNavigation?Se.rawUrl:Se.urlAfterRedirects).toString()===l.toString();if(Ue&&Ct)return Promise.resolve(!0);let _r,or,Lr;R?(_r=R.resolve,or=R.reject,Lr=R.promise):Lr=new Promise((sr,Ho)=>{_r=sr,or=Ho});const Xi=++this.navigationId;let Bi;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(C=this.location.getState()),Bi=C&&C.\u0275routerPageId?C.\u0275routerPageId:b.replaceUrl||b.skipLocationChange?null!==(V=this.browserPageId)&&void 0!==V?V:0:(null!==(q=this.browserPageId)&&void 0!==q?q:0)+1):Bi=0,this.setTransition({id:Xi,targetPageId:Bi,source:p,restoredState:C,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:l,extras:b,resolve:_r,reject:or,promise:Lr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Lr.catch(sr=>Promise.reject(sr))}setBrowserUrl(l,p){const C=this.urlSerializer.serialize(l),b=Object.assign(Object.assign({},p.extras.state),this.generateNgRouterState(p.id,p.targetPageId));this.location.isCurrentPathEqualTo(C)||p.extras.replaceUrl?this.location.replaceState(C,"",b):this.location.go(C,"",b)}restoreHistory(l,p=!1){var C,b;if("computed"===this.canceledNavigationResolution){const R=this.currentPageId-l.targetPageId;"popstate"!==l.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(C=this.currentNavigation)||void 0===C?void 0:C.finalUrl)||0===R?this.currentUrlTree===(null===(b=this.currentNavigation)||void 0===b?void 0:b.finalUrl)&&0===R&&(this.resetState(l),this.browserUrlTree=l.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(R)}else"replace"===this.canceledNavigationResolution&&(p&&this.resetState(l),this.resetUrlToCurrentUrlTree())}resetState(l){this.routerState=l.currentRouterState,this.currentUrlTree=l.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,l.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(l,p){const C=new xt(l.id,this.serializeUrl(l.extractedUrl),p);this.triggerEvent(C),l.resolve(!1)}generateNgRouterState(l,p){return"computed"===this.canceledNavigationResolution?{navigationId:l,\u0275routerPageId:p}:{navigationId:l}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.DyG),u.LFG(yn),u.LFG(Ui),u.LFG(y.Ye),u.LFG(u.zs3),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Fo(f){return"imperative"!==f}let Lo=(()=>{class f{constructor(l,p,C,b,R){this.router=l,this.route=p,this.commands=[],this.onChanges=new re.x,null==C&&b.setAttribute(R.nativeElement,"tabindex","0")}ngOnChanges(l){this.onChanges.next(this)}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}onClick(){const l={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(l,p){1&l&&u.NdJ("click",function(){return p.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})(),ko=(()=>{class f{constructor(l,p,C){this.router=l,this.route=p,this.locationStrategy=C,this.commands=[],this.onChanges=new re.x,this.subscription=l.events.subscribe(b=>{b instanceof Rn&&this.updateTargetUrlAndHref()})}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}ngOnChanges(l){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(l,p,C,b,R){if(0!==l||p||C||b||R||"string"==typeof this.target&&"_self"!=this.target)return!0;const V={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,V),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.Y36(y.S$))},f.\u0275dir=u.lG2({type:f,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(l,p){1&l&&u.NdJ("click",function(b){return p.onClick(b.button,b.ctrlKey,b.shiftKey,b.altKey,b.metaKey)}),2&l&&(u.Ikx("href",p.href,u.LSH),u.uIk("target",p.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})();function ti(f){return""===f||!!f}let ho=(()=>{class f{constructor(l,p,C,b,R,V){this.router=l,this.element=p,this.renderer=C,this.cdr=b,this.link=R,this.linkWithHref=V,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=l.events.subscribe(q=>{q instanceof Rn&&this.update()})}ngAfterContentInit(){(0,H.of)(this.links.changes,this.linksWithHrefs.changes,(0,H.of)(null)).pipe((0,Ge.J)()).subscribe(l=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var l;null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe();const p=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(C=>!!C).map(C=>C.onChanges);this.linkInputChangesSubscription=(0,P.Dp)(p).pipe((0,Ge.J)()).subscribe(C=>{this.isActive!==this.isLinkActive(this.router)(C)&&this.update()})}set routerLinkActive(l){const p=Array.isArray(l)?l:l.split(" ");this.classes=p.filter(C=>!!C)}ngOnChanges(l){this.update()}ngOnDestroy(){var l;this.routerEventsSubscription.unsubscribe(),null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const l=this.hasActiveLinks();this.isActive!==l&&(this.isActive=l,this.cdr.markForCheck(),this.classes.forEach(p=>{l?this.renderer.addClass(this.element.nativeElement,p):this.renderer.removeClass(this.element.nativeElement,p)}))})}isLinkActive(l){const p=function(f){return!!f.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return C=>l.isActive(C.urlTree,p)}hasActiveLinks(){const l=this.isLinkActive(this.router);return this.link&&l(this.link)||this.linkWithHref&&l(this.linkWithHref)||this.links.some(l)||this.linksWithHrefs.some(l)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(u.sBO),u.Y36(Lo,8),u.Y36(ko,8))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLinkActive",""]],contentQueries:function(l,p,C){if(1&l&&(u.Suo(C,Lo,5),u.Suo(C,ko,5)),2&l){let b;u.iGM(b=u.CRH())&&(p.links=b),u.iGM(b=u.CRH())&&(p.linksWithHrefs=b)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[u.TTD]}),f})(),po=(()=>{class f{constructor(l,p,C,b,R){this.parentContexts=l,this.location=p,this.resolver=C,this.changeDetector=R,this.activated=null,this._activatedRoute=null,this.activateEvents=new u.vpe,this.deactivateEvents=new u.vpe,this.name=b||Ne,l.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const l=this.parentContexts.getContext(this.name);l&&l.route&&(l.attachRef?this.attach(l.attachRef,l.route):this.activateWith(l.route,l.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const l=this.activated;return this.activated=null,this._activatedRoute=null,l}attach(l,p){this.activated=l,this._activatedRoute=p,this.location.insert(l.hostView)}deactivate(){if(this.activated){const l=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(l)}}activateWith(l,p){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=l;const R=(p=p||this.resolver).resolveComponentFactory(l._futureSnapshot.routeConfig.component),V=this.parentContexts.getOrCreateContext(this.name).children,q=new Ka(l,V,this.location.injector);this.activated=this.location.createComponent(R,this.location.length,q),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Ui),u.Y36(u.s_b),u.Y36(u._Vd),u.$8M("name"),u.Y36(u.sBO))},f.\u0275dir=u.lG2({type:f,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),f})();class Ka{constructor(c,l,p){this.route=c,this.childContexts=l,this.parent=p}get(c,l){return c===Gt?this.route:c===Ui?this.childContexts:this.parent.get(c,l)}}class Ya{}class Ji{preload(c,l){return(0,H.of)(null)}}let Za=(()=>{class f{constructor(l,p,C,b,R){this.router=l,this.injector=b,this.preloadingStrategy=R,this.loader=new Hs(p,C,Se=>l.triggerEvent(new G(Se)),Se=>l.triggerEvent(new W(Se)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,ee.h)(l=>l instanceof Rn),(0,Tt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const l=this.injector.get(u.h0i);return this.processRoutes(l,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(l,p){const C=[];for(const b of p)if(b.loadChildren&&!b.canLoad&&b._loadedConfig){const R=b._loadedConfig;C.push(this.processRoutes(R.module,R.routes))}else b.loadChildren&&!b.canLoad?C.push(this.preloadConfig(l,b)):b.children&&C.push(this.processRoutes(l,b.children));return(0,P.Dp)(C).pipe((0,Ge.J)(),(0,yt.U)(b=>{}))}preloadConfig(l,p){return this.preloadingStrategy.preload(p,()=>(p._loadedConfig?(0,H.of)(p._loadedConfig):this.loader.load(l.injector,p)).pipe((0,it.z)(b=>(p._loadedConfig=b,this.processRoutes(b.module,b.routes)))))}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(u.zs3),u.LFG(Ya))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})(),Gs=(()=>{class f{constructor(l,p,C={}){this.router=l,this.viewportScroller=p,this.options=C,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},C.scrollPositionRestoration=C.scrollPositionRestoration||"disabled",C.anchorScrolling=C.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(l=>{l instanceof Cn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=l.navigationTrigger,this.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof Rn&&(this.lastId=l.id,this.scheduleScrollEvent(l,this.router.parseUrl(l.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(l=>{l instanceof xe&&(l.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(l,p){this.router.triggerEvent(new xe(l,"popstate"===this.lastSource?this.store[this.restoredId]:null,p))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(y.EM),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();const ni=new u.OlP("ROUTER_CONFIGURATION"),qa=new u.OlP("ROUTER_FORROOT_GUARD"),sf=[y.Ye,{provide:yn,useClass:zr},{provide:Wn,useFactory:function(f,c,l,p,C,b,R,V={},q,Se){const Ue=new Wn(null,f,c,l,p,C,b,rn(R));return q&&(Ue.urlHandlingStrategy=q),Se&&(Ue.routeReuseStrategy=Se),function(f,c){f.errorHandler&&(c.errorHandler=f.errorHandler),f.malformedUriErrorHandler&&(c.malformedUriErrorHandler=f.malformedUriErrorHandler),f.onSameUrlNavigation&&(c.onSameUrlNavigation=f.onSameUrlNavigation),f.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=f.paramsInheritanceStrategy),f.relativeLinkResolution&&(c.relativeLinkResolution=f.relativeLinkResolution),f.urlUpdateStrategy&&(c.urlUpdateStrategy=f.urlUpdateStrategy)}(V,Ue),V.enableTracing&&Ue.events.subscribe(at=>{var kt,Ct;null===(kt=console.group)||void 0===kt||kt.call(console,`Router Event: ${at.constructor.name}`),console.log(at.toString()),console.log(at),null===(Ct=console.groupEnd)||void 0===Ct||Ct.call(console)}),Ue},deps:[yn,Ui,y.Ye,u.zs3,u.v3s,u.Sil,Ro,ni,[class{},new u.FiY],[class{},new u.FiY]]},Ui,{provide:Gt,useFactory:function(f){return f.routerState.root},deps:[Wn]},{provide:u.v3s,useClass:u.EAV},Za,Ji,class{preload(c,l){return l().pipe((0,gn.K)(()=>(0,H.of)(null)))}},{provide:ni,useValue:{enableTracing:!1}}];function af(){return new u.PXZ("Router",Wn)}let Bo=(()=>{class f{constructor(l,p){}static forRoot(l,p){return{ngModule:f,providers:[sf,zs(l),{provide:qa,useFactory:$o,deps:[[Wn,new u.FiY,new u.tp0]]},{provide:ni,useValue:p||{}},{provide:y.S$,useFactory:Ws,deps:[y.lw,[new u.tBr(y.mr),new u.FiY],ni]},{provide:Gs,useFactory:Ja,deps:[Wn,y.EM,ni]},{provide:Ya,useExisting:p&&p.preloadingStrategy?p.preloadingStrategy:Ji},{provide:u.PXZ,multi:!0,useFactory:af},[Ei,{provide:u.ip1,multi:!0,useFactory:Ks,deps:[Ei]},{provide:mu,useFactory:jo,deps:[Ei]},{provide:u.tb,multi:!0,useExisting:mu}]]}}static forChild(l){return{ngModule:f,providers:[zs(l)]}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(qa,8),u.LFG(Wn,8))},f.\u0275mod=u.oAB({type:f}),f.\u0275inj=u.cJS({}),f})();function Ja(f,c,l){return l.scrollOffset&&c.setOffset(l.scrollOffset),new Gs(f,c,l)}function Ws(f,c,l={}){return l.useHash?new y.Do(f,c):new y.b0(f,c)}function $o(f){return"guarded"}function zs(f){return[{provide:u.deG,multi:!0,useValue:f},{provide:Ro,multi:!0,useValue:f}]}let Ei=(()=>{class f{constructor(l){this.injector=l,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new re.x}appInitializer(){return this.injector.get(y.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let p=null;const C=new Promise(V=>p=V),b=this.injector.get(Wn),R=this.injector.get(ni);return"disabled"===R.initialNavigation?(b.setUpLocationChangeListener(),p(!0)):"enabled"===R.initialNavigation||"enabledBlocking"===R.initialNavigation?(b.hooks.afterPreactivation=()=>this.initNavigation?(0,H.of)(null):(this.initNavigation=!0,p(!0),this.resultOfPreactivationDone),b.initialNavigation()):p(!0),C})}bootstrapListener(l){const p=this.injector.get(ni),C=this.injector.get(Za),b=this.injector.get(Gs),R=this.injector.get(Wn),V=this.injector.get(u.z2F);l===V.components[0]&&(("enabledNonBlocking"===p.initialNavigation||void 0===p.initialNavigation)&&R.initialNavigation(),C.setUpPreloading(),b.init(),R.resetRootComponentType(V.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.zs3))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Ks(f){return f.appInitializer.bind(f)}function jo(f){return f.bootstrapListener.bind(f)}const mu=new u.OlP("Router Initializer")},1776:(Ye,me,O)=>{"use strict";O.d(me,{y:()=>U});var y=O(4111),u=O(8839),ce=O(8794),re=O(2738);function Q(De){return 0===De.length?re.y:1===De.length?De[0]:function(ve){return De.reduce(function(He,Me){return Me(He)},ve)}}var K=O(6806),P=O(8853),x=O(4112),U=function(){function De(Pe){Pe&&(this._subscribe=Pe)}return De.prototype.lift=function(Pe){var ve=new De;return ve.source=this,ve.operator=Pe,ve},De.prototype.subscribe=function(Pe,ve,He){var Me=this,Ge=function(De){return De&&De instanceof y.Lv||function(De){return De&&(0,P.m)(De.next)&&(0,P.m)(De.error)&&(0,P.m)(De.complete)}(De)&&(0,u.Nn)(De)}(Pe)?Pe:new y.Hp(Pe,ve,He);return(0,x.x)(function(){var Fe=Me.operator,he=Me.source;Ge.add(Fe?Fe.call(Ge,he):he?Me._subscribe(Ge):Me._trySubscribe(Ge))}),Ge},De.prototype._trySubscribe=function(Pe){try{return this._subscribe(Pe)}catch(ve){Pe.error(ve)}},De.prototype.forEach=function(Pe,ve){var He=this;return new(ve=Y(ve))(function(Me,Ge){var We;We=He.subscribe(function(Fe){try{Pe(Fe)}catch(he){Ge(he),null==We||We.unsubscribe()}},Ge,Me)})},De.prototype._subscribe=function(Pe){var ve;return null===(ve=this.source)||void 0===ve?void 0:ve.subscribe(Pe)},De.prototype[ce.L]=function(){return this},De.prototype.pipe=function(){for(var Pe=[],ve=0;ve{"use strict";O.d(me,{x:()=>P});var y=O(9162),u=O(1776),ce=O(8839),te=(0,O(3864).d)(function(U){return function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Q=O(5850),K=O(4112),P=function(U){function Y(){var ae=U.call(this)||this;return ae.closed=!1,ae.observers=[],ae.isStopped=!1,ae.hasError=!1,ae.thrownError=null,ae}return(0,y.ZT)(Y,U),Y.prototype.lift=function(ae){var Ee=new x(this,this);return Ee.operator=ae,Ee},Y.prototype._throwIfClosed=function(){if(this.closed)throw new te},Y.prototype.next=function(ae){var Ee=this;(0,K.x)(function(){var De,Pe;if(Ee._throwIfClosed(),!Ee.isStopped){var ve=Ee.observers.slice();try{for(var He=(0,y.XA)(ve),Me=He.next();!Me.done;Me=He.next())Me.value.next(ae)}catch(We){De={error:We}}finally{try{Me&&!Me.done&&(Pe=He.return)&&Pe.call(He)}finally{if(De)throw De.error}}}})},Y.prototype.error=function(ae){var Ee=this;(0,K.x)(function(){if(Ee._throwIfClosed(),!Ee.isStopped){Ee.hasError=Ee.isStopped=!0,Ee.thrownError=ae;for(var De=Ee.observers;De.length;)De.shift().error(ae)}})},Y.prototype.complete=function(){var ae=this;(0,K.x)(function(){if(ae._throwIfClosed(),!ae.isStopped){ae.isStopped=!0;for(var Ee=ae.observers;Ee.length;)Ee.shift().complete()}})},Y.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Y.prototype,"observed",{get:function(){var ae;return(null===(ae=this.observers)||void 0===ae?void 0:ae.length)>0},enumerable:!1,configurable:!0}),Y.prototype._trySubscribe=function(ae){return this._throwIfClosed(),U.prototype._trySubscribe.call(this,ae)},Y.prototype._subscribe=function(ae){return this._throwIfClosed(),this._checkFinalizedStatuses(ae),this._innerSubscribe(ae)},Y.prototype._innerSubscribe=function(ae){var ve=this.observers;return this.hasError||this.isStopped?ce.Lc:(ve.push(ae),new ce.w0(function(){return(0,Q.P)(ve,ae)}))},Y.prototype._checkFinalizedStatuses=function(ae){var ve=this.isStopped;this.hasError?ae.error(this.thrownError):ve&&ae.complete()},Y.prototype.asObservable=function(){var ae=new u.y;return ae.source=this,ae},Y.create=function(ae,Ee){return new x(ae,Ee)},Y}(u.y),x=function(U){function Y(ae,Ee){var De=U.call(this)||this;return De.destination=ae,De.source=Ee,De}return(0,y.ZT)(Y,U),Y.prototype.next=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.next)||void 0===De||De.call(Ee,ae)},Y.prototype.error=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.error)||void 0===De||De.call(Ee,ae)},Y.prototype.complete=function(){var ae,Ee;null===(Ee=null===(ae=this.destination)||void 0===ae?void 0:ae.complete)||void 0===Ee||Ee.call(ae)},Y.prototype._subscribe=function(ae){var Ee,De;return null!==(De=null===(Ee=this.source)||void 0===Ee?void 0:Ee.subscribe(ae))&&void 0!==De?De:ce.Lc},Y}(P)},4111:(Ye,me,O)=>{"use strict";O.d(me,{Hp:()=>De,Lv:()=>Ee});var y=O(9162),u=O(8853),ce=O(8839),re=O(6806),te=O(8550);function Q(){}var K=U("C",void 0,void 0);function U(Ge,We,Fe){return{kind:Ge,value:We,error:Fe}}var Y=O(9385),ae=O(4112),Ee=function(Ge){function We(Fe){var he=Ge.call(this)||this;return he.isStopped=!1,Fe?(he.destination=Fe,(0,ce.Nn)(Fe)&&Fe.add(he)):he.destination=Me,he}return(0,y.ZT)(We,Ge),We.create=function(Fe,he,Ke){return new De(Fe,he,Ke)},We.prototype.next=function(Fe){this.isStopped?He(function(Ge){return U("N",Ge,void 0)}(Fe),this):this._next(Fe)},We.prototype.error=function(Fe){this.isStopped?He(function(Ge){return U("E",void 0,Ge)}(Fe),this):(this.isStopped=!0,this._error(Fe))},We.prototype.complete=function(){this.isStopped?He(K,this):(this.isStopped=!0,this._complete())},We.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ge.prototype.unsubscribe.call(this),this.destination=null)},We.prototype._next=function(Fe){this.destination.next(Fe)},We.prototype._error=function(Fe){try{this.destination.error(Fe)}finally{this.unsubscribe()}},We.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},We}(ce.w0),De=function(Ge){function We(Fe,he,Ke){var $e,bt=Ge.call(this)||this;if((0,u.m)(Fe))$e=Fe;else if(Fe){var lt;$e=Fe.next,he=Fe.error,Ke=Fe.complete,bt&&re.v.useDeprecatedNextContext?(lt=Object.create(Fe)).unsubscribe=function(){return bt.unsubscribe()}:lt=Fe,$e=null==$e?void 0:$e.bind(lt),he=null==he?void 0:he.bind(lt),Ke=null==Ke?void 0:Ke.bind(lt)}return bt.destination={next:$e?Pe($e):Q,error:Pe(null!=he?he:ve),complete:Ke?Pe(Ke):Q},bt}return(0,y.ZT)(We,Ge),We}(Ee);function Pe(Ge,We){return function(){for(var Fe=[],he=0;he{"use strict";O.d(me,{Lc:()=>K,w0:()=>Q,Nn:()=>P});var y=O(9162),u=O(8853),re=(0,O(3864).d)(function(U){return function(ae){U(this),this.message=ae?ae.length+" errors occurred during unsubscription:\n"+ae.map(function(Ee,De){return De+1+") "+Ee.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=ae}}),te=O(5850),Q=function(){function U(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._teardowns=null}return U.prototype.unsubscribe=function(){var Y,ae,Ee,De,Pe;if(!this.closed){this.closed=!0;var ve=this._parentage;if(ve)if(this._parentage=null,Array.isArray(ve))try{for(var He=(0,y.XA)(ve),Me=He.next();!Me.done;Me=He.next())Me.value.remove(this)}catch($e){Y={error:$e}}finally{try{Me&&!Me.done&&(ae=He.return)&&ae.call(He)}finally{if(Y)throw Y.error}}else ve.remove(this);var We=this.initialTeardown;if((0,u.m)(We))try{We()}catch($e){Pe=$e instanceof re?$e.errors:[$e]}var Fe=this._teardowns;if(Fe){this._teardowns=null;try{for(var he=(0,y.XA)(Fe),Ke=he.next();!Ke.done;Ke=he.next()){var bt=Ke.value;try{x(bt)}catch($e){Pe=null!=Pe?Pe:[],$e instanceof re?Pe=(0,y.ev)((0,y.ev)([],(0,y.CR)(Pe)),(0,y.CR)($e.errors)):Pe.push($e)}}}catch($e){Ee={error:$e}}finally{try{Ke&&!Ke.done&&(De=he.return)&&De.call(he)}finally{if(Ee)throw Ee.error}}}if(Pe)throw new re(Pe)}},U.prototype.add=function(Y){var ae;if(Y&&Y!==this)if(this.closed)x(Y);else{if(Y instanceof U){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._teardowns=null!==(ae=this._teardowns)&&void 0!==ae?ae:[]).push(Y)}},U.prototype._hasParent=function(Y){var ae=this._parentage;return ae===Y||Array.isArray(ae)&&ae.includes(Y)},U.prototype._addParent=function(Y){var ae=this._parentage;this._parentage=Array.isArray(ae)?(ae.push(Y),ae):ae?[ae,Y]:Y},U.prototype._removeParent=function(Y){var ae=this._parentage;ae===Y?this._parentage=null:Array.isArray(ae)&&(0,te.P)(ae,Y)},U.prototype.remove=function(Y){var ae=this._teardowns;ae&&(0,te.P)(ae,Y),Y instanceof U&&Y._removeParent(this)},U.EMPTY=((Y=new U).closed=!0,Y),U;var Y}(),K=Q.EMPTY;function P(U){return U instanceof Q||U&&"closed"in U&&(0,u.m)(U.remove)&&(0,u.m)(U.add)&&(0,u.m)(U.unsubscribe)}function x(U){(0,u.m)(U)?U():U.unsubscribe()}},6806:(Ye,me,O)=>{"use strict";O.d(me,{v:()=>y});var y={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},6149:(Ye,me,O)=>{"use strict";O.d(me,{E:()=>u});var u=new(O(1776).y)(function(te){return te.complete()})},5929:(Ye,me,O)=>{"use strict";O.d(me,{Dp:()=>$e,OO:()=>H,Xf:()=>lt});var y=O(9162),u=function(ee){return ee&&"number"==typeof ee.length&&"function"!=typeof ee},ce=O(8853);function re(ee){return(0,ce.m)(null==ee?void 0:ee.then)}var te=O(8794),Q=O(1776),K=O(8839),U=O(2504),ae="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Pe(ee,Ie){if(!ee)throw new Error("Iterable cannot be null");return new Q.y(function(be){var Ve=new K.w0;return Ve.add(Ie.schedule(function(){var Xe=ee[Symbol.asyncIterator]();Ve.add(Ie.schedule(function(){var rt=this;Xe.next().then(function(_t){_t.done?be.complete():(be.next(_t.value),rt.schedule())})}))})),Ve})}function ve(ee){return(0,ce.m)(ee[te.L])}function He(ee){return(0,ce.m)(null==ee?void 0:ee[ae])}function Me(ee){return Symbol.asyncIterator&&(0,ce.m)(null==ee?void 0:ee[Symbol.asyncIterator])}function Ge(ee){return new TypeError("You provided "+(null!==ee&&"object"==typeof ee?"an invalid object":"'"+ee+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function We(ee){return(0,y.FC)(this,arguments,function(){var be,Ve,Xe;return(0,y.Jh)(this,function(_t){switch(_t.label){case 0:be=ee.getReader(),_t.label=1;case 1:_t.trys.push([1,,9,10]),_t.label=2;case 2:return[4,(0,y.qq)(be.read())];case 3:return Ve=_t.sent(),Xe=Ve.value,Ve.done?[4,(0,y.qq)(void 0)]:[3,5];case 4:return[2,_t.sent()];case 5:return[4,(0,y.qq)(Xe)];case 6:return[4,_t.sent()];case 7:return _t.sent(),[3,2];case 8:return[3,10];case 9:return be.releaseLock(),[7];case 10:return[2]}})})}function Fe(ee){return(0,ce.m)(null==ee?void 0:ee.getReader)}var bt=O(8550);function $e(ee,Ie){return Ie?function(ee,Ie){if(null!=ee){if(ve(ee))return function(ee,Ie){return new Q.y(function(be){var Ve=new K.w0;return Ve.add(Ie.schedule(function(){var Xe=ee[te.L]();Ve.add(Xe.subscribe({next:function(rt){Ve.add(Ie.schedule(function(){return be.next(rt)}))},error:function(rt){Ve.add(Ie.schedule(function(){return be.error(rt)}))},complete:function(){Ve.add(Ie.schedule(function(){return be.complete()}))}}))})),Ve})}(ee,Ie);if(u(ee))return(0,U.r)(ee,Ie);if(re(ee))return function(ee,Ie){return new Q.y(function(be){return Ie.schedule(function(){return ee.then(function(Ve){be.add(Ie.schedule(function(){be.next(Ve),be.add(Ie.schedule(function(){return be.complete()}))}))},function(Ve){be.add(Ie.schedule(function(){return be.error(Ve)}))})})})}(ee,Ie);if(Me(ee))return Pe(ee,Ie);if(He(ee))return function(ee,Ie){return new Q.y(function(be){var Ve;return be.add(Ie.schedule(function(){Ve=ee[ae](),function(ee,Ie,be,Ve){void 0===Ve&&(Ve=0);var Xe=Ie.schedule(function(){try{be.call(this)}catch(rt){ee.error(rt)}},Ve);ee.add(Xe)}(be,Ie,function(){var Xe=Ve.next(),rt=Xe.value;Xe.done?be.complete():(be.next(rt),this.schedule())})})),function(){return(0,ce.m)(null==Ve?void 0:Ve.return)&&Ve.return()}})}(ee,Ie);if(Fe(ee))return function(ee,Ie){return Pe(We(ee),Ie)}(ee,Ie)}throw Ge(ee)}(ee,Ie):lt(ee)}function lt(ee){if(ee instanceof Q.y)return ee;if(null!=ee){if(ve(ee))return function(ee){return new Q.y(function(Ie){var be=ee[te.L]();if((0,ce.m)(be.subscribe))return be.subscribe(Ie);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ee);if(u(ee))return H(ee);if(re(ee))return function(ee){return new Q.y(function(Ie){ee.then(function(be){Ie.closed||(Ie.next(be),Ie.complete())},function(be){return Ie.error(be)}).then(null,bt.h)})}(ee);if(Me(ee))return Ae(ee);if(He(ee))return function(ee){return new Q.y(function(Ie){var be,Ve;try{for(var Xe=(0,y.XA)(ee),rt=Xe.next();!rt.done;rt=Xe.next())if(Ie.next(rt.value),Ie.closed)return}catch(jt){be={error:jt}}finally{try{rt&&!rt.done&&(Ve=Xe.return)&&Ve.call(Xe)}finally{if(be)throw be.error}}Ie.complete()})}(ee);if(Fe(ee))return function(ee){return Ae(We(ee))}(ee)}throw Ge(ee)}function H(ee){return new Q.y(function(Ie){for(var be=0;be{"use strict";O.d(me,{h:()=>ce});var y=O(2504),u=O(5929);function ce(re,te){return te?(0,y.r)(re,te):(0,u.OO)(re)}},1964:(Ye,me,O)=>{"use strict";O.d(me,{of:()=>re});var y=O(5994),u=O(2504),ce=O(9528);function re(){for(var te=[],Q=0;Q{"use strict";O.d(me,{_:()=>ce});var y=O(1776),u=O(8853);function ce(re,te){var Q=(0,u.m)(re)?re:function(){return re},K=function(P){return P.error(Q())};return new y.y(te?function(P){return te.schedule(K,0,P)}:K)}},5076:(Ye,me,O)=>{"use strict";O.d(me,{Q:()=>ce});var y=O(9162),ce=function(re){function te(Q,K,P,x,U){var Y=re.call(this,Q)||this;return Y.onFinalize=U,Y._next=K?function(ae){try{K(ae)}catch(Ee){Q.error(Ee)}}:re.prototype._next,Y._error=x?function(ae){try{x(ae)}catch(Ee){Q.error(Ee)}finally{this.unsubscribe()}}:re.prototype._error,Y._complete=P?function(){try{P()}catch(ae){Q.error(ae)}finally{this.unsubscribe()}}:re.prototype._complete,Y}return(0,y.ZT)(te,re),te.prototype.unsubscribe=function(){var Q,K=this.closed;re.prototype.unsubscribe.call(this),!K&&(null===(Q=this.onFinalize)||void 0===Q||Q.call(this))},te}(O(4111).Lv)},5894:(Ye,me,O)=>{"use strict";O.d(me,{K:()=>re});var y=O(5929),u=O(5076),ce=O(4297);function re(te){return(0,ce.e)(function(Q,K){var U,P=null,x=!1;P=Q.subscribe(new u.Q(K,void 0,void 0,function(Y){U=(0,y.Xf)(te(Y,re(te)(Q))),P?(P.unsubscribe(),P=null,U.subscribe(K)):x=!0})),x&&(P.unsubscribe(),P=null,U.subscribe(K))})}},3766:(Ye,me,O)=>{"use strict";O.d(me,{b:()=>ce});var y=O(7216),u=O(8853);function ce(re,te){return(0,u.m)(te)?(0,y.z)(re,te,1):(0,y.z)(re,1)}},4689:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(Q,K){var P=0;Q.subscribe(new u.Q(K,function(x){return re.call(te,x,P++)&&K.next(x)}))})}},5207:(Ye,me,O)=>{"use strict";O.d(me,{U:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(Q,K){var P=0;Q.subscribe(new u.Q(K,function(x){K.next(re.call(te,x,P++))}))})}},23:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>ce});var y=O(7216),u=O(2738);function ce(re){return void 0===re&&(re=1/0),(0,y.z)(u.y,re)}},7216:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>K});var y=O(5207),u=O(5929),ce=O(4297),re=O(5076),Q=O(8853);function K(P,x,U){return void 0===U&&(U=1/0),(0,Q.m)(x)?K(function(Y,ae){return(0,y.U)(function(Ee,De){return x(Y,Ee,ae,De)})((0,u.Xf)(P(Y,ae)))},U):("number"==typeof x&&(U=x),(0,ce.e)(function(Y,ae){return function(P,x,U,Y,ae,Ee,De,Pe){var ve=[],He=0,Me=0,Ge=!1,We=function(){Ge&&!ve.length&&!He&&x.complete()},Fe=function(Ke){return He{"use strict";O.d(me,{q:()=>re});var y=O(6149),u=O(4297),ce=O(5076);function re(te){return te<=0?function(){return y.E}:(0,u.e)(function(Q,K){var P=0;Q.subscribe(new ce.Q(K,function(x){++P<=te&&(K.next(x),te<=P&&K.complete())}))})}},2504:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>u});var y=O(1776);function u(ce,re){return new y.y(function(te){var Q=0;return re.schedule(function(){Q===ce.length?te.complete():(te.next(ce[Q++]),te.closed||this.schedule())})})}},9385:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>u});var y=O(9162),u={setTimeout:function(){for(var ce=[],re=0;re{"use strict";O.d(me,{L:()=>y});var y="function"==typeof Symbol&&Symbol.observable||"@@observable"},9528:(Ye,me,O)=>{"use strict";O.d(me,{_6:()=>Q,jO:()=>re,yG:()=>te});var y=O(8853);function ce(K){return K[K.length-1]}function re(K){return(0,y.m)(ce(K))?K.pop():void 0}function te(K){return function(K){return K&&(0,y.m)(K.schedule)}(ce(K))?K.pop():void 0}function Q(K,P){return"number"==typeof ce(K)?K.pop():P}},1260:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=Array.isArray,u=Object.getPrototypeOf,ce=Object.prototype,re=Object.keys;function te(K){if(1===K.length){var P=K[0];if(y(P))return{args:P,keys:null};if(function(K){return K&&"object"==typeof K&&u(K)===ce}(P)){var x=re(P);return{args:x.map(function(U){return P[U]}),keys:x}}}return{args:K,keys:null}}},5850:(Ye,me,O)=>{"use strict";function y(u,ce){if(u){var re=u.indexOf(ce);0<=re&&u.splice(re,1)}}O.d(me,{P:()=>y})},3864:(Ye,me,O)=>{"use strict";function y(u){var re=u(function(te){Error.call(te),te.stack=(new Error).stack});return re.prototype=Object.create(Error.prototype),re.prototype.constructor=re,re}O.d(me,{d:()=>y})},5526:(Ye,me,O)=>{"use strict";function y(u,ce){return u.reduce(function(re,te,Q){return re[te]=ce[Q],re},{})}O.d(me,{n:()=>y})},4112:(Ye,me,O)=>{"use strict";O.d(me,{x:()=>ce,O:()=>re});var y=O(6806),u=null;function ce(te){if(y.v.useDeprecatedSynchronousErrorHandling){var Q=!u;if(Q&&(u={errorThrown:!1,error:null}),te(),Q){var K=u;if(u=null,K.errorThrown)throw K.error}}else te()}function re(te){y.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=te)}},2738:(Ye,me,O)=>{"use strict";function y(u){return u}O.d(me,{y:()=>y})},8853:(Ye,me,O)=>{"use strict";function y(u){return"function"==typeof u}O.d(me,{m:()=>y})},4297:(Ye,me,O)=>{"use strict";O.d(me,{A:()=>u,e:()=>ce});var y=O(8853);function u(re){return(0,y.m)(null==re?void 0:re.lift)}function ce(re){return function(te){if(u(te))return te.lift(function(Q){try{return re(Q,this)}catch(K){this.error(K)}});throw new TypeError("Unable to lift unknown Observable type")}}},9607:(Ye,me,O)=>{"use strict";O.d(me,{Z:()=>te});var y=O(9162),u=O(5207),ce=Array.isArray;function te(Q){return(0,u.U)(function(K){return function(Q,K){return ce(K)?Q.apply(void 0,(0,y.ev)([],(0,y.CR)(K))):Q(K)}(Q,K)})}},8550:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(6806),u=O(9385);function ce(re){u.z.setTimeout(function(){var te=y.v.onUnhandledError;if(!te)throw re;te(re)})}},8253:(Ye,me,O)=>{"use strict";O.d(me,{a:()=>re});var y=O(476),u=O(9502),ce=O(7556);let re=(()=>{class te{constructor(K,P){this.router=K,this.authSvc=P}canActivate(K,P){return this.checkLogin(P.url)}canActivateChild(K,P){return this.canActivate(K,P)}canLoad(K){return this.checkLogin(`/${K.path}`)}checkLogin(K){return!(this.authSvc.isSecureMode&&!this.authSvc.isLoggedIn)||this.router.parseUrl("/login")}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.F0),y.LFG(ce.e))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},7822:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>ce});var y=O(476);let ce=(()=>{class re{constructor(){this.messages=[]}success(Q="operation",K){this.messages.push({class:"alert alert-success shadow rounded alert-dismissible fade show",content:`${Q} success! ${K||""}`})}errors(Q){this.messages.push({class:"alert alert-danger shadow rounded alert-dismissible fade show",content:Q})}clear(){this.messages.shift()}}return re.\u0275fac=function(Q){return new(Q||re)},re.\u0275prov=y.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})()},7556:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>re});var y=O(476),u=O(1841),ce=O(4889);let re=(()=>{class te{constructor(K,P){this.http=K,this.errorSvc=P,this.accessToken=null,this.isLoggedIn=!1,this.redirectUrl=null,this.isSecureMode=!1}login(){return this.tokenValidate()}tokenValidate(){return this.http.get("/core-metadata/api/v3/ping")}setAccessToken(K){this.accessToken=K,window.sessionStorage.setItem("EdgeX_Access_Token",this.accessToken)}getAccessToken(){if(this.accessToken)return this.accessToken;let K=window.sessionStorage.getItem("EdgeX_Access_Token");return K&&(this.accessToken=K),this.accessToken}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.eN),y.LFG(ce.T))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2468:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(5894),u=O(476),ce=O(1841),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-data",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.endpointHealthUrl=`${this.urlPrefix}/ping`,this.eventCountUrl=`${this.urlPrefix}/event/count`,this.readingCountUrl=`${this.urlPrefix}/reading/count`,this.allEventsUrl=`${this.urlPrefix}/event/all`,this.allReadingsUrl=`${this.urlPrefix}/reading/all`,this.associatedEventsByDeviceNameUrl=`${this.urlPrefix}/event/device/name/`,this.associatedReadinsByDeviceNameUrl=`${this.urlPrefix}/reading/device/name/`}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}endpointHealth(){return this.http.get(`${this.endpointHealthUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}eventCount(){return this.http.get(`${this.eventCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}readingCount(){return this.http.get(`${this.readingCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}allEventsPagination(P,x){return this.http.get(`${this.allEventsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allReadingsPagination(P,x){return this.http.get(`${this.allReadingsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedReadingsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedEventsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedEventsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedReadinsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}}return Q.\u0275fac=function(P){return new(P||Q)(u.LFG(ce.eN),u.LFG(re.T))},Q.\u0275prov=u.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},4889:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>re});var y=O(8567),u=O(476),ce=O(7822);let re=(()=>{class te{constructor(K){this.msgSvc=K}handleErrorForAPI(K){let P=Object.prototype.toString.call(K);if("[object Array]"===P){if(!K[0].statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K[0].statusCode}, message: ${K[0].message}`),!0}else if("[object Object]"===P&&!K.statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K.statusCode}, message: ${K.message}`),!0;return!1}handleError(K){return K.error instanceof ErrorEvent?this.msgSvc.errors(`'An error occurred:', ${K.error.message}`):"[object Object]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.error.statusCode} , message: ${K.error.message}`):"[object String]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.status} , message: ${K.error}`):this.msgSvc.errors(`code: ${K.status} , message: ${K.message}`),(0,y._)(`Backend returned code ${K.status}, body was: ${K.error.message}`)}}return te.\u0275fac=function(K){return new(K||te)(u.LFG(ce.e))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2437:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-metadata",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.devicesListUrl=`${this.urlPrefix}/device/all`,this.addOneDeviceUrl=`${this.urlPrefix}/device`,this.updateOneDeviceUrl=`${this.urlPrefix}/device`,this.deleteOneDeviceByIdUrl=`${this.urlPrefix}/device/Id`,this.deleteOneDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByIdUrl=`${this.urlPrefix}/device/id`,this.findDevicesByServiceIdUrl=`${this.urlPrefix}/device/service/id`,this.findDevicesByServiceNameUrl=`${this.urlPrefix}/device/service/name`,this.findDevicesByProfileIdUrl=`${this.urlPrefix}/device/profile/id`,this.findDevicesByProfileNameUrl=`${this.urlPrefix}/device/profile/name`,this.deviceServicesListUrl=`${this.urlPrefix}/deviceservice/all`,this.updateDeviceServiceUrl=`${this.urlPrefix}/deviceservice`,this.findDeviceServiceByIdUrl=`${this.urlPrefix}/deviceservice/id`,this.findDeviceServiceByNameUrl=`${this.urlPrefix}/deviceservice/name`,this.deviceProfilesListUrl=`${this.urlPrefix}/deviceprofile/all`,this.findProfilesByIdUrl=`${this.urlPrefix}/deviceprofile`,this.findProfilesByNameUrl=`${this.urlPrefix}/deviceprofile/name`,this.updateDeviceProfileUrl=`${this.urlPrefix}/deviceprofile`,this.uploadProfileYamlFileUrl=`${this.urlPrefix}/deviceprofile/uploadfile`,this.uploadProfileYamlContentUrl=`${this.urlPrefix}/deviceprofile/upload`,this.deviceProfileYamlUrl=`${this.urlPrefix}/deviceprofile/yaml`,this.deleteProfileByIdUrl=`${this.urlPrefix}/deviceprofile/id`,this.deleteProfileByNamedUrl=`${this.urlPrefix}/deviceprofile/name`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevices(){return this.http.get(`${this.devicesListUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevicesPagination(P,x){return this.http.get(`${this.devicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addDevice(P){let x=`${this.addOneDeviceUrl}`;return P.apiVersion="v3",this.http.post(x,JSON.stringify([{apiVersion:"v3",device:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneDeviceByName(P){return this.http.delete(`${this.deleteOneDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneDeviceById(P){return this.http.delete(`${this.deleteOneDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDevice(P){return this.http.patch(`${this.updateOneDeviceUrl}`,JSON.stringify([{apiVersion:"v3",device:P}]),{headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDeviceByName(P){return this.http.get(`${this.findDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDeviceById(P){return this.http.get(`${this.findDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceId(P){return this.http.get(`${this.findDevicesByServiceIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceName(P,x,U){return this.http.get(`${this.findDevicesByServiceNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findDevicesByProfileId(P){return this.http.get(`${this.findDevicesByProfileIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByProfileName(P,x,U){return this.http.get(`${this.findDevicesByProfileNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}allDeviceServices(){return this.http.get(`${this.deviceServicesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllDeviceServicesPagination(P,x){return this.http.get(`${this.deviceServicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateDeviceService(P){return this.http.patch(`${this.updateDeviceServiceUrl}`,JSON.stringify([{apiVersion:"v3",service:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDevcieServiceById(P){return this.http.get(`${this.findDeviceServiceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevcieServiceByName(P){return this.http.get(`${this.findDeviceServiceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allDeviceProfoles(){return this.http.get(`${this.deviceProfilesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDeviceProfolesPagination(P,x){return this.http.get(`${this.deviceProfilesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addProfileYamlByNameViaUIBackend(P){return this.http.request("POST","/api/v3/profile/yaml",{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileById(P){return this.http.get(`${this.findProfilesByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileByName(P){return this.http.get(`${this.findProfilesByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlByNameViaUIBackend(P){return this.http.request("GET","/api/v3/profile/yaml/name/"+P,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlFile(P){return this.http.request("POST",`${this.uploadProfileYamlFileUrl}`,{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDeviceProfile(P){return this.http.put(`${this.updateDeviceProfileUrl}`,P,this.httpPostOrPutJSONOptions).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateProfileYamlContentViaUIBackend(P){return this.http.put("/api/v3/profile/yaml",P,{headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlContent(P){return this.http.request("POST",`${this.uploadProfileYamlContentUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlById(P){return this.http.request("GET",`${this.deviceProfileYamlUrl}/${P}`,{responseType:"text"})}deleteProfileById(P){return this.http.delete(`${this.deleteProfileByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteProfileByName(P){return this.http.delete(`${this.deleteProfileByNamedUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},9744:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-notifications",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.findNotificationByCategoryUrl=`${this.urlPrefix}/notification/category/`,this.findNotificationByLabelUrl=`${this.urlPrefix}/notification/label/`,this.findNotificationByStatusUrl=`${this.urlPrefix}/notification/status/`,this.findNotificationByStartEndUrl=`${this.urlPrefix}/notification/start/`,this.deleteNotificationByIdUrl=`${this.urlPrefix}/notification/id/`,this.deleteNotificationByAgeAndStatusUrl=`${this.urlPrefix}/notification/age/`,this.cleanupNotificationByAgeUrl=`${this.urlPrefix}/cleanup/age/`,this.cleanupNotificationAllUrl=`${this.urlPrefix}/cleanup`,this.findAllSubscriptionsPaginationUrl=`${this.urlPrefix}/subscription/all`,this.findAllSubscriptionsByCategoryPaginationUrl=`${this.urlPrefix}/subscription/category/`,this.findAllSubscriptionsByLabelPaginationUrl=`${this.urlPrefix}/subscription/label/`,this.findAllSubscriptionsByReceiverPaginationUrl=`${this.urlPrefix}/subscription/receiver/`,this.findOneSubscriptionsByNameUrl=`${this.urlPrefix}/subscription/name/`,this.addOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.updateOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.deleteOneSubscriptionByNameUrl=`${this.urlPrefix}/subscription/name/`,this.httpPostOrPutOrPatchJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findNotificationsByCategoryPagination(P,x,U){return this.http.get(`${this.findNotificationByCategoryUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByLabelPagination(P,x,U){return this.http.get(`${this.findNotificationByLabelUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStatusPagination(P,x,U){return this.http.get(`${this.findNotificationByStatusUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStartEndPagination(P,x,U,Y){return this.http.get(`${this.findNotificationByStartEndUrl}${U}/end/${Y}?offset=${P}&limit=${x}`).pipe((0,u.K)(Ee=>this.errorSvc.handleError(Ee)))}deleteNotificationByAgeAndStatus(P){return this.http.delete(`${this.deleteNotificationByAgeAndStatusUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteNotificationById(P){return this.http.delete(`${this.deleteNotificationByIdUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationByAge(P){return this.http.delete(`${this.cleanupNotificationByAgeUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationAll(){return this.http.delete(`${this.cleanupNotificationAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllSubscriptionPagination(P,x){return this.http.get(`${this.findAllSubscriptionsPaginationUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findOneSubscriptionByName(P){return this.http.get(`${this.findOneSubscriptionsByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}addOneSubscription(P){return this.http.post(`${this.addOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateOneSubscription(P){return this.http.patch(`${this.updateOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneSubscriptionByName(P){return this.http.delete(`${this.deleteOneSubscriptionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},3692:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.version="/api/v3",this.pingUrl=`${this.version}/registrycenter/ping`,this.appSvcDeployConfigUrl=`${this.version}/registrycenter/deploy`,this.appSvcGetConfigUrl=`${this.version}/registrycenter/config`,this.appSvcAllUrl=`${this.version}/registrycenter/service/all`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}getAppSvcConfigBySvcKey(P){return this.http.get(`${this.appSvcGetConfigUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deployToConsul(P,x){return this.http.post(`${this.appSvcDeployConfigUrl}/${x}`,JSON.stringify(P),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllAppSvc(){return this.http.get(`${this.appSvcAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},4791:(Ye,me,O)=>{"use strict";O.d(me,{n:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/rules-engine",this.version="",this.pingUrl=`${this.endpoint}${this.version}/ping`,this.streamUrl=`${this.endpoint}${this.version}/streams`,this.ruleUrl=`${this.endpoint}${this.version}/rules`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}addStream(P){return this.http.request("POST",`${this.streamUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneStreamById(P){return this.http.delete(`${this.streamUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateStream(P,x){return this.http.request("PUT",`${this.streamUrl}/${x}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findStreamByName(P){return this.http.get(`${this.streamUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allStreams(){return this.http.get(`${this.streamUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}addRule(P){return this.http.request("POST",`${this.ruleUrl}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneRuleById(P){return this.http.delete(`${this.ruleUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateRule(P){return this.http.request("PUT",`${this.ruleUrl}/${P.id}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findRuleById(P){return this.http.get(`${this.ruleUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allRules(){return this.http.get(`${this.ruleUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}getRuleStatusMetricsById(P){return this.http.get(`${this.ruleUrl}/${P}/status`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}getRuleTopoById(P){return this.http.get(`${this.ruleUrl}/${P}/topo`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}executeRuleCommand(P,x){return this.http.post(`${this.ruleUrl}/${P}/${x}`,null,{responseType:"text"}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},8391:(Ye,me,O)=>{"use strict";O.d(me,{G:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-scheduler",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.intervalListUrl=`${this.urlPrefix}/interval/all`,this.addOneIntervalUrl=`${this.urlPrefix}/interval`,this.updateOneIntervalUrl=`${this.urlPrefix}/interval`,this.findOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.deleteOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.intervalActionListUrl=`${this.urlPrefix}/intervalaction/all`,this.addOneIntervalActionUrl=`${this.urlPrefix}/intervalaction`,this.updateOneIntervaActionlUrl=`${this.urlPrefix}/intervalaction`,this.findOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.deleteOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllIntervalsPagination(P,x){return this.http.get(`${this.intervalListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addInterval(P){return this.http.post(`${this.addOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateInterval(P){return this.http.patch(`${this.updateOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalByName(P){return this.http.get(`${this.findOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalByName(P){return this.http.delete(`${this.deleteOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findAllIntervalActionsPagination(P,x){return this.http.get(`${this.intervalActionListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addIntervalAction(P){return this.http.post(`${this.addOneIntervalActionUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateIntervalAction(P){return this.http.patch(`${this.updateOneIntervaActionlUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalActionByName(P){return this.http.get(`${this.findOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalActionByName(P){return this.http.delete(`${this.deleteOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},9386:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>Q});var y=O(1841),u=O(5894),ce=O(476),re=O(4889),te=O(3692);let Q=(()=>{class K{constructor(x,U,Y){this.http=x,this.errorSvc=U,this.registrySvc=Y,this.endpoint="/sys-mgmt-agent",this.version2="/api/v3",this.urlPrefix=`${this.endpoint}${this.version2}`,this.pingUrl="/ping",this.allRegisteredSvcUrl="/api/v3/registrycenter/service/all",this.configUrl=`${this.urlPrefix}/system/config`,this.metricsUrl=`${this.urlPrefix}/system/metrics`,this.healthUrl=`${this.urlPrefix}/system/health`,this.operationUrl=`${this.urlPrefix}/system/operation`,this.httpPostOrPutOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getRegisteredServiceAll(){return this.registrySvc.getAllAppSvc()}getConfigBySvcName(x){return this.http.get(`${this.configUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getMetricsBySvcName(x){return this.http.get(`${this.metricsUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllSvcHealth(x){return this.http.get(`${this.healthUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}operate(x){return this.http.post(`${this.operationUrl}`,JSON.stringify(x),this.httpPostOrPutOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}startV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"start"}])}stopV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"stop"}])}restartV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"restart"}])}}return K.\u0275fac=function(x){return new(x||K)(ce.LFG(y.eN),ce.LFG(re.T),ce.LFG(te.r))},K.\u0275prov=ce.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},4705:(Ye,me,O)=>{"use strict";var y=O(8583),u=O(476);class ce extends y.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class re extends ce{static makeCurrent(){(0,y.HT)(new re)}onAndCancel(F,A,L){return F.addEventListener(A,L,!1),()=>{F.removeEventListener(A,L,!1)}}dispatchEvent(F,A){F.dispatchEvent(A)}remove(F){F.parentNode&&F.parentNode.removeChild(F)}createElement(F,A){return(A=A||this.getDefaultDocument()).createElement(F)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(F){return F.nodeType===Node.ELEMENT_NODE}isShadowRoot(F){return F instanceof DocumentFragment}getGlobalEventTarget(F,A){return"window"===A?window:"document"===A?F:"body"===A?F.body:null}getBaseHref(F){const A=(te=te||document.querySelector("base"),te?te.getAttribute("href"):null);return null==A?null:function(N){K=K||document.createElement("a"),K.setAttribute("href",N);const F=K.pathname;return"/"===F.charAt(0)?F:`/${F}`}(A)}resetBaseElement(){te=null}getUserAgent(){return window.navigator.userAgent}getCookie(F){return(0,y.Mx)(document.cookie,F)}}let K,te=null;const x=new u.OlP("TRANSITION_ID"),Y=[{provide:u.ip1,useFactory:function(N,F,A){return()=>{A.get(u.CZH).donePromise.then(()=>{const L=(0,y.q)(),ne=F.querySelectorAll(`style[ng-transition="${N}"]`);for(let Oe=0;Oe{const Oe=F.findTestabilityInTree(L,ne);if(null==Oe)throw new Error("Could not find testability for element.");return Oe},u.dqk.getAllAngularTestabilities=()=>F.getAllTestabilities(),u.dqk.getAllAngularRootElements=()=>F.getAllRootElements(),u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(L=>{const ne=u.dqk.getAllAngularTestabilities();let Oe=ne.length,je=!1;const Et=function(Nt){je=je||Nt,Oe--,0==Oe&&L(je)};ne.forEach(function(Nt){Nt.whenStable(Et)})})}findTestabilityInTree(F,A,L){if(null==A)return null;const ne=F.getTestability(A);return null!=ne?ne:L?(0,y.q)().isShadowRoot(A)?this.findTestabilityInTree(F,A.host,!0):this.findTestabilityInTree(F,A.parentElement,!0):null}}let Ee=(()=>{class N{build(){return new XMLHttpRequest}}return N.\u0275fac=function(A){return new(A||N)},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const X=new u.OlP("EventManagerPlugins");let ue=(()=>{class N{constructor(A,L){this._zone=L,this._eventNameToPlugin=new Map,A.forEach(ne=>ne.manager=this),this._plugins=A.slice().reverse()}addEventListener(A,L,ne){return this._findPluginFor(L).addEventListener(A,L,ne)}addGlobalEventListener(A,L,ne){return this._findPluginFor(L).addGlobalEventListener(A,L,ne)}getZone(){return this._zone}_findPluginFor(A){const L=this._eventNameToPlugin.get(A);if(L)return L;const ne=this._plugins;for(let Oe=0;Oe{class N{constructor(){this._stylesSet=new Set}addStyles(A){const L=new Set;A.forEach(ne=>{this._stylesSet.has(ne)||(this._stylesSet.add(ne),L.add(ne))}),this.onStylesAdded(L)}onStylesAdded(A){}getAllStyles(){return Array.from(this._stylesSet)}}return N.\u0275fac=function(A){return new(A||N)},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})(),ze=(()=>{class N extends ie{constructor(A){super(),this._doc=A,this._hostNodes=new Map,this._hostNodes.set(A.head,[])}_addStylesToHost(A,L,ne){A.forEach(Oe=>{const je=this._doc.createElement("style");je.textContent=Oe,ne.push(L.appendChild(je))})}addHost(A){const L=[];this._addStylesToHost(this._stylesSet,A,L),this._hostNodes.set(A,L)}removeHost(A){const L=this._hostNodes.get(A);L&&L.forEach(ee),this._hostNodes.delete(A)}onStylesAdded(A){this._hostNodes.forEach((L,ne)=>{this._addStylesToHost(A,ne,L)})}ngOnDestroy(){this._hostNodes.forEach(A=>A.forEach(ee))}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();function ee(N){(0,y.q)().remove(N)}const Ie={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/"},be=/%COMP%/g;function It(N,F,A){for(let L=0;L{if("__ngUnwrap__"===F)return N;!1===N(F)&&(F.preventDefault(),F.returnValue=!1)}}let gn=(()=>{class N{constructor(A,L,ne){this.eventManager=A,this.sharedStylesHost=L,this.appId=ne,this.rendererByCompId=new Map,this.defaultRenderer=new Tt(A)}createRenderer(A,L){if(!A||!L)return this.defaultRenderer;switch(L.encapsulation){case u.ifc.Emulated:{let ne=this.rendererByCompId.get(L.id);return ne||(ne=new Rn(this.eventManager,this.sharedStylesHost,L,this.appId),this.rendererByCompId.set(L.id,ne)),ne.applyToHost(A),ne}case 1:case u.ifc.ShadowDom:return new xt(this.eventManager,this.sharedStylesHost,A,L);default:if(!this.rendererByCompId.has(L.id)){const ne=It(L.id,L.styles,[]);this.sharedStylesHost.addStyles(ne),this.rendererByCompId.set(L.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(ue),u.LFG(ze),u.LFG(u.AFp))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();class Tt{constructor(F){this.eventManager=F,this.data=Object.create(null)}destroy(){}createElement(F,A){return A?document.createElementNS(Ie[A]||A,F):document.createElement(F)}createComment(F){return document.createComment(F)}createText(F){return document.createTextNode(F)}appendChild(F,A){F.appendChild(A)}insertBefore(F,A,L){F&&F.insertBefore(A,L)}removeChild(F,A){F&&F.removeChild(A)}selectRootElement(F,A){let L="string"==typeof F?document.querySelector(F):F;if(!L)throw new Error(`The selector "${F}" did not match any elements`);return A||(L.textContent=""),L}parentNode(F){return F.parentNode}nextSibling(F){return F.nextSibling}setAttribute(F,A,L,ne){if(ne){A=ne+":"+A;const Oe=Ie[ne];Oe?F.setAttributeNS(Oe,A,L):F.setAttribute(A,L)}else F.setAttribute(A,L)}removeAttribute(F,A,L){if(L){const ne=Ie[L];ne?F.removeAttributeNS(ne,A):F.removeAttribute(`${L}:${A}`)}else F.removeAttribute(A)}addClass(F,A){F.classList.add(A)}removeClass(F,A){F.classList.remove(A)}setStyle(F,A,L,ne){ne&(u.JOm.DashCase|u.JOm.Important)?F.style.setProperty(A,L,ne&u.JOm.Important?"important":""):F.style[A]=L}removeStyle(F,A,L){L&u.JOm.DashCase?F.style.removeProperty(A):F.style[A]=""}setProperty(F,A,L){F[A]=L}setValue(F,A){F.nodeValue=A}listen(F,A,L){return"string"==typeof F?this.eventManager.addGlobalEventListener(F,A,tn(L)):this.eventManager.addEventListener(F,A,tn(L))}}class Rn extends Tt{constructor(F,A,L,ne){super(F),this.component=L;const Oe=It(ne+"-"+L.id,L.styles,[]);A.addStyles(Oe),this.contentAttr="_ngcontent-%COMP%".replace(be,ne+"-"+L.id),this.hostAttr="_nghost-%COMP%".replace(be,ne+"-"+L.id)}applyToHost(F){super.setAttribute(F,this.hostAttr,"")}createElement(F,A){const L=super.createElement(F,A);return super.setAttribute(L,this.contentAttr,""),L}}class xt extends Tt{constructor(F,A,L,ne){super(F),this.sharedStylesHost=A,this.hostEl=L,this.shadowRoot=L.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Oe=It(ne.id,ne.styles,[]);for(let je=0;je{class N extends Ae{constructor(A){super(A)}supports(A){return!0}addEventListener(A,L,ne){return A.addEventListener(L,ne,!1),()=>this.removeEventListener(A,L,ne)}removeEventListener(A,L,ne){return A.removeEventListener(L,ne)}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const Re=["alt","control","meta","shift"],xe={"\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"},Ne={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Qe={alt:N=>N.altKey,control:N=>N.ctrlKey,meta:N=>N.metaKey,shift:N=>N.shiftKey};let ot=(()=>{class N extends Ae{constructor(A){super(A)}supports(A){return null!=N.parseEventName(A)}addEventListener(A,L,ne){const Oe=N.parseEventName(L),je=N.eventCallback(Oe.fullKey,ne,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,y.q)().onAndCancel(A,Oe.domEventName,je))}static parseEventName(A){const L=A.toLowerCase().split("."),ne=L.shift();if(0===L.length||"keydown"!==ne&&"keyup"!==ne)return null;const Oe=N._normalizeKey(L.pop());let je="";if(Re.forEach(Nt=>{const $t=L.indexOf(Nt);$t>-1&&(L.splice($t,1),je+=Nt+".")}),je+=Oe,0!=L.length||0===Oe.length)return null;const Et={};return Et.domEventName=ne,Et.fullKey=je,Et}static getEventFullKey(A){let L="",ne=function(N){let F=N.key;if(null==F){if(F=N.keyIdentifier,null==F)return"Unidentified";F.startsWith("U+")&&(F=String.fromCharCode(parseInt(F.substring(2),16)),3===N.location&&Ne.hasOwnProperty(F)&&(F=Ne[F]))}return xe[F]||F}(A);return ne=ne.toLowerCase()," "===ne?ne="space":"."===ne&&(ne="dot"),Re.forEach(Oe=>{Oe!=ne&&Qe[Oe](A)&&(L+=Oe+".")}),L+=ne,L}static eventCallback(A,L,ne){return Oe=>{N.getEventFullKey(Oe)===A&&ne.runGuarded(()=>L(Oe))}}static _normalizeKey(A){switch(A){case"esc":return"escape";default:return A}}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const br=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:y.bD},{provide:u.g9A,useValue:function(){re.makeCurrent(),ae.init()},multi:!0},{provide:y.K0,useFactory:function(){return(0,u.RDi)(document),document},deps:[]}]),Gr=[[],{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function(){return new u.qLn},deps:[]},{provide:X,useClass:Hr,multi:!0,deps:[y.K0,u.R0b,u.Lbi]},{provide:X,useClass:ot,multi:!0,deps:[y.K0]},[],{provide:gn,useClass:gn,deps:[ue,ze,u.AFp]},{provide:u.FYo,useExisting:gn},{provide:ie,useExisting:ze},{provide:ze,useClass:ze,deps:[y.K0]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b]},{provide:ue,useClass:ue,deps:[X,u.R0b]},{provide:y.JF,useClass:Ee,deps:[]},[]];let gi=(()=>{class N{constructor(A){if(A)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(A){return{ngModule:N,providers:[{provide:u.AFp,useValue:A.appId},{provide:x,useExisting:u.AFp},Y]}}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(N,12))},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({providers:Gr,imports:[y.ez,u.hGG]}),N})();"undefined"!=typeof window&&window;var tt=O(1841),ht=O(3092),ut=O(9502),Jt=O(8253),Bt=O(5894),kn=O(8567),Ot=O(4889);let wr=(()=>{class N{constructor(A,L){this.http=A,this.errorSvc=L,this.endpoint="",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.secureModeUrl=`${this.urlPrefix}/auth/securemode`}getSecureMode(){return this.http.get(`${this.secureModeUrl}`,{responseType:"text"}).pipe((0,Bt.K)(L=>this.errorSvc.handleError(L)))}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(tt.eN),u.LFG(Ot.T))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();var Vn=O(7556);let Ze=(()=>{class N{constructor(A,L,ne,Oe,je){this.initSvc=A,this.errorSvc=L,this.authSvc=ne,this.router=Oe,this.route=je}ngOnInit(){this.initializor()}initializor(){this.environmentCheck()}environmentCheck(){this.progressMsg="environment checking",this.initSvc.getSecureMode().subscribe(A=>{"secure"===A?(this.authSvc.isSecureMode=!0,this.tokenValidate()):(this.authSvc.isSecureMode=!1,this.navigateToHome())})}tokenValidate(){this.progressMsg="access token validating",this.authSvc.tokenValidate().pipe((0,Bt.K)(A=>(this.authSvc.isLoggedIn=!1,this.router.navigate(["/login"],{relativeTo:this.route}),(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.navigateToHome()})}navigateToHome(){this.router.navigate(["/dashboard"],{relativeTo:this.route})}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(wr),u.Y36(Ot.T),u.Y36(Vn.e),u.Y36(ut.F0),u.Y36(ut.gz))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-initializer"]],decls:16,vars:1,consts:[[1,"init","text-center","bg-dark"],[1,"init-progress"],["role","status",1,"spinner-grow","text-success"],[1,"sr-only"],["role","status",1,"spinner-grow","text-danger"],["role","status",1,"spinner-grow","text-warning"],["role","status",1,"spinner-grow","text-info"],[1,"text-light"]],template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span",3),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"span",3),u._uU(7,"Loading..."),u.qZA(),u.qZA(),u.TgZ(8,"div",5),u.TgZ(9,"span",3),u._uU(10,"Loading..."),u.qZA(),u.qZA(),u.TgZ(11,"div",6),u.TgZ(12,"span",3),u._uU(13,"Loading..."),u.qZA(),u.qZA(),u.TgZ(14,"p",7),u._uU(15),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(15),u.hij("",L.progressMsg,"..."))},styles:[".init[_ngcontent-%COMP%]{position:fixed;top:0;bottom:-100px;left:0;right:0;z-index:999}.init-progress[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:45%}"]}),N})();var fr=O(1964),Zn=O(2468),_n=O(2437),hn=O(9744),Ht=O(8391),Un=O(4791),Bn=O(9386),Gt=O(3692);function Mt(N,F){if(1&N&&(u.TgZ(0,"p",6),u._UZ(1,"span",7),u._uU(2),u.qZA()),2&N){const A=u.oxw();u.xp6(2),u.hij(" The ",A.svcName," service is inaccessible!!! please try again later! ")}}const Ar=[{path:"dashboard",canLoad:[Jt.a],loadChildren:()=>O.e(849).then(O.bind(O,8849)).then(N=>N.DashboardModule)},{path:"metadata",canLoad:[Jt.a],loadChildren:()=>O.e(10).then(O.bind(O,4010)).then(N=>N.MetadataModule)},{path:"core-data",canLoad:[Jt.a],loadChildren:()=>O.e(489).then(O.bind(O,3489)).then(N=>N.CoreDataModule)},{path:"notifications",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(827),O.e(634)]).then(O.bind(O,2634)).then(N=>N.NotificationsModule)},{path:"scheduler",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(827),O.e(707),O.e(536)]).then(O.bind(O,5886)).then(N=>N.SchedulerModule)},{path:"rule-engine",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(10),O.e(753),O.e(707),O.e(155)]).then(O.bind(O,4155)).then(N=>N.RuleEngineModule)},{path:"app-service",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(10),O.e(753),O.e(894)]).then(O.bind(O,894)).then(N=>N.AppServiceModule)},{path:"initializer",component:Ze},{path:"svc-unavailable",component:(()=>{class N{constructor(A,L,ne,Oe,je,Et,Nt,$t,Tr){this.router=A,this.route=L,this.coredataSvc=ne,this.metadataSvc=Oe,this.notiSvc=je,this.schedulerSvc=Et,this.ruleSvc=Nt,this.systemSvc=$t,this.registrySvc=Tr,this.refresgMsg=!1,this.refreshBtnDisable=!1}ngOnInit(){this.route.queryParams.subscribe(A=>{this.svcName=A.svcName,this.routerPath=A.routerPath})}refresh(){this.refreshBtnDisable=!0,this.ping().pipe((0,Bt.K)(A=>(this.refresgMsg=!0,window.setTimeout(()=>{this.refresgMsg=!1,this.refreshBtnDisable=!1},3e3),(0,kn._)(()=>"Something bad happened; please try again later.")))).subscribe(()=>this.router.navigate([`${this.routerPath}`]))}ping(){switch(this.svcName){case"core data":return this.coredataSvc.ping();case"metadata":return this.metadataSvc.ping();case"scheduler":return this.schedulerSvc.ping();case"notification":return this.notiSvc.ping();case"rule engine":return this.ruleSvc.ping();case"system agent":return this.systemSvc.ping();case"registry center":return this.registrySvc.ping();default:return(0,fr.of)()}}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(ut.F0),u.Y36(ut.gz),u.Y36(Zn.D),u.Y36(_n.D),u.Y36(hn.T),u.Y36(Ht.G),u.Y36(Un.n),u.Y36(Bn.J),u.Y36(Gt.r))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-service-unavailable"]],decls:11,vars:5,consts:[["class","alert alert-danger","role","alert",4,"ngIf"],[1,"jumbotron"],[1,"display-5"],[1,"lead"],[1,"my-4"],["role","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"]],template:function(A,L){1&A&&(u.YNc(0,Mt,3,1,"p",0),u.TgZ(1,"div",1),u.TgZ(2,"h2",2),u._uU(3),u.qZA(),u.TgZ(4,"p",3),u._uU(5),u.qZA(),u._UZ(6,"hr",4),u.TgZ(7,"p"),u._uU(8,"EdgeXFoundry uses a microservices architecture, each service is running independently, please make sure that the current service is already running, if you have manually started the service, click the Refresh button."),u.qZA(),u.TgZ(9,"button",5),u.NdJ("click",function(){return L.refresh()}),u._uU(10,"Refresh"),u.qZA(),u.qZA()),2&A&&(u.Q6J("ngIf",L.refresgMsg),u.xp6(3),u.hij("Oops!!! ",L.svcName," service is unavailable!"),u.xp6(2),u.AsE("This could be a network reason, or it could be that the ",L.svcName," microservice is not running, make sure there is no network problem or that the ",L.svcName," service is already running!"),u.xp6(4),u.Q6J("disabled",L.refreshBtnDisable))},directives:[y.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),N})()}];let ir=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[ut.Bz.forRoot(Ar,{useHash:!0})],ut.Bz]}),N})();var qn=O(4689),hr=O(7822);function Wt(N,F){if(1&N){const A=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",3),u.TgZ(2,"span",4),u.NdJ("click",function(){const Oe=u.CHM(A).$implicit;return u.oxw(2).close(Oe)}),u.TgZ(3,"span",5),u._uU(4,"\xd7"),u.qZA(),u.qZA(),u.TgZ(5,"div"),u._uU(6),u.qZA(),u.qZA(),u.qZA()}if(2&N){const A=F.$implicit;u.xp6(1),u.Tol(A.class),u.xp6(5),u.hij(" ",A.content," ")}}function $n(N,F){if(1&N&&(u.TgZ(0,"div",1),u.YNc(1,Wt,7,3,"div",2),u.qZA()),2&N){const A=u.oxw();u.xp6(1),u.Q6J("ngForOf",A.messageService.messages)}}let Zt=(()=>{class N{constructor(A){this.messageService=A}ngOnInit(){}close(A){this.messageService.messages.splice(this.messageService.messages.indexOf(A),1)}ngOnDestroy(){this.timer&&clearInterval(this.timer)}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(hr.e))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-message"]],decls:1,vars:1,consts:[["class","position-fixed overflow-hidden text-break","style","top: 10px; right: 0;min-width: 300px; max-width: 300px;z-index: 999;",4,"ngIf"],[1,"position-fixed","overflow-hidden","text-break",2,"top","10px","right","0","min-width","300px","max-width","300px","z-index","999"],[4,"ngFor","ngForOf"],["role","alert"],["type","button","aria-label","Close",1,"btn","btn-lg","close",3,"click"],["aria-hidden","true"]],template:function(A,L){1&A&&u.YNc(0,$n,2,1,"div",0),2&A&&u.Q6J("ngIf",L.messageService.messages.length)},directives:[y.O5,y.sg],styles:[""]}),N})();function Sr(N,F){if(1&N&&(u.TgZ(0,"a",49),u._uU(1),u.qZA()),2&N){const A=u.oxw().$implicit,L=u.oxw();u.s9C("routerLink",L.navChainMap.get(A)),u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function sn(N,F){if(1&N&&(u.TgZ(0,"span",50),u._uU(1),u.qZA()),2&N){const A=u.oxw().$implicit,L=u.oxw();u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function Dn(N,F){1&N&&(u.TgZ(0,"span"),u._uU(1,">"),u.qZA())}function pr(N,F){if(1&N&&(u.TgZ(0,"h6",35),u.YNc(1,Sr,2,2,"a",47),u.YNc(2,sn,2,1,"span",48),u.YNc(3,Dn,2,0,"span",46),u.qZA()),2&N){const A=F.index,L=u.oxw();u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1)}}function Mr(N,F){1&N&&(u.TgZ(0,"div",51),u.TgZ(1,"div"),u._UZ(2,"span",52),u.TgZ(3,"span"),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.qZA())}function jn(N,F){1&N&&u._UZ(0,"router-outlet")}const Pt=function(){return{exact:!1}};let Ir=(()=>{class N{constructor(A,L){this.activatedRoute=A,this.router=L,this.title="EdgeX Console",this.isSelected=!1,this.toggleClass="",this.shrink=!1,this.shrinkSidebarOnly=!1,this.shrinkCenterNo=!1,this.navChainMap=new Map,this.navChainCache=[],this.navChain=[],this.currentNav="",this.loading=!1,this.navRecognized=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.R9)),this.navStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.OD)),this.navEnd=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.m2)),this.childStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.Eb))}ngOnInit(){this.router.events.subscribe(A=>{A instanceof ut.OD&&(this.loading=!0),(A instanceof ut.m2||A instanceof ut.gk||A instanceof ut.Q3)&&(this.loading=!1)}),this.navEnd.subscribe(A=>{this.navChainCache=[],this.navChainMap=new Map,this.currentNav=A.urlAfterRedirects.split("?")[0].split("/").pop(),this.navChain=A.urlAfterRedirects.split("?")[0].split("/"),this.navChain.shift();let L=this;this.navChain.map(Oe=>Oe).reverse().forEach(function(Oe,je){let $t=L.navChain.map(Tr=>Tr).reverse().slice(je).reverse().join("/");L.navChainCache.push("/"+$t),L.navChainMap.set(Oe,"/"+$t)}),this.navChainCache.reverse()}),$(window).resize(()=>{this.shrinkCenterNo=!1,this.shrink=document.body.clientWidth<1340}),this.router.navigate(["/initializer"],{relativeTo:this.activatedRoute})}pathFormat(A){let L=A.split("-");return L.forEach((ne,Oe)=>{L[Oe]=ne.charAt(0).toUpperCase()+ne.substring(1)}),L.join(" ")}sideBarToggle(){this.shrink?(document.body.clientWidth<1340&&(this.shrinkCenterNo=!0),this.shrink=!1):(document.body.clientWidth<1340&&(this.shrinkCenterNo=!1),this.shrink=!0)}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(ut.gz),u.Y36(ut.F0))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-root"]],decls:60,vars:44,consts:function(){let F,A,L,ne,Oe,je,Et,Nt;return F="Dashboard",A="Metadata",L="DataCenter",ne="Scheduler",Oe="Notifications",je="RuleEngine",Et="AppService",Nt="English",[[1,"container-fluid"],[1,"row"],[1,"px-0"],[1,"sidebar-center","font-weight-bold","text-white","vh-100"],[1,"sidebar-header","p-2"],["src","assets/img/bg_x.png","width","35","height","34","alt","","loading","lazy",1,"mt-2"],[1,"float-right","mt-3","mr-2"],["role","button",1,"fa","fa-navicon","fa-lg","text-light",3,"click"],[1,"overflow-hidden"],[1,"nav","flex-column"],["data-testid","menu-item-dashboard","routerLink","/dashboard","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-tachometer","fa-fw","mr-5"],["data-testid","menu-item-dashboard-text"],F,["routerLink","/metadata","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cubes","fa-fw","mr-5"],A,["routerLink","/core-data","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-database","fa-fw","mr-5"],L,["routerLink","/scheduler","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-clock-o","fa-fw","mr-5"],ne,["routerLink","/notifications","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-envelope","fa-fw","mr-5"],Oe,["routerLink","/rule-engine","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-sliders","fa-fw","mr-5"],je,["routerLink","/app-service","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cloud-upload","fa-fw","mr-5"],Et,[1,"col-12"],[1,"bg-light","center-header","px-3","pt-2","font-weight-bold"],[1,"nav-router","mw-100","align-middle"],[1,"d-inline"],[1,"dropdown","float-right"],["id","dropdownLangLink","type","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","btn-sm","dropdown-toggle"],Nt,["aria-labelledby","dropdownLangLink",1,"dropdown-menu","dropdown-menu-sm","dropdown-menu-right"],["href","/",1,"dropdown-item"],["href","/zh",1,"dropdown-item"],[1,"mw-100","align-middle","mt-1"],["class","d-inline",4,"ngFor","ngForOf"],[1,"center-center","p-3"],["class","text-center","style","margin-top: 20%;",4,"ngIf"],[4,"ngIf"],["class","text-decoration-none d-inline",3,"routerLink",4,"ngIf"],["class","text-decoration-none d-inline",4,"ngIf"],[1,"text-decoration-none","d-inline",3,"routerLink"],[1,"text-decoration-none","d-inline"],[1,"text-center",2,"margin-top","20%"],["role","status","aria-hidden","true",1,"spinner-border","mr-2"]]},template:function(A,L){1&A&&(u._UZ(0,"app-message"),u.TgZ(1,"div",0),u.TgZ(2,"div",1),u.TgZ(3,"div",2),u.TgZ(4,"div",3),u.TgZ(5,"div",4),u._UZ(6,"img",5),u.TgZ(7,"p",6),u.TgZ(8,"i",7),u.NdJ("click",function(){return L.sideBarToggle()}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(9,"div",8),u.TgZ(10,"nav",9),u.TgZ(11,"a",10),u._UZ(12,"i",11),u.TgZ(13,"span",12),u.SDv(14,13),u.qZA(),u.qZA(),u.TgZ(15,"a",14),u._UZ(16,"i",15),u.TgZ(17,"span"),u.SDv(18,16),u.qZA(),u.qZA(),u.TgZ(19,"a",17),u._UZ(20,"i",18),u.TgZ(21,"span"),u.SDv(22,19),u.qZA(),u.qZA(),u.TgZ(23,"a",20),u._UZ(24,"i",21),u.TgZ(25,"span"),u.SDv(26,22),u.qZA(),u.qZA(),u.TgZ(27,"a",23),u._UZ(28,"i",24),u.TgZ(29,"span"),u.SDv(30,25),u.qZA(),u.qZA(),u.TgZ(31,"a",26),u._UZ(32,"i",27),u.TgZ(33,"span"),u.SDv(34,28),u.qZA(),u.qZA(),u.TgZ(35,"a",29),u._UZ(36,"i",30),u.TgZ(37,"span"),u.SDv(38,31),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(39,"div",32),u.TgZ(40,"div"),u.TgZ(41,"nav",33),u.TgZ(42,"div",34),u.TgZ(43,"h4",35),u._uU(44),u.qZA(),u.TgZ(45,"div",36),u.TgZ(46,"button",37),u.TgZ(47,"span"),u.SDv(48,38),u.qZA(),u.qZA(),u.TgZ(49,"div",39),u.TgZ(50,"a",40),u._uU(51,"English"),u.qZA(),u.TgZ(52,"a",41),u._uU(53,"\u4e2d\u6587\u7b80\u4f53"),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(54,"div",42),u.TgZ(55,"div",35),u.YNc(56,pr,4,3,"h6",43),u.qZA(),u.qZA(),u.qZA(),u.TgZ(57,"div",44),u.YNc(58,Mr,5,0,"div",45),u.YNc(59,jn,1,0,"router-outlet",46),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(3),u.ekj("sidebar-shrink",L.shrink)("sidebar",!L.shrink),u.xp6(3),u.ekj("d-none",L.shrink),u.xp6(5),u.Q6J("routerLinkActiveOptions",u.DdM(37,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(38,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(39,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(40,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(41,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(42,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(43,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(3),u.ekj("center-shrink",L.shrink)("center-no-shrink",L.shrinkCenterNo)("center",!L.shrink),u.xp6(4),u.Oqu(L.pathFormat(L.currentNav)),u.xp6(12),u.Q6J("ngForOf",L.navChain),u.xp6(2),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[Zt,ut.yS,ut.Od,y.sg,y.O5,ut.lC],styles:[".sidebar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:250px;z-index:10}.sidebar-shrink[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:45px;z-index:10}.sidebar-center[_ngcontent-%COMP%]{background-color:#2d2848e6!important}.sidebar-header[_ngcontent-%COMP%]{background-color:#2d2848!important;height:65px}.active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}.sidebar-center[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#922c48;background-color:#922c4866!important}.center[_ngcontent-%COMP%]{position:absolute;left:250px;right:0}.center-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-no-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-header[_ngcontent-%COMP%]{height:65px}"]}),N})();function Zr(N,F){1&N&&(u.TgZ(0,"button",18),u._UZ(1,"span",19),u.TgZ(2,"span"),u._uU(3,"Loading..."),u.qZA(),u.qZA())}function mi(N,F){if(1&N){const A=u.EpF();u.TgZ(0,"button",20),u.NdJ("click",function(){return u.CHM(A),u.oxw().login()}),u.TgZ(1,"span"),u.SDv(2,21),u.qZA(),u.qZA()}}const yi=[{path:"login",component:(()=>{class N{constructor(A,L,ne,Oe){this.authSvc=A,this.errorSvc=L,this.router=ne,this.route=Oe,this.loading=!1,this.accessToken=null,this.tokenIsValid=!0}ngOnInit(){}login(){this.loading=!0,this.authSvc.setAccessToken(this.accessToken),this.authSvc.login().pipe((0,Bt.K)(A=>(this.loading=!1,this.authSvc.isLoggedIn=!1,this.accessToken=null,this.tokenIsValid=!1,(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.loading=!1,this.tokenIsValid=!0,this.router.navigate(["/dashboard"],{relativeTo:this.route})})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onInput(){this.tokenIsValid=!0}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(Vn.e),u.Y36(Ot.T),u.Y36(ut.F0),u.Y36(ut.gz))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-login"]],decls:22,vars:5,consts:function(){let F,A,L,ne,Oe;return F="Log in to EdgeX with a token",A="Token",L="the token is invalid!",ne="How to get access token?",Oe="Login",[[1,"login","bg-dark"],[1,"card","login-form"],[1,"card-header"],F,[1,"card-body","bg-light","shadow"],[1,""],[1,"form-group"],["for","accessToken",1,"col-form-label"],[1,"mr-1"],A,["type","password","id","accessToken","name","accessToken",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],L,["class","btn btn-success btn-sm w-100","type","button","disabled","",4,"ngIf"],["type","button","class","btn btn-success btn-sm w-100",3,"click",4,"ngIf"],[1,"mt-2"],["href","https://docs.edgexfoundry.org/3.0/security/Ch-Authenticating/#how-to-make-authenticated-edgex-calls","target","_blank",1,"text-decoration-none"],ne,["type","button","disabled","",1,"btn","btn-success","btn-sm","w-100"],["role","status","aria-hidden","true",1,"spinner-grow","spinner-grow-sm"],["type","button",1,"btn","btn-success","btn-sm","w-100",3,"click"],Oe]},template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span"),u.SDv(4,3),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"form",5),u.TgZ(7,"div",6),u.TgZ(8,"label",7),u.TgZ(9,"span",8),u.SDv(10,9),u.qZA(),u.qZA(),u.TgZ(11,"div",5),u.TgZ(12,"input",10),u.NdJ("ngModelChange",function(Oe){return L.accessToken=Oe})("ngModelChange",function(){return L.onInput()}),u.qZA(),u.TgZ(13,"div",11),u.TgZ(14,"small"),u.SDv(15,12),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.YNc(16,Zr,4,0,"button",13),u.YNc(17,mi,3,0,"button",14),u.TgZ(18,"div",15),u.TgZ(19,"a",16),u.TgZ(20,"small"),u.SDv(21,17),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(12),u.ekj("is-invalid",!L.tokenIsValid),u.Q6J("ngModel",L.accessToken),u.xp6(4),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[ht._Y,ht.JL,ht.F,ht.Fj,ht.JJ,ht.On,y.O5],styles:[".login[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;left:0;right:0;z-index:999}.login-form[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:40%;width:350px;margin:auto}"]}),N})()}];let qr=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[ut.Bz.forChild(yi)],ut.Bz]}),N})(),xi=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[y.ez,ht.u5,qr]]}),N})();const _i=[{provide:tt.TP,useClass:(()=>{class N{constructor(A){this.authSvc=A}intercept(A,L){let ne=A.headers.set("X-Requested-With","XMLHttpRequest");if(this.authSvc.isSecureMode){let je=`Bearer ${this.authSvc.getAccessToken()}`;ne=A.headers.set("X-Requested-With","XMLHttpRequest").set("Authorization",je)}const Oe=A.clone({headers:ne});return L.handle(Oe)}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(Vn.e))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),multi:!0}];let Jr=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N,bootstrap:[Ir]}),N.\u0275inj=u.cJS({providers:[_i],imports:[[gi,y.ez,ht.u5,tt.JF,ir,xi]]}),N})();(0,u.G48)(),br().bootstrapModule(Jr).catch(N=>console.error(N))},9162:(Ye,me,O)=>{"use strict";O.d(me,{ZT:()=>u,mG:()=>P,Jh:()=>x,XA:()=>ae,CR:()=>Ee,ev:()=>ve,qq:()=>He,FC:()=>Me,KL:()=>We});var y=function(le,H){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,ue){X.__proto__=ue}||function(X,ue){for(var Ae in ue)Object.prototype.hasOwnProperty.call(ue,Ae)&&(X[Ae]=ue[Ae])})(le,H)};function u(le,H){if("function"!=typeof H&&null!==H)throw new TypeError("Class extends value "+String(H)+" is not a constructor or null");function X(){this.constructor=le}y(le,H),le.prototype=null===H?Object.create(H):(X.prototype=H.prototype,new X)}function P(le,H,X,ue){return new(X||(X=Promise))(function(ie,ze){function ee(Ve){try{be(ue.next(Ve))}catch(Xe){ze(Xe)}}function Ie(Ve){try{be(ue.throw(Ve))}catch(Xe){ze(Xe)}}function be(Ve){Ve.done?ie(Ve.value):function(ie){return ie instanceof X?ie:new X(function(ze){ze(ie)})}(Ve.value).then(ee,Ie)}be((ue=ue.apply(le,H||[])).next())})}function x(le,H){var ue,Ae,ie,ze,X={label:0,sent:function(){if(1&ie[0])throw ie[1];return ie[1]},trys:[],ops:[]};return ze={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(ze[Symbol.iterator]=function(){return this}),ze;function ee(be){return function(Ve){return function(be){if(ue)throw new TypeError("Generator is already executing.");for(;X;)try{if(ue=1,Ae&&(ie=2&be[0]?Ae.return:be[0]?Ae.throw||((ie=Ae.return)&&ie.call(Ae),0):Ae.next)&&!(ie=ie.call(Ae,be[1])).done)return ie;switch(Ae=0,ie&&(be=[2&be[0],ie.value]),be[0]){case 0:case 1:ie=be;break;case 4:return X.label++,{value:be[1],done:!1};case 5:X.label++,Ae=be[1],be=[0];continue;case 7:be=X.ops.pop(),X.trys.pop();continue;default:if(!(ie=(ie=X.trys).length>0&&ie[ie.length-1])&&(6===be[0]||2===be[0])){X=0;continue}if(3===be[0]&&(!ie||be[1]>ie[0]&&be[1]=le.length&&(le=void 0),{value:le&&le[ue++],done:!le}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ee(le,H){var X="function"==typeof Symbol&&le[Symbol.iterator];if(!X)return le;var Ae,ze,ue=X.call(le),ie=[];try{for(;(void 0===H||H-- >0)&&!(Ae=ue.next()).done;)ie.push(Ae.value)}catch(ee){ze={error:ee}}finally{try{Ae&&!Ae.done&&(X=ue.return)&&X.call(ue)}finally{if(ze)throw ze.error}}return ie}function ve(le,H){for(var X=0,ue=H.length,Ae=le.length;X1||ee(rt,_t)})})}function ee(rt,_t){try{!function(rt){rt.value instanceof He?Promise.resolve(rt.value.v).then(be,Ve):Xe(ie[0][2],rt)}(ue[rt](_t))}catch(jt){Xe(ie[0][3],jt)}}function be(rt){ee("next",rt)}function Ve(rt){ee("throw",rt)}function Xe(rt,_t){rt(_t),ie.shift(),ie.length&&ee(ie[0][0],ie[0][1])}}function We(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,H=le[Symbol.asyncIterator];return H?H.call(le):(le=ae(le),X={},ue("next"),ue("throw"),ue("return"),X[Symbol.asyncIterator]=function(){return this},X);function ue(ie){X[ie]=le[ie]&&function(ze){return new Promise(function(ee,Ie){!function(ie,ze,ee,Ie){Promise.resolve(Ie).then(function(be){ie({value:be,done:ee})},ze)}(ee,Ie,(ze=le[ie](ze)).done,ze.value)})}}}}},Ye=>{Ye(Ye.s=4705)}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/polyfills.ee9e4a31e0a58f0dd9bc.js b/cmd/edgex-ui-server/static/web/en-US/polyfills.ee9e4a31e0a58f0dd9bc.js deleted file mode 100644 index ec94f54f..00000000 --- a/cmd/edgex-ui-server/static/web/en-US/polyfills.ee9e4a31e0a58f0dd9bc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[429],{9140:(Ee,Pe,we)=>{var de,De;void 0!==(De="function"==typeof(de=function(){!function(e){var r=e.performance;function t(h){r&&r.mark&&r.mark(h)}function n(h,a){r&&r.measure&&r.measure(h,a)}t("Zone");var u=e.__Zone_symbol_prefix||"__zone_symbol__";function c(h){return u+h}var l=!0===e[c("forceDuplicateZoneCheck")];if(e.Zone){if(l||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var v=function(){function h(a,o){this._parent=a,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,o)}return h.assertZonePatched=function(){if(e.Promise!==F.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(h,"root",{get:function(){for(var a=h.current;a.parent;)a=a.parent;return a},enumerable:!1,configurable:!0}),Object.defineProperty(h,"current",{get:function(){return A.zone},enumerable:!1,configurable:!0}),Object.defineProperty(h,"currentTask",{get:function(){return ie},enumerable:!1,configurable:!0}),h.__load_patch=function(a,o,i){if(void 0===i&&(i=!1),F.hasOwnProperty(a)){if(!i&&l)throw Error("Already loaded patch: "+a)}else if(!e["__Zone_disable_"+a]){var P="Zone:"+a;t(P),F[a]=o(e,h,w),n(P,P)}},Object.defineProperty(h.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),h.prototype.get=function(a){var o=this.getZoneWith(a);if(o)return o._properties[a]},h.prototype.getZoneWith=function(a){for(var o=this;o;){if(o._properties.hasOwnProperty(a))return o;o=o._parent}return null},h.prototype.fork=function(a){if(!a)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,a)},h.prototype.wrap=function(a,o){if("function"!=typeof a)throw new Error("Expecting function got: "+a);var i=this._zoneDelegate.intercept(this,a,o),P=this;return function(){return P.runGuarded(i,this,arguments,o)}},h.prototype.run=function(a,o,i,P){A={parent:A,zone:this};try{return this._zoneDelegate.invoke(this,a,o,i,P)}finally{A=A.parent}},h.prototype.runGuarded=function(a,o,i,P){void 0===o&&(o=null),A={parent:A,zone:this};try{try{return this._zoneDelegate.invoke(this,a,o,i,P)}catch(z){if(this._zoneDelegate.handleError(this,z))throw z}}finally{A=A.parent}},h.prototype.runTask=function(a,o,i){if(a.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");if(a.state!==j||a.type!==R&&a.type!==Y){var P=a.state!=k;P&&a._transitionTo(k,U),a.runCount++;var z=ie;ie=a,A={parent:A,zone:this};try{a.type==Y&&a.data&&!a.data.isPeriodic&&(a.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,a,o,i)}catch(se){if(this._zoneDelegate.handleError(this,se))throw se}}finally{a.state!==j&&a.state!==I&&(a.type==R||a.data&&a.data.isPeriodic?P&&a._transitionTo(U,k):(a.runCount=0,this._updateTaskCount(a,-1),P&&a._transitionTo(j,k,j))),A=A.parent,ie=z}}},h.prototype.scheduleTask=function(a){if(a.zone&&a.zone!==this)for(var o=this;o;){if(o===a.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+a.zone.name);o=o.parent}a._transitionTo(V,j);var i=[];a._zoneDelegates=i,a._zone=this;try{a=this._zoneDelegate.scheduleTask(this,a)}catch(P){throw a._transitionTo(I,V,j),this._zoneDelegate.handleError(this,P),P}return a._zoneDelegates===i&&this._updateTaskCount(a,1),a.state==V&&a._transitionTo(U,V),a},h.prototype.scheduleMicroTask=function(a,o,i,P){return this.scheduleTask(new p(ee,a,o,i,P,void 0))},h.prototype.scheduleMacroTask=function(a,o,i,P,z){return this.scheduleTask(new p(Y,a,o,i,P,z))},h.prototype.scheduleEventTask=function(a,o,i,P,z){return this.scheduleTask(new p(R,a,o,i,P,z))},h.prototype.cancelTask=function(a){if(a.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");a._transitionTo($,U,k);try{this._zoneDelegate.cancelTask(this,a)}catch(o){throw a._transitionTo(I,$),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(a,-1),a._transitionTo(j,$),a.runCount=0,a},h.prototype._updateTaskCount=function(a,o){var i=a._zoneDelegates;-1==o&&(a._zoneDelegates=null);for(var P=0;P0,macroTask:i.macroTask>0,eventTask:i.eventTask>0,change:a})},h}(),p=function(){function h(a,o,i,P,z,se){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=a,this.source=o,this.data=P,this.scheduleFn=z,this.cancelFn=se,!i)throw new Error("callback is not defined");this.callback=i;var f=this;this.invoke=a===R&&P&&P.useG?h.invokeTask:function(){return h.invokeTask.call(e,f,this,arguments)}}return h.invokeTask=function(a,o,i){a||(a=this),ne++;try{return a.runCount++,a.zone.runTask(a,o,i)}finally{1==ne&&m(),ne--}},Object.defineProperty(h.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),h.prototype.cancelScheduleRequest=function(){this._transitionTo(j,V)},h.prototype._transitionTo=function(a,o,i){if(this._state!==o&&this._state!==i)throw new Error(this.type+" '"+this.source+"': can not transition to '"+a+"', expecting state '"+o+"'"+(i?" or '"+i+"'":"")+", was '"+this._state+"'.");this._state=a,a==j&&(this._zoneDelegates=null)},h.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},h.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},h}(),y=c("setTimeout"),b=c("Promise"),O=c("then"),N=[],M=!1;function g(h){if(0===ne&&0===N.length)if(X||e[b]&&(X=e[b].resolve(0)),X){var a=X[O];a||(a=X.then),a.call(X,m)}else e[y](m,0);h&&N.push(h)}function m(){if(!M){for(M=!0;N.length;){var h=N;N=[];for(var a=0;a=0;t--)"function"==typeof e[t]&&(e[t]=ze(e[t],r+"_"+t));return e}function rr(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var tr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Ne=!("nw"in J)&&void 0!==J.process&&"[object process]"==={}.toString.call(J.process),qe=!Ne&&!tr&&!(!Ze||!ye.HTMLElement),nr=void 0!==J.process&&"[object process]"==={}.toString.call(J.process)&&!tr&&!(!Ze||!ye.HTMLElement),Le={},or=function(e){if(e=e||J.event){var r=Le[e.type];r||(r=Le[e.type]=G("ON_PROPERTY"+e.type));var u,t=this||e.target||J,n=t[r];return qe&&t===ye&&"error"===e.type?!0===(u=n&&n.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null!=(u=n&&n.apply(this,arguments))&&!u&&e.preventDefault(),u}};function ar(e,r,t){var n=Oe(e,r);if(!n&&t&&Oe(t,r)&&(n={enumerable:!0,configurable:!0}),n&&n.configurable){var c=G("on"+r+"patched");if(!e.hasOwnProperty(c)||!e[c]){delete n.writable,delete n.value;var l=n.get,v=n.set,T=r.substr(2),d=Le[T];d||(d=Le[T]=G("ON_PROPERTY"+T)),n.set=function(p){var y=this;!y&&e===J&&(y=J),y&&(y[d]&&y.removeEventListener(T,or),v&&v.apply(y,Sr),"function"==typeof p?(y[d]=p,y.addEventListener(T,or,!1)):y[d]=null)},n.get=function(){var p=this;if(!p&&e===J&&(p=J),!p)return null;var y=p[d];if(y)return y;if(l){var b=l&&l.call(this);if(b)return n.set.call(this,b),"function"==typeof p.removeAttribute&&p.removeAttribute(r),b}return null},xe(e,r,n),e[c]=!0}}}function ir(e,r,t){if(r)for(var n=0;n=0&&"function"==typeof v[T.cbIdx]?We(T.name,v[T.cbIdx],T,u):c.apply(l,v)}})}function he(e,r){e[G("OriginalDelegate")]=r}var sr=!1,Ye=!1;function Zr(){if(sr)return Ye;sr=!0;try{var e=ye.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ye=!0)}catch(r){}return Ye}Zone.__load_patch("ZoneAwarePromise",function(e,r,t){var n=Object.getOwnPropertyDescriptor,u=Object.defineProperty;var l=t.symbol,v=[],T=!0===e[l("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=l("Promise"),p=l("then");t.onUnhandledError=function(f){if(t.showUncaughtError()){var E=f&&f.rejection;E?console.error("Unhandled Promise rejection:",E instanceof Error?E.message:E,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",E,E instanceof Error?E.stack:void 0):console.error(f)}},t.microtaskDrainDone=function(){for(var f=function(){var E=v.shift();try{E.zone.runGuarded(function(){throw E.throwOriginal?E.rejection:E})}catch(s){!function(f){t.onUnhandledError(f);try{var E=r[b];"function"==typeof E&&E.call(this,f)}catch(s){}}(s)}};v.length;)f()};var b=l("unhandledPromiseRejectionHandler");function N(f){return f&&f.then}function M(f){return f}function X(f){return o.reject(f)}var g=l("state"),m=l("value"),B=l("finally"),j=l("parentPromiseValue"),V=l("parentPromiseState"),k=null,$=!0,I=!1;function Y(f,E){return function(s){try{A(f,E,s)}catch(_){A(f,!1,_)}}}var w=l("currentTaskTrace");function A(f,E,s){var _=function(){var f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}}();if(f===s)throw new TypeError("Promise resolved with itself");if(f[g]===k){var S=null;try{("object"==typeof s||"function"==typeof s)&&(S=s&&s.then)}catch(Z){return _(function(){A(f,!1,Z)})(),f}if(E!==I&&s instanceof o&&s.hasOwnProperty(g)&&s.hasOwnProperty(m)&&s[g]!==k)ne(s),A(f,s[g],s[m]);else if(E!==I&&"function"==typeof S)try{S.call(s,_(Y(f,E)),_(Y(f,!1)))}catch(Z){_(function(){A(f,!1,Z)})()}else{f[g]=E;var C=f[m];if(f[m]=s,f[B]===B&&E===$&&(f[g]=f[V],f[m]=f[j]),E===I&&s instanceof Error){var L=r.currentTask&&r.currentTask.data&&r.currentTask.data.__creationTrace__;L&&u(s,w,{configurable:!0,enumerable:!1,writable:!0,value:L})}for(var x=0;x1?new c(T,d):new c(T),O=e.ObjectGetOwnPropertyDescriptor(p,"onmessage");return O&&!1===O.configurable?(y=e.ObjectCreate(p),b=p,[n,u,"send","close"].forEach(function(N){y[N]=function(){var M=e.ArraySlice.call(arguments);if(N===n||N===u){var X=M.length>0?M[0]:void 0;if(X){var g=Zone.__symbol__("ON_PROPERTY"+X);p[g]=y[g]}}return p[N].apply(p,M)}})):y=p,e.patchOnProperties(y,["close","error","message","open"],b),y};var l=r.WebSocket;for(var v in c)l[v]=c[v]}(e,r),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(e,r,t){t.patchOnProperties=ir,t.patchMethod=ve,t.bindArguments=Xe,t.patchMacroTask=Cr;var n=r.__symbol__("BLACK_LISTED_EVENTS"),u=r.__symbol__("UNPATCHED_EVENTS");e[u]&&(e[n]=e[u]),e[n]&&(r[n]=r[u]=e[n]),t.patchEventPrototype=Mr,t.patchEventTarget=Lr,t.isIEOrEdge=Zr,t.ObjectDefineProperty=xe,t.ObjectGetOwnPropertyDescriptor=Oe,t.ObjectCreate=Pr,t.ArraySlice=wr,t.patchClass=Re,t.wrapWithCurrentZone=ze,t.filterProperties=_r,t.attachOriginToPatched=he,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Ir,t.getGlobalObjects=function(){return{globalSources:ur,zoneSymbolEventNames:ae,eventNames:ge,isBrowser:qe,isMix:nr,isNode:Ne,TRUE_STR:fe,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Se,ADD_EVENT_LISTENER_STR:Fe,REMOVE_EVENT_LISTENER_STR:Ge}}}),(e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})[(n="legacyPatch",(e.__Zone_symbol_prefix||"__zone_symbol__")+n)]=function(){var n=e.Zone;n.__load_patch("defineProperty",function(u,c,l){l._redefineProperty=Yr,Ie=Zone.__symbol__,Ae=Object[Ie("defineProperty")]=Object.defineProperty,pr=Object[Ie("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Er=Object.create,pe=Ie("unconfigurables"),Object.defineProperty=function(e,r,t){if(yr(e,r))throw new TypeError("Cannot assign to read only property '"+r+"' of "+e);var n=t.configurable;return"prototype"!==r&&(t=Qe(e,r,t)),mr(e,r,t,n)},Object.defineProperties=function(e,r){return Object.keys(r).forEach(function(t){Object.defineProperty(e,t,r[t])}),e},Object.create=function(e,r){return"object"==typeof r&&!Object.isFrozen(r)&&Object.keys(r).forEach(function(t){r[t]=Qe(e,t,r[t])}),Er(e,r)},Object.getOwnPropertyDescriptor=function(e,r){var t=pr(e,r);return t&&yr(e,r)&&(t.configurable=!1),t}}),n.__load_patch("registerElement",function(u,c,l){!function(e,r){var t=r.getGlobalObjects();(t.isBrowser||t.isMix)&&"registerElement"in e.document&&r.patchCallbacks(r,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(u,l)}),n.__load_patch("EventTargetLegacy",function(u,c,l){(function(e,r){var t=r.getGlobalObjects(),n=t.eventNames,u=t.globalSources,c=t.zoneSymbolEventNames,l=t.TRUE_STR,v=t.FALSE_STR,T=t.ZONE_SYMBOL_PREFIX,p="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),y="EventTarget",b=[],O=e.wtf,N="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");O?b=N.map(function(H){return"HTML"+H+"Element"}).concat(p):e[y]?b.push(y):b=p;for(var M=e.__Zone_disable_IE_check||!1,X=e.__Zone_enable_cross_context_check||!1,g=r.isIEOrEdge(),B="[object FunctionWrapper]",j="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",V={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},U=0;U0){var h=R.invoke;R.invoke=function(){for(var a=w[r.__symbol__("loadfalse")],o=0;o{we(9140)}},Ee=>{Ee(Ee.s=7435)}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/en-US/runtime.529f931c388a649b0d57.js b/cmd/edgex-ui-server/static/web/en-US/runtime.66dfc9aff30a12bc6854.js similarity index 61% rename from cmd/edgex-ui-server/static/web/en-US/runtime.529f931c388a649b0d57.js rename to cmd/edgex-ui-server/static/web/en-US/runtime.66dfc9aff30a12bc6854.js index e2938827..20273f92 100644 --- a/cmd/edgex-ui-server/static/web/en-US/runtime.529f931c388a649b0d57.js +++ b/cmd/edgex-ui-server/static/web/en-US/runtime.66dfc9aff30a12bc6854.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},m={};function r(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(n,t,d,i)=>{if(!t){var a=1/0;for(f=0;f=i)&&Object.keys(r.O).every(p=>r.O[p](t[o]))?t.splice(o--,1):(c=!1,i0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,d,i]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{10:"6738023b8487d81b9158",155:"eb51d10e34a83d1c5025",489:"1d8008a97976d4d683d9",536:"a6d638d333a1069f0cc8",634:"06407e8d8a370697347f",707:"ecc7566fd8350a44c26d",753:"17a3f2b06f5ffbdb9f25",827:"f5639739df18b26d0d39",849:"5f6112a144f036c16a05",894:"407bd7f3a95dc5bc38a8"}[e]+".js",r.miniCssF=e=>"styles.2a143380ce0f2a41afa9.css",r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="web:";r.l=(t,d,i,f)=>{if(e[t])e[t].push(d);else{var a,c;if(void 0!==i)for(var o=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(b);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=n=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(n))})(),r.p="",(()=>{var e={666:0};r.f.j=(d,i)=>{var f=r.o(e,d)?e[d]:void 0;if(0!==f)if(f)i.push(f[2]);else if(666!=d){var a=new Promise((u,s)=>f=e[d]=[u,s]);i.push(f[2]=a);var c=r.p+r.u(d),o=new Error;r.l(c,u=>{if(r.o(e,d)&&(0!==(f=e[d])&&(e[d]=void 0),f)){var s=u&&("load"===u.type?"missing":u.type),b=u&&u.target&&u.target.src;o.message="Loading chunk "+d+" failed.\n("+s+": "+b+")",o.name="ChunkLoadError",o.type=s,o.request=b,f[1](o)}},"chunk-"+d,d)}else e[d]=0},r.O.j=d=>0===e[d];var n=(d,i)=>{var o,l,[f,a,c]=i,u=0;for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(c)var s=c(r);for(d&&d(i);u{"use strict";var e,v={},m={};function r(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(n,t,d,i)=>{if(!t){var a=1/0;for(f=0;f=i)&&Object.keys(r.O).every(p=>r.O[p](t[o]))?t.splice(o--,1):(l=!1,i0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,d,i]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{10:"6895e8a3e17d7e2e257b",155:"c74e9dbdebada850abed",489:"8656f68beb54ecacddb5",536:"1c48ef705d3c1d565d49",634:"3a15cb1e5504f0e3110a",707:"ecc7566fd8350a44c26d",753:"29ab49e72766d4c1702a",827:"f5639739df18b26d0d39",849:"c2ff0f8f788ceb65b645",894:"dc385c7f0166f0128c32"}[e]+".js",r.miniCssF=e=>"styles.2a143380ce0f2a41afa9.css",r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="web:";r.l=(t,d,i,f)=>{if(e[t])e[t].push(d);else{var a,l;if(void 0!==i)for(var o=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(b);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=n=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(n))})(),r.p="",(()=>{var e={666:0};r.f.j=(d,i)=>{var f=r.o(e,d)?e[d]:void 0;if(0!==f)if(f)i.push(f[2]);else if(666!=d){var a=new Promise((u,s)=>f=e[d]=[u,s]);i.push(f[2]=a);var l=r.p+r.u(d),o=new Error;r.l(l,u=>{if(r.o(e,d)&&(0!==(f=e[d])&&(e[d]=void 0),f)){var s=u&&("load"===u.type?"missing":u.type),b=u&&u.target&&u.target.src;o.message="Loading chunk "+d+" failed.\n("+s+": "+b+")",o.name="ChunkLoadError",o.type=s,o.request=b,f[1](o)}},"chunk-"+d,d)}else e[d]=0},r.O.j=d=>0===e[d];var n=(d,i)=>{var o,c,[f,a,l]=i,u=0;for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(l)var s=l(r);for(d&&d(i);u{"use strict";var e,v={},m={};function r(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(n,t,i,f)=>{if(!t){var a=1/0;for(d=0;d=f)&&Object.keys(r.O).every(p=>r.O[p](t[o]))?t.splice(o--,1):(l=!1,f0&&e[d-1][2]>f;d--)e[d]=e[d-1];e[d]=[t,i,f]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{10:"86cd78dbb35d3933fb18",155:"99bd04e59759370573ae",489:"4065c1dc2d3b3b501684",536:"77ceca190a98a8038a03",634:"c5763db2e92fa7d59036",707:"65d94ee77cc572c9cd8c",753:"5ef6f0ee7641c98adf0e",827:"4e2251bfaee2216adb91",849:"788edd22071d3b7246e9",894:"58b03acb8877946712cc"}[e]+".js",r.miniCssF=e=>"styles.2a143380ce0f2a41afa9.css",r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="web:";r.l=(t,i,f,d)=>{if(e[t])e[t].push(i);else{var a,l;if(void 0!==f)for(var o=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(b);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=n=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(n))})(),r.p="",(()=>{var e={666:0};r.f.j=(i,f)=>{var d=r.o(e,i)?e[i]:void 0;if(0!==d)if(d)f.push(d[2]);else if(666!=i){var a=new Promise((u,s)=>d=e[i]=[u,s]);f.push(d[2]=a);var l=r.p+r.u(i),o=new Error;r.l(l,u=>{if(r.o(e,i)&&(0!==(d=e[i])&&(e[i]=void 0),d)){var s=u&&("load"===u.type?"missing":u.type),b=u&&u.target&&u.target.src;o.message="Loading chunk "+i+" failed.\n("+s+": "+b+")",o.name="ChunkLoadError",o.type=s,o.request=b,d[1](o)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,f)=>{var o,c,[d,a,l]=f,u=0;for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(l)var s=l(r);for(i&&i(f);u{d.r(b),d.d(b,{MetadataModule:()=>Xe});var n=d(8583),a=d(3092),T=d(9502),_=d(476);let x=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-metadata"]],decls:14,vars:0,consts:function(){let E,e,t;return E="\u8BBE\u5907\u670D\u52A1",e="\u8BBE\u5907",t="\u8BBE\u5907\u5143\u4FE1\u606F",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./device-service-list","routerLinkActive","active",1,"nav-link"],E,["routerLink","./device-center","routerLinkActive","active",1,"nav-link"],e,["routerLink","./device-profile-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.SDv(5,5),_.qZA(),_.qZA(),_.TgZ(6,"li",3),_.TgZ(7,"a",6),_.SDv(8,7),_.qZA(),_.qZA(),_.TgZ(9,"li",3),_.TgZ(10,"a",8),_.SDv(11,9),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"div",10),_._UZ(13,"router-outlet"),_.qZA(),_.qZA())},directives:[T.yS,T.Od,T.lC],styles:[".active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}"]}),i})();var u=d(2437),V=d(7822);function S(i,E){if(1&i&&(_.TgZ(0,"p"),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.description)}}function m(i,E){1&i&&(_.TgZ(0,"p",20),_._uU(1,"no description."),_.qZA())}function G(i,E){if(1&i&&(_.TgZ(0,"span",21),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function U(i,E){if(1&i&&(_.TgZ(0,"span",22),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function X(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"a",23),_.NdJ("click",function(){_.CHM(e);const o=_.oxw().$implicit;return _.oxw().associatedDevicesSkip(o.name)}),_._UZ(1,"i",24),_.TgZ(2,"span"),_.SDv(3,25),_.qZA(),_._uU(4),_.qZA()}if(2&i){const e=_.oxw().$implicit,t=_.oxw();_.xp6(4),_.hij("\xa0 ",t.associatedDevices.get(e.name)," ")}}function e_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"li",3),_.TgZ(1,"div",4),_.TgZ(2,"div",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"div",7),_.TgZ(5,"div",8),_.TgZ(6,"h5",9),_._uU(7),_.qZA(),_.qZA(),_.YNc(8,S,2,1,"p",10),_.YNc(9,m,2,0,"ng-template",null,11,_.W1O),_.TgZ(11,"div"),_.TgZ(12,"span",12),_._uU(13),_.qZA(),_.TgZ(14,"span",13),_.YNc(15,G,2,1,"span",14),_.YNc(16,U,2,1,"span",15),_.qZA(),_.YNc(17,X,5,1,"a",16),_.TgZ(18,"span",17),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw().edit(c)}),_._UZ(19,"i",18),_.TgZ(20,"span"),_.SDv(21,19),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.MAs(10),o=_.oxw();_.xp6(7),_.Oqu(e.name),_.xp6(1),_.Q6J("ngIf",e.description)("ngIfElse",t),_.xp6(5),_.hij("Port ",o.getSvcPort(e.baseAddress),""),_.xp6(1),_.Q6J("ngSwitch",e.adminState),_.xp6(1),_.Q6J("ngSwitchCase","UNLOCKED"),_.xp6(2),_.Q6J("ngIf",o.associatedDevices.size)}}function I(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",26),_.TgZ(1,"div",27),_._UZ(2,"i",28),_.TgZ(3,"span"),_.SDv(4,29),_.qZA(),_.TgZ(5,"span",30),_._uU(6),_.qZA(),_.TgZ(7,"button",31),_.NdJ("click",function(){return _.CHM(e),_.oxw().updateSvc()}),_.SDv(8,32),_.qZA(),_.qZA(),_.TgZ(9,"div",33),_.TgZ(10,"form"),_.TgZ(11,"div",34),_.TgZ(12,"label",35),_.SDv(13,36),_.qZA(),_.TgZ(14,"div",37),_.TgZ(15,"input",38),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceSvcSelected.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(16,"div",34),_.TgZ(17,"label",39),_.SDv(18,40),_.qZA(),_.TgZ(19,"div",37),_.TgZ(20,"select",41),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceSvcSelected.adminState=o}),_.TgZ(21,"option",42),_._uU(22,"UNLOCKED"),_.qZA(),_.TgZ(23,"option",43),_._uU(24,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(6),_.Oqu(e.deviceSvcSelected.name),_.xp6(9),_.Q6J("ngModel",e.deviceSvcSelected.description),_.xp6(5),_.Q6J("ngModel",e.deviceSvcSelected.adminState)}}let R=(()=>{class i{constructor(e,t,o,c){this.metaSvc=e,this.msgSvc=t,this.router=o,this.route=c,this.deviceServiceList=[],this.associatedDevices=new Map}ngOnInit(){this.metaSvc.allDeviceServices().subscribe(e=>{this.deviceServiceList=e.services,this.deviceServiceList.forEach(t=>{this.metaSvc.findDevicesByServiceName(0,20,t.name).subscribe(o=>{this.associatedDevices.set(t.name,o.devices.length>20?"20+":String(o.devices.length))})})})}getSvcPort(e){return new URL(e).port}edit(e){this.deviceSvcSelected=e}updateSvc(){this.metaSvc.updateDeviceService(this.deviceSvcSelected).subscribe(()=>{var e;this.msgSvc.success("update device service",`name: ${null===(e=this.deviceSvcSelected)||void 0===e?void 0:e.name}`),this.deviceSvcSelected=void 0})}associatedDevicesSkip(e){this.router.navigate(["../device-center"],{queryParams:{svcName:e},relativeTo:this.route})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-service-media-list"]],decls:3,vars:2,consts:function(){let E,e,t,o,c,s;return E="\u8BBE\u7F6E",e="\u5173\u8054\u8BBE\u5907",t="\u7F16\u8F91",o="\u4FDD\u5B58",c="\u63CF\u8FF0",s="\u7BA1\u7406\u72B6\u6001",[[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[4,"ngIf","ngIfElse"],["nodesc",""],[1,"badge","badge-info","mr-3"],[3,"ngSwitch"],["class","badge badge-success mr-3",4,"ngSwitchCase"],["class","badge badge-danger mr-3",4,"ngSwitchDefault"],["class","badge badge-primary","role","button",3,"click",4,"ngIf"],["role","button",1,"badge","badge-secondary","float-right",3,"click"],[1,"fa","fa-cog","mr-1"],E,[1,"my-1"],[1,"badge","badge-success","mr-3"],[1,"badge","badge-danger","mr-3"],["role","button",1,"badge","badge-primary",3,"click"],[1,"fa","fa-sitemap","mr-1"],e,[1,"card","mt-3"],[1,"card-header"],[1,"fa","fa-edit","mr-1","text-danger"],t,[1,"ml-1"],[1,"btn","btn-success","btn-sm","float-right",3,"click"],o,[1,"card-body"],[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],c,[1,"col-md-10"],["type","text","name","deviceSvcDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],s,["name","deviceSvcAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"]]},template:function(e,t){1&e&&(_.TgZ(0,"ul",0),_.YNc(1,e_,22,7,"li",1),_.qZA(),_.YNc(2,I,25,3,"div",2)),2&e&&(_.xp6(1),_.Q6J("ngForOf",t.deviceServiceList),_.xp6(1),_.Q6J("ngIf",t.deviceSvcSelected))},directives:[n.sg,n.O5,n.RF,n.n9,n.ED,a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),i})(),l=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[T.lC],styles:[""]}),i})();var r=d(7982);function g(i,E){1&i&&_._UZ(0,"div")}function Z(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"li",20),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw(2).selectCmd(c)}),_._uU(1),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw(2);_.ekj("list-group-item-info",(null==t.selectedCmd?null:t.selectedCmd.name)===e.name),_.xp6(1),_.Oqu(e.name)}}function q(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw(3).issueGetCmd()}),_._uU(1,"try"),_.qZA()}}function J(i,E){1&i&&_._UZ(0,"div")}function y(i,E){if(1&i&&(_.TgZ(0,"span",41),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.hij(" ",e.cmdGetResponse,"")}}function B(i,E){if(1&i&&(_.TgZ(0,"pre",42),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdGetResponseRaw)}}function W(i,E){if(1&i&&(_.TgZ(0,"div"),_.TgZ(1,"span",35),_.SDv(2,36),_.qZA(),_.YNc(3,y,2,1,"span",37),_.qZA(),_.TgZ(4,"div",38),_.TgZ(5,"span",35),_.SDv(6,39),_.qZA(),_.YNc(7,B,2,1,"pre",40),_.qZA()),2&i){const e=_.oxw(3);_.xp6(3),_.Q6J("ngIf",e.cmdGetResponse),_.xp6(4),_.Q6J("ngIf",e.cmdGetResponseRaw)}}function H(i,E){1&i&&(_.TgZ(0,"h6",43),_._UZ(1,"i",44),_.TgZ(2,"span"),_.SDv(3,45),_.qZA(),_.qZA())}function w(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw(3).issueSetCmd()}),_._uU(1,"try"),_.qZA()}}function F(i,E){1&i&&_._UZ(0,"div")}function k(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"label",56),_._uU(2),_.qZA(),_.TgZ(3,"select",57),_.NdJ("ngModelChange",function(o){_.CHM(e);const c=_.oxw().index;return _.oxw(6).parameterBearerList[c].value=o}),_.TgZ(4,"option",58),_._uU(5,"false"),_.qZA(),_.TgZ(6,"option",58),_._uU(7,"true"),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(),t=e.$implicit,o=e.index,c=_.oxw(6);_.xp6(1),_.s9C("for",t.resourceName),_.xp6(1),_.hij(" ",t.resourceName," "),_.xp6(1),_.s9C("id",t.resourceName),_.s9C("name",t.resourceName),_.Q6J("ngModel",c.parameterBearerList[o].value),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function z(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"label",56),_._uU(1),_.qZA(),_.TgZ(2,"input",59),_.NdJ("ngModelChange",function(o){_.CHM(e);const c=_.oxw().index;return _.oxw(6).parameterBearerList[c].value=o}),_.qZA()}if(2&i){const e=_.oxw(),t=e.$implicit,o=e.index,c=_.oxw(6);_.s9C("for",t.resourceName),_.xp6(1),_.Oqu(t.resourceName),_.xp6(1),_.s9C("id",t.resourceName),_.s9C("name",t.resourceName),_.MGl("placeholder","valueType: ",t.valueType,""),_.Q6J("ngModel",c.parameterBearerList[o].value)}}function Y(i,E){if(1&i&&(_.TgZ(0,"div",53),_.YNc(1,k,8,7,"div",54),_.YNc(2,z,3,6,"ng-template",null,55,_.W1O),_.qZA()),2&i){const e=E.$implicit,t=_.MAs(3);_.xp6(1),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function Q(i,E){if(1&i&&(_.TgZ(0,"div",51),_.YNc(1,Y,4,2,"div",52),_.qZA()),2&i){const e=_.oxw(5);_.xp6(1),_.Q6J("ngForOf",e.selectedCmdSetParams)}}function j(i,E){if(1&i&&(_.TgZ(0,"div",12),_.TgZ(1,"div",4),_.SDv(2,49),_.qZA(),_.TgZ(3,"div",9),_.YNc(4,Q,2,1,"div",50),_.qZA(),_.qZA()),2&i){const e=_.oxw(4);_.xp6(4),_.Q6J("ngIf",e.selectedCmd)}}function M(i,E){if(1&i&&(_.TgZ(0,"span",41),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdSetResponse)}}function m_(i,E){if(1&i&&(_.TgZ(0,"pre",42),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdSetResponseRaw)}}function v_(i,E){if(1&i&&(_.YNc(0,j,5,1,"div",46),_.TgZ(1,"div"),_.TgZ(2,"div"),_.TgZ(3,"span",35),_.SDv(4,47),_.qZA(),_.YNc(5,M,2,1,"span",37),_.qZA(),_.TgZ(6,"div",38),_.TgZ(7,"span",35),_.SDv(8,48),_.qZA(),_.YNc(9,m_,2,1,"pre",40),_.qZA(),_.qZA()),2&i){const e=_.oxw(3);_.Q6J("ngIf",e.selectedCmdSetParams),_.xp6(5),_.Q6J("ngIf",e.cmdSetResponse),_.xp6(4),_.Q6J("ngIf",e.cmdSetResponseRaw)}}function N_(i,E){1&i&&(_.TgZ(0,"h6",43),_._UZ(1,"i",44),_.TgZ(2,"span"),_.SDv(3,60),_.qZA(),_.qZA())}function M_(i,E){if(1&i&&(_.TgZ(0,"div",21),_.TgZ(1,"div",4),_.TgZ(2,"span",22),_._UZ(3,"i",23),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,24),_.qZA(),_.qZA(),_.TgZ(7,"div",25),_.TgZ(8,"div",10),_.TgZ(9,"div",26),_.TgZ(10,"div",12),_.TgZ(11,"div",4),_._uU(12," Get "),_.YNc(13,q,2,0,"button",27),_.qZA(),_.TgZ(14,"div",28),_.YNc(15,J,1,0,"div",0),_.YNc(16,W,8,2,"ng-template",null,29,_.W1O),_.YNc(18,H,4,0,"ng-template",null,30,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.TgZ(20,"div",31),_.TgZ(21,"div",21),_.TgZ(22,"div",4),_._uU(23," Set "),_.YNc(24,w,2,0,"button",27),_.qZA(),_.TgZ(25,"div",9),_.YNc(26,F,1,0,"div",0),_.YNc(27,v_,10,3,"ng-template",null,32,_.W1O),_.YNc(29,N_,4,0,"ng-template",null,33,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.MAs(17),t=_.MAs(19),o=_.MAs(28),c=_.MAs(30),s=_.oxw(2);_.xp6(4),_.hij(" ",s.selectedCmd.name," method:"),_.xp6(9),_.Q6J("ngIf",s.selectedCmd.get),_.xp6(2),_.Q6J("ngIf",s.selectedCmd.get)("ngIfThen",e)("ngIfElse",t),_.xp6(9),_.Q6J("ngIf",s.selectedCmd.set),_.xp6(2),_.Q6J("ngIf",s.selectedCmd.set)("ngIfThen",o)("ngIfElse",c)}}function P_(i,E){if(1&i&&(_.TgZ(0,"div",3),_.TgZ(1,"div",4),_.TgZ(2,"span",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"span",7),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,8),_.qZA(),_.qZA(),_.TgZ(8,"div",9),_.TgZ(9,"div",10),_.TgZ(10,"div",11),_.TgZ(11,"div",12),_.TgZ(12,"div",13),_.SDv(13,14),_.qZA(),_.TgZ(14,"div",15),_.TgZ(15,"ul",16),_.YNc(16,Z,2,3,"li",17),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",18),_.YNc(18,M_,31,9,"div",19),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(5),_.Oqu(e.associatedCmdDeviceName),_.xp6(11),_.Q6J("ngForOf",e.deviceCoreCommand),_.xp6(2),_.Q6J("ngIf",e.selectedCmd)}}function O_(i,E){if(1&i&&(_.TgZ(0,"div",3),_.TgZ(1,"div",4),_.TgZ(2,"span",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"span",7),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,61),_.qZA(),_.qZA(),_.TgZ(8,"div",62),_.TgZ(9,"h5",43),_._UZ(10,"i",63),_.TgZ(11,"span"),_.SDv(12,64),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(5),_.Oqu(e.associatedCmdDeviceName)}}let G_=(()=>{class i{constructor(e,t){this.cmdSvc=e,this.metadataSvc=t,this.selectedCmd={},this.selectedCmdSetParams=[],this.parameterBearerList=[]}ngOnInit(){}ngOnChanges(){!this.deviceName||(this.resetResponse(),this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(this.deviceName).subscribe(e=>{this.associatedCmdDeviceName=e.deviceCoreCommand.deviceName,this.deviceCoreCommand=e.deviceCoreCommand.coreCommands,this.deviceCoreCommand&&0!==this.deviceCoreCommand.length&&(this.selectedCmd=this.deviceCoreCommand[0],this.selectedCmdSetParams=this.selectedCmd.parameters,this.setParameterBearerList(),this.getAssociatedDeviceProfile(e.deviceCoreCommand.profileName))}))}getAssociatedDeviceProfile(e){this.metadataSvc.findProfileByName(e).subscribe(t=>this.associateDeviceProfile=t.profile)}selectCmd(e){this.selectedCmd=e,this.selectedCmdSetParams=this.selectedCmd.parameters,this.resetResponse(),this.setParameterBearerList()}setParameterBearerList(){this.parameterBearerList=[],this.selectedCmdSetParams.forEach(e=>{this.parameterBearerList.push({key:e.resourceName,value:""})})}resetResponse(){this.cmdGetResponse="",this.cmdGetResponseRaw="",this.cmdSetResponse="",this.cmdSetResponseRaw="",this.cmdBinaryResponse=!0,this.cmdBinaryResponseURL=""}isBinaryResource(){let e=!1;return this.associateDeviceProfile.deviceResources.forEach(t=>{t.name!==this.selectedCmd.name||"Binary"!==t.properties.valueType||(e=!0)}),e||(this.associateDeviceProfile.deviceCommands.forEach(t=>{t.name===this.selectedCmd.name&&t.resourceOperations.forEach(o=>{this.associateDeviceProfile.deviceResources.forEach(c=>{o.deviceResource!==c.name||"Binary"!==c.properties.valueType||(e=!0)})})}),e)}issueGetCmd(){this.cmdSvc.issueGetCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(e=>{if(this.cmdGetResponseRaw=JSON.stringify(e.event.readings,null,3),this.isBinaryResource())return void(this.cmdGetResponse="Binary resource is not supported for preview");let t=[];e.event.readings.forEach(o=>{t.push(o.value)}),this.cmdGetResponse=t.join(",")})}issueGetCmdOfBinaryResource(){this.cmdSvc.issueGetBinaryCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(e=>{let t=CBOR.decode(e);"image/jpeg"===t.mediaType||"image/jpg"===t.mediaType||"image/png"===t.mediaType?(this.cmdBinaryResponse=t.binaryValue,this.cmdBinaryResponseURL=URL.createObjectURL(this.cmdBinaryResponse)):this.cmdBinaryResponse="only image binary is supported"})}issueSetCmd(){var e;let t={};this.parameterBearerList.forEach(o=>{t[o.key]=o.value}),this.cmdSvc.issueSetCmd(this.associatedCmdDeviceName,null===(e=this.selectedCmd)||void 0===e?void 0:e.name,t).subscribe(o=>{this.cmdSetResponseRaw=JSON.stringify(o,null,3),this.cmdSetResponse=o.message})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(r.V),_.Y36(u.D))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-command-viewer"]],inputs:{deviceName:"deviceName"},features:[_.TTD],decls:5,vars:3,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f;return E="\u76F8\u5173\u547D\u4EE4",e=" \u547D\u4EE4\u5217\u8868 ",t="Get \u548C Set",o="\u54CD\u5E94\uFF1A",c="\u539F\u59CB\u54CD\u5E94\uFF1A",s="\u6CA1\u6709Get\u65B9\u6CD5",C="\u54CD\u5E94\uFF1A",v="\u539F\u59CB\u54CD\u5E94\uFF1A",D="\u53C2\u6570\u8BBE\u7F6E",p="\u6CA1\u6709Set\u65B9\u6CD5",h="\u76F8\u5173\u547D\u4EE4",f="\u6CA1\u6709\u76F8\u5173\u547D\u4EE4",[[4,"ngIf","ngIfThen","ngIfElse"],["hasAssociatedCommand",""],["noAssociatedCommand",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"text-primary","mx-2","font-weight-bold"],E,[1,"card-body"],[1,"row"],[1,"col-md-2","col-lg-2"],[1,"card","mb-2"],[1,"card-header","font-weight-bold"],e,[1,"card-body","p-0"],[1,"list-group","list-group-flush"],["role","button","class","list-group-item list-group-item-action",3,"list-group-item-info","click",4,"ngFor","ngForOf"],[1,"col-md-10","col-lg-10"],["class","card",4,"ngIf"],["role","button",1,"list-group-item","list-group-item-action",3,"click"],[1,"card"],[1,"text-primary","font-weight-bold","mr-2"],[1,"fa","fa-thumb-tack","text-danger","mr-1"],t,[1,"card-body","px-2"],[1,"col-md-5","col-lg-5"],["class","btn btn-primary btn-sm float-right",3,"click",4,"ngIf"],[1,"card-body","overflow-auto"],["hasGetMethod",""],["noGetMethod",""],[1,"col-md-7","col-lg-7"],["hasSetMethod",""],["noSetMethod",""],[1,"btn","btn-primary","btn-sm","float-right",3,"click"],[1,"badge","badge-info"],o,["class","ml-2 text-primary",4,"ngIf"],[1,"mt-3"],c,["class","mt-2 bg-secondary p-2 text-light rounded",4,"ngIf"],[1,"ml-2","text-primary"],[1,"mt-2","bg-secondary","p-2","text-light","rounded"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],s,["class","card mb-2",4,"ngIf"],C,v,D,["class","d-flex flex-column bd-highlight",4,"ngIf"],[1,"d-flex","flex-column","bd-highlight"],["class","form p-2 bd-highlight",4,"ngFor","ngForOf"],[1,"form","p-2","bd-highlight"],[4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[3,"for"],[1,"custom-select","custom-select-sm",3,"id","name","ngModel","ngModelChange"],[3,"ngValue"],[1,"form-control","form-control-sm",3,"id","name","ngModel","placeholder","ngModelChange"],p,h,[1,"card-body","text-center"],[1,"fa","fa-warning"],f]},template:function(e,t){if(1&e&&(_.YNc(0,g,1,0,"div",0),_.YNc(1,P_,19,3,"ng-template",null,1,_.W1O),_.YNc(3,O_,13,1,"ng-template",null,2,_.W1O)),2&e){const o=_.MAs(2),c=_.MAs(4);_.Q6J("ngIf",t.deviceCoreCommand)("ngIfThen",o)("ngIfElse",c)}},directives:[n.O5,n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr,a.Fj],styles:[""]}),i})();function h_(i,E){if(1&i&&(_.TgZ(0,"span"),_.TgZ(1,"span",67),_.SDv(2,68),_.qZA(),_.TgZ(3,"span",69),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,70),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(4),_.Oqu(e.associatedSvcName)}}function R_(i,E){if(1&i&&(_.TgZ(0,"span"),_.TgZ(1,"span",67),_.SDv(2,71),_.qZA(),_.TgZ(3,"span",69),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,72),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(4),_.Oqu(e.associatedProfileName)}}function Z_(i,E){1&i&&(_.TgZ(0,"span"),_.SDv(1,73),_.qZA())}function U_(i,E){if(1&i&&(_.TgZ(0,"span",85),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function V_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function L_(i,E){if(1&i&&(_.TgZ(0,"span",85),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}function b_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}function $_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}const x_=function(i){return{profileName:i}};function q_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(o){const s=_.CHM(e).$implicit;return _.oxw().selectOne(o,s)}),_.qZA(),_.qZA(),_.TgZ(3,"td",74),_._uU(4),_.qZA(),_.TgZ(5,"td",74),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_.TgZ(12,"span",75),_.YNc(13,U_,2,1,"span",76),_.YNc(14,V_,2,1,"span",77),_.qZA(),_.qZA(),_.TgZ(15,"td",78),_.TgZ(16,"span",75),_.YNc(17,L_,2,1,"span",76),_.YNc(18,b_,2,1,"span",79),_.YNc(19,$_,2,1,"span",77),_.qZA(),_.qZA(),_.TgZ(20,"td",78),_.TgZ(21,"span",80),_.NdJ("click",function(){const c=_.CHM(e).$implicit,s=_.oxw();return s.setSpecialFeatureViewer(c,s.FEATURE_COMMAND)}),_._UZ(22,"i",81),_.qZA(),_.qZA(),_.TgZ(23,"td",78),_.TgZ(24,"span",80),_.NdJ("click",function(){const c=_.CHM(e).$implicit,s=_.oxw();return s.setSpecialFeatureViewer(c,s.FEATURE_AUTOEVENT)}),_._UZ(25,"i",82),_.qZA(),_.qZA(),_.TgZ(26,"td"),_.TgZ(27,"a",83),_._uU(28),_.qZA(),_.qZA(),_.TgZ(29,"td"),_.TgZ(30,"a",84),_._uU(31),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.id)||t.specialFeatureAssociatedDeviceName===e.name),_.xp6(2),_.Q6J("checked",t.isChecked(e.id)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Q6J("ngSwitch",e.adminState),_.xp6(1),_.Q6J("ngSwitchCase","UNLOCKED"),_.xp6(3),_.Q6J("ngSwitch",e.operatingState),_.xp6(1),_.Q6J("ngSwitchCase","UP"),_.xp6(1),_.Q6J("ngSwitchCase","DOWN"),_.xp6(3),_.ekj("badge-danger",t.specialFeatureName===t.FEATURE_COMMAND&&t.specialFeatureAssociatedDeviceName===e.name),_.xp6(3),_.ekj("badge-danger",t.specialFeatureName===t.FEATURE_AUTOEVENT&&t.specialFeatureAssociatedDeviceName===e.name),_.xp6(3),_.Q6J("queryParams",_.VKq(19,x_,e.profileName)),_.xp6(1),_.Oqu(e.profileName),_.xp6(3),_.Oqu(e.serviceName)}}function X_(i,E){if(1&i&&(_.TgZ(0,"tr"),_.TgZ(1,"td"),_._uU(2),_.qZA(),_.TgZ(3,"td"),_.TgZ(4,"span",99),_._uU(5),_.qZA(),_.qZA(),_.TgZ(6,"td"),_.TgZ(7,"span",100),_._uU(8),_.qZA(),_.qZA(),_.qZA()),2&i){const e=E.$implicit;_.xp6(2),_.Oqu(e.sourceName),_.xp6(3),_.Oqu(e.interval),_.xp6(3),_.Oqu(e.onChange)}}function J_(i,E){if(1&i&&(_.TgZ(0,"div"),_.TgZ(1,"div",89),_.TgZ(2,"div",90),_.TgZ(3,"span",91),_._UZ(4,"i",82),_.qZA(),_.TgZ(5,"span",92),_._uU(6),_.qZA(),_.TgZ(7,"span"),_.SDv(8,93),_.qZA(),_.qZA(),_.TgZ(9,"div",94),_.TgZ(10,"div",19),_.TgZ(11,"table",20),_.TgZ(12,"thead",21),_.TgZ(13,"th",22),_.SDv(14,95),_.qZA(),_.TgZ(15,"th",22),_.SDv(16,96),_.qZA(),_.TgZ(17,"th",22),_.SDv(18,97),_.qZA(),_.qZA(),_.TgZ(19,"tbody"),_.YNc(20,X_,9,3,"tr",98),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw(2);_.xp6(6),_.hij(" ",e.specialFeatureAssociatedDeviceName,""),_.xp6(14),_.Q6J("ngForOf",e.autoEvents)}}function y_(i,E){if(1&i&&(_.TgZ(0,"div",89),_.TgZ(1,"div",90),_.TgZ(2,"span",91),_._UZ(3,"i",82),_.qZA(),_.TgZ(4,"span",92),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,101),_.qZA(),_.qZA(),_.TgZ(8,"div",102),_.TgZ(9,"h5",103),_._UZ(10,"i",58),_.TgZ(11,"span"),_.SDv(12,104),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw(2);_.xp6(5),_.hij(" ",e.specialFeatureAssociatedDeviceName,"")}}function B_(i,E){if(1&i&&(_.TgZ(0,"div"),_.YNc(1,J_,21,2,"div",87),_.YNc(2,y_,13,1,"ng-template",null,88,_.W1O),_.qZA()),2&i){const e=_.MAs(3),t=_.oxw();_.xp6(1),_.Q6J("ngIf",t.autoEvents)("ngIfElse",e)}}function W_(i,E){if(1&i&&(_.TgZ(0,"div"),_._UZ(1,"app-device-command-viewer",105),_.qZA()),2&i){const e=_.oxw();_.xp6(1),_.Q6J("deviceName",e.specialFeatureAssociatedDeviceName)}}let H_=(()=>{class i{constructor(e,t,o,c){this.metaSvc=e,this.msgSvc=t,this.route=o,this.router=c,this.toolbars=!0,this.enableSelectAll=!0,this.deviceList=[],this.associatedSvcName="",this.associatedProfileName="",this.selectedDevice=[],this.FEATURE_AUTOEVENT="autoevent",this.FEATURE_COMMAND="command",this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>e.svcName?(this.associatedSvcName=e.svcName,void this.getDeviceListByAssociatedSvc(this.associatedSvcName)):e.profileName?(this.associatedProfileName=e.profileName,void this.getDeviceListByAssociatedProfile(this.associatedProfileName)):(this.associatedSvcName="",this.associatedProfileName="",void this.getDeviceListPagination()))}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},250)}getDeviceList(){""===this.associatedSvcName?""===this.associatedProfileName?this.getDeviceListPagination():this.getDeviceListByAssociatedProfile(this.associatedSvcName):this.getDeviceListByAssociatedSvc(this.associatedSvcName)}getDeviceListByAssociatedSvc(e){this.metaSvc.findDevicesByServiceName(this.pageOffset,this.pageLimit,e).subscribe(t=>this.deviceList=t.devices)}getDeviceListByAssociatedProfile(e){this.metaSvc.findDevicesByProfileName(this.pageOffset,this.pageLimit,e).subscribe(t=>this.deviceList=t.devices)}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.deviceList=e.devices})}refresh(){this.associatedProfileName="",this.associatedSvcName="",this.metaSvc.allDevicesPagination(0,this.pageLimit).subscribe(e=>{this.deviceList=e.devices,this.msgSvc.success("refresh"),this.resetPagination()})}edit(){this.router.navigate(["../edit-device"],{relativeTo:this.route,queryParams:{deviceName:this.selectedDevice[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedDevice.forEach((e,t)=>{this.metaSvc.deleteOneDeviceByName(e.name).subscribe(()=>{this.selectedDevice.splice(t,1),this.deviceList.forEach((o,c)=>{if(o.id===e.id)return this.deviceList.splice(c,1),void this.msgSvc.success("remove device ",` Name: ${o.name}`)})})}),this.specialFeatureName=void 0,$("#deleteConfirmDialog").modal("hide")}setSpecialFeatureViewer(e,t){switch(this.specialFeatureAssociatedDeviceName=e.name,this.specialFeatureName=t,this.specialFeatureName){case this.FEATURE_AUTOEVENT:this.autoEvents=e.autoEvents}}isCheckedAll(){let e=!0;return this.deviceList&&0===this.deviceList.length&&(e=!1),this.deviceList.forEach(t=>{-1===this.selectedDevice.findIndex(o=>o.name===t.name)&&(e=!1)}),e}selectAll(e){this.deviceList.forEach(e.target.checked?o=>{-1===this.selectedDevice.findIndex(c=>c.name===o.name)&&this.selectedDevice.push(o)}:o=>{this.selectedDevice.forEach((c,s)=>{c.name===o.name&&this.selectedDevice.splice(s,1)})})}isChecked(e){return this.selectedDevice.findIndex(t=>t.id===e)>=0}selectOne(e,t){e.target.checked?this.selectedDevice.push(t):this.selectedDevice.forEach((c,s)=>{c.name===t.name&&this.selectedDevice.splice(s,1)})}onPageSelected(){this.resetPagination(),this.getDeviceList()}prePage(){this.setPagination(-1),this.getDeviceList()}nextPage(){this.setPagination(1),this.getDeviceList()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(T.gz),_.Y36(T.F0))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-list"]],inputs:{toolbars:"toolbars",enableSelectAll:"enableSelectAll"},decls:98,vars:12,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L,P,O,c_,s_,a_,l_,r_,A_,d_,C_,T_,g_,D_,S_,I_,p_,u_,f_;return E="\u5237\u65B0",e="\u6DFB\u52A0",t="\u7F16\u8F91",o="\u5220\u9664",c="ID",s="\u540D\u5B57",C="\u63CF\u8FF0",v="\u6807\u7B7E",D="\u7BA1\u7406\u72B6\u6001",p="\u64CD\u4F5C\u72B6\u6001",h="\u547D\u4EE4",f="\u81EA\u52A8\u91C7\u96C6",N="\u76F8\u5173\u8BBE\u5907\u5143\u4FE1\u606F",L="\u76F8\u5173\u8BBE\u5907\u670D\u52A1",P="\u6BCF\u9875\u6761\u76EE",O="\u4E0A\u4E00\u9875",c_="\u4E0B\u4E00\u9875",s_="\u8B66\u544A",a_="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",l_="\u53D6\u6D88",r_="\u786E\u8BA4",A_="\u8BBE\u5907\u670D\u52A1",d_="\u76F8\u5173\u8BBE\u5907\u5217\u8868",C_="\u8BBE\u5907\u5143\u4FE1\u606F",T_="\u76F8\u5173\u8BBE\u5907\u5217\u8868",g_="\u8BBE\u5907\u5217\u8868",D_="\u76F8\u5173\u81EA\u52A8\u91C7\u96C6",S_="\u8D44\u6E90",I_="\u5355\u4F4D\u95F4\u9694",p_="Onchange",u_="\u76F8\u5173\u81EA\u52A8\u91C7\u96C6",f_="\u65E0\u76F8\u5173\u81EA\u52A8\u91C7\u96C6",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],[4,"ngIf"],[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["data-testid","device-list-refresh-btn",1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],E,["type","button","routerLink","../add-device",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],e,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],t,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],o,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],c,s,C,v,D,p,h,f,N,L,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],P,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],O,[1,"page-item"],c_,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],s_,[1,"modal-body"],a_,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],l_,["type","button",1,"btn","btn-danger",3,"click"],r_,[1,"mr-1"],A_,[1,"text-danger","mr-1"],d_,C_,T_,g_,[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"fa","fa-calendar-check-o","font-weight-bolder"],["routerLink","../../device-profile-center",3,"queryParams"],["routerLink","../../device-service-list"],[1,"badge","badge-success"],[1,"badge","badge-danger"],[4,"ngIf","ngIfElse"],["noAutoEvents",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"text-primary","mx-2","font-weight-bold"],D_,[1,"card-body","p-0"],S_,I_,p_,[4,"ngFor","ngForOf"],[1,"badge","badge-secondary","badge-pill"],[1,""],u_,[1,"card-body","text-center"],[1,"text-warning"],f_,[3,"deviceName"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.YNc(3,h_,7,1,"span",3),_.YNc(4,R_,7,1,"span",3),_.YNc(5,Z_,2,0,"span",3),_.qZA(),_.TgZ(6,"div",4),_.TgZ(7,"div",5),_.TgZ(8,"div",6),_.TgZ(9,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(10,"span"),_._UZ(11,"i",8),_.TgZ(12,"span"),_.SDv(13,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(14,"button",10),_.TgZ(15,"span"),_._UZ(16,"i",11),_.TgZ(17,"span"),_.SDv(18,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(20,"span"),_._UZ(21,"i",14),_.TgZ(22,"span"),_.SDv(23,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(25,"span"),_._UZ(26,"i",17),_.TgZ(27,"span"),_.SDv(28,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(29,"div",19),_.TgZ(30,"table",20),_.TgZ(31,"thead",21),_.TgZ(32,"tr"),_.TgZ(33,"th",22),_.TgZ(34,"input",23),_.NdJ("click",function(c){return t.selectAll(c)}),_.qZA(),_.qZA(),_.TgZ(35,"th",22),_.SDv(36,24),_.qZA(),_.TgZ(37,"th",22),_.SDv(38,25),_.qZA(),_.TgZ(39,"th",22),_.SDv(40,26),_.qZA(),_.TgZ(41,"th",22),_.SDv(42,27),_.qZA(),_.TgZ(43,"th",22),_.SDv(44,28),_.qZA(),_.TgZ(45,"th",22),_.SDv(46,29),_.qZA(),_.TgZ(47,"th",22),_.SDv(48,30),_.qZA(),_.TgZ(49,"th",22),_.SDv(50,31),_.qZA(),_.TgZ(51,"th",22),_.SDv(52,32),_.qZA(),_.TgZ(53,"th",22),_.SDv(54,33),_.qZA(),_.qZA(),_.qZA(),_.TgZ(55,"tbody"),_.YNc(56,q_,32,21,"tr",34),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(57,"div",35),_.TgZ(58,"nav",36),_.TgZ(59,"ul",37),_.TgZ(60,"li",38),_.TgZ(61,"span",39),_.SDv(62,40),_.qZA(),_.qZA(),_.TgZ(63,"li",41),_.TgZ(64,"select",42),_.NdJ("ngModelChange",function(c){return t.pageLimit=c})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(65,"option",43),_._uU(66,"5"),_.qZA(),_.TgZ(67,"option",44),_._uU(68,"10"),_.qZA(),_.TgZ(69,"option",45),_._uU(70,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(71,"li",46),_.TgZ(72,"button",47),_.NdJ("click",function(){return t.prePage()}),_._UZ(73,"i",48),_.TgZ(74,"span"),_.SDv(75,49),_.qZA(),_.qZA(),_.qZA(),_.TgZ(76,"li",50),_.TgZ(77,"button",47),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(78,"span"),_.SDv(79,51),_.qZA(),_._UZ(80,"i",52),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(81,B_,4,2,"div",3),_.YNc(82,W_,2,1,"div",3),_.TgZ(83,"div",53),_.TgZ(84,"div",54),_.TgZ(85,"div",55),_.TgZ(86,"div",56),_.TgZ(87,"h5",57),_._UZ(88,"i",58),_.TgZ(89,"span"),_.SDv(90,59),_.qZA(),_.qZA(),_.qZA(),_.TgZ(91,"div",60),_.SDv(92,61),_.qZA(),_.TgZ(93,"div",62),_.TgZ(94,"button",63),_.SDv(95,64),_.qZA(),_.TgZ(96,"button",65),_.NdJ("click",function(){return t.delete()}),_.SDv(97,66),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(3),_.Q6J("ngIf",""!==t.associatedSvcName),_.xp6(1),_.Q6J("ngIf",""!==t.associatedProfileName),_.xp6(1),_.Q6J("ngIf",""===t.associatedProfileName&&""===t.associatedSvcName),_.xp6(14),_.Q6J("disabled",1!==t.selectedDevice.length),_.xp6(5),_.Q6J("disabled",0===t.selectedDevice.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(22),_.Q6J("ngForOf",t.deviceList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.deviceList.length),_.xp6(4),_.Q6J("ngIf",t.specialFeatureName===t.FEATURE_AUTOEVENT),_.xp6(1),_.Q6J("ngIf",t.specialFeatureName===t.FEATURE_COMMAND))},directives:[n.O5,T.rH,n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr,n.RF,n.n9,n.ED,T.yS,G_],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();class w_{constructor(){this.Schema="",this.Host="",this.Port="",this.User="",this.Password="",this.ClientId="",this.CommandTopic=""}}class F_{constructor(){this.Address="",this.Port="",this.UnitID="",this.Timeout="",this.IdleTimeout=""}}class k_{constructor(){this.Address="",this.UnitID="",this.BaudRate="",this.DataBits="",this.StopBits="",this.Parity="",this.Timeout="",this.IdleTimeout=""}}class z_{constructor(){this.Address="",this.Port=""}}class Y_{constructor(){this.Address="",this.Port="",this.MACAddress=""}}class Q_{constructor(){this.host="",this.port=""}}function j_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",10),_.TgZ(1,"span",11),_.NdJ("click",function(){_.CHM(e);const o=_.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_BUILT_IN)}),_._UZ(2,"i",12),_.TgZ(3,"span"),_.SDv(4,13),_.qZA(),_.qZA(),_.TgZ(5,"span",14),_.NdJ("click",function(){_.CHM(e);const o=_.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_CUSTOM)}),_._UZ(6,"i",12),_.TgZ(7,"span"),_.SDv(8,15),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(2);_.xp6(1),_.ekj("badge-primary",e.protocolTemplateMode===e.TEMPLATE_BUILT_IN)("badge-secondary",e.protocolTemplateMode!==e.TEMPLATE_BUILT_IN),_.xp6(1),_.ekj("fa-check-square",e.protocolTemplateMode===e.TEMPLATE_BUILT_IN),_.xp6(3),_.ekj("badge-primary",e.protocolTemplateMode===e.TEMPLATE_CUSTOM)("badge-secondary",e.protocolTemplateMode!==e.TEMPLATE_CUSTOM),_.xp6(1),_.ekj("fa-check-square",e.protocolTemplateMode===e.TEMPLATE_CUSTOM)}}function K_(i,E){1&i&&_._UZ(0,"div")}function _e(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form",34),_.TgZ(2,"div",35),_.TgZ(3,"div",36),_.TgZ(4,"span",37),_.SDv(5,38),_.qZA(),_.qZA(),_._UZ(6,"input",39),_.qZA(),_.TgZ(7,"div",40),_._UZ(8,"i",41),_.qZA(),_.TgZ(9,"div",35),_.TgZ(10,"div",36),_.TgZ(11,"span",37),_.SDv(12,42),_.qZA(),_.qZA(),_.TgZ(13,"input",43),_.NdJ("ngModelChange",function(o){const s=_.CHM(e).$implicit;return _.oxw(4).builtinProtocolTemplateSelected[s]=o}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw(4);_.xp6(6),_.Q6J("value",e),_.xp6(7),_.Q6J("ngModel",t.builtinProtocolTemplateSelected[e])}}function ee(i,E){if(1&i&&(_.TgZ(0,"div"),_.YNc(1,_e,14,2,"div",33),_.qZA()),2&i){const e=_.oxw(3);_.xp6(1),_.Q6J("ngForOf",e.builtinProtocolTemplateProperties)}}function te(i,E){1&i&&(_.TgZ(0,"h5",48),_._UZ(1,"i",49),_.TgZ(2,"span"),_.SDv(3,50),_.qZA(),_.qZA())}function ie(i,E){if(1&i&&(_.TgZ(0,"div"),_._UZ(1,"span",44),_.TgZ(2,"span",45),_.SDv(3,46),_.qZA(),_.qZA(),_.YNc(4,te,4,0,"h5",47)),2&i){const e=_.oxw(3);_.xp6(4),_.Q6J("ngIf",0===e.builtinProtocolTemplateProperties.length&&e.builtinProtocolName)}}function ne(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",16),_.TgZ(1,"div",17),_.TgZ(2,"form"),_.TgZ(3,"div",18),_.TgZ(4,"label"),_.SDv(5,19),_.qZA(),_.TgZ(6,"select",20),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw(2).builtinProtocolName=o})("ngModelChange",function(){return _.CHM(e),_.oxw(2).onSelectBuiltinProtocolTemplate()}),_.TgZ(7,"option",21),_._uU(8,"device-mqtt"),_.qZA(),_.TgZ(9,"option",22),_._uU(10,"device-rest"),_.qZA(),_.TgZ(11,"option",23),_._uU(12,"device-virtual"),_.qZA(),_.TgZ(13,"option",24),_._uU(14,"device-modbus-tcp"),_.qZA(),_.TgZ(15,"option",25),_._uU(16,"device-modbus-rtu"),_.qZA(),_.TgZ(17,"option",26),_._uU(18,"device-onvif-camera"),_.qZA(),_.TgZ(19,"option",27),_._uU(20,"device-rfid-llrp"),_.qZA(),_.qZA(),_.TgZ(21,"div",28),_.TgZ(22,"small"),_.SDv(23,29),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"div",30),_.YNc(25,ee,2,1,"div",31),_.YNc(26,ie,5,1,"ng-template",null,32,_.W1O),_.qZA(),_.qZA()}if(2&i){const e=_.MAs(27),t=_.oxw(2);_.xp6(6),_.ekj("is-invalid",!t.builtinProtocolName)("is-valid",t.builtinProtocolName),_.Q6J("ngModel",t.builtinProtocolName),_.xp6(19),_.Q6J("ngIf",0!==t.builtinProtocolTemplateProperties.length)("ngIfElse",e)}}function oe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form",34),_.TgZ(2,"div",35),_.TgZ(3,"div",36),_.TgZ(4,"span",37),_.SDv(5,60),_.qZA(),_.qZA(),_.TgZ(6,"input",61),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.propertyName=o}),_.qZA(),_.qZA(),_.TgZ(7,"div",40),_._UZ(8,"i",41),_.qZA(),_.TgZ(9,"div",35),_.TgZ(10,"div",36),_.TgZ(11,"span",37),_.SDv(12,62),_.qZA(),_.qZA(),_.TgZ(13,"input",63),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.propertyValue=o}),_.qZA(),_.qZA(),_.TgZ(14,"div",64),_.TgZ(15,"button",65),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw(3).removeCustomProtocolProperty(c)}),_._UZ(16,"i",66),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit;_.xp6(6),_.Q6J("ngModel",e.propertyName),_.xp6(7),_.Q6J("ngModel",e.propertyValue)}}function Ee(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",16),_.TgZ(1,"div",51),_.TgZ(2,"div",18),_.TgZ(3,"label"),_.SDv(4,52),_.qZA(),_.TgZ(5,"input",53),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw(2).customProtocolName=o})("ngModelChange",function(){return _.CHM(e),_.oxw(2).onCustomProtocolNameChange()}),_.qZA(),_.TgZ(6,"div",28),_.TgZ(7,"small"),_.SDv(8,54),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",55),_.TgZ(10,"div"),_.TgZ(11,"p",56),_._UZ(12,"span",57),_.TgZ(13,"span",58),_.NdJ("click",function(){return _.CHM(e),_.oxw(2).addCustomProtocolProperty()}),_.SDv(14,59),_.qZA(),_.qZA(),_.qZA(),_.YNc(15,oe,17,2,"div",33),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(2);_.xp6(5),_.ekj("is-invalid",!e.customProtocolName)("is-valid",e.customProtocolName),_.Q6J("ngModel",e.customProtocolName),_.xp6(10),_.Q6J("ngForOf",e.customProtocolPropertyBearer)}}function ce(i,E){if(1&i&&(_.TgZ(0,"div",0),_.TgZ(1,"div",4),_.YNc(2,j_,9,12,"div",6),_.YNc(3,K_,1,0,"div",7),_.YNc(4,ne,28,7,"ng-template",null,8,_.W1O),_.YNc(6,Ee,16,6,"ng-template",null,9,_.W1O),_.qZA(),_.qZA()),2&i){const e=_.MAs(5),t=_.MAs(7),o=_.oxw();_.xp6(2),_.Q6J("ngIf",o.mode===o.MODE_ADD),_.xp6(1),_.Q6J("ngIf",o.protocolTemplateMode===o.TEMPLATE_CUSTOM)("ngIfThen",t)("ngIfElse",e)}}let K=(()=>{class i{constructor(){this.MODE_ADD="add",this.MODE_EDIT="edit",this.deviceProtocols={},this.isValid=!1,this.isValidChange=new _.vpe,this.TEMPLATE_CUSTOM="custom",this.TEMPLATE_BUILT_IN="built-in",this.customProtocolPropertyBearer=[],this.builtinProtocolTemplateProperties=[]}ngOnInit(){if(this.mode){if(this.mode==this.MODE_EDIT)return this.protocolTemplateMode=this.TEMPLATE_CUSTOM,this.extractProtocolName(),this.customProtocolName=this.protocolName?this.protocolName:"",void this.setCustomProtocolPropertysBearer();this.mode==this.MODE_ADD&&(this.protocolTemplateMode=this.TEMPLATE_BUILT_IN),this.validate()}}extractProtocolName(){!this.deviceProtocols||0===Object.keys(this.deviceProtocols).length||(this.protocolName=Object.keys(this.deviceProtocols)[0])}onSelectBuiltinProtocolTemplate(){switch(this.validate(),this.builtinProtocolName){case"mqtt":this.builtinProtocolTemplateSelected=new w_;break;case"modbus-tcp":this.builtinProtocolTemplateSelected=new F_;break;case"modbus-rtu":this.builtinProtocolTemplateSelected=new k_;break;case"other":this.builtinProtocolTemplateSelected=new z_;break;case"other-rest":this.builtinProtocolTemplateSelected={};break;case"Onvif":this.builtinProtocolTemplateSelected=new Y_;break;case"tcp":this.builtinProtocolTemplateSelected=new Q_;break;default:this.builtinProtocolTemplateSelected={}}this.builtinProtocolTemplateProperties=Object.keys(this.builtinProtocolTemplateSelected)}changeProtocolTemplateMode(e){this.protocolTemplateMode=e,this.validate()}onCustomProtocolNameChange(){this.validate()}setCustomProtocolPropertysBearer(){if(this.customProtocolName)for(const[e,t]of Object.entries(this.deviceProtocols[this.customProtocolName]))this.customProtocolPropertyBearer.push({propertyName:e,propertyValue:t})}addCustomProtocolProperty(){this.customProtocolPropertyBearer.push({propertyName:"",propertyValue:""})}removeCustomProtocolProperty(e){this.customProtocolPropertyBearer.splice(this.customProtocolPropertyBearer.indexOf(e),1)}getDeviceProtocols(){if(this.deviceProtocols={},this.protocolTemplateMode===this.TEMPLATE_BUILT_IN)this.deviceProtocols[this.builtinProtocolName]=Object.assign({},this.builtinProtocolTemplateSelected);else{let e={};this.customProtocolPropertyBearer.forEach(t=>{e[t.propertyName]=t.propertyValue}),this.deviceProtocols[this.customProtocolName]=e}return this.deviceProtocols}validate(){switch(this.isValid=!0,this.protocolTemplateMode){case this.TEMPLATE_BUILT_IN:this.builtinProtocolName||(this.isValid=!1);break;default:this.customProtocolName||(this.isValid=!1)}this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-protocol"]],inputs:{mode:"mode",deviceProtocols:"deviceProtocols",isValid:"isValid"},outputs:{isValidChange:"isValidChange"},decls:7,vars:1,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L;return E="\u8BBE\u5907\u534F\u8BAE",e="\u53EF\u5229\u7528\u7684\u534F\u8BAE\u6A21\u677F",t="\u81EA\u5B9A\u4E49\u534F\u8BAE\u6A21\u677F",o="\u534F\u8BAE\u540D\u5B57",c="\u534F\u8BAE\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",s="PropertyName",C="PropertyVaule",v=" all built-in protocol templates refer to the device service released by edgex, such as device-virtual, device-rest, device-mqtt, device-modbus ",D="\u8BE5\u8BBE\u5907\u670D\u52A1\u4E0D\u9700\u8981\u8BBE\u7F6E\u901A\u4FE1\u534F\u8BAE",p="\u534F\u8BAE\u540D\u5B57",h="\u534F\u8BAE\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",f="\u6DFB\u52A0\u534F\u8BAE\u5C5E\u6027",N="PropertyName",L="PropertyValue",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],E,[1,"card-body"],["class","card",4,"ngIf"],["class","mb-2",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["builtinProtocolTemplate",""],["customProtocolTemplate",""],[1,"mb-2"],["role","button",1,"user-select-none","badge","font-weight-bold","mr-3",3,"click"],[1,"fa","fa-square-o","mr-1"],e,["role","button",1,"user-select-none","badge","font-weight-bold",3,"click"],t,[1,"row","border","border-secondary","p-2","rounded-lg","mx-1"],[1,"col-md-2","border-right","border-info"],[1,"form-group"],o,["type","text","name","builtinProtocolName","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","mqtt"],["value","other-rest"],["value","other"],["value","modbus-tcp"],["value","modbus-rtu"],["value","Onvif"],["value","tcp"],[1,"invalid-feedback"],c,[1,"col-md-10"],[4,"ngIf","ngIfElse"],["noBuiltinProperties",""],[4,"ngFor","ngForOf"],[1,"form-inline","mb-1"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],s,["type","text","disabled","",1,"form-control",2,"width","300px",3,"value"],[1,"form-group","mx-2"],[1,"fa","fa-long-arrow-right"],C,["type","text","name","property",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"fa","fa-info-circle","fa-lg","text-success","font-weight-bold","mr-1"],[1,"text-muted"],v,["class","text-warning",4,"ngIf"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],D,[1,"col-md-2","col-lg-2","border-right","border-secondary"],p,["type","text","name","customProtocolName",1,"form-control",3,"ngModel","ngModelChange"],h,[1,"col-md-10","col-lg-10"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],f,N,["type","text","name","propertyName",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],L,["type","text","name","PropertyValue",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.YNc(6,ce,8,4,"div",5),_.qZA(),_.qZA()),2&e&&(_.xp6(6),_.Q6J("ngIf",t.mode))},directives:[n.O5,a._Y,a.JL,a.F,a.EJ,a.Q7,a.JJ,a.On,a.YN,a.Kr,n.sg,a.Fj],styles:[""]}),i})();var __=d(4889);function se(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",35),_.NdJ("click",function(o){const s=_.CHM(e).$implicit;return _.oxw().selectOneSvc(o,s.name)}),_.qZA(),_.qZA(),_.TgZ(3,"td"),_._uU(4),_.qZA(),_.TgZ(5,"td"),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.ALo(15,"date"),_.qZA(),_.TgZ(16,"td"),_._uU(17),_.ALo(18,"date"),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.ekj("table-active",t.isSvcChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isSvcChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Oqu(e.adminState),_.xp6(2),_.Oqu(_.xi3(15,10,e.created,"yyyy-MM-dd hh:mm:ss")),_.xp6(3),_.Oqu(_.xi3(18,13,e.modified,"yyyy-MM-dd hh:mm:ss"))}}let n_=(()=>{class i{constructor(e){this.metaSvc=e,this.singleDeviceSvcSelectedEvent=new _.vpe,this.deviceServiceList=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllDeviceSvcPagination()}findAllDeviceSvcPagination(){this.metaSvc.findAllDeviceServicesPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.deviceServiceList=e.services})}onSingleDeviceSvcSelectedEmitter(){this.singleDeviceSvcSelectedEvent.emit(this.deviceSvcSelected)}isSvcChecked(e){var t;return(null===(t=this.deviceSvcSelected)||void 0===t?void 0:t.name)===e}selectOneSvc(e,t){let c=this;e.target.checked?this.deviceServiceList.forEach(function(s){s.name===t&&(c.deviceSvcSelected=s)}):this.deviceSvcSelected=void 0,this.onSingleDeviceSvcSelectedEmitter()}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceSvcPagination()}prePage(){this.setPagination(-1),this.findAllDeviceSvcPagination()}nextPage(){this.setPagination(1),this.findAllDeviceSvcPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-service-list"]],inputs:{deviceSvcSelected:"deviceSvcSelected"},outputs:{singleDeviceSvcSelectedEvent:"singleDeviceSvcSelectedEvent"},decls:52,vars:4,consts:function(){let E,e,t,o,c,s,C,v,D,p,h;return E="\u8BBE\u5907\u670D\u52A1\u5217\u8868",e="ID",t="\u540D\u5B57",o="\u63CF\u8FF0",c="\u6807\u7B7E",s="\u7BA1\u7406\u72B6\u6001",C="\u521B\u5EFA\u65F6\u95F4",v="\u4FEE\u6539\u65F6\u95F4",D="\u6BCF\u9875\u6761\u76EE",p="\u4E0A\u4E00\u9875",h="\u4E0B\u4E00\u9875",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","mr-2","text-danger"],E,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],e,t,o,c,s,C,v,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],D,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],p,[1,"page-item"],h,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"table",6),_.TgZ(8,"thead",7),_.TgZ(9,"tr"),_.TgZ(10,"th",8),_._uU(11,"#"),_.qZA(),_.TgZ(12,"th",8),_.SDv(13,9),_.qZA(),_.TgZ(14,"th",8),_.SDv(15,10),_.qZA(),_.TgZ(16,"th",8),_.SDv(17,11),_.qZA(),_.TgZ(18,"th",8),_.SDv(19,12),_.qZA(),_.TgZ(20,"th",8),_.SDv(21,13),_.qZA(),_.TgZ(22,"th",8),_.SDv(23,14),_.qZA(),_.TgZ(24,"th",8),_.SDv(25,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"tbody"),_.YNc(27,se,19,16,"tr",16),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",17),_.TgZ(29,"nav",18),_.TgZ(30,"ul",19),_.TgZ(31,"li",20),_.TgZ(32,"span",21),_.SDv(33,22),_.qZA(),_.qZA(),_.TgZ(34,"li",23),_.TgZ(35,"select",24),_.NdJ("ngModelChange",function(c){return t.pageLimit=c})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(36,"option",25),_._uU(37,"5"),_.qZA(),_.TgZ(38,"option",26),_._uU(39,"10"),_.qZA(),_.TgZ(40,"option",27),_._uU(41,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(42,"li",28),_.TgZ(43,"button",29),_.NdJ("click",function(){return t.prePage()}),_._UZ(44,"i",30),_.TgZ(45,"span"),_.SDv(46,31),_.qZA(),_.qZA(),_.qZA(),_.TgZ(47,"li",32),_.TgZ(48,"button",29),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(49,"span"),_.SDv(50,33),_.qZA(),_._UZ(51,"i",34),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(27),_.Q6J("ngForOf",t.deviceServiceList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.deviceServiceList.length))},directives:[n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr],pipes:[n.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();var t_=d(2822);function ae(i,E){if(1&i&&(_.TgZ(0,"option",37),_._uU(1),_.qZA()),2&i){const e=E.$implicit;_.s9C("value",e),_.xp6(1),_.Oqu(e)}}function le(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",10),_.TgZ(1,"div",4),_.TgZ(2,"form"),_.TgZ(3,"div",11),_.TgZ(4,"label",12),_.SDv(5,13),_.qZA(),_.TgZ(6,"div",14),_.TgZ(7,"div",15),_.TgZ(8,"input",16),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.interval=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.qZA(),_.TgZ(9,"div",17),_.TgZ(10,"select",18),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.unit=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.TgZ(11,"option",19),_._uU(12,"millisecond"),_.qZA(),_.TgZ(13,"option",20),_._uU(14,"second"),_.qZA(),_.TgZ(15,"option",21),_._uU(16,"minute"),_.qZA(),_.TgZ(17,"option",22),_._uU(18,"hour"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",23),_.SDv(20,24),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(21,"div",25),_.TgZ(22,"label",12),_.SDv(23,26),_.qZA(),_.TgZ(24,"div",14),_.TgZ(25,"select",27),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.onChange=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.TgZ(26,"option",28),_._uU(27,"true"),_.qZA(),_.TgZ(28,"option",29),_._uU(29,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",25),_.TgZ(31,"label",12),_.SDv(32,30),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"select",31),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.resource=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.YNc(35,ae,2,2,"option",32),_.qZA(),_.TgZ(36,"div",23),_.SDv(37,33),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"button",34),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw().removeAutoEvent(c)}),_._UZ(39,"i",35),_.TgZ(40,"span"),_.SDv(41,36),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.xp6(8),_.ekj("is-invalid",!t.eventIntervalNumType(e.interval))("is-valid",t.eventIntervalNumType(e.interval)),_.Q6J("ngModel",e.interval),_.xp6(2),_.Q6J("ngModel",e.unit),_.xp6(15),_.Q6J("ngModel",e.onChange),_.xp6(9),_.ekj("is-invalid",""===e.resource)("is-valid",""!==e.resource),_.Q6J("ngModel",e.resource),_.xp6(1),_.Q6J("ngForOf",t.autoEventResourceNameSet)}}let o_=(()=>{class i{constructor(){this.autoEvents=[],this.autoEventsChange=new _.vpe,this.isValid=!1,this.isValidChange=new _.vpe,this.autoEventDecoratorBearer=[],this.autoEventResourceNameSet=[]}ngOnInit(){}ngOnChanges(){this.resetAutoEventDecoratorBearer(),this.setAutoEventDecorator(this.autoEvents),this.setupAutoEventResourceNameSet(this.deviceProfile),this.resumeOriginalAutoEvents()}onValueChange(){this.resumeOriginalAutoEvents()}resetAutoEventDecoratorBearer(){this.autoEventDecoratorBearer.splice(0,this.autoEventDecoratorBearer.length)}addAutoEvent(){this.autoEventDecoratorBearer.push({interval:"",onChange:!1,resource:"",unit:"ms"}),this.resumeOriginalAutoEvents()}removeAutoEvent(e){this.autoEventDecoratorBearer.splice(this.autoEventDecoratorBearer.indexOf(e),1),this.resumeOriginalAutoEvents()}setupAutoEventResourceNameSet(e){!e||(this.autoEventResourceNameSet.splice(0,this.autoEventResourceNameSet.length),e.deviceResources.forEach((t,o)=>{this.autoEventResourceNameSet.push(t.name)}),e.deviceCommands.forEach((t,o)=>{this.autoEventResourceNameSet.push(t.name)}))}eventIntervalNumType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}setAutoEventDecorator(e){!e||e.forEach(t=>{let o=0;-1!==t.interval.indexOf("ms")?o=t.interval.indexOf("ms"):-1!==t.interval.indexOf("s")?o=t.interval.indexOf("s"):-1!==t.interval.indexOf("m")?o=t.interval.indexOf("m"):-1!==t.interval.indexOf("h")&&(o=t.interval.indexOf("h")),this.autoEventDecoratorBearer.push({interval:t.interval.slice(0,o),onChange:!!t.onChange&&t.onChange,resource:t.sourceName,unit:t.interval.substring(o)})})}resumeOriginalAutoEvents(){this.autoEvents?this.autoEvents.splice(0,this.autoEvents.length):this.autoEvents=[],this.autoEventDecoratorBearer.forEach(e=>{this.autoEvents.push({interval:`${e.interval}${e.unit}`,onChange:!!e.onChange,sourceName:e.resource})}),this.validate(),this.autoEventsChange.emit(this.autoEvents)}validate(){this.isValid=!0,0!==this.autoEventDecoratorBearer.length&&this.autoEventDecoratorBearer.forEach(e=>{this.eventIntervalNumType(e.interval)&&""!==e.resource||(this.isValid=!1)}),this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-auto-event"]],inputs:{autoEvents:"autoEvents",deviceProfile:"deviceProfile",isValid:"isValid"},outputs:{autoEventsChange:"autoEventsChange",isValidChange:"isValidChange"},features:[_.TTD],decls:11,vars:1,consts:function(){let E,e,t,o,c,s,C,v;return E="\u81EA\u52A8\u91C7\u96C6",e="\u6DFB\u52A0\u66F4\u591A\u81EA\u52A8\u91C7\u96C6\u4E8B\u4EF6",t="\u5355\u4F4D\u95F4\u9694",o=" can only be a pure integer number ",c="onchange",s="\u8BBE\u5907\u8D44\u6E90",C=" resource can't be empty ",v="\u5220\u9664",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],E,[1,"card-body"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],e,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"form-group","row","has-validation"],[1,"col-md-2","col-form-label"],t,[1,"col-md-10"],[1,"input-group","mb-3",2,"width","250px"],["type","text","name","interval","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["name","eventIntervalUnit","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","ms"],["value","s"],["value","m"],["value","h"],[1,"invalid-feedback"],o,[1,"form-group","row"],c,["name","onchange",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],["value","true"],["value","false"],s,["name","resource","required","",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],C,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],v,[3,"value"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"p",5),_._UZ(7,"span",6),_.TgZ(8,"span",7),_.NdJ("click",function(){return t.addAutoEvent()}),_.SDv(9,8),_.qZA(),_.qZA(),_.YNc(10,le,42,13,"div",9),_.qZA(),_.qZA()),2&e&&(_.xp6(10),_.Q6J("ngForOf",t.autoEventDecoratorBearer))},directives:[n.sg,a._Y,a.JL,a.F,a.Fj,a.Q7,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),i})();function re(i,E){1&i&&_._UZ(0,"i",33)}function Ae(i,E){1&i&&_._UZ(0,"i",33)}function de(i,E){1&i&&_._UZ(0,"i",33)}function Ce(i,E){1&i&&_._UZ(0,"i",33)}function Te(i,E){1&i&&_._UZ(0,"i",33)}function ge(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw().previous()}),_._UZ(1,"i",35),_.TgZ(2,"span"),_.SDv(3,36),_.qZA(),_.qZA()}}function De(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",37),_.NdJ("click",function(){return _.CHM(e),_.oxw().next()}),_.TgZ(1,"span"),_.SDv(2,38),_.qZA(),_._UZ(3,"i",39),_.qZA()}if(2&i){const e=_.oxw();_.Q6J("disabled",e.stepStateLock())}}function Se(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",40),_.NdJ("click",function(){return _.CHM(e),_.oxw().submit()}),_._UZ(1,"i",41),_.TgZ(2,"span"),_.SDv(3,42),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.Q6J("disabled",e.stepStateLock())}}function Ie(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",43),_.TgZ(1,"app-device-service-list",44),_.NdJ("singleDeviceSvcSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleDeviceSvcSelected(o)}),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(1),_.Q6J("deviceSvcSelected",e.selectedSvc)}}function pe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",43),_.TgZ(1,"app-device-profile-list",45),_.NdJ("singleProfileSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleProfileSelected(o)}),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(1),_.Q6J("singleProfileSelected",e.selectedProfile)("enableSelectAll",!1)("toolbars",!1)("associatedDeviceColumn",!1)}}function ue(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"form",46),_.TgZ(1,"div",47),_.TgZ(2,"label",48),_.SDv(3,49),_.qZA(),_.TgZ(4,"div",50),_.TgZ(5,"input",51),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.name=o}),_.qZA(),_.TgZ(6,"div",52),_.TgZ(7,"small"),_.SDv(8,53),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",54),_.TgZ(10,"label",55),_.SDv(11,56),_.qZA(),_.TgZ(12,"div",50),_.TgZ(13,"input",57),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(14,"div",54),_.TgZ(15,"label",58),_.SDv(16,59),_.qZA(),_.TgZ(17,"div",50),_.TgZ(18,"input",60),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceLabels=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",54),_.TgZ(20,"label",61),_.SDv(21,62),_.qZA(),_.TgZ(22,"div",50),_.TgZ(23,"select",63),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.adminState=o}),_.TgZ(24,"option",64),_._uU(25,"UNLOCKED"),_.qZA(),_.TgZ(26,"option",65),_._uU(27,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(5),_.ekj("is-invalid",!e.newDevice.name)("is-valid",e.newDevice.name),_.Q6J("ngModel",e.newDevice.name),_.xp6(8),_.Q6J("ngModel",e.newDevice.description),_.xp6(5),_.Q6J("ngModel",e.deviceLabels),_.xp6(5),_.Q6J("ngModel",e.newDevice.adminState)}}function fe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",30),_.TgZ(1,"div",1),_.TgZ(2,"span",66),_.SDv(3,67),_.qZA(),_.qZA(),_.TgZ(4,"div",31),_.TgZ(5,"app-device-auto-event",68),_.NdJ("autoEventsChange",function(o){return _.CHM(e),_.oxw().newDevice.autoEvents=o})("isValidChange",function(o){return _.CHM(e),_.oxw().isAutoEventsValid=o}),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(5),_.Q6J("deviceProfile",e.selectedProfile)("autoEvents",e.newDevice.autoEvents)("isValid",e.isAutoEventsValid)}}let me=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errorSvc=o,this.router=c,this.route=s,this.deviceLabels="",this.currentStep=0,this.selectedClass="text-white rounded px-2 bg-success font-weight-bold",this.noSelectedClass="text-white rounded px-2 bg-secondary font-weight-bold",this.isProtocolValid=!1,this.isAutoEventsValid=!1,this.newDevice={adminState:"UNLOCKED",operatingState:"UP"}}ngOnInit(){}onSingleProfileSelected(e){this.selectedProfile=e}onSingleDeviceSvcSelected(e){this.selectedSvc=e}stepStateLock(){switch(this.currentStep){case 0:return void 0===this.selectedSvc;case 1:return void 0===this.selectedProfile;case 2:return!this.newDevice.name;case 3:return!this.isAutoEventsValid;case 4:return!this.isProtocolValid;default:return!1}}next(){this.currentStep+=1}previous(){this.currentStep=this.currentStep-1}submit(){var e,t,o;this.newDevice.labels=null===(e=this.deviceLabels)||void 0===e?void 0:e.split(","),this.newDevice.serviceName=null===(t=this.selectedSvc)||void 0===t?void 0:t.name,this.newDevice.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.newDevice.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.addDevice(this.newDevice).subscribe(c=>{this.errorSvc.handleErrorForAPI(c)||(this.msgSvc.success("Add device",`name: ${this.newDevice.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-device"]],viewQuery:function(e,t){if(1&e&&_.Gf(K,5),2&e){let o;_.iGM(o=_.CRH())&&(t.deviceProtocols=o.first)}},decls:54,vars:22,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L,P;return E="\u8BBE\u5907\u6DFB\u52A0\u5411\u5BFC",e="\u9009\u62E9\u8BBE\u5907\u670D\u52A1",t="\u9009\u62E9\u8BBE\u5907\u5143\u4FE1\u606F",o="\u8BBE\u5907\u4FE1\u606F",c="\u521B\u5EFA\u81EA\u52A8\u4E8B\u4EF6",s="\u521B\u5EFA\u8BBE\u5907\u901A\u4FE1\u534F\u8BAE",C="\u4E0A\u4E00\u9875",v="\u4E0B\u4E00\u9875",D="\u63D0\u4EA4",p="\u540D\u5B57",h="\u8BBE\u5907\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",f="\u63CF\u8FF0",N="\u6807\u7B7E",L="\u7BA1\u7406\u72B6\u6001",P=" this step is optional, you can skip it then set it later in edit mode.",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-lightbulb-o","fa-lg","mr-2","text-danger"],[1,"text-secondary"],E,[1,"card-header","py-2"],["aria-label","breadcrumb",1,"mb-0","p-0"],[1,"breadcrumb","p-1","mb-0","bg-light"],[1,"breadcrumb-item"],[3,"ngClass"],e,["class","fa fa-check ml-1",4,"ngIf"],t,o,c,[1,"breadcrumb-item","active"],s,[1,"card-header","py-1"],["class","btn btn-info btn-sm",3,"click",4,"ngIf"],["class","btn btn-primary btn-sm float-right",3,"disabled","click",4,"ngIf","ngIfElse"],["stepDone",""],[1,"card-body","p-0"],[3,"ngSwitch"],[3,"ngSwitchCase"],["SelectDeviceService",""],["SelectDeviceProfile",""],["DevicePrimary",""],["CreateAutoEvent",""],["CreateDeviceProtocol",""],[1,"card","border-0"],[1,"card-body"],[3,"mode","isValid","isValidChange"],[1,"fa","fa-check","ml-1"],[1,"btn","btn-info","btn-sm",3,"click"],[1,"fa","fa-long-arrow-left","mr-1"],C,[1,"btn","btn-primary","btn-sm","float-right",3,"disabled","click"],v,[1,"fa","fa-long-arrow-right","ml-1"],[1,"btn","btn-success","btn-sm","ml-4","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],D,[1,"p-2"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"singleProfileSelected","enableSelectAll","toolbars","associatedDeviceColumn","singleProfileSelectedEvent"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","deviceName","required","",1,"col-md-2","col-form-label"],p,[1,"col-md-10"],["type","text","id","validationDeviceNameFeedback","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationDeviceNameFeedback",1,"invalid-feedback"],h,[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],f,["type","text","name","deviceDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","deviceLabels",1,"col-md-2","col-form-label"],N,["type","text","name","deviceLabels","placeholder","Multiple Labels are separated by commas: label1,label2,label3",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],L,["name","deviceAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],[1,"fa","fa-info-circle","text-warning","font-weight-bold"],P,[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(e,t){if(1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span",2),_._UZ(3,"span",3),_.TgZ(4,"span",4),_.SDv(5,5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(6,"div",6),_.TgZ(7,"nav",7),_.TgZ(8,"ol",8),_.TgZ(9,"li",9),_.TgZ(10,"span",10),_.TgZ(11,"span"),_.SDv(12,11),_.qZA(),_.YNc(13,re,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(14,"li",9),_.TgZ(15,"span",10),_.TgZ(16,"span"),_.SDv(17,13),_.qZA(),_.YNc(18,Ae,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(19,"li",9),_.TgZ(20,"span",10),_.TgZ(21,"span"),_.SDv(22,14),_.qZA(),_.YNc(23,de,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(24,"li",9),_.TgZ(25,"span",10),_.TgZ(26,"span"),_.SDv(27,15),_.qZA(),_.YNc(28,Ce,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(29,"li",16),_.TgZ(30,"span",10),_.TgZ(31,"span"),_.SDv(32,17),_.qZA(),_.YNc(33,Te,1,0,"i",12),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(34,"div",18),_.YNc(35,ge,4,0,"button",19),_.YNc(36,De,4,1,"button",20),_.YNc(37,Se,4,1,"ng-template",null,21,_.W1O),_.qZA(),_.TgZ(39,"div",22),_.TgZ(40,"div",23),_.YNc(41,Ie,2,1,"ng-template",24,25,_.W1O),_.YNc(43,pe,2,4,"ng-template",24,26,_.W1O),_.YNc(45,ue,28,8,"ng-template",24,27,_.W1O),_.YNc(47,fe,6,3,"ng-template",24,28,_.W1O),_.TgZ(49,"div",null,29),_.TgZ(51,"div",30),_.TgZ(52,"div",31),_.TgZ(53,"app-device-protocol",32),_.NdJ("isValidChange",function(c){return t.isProtocolValid=c}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e){const o=_.MAs(38);_.xp6(10),_.Q6J("ngClass",t.currentStep>=0?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=1),_.xp6(2),_.Q6J("ngClass",t.currentStep>=1?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=2),_.xp6(2),_.Q6J("ngClass",t.currentStep>=2?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=3),_.xp6(2),_.Q6J("ngClass",t.currentStep>=3?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=4),_.xp6(2),_.Q6J("ngClass",t.currentStep>=4?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=5),_.xp6(2),_.Q6J("ngIf",t.currentStep),_.xp6(1),_.Q6J("ngIf",4>t.currentStep)("ngIfElse",o),_.xp6(4),_.Q6J("ngSwitch",t.currentStep),_.xp6(1),_.Q6J("ngSwitchCase",0),_.xp6(2),_.Q6J("ngSwitchCase",1),_.xp6(2),_.Q6J("ngSwitchCase",2),_.xp6(2),_.Q6J("ngSwitchCase",3),_.xp6(2),_.Udp("display",4===t.currentStep?"":"none"),_.xp6(4),_.Q6J("mode","add")("isValid",t.isProtocolValid)}},directives:[n.mk,n.O5,n.RF,n.n9,K,n_,t_.f,a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr,o_],styles:['.breadcrumb[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:before{color:inherit;font-weight:inherit;content:">>";padding:0 5px}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}']}),i})();function ve(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"div",2),_._UZ(2,"i",3),_.TgZ(3,"span",4),_.SDv(4,5),_.qZA(),_.TgZ(5,"span",6),_._uU(6),_.qZA(),_.TgZ(7,"button",7),_.NdJ("click",function(){return _.CHM(e),_.oxw().save()}),_.TgZ(8,"span"),_._UZ(9,"i",8),_.TgZ(10,"span"),_.SDv(11,9),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"div",11),_.TgZ(14,"div",2),_._UZ(15,"i",12),_.TgZ(16,"span"),_.SDv(17,13),_.qZA(),_.qZA(),_.TgZ(18,"div",10),_.TgZ(19,"form"),_.TgZ(20,"div",14),_.TgZ(21,"label",15),_.SDv(22,16),_.qZA(),_.TgZ(23,"div",17),_.TgZ(24,"input",18),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.name=o}),_.qZA(),_.TgZ(25,"div",19),_.SDv(26,20),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",14),_.TgZ(28,"label",15),_.SDv(29,21),_.qZA(),_.TgZ(30,"div",17),_.TgZ(31,"input",22),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(32,"div",14),_.TgZ(33,"label",15),_.SDv(34,23),_.qZA(),_.TgZ(35,"div",17),_.TgZ(36,"input",24),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceLabels=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(37,"div",14),_.TgZ(38,"label",25),_.SDv(39,26),_.qZA(),_.TgZ(40,"div",17),_.TgZ(41,"select",27),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.adminState=o}),_.TgZ(42,"option",28),_._uU(43,"UNLOCKED"),_.qZA(),_.TgZ(44,"option",29),_._uU(45,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(46,"div",14),_.TgZ(47,"label",30),_.SDv(48,31),_.qZA(),_.TgZ(49,"div",17),_._UZ(50,"input",32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",33),_.TgZ(52,"app-device-service-list",34),_.NdJ("singleDeviceSvcSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleDeviceSvcSelected(o)}),_.qZA(),_.qZA(),_.TgZ(53,"div",33),_.TgZ(54,"app-device-profile-list",35),_.NdJ("singleProfileSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleProfileSelected(o)}),_.qZA(),_.qZA(),_.TgZ(55,"div",33),_.TgZ(56,"app-device-protocol",36),_.NdJ("isValidChange",function(o){return _.CHM(e),_.oxw().isProtocolValid=o}),_.qZA(),_.qZA(),_.TgZ(57,"div",33),_.TgZ(58,"app-device-auto-event",37),_.NdJ("autoEventsChange",function(o){return _.CHM(e),_.oxw().device.autoEvents=o})("isValidChange",function(o){return _.CHM(e),_.oxw().isAutoEventsValid=o}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(6),_.Oqu(e.device.name),_.xp6(1),_.Q6J("disabled",e.validateBeforeSave()),_.xp6(17),_.ekj("is-invalid",""===e.device.name),_.Q6J("ngModel",e.device.name),_.xp6(7),_.Q6J("ngModel",e.device.description),_.xp6(5),_.Q6J("ngModel",e.deviceLabels),_.xp6(5),_.Q6J("ngModel",e.device.adminState),_.xp6(9),_.Q6J("value",e.device.operatingState),_.xp6(2),_.Q6J("deviceSvcSelected",e.selectedSvc),_.xp6(2),_.Q6J("enableSelectAll",!1)("toolbars",!1)("singleProfileSelected",e.selectedProfile)("associatedDeviceColumn",!1),_.xp6(2),_.Q6J("mode","edit")("deviceProtocols",e.device.protocols)("isValid",e.isProtocolValid),_.xp6(2),_.Q6J("deviceProfile",e.selectedProfile)("autoEvents",e.device.autoEvents)("isValid",e.isAutoEventsValid)}}let Ne=(()=>{class i{constructor(e,t,o,c,s){this.router=e,this.route=t,this.metaSvc=o,this.msgSvc=c,this.errorSvc=s,this.isProtocolValid=!0,this.isAutoEventsValid=!0}ngOnInit(){this.route.queryParams.subscribe(e=>{!e.deviceName||this.metaSvc.findDeviceByName(e.deviceName).subscribe(o=>{var c;this.device=o.device,this.deviceLabels=null===(c=this.device.labels)||void 0===c?void 0:c.join(","),this.setDefaultDeviceSvcSelected(this.device.serviceName),this.setDefaultDeviceProfileSelected(this.device.profileName)})})}onSingleProfileSelected(e){this.selectedProfile=e}onSingleDeviceSvcSelected(e){this.selectedSvc=e}setDefaultDeviceSvcSelected(e){this.metaSvc.findDevcieServiceByName(e).subscribe(t=>{this.selectedSvc=t.service})}setDefaultDeviceProfileSelected(e){this.metaSvc.findProfileByName(e).subscribe(t=>{this.selectedProfile=t.profile})}validateBeforeSave(){return""===this.device.name||!this.isAutoEventsValid||!this.isProtocolValid}save(){var e,t,o;this.device.labels=null===(e=this.deviceLabels)||void 0===e?void 0:e.split(","),this.device.serviceName=null===(t=this.selectedSvc)||void 0===t?void 0:t.name,this.device.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.device.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.updateDevice(this.device).subscribe(c=>{var s;this.errorSvc.handleErrorForAPI(c)||(this.msgSvc.success("update device",`name: ${null===(s=this.device)||void 0===s?void 0:s.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(T.F0),_.Y36(T.gz),_.Y36(u.D),_.Y36(V.e),_.Y36(__.T))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-device"]],viewQuery:function(e,t){if(1&e&&_.Gf(K,5),2&e){let o;_.iGM(o=_.CRH())&&(t.deviceProtocols=o.first)}},decls:1,vars:1,consts:function(){let E,e,t,o,c,s,C,v,D;return E="\u7F16\u8F91\u8BBE\u5907",e="\u4FDD\u5B58",t="\u8BBE\u5907\u57FA\u672C\u4FE1\u606F",o="\u8BBE\u5907\u540D\u5B57",c="\u8BBE\u5907\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A\uFF01",s="\u63CF\u8FF0",C="\u6807\u7B7E",v="\u7BA1\u7406\u72B6\u6001",D="\u64CD\u4F5C\u72B6\u6001",[["class","card",4,"ngIf"],[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","text-danger","fa-lg"],[1,"mx-2"],E,[1,"text-primary"],["type","button",1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],e,[1,"card-body"],[1,"card","mb-3"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],t,[1,"form-group","row"],[1,"col-md-2","col-form-label"],o,[1,"col-md-10"],["type","text","name","name","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],c,s,["type","text","name","description",1,"form-control",3,"ngModel","ngModelChange"],C,["type","text","name","labels",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],v,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","operatingState",1,"col-md-2","col-form-label"],D,["type","text","name","operatingState","disabled","",1,"form-control",3,"value"],[1,"mb-3"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"enableSelectAll","toolbars","singleProfileSelected","associatedDeviceColumn","singleProfileSelectedEvent"],[3,"mode","deviceProtocols","isValid","isValidChange"],[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(e,t){1&e&&_.YNc(0,ve,59,20,"div",0),2&e&&_.Q6J("ngIf",t.device)},directives:[n.O5,a._Y,a.JL,a.F,a.Fj,a.Q7,a.JJ,a.On,a.EJ,a.YN,a.Kr,n_,t_.f,K,o_],styles:["input[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})(),Me=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-profile-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[T.lC],styles:[""]}),i})(),Pe=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errSvc=o,this.router=c,this.route=s}ngOnInit(){this.renderYamlSource()}renderYamlSource(){let e=document.getElementById("editor");this.codeMirrorEditor=CodeMirror.fromTextArea(e,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px"),this.codeMirrorEditor.on("drop",(t,o)=>{var c;this.yamlFile=null===(c=o.dataTransfer)||void 0===c?void 0:c.files[0]}),this.codeMirrorEditor.on("paste",(t,o)=>{})}submit(){this.profileYamlSource=this.codeMirrorEditor.getValue(),this.metaSvc.addProfileYamlByNameViaUIBackend(this.profileYamlSource).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add profile"),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-profile"]],decls:15,vars:0,consts:function(){let E,e,t;return E="\u6DFB\u52A0\u8BBE\u5907\u5143\u4FE1\u606F",e="\u62D6\u62FD\u529F\u80FD\u5DF2\u5F00\u542F",t="\u63D0\u4EA4",[[1,"card"],[1,"card-header"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],E,[1,"fa","fa-info-circle","text-success","font-weight-bold"],e,[1,"float-right"],["type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],["id","editor","name","editor"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span"),_._UZ(3,"span",2),_.TgZ(4,"span",3),_.SDv(5,4),_.qZA(),_.TgZ(6,"span",5),_.SDv(7,6),_.qZA(),_.qZA(),_.TgZ(8,"span",7),_.TgZ(9,"button",8),_.NdJ("click",function(){return t.submit()}),_._UZ(10,"i",9),_.TgZ(11,"span"),_.SDv(12,10),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"div",11),_._UZ(14,"textarea",12),_.qZA(),_.qZA())},styles:[""]}),i})(),Oe=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errSvc=o,this.router=c,this.route=s}ngOnInit(){this.renderYamlSource(),this.route.queryParams.subscribe(e=>{e.profileName&&(this.profileName=e.profileName,this.metaSvc.findProfileYamlByNameViaUIBackend(e.profileName).subscribe(t=>{this.codeMirrorEditor.setValue(t),this.codeMirrorEditor.refresh()}))})}update(){this.codeMirrorEditor.refresh(),this.metaSvc.updateProfileYamlContentViaUIBackend(this.codeMirrorEditor.getValue()).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update profile",`name: ${this.profileName}`),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}renderYamlSource(){let e=document.getElementById("editor-edit");this.codeMirrorEditor=CodeMirror.fromTextArea(e,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px")}ngOnDestroy(){this.codeMirrorEditor=null}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-profile"]],decls:13,vars:1,consts:function(){let E;return E="\u4FDD\u5B58",[[1,"card"],[1,"card-header"],[1,"text-danger","fa","fa-edit","mr-2"],[1,"float-right"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],E,[1,"card-body","p-0"],["id","editor-edit","name","editor"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span"),_._UZ(3,"span",2),_._uU(4),_.qZA(),_.TgZ(5,"span",3),_.TgZ(6,"button",4),_.NdJ("click",function(){return t.update()}),_.TgZ(7,"span"),_._UZ(8,"i",5),_.TgZ(9,"span"),_.SDv(10,6),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",7),_._UZ(12,"textarea",8),_.qZA(),_.qZA()),2&e&&(_.xp6(4),_.hij("",t.profileName," "))},styles:[""]}),i})(),Ge=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-provision-watcher-center"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"provision-watcher-center works!"),_.qZA())},styles:[""]}),i})(),he=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-provision-watcher-list"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"provision-watcher-list works!"),_.qZA())},styles:[""]}),i})(),Re=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-provision-watcher"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"add-provision-watcher works!"),_.qZA())},styles:[""]}),i})(),Ze=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-provision-watcher"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"edit-provision-watcher works!"),_.qZA())},styles:[""]}),i})();var Ue=d(8253),Ve=d(1964),Le=d(4294),be=d(5894),$e=d(7216);let E_=(()=>{class i{constructor(e,t){this.router=e,this.metadataSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.metadataSvc.ping().pipe((0,Le.q)(1),(0,be.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"metadata",routerPath:`/${t.url.split("/")[1]}`}})),(0,$e.z)(()=>(0,Ve.of)(!0)))}}return i.\u0275fac=function(e){return new(e||i)(_.LFG(T.F0),_.LFG(u.D))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const xe=[{path:"",component:x,canActivate:[Ue.a,E_],canActivateChild:[E_],children:[{path:"",redirectTo:"device-service-list",pathMatch:"full"},{path:"device-service-list",component:R},{path:"device-center",component:l,children:[{path:"",redirectTo:"device-list",pathMatch:"full"},{path:"device-list",component:H_},{path:"add-device",component:me},{path:"edit-device",component:Ne}]},{path:"device-profile-center",component:Me,children:[{path:"",redirectTo:"device-profile-list",pathMatch:"full"},{path:"device-profile-list",component:t_.f},{path:"edit-profile",component:Oe},{path:"add-profile",component:Pe}]},{path:"provision-watcher-center",component:Ge,children:[{path:"",redirectTo:"provision-watcher-list",pathMatch:"full"},{path:"provision-watcher-list",component:he},{path:"edit-provision-watcher",component:Ze},{path:"add-provision-watcher",component:Re}]}]}];let qe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[T.Bz.forChild(xe)],T.Bz]}),i})(),Xe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[n.ez,a.u5,qe,a.UX]]}),i})()},2822:(i_,b,d)=>{d.d(b,{f:()=>e_});var n=d(476),a=d(2437),T=d(7822),_=d(9502),x=d(8583),u=d(3092);function V(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"div",50),n.TgZ(1,"div",51),n.TgZ(2,"button",52),n.NdJ("click",function(){return n.CHM(l),n.oxw().refresh()}),n.TgZ(3,"span"),n._UZ(4,"i",53),n.TgZ(5,"span"),n.SDv(6,54),n.qZA(),n.qZA(),n.qZA(),n.TgZ(7,"button",55),n.TgZ(8,"span"),n._UZ(9,"i",56),n.TgZ(10,"span"),n.SDv(11,57),n.qZA(),n.qZA(),n.qZA(),n.TgZ(12,"button",58),n.NdJ("click",function(){return n.CHM(l),n.oxw().edit()}),n.TgZ(13,"span"),n._UZ(14,"i",59),n.TgZ(15,"span"),n.SDv(16,60),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"button",61),n.NdJ("click",function(){return n.CHM(l),n.oxw().deleteConfirm()}),n.TgZ(18,"span"),n._UZ(19,"i",62),n.TgZ(20,"span"),n.SDv(21,63),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&I){const l=n.oxw();n.xp6(12),n.Q6J("disabled",1!==l.multiProfilesSelected.length),n.xp6(5),n.Q6J("disabled",0===l.multiProfilesSelected.length)}}function S(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"input",64),n.NdJ("click",function(g){return n.CHM(l),n.oxw().selectAll(g)}),n.qZA()}if(2&I){const l=n.oxw();n.Q6J("checked",l.isCheckedAll())}}function m(I,R){1&I&&(n.TgZ(0,"th",9),n.SDv(1,65),n.qZA())}const G=function(I){return{profileName:I}};function U(I,R){if(1&I&&(n.TgZ(0,"td",69),n.TgZ(1,"a",70),n._UZ(2,"i",71),n.qZA(),n.qZA()),2&I){const l=n.oxw().$implicit;n.xp6(1),n.Q6J("queryParams",n.VKq(1,G,l.name))}}function X(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"tr"),n.TgZ(1,"td"),n.TgZ(2,"input",66),n.NdJ("click",function(g){const q=n.CHM(l).$implicit;return n.oxw().selectOne(g,q.name)}),n.qZA(),n.qZA(),n.TgZ(3,"td",67),n._uU(4),n.qZA(),n.TgZ(5,"td",67),n._uU(6),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.YNc(9,U,3,3,"td",68),n.TgZ(10,"td"),n._uU(11),n.qZA(),n.TgZ(12,"td"),n._uU(13),n.qZA(),n.TgZ(14,"td"),n._uU(15),n.qZA(),n.qZA()}if(2&I){const l=R.$implicit,r=n.oxw();n.ekj("table-active",r.isChecked(l.name)),n.xp6(2),n.s9C("value",l.name),n.Q6J("checked",r.isChecked(l.name)),n.xp6(2),n.Oqu(l.id),n.xp6(2),n.Oqu(l.name),n.xp6(2),n.Oqu(l.description),n.xp6(1),n.Q6J("ngIf",r.associatedDeviceColumn),n.xp6(2),n.Oqu(l.labels),n.xp6(2),n.Oqu(l.manufacturer),n.xp6(2),n.Oqu(l.model)}}let e_=(()=>{class I{constructor(l,r,g,Z){this.metaSvc=l,this.msgSvc=r,this.route=g,this.router=Z,this.associatedDeviceColumn=!0,this.toolbars=!0,this.enableSelectAll=!0,this.singleProfileSelectedEvent=new n.vpe,this.multipleProfileSelectedEvent=new n.vpe,this.profileList=[],this.multiProfilesSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(l=>{l.profileName?this.metaSvc.findProfileByName(l.profileName).subscribe(r=>{this.profileList=[],this.profileList.push(r.profile)}):this.findAllDeviceProfilesPagination()})}findAllDeviceProfilesPagination(){this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}onSingleProfileSelectedEmitter(){this.singleProfileSelectedEvent.emit(this.singleProfileSelected)}onMultipleProfileSelectedEmitter(){this.multipleProfileSelectedEvent.emit(this.multiProfilesSelected)}refresh(){this.metaSvc.allDeviceProfolesPagination(0,this.pageLimit).subscribe(l=>{this.profileList=l.profiles,this.msgSvc.success("refresh"),this.pagination=1,this.resetCheckbox()})}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceProfilesPagination()}prePage(){this.setPagination(-1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}nextPage(){this.setPagination(1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}setPageLimit(l){this.pageLimit=l}setPagination(l){1===l?this.pagination+=1:-1===l&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit,this.resetCheckbox()}resetPagination(){this.pagination=1,this.resetCheckbox()}resetCheckbox(){}edit(){this.router.navigate(["../edit-profile"],{relativeTo:this.route,queryParams:{profileName:this.multiProfilesSelected[0]}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.multiProfilesSelected.forEach(l=>{this.metaSvc.deleteProfileByName(l).subscribe(()=>{this.multiProfilesSelected=[],this.profileList.forEach((r,g)=>{r.name==l&&(this.profileList.splice(g,1),this.msgSvc.success("delete",` Name: ${r.name}`))})})}),$("#deleteConfirmDialog").modal("hide")}isSingleProfileChecked(l){var r;return(null===(r=this.singleProfileSelected)||void 0===r?void 0:r.name)===l}selectSingleProfile(l,r){l.target.checked?this.profileList.forEach(Z=>{Z.name===r&&(this.singleProfileSelected=Z)}):this.singleProfileSelected=void 0,this.onSingleProfileSelectedEmitter()}isCheckedAll(){let l=!0;return this.profileList&&0===this.profileList.length&&(l=!1),this.profileList.forEach(r=>{-1===this.multiProfilesSelected.indexOf(r.name)&&(l=!1)}),l}selectAll(l){this.profileList.forEach(l.target.checked?g=>{this.multiProfilesSelected.includes(g.name)||this.multiProfilesSelected.push(g.name)}:g=>{this.multiProfilesSelected.includes(g.name)&&this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(g.name),1)}),this.onMultipleProfileSelectedEmitter()}isChecked(l){return this.enableSelectAll?this.multiProfilesSelected.includes(l):this.isSingleProfileChecked(l)}selectOne(l,r){this.enableSelectAll?(l.target.checked?this.multiProfilesSelected.push(r):this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(r),1),this.onMultipleProfileSelectedEmitter()):this.selectSingleProfile(l,r)}}return I.\u0275fac=function(l){return new(l||I)(n.Y36(a.D),n.Y36(T.e),n.Y36(_.gz),n.Y36(_.F0))},I.\u0275cmp=n.Xpm({type:I,selectors:[["app-device-profile-list"]],inputs:{associatedDeviceColumn:"associatedDeviceColumn",toolbars:"toolbars",enableSelectAll:"enableSelectAll",multiProfilesSelected:"multiProfilesSelected",singleProfileSelected:"singleProfileSelected"},outputs:{singleProfileSelectedEvent:"singleProfileSelectedEvent",multipleProfileSelectedEvent:"multipleProfileSelectedEvent"},decls:67,vars:7,consts:function(){let R,l,r,g,Z,q,J,y,B,W,H,w,F,k,z,Y,Q,j;return R="\u8BBE\u5907\u5143\u4FE1\u606F\u5217\u8868",l="\u540D\u5B57",r="\u63CF\u8FF0",g="\u6807\u7B7E",Z="\u7EF4\u62A4\u8005",q="\u6A21\u5F0F",J="\u6BCF\u9875\u6761\u76EE",y="\u4E0A\u4E00\u9875",B="\u4E0B\u4E00\u9875",W="\u8B66\u544A",H="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",w="\u53D6\u6D88",F="\u786E\u8BA4",k="\u5237\u65B0",z="\u6DFB\u52A0",Y="\u7F16\u8F91",Q="\u5220\u9664",j="\u76F8\u5173\u8BBE\u5907",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],R,[1,"card-body","p-0"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox",3,"checked","click",4,"ngIf"],l,r,["scope","col",4,"ngIf"],g,Z,q,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],J,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],y,[1,"page-item"],B,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],W,[1,"modal-body"],H,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],w,["type","button",1,"btn","btn-danger",3,"click"],F,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],k,["type","button","routerLink","../add-profile",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],z,["type","button","data-toggle","tooltip","data-placement","top","title","only one should be selected",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],Y,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],Q,["type","checkbox",3,"checked","click"],j,["type","checkbox",3,"value","checked","click"],[1,"user-select-all"],["class","text-center",4,"ngIf"],[1,"text-center"],["routerLink","../../device-center",1,"badge","badge-pill","badge-primary",3,"queryParams"],[1,"fa","fa-sitemap"]]},template:function(l,r){1&l&&(n.TgZ(0,"div",0),n.TgZ(1,"div",1),n._UZ(2,"i",2),n.TgZ(3,"span"),n.SDv(4,3),n.qZA(),n.qZA(),n.TgZ(5,"div",4),n.YNc(6,V,22,2,"div",5),n.TgZ(7,"div",6),n.TgZ(8,"table",7),n.TgZ(9,"thead",8),n.TgZ(10,"tr"),n.TgZ(11,"th",9),n.YNc(12,S,1,1,"input",10),n.qZA(),n.TgZ(13,"th",9),n._uU(14,"ID"),n.qZA(),n.TgZ(15,"th",9),n.SDv(16,11),n.qZA(),n.TgZ(17,"th",9),n.SDv(18,12),n.qZA(),n.YNc(19,m,2,0,"th",13),n.TgZ(20,"th",9),n.SDv(21,14),n.qZA(),n.TgZ(22,"th",9),n.SDv(23,15),n.qZA(),n.TgZ(24,"th",9),n.SDv(25,16),n.qZA(),n.qZA(),n.qZA(),n.TgZ(26,"tbody"),n.YNc(27,X,16,11,"tr",17),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(28,"div",18),n.TgZ(29,"nav",19),n.TgZ(30,"ul",20),n.TgZ(31,"li",21),n.TgZ(32,"span",22),n.SDv(33,23),n.qZA(),n.qZA(),n.TgZ(34,"li",24),n.TgZ(35,"select",25),n.NdJ("ngModelChange",function(Z){return r.pageLimit=Z})("ngModelChange",function(){return r.onPageSelected()}),n.TgZ(36,"option",26),n._uU(37,"5"),n.qZA(),n.TgZ(38,"option",27),n._uU(39,"10"),n.qZA(),n.TgZ(40,"option",28),n._uU(41,"20"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(42,"li",29),n.TgZ(43,"button",30),n.NdJ("click",function(){return r.prePage()}),n._UZ(44,"i",31),n.TgZ(45,"span"),n.SDv(46,32),n.qZA(),n.qZA(),n.qZA(),n.TgZ(47,"li",33),n.TgZ(48,"button",30),n.NdJ("click",function(){return r.nextPage()}),n.TgZ(49,"span"),n.SDv(50,34),n.qZA(),n._UZ(51,"i",35),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(52,"div",36),n.TgZ(53,"div",37),n.TgZ(54,"div",38),n.TgZ(55,"div",39),n.TgZ(56,"h5",40),n._UZ(57,"i",41),n.TgZ(58,"span"),n.SDv(59,42),n.qZA(),n.qZA(),n.qZA(),n.TgZ(60,"div",43),n.SDv(61,44),n.qZA(),n.TgZ(62,"div",45),n.TgZ(63,"button",46),n.SDv(64,47),n.qZA(),n.TgZ(65,"button",48),n.NdJ("click",function(){return r.delete()}),n.SDv(66,49),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&l&&(n.xp6(6),n.Q6J("ngIf",r.toolbars),n.xp6(6),n.Q6J("ngIf",r.enableSelectAll),n.xp6(7),n.Q6J("ngIf",r.associatedDeviceColumn),n.xp6(8),n.Q6J("ngForOf",r.profileList),n.xp6(8),n.Q6J("ngModel",r.pageLimit),n.xp6(8),n.Q6J("disabled",1===r.pagination),n.xp6(5),n.Q6J("disabled",r.pageLimit>r.profileList.length))},directives:[x.O5,x.sg,u.EJ,u.JJ,u.On,u.YN,u.Kr,_.rH,_.yS],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),I})()},7982:(i_,b,d)=>{d.d(b,{V:()=>x});var n=d(1841),a=d(5894),T=d(476),_=d(4889);let x=(()=>{class u{constructor(S,m){this.http=S,this.errorSvc=m,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new n.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,a.K)(m=>this.errorSvc.handleError(m)))}findCommnadsByDeviceId(S){return this.http.get(`${this.commandsByDeviceIdUrl}${S}`).pipe((0,a.K)(G=>this.errorSvc.handleError(G)))}allDeviceCoreCommandsPagination(S,m){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${S}&limit=${m}`).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}findDeviceAssociatedCommnadsByDeviceName(S){return this.http.get(`${this.commandsByDeviceNameUrl}${S}`).pipe((0,a.K)(G=>this.errorSvc.handleError(G)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,a.K)(m=>this.errorSvc.handleError(m)))}issueGetBinaryCmd(S,m){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${S}/command/${m}`,{responseType:"arraybuffer"}).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}issueGetCmd(S,m){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${S}/${m}?ds-pushevent=true&ds-returnevent=true`).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}issueSetCmd(S,m,G){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${S}/${m}`,JSON.stringify(G),this.httpPostOrPutJSONOptions).pipe((0,a.K)(X=>this.errorSvc.handleError(X)))}}return u.\u0275fac=function(S){return new(S||u)(T.LFG(n.eN),T.LFG(_.T))},u.\u0275prov=T.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/10.6895e8a3e17d7e2e257b.js b/cmd/edgex-ui-server/static/web/zh/10.6895e8a3e17d7e2e257b.js new file mode 100644 index 00000000..550012f0 --- /dev/null +++ b/cmd/edgex-ui-server/static/web/zh/10.6895e8a3e17d7e2e257b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[10],{4010:(ie,q,T)=>{T.r(q),T.d(q,{MetadataModule:()=>Gt});var n=T(8583),l=T(3092),C=T(9502),e=T(476);let y=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-metadata"]],decls:14,vars:0,consts:function(){let c,t,_;return c="\u8BBE\u5907\u670D\u52A1",t="\u8BBE\u5907",_="\u8BBE\u5907\u5143\u4FE1\u606F",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./device-service-list","routerLinkActive","active",1,"nav-link"],c,["routerLink","./device-center","routerLinkActive","active",1,"nav-link"],t,["routerLink","./device-profile-center","routerLinkActive","active",1,"nav-link"],_,[1,"card-body"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.qZA(),e.TgZ(6,"li",3),e.TgZ(7,"a",6),e.SDv(8,7),e.qZA(),e.qZA(),e.TgZ(9,"li",3),e.TgZ(10,"a",8),e.SDv(11,9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",10),e._UZ(13,"router-outlet"),e.qZA(),e.qZA())},directives:[C.yS,C.Od,C.lC],styles:[".active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}"]}),i})();var D=T(2437),b=T(7822);function u(i,c){if(1&i&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.description)}}function S(i,c){1&i&&(e.TgZ(0,"p",20),e._uU(1,"no description."),e.qZA())}function Z(i,c){if(1&i&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.adminState)}}function R(i,c){if(1&i&&(e.TgZ(0,"span",22),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.adminState)}}function G(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"a",23),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().associatedDevicesSkip(o.name)}),e._UZ(1,"i",24),e.TgZ(2,"span"),e.SDv(3,25),e.qZA(),e._uU(4),e.qZA()}if(2&i){const t=e.oxw().$implicit,_=e.oxw();e.xp6(4),e.hij("\xa0 ",_.associatedDevices.get(t.name)," ")}}function te(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"li",3),e.TgZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"div",7),e.TgZ(5,"div",8),e.TgZ(6,"h5",9),e._uU(7),e.qZA(),e.qZA(),e.YNc(8,u,2,1,"p",10),e.YNc(9,S,2,0,"ng-template",null,11,e.W1O),e.TgZ(11,"div"),e.TgZ(12,"span",12),e._uU(13),e.qZA(),e.TgZ(14,"span",13),e.YNc(15,Z,2,1,"span",14),e.YNc(16,R,2,1,"span",15),e.qZA(),e.YNc(17,G,5,1,"a",16),e.TgZ(18,"span",17),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().edit(s)}),e._UZ(19,"i",18),e.TgZ(20,"span"),e.SDv(21,19),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit,_=e.MAs(10),o=e.oxw();e.xp6(7),e.Oqu(t.name),e.xp6(1),e.Q6J("ngIf",t.description)("ngIfElse",_),e.xp6(5),e.hij("Port ",o.getSvcPort(t.baseAddress),""),e.xp6(1),e.Q6J("ngSwitch",t.adminState),e.xp6(1),e.Q6J("ngSwitchCase","UNLOCKED"),e.xp6(2),e.Q6J("ngIf",o.associatedDevices.size)}}function f(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",26),e.TgZ(1,"div",27),e._UZ(2,"i",28),e.TgZ(3,"span"),e.SDv(4,29),e.qZA(),e.TgZ(5,"span",30),e._uU(6),e.qZA(),e.TgZ(7,"button",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().updateSvc()}),e.SDv(8,32),e.qZA(),e.qZA(),e.TgZ(9,"div",33),e.TgZ(10,"form"),e.TgZ(11,"div",34),e.TgZ(12,"label",35),e.SDv(13,36),e.qZA(),e.TgZ(14,"div",37),e.TgZ(15,"input",38),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().deviceSvcSelected.description=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"div",34),e.TgZ(17,"label",39),e.SDv(18,40),e.qZA(),e.TgZ(19,"div",37),e.TgZ(20,"select",41),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().deviceSvcSelected.adminState=o}),e.TgZ(21,"option",42),e._uU(22,"UNLOCKED"),e.qZA(),e.TgZ(23,"option",43),e._uU(24,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(6),e.Oqu(t.deviceSvcSelected.name),e.xp6(9),e.Q6J("ngModel",t.deviceSvcSelected.description),e.xp6(5),e.Q6J("ngModel",t.deviceSvcSelected.adminState)}}let V=(()=>{class i{constructor(t,_,o,s){this.metaSvc=t,this.msgSvc=_,this.router=o,this.route=s,this.deviceServiceList=[],this.associatedDevices=new Map}ngOnInit(){this.metaSvc.allDeviceServices().subscribe(t=>{this.deviceServiceList=t.services,this.deviceServiceList.forEach(_=>{this.metaSvc.findDevicesByServiceName(0,20,_.name).subscribe(o=>{this.associatedDevices.set(_.name,o.devices.length>20?"20+":String(o.devices.length))})})})}getSvcPort(t){return new URL(t).port}edit(t){this.deviceSvcSelected=t}updateSvc(){this.metaSvc.updateDeviceService(this.deviceSvcSelected).subscribe(()=>{var t;this.msgSvc.success("update device service",`name: ${null===(t=this.deviceSvcSelected)||void 0===t?void 0:t.name}`),this.deviceSvcSelected=void 0})}associatedDevicesSkip(t){this.router.navigate(["../device-center"],{queryParams:{svcName:t},relativeTo:this.route})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D),e.Y36(b.e),e.Y36(C.F0),e.Y36(C.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-service-media-list"]],decls:3,vars:2,consts:function(){let c,t,_,o,s,a;return c="\u8BBE\u7F6E",t="\u5173\u8054\u8BBE\u5907",_="\u7F16\u8F91",o="\u4FDD\u5B58",s="\u63CF\u8FF0",a="\u7BA1\u7406\u72B6\u6001",[[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[4,"ngIf","ngIfElse"],["nodesc",""],[1,"badge","badge-info","mr-3"],[3,"ngSwitch"],["class","badge badge-success mr-3",4,"ngSwitchCase"],["class","badge badge-danger mr-3",4,"ngSwitchDefault"],["class","badge badge-primary","role","button",3,"click",4,"ngIf"],["role","button",1,"badge","badge-secondary","float-right",3,"click"],[1,"fa","fa-cog","mr-1"],c,[1,"my-1"],[1,"badge","badge-success","mr-3"],[1,"badge","badge-danger","mr-3"],["role","button",1,"badge","badge-primary",3,"click"],[1,"fa","fa-sitemap","mr-1"],t,[1,"card","mt-3"],[1,"card-header"],[1,"fa","fa-edit","mr-1","text-danger"],_,[1,"ml-1"],[1,"btn","btn-success","btn-sm","float-right",3,"click"],o,[1,"card-body"],[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],s,[1,"col-md-10"],["type","text","name","deviceSvcDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],a,["name","deviceSvcAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"]]},template:function(t,_){1&t&&(e.TgZ(0,"ul",0),e.YNc(1,te,22,7,"li",1),e.qZA(),e.YNc(2,f,25,3,"div",2)),2&t&&(e.xp6(1),e.Q6J("ngForOf",_.deviceServiceList),e.xp6(1),e.Q6J("ngIf",_.deviceSvcSelected))},directives:[n.sg,n.O5,n.RF,n.n9,n.ED,l._Y,l.JL,l.F,l.Fj,l.JJ,l.On,l.EJ,l.YN,l.Kr],styles:[""]}),i})(),r=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[C.lC],styles:[""]}),i})();var E=T(7982);function A(i,c){1&i&&e._UZ(0,"div")}function L(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"li",20),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).selectCmd(s)}),e._uU(1),e.qZA()}if(2&i){const t=c.$implicit,_=e.oxw(2);e.ekj("list-group-item-info",(null==_.selectedCmd?null:_.selectedCmd.name)===t.name),e.xp6(1),e.Oqu(t.name)}}function w(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).issueGetCmd()}),e._uU(1,"try"),e.qZA()}}function X(i,c){1&i&&e._UZ(0,"div")}function U(i,c){if(1&i&&(e.TgZ(0,"span",41),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.cmdGetResponse,"")}}function F(i,c){if(1&i&&(e.TgZ(0,"pre",42),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.Oqu(t.cmdGetResponseRaw)}}function k(i,c){if(1&i&&(e.TgZ(0,"div"),e.TgZ(1,"span",35),e.SDv(2,36),e.qZA(),e.YNc(3,U,2,1,"span",37),e.qZA(),e.TgZ(4,"div",38),e.TgZ(5,"span",35),e.SDv(6,39),e.qZA(),e.YNc(7,F,2,1,"pre",40),e.qZA()),2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("ngIf",t.cmdGetResponse),e.xp6(4),e.Q6J("ngIf",t.cmdGetResponseRaw)}}function J(i,c){1&i&&(e.TgZ(0,"h6",43),e._UZ(1,"i",44),e.TgZ(2,"span"),e.SDv(3,45),e.qZA(),e.qZA())}function z(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).issueSetCmd()}),e._uU(1,"try"),e.qZA()}}function Y(i,c){1&i&&e._UZ(0,"div")}function Q(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"label",56),e._uU(2),e.qZA(),e.TgZ(3,"select",57),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw().index;return e.oxw(6).parameterBearerList[s].value=o}),e.TgZ(4,"option",58),e._uU(5,"false"),e.qZA(),e.TgZ(6,"option",58),e._uU(7,"true"),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(),_=t.$implicit,o=t.index,s=e.oxw(6);e.xp6(1),e.s9C("for",_.resourceName),e.xp6(1),e.hij(" ",_.resourceName," "),e.xp6(1),e.s9C("id",_.resourceName),e.s9C("name",_.resourceName),e.Q6J("ngModel",s.parameterBearerList[o].value),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function B(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"label",56),e._uU(1),e.qZA(),e.TgZ(2,"input",59),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw().index;return e.oxw(6).parameterBearerList[s].value=o}),e.qZA()}if(2&i){const t=e.oxw(),_=t.$implicit,o=t.index,s=e.oxw(6);e.s9C("for",_.resourceName),e.xp6(1),e.Oqu(_.resourceName),e.xp6(1),e.s9C("id",_.resourceName),e.s9C("name",_.resourceName),e.MGl("placeholder","valueType: ",_.valueType,""),e.Q6J("ngModel",s.parameterBearerList[o].value)}}function W(i,c){if(1&i&&(e.TgZ(0,"div",53),e.YNc(1,Q,8,7,"div",54),e.YNc(2,B,3,6,"ng-template",null,55,e.W1O),e.qZA()),2&i){const t=c.$implicit,_=e.MAs(3);e.xp6(1),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",_)}}function H(i,c){if(1&i&&(e.TgZ(0,"div",51),e.YNc(1,W,4,2,"div",52),e.qZA()),2&i){const t=e.oxw(5);e.xp6(1),e.Q6J("ngForOf",t.selectedCmdSetParams)}}function j(i,c){if(1&i&&(e.TgZ(0,"div",12),e.TgZ(1,"div",4),e.SDv(2,49),e.qZA(),e.TgZ(3,"div",9),e.YNc(4,H,2,1,"div",50),e.qZA(),e.qZA()),2&i){const t=e.oxw(4);e.xp6(4),e.Q6J("ngIf",t.selectedCmd)}}function P(i,c){if(1&i&&(e.TgZ(0,"span",41),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.Oqu(t.cmdSetResponse)}}function Se(i,c){if(1&i&&(e.TgZ(0,"pre",42),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.Oqu(t.cmdSetResponseRaw)}}function Ie(i,c){if(1&i&&(e.YNc(0,j,5,1,"div",46),e.TgZ(1,"div"),e.TgZ(2,"div"),e.TgZ(3,"span",35),e.SDv(4,47),e.qZA(),e.YNc(5,P,2,1,"span",37),e.qZA(),e.TgZ(6,"div",38),e.TgZ(7,"span",35),e.SDv(8,48),e.qZA(),e.YNc(9,Se,2,1,"pre",40),e.qZA(),e.qZA()),2&i){const t=e.oxw(3);e.Q6J("ngIf",t.selectedCmdSetParams),e.xp6(5),e.Q6J("ngIf",t.cmdSetResponse),e.xp6(4),e.Q6J("ngIf",t.cmdSetResponseRaw)}}function Me(i,c){1&i&&(e.TgZ(0,"h6",43),e._UZ(1,"i",44),e.TgZ(2,"span"),e.SDv(3,60),e.qZA(),e.qZA())}function Pe(i,c){if(1&i&&(e.TgZ(0,"div",21),e.TgZ(1,"div",4),e.TgZ(2,"span",22),e._UZ(3,"i",23),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,24),e.qZA(),e.qZA(),e.TgZ(7,"div",25),e.TgZ(8,"div",10),e.TgZ(9,"div",26),e.TgZ(10,"div",12),e.TgZ(11,"div",4),e._uU(12," Get "),e.YNc(13,w,2,0,"button",27),e.qZA(),e.TgZ(14,"div",28),e.YNc(15,X,1,0,"div",0),e.YNc(16,k,8,2,"ng-template",null,29,e.W1O),e.YNc(18,J,4,0,"ng-template",null,30,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",31),e.TgZ(21,"div",21),e.TgZ(22,"div",4),e._uU(23," Set "),e.YNc(24,z,2,0,"button",27),e.qZA(),e.TgZ(25,"div",9),e.YNc(26,Y,1,0,"div",0),e.YNc(27,Ie,10,3,"ng-template",null,32,e.W1O),e.YNc(29,Me,4,0,"ng-template",null,33,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.MAs(17),_=e.MAs(19),o=e.MAs(28),s=e.MAs(30),a=e.oxw(2);e.xp6(4),e.hij(" ",a.selectedCmd.name," method:"),e.xp6(9),e.Q6J("ngIf",a.selectedCmd.get),e.xp6(2),e.Q6J("ngIf",a.selectedCmd.get)("ngIfThen",t)("ngIfElse",_),e.xp6(9),e.Q6J("ngIf",a.selectedCmd.set),e.xp6(2),e.Q6J("ngIf",a.selectedCmd.set)("ngIfThen",o)("ngIfElse",s)}}function he(i,c){if(1&i&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"span",7),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,8),e.qZA(),e.qZA(),e.TgZ(8,"div",9),e.TgZ(9,"div",10),e.TgZ(10,"div",11),e.TgZ(11,"div",12),e.TgZ(12,"div",13),e.SDv(13,14),e.qZA(),e.TgZ(14,"div",15),e.TgZ(15,"ul",16),e.YNc(16,L,2,3,"li",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",18),e.YNc(18,Pe,31,9,"div",19),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(5),e.Oqu(t.associatedCmdDeviceName),e.xp6(11),e.Q6J("ngForOf",t.deviceCoreCommand),e.xp6(2),e.Q6J("ngIf",t.selectedCmd)}}function Ne(i,c){if(1&i&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"span",7),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,61),e.qZA(),e.qZA(),e.TgZ(8,"div",62),e.TgZ(9,"h5",43),e._UZ(10,"i",63),e.TgZ(11,"span"),e.SDv(12,64),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(5),e.Oqu(t.associatedCmdDeviceName)}}let Ze=(()=>{class i{constructor(t,_){this.cmdSvc=t,this.metadataSvc=_,this.selectedCmd={},this.selectedCmdSetParams=[],this.parameterBearerList=[]}ngOnInit(){}ngOnChanges(){!this.deviceName||(this.resetResponse(),this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(this.deviceName).subscribe(t=>{this.associatedCmdDeviceName=t.deviceCoreCommand.deviceName,this.deviceCoreCommand=t.deviceCoreCommand.coreCommands,this.deviceCoreCommand&&0!==this.deviceCoreCommand.length&&(this.selectedCmd=this.deviceCoreCommand[0],this.selectedCmdSetParams=this.selectedCmd.parameters,this.setParameterBearerList(),this.getAssociatedDeviceProfile(t.deviceCoreCommand.profileName))}))}getAssociatedDeviceProfile(t){this.metadataSvc.findProfileByName(t).subscribe(_=>this.associateDeviceProfile=_.profile)}selectCmd(t){this.selectedCmd=t,this.selectedCmdSetParams=this.selectedCmd.parameters,this.resetResponse(),this.setParameterBearerList()}setParameterBearerList(){this.parameterBearerList=[],this.selectedCmdSetParams.forEach(t=>{this.parameterBearerList.push({key:t.resourceName,value:""})})}resetResponse(){this.cmdGetResponse="",this.cmdGetResponseRaw="",this.cmdSetResponse="",this.cmdSetResponseRaw="",this.cmdBinaryResponse=!0,this.cmdBinaryResponseURL=""}isBinaryResource(){let t=!1;return this.associateDeviceProfile.deviceResources.forEach(_=>{_.name!==this.selectedCmd.name||"Binary"!==_.properties.valueType||(t=!0)}),t||(this.associateDeviceProfile.deviceCommands.forEach(_=>{_.name===this.selectedCmd.name&&_.resourceOperations.forEach(o=>{this.associateDeviceProfile.deviceResources.forEach(s=>{o.deviceResource!==s.name||"Binary"!==s.properties.valueType||(t=!0)})})}),t)}issueGetCmd(){this.cmdSvc.issueGetCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(t=>{if(this.cmdGetResponseRaw=JSON.stringify(t.event.readings,null,3),this.isBinaryResource())return void(this.cmdGetResponse="Binary resource is not supported for preview");let _=[];t.event.readings.forEach(o=>{_.push(o.value)}),this.cmdGetResponse=_.join(",")})}issueGetCmdOfBinaryResource(){this.cmdSvc.issueGetBinaryCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(t=>{let _=CBOR.decode(t);"image/jpeg"===_.mediaType||"image/jpg"===_.mediaType||"image/png"===_.mediaType?(this.cmdBinaryResponse=_.binaryValue,this.cmdBinaryResponseURL=URL.createObjectURL(this.cmdBinaryResponse)):this.cmdBinaryResponse="only image binary is supported"})}issueSetCmd(){var t;let _={};this.parameterBearerList.forEach(o=>{_[o.key]=o.value}),this.cmdSvc.issueSetCmd(this.associatedCmdDeviceName,null===(t=this.selectedCmd)||void 0===t?void 0:t.name,_).subscribe(o=>{this.cmdSetResponseRaw=JSON.stringify(o,null,3),this.cmdSetResponse=o.message})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.V),e.Y36(D.D))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-command-viewer"]],inputs:{deviceName:"deviceName"},features:[e.TTD],decls:5,vars:3,consts:function(){let c,t,_,o,s,a,g,I,p,m,O,v;return c="\u76F8\u5173\u547D\u4EE4",t=" \u547D\u4EE4\u5217\u8868 ",_="Get \u548C Set",o="\u54CD\u5E94\uFF1A",s="\u539F\u59CB\u54CD\u5E94\uFF1A",a="\u6CA1\u6709Get\u65B9\u6CD5",g="\u54CD\u5E94\uFF1A",I="\u539F\u59CB\u54CD\u5E94\uFF1A",p="\u53C2\u6570\u8BBE\u7F6E",m="\u6CA1\u6709Set\u65B9\u6CD5",O="\u76F8\u5173\u547D\u4EE4",v="\u6CA1\u6709\u76F8\u5173\u547D\u4EE4",[[4,"ngIf","ngIfThen","ngIfElse"],["hasAssociatedCommand",""],["noAssociatedCommand",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"text-primary","mx-2","font-weight-bold"],c,[1,"card-body"],[1,"row"],[1,"col-md-2","col-lg-2"],[1,"card","mb-2"],[1,"card-header","font-weight-bold"],t,[1,"card-body","p-0"],[1,"list-group","list-group-flush"],["role","button","class","list-group-item list-group-item-action",3,"list-group-item-info","click",4,"ngFor","ngForOf"],[1,"col-md-10","col-lg-10"],["class","card",4,"ngIf"],["role","button",1,"list-group-item","list-group-item-action",3,"click"],[1,"card"],[1,"text-primary","font-weight-bold","mr-2"],[1,"fa","fa-thumb-tack","text-danger","mr-1"],_,[1,"card-body","px-2"],[1,"col-md-5","col-lg-5"],["class","btn btn-primary btn-sm float-right",3,"click",4,"ngIf"],[1,"card-body","overflow-auto"],["hasGetMethod",""],["noGetMethod",""],[1,"col-md-7","col-lg-7"],["hasSetMethod",""],["noSetMethod",""],[1,"btn","btn-primary","btn-sm","float-right",3,"click"],[1,"badge","badge-info"],o,["class","ml-2 text-primary",4,"ngIf"],[1,"mt-3"],s,["class","mt-2 bg-secondary p-2 text-light rounded",4,"ngIf"],[1,"ml-2","text-primary"],[1,"mt-2","bg-secondary","p-2","text-light","rounded"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],a,["class","card mb-2",4,"ngIf"],g,I,p,["class","d-flex flex-column bd-highlight",4,"ngIf"],[1,"d-flex","flex-column","bd-highlight"],["class","form p-2 bd-highlight",4,"ngFor","ngForOf"],[1,"form","p-2","bd-highlight"],[4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[3,"for"],[1,"custom-select","custom-select-sm",3,"id","name","ngModel","ngModelChange"],[3,"ngValue"],[1,"form-control","form-control-sm",3,"id","name","ngModel","placeholder","ngModelChange"],m,O,[1,"card-body","text-center"],[1,"fa","fa-warning"],v]},template:function(t,_){if(1&t&&(e.YNc(0,A,1,0,"div",0),e.YNc(1,he,19,3,"ng-template",null,1,e.W1O),e.YNc(3,Ne,13,1,"ng-template",null,2,e.W1O)),2&t){const o=e.MAs(2),s=e.MAs(4);e.Q6J("ngIf",_.deviceCoreCommand)("ngIfThen",o)("ngIfElse",s)}},directives:[n.O5,n.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,l.Fj],styles:[""]}),i})();function Oe(i,c){if(1&i&&(e.TgZ(0,"span"),e.TgZ(1,"span",67),e.SDv(2,68),e.qZA(),e.TgZ(3,"span",69),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,70),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(4),e.Oqu(t.associatedSvcName)}}function Ve(i,c){if(1&i&&(e.TgZ(0,"span"),e.TgZ(1,"span",67),e.SDv(2,71),e.qZA(),e.TgZ(3,"span",69),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,72),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(4),e.Oqu(t.associatedProfileName)}}function Le(i,c){1&i&&(e.TgZ(0,"span"),e.SDv(1,73),e.qZA())}function Re(i,c){if(1&i&&(e.TgZ(0,"span",85),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.adminState)}}function be(i,c){if(1&i&&(e.TgZ(0,"span",86),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.adminState)}}function $e(i,c){if(1&i&&(e.TgZ(0,"span",85),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.operatingState,"")}}function xe(i,c){if(1&i&&(e.TgZ(0,"span",86),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.operatingState,"")}}function qe(i,c){if(1&i&&(e.TgZ(0,"span",86),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.operatingState,"")}}const ye=function(i){return{profileName:i}};function we(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",23),e.NdJ("click",function(o){const a=e.CHM(t).$implicit;return e.oxw().selectOne(o,a)}),e.qZA(),e.qZA(),e.TgZ(3,"td",74),e._uU(4),e.qZA(),e.TgZ(5,"td",74),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e.TgZ(12,"span",75),e.YNc(13,Re,2,1,"span",76),e.YNc(14,be,2,1,"span",77),e.qZA(),e.qZA(),e.TgZ(15,"td",78),e.TgZ(16,"span",75),e.YNc(17,$e,2,1,"span",76),e.YNc(18,xe,2,1,"span",79),e.YNc(19,qe,2,1,"span",77),e.qZA(),e.qZA(),e.TgZ(20,"td",78),e.TgZ(21,"span",80),e.NdJ("click",function(){const s=e.CHM(t).$implicit,a=e.oxw();return a.setSpecialFeatureViewer(s,a.FEATURE_COMMAND)}),e._UZ(22,"i",81),e.qZA(),e.qZA(),e.TgZ(23,"td",78),e.TgZ(24,"span",80),e.NdJ("click",function(){const s=e.CHM(t).$implicit,a=e.oxw();return a.setSpecialFeatureViewer(s,a.FEATURE_AUTOEVENT)}),e._UZ(25,"i",82),e.qZA(),e.qZA(),e.TgZ(26,"td"),e.TgZ(27,"a",83),e._uU(28),e.qZA(),e.qZA(),e.TgZ(29,"td"),e.TgZ(30,"a",84),e._uU(31),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit,_=e.oxw();e.ekj("table-active",_.isChecked(t.id)||_.specialFeatureAssociatedDeviceName===t.name),e.xp6(2),e.Q6J("checked",_.isChecked(t.id)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.description),e.xp6(2),e.Oqu(t.labels),e.xp6(2),e.Q6J("ngSwitch",t.adminState),e.xp6(1),e.Q6J("ngSwitchCase","UNLOCKED"),e.xp6(3),e.Q6J("ngSwitch",t.operatingState),e.xp6(1),e.Q6J("ngSwitchCase","UP"),e.xp6(1),e.Q6J("ngSwitchCase","DOWN"),e.xp6(3),e.ekj("badge-danger",_.specialFeatureName===_.FEATURE_COMMAND&&_.specialFeatureAssociatedDeviceName===t.name),e.xp6(3),e.ekj("badge-danger",_.specialFeatureName===_.FEATURE_AUTOEVENT&&_.specialFeatureAssociatedDeviceName===t.name),e.xp6(3),e.Q6J("queryParams",e.VKq(19,ye,t.profileName)),e.xp6(1),e.Oqu(t.profileName),e.xp6(3),e.Oqu(t.serviceName)}}function Ge(i,c){if(1&i&&(e.TgZ(0,"tr"),e.TgZ(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e.TgZ(4,"span",99),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"td"),e.TgZ(7,"span",100),e._uU(8),e.qZA(),e.qZA(),e.qZA()),2&i){const t=c.$implicit;e.xp6(2),e.Oqu(t.sourceName),e.xp6(3),e.Oqu(t.interval),e.xp6(3),e.Oqu(t.onChange)}}function Xe(i,c){if(1&i&&(e.TgZ(0,"div"),e.TgZ(1,"div",89),e.TgZ(2,"div",90),e.TgZ(3,"span",91),e._UZ(4,"i",82),e.qZA(),e.TgZ(5,"span",92),e._uU(6),e.qZA(),e.TgZ(7,"span"),e.SDv(8,93),e.qZA(),e.qZA(),e.TgZ(9,"div",94),e.TgZ(10,"div",19),e.TgZ(11,"table",20),e.TgZ(12,"thead",21),e.TgZ(13,"th",22),e.SDv(14,95),e.qZA(),e.TgZ(15,"th",22),e.SDv(16,96),e.qZA(),e.TgZ(17,"th",22),e.SDv(18,97),e.qZA(),e.qZA(),e.TgZ(19,"tbody"),e.YNc(20,Ge,9,3,"tr",98),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw(2);e.xp6(6),e.hij(" ",t.specialFeatureAssociatedDeviceName,""),e.xp6(14),e.Q6J("ngForOf",t.autoEvents)}}function Ue(i,c){if(1&i&&(e.TgZ(0,"div",89),e.TgZ(1,"div",90),e.TgZ(2,"span",91),e._UZ(3,"i",82),e.qZA(),e.TgZ(4,"span",92),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,101),e.qZA(),e.qZA(),e.TgZ(8,"div",102),e.TgZ(9,"h5",103),e._UZ(10,"i",58),e.TgZ(11,"span"),e.SDv(12,104),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw(2);e.xp6(5),e.hij(" ",t.specialFeatureAssociatedDeviceName,"")}}function Fe(i,c){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Xe,21,2,"div",87),e.YNc(2,Ue,13,1,"ng-template",null,88,e.W1O),e.qZA()),2&i){const t=e.MAs(3),_=e.oxw();e.xp6(1),e.Q6J("ngIf",_.autoEvents)("ngIfElse",t)}}function ke(i,c){if(1&i&&(e.TgZ(0,"div"),e._UZ(1,"app-device-command-viewer",105),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("deviceName",t.specialFeatureAssociatedDeviceName)}}let Je=(()=>{class i{constructor(t,_,o,s){this.metaSvc=t,this.msgSvc=_,this.route=o,this.router=s,this.toolbars=!0,this.enableSelectAll=!0,this.deviceList=[],this.associatedSvcName="",this.associatedProfileName="",this.selectedDevice=[],this.FEATURE_AUTOEVENT="autoevent",this.FEATURE_COMMAND="command",this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(t=>t.svcName?(this.associatedSvcName=t.svcName,void this.getDeviceListByAssociatedSvc(this.associatedSvcName)):t.profileName?(this.associatedProfileName=t.profileName,void this.getDeviceListByAssociatedProfile(this.associatedProfileName)):(this.associatedSvcName="",this.associatedProfileName="",void this.getDeviceListPagination()))}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},250)}getDeviceList(){""===this.associatedSvcName?""===this.associatedProfileName?this.getDeviceListPagination():this.getDeviceListByAssociatedProfile(this.associatedSvcName):this.getDeviceListByAssociatedSvc(this.associatedSvcName)}getDeviceListByAssociatedSvc(t){this.metaSvc.findDevicesByServiceName(this.pageOffset,this.pageLimit,t).subscribe(_=>this.deviceList=_.devices)}getDeviceListByAssociatedProfile(t){this.metaSvc.findDevicesByProfileName(this.pageOffset,this.pageLimit,t).subscribe(_=>this.deviceList=_.devices)}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.deviceList=t.devices})}refresh(){this.associatedProfileName="",this.associatedSvcName="",this.metaSvc.allDevicesPagination(0,this.pageLimit).subscribe(t=>{this.deviceList=t.devices,this.msgSvc.success("refresh"),this.resetPagination()})}edit(){this.router.navigate(["../edit-device"],{relativeTo:this.route,queryParams:{deviceName:this.selectedDevice[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedDevice.forEach((t,_)=>{this.metaSvc.deleteOneDeviceByName(t.name).subscribe(()=>{this.selectedDevice.splice(_,1),this.deviceList.forEach((o,s)=>{if(o.id===t.id)return this.deviceList.splice(s,1),void this.msgSvc.success("remove device ",` Name: ${o.name}`)})})}),this.specialFeatureName=void 0,$("#deleteConfirmDialog").modal("hide")}setSpecialFeatureViewer(t,_){switch(this.specialFeatureAssociatedDeviceName=t.name,this.specialFeatureName=_,this.specialFeatureName){case this.FEATURE_AUTOEVENT:this.autoEvents=t.autoEvents}}isCheckedAll(){let t=!0;return this.deviceList&&0===this.deviceList.length&&(t=!1),this.deviceList.forEach(_=>{-1===this.selectedDevice.findIndex(o=>o.name===_.name)&&(t=!1)}),t}selectAll(t){this.deviceList.forEach(t.target.checked?o=>{-1===this.selectedDevice.findIndex(s=>s.name===o.name)&&this.selectedDevice.push(o)}:o=>{this.selectedDevice.forEach((s,a)=>{s.name===o.name&&this.selectedDevice.splice(a,1)})})}isChecked(t){return this.selectedDevice.findIndex(_=>_.id===t)>=0}selectOne(t,_){t.target.checked?this.selectedDevice.push(_):this.selectedDevice.forEach((s,a)=>{s.name===_.name&&this.selectedDevice.splice(a,1)})}onPageSelected(){this.resetPagination(),this.getDeviceList()}prePage(){this.setPagination(-1),this.getDeviceList()}nextPage(){this.setPagination(1),this.getDeviceList()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D),e.Y36(b.e),e.Y36(C.gz),e.Y36(C.F0))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-list"]],inputs:{toolbars:"toolbars",enableSelectAll:"enableSelectAll"},decls:98,vars:12,consts:function(){let c,t,_,o,s,a,g,I,p,m,O,v,M,x,h,N,se,ae,le,re,Ee,de,Te,ge,Ce,Ae,pe,ue,fe,me,De,ve;return c="\u5237\u65B0",t="\u6DFB\u52A0",_="\u7F16\u8F91",o="\u5220\u9664",s="ID",a="\u540D\u5B57",g="\u63CF\u8FF0",I="\u6807\u7B7E",p="\u7BA1\u7406\u72B6\u6001",m="\u64CD\u4F5C\u72B6\u6001",O="\u547D\u4EE4",v="\u81EA\u52A8\u91C7\u96C6",M="\u76F8\u5173\u8BBE\u5907\u5143\u4FE1\u606F",x="\u76F8\u5173\u8BBE\u5907\u670D\u52A1",h="\u6BCF\u9875\u6761\u76EE",N="\u4E0A\u4E00\u9875",se="\u4E0B\u4E00\u9875",ae="\u8B66\u544A",le="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",re="\u53D6\u6D88",Ee="\u786E\u8BA4",de="\u8BBE\u5907\u670D\u52A1",Te="\u76F8\u5173\u8BBE\u5907\u5217\u8868",ge="\u8BBE\u5907\u5143\u4FE1\u606F",Ce="\u76F8\u5173\u8BBE\u5907\u5217\u8868",Ae="\u8BBE\u5907\u5217\u8868",pe="\u76F8\u5173\u81EA\u52A8\u91C7\u96C6",ue="\u8D44\u6E90",fe="\u5355\u4F4D\u95F4\u9694",me="Onchange",De="\u76F8\u5173\u81EA\u52A8\u91C7\u96C6",ve="\u65E0\u76F8\u5173\u81EA\u52A8\u91C7\u96C6",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],[4,"ngIf"],[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["data-testid","device-list-refresh-btn",1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],c,["type","button","routerLink","../add-device",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],t,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],_,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],o,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],s,a,g,I,p,m,O,v,M,x,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],h,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],N,[1,"page-item"],se,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],ae,[1,"modal-body"],le,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],re,["type","button",1,"btn","btn-danger",3,"click"],Ee,[1,"mr-1"],de,[1,"text-danger","mr-1"],Te,ge,Ce,Ae,[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"fa","fa-calendar-check-o","font-weight-bolder"],["routerLink","../../device-profile-center",3,"queryParams"],["routerLink","../../device-service-list"],[1,"badge","badge-success"],[1,"badge","badge-danger"],[4,"ngIf","ngIfElse"],["noAutoEvents",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"text-primary","mx-2","font-weight-bold"],pe,[1,"card-body","p-0"],ue,fe,me,[4,"ngFor","ngForOf"],[1,"badge","badge-secondary","badge-pill"],[1,""],De,[1,"card-body","text-center"],[1,"text-warning"],ve,[3,"deviceName"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.YNc(3,Oe,7,1,"span",3),e.YNc(4,Ve,7,1,"span",3),e.YNc(5,Le,2,0,"span",3),e.qZA(),e.TgZ(6,"div",4),e.TgZ(7,"div",5),e.TgZ(8,"div",6),e.TgZ(9,"button",7),e.NdJ("click",function(){return _.refresh()}),e.TgZ(10,"span"),e._UZ(11,"i",8),e.TgZ(12,"span"),e.SDv(13,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"button",10),e.TgZ(15,"span"),e._UZ(16,"i",11),e.TgZ(17,"span"),e.SDv(18,12),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"button",13),e.NdJ("click",function(){return _.edit()}),e.TgZ(20,"span"),e._UZ(21,"i",14),e.TgZ(22,"span"),e.SDv(23,15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"button",16),e.NdJ("click",function(){return _.deleteConfirm()}),e.TgZ(25,"span"),e._UZ(26,"i",17),e.TgZ(27,"span"),e.SDv(28,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"div",19),e.TgZ(30,"table",20),e.TgZ(31,"thead",21),e.TgZ(32,"tr"),e.TgZ(33,"th",22),e.TgZ(34,"input",23),e.NdJ("click",function(s){return _.selectAll(s)}),e.qZA(),e.qZA(),e.TgZ(35,"th",22),e.SDv(36,24),e.qZA(),e.TgZ(37,"th",22),e.SDv(38,25),e.qZA(),e.TgZ(39,"th",22),e.SDv(40,26),e.qZA(),e.TgZ(41,"th",22),e.SDv(42,27),e.qZA(),e.TgZ(43,"th",22),e.SDv(44,28),e.qZA(),e.TgZ(45,"th",22),e.SDv(46,29),e.qZA(),e.TgZ(47,"th",22),e.SDv(48,30),e.qZA(),e.TgZ(49,"th",22),e.SDv(50,31),e.qZA(),e.TgZ(51,"th",22),e.SDv(52,32),e.qZA(),e.TgZ(53,"th",22),e.SDv(54,33),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"tbody"),e.YNc(56,we,32,21,"tr",34),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(57,"div",35),e.TgZ(58,"nav",36),e.TgZ(59,"ul",37),e.TgZ(60,"li",38),e.TgZ(61,"span",39),e.SDv(62,40),e.qZA(),e.qZA(),e.TgZ(63,"li",41),e.TgZ(64,"select",42),e.NdJ("ngModelChange",function(s){return _.pageLimit=s})("ngModelChange",function(){return _.onPageSelected()}),e.TgZ(65,"option",43),e._uU(66,"5"),e.qZA(),e.TgZ(67,"option",44),e._uU(68,"10"),e.qZA(),e.TgZ(69,"option",45),e._uU(70,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(71,"li",46),e.TgZ(72,"button",47),e.NdJ("click",function(){return _.prePage()}),e._UZ(73,"i",48),e.TgZ(74,"span"),e.SDv(75,49),e.qZA(),e.qZA(),e.qZA(),e.TgZ(76,"li",50),e.TgZ(77,"button",47),e.NdJ("click",function(){return _.nextPage()}),e.TgZ(78,"span"),e.SDv(79,51),e.qZA(),e._UZ(80,"i",52),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(81,Fe,4,2,"div",3),e.YNc(82,ke,2,1,"div",3),e.TgZ(83,"div",53),e.TgZ(84,"div",54),e.TgZ(85,"div",55),e.TgZ(86,"div",56),e.TgZ(87,"h5",57),e._UZ(88,"i",58),e.TgZ(89,"span"),e.SDv(90,59),e.qZA(),e.qZA(),e.qZA(),e.TgZ(91,"div",60),e.SDv(92,61),e.qZA(),e.TgZ(93,"div",62),e.TgZ(94,"button",63),e.SDv(95,64),e.qZA(),e.TgZ(96,"button",65),e.NdJ("click",function(){return _.delete()}),e.SDv(97,66),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngIf",""!==_.associatedSvcName),e.xp6(1),e.Q6J("ngIf",""!==_.associatedProfileName),e.xp6(1),e.Q6J("ngIf",""===_.associatedProfileName&&""===_.associatedSvcName),e.xp6(14),e.Q6J("disabled",1!==_.selectedDevice.length),e.xp6(5),e.Q6J("disabled",0===_.selectedDevice.length),e.xp6(10),e.Q6J("checked",_.isCheckedAll()),e.xp6(22),e.Q6J("ngForOf",_.deviceList),e.xp6(8),e.Q6J("ngModel",_.pageLimit),e.xp6(8),e.Q6J("disabled",1===_.pagination),e.xp6(5),e.Q6J("disabled",_.pageLimit>_.deviceList.length),e.xp6(4),e.Q6J("ngIf",_.specialFeatureName===_.FEATURE_AUTOEVENT),e.xp6(1),e.Q6J("ngIf",_.specialFeatureName===_.FEATURE_COMMAND))},directives:[n.O5,C.rH,n.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,n.RF,n.n9,n.ED,C.yS,Ze],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();class ze{constructor(){this.Schema="",this.Host="",this.Port="",this.User="",this.Password="",this.ClientId="",this.CommandTopic=""}}class Ye{constructor(){this.Address="",this.Port="",this.UnitID="",this.Timeout="",this.IdleTimeout=""}}class Qe{constructor(){this.Address="",this.UnitID="",this.BaudRate="",this.DataBits="",this.StopBits="",this.Parity="",this.Timeout="",this.IdleTimeout=""}}class Be{constructor(){this.Address="",this.Port=""}}class We{constructor(){this.Address="",this.Port="",this.MACAddress=""}}class He{constructor(){this.host="",this.port=""}}function je(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",10),e.TgZ(1,"span",11),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_BUILT_IN)}),e._UZ(2,"i",12),e.TgZ(3,"span"),e.SDv(4,13),e.qZA(),e.qZA(),e.TgZ(5,"span",14),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_CUSTOM)}),e._UZ(6,"i",12),e.TgZ(7,"span"),e.SDv(8,15),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.ekj("badge-primary",t.protocolTemplateMode===t.TEMPLATE_BUILT_IN)("badge-secondary",t.protocolTemplateMode!==t.TEMPLATE_BUILT_IN),e.xp6(1),e.ekj("fa-check-square",t.protocolTemplateMode===t.TEMPLATE_BUILT_IN),e.xp6(3),e.ekj("badge-primary",t.protocolTemplateMode===t.TEMPLATE_CUSTOM)("badge-secondary",t.protocolTemplateMode!==t.TEMPLATE_CUSTOM),e.xp6(1),e.ekj("fa-check-square",t.protocolTemplateMode===t.TEMPLATE_CUSTOM)}}function Ke(i,c){1&i&&e._UZ(0,"div")}function et(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",34),e.TgZ(2,"div",35),e.TgZ(3,"div",36),e.TgZ(4,"span",37),e.SDv(5,38),e.qZA(),e.qZA(),e._UZ(6,"input",39),e.qZA(),e.TgZ(7,"div",40),e._UZ(8,"i",41),e.qZA(),e.TgZ(9,"div",35),e.TgZ(10,"div",36),e.TgZ(11,"span",37),e.SDv(12,42),e.qZA(),e.qZA(),e.TgZ(13,"input",43),e.NdJ("ngModelChange",function(o){const a=e.CHM(t).$implicit;return e.oxw(4).builtinProtocolTemplateSelected[a]=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit,_=e.oxw(4);e.xp6(6),e.Q6J("value",t),e.xp6(7),e.Q6J("ngModel",_.builtinProtocolTemplateSelected[t])}}function tt(i,c){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,et,14,2,"div",33),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.builtinProtocolTemplateProperties)}}function _t(i,c){1&i&&(e.TgZ(0,"h5",48),e._UZ(1,"i",49),e.TgZ(2,"span"),e.SDv(3,50),e.qZA(),e.qZA())}function it(i,c){if(1&i&&(e.TgZ(0,"div"),e._UZ(1,"span",44),e.TgZ(2,"span",45),e.SDv(3,46),e.qZA(),e.qZA(),e.YNc(4,_t,4,0,"h5",47)),2&i){const t=e.oxw(3);e.xp6(4),e.Q6J("ngIf",0===t.builtinProtocolTemplateProperties.length&&t.builtinProtocolName)}}function nt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.TgZ(2,"form"),e.TgZ(3,"div",18),e.TgZ(4,"label"),e.SDv(5,19),e.qZA(),e.TgZ(6,"select",20),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).builtinProtocolName=o})("ngModelChange",function(){return e.CHM(t),e.oxw(2).onSelectBuiltinProtocolTemplate()}),e.TgZ(7,"option",21),e._uU(8,"device-mqtt"),e.qZA(),e.TgZ(9,"option",22),e._uU(10,"device-rest"),e.qZA(),e.TgZ(11,"option",23),e._uU(12,"device-virtual"),e.qZA(),e.TgZ(13,"option",24),e._uU(14,"device-modbus-tcp"),e.qZA(),e.TgZ(15,"option",25),e._uU(16,"device-modbus-rtu"),e.qZA(),e.TgZ(17,"option",26),e._uU(18,"device-onvif-camera"),e.qZA(),e.TgZ(19,"option",27),e._uU(20,"device-rfid-llrp"),e.qZA(),e.qZA(),e.TgZ(21,"div",28),e.TgZ(22,"small"),e.SDv(23,29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",30),e.YNc(25,tt,2,1,"div",31),e.YNc(26,it,5,1,"ng-template",null,32,e.W1O),e.qZA(),e.qZA()}if(2&i){const t=e.MAs(27),_=e.oxw(2);e.xp6(6),e.ekj("is-invalid",!_.builtinProtocolName)("is-valid",_.builtinProtocolName),e.Q6J("ngModel",_.builtinProtocolName),e.xp6(19),e.Q6J("ngIf",0!==_.builtinProtocolTemplateProperties.length)("ngIfElse",t)}}function ot(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",34),e.TgZ(2,"div",35),e.TgZ(3,"div",36),e.TgZ(4,"span",37),e.SDv(5,60),e.qZA(),e.qZA(),e.TgZ(6,"input",61),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.propertyName=o}),e.qZA(),e.qZA(),e.TgZ(7,"div",40),e._UZ(8,"i",41),e.qZA(),e.TgZ(9,"div",35),e.TgZ(10,"div",36),e.TgZ(11,"span",37),e.SDv(12,62),e.qZA(),e.qZA(),e.TgZ(13,"input",63),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.propertyValue=o}),e.qZA(),e.qZA(),e.TgZ(14,"div",64),e.TgZ(15,"button",65),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(3).removeCustomProtocolProperty(s)}),e._UZ(16,"i",66),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit;e.xp6(6),e.Q6J("ngModel",t.propertyName),e.xp6(7),e.Q6J("ngModel",t.propertyValue)}}function ct(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",51),e.TgZ(2,"div",18),e.TgZ(3,"label"),e.SDv(4,52),e.qZA(),e.TgZ(5,"input",53),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).customProtocolName=o})("ngModelChange",function(){return e.CHM(t),e.oxw(2).onCustomProtocolNameChange()}),e.qZA(),e.TgZ(6,"div",28),e.TgZ(7,"small"),e.SDv(8,54),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",55),e.TgZ(10,"div"),e.TgZ(11,"p",56),e._UZ(12,"span",57),e.TgZ(13,"span",58),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).addCustomProtocolProperty()}),e.SDv(14,59),e.qZA(),e.qZA(),e.qZA(),e.YNc(15,ot,17,2,"div",33),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(5),e.ekj("is-invalid",!t.customProtocolName)("is-valid",t.customProtocolName),e.Q6J("ngModel",t.customProtocolName),e.xp6(10),e.Q6J("ngForOf",t.customProtocolPropertyBearer)}}function st(i,c){if(1&i&&(e.TgZ(0,"div",0),e.TgZ(1,"div",4),e.YNc(2,je,9,12,"div",6),e.YNc(3,Ke,1,0,"div",7),e.YNc(4,nt,28,7,"ng-template",null,8,e.W1O),e.YNc(6,ct,16,6,"ng-template",null,9,e.W1O),e.qZA(),e.qZA()),2&i){const t=e.MAs(5),_=e.MAs(7),o=e.oxw();e.xp6(2),e.Q6J("ngIf",o.mode===o.MODE_ADD),e.xp6(1),e.Q6J("ngIf",o.protocolTemplateMode===o.TEMPLATE_CUSTOM)("ngIfThen",_)("ngIfElse",t)}}let K=(()=>{class i{constructor(){this.MODE_ADD="add",this.MODE_EDIT="edit",this.deviceProtocols={},this.isValid=!1,this.isValidChange=new e.vpe,this.TEMPLATE_CUSTOM="custom",this.TEMPLATE_BUILT_IN="built-in",this.customProtocolPropertyBearer=[],this.builtinProtocolTemplateProperties=[]}ngOnInit(){if(this.mode){if(this.mode==this.MODE_EDIT)return this.protocolTemplateMode=this.TEMPLATE_CUSTOM,this.extractProtocolName(),this.customProtocolName=this.protocolName?this.protocolName:"",void this.setCustomProtocolPropertysBearer();this.mode==this.MODE_ADD&&(this.protocolTemplateMode=this.TEMPLATE_BUILT_IN),this.validate()}}extractProtocolName(){!this.deviceProtocols||0===Object.keys(this.deviceProtocols).length||(this.protocolName=Object.keys(this.deviceProtocols)[0])}onSelectBuiltinProtocolTemplate(){switch(this.validate(),this.builtinProtocolName){case"mqtt":this.builtinProtocolTemplateSelected=new ze;break;case"modbus-tcp":this.builtinProtocolTemplateSelected=new Ye;break;case"modbus-rtu":this.builtinProtocolTemplateSelected=new Qe;break;case"other":this.builtinProtocolTemplateSelected=new Be;break;case"other-rest":this.builtinProtocolTemplateSelected={};break;case"Onvif":this.builtinProtocolTemplateSelected=new We;break;case"tcp":this.builtinProtocolTemplateSelected=new He;break;default:this.builtinProtocolTemplateSelected={}}this.builtinProtocolTemplateProperties=Object.keys(this.builtinProtocolTemplateSelected)}changeProtocolTemplateMode(t){this.protocolTemplateMode=t,this.validate()}onCustomProtocolNameChange(){this.validate()}setCustomProtocolPropertysBearer(){if(this.customProtocolName)for(const[t,_]of Object.entries(this.deviceProtocols[this.customProtocolName]))this.customProtocolPropertyBearer.push({propertyName:t,propertyValue:_})}addCustomProtocolProperty(){this.customProtocolPropertyBearer.push({propertyName:"",propertyValue:""})}removeCustomProtocolProperty(t){this.customProtocolPropertyBearer.splice(this.customProtocolPropertyBearer.indexOf(t),1)}getDeviceProtocols(){if(this.deviceProtocols={},this.protocolTemplateMode===this.TEMPLATE_BUILT_IN)this.deviceProtocols[this.builtinProtocolName]=Object.assign({},this.builtinProtocolTemplateSelected);else{let t={};this.customProtocolPropertyBearer.forEach(_=>{t[_.propertyName]=_.propertyValue}),this.deviceProtocols[this.customProtocolName]=t}return this.deviceProtocols}validate(){switch(this.isValid=!0,this.protocolTemplateMode){case this.TEMPLATE_BUILT_IN:this.builtinProtocolName||(this.isValid=!1);break;default:this.customProtocolName||(this.isValid=!1)}this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-protocol"]],inputs:{mode:"mode",deviceProtocols:"deviceProtocols",isValid:"isValid"},outputs:{isValidChange:"isValidChange"},decls:7,vars:1,consts:function(){let c,t,_,o,s,a,g,I,p,m,O,v,M,x;return c="\u8BBE\u5907\u534F\u8BAE",t="\u53EF\u5229\u7528\u7684\u534F\u8BAE\u6A21\u677F",_="\u81EA\u5B9A\u4E49\u534F\u8BAE\u6A21\u677F",o="\u534F\u8BAE\u540D\u5B57",s="\u534F\u8BAE\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",a="PropertyName",g="PropertyVaule",I=" all built-in protocol templates refer to the device service released by edgex, such as device-virtual, device-rest, device-mqtt, device-modbus ",p="\u8BE5\u8BBE\u5907\u670D\u52A1\u4E0D\u9700\u8981\u8BBE\u7F6E\u901A\u4FE1\u534F\u8BAE",m="\u534F\u8BAE\u540D\u5B57",O="\u534F\u8BAE\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",v="\u6DFB\u52A0\u534F\u8BAE\u5C5E\u6027",M="PropertyName",x="PropertyValue",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],c,[1,"card-body"],["class","card",4,"ngIf"],["class","mb-2",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["builtinProtocolTemplate",""],["customProtocolTemplate",""],[1,"mb-2"],["role","button",1,"user-select-none","badge","font-weight-bold","mr-3",3,"click"],[1,"fa","fa-square-o","mr-1"],t,["role","button",1,"user-select-none","badge","font-weight-bold",3,"click"],_,[1,"row","border","border-secondary","p-2","rounded-lg","mx-1"],[1,"col-md-2","border-right","border-info"],[1,"form-group"],o,["type","text","name","builtinProtocolName","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","mqtt"],["value","other-rest"],["value","other"],["value","modbus-tcp"],["value","modbus-rtu"],["value","Onvif"],["value","tcp"],[1,"invalid-feedback"],s,[1,"col-md-10"],[4,"ngIf","ngIfElse"],["noBuiltinProperties",""],[4,"ngFor","ngForOf"],[1,"form-inline","mb-1"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],a,["type","text","disabled","",1,"form-control",2,"width","300px",3,"value"],[1,"form-group","mx-2"],[1,"fa","fa-long-arrow-right"],g,["type","text","name","property",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"fa","fa-info-circle","fa-lg","text-success","font-weight-bold","mr-1"],[1,"text-muted"],I,["class","text-warning",4,"ngIf"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],p,[1,"col-md-2","col-lg-2","border-right","border-secondary"],m,["type","text","name","customProtocolName",1,"form-control",3,"ngModel","ngModelChange"],O,[1,"col-md-10","col-lg-10"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],v,M,["type","text","name","propertyName",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],x,["type","text","name","PropertyValue",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.YNc(6,st,8,4,"div",5),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",_.mode))},directives:[n.O5,l._Y,l.JL,l.F,l.EJ,l.Q7,l.JJ,l.On,l.YN,l.Kr,n.sg,l.Fj],styles:[""]}),i})();var ee=T(4889);function at(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",35),e.NdJ("click",function(o){const a=e.CHM(t).$implicit;return e.oxw().selectOneSvc(o,a.name)}),e.qZA(),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.ALo(15,"date"),e.qZA(),e.TgZ(16,"td"),e._uU(17),e.ALo(18,"date"),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit,_=e.oxw();e.ekj("table-active",_.isSvcChecked(t.name)),e.xp6(2),e.Q6J("checked",_.isSvcChecked(t.name)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.description),e.xp6(2),e.Oqu(t.labels),e.xp6(2),e.Oqu(t.adminState),e.xp6(2),e.Oqu(e.xi3(15,10,t.created,"yyyy-MM-dd hh:mm:ss")),e.xp6(3),e.Oqu(e.xi3(18,13,t.modified,"yyyy-MM-dd hh:mm:ss"))}}let ne=(()=>{class i{constructor(t){this.metaSvc=t,this.singleDeviceSvcSelectedEvent=new e.vpe,this.deviceServiceList=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllDeviceSvcPagination()}findAllDeviceSvcPagination(){this.metaSvc.findAllDeviceServicesPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.deviceServiceList=t.services})}onSingleDeviceSvcSelectedEmitter(){this.singleDeviceSvcSelectedEvent.emit(this.deviceSvcSelected)}isSvcChecked(t){var _;return(null===(_=this.deviceSvcSelected)||void 0===_?void 0:_.name)===t}selectOneSvc(t,_){let s=this;t.target.checked?this.deviceServiceList.forEach(function(a){a.name===_&&(s.deviceSvcSelected=a)}):this.deviceSvcSelected=void 0,this.onSingleDeviceSvcSelectedEmitter()}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceSvcPagination()}prePage(){this.setPagination(-1),this.findAllDeviceSvcPagination()}nextPage(){this.setPagination(1),this.findAllDeviceSvcPagination()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-service-list"]],inputs:{deviceSvcSelected:"deviceSvcSelected"},outputs:{singleDeviceSvcSelectedEvent:"singleDeviceSvcSelectedEvent"},decls:52,vars:4,consts:function(){let c,t,_,o,s,a,g,I,p,m,O;return c="\u8BBE\u5907\u670D\u52A1\u5217\u8868",t="ID",_="\u540D\u5B57",o="\u63CF\u8FF0",s="\u6807\u7B7E",a="\u7BA1\u7406\u72B6\u6001",g="\u521B\u5EFA\u65F6\u95F4",I="\u4FEE\u6539\u65F6\u95F4",p="\u6BCF\u9875\u6761\u76EE",m="\u4E0A\u4E00\u9875",O="\u4E0B\u4E00\u9875",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","mr-2","text-danger"],c,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],t,_,o,s,a,g,I,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],p,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],m,[1,"page-item"],O,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"table",6),e.TgZ(8,"thead",7),e.TgZ(9,"tr"),e.TgZ(10,"th",8),e._uU(11,"#"),e.qZA(),e.TgZ(12,"th",8),e.SDv(13,9),e.qZA(),e.TgZ(14,"th",8),e.SDv(15,10),e.qZA(),e.TgZ(16,"th",8),e.SDv(17,11),e.qZA(),e.TgZ(18,"th",8),e.SDv(19,12),e.qZA(),e.TgZ(20,"th",8),e.SDv(21,13),e.qZA(),e.TgZ(22,"th",8),e.SDv(23,14),e.qZA(),e.TgZ(24,"th",8),e.SDv(25,15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"tbody"),e.YNc(27,at,19,16,"tr",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",17),e.TgZ(29,"nav",18),e.TgZ(30,"ul",19),e.TgZ(31,"li",20),e.TgZ(32,"span",21),e.SDv(33,22),e.qZA(),e.qZA(),e.TgZ(34,"li",23),e.TgZ(35,"select",24),e.NdJ("ngModelChange",function(s){return _.pageLimit=s})("ngModelChange",function(){return _.onPageSelected()}),e.TgZ(36,"option",25),e._uU(37,"5"),e.qZA(),e.TgZ(38,"option",26),e._uU(39,"10"),e.qZA(),e.TgZ(40,"option",27),e._uU(41,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"li",28),e.TgZ(43,"button",29),e.NdJ("click",function(){return _.prePage()}),e._UZ(44,"i",30),e.TgZ(45,"span"),e.SDv(46,31),e.qZA(),e.qZA(),e.qZA(),e.TgZ(47,"li",32),e.TgZ(48,"button",29),e.NdJ("click",function(){return _.nextPage()}),e.TgZ(49,"span"),e.SDv(50,33),e.qZA(),e._UZ(51,"i",34),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(27),e.Q6J("ngForOf",_.deviceServiceList),e.xp6(8),e.Q6J("ngModel",_.pageLimit),e.xp6(8),e.Q6J("disabled",1===_.pagination),e.xp6(5),e.Q6J("disabled",_.pageLimit>_.deviceServiceList.length))},directives:[n.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr],pipes:[n.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();var _e=T(2822);function lt(i,c){if(1&i&&(e.TgZ(0,"option",37),e._uU(1),e.qZA()),2&i){const t=c.$implicit;e.s9C("value",t),e.xp6(1),e.Oqu(t)}}function rt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",10),e.TgZ(1,"div",4),e.TgZ(2,"form"),e.TgZ(3,"div",11),e.TgZ(4,"label",12),e.SDv(5,13),e.qZA(),e.TgZ(6,"div",14),e.TgZ(7,"div",15),e.TgZ(8,"input",16),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.interval=o})("ngModelChange",function(){return e.CHM(t),e.oxw().onValueChange()}),e.qZA(),e.TgZ(9,"div",17),e.TgZ(10,"select",18),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.unit=o})("ngModelChange",function(){return e.CHM(t),e.oxw().onValueChange()}),e.TgZ(11,"option",19),e._uU(12,"millisecond"),e.qZA(),e.TgZ(13,"option",20),e._uU(14,"second"),e.qZA(),e.TgZ(15,"option",21),e._uU(16,"minute"),e.qZA(),e.TgZ(17,"option",22),e._uU(18,"hour"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",23),e.SDv(20,24),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",25),e.TgZ(22,"label",12),e.SDv(23,26),e.qZA(),e.TgZ(24,"div",14),e.TgZ(25,"select",27),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.onChange=o})("ngModelChange",function(){return e.CHM(t),e.oxw().onValueChange()}),e.TgZ(26,"option",28),e._uU(27,"true"),e.qZA(),e.TgZ(28,"option",29),e._uU(29,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",25),e.TgZ(31,"label",12),e.SDv(32,30),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"select",31),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.resource=o})("ngModelChange",function(){return e.CHM(t),e.oxw().onValueChange()}),e.YNc(35,lt,2,2,"option",32),e.qZA(),e.TgZ(36,"div",23),e.SDv(37,33),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"button",34),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().removeAutoEvent(s)}),e._UZ(39,"i",35),e.TgZ(40,"span"),e.SDv(41,36),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=c.$implicit,_=e.oxw();e.xp6(8),e.ekj("is-invalid",!_.eventIntervalNumType(t.interval))("is-valid",_.eventIntervalNumType(t.interval)),e.Q6J("ngModel",t.interval),e.xp6(2),e.Q6J("ngModel",t.unit),e.xp6(15),e.Q6J("ngModel",t.onChange),e.xp6(9),e.ekj("is-invalid",""===t.resource)("is-valid",""!==t.resource),e.Q6J("ngModel",t.resource),e.xp6(1),e.Q6J("ngForOf",_.autoEventResourceNameSet)}}let oe=(()=>{class i{constructor(){this.autoEvents=[],this.autoEventsChange=new e.vpe,this.isValid=!1,this.isValidChange=new e.vpe,this.autoEventDecoratorBearer=[],this.autoEventResourceNameSet=[]}ngOnInit(){}ngOnChanges(){this.resetAutoEventDecoratorBearer(),this.setAutoEventDecorator(this.autoEvents),this.setupAutoEventResourceNameSet(this.deviceProfile),this.resumeOriginalAutoEvents()}onValueChange(){this.resumeOriginalAutoEvents()}resetAutoEventDecoratorBearer(){this.autoEventDecoratorBearer.splice(0,this.autoEventDecoratorBearer.length)}addAutoEvent(){this.autoEventDecoratorBearer.push({interval:"",onChange:!1,resource:"",unit:"ms"}),this.resumeOriginalAutoEvents()}removeAutoEvent(t){this.autoEventDecoratorBearer.splice(this.autoEventDecoratorBearer.indexOf(t),1),this.resumeOriginalAutoEvents()}setupAutoEventResourceNameSet(t){!t||(this.autoEventResourceNameSet.splice(0,this.autoEventResourceNameSet.length),t.deviceResources.forEach((_,o)=>{this.autoEventResourceNameSet.push(_.name)}),t.deviceCommands.forEach((_,o)=>{this.autoEventResourceNameSet.push(_.name)}))}eventIntervalNumType(t){return!isNaN(t)&&parseFloat(t)===parseInt(t)}setAutoEventDecorator(t){!t||t.forEach(_=>{let o=0;-1!==_.interval.indexOf("ms")?o=_.interval.indexOf("ms"):-1!==_.interval.indexOf("s")?o=_.interval.indexOf("s"):-1!==_.interval.indexOf("m")?o=_.interval.indexOf("m"):-1!==_.interval.indexOf("h")&&(o=_.interval.indexOf("h")),this.autoEventDecoratorBearer.push({interval:_.interval.slice(0,o),onChange:!!_.onChange&&_.onChange,resource:_.sourceName,unit:_.interval.substring(o)})})}resumeOriginalAutoEvents(){this.autoEvents?this.autoEvents.splice(0,this.autoEvents.length):this.autoEvents=[],this.autoEventDecoratorBearer.forEach(t=>{this.autoEvents.push({interval:`${t.interval}${t.unit}`,onChange:!!t.onChange,sourceName:t.resource})}),this.validate(),this.autoEventsChange.emit(this.autoEvents)}validate(){this.isValid=!0,0!==this.autoEventDecoratorBearer.length&&this.autoEventDecoratorBearer.forEach(t=>{this.eventIntervalNumType(t.interval)&&""!==t.resource||(this.isValid=!1)}),this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-auto-event"]],inputs:{autoEvents:"autoEvents",deviceProfile:"deviceProfile",isValid:"isValid"},outputs:{autoEventsChange:"autoEventsChange",isValidChange:"isValidChange"},features:[e.TTD],decls:11,vars:1,consts:function(){let c,t,_,o,s,a,g,I;return c="\u81EA\u52A8\u91C7\u96C6",t="\u6DFB\u52A0\u66F4\u591A\u81EA\u52A8\u91C7\u96C6\u4E8B\u4EF6",_="\u5355\u4F4D\u95F4\u9694",o=" can only be a pure integer number ",s="onchange",a="\u8BBE\u5907\u8D44\u6E90",g=" resource can't be empty ",I="\u5220\u9664",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],c,[1,"card-body"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],t,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"form-group","row","has-validation"],[1,"col-md-2","col-form-label"],_,[1,"col-md-10"],[1,"input-group","mb-3",2,"width","250px"],["type","text","name","interval","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["name","eventIntervalUnit","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","ms"],["value","s"],["value","m"],["value","h"],[1,"invalid-feedback"],o,[1,"form-group","row"],s,["name","onchange",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],["value","true"],["value","false"],a,["name","resource","required","",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],g,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],I,[3,"value"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"p",5),e._UZ(7,"span",6),e.TgZ(8,"span",7),e.NdJ("click",function(){return _.addAutoEvent()}),e.SDv(9,8),e.qZA(),e.qZA(),e.YNc(10,rt,42,13,"div",9),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("ngForOf",_.autoEventDecoratorBearer))},directives:[n.sg,l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr],styles:[""]}),i})();function Et(i,c){1&i&&e._UZ(0,"i",33)}function dt(i,c){1&i&&e._UZ(0,"i",33)}function Tt(i,c){1&i&&e._UZ(0,"i",33)}function gt(i,c){1&i&&e._UZ(0,"i",33)}function Ct(i,c){1&i&&e._UZ(0,"i",33)}function At(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){return e.CHM(t),e.oxw().previous()}),e._UZ(1,"i",35),e.TgZ(2,"span"),e.SDv(3,36),e.qZA(),e.qZA()}}function pt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){return e.CHM(t),e.oxw().next()}),e.TgZ(1,"span"),e.SDv(2,38),e.qZA(),e._UZ(3,"i",39),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.stepStateLock())}}function ut(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().submit()}),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.stepStateLock())}}function ft(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",43),e.TgZ(1,"app-device-service-list",44),e.NdJ("singleDeviceSvcSelectedEvent",function(o){return e.CHM(t),e.oxw().onSingleDeviceSvcSelected(o)}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("deviceSvcSelected",t.selectedSvc)}}function mt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",43),e.TgZ(1,"app-device-profile-list",45),e.NdJ("singleProfileSelectedEvent",function(o){return e.CHM(t),e.oxw().onSingleProfileSelected(o)}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("singleProfileSelected",t.selectedProfile)("enableSelectAll",!1)("toolbars",!1)("associatedDeviceColumn",!1)}}function Dt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"form",46),e.TgZ(1,"div",47),e.TgZ(2,"label",48),e.SDv(3,49),e.qZA(),e.TgZ(4,"div",50),e.TgZ(5,"input",51),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().newDevice.name=o}),e.qZA(),e.TgZ(6,"div",52),e.TgZ(7,"small"),e.SDv(8,53),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",54),e.TgZ(10,"label",55),e.SDv(11,56),e.qZA(),e.TgZ(12,"div",50),e.TgZ(13,"input",57),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().newDevice.description=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",54),e.TgZ(15,"label",58),e.SDv(16,59),e.qZA(),e.TgZ(17,"div",50),e.TgZ(18,"input",60),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().deviceLabels=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",54),e.TgZ(20,"label",61),e.SDv(21,62),e.qZA(),e.TgZ(22,"div",50),e.TgZ(23,"select",63),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().newDevice.adminState=o}),e.TgZ(24,"option",64),e._uU(25,"UNLOCKED"),e.qZA(),e.TgZ(26,"option",65),e._uU(27,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(5),e.ekj("is-invalid",!t.newDevice.name)("is-valid",t.newDevice.name),e.Q6J("ngModel",t.newDevice.name),e.xp6(8),e.Q6J("ngModel",t.newDevice.description),e.xp6(5),e.Q6J("ngModel",t.deviceLabels),e.xp6(5),e.Q6J("ngModel",t.newDevice.adminState)}}function vt(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",30),e.TgZ(1,"div",1),e.TgZ(2,"span",66),e.SDv(3,67),e.qZA(),e.qZA(),e.TgZ(4,"div",31),e.TgZ(5,"app-device-auto-event",68),e.NdJ("autoEventsChange",function(o){return e.CHM(t),e.oxw().newDevice.autoEvents=o})("isValidChange",function(o){return e.CHM(t),e.oxw().isAutoEventsValid=o}),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(5),e.Q6J("deviceProfile",t.selectedProfile)("autoEvents",t.newDevice.autoEvents)("isValid",t.isAutoEventsValid)}}let St=(()=>{class i{constructor(t,_,o,s,a){this.metaSvc=t,this.msgSvc=_,this.errorSvc=o,this.router=s,this.route=a,this.deviceLabels="",this.currentStep=0,this.selectedClass="text-white rounded px-2 bg-success font-weight-bold",this.noSelectedClass="text-white rounded px-2 bg-secondary font-weight-bold",this.isProtocolValid=!1,this.isAutoEventsValid=!1,this.newDevice={adminState:"UNLOCKED",operatingState:"UP"}}ngOnInit(){}onSingleProfileSelected(t){this.selectedProfile=t}onSingleDeviceSvcSelected(t){this.selectedSvc=t}stepStateLock(){switch(this.currentStep){case 0:return void 0===this.selectedSvc;case 1:return void 0===this.selectedProfile;case 2:return!this.newDevice.name;case 3:return!this.isAutoEventsValid;case 4:return!this.isProtocolValid;default:return!1}}next(){this.currentStep+=1}previous(){this.currentStep=this.currentStep-1}submit(){var t,_,o;this.newDevice.labels=null===(t=this.deviceLabels)||void 0===t?void 0:t.split(","),this.newDevice.serviceName=null===(_=this.selectedSvc)||void 0===_?void 0:_.name,this.newDevice.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.newDevice.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.addDevice(this.newDevice).subscribe(s=>{this.errorSvc.handleErrorForAPI(s)||(this.msgSvc.success("Add device",`name: ${this.newDevice.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D),e.Y36(b.e),e.Y36(ee.T),e.Y36(C.F0),e.Y36(C.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-add-device"]],viewQuery:function(t,_){if(1&t&&e.Gf(K,5),2&t){let o;e.iGM(o=e.CRH())&&(_.deviceProtocols=o.first)}},decls:54,vars:22,consts:function(){let c,t,_,o,s,a,g,I,p,m,O,v,M,x,h;return c="\u8BBE\u5907\u6DFB\u52A0\u5411\u5BFC",t="\u9009\u62E9\u8BBE\u5907\u670D\u52A1",_="\u9009\u62E9\u8BBE\u5907\u5143\u4FE1\u606F",o="\u8BBE\u5907\u4FE1\u606F",s="\u521B\u5EFA\u81EA\u52A8\u4E8B\u4EF6",a="\u521B\u5EFA\u8BBE\u5907\u901A\u4FE1\u534F\u8BAE",g="\u4E0A\u4E00\u9875",I="\u4E0B\u4E00\u9875",p="\u63D0\u4EA4",m="\u540D\u5B57",O="\u8BBE\u5907\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",v="\u63CF\u8FF0",M="\u6807\u7B7E",x="\u7BA1\u7406\u72B6\u6001",h=" this step is optional, you can skip it then set it later in edit mode.",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-lightbulb-o","fa-lg","mr-2","text-danger"],[1,"text-secondary"],c,[1,"card-header","py-2"],["aria-label","breadcrumb",1,"mb-0","p-0"],[1,"breadcrumb","p-1","mb-0","bg-light"],[1,"breadcrumb-item"],[3,"ngClass"],t,["class","fa fa-check ml-1",4,"ngIf"],_,o,s,[1,"breadcrumb-item","active"],a,[1,"card-header","py-1"],["class","btn btn-info btn-sm",3,"click",4,"ngIf"],["class","btn btn-primary btn-sm float-right",3,"disabled","click",4,"ngIf","ngIfElse"],["stepDone",""],[1,"card-body","p-0"],[3,"ngSwitch"],[3,"ngSwitchCase"],["SelectDeviceService",""],["SelectDeviceProfile",""],["DevicePrimary",""],["CreateAutoEvent",""],["CreateDeviceProtocol",""],[1,"card","border-0"],[1,"card-body"],[3,"mode","isValid","isValidChange"],[1,"fa","fa-check","ml-1"],[1,"btn","btn-info","btn-sm",3,"click"],[1,"fa","fa-long-arrow-left","mr-1"],g,[1,"btn","btn-primary","btn-sm","float-right",3,"disabled","click"],I,[1,"fa","fa-long-arrow-right","ml-1"],[1,"btn","btn-success","btn-sm","ml-4","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],p,[1,"p-2"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"singleProfileSelected","enableSelectAll","toolbars","associatedDeviceColumn","singleProfileSelectedEvent"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","deviceName","required","",1,"col-md-2","col-form-label"],m,[1,"col-md-10"],["type","text","id","validationDeviceNameFeedback","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationDeviceNameFeedback",1,"invalid-feedback"],O,[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],v,["type","text","name","deviceDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","deviceLabels",1,"col-md-2","col-form-label"],M,["type","text","name","deviceLabels","placeholder","Multiple Labels are separated by commas: label1,label2,label3",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],x,["name","deviceAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],[1,"fa","fa-info-circle","text-warning","font-weight-bold"],h,[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(t,_){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"nav",7),e.TgZ(8,"ol",8),e.TgZ(9,"li",9),e.TgZ(10,"span",10),e.TgZ(11,"span"),e.SDv(12,11),e.qZA(),e.YNc(13,Et,1,0,"i",12),e.qZA(),e.qZA(),e.TgZ(14,"li",9),e.TgZ(15,"span",10),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.YNc(18,dt,1,0,"i",12),e.qZA(),e.qZA(),e.TgZ(19,"li",9),e.TgZ(20,"span",10),e.TgZ(21,"span"),e.SDv(22,14),e.qZA(),e.YNc(23,Tt,1,0,"i",12),e.qZA(),e.qZA(),e.TgZ(24,"li",9),e.TgZ(25,"span",10),e.TgZ(26,"span"),e.SDv(27,15),e.qZA(),e.YNc(28,gt,1,0,"i",12),e.qZA(),e.qZA(),e.TgZ(29,"li",16),e.TgZ(30,"span",10),e.TgZ(31,"span"),e.SDv(32,17),e.qZA(),e.YNc(33,Ct,1,0,"i",12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",18),e.YNc(35,At,4,0,"button",19),e.YNc(36,pt,4,1,"button",20),e.YNc(37,ut,4,1,"ng-template",null,21,e.W1O),e.qZA(),e.TgZ(39,"div",22),e.TgZ(40,"div",23),e.YNc(41,ft,2,1,"ng-template",24,25,e.W1O),e.YNc(43,mt,2,4,"ng-template",24,26,e.W1O),e.YNc(45,Dt,28,8,"ng-template",24,27,e.W1O),e.YNc(47,vt,6,3,"ng-template",24,28,e.W1O),e.TgZ(49,"div",null,29),e.TgZ(51,"div",30),e.TgZ(52,"div",31),e.TgZ(53,"app-device-protocol",32),e.NdJ("isValidChange",function(s){return _.isProtocolValid=s}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(38);e.xp6(10),e.Q6J("ngClass",_.currentStep>=0?_.selectedClass:_.noSelectedClass),e.xp6(3),e.Q6J("ngIf",_.currentStep>=1),e.xp6(2),e.Q6J("ngClass",_.currentStep>=1?_.selectedClass:_.noSelectedClass),e.xp6(3),e.Q6J("ngIf",_.currentStep>=2),e.xp6(2),e.Q6J("ngClass",_.currentStep>=2?_.selectedClass:_.noSelectedClass),e.xp6(3),e.Q6J("ngIf",_.currentStep>=3),e.xp6(2),e.Q6J("ngClass",_.currentStep>=3?_.selectedClass:_.noSelectedClass),e.xp6(3),e.Q6J("ngIf",_.currentStep>=4),e.xp6(2),e.Q6J("ngClass",_.currentStep>=4?_.selectedClass:_.noSelectedClass),e.xp6(3),e.Q6J("ngIf",_.currentStep>=5),e.xp6(2),e.Q6J("ngIf",_.currentStep),e.xp6(1),e.Q6J("ngIf",4>_.currentStep)("ngIfElse",o),e.xp6(4),e.Q6J("ngSwitch",_.currentStep),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(2),e.Q6J("ngSwitchCase",1),e.xp6(2),e.Q6J("ngSwitchCase",2),e.xp6(2),e.Q6J("ngSwitchCase",3),e.xp6(2),e.Udp("display",4===_.currentStep?"":"none"),e.xp6(4),e.Q6J("mode","add")("isValid",_.isProtocolValid)}},directives:[n.mk,n.O5,n.RF,n.n9,K,ne,_e.f,l._Y,l.JL,l.F,l.Fj,l.JJ,l.On,l.EJ,l.YN,l.Kr,oe],styles:['.breadcrumb[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:before{color:inherit;font-weight:inherit;content:">>";padding:0 5px}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}']}),i})();function It(i,c){if(1&i){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"div",2),e._UZ(2,"i",3),e.TgZ(3,"span",4),e.SDv(4,5),e.qZA(),e.TgZ(5,"span",6),e._uU(6),e.qZA(),e.TgZ(7,"button",7),e.NdJ("click",function(){return e.CHM(t),e.oxw().save()}),e.TgZ(8,"span"),e._UZ(9,"i",8),e.TgZ(10,"span"),e.SDv(11,9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",10),e.TgZ(13,"div",11),e.TgZ(14,"div",2),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.TgZ(18,"div",10),e.TgZ(19,"form"),e.TgZ(20,"div",14),e.TgZ(21,"label",15),e.SDv(22,16),e.qZA(),e.TgZ(23,"div",17),e.TgZ(24,"input",18),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().device.name=o}),e.qZA(),e.TgZ(25,"div",19),e.SDv(26,20),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",14),e.TgZ(28,"label",15),e.SDv(29,21),e.qZA(),e.TgZ(30,"div",17),e.TgZ(31,"input",22),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().device.description=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"div",14),e.TgZ(33,"label",15),e.SDv(34,23),e.qZA(),e.TgZ(35,"div",17),e.TgZ(36,"input",24),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().deviceLabels=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"div",14),e.TgZ(38,"label",25),e.SDv(39,26),e.qZA(),e.TgZ(40,"div",17),e.TgZ(41,"select",27),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().device.adminState=o}),e.TgZ(42,"option",28),e._uU(43,"UNLOCKED"),e.qZA(),e.TgZ(44,"option",29),e._uU(45,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",14),e.TgZ(47,"label",30),e.SDv(48,31),e.qZA(),e.TgZ(49,"div",17),e._UZ(50,"input",32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",33),e.TgZ(52,"app-device-service-list",34),e.NdJ("singleDeviceSvcSelectedEvent",function(o){return e.CHM(t),e.oxw().onSingleDeviceSvcSelected(o)}),e.qZA(),e.qZA(),e.TgZ(53,"div",33),e.TgZ(54,"app-device-profile-list",35),e.NdJ("singleProfileSelectedEvent",function(o){return e.CHM(t),e.oxw().onSingleProfileSelected(o)}),e.qZA(),e.qZA(),e.TgZ(55,"div",33),e.TgZ(56,"app-device-protocol",36),e.NdJ("isValidChange",function(o){return e.CHM(t),e.oxw().isProtocolValid=o}),e.qZA(),e.qZA(),e.TgZ(57,"div",33),e.TgZ(58,"app-device-auto-event",37),e.NdJ("autoEventsChange",function(o){return e.CHM(t),e.oxw().device.autoEvents=o})("isValidChange",function(o){return e.CHM(t),e.oxw().isAutoEventsValid=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(6),e.Oqu(t.device.name),e.xp6(1),e.Q6J("disabled",t.validateBeforeSave()),e.xp6(17),e.ekj("is-invalid",""===t.device.name),e.Q6J("ngModel",t.device.name),e.xp6(7),e.Q6J("ngModel",t.device.description),e.xp6(5),e.Q6J("ngModel",t.deviceLabels),e.xp6(5),e.Q6J("ngModel",t.device.adminState),e.xp6(9),e.Q6J("value",t.device.operatingState),e.xp6(2),e.Q6J("deviceSvcSelected",t.selectedSvc),e.xp6(2),e.Q6J("enableSelectAll",!1)("toolbars",!1)("singleProfileSelected",t.selectedProfile)("associatedDeviceColumn",!1),e.xp6(2),e.Q6J("mode","edit")("deviceProtocols",t.device.protocols)("isValid",t.isProtocolValid),e.xp6(2),e.Q6J("deviceProfile",t.selectedProfile)("autoEvents",t.device.autoEvents)("isValid",t.isAutoEventsValid)}}let Mt=(()=>{class i{constructor(t,_,o,s,a){this.router=t,this.route=_,this.metaSvc=o,this.msgSvc=s,this.errorSvc=a,this.isProtocolValid=!0,this.isAutoEventsValid=!0}ngOnInit(){this.route.queryParams.subscribe(t=>{!t.deviceName||this.metaSvc.findDeviceByName(t.deviceName).subscribe(o=>{var s;this.device=o.device,this.deviceLabels=null===(s=this.device.labels)||void 0===s?void 0:s.join(","),this.setDefaultDeviceSvcSelected(this.device.serviceName),this.setDefaultDeviceProfileSelected(this.device.profileName)})})}onSingleProfileSelected(t){this.selectedProfile=t}onSingleDeviceSvcSelected(t){this.selectedSvc=t}setDefaultDeviceSvcSelected(t){this.metaSvc.findDevcieServiceByName(t).subscribe(_=>{this.selectedSvc=_.service})}setDefaultDeviceProfileSelected(t){this.metaSvc.findProfileByName(t).subscribe(_=>{this.selectedProfile=_.profile})}validateBeforeSave(){return""===this.device.name||!this.isAutoEventsValid||!this.isProtocolValid}save(){var t,_,o;this.device.labels=null===(t=this.deviceLabels)||void 0===t?void 0:t.split(","),this.device.serviceName=null===(_=this.selectedSvc)||void 0===_?void 0:_.name,this.device.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.device.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.updateDevice(this.device).subscribe(s=>{var a;this.errorSvc.handleErrorForAPI(s)||(this.msgSvc.success("update device",`name: ${null===(a=this.device)||void 0===a?void 0:a.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(C.F0),e.Y36(C.gz),e.Y36(D.D),e.Y36(b.e),e.Y36(ee.T))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edit-device"]],viewQuery:function(t,_){if(1&t&&e.Gf(K,5),2&t){let o;e.iGM(o=e.CRH())&&(_.deviceProtocols=o.first)}},decls:1,vars:1,consts:function(){let c,t,_,o,s,a,g,I,p;return c="\u7F16\u8F91\u8BBE\u5907",t="\u4FDD\u5B58",_="\u8BBE\u5907\u57FA\u672C\u4FE1\u606F",o="\u8BBE\u5907\u540D\u5B57",s="\u8BBE\u5907\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A\uFF01",a="\u63CF\u8FF0",g="\u6807\u7B7E",I="\u7BA1\u7406\u72B6\u6001",p="\u64CD\u4F5C\u72B6\u6001",[["class","card",4,"ngIf"],[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","text-danger","fa-lg"],[1,"mx-2"],c,[1,"text-primary"],["type","button",1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body"],[1,"card","mb-3"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],_,[1,"form-group","row"],[1,"col-md-2","col-form-label"],o,[1,"col-md-10"],["type","text","name","name","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],s,a,["type","text","name","description",1,"form-control",3,"ngModel","ngModelChange"],g,["type","text","name","labels",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],I,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","operatingState",1,"col-md-2","col-form-label"],p,["type","text","name","operatingState","disabled","",1,"form-control",3,"value"],[1,"mb-3"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"enableSelectAll","toolbars","singleProfileSelected","associatedDeviceColumn","singleProfileSelectedEvent"],[3,"mode","deviceProtocols","isValid","isValidChange"],[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(t,_){1&t&&e.YNc(0,It,59,20,"div",0),2&t&&e.Q6J("ngIf",_.device)},directives:[n.O5,l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr,ne,_e.f,K,oe],styles:["input[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})(),Pt=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-profile-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[C.lC],styles:[""]}),i})(),ht=(()=>{class i{constructor(t,_,o,s,a){this.metaSvc=t,this.msgSvc=_,this.errSvc=o,this.router=s,this.route=a}ngOnInit(){this.renderYamlSource()}renderYamlSource(){let t=document.getElementById("editor");this.codeMirrorEditor=CodeMirror.fromTextArea(t,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px"),this.codeMirrorEditor.on("drop",(_,o)=>{var s;this.yamlFile=null===(s=o.dataTransfer)||void 0===s?void 0:s.files[0]}),this.codeMirrorEditor.on("paste",(_,o)=>{})}submit(){this.profileYamlSource=this.codeMirrorEditor.getValue(),this.metaSvc.addProfileYamlByNameViaUIBackend(this.profileYamlSource).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("Add profile"),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D),e.Y36(b.e),e.Y36(ee.T),e.Y36(C.F0),e.Y36(C.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-add-profile"]],decls:15,vars:0,consts:function(){let c,t,_;return c="\u6DFB\u52A0\u8BBE\u5907\u5143\u4FE1\u606F",t="\u62D6\u62FD\u529F\u80FD\u5DF2\u5F00\u542F",_="\u63D0\u4EA4",[[1,"card"],[1,"card-header"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],c,[1,"fa","fa-info-circle","text-success","font-weight-bold"],t,[1,"float-right"],["type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],_,[1,"card-body","p-0"],["id","editor","name","editor"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span"),e._UZ(3,"span",2),e.TgZ(4,"span",3),e.SDv(5,4),e.qZA(),e.TgZ(6,"span",5),e.SDv(7,6),e.qZA(),e.qZA(),e.TgZ(8,"span",7),e.TgZ(9,"button",8),e.NdJ("click",function(){return _.submit()}),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",11),e._UZ(14,"textarea",12),e.qZA(),e.qZA())},styles:[""]}),i})(),Nt=(()=>{class i{constructor(t,_,o,s,a){this.metaSvc=t,this.msgSvc=_,this.errSvc=o,this.router=s,this.route=a}ngOnInit(){this.renderYamlSource(),this.route.queryParams.subscribe(t=>{t.profileName&&(this.profileName=t.profileName,this.metaSvc.findProfileYamlByNameViaUIBackend(t.profileName).subscribe(_=>{this.codeMirrorEditor.setValue(_),this.codeMirrorEditor.refresh()}))})}update(){this.codeMirrorEditor.refresh(),this.metaSvc.updateProfileYamlContentViaUIBackend(this.codeMirrorEditor.getValue()).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("Update profile",`name: ${this.profileName}`),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}renderYamlSource(){let t=document.getElementById("editor-edit");this.codeMirrorEditor=CodeMirror.fromTextArea(t,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px")}ngOnDestroy(){this.codeMirrorEditor=null}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.D),e.Y36(b.e),e.Y36(ee.T),e.Y36(C.F0),e.Y36(C.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edit-profile"]],decls:13,vars:1,consts:function(){let c;return c="\u4FDD\u5B58",[[1,"card"],[1,"card-header"],[1,"text-danger","fa","fa-edit","mr-2"],[1,"float-right"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],c,[1,"card-body","p-0"],["id","editor-edit","name","editor"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span"),e._UZ(3,"span",2),e._uU(4),e.qZA(),e.TgZ(5,"span",3),e.TgZ(6,"button",4),e.NdJ("click",function(){return _.update()}),e.TgZ(7,"span"),e._UZ(8,"i",5),e.TgZ(9,"span"),e.SDv(10,6),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",7),e._UZ(12,"textarea",8),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.hij("",_.profileName," "))},styles:[""]}),i})(),Zt=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-provision-watcher-center"]],decls:2,vars:0,template:function(t,_){1&t&&(e.TgZ(0,"p"),e._uU(1,"provision-watcher-center works!"),e.qZA())},styles:[""]}),i})(),Ot=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-provision-watcher-list"]],decls:2,vars:0,template:function(t,_){1&t&&(e.TgZ(0,"p"),e._uU(1,"provision-watcher-list works!"),e.qZA())},styles:[""]}),i})(),Vt=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-add-provision-watcher"]],decls:2,vars:0,template:function(t,_){1&t&&(e.TgZ(0,"p"),e._uU(1,"add-provision-watcher works!"),e.qZA())},styles:[""]}),i})(),Lt=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edit-provision-watcher"]],decls:2,vars:0,template:function(t,_){1&t&&(e.TgZ(0,"p"),e._uU(1,"edit-provision-watcher works!"),e.qZA())},styles:[""]}),i})();var Rt=T(8253),bt=T(1964),$t=T(4294),xt=T(5894),qt=T(7216);let ce=(()=>{class i{constructor(t,_){this.router=t,this.metadataSvc=_}canActivate(t,_){return this.checkAvailable(t,_)}canActivateChild(t,_){return this.canActivate(t,_)}checkAvailable(t,_){return this.metadataSvc.ping().pipe((0,$t.q)(1),(0,xt.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"metadata",routerPath:`/${_.url.split("/")[1]}`}})),(0,qt.z)(()=>(0,bt.of)(!0)))}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(C.F0),e.LFG(D.D))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const yt=[{path:"",component:y,canActivate:[Rt.a,ce],canActivateChild:[ce],children:[{path:"",redirectTo:"device-service-list",pathMatch:"full"},{path:"device-service-list",component:V},{path:"device-center",component:r,children:[{path:"",redirectTo:"device-list",pathMatch:"full"},{path:"device-list",component:Je},{path:"add-device",component:St},{path:"edit-device",component:Mt}]},{path:"device-profile-center",component:Pt,children:[{path:"",redirectTo:"device-profile-list",pathMatch:"full"},{path:"device-profile-list",component:_e.f},{path:"edit-profile",component:Nt},{path:"add-profile",component:ht}]},{path:"provision-watcher-center",component:Zt,children:[{path:"",redirectTo:"provision-watcher-list",pathMatch:"full"},{path:"provision-watcher-list",component:Ot},{path:"edit-provision-watcher",component:Lt},{path:"add-provision-watcher",component:Vt}]}]}];let wt=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[C.Bz.forChild(yt)],C.Bz]}),i})(),Gt=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[n.ez,l.u5,wt,l.UX]]}),i})()},2822:(ie,q,T)=>{T.d(q,{f:()=>te});var n=T(476),l=T(2437),C=T(7822),e=T(9502),y=T(8583),D=T(3092);function b(f,V){if(1&f){const r=n.EpF();n.TgZ(0,"div",50),n.TgZ(1,"div",51),n.TgZ(2,"button",52),n.NdJ("click",function(){return n.CHM(r),n.oxw().refresh()}),n.TgZ(3,"span"),n._UZ(4,"i",53),n.TgZ(5,"span"),n.SDv(6,54),n.qZA(),n.qZA(),n.qZA(),n.TgZ(7,"button",55),n.TgZ(8,"span"),n._UZ(9,"i",56),n.TgZ(10,"span"),n.SDv(11,57),n.qZA(),n.qZA(),n.qZA(),n.TgZ(12,"button",58),n.NdJ("click",function(){return n.CHM(r),n.oxw().edit()}),n.TgZ(13,"span"),n._UZ(14,"i",59),n.TgZ(15,"span"),n.SDv(16,60),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"button",61),n.NdJ("click",function(){return n.CHM(r),n.oxw().deleteConfirm()}),n.TgZ(18,"span"),n._UZ(19,"i",62),n.TgZ(20,"span"),n.SDv(21,63),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&f){const r=n.oxw();n.xp6(12),n.Q6J("disabled",1!==r.multiProfilesSelected.length),n.xp6(5),n.Q6J("disabled",0===r.multiProfilesSelected.length)}}function u(f,V){if(1&f){const r=n.EpF();n.TgZ(0,"input",64),n.NdJ("click",function(A){return n.CHM(r),n.oxw().selectAll(A)}),n.qZA()}if(2&f){const r=n.oxw();n.Q6J("checked",r.isCheckedAll())}}function S(f,V){1&f&&(n.TgZ(0,"th",9),n.SDv(1,65),n.qZA())}const Z=function(f){return{profileName:f}};function R(f,V){if(1&f&&(n.TgZ(0,"td",69),n.TgZ(1,"a",70),n._UZ(2,"i",71),n.qZA(),n.qZA()),2&f){const r=n.oxw().$implicit;n.xp6(1),n.Q6J("queryParams",n.VKq(1,Z,r.name))}}function G(f,V){if(1&f){const r=n.EpF();n.TgZ(0,"tr"),n.TgZ(1,"td"),n.TgZ(2,"input",66),n.NdJ("click",function(A){const w=n.CHM(r).$implicit;return n.oxw().selectOne(A,w.name)}),n.qZA(),n.qZA(),n.TgZ(3,"td",67),n._uU(4),n.qZA(),n.TgZ(5,"td",67),n._uU(6),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.YNc(9,R,3,3,"td",68),n.TgZ(10,"td"),n._uU(11),n.qZA(),n.TgZ(12,"td"),n._uU(13),n.qZA(),n.TgZ(14,"td"),n._uU(15),n.qZA(),n.qZA()}if(2&f){const r=V.$implicit,E=n.oxw();n.ekj("table-active",E.isChecked(r.name)),n.xp6(2),n.s9C("value",r.name),n.Q6J("checked",E.isChecked(r.name)),n.xp6(2),n.Oqu(r.id),n.xp6(2),n.Oqu(r.name),n.xp6(2),n.Oqu(r.description),n.xp6(1),n.Q6J("ngIf",E.associatedDeviceColumn),n.xp6(2),n.Oqu(r.labels),n.xp6(2),n.Oqu(r.manufacturer),n.xp6(2),n.Oqu(r.model)}}let te=(()=>{class f{constructor(r,E,A,L){this.metaSvc=r,this.msgSvc=E,this.route=A,this.router=L,this.associatedDeviceColumn=!0,this.toolbars=!0,this.enableSelectAll=!0,this.singleProfileSelectedEvent=new n.vpe,this.multipleProfileSelectedEvent=new n.vpe,this.profileList=[],this.multiProfilesSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(r=>{r.profileName?this.metaSvc.findProfileByName(r.profileName).subscribe(E=>{this.profileList=[],this.profileList.push(E.profile)}):this.findAllDeviceProfilesPagination()})}findAllDeviceProfilesPagination(){this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(r=>{this.profileList=r.profiles})}onSingleProfileSelectedEmitter(){this.singleProfileSelectedEvent.emit(this.singleProfileSelected)}onMultipleProfileSelectedEmitter(){this.multipleProfileSelectedEvent.emit(this.multiProfilesSelected)}refresh(){this.metaSvc.allDeviceProfolesPagination(0,this.pageLimit).subscribe(r=>{this.profileList=r.profiles,this.msgSvc.success("refresh"),this.pagination=1,this.resetCheckbox()})}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceProfilesPagination()}prePage(){this.setPagination(-1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(r=>{this.profileList=r.profiles})}nextPage(){this.setPagination(1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(r=>{this.profileList=r.profiles})}setPageLimit(r){this.pageLimit=r}setPagination(r){1===r?this.pagination+=1:-1===r&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit,this.resetCheckbox()}resetPagination(){this.pagination=1,this.resetCheckbox()}resetCheckbox(){}edit(){this.router.navigate(["../edit-profile"],{relativeTo:this.route,queryParams:{profileName:this.multiProfilesSelected[0]}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.multiProfilesSelected.forEach(r=>{this.metaSvc.deleteProfileByName(r).subscribe(()=>{this.multiProfilesSelected=[],this.profileList.forEach((E,A)=>{E.name==r&&(this.profileList.splice(A,1),this.msgSvc.success("delete",` Name: ${E.name}`))})})}),$("#deleteConfirmDialog").modal("hide")}isSingleProfileChecked(r){var E;return(null===(E=this.singleProfileSelected)||void 0===E?void 0:E.name)===r}selectSingleProfile(r,E){r.target.checked?this.profileList.forEach(L=>{L.name===E&&(this.singleProfileSelected=L)}):this.singleProfileSelected=void 0,this.onSingleProfileSelectedEmitter()}isCheckedAll(){let r=!0;return this.profileList&&0===this.profileList.length&&(r=!1),this.profileList.forEach(E=>{-1===this.multiProfilesSelected.indexOf(E.name)&&(r=!1)}),r}selectAll(r){this.profileList.forEach(r.target.checked?A=>{this.multiProfilesSelected.includes(A.name)||this.multiProfilesSelected.push(A.name)}:A=>{this.multiProfilesSelected.includes(A.name)&&this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(A.name),1)}),this.onMultipleProfileSelectedEmitter()}isChecked(r){return this.enableSelectAll?this.multiProfilesSelected.includes(r):this.isSingleProfileChecked(r)}selectOne(r,E){this.enableSelectAll?(r.target.checked?this.multiProfilesSelected.push(E):this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(E),1),this.onMultipleProfileSelectedEmitter()):this.selectSingleProfile(r,E)}}return f.\u0275fac=function(r){return new(r||f)(n.Y36(l.D),n.Y36(C.e),n.Y36(e.gz),n.Y36(e.F0))},f.\u0275cmp=n.Xpm({type:f,selectors:[["app-device-profile-list"]],inputs:{associatedDeviceColumn:"associatedDeviceColumn",toolbars:"toolbars",enableSelectAll:"enableSelectAll",multiProfilesSelected:"multiProfilesSelected",singleProfileSelected:"singleProfileSelected"},outputs:{singleProfileSelectedEvent:"singleProfileSelectedEvent",multipleProfileSelectedEvent:"multipleProfileSelectedEvent"},decls:67,vars:7,consts:function(){let V,r,E,A,L,w,X,U,F,k,J,z,Y,Q,B,W,H,j;return V="\u8BBE\u5907\u5143\u4FE1\u606F\u5217\u8868",r="\u540D\u5B57",E="\u63CF\u8FF0",A="\u6807\u7B7E",L="\u7EF4\u62A4\u8005",w="\u6A21\u5F0F",X="\u6BCF\u9875\u6761\u76EE",U="\u4E0A\u4E00\u9875",F="\u4E0B\u4E00\u9875",k="\u8B66\u544A",J="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",z="\u53D6\u6D88",Y="\u786E\u8BA4",Q="\u5237\u65B0",B="\u6DFB\u52A0",W="\u7F16\u8F91",H="\u5220\u9664",j="\u76F8\u5173\u8BBE\u5907",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],V,[1,"card-body","p-0"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox",3,"checked","click",4,"ngIf"],r,E,["scope","col",4,"ngIf"],A,L,w,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],X,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],U,[1,"page-item"],F,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],k,[1,"modal-body"],J,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],z,["type","button",1,"btn","btn-danger",3,"click"],Y,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],Q,["type","button","routerLink","../add-profile",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],B,["type","button","data-toggle","tooltip","data-placement","top","title","only one should be selected",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],W,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],H,["type","checkbox",3,"checked","click"],j,["type","checkbox",3,"value","checked","click"],[1,"user-select-all"],["class","text-center",4,"ngIf"],[1,"text-center"],["routerLink","../../device-center",1,"badge","badge-pill","badge-primary",3,"queryParams"],[1,"fa","fa-sitemap"]]},template:function(r,E){1&r&&(n.TgZ(0,"div",0),n.TgZ(1,"div",1),n._UZ(2,"i",2),n.TgZ(3,"span"),n.SDv(4,3),n.qZA(),n.qZA(),n.TgZ(5,"div",4),n.YNc(6,b,22,2,"div",5),n.TgZ(7,"div",6),n.TgZ(8,"table",7),n.TgZ(9,"thead",8),n.TgZ(10,"tr"),n.TgZ(11,"th",9),n.YNc(12,u,1,1,"input",10),n.qZA(),n.TgZ(13,"th",9),n._uU(14,"ID"),n.qZA(),n.TgZ(15,"th",9),n.SDv(16,11),n.qZA(),n.TgZ(17,"th",9),n.SDv(18,12),n.qZA(),n.YNc(19,S,2,0,"th",13),n.TgZ(20,"th",9),n.SDv(21,14),n.qZA(),n.TgZ(22,"th",9),n.SDv(23,15),n.qZA(),n.TgZ(24,"th",9),n.SDv(25,16),n.qZA(),n.qZA(),n.qZA(),n.TgZ(26,"tbody"),n.YNc(27,G,16,11,"tr",17),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(28,"div",18),n.TgZ(29,"nav",19),n.TgZ(30,"ul",20),n.TgZ(31,"li",21),n.TgZ(32,"span",22),n.SDv(33,23),n.qZA(),n.qZA(),n.TgZ(34,"li",24),n.TgZ(35,"select",25),n.NdJ("ngModelChange",function(L){return E.pageLimit=L})("ngModelChange",function(){return E.onPageSelected()}),n.TgZ(36,"option",26),n._uU(37,"5"),n.qZA(),n.TgZ(38,"option",27),n._uU(39,"10"),n.qZA(),n.TgZ(40,"option",28),n._uU(41,"20"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(42,"li",29),n.TgZ(43,"button",30),n.NdJ("click",function(){return E.prePage()}),n._UZ(44,"i",31),n.TgZ(45,"span"),n.SDv(46,32),n.qZA(),n.qZA(),n.qZA(),n.TgZ(47,"li",33),n.TgZ(48,"button",30),n.NdJ("click",function(){return E.nextPage()}),n.TgZ(49,"span"),n.SDv(50,34),n.qZA(),n._UZ(51,"i",35),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(52,"div",36),n.TgZ(53,"div",37),n.TgZ(54,"div",38),n.TgZ(55,"div",39),n.TgZ(56,"h5",40),n._UZ(57,"i",41),n.TgZ(58,"span"),n.SDv(59,42),n.qZA(),n.qZA(),n.qZA(),n.TgZ(60,"div",43),n.SDv(61,44),n.qZA(),n.TgZ(62,"div",45),n.TgZ(63,"button",46),n.SDv(64,47),n.qZA(),n.TgZ(65,"button",48),n.NdJ("click",function(){return E.delete()}),n.SDv(66,49),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&r&&(n.xp6(6),n.Q6J("ngIf",E.toolbars),n.xp6(6),n.Q6J("ngIf",E.enableSelectAll),n.xp6(7),n.Q6J("ngIf",E.associatedDeviceColumn),n.xp6(8),n.Q6J("ngForOf",E.profileList),n.xp6(8),n.Q6J("ngModel",E.pageLimit),n.xp6(8),n.Q6J("disabled",1===E.pagination),n.xp6(5),n.Q6J("disabled",E.pageLimit>E.profileList.length))},directives:[y.O5,y.sg,D.EJ,D.JJ,D.On,D.YN,D.Kr,e.rH,e.yS],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),f})()},7982:(ie,q,T)=>{T.d(q,{V:()=>y});var n=T(1841),l=T(5894),C=T(476),e=T(4889);let y=(()=>{class D{constructor(u,S){this.http=u,this.errorSvc=S,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new n.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,l.K)(S=>this.errorSvc.handleError(S)))}findCommnadsByDeviceId(u){return this.http.get(`${this.commandsByDeviceIdUrl}${u}`).pipe((0,l.K)(Z=>this.errorSvc.handleError(Z)))}allDeviceCoreCommandsPagination(u,S){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${u}&limit=${S}`).pipe((0,l.K)(R=>this.errorSvc.handleError(R)))}findDeviceAssociatedCommnadsByDeviceName(u){return this.http.get(`${this.commandsByDeviceNameUrl}${u}`).pipe((0,l.K)(Z=>this.errorSvc.handleError(Z)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,l.K)(S=>this.errorSvc.handleError(S)))}issueGetBinaryCmd(u,S){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${u}/command/${S}`,{responseType:"arraybuffer"}).pipe((0,l.K)(R=>this.errorSvc.handleError(R)))}issueGetCmd(u,S){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${u}/${S}?ds-pushevent=true&ds-returnevent=true`).pipe((0,l.K)(R=>this.errorSvc.handleError(R)))}issueSetCmd(u,S,Z){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${u}/${S}`,JSON.stringify(Z),this.httpPostOrPutJSONOptions).pipe((0,l.K)(G=>this.errorSvc.handleError(G)))}}return D.\u0275fac=function(u){return new(u||D)(C.LFG(n.eN),C.LFG(e.T))},D.\u0275prov=C.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/10.86cd78dbb35d3933fb18.js b/cmd/edgex-ui-server/static/web/zh/10.86cd78dbb35d3933fb18.js deleted file mode 100644 index a3e92e31..00000000 --- a/cmd/edgex-ui-server/static/web/zh/10.86cd78dbb35d3933fb18.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[10],{4010:(i_,b,d)=>{d.r(b),d.d(b,{MetadataModule:()=>Xe});var n=d(8583),a=d(3092),T=d(9502),_=d(476);let x=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-metadata"]],decls:14,vars:0,consts:function(){let E,e,t;return E="\u8BBE\u5907\u670D\u52A1",e="\u8BBE\u5907",t="\u8BBE\u5907\u5143\u4FE1\u606F",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./device-service-list","routerLinkActive","active",1,"nav-link"],E,["routerLink","./device-center","routerLinkActive","active",1,"nav-link"],e,["routerLink","./device-profile-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.SDv(5,5),_.qZA(),_.qZA(),_.TgZ(6,"li",3),_.TgZ(7,"a",6),_.SDv(8,7),_.qZA(),_.qZA(),_.TgZ(9,"li",3),_.TgZ(10,"a",8),_.SDv(11,9),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"div",10),_._UZ(13,"router-outlet"),_.qZA(),_.qZA())},directives:[T.yS,T.Od,T.lC],styles:[".active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}"]}),i})();var u=d(2437),V=d(7822);function S(i,E){if(1&i&&(_.TgZ(0,"p"),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.description)}}function m(i,E){1&i&&(_.TgZ(0,"p",20),_._uU(1,"no description."),_.qZA())}function G(i,E){if(1&i&&(_.TgZ(0,"span",21),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function U(i,E){if(1&i&&(_.TgZ(0,"span",22),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function X(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"a",23),_.NdJ("click",function(){_.CHM(e);const o=_.oxw().$implicit;return _.oxw().associatedDevicesSkip(o.name)}),_._UZ(1,"i",24),_.TgZ(2,"span"),_.SDv(3,25),_.qZA(),_._uU(4),_.qZA()}if(2&i){const e=_.oxw().$implicit,t=_.oxw();_.xp6(4),_.hij("\xa0 ",t.associatedDevices.get(e.name)," ")}}function e_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"li",3),_.TgZ(1,"div",4),_.TgZ(2,"div",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"div",7),_.TgZ(5,"div",8),_.TgZ(6,"h5",9),_._uU(7),_.qZA(),_.qZA(),_.YNc(8,S,2,1,"p",10),_.YNc(9,m,2,0,"ng-template",null,11,_.W1O),_.TgZ(11,"div"),_.TgZ(12,"span",12),_._uU(13),_.qZA(),_.TgZ(14,"span",13),_.YNc(15,G,2,1,"span",14),_.YNc(16,U,2,1,"span",15),_.qZA(),_.YNc(17,X,5,1,"a",16),_.TgZ(18,"span",17),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw().edit(c)}),_._UZ(19,"i",18),_.TgZ(20,"span"),_.SDv(21,19),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.MAs(10),o=_.oxw();_.xp6(7),_.Oqu(e.name),_.xp6(1),_.Q6J("ngIf",e.description)("ngIfElse",t),_.xp6(5),_.hij("Port ",o.getSvcPort(e.baseAddress),""),_.xp6(1),_.Q6J("ngSwitch",e.adminState),_.xp6(1),_.Q6J("ngSwitchCase","UNLOCKED"),_.xp6(2),_.Q6J("ngIf",o.associatedDevices.size)}}function I(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",26),_.TgZ(1,"div",27),_._UZ(2,"i",28),_.TgZ(3,"span"),_.SDv(4,29),_.qZA(),_.TgZ(5,"span",30),_._uU(6),_.qZA(),_.TgZ(7,"button",31),_.NdJ("click",function(){return _.CHM(e),_.oxw().updateSvc()}),_.SDv(8,32),_.qZA(),_.qZA(),_.TgZ(9,"div",33),_.TgZ(10,"form"),_.TgZ(11,"div",34),_.TgZ(12,"label",35),_.SDv(13,36),_.qZA(),_.TgZ(14,"div",37),_.TgZ(15,"input",38),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceSvcSelected.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(16,"div",34),_.TgZ(17,"label",39),_.SDv(18,40),_.qZA(),_.TgZ(19,"div",37),_.TgZ(20,"select",41),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceSvcSelected.adminState=o}),_.TgZ(21,"option",42),_._uU(22,"UNLOCKED"),_.qZA(),_.TgZ(23,"option",43),_._uU(24,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(6),_.Oqu(e.deviceSvcSelected.name),_.xp6(9),_.Q6J("ngModel",e.deviceSvcSelected.description),_.xp6(5),_.Q6J("ngModel",e.deviceSvcSelected.adminState)}}let R=(()=>{class i{constructor(e,t,o,c){this.metaSvc=e,this.msgSvc=t,this.router=o,this.route=c,this.deviceServiceList=[],this.associatedDevices=new Map}ngOnInit(){this.metaSvc.allDeviceServices().subscribe(e=>{this.deviceServiceList=e.services,this.deviceServiceList.forEach(t=>{this.metaSvc.findDevicesByServiceName(0,20,t.name).subscribe(o=>{this.associatedDevices.set(t.name,o.devices.length>20?"20+":String(o.devices.length))})})})}getSvcPort(e){return new URL(e).port}edit(e){this.deviceSvcSelected=e}updateSvc(){this.metaSvc.updateDeviceService(this.deviceSvcSelected).subscribe(()=>{var e;this.msgSvc.success("update device service",`name: ${null===(e=this.deviceSvcSelected)||void 0===e?void 0:e.name}`),this.deviceSvcSelected=void 0})}associatedDevicesSkip(e){this.router.navigate(["../device-center"],{queryParams:{svcName:e},relativeTo:this.route})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-service-media-list"]],decls:3,vars:2,consts:function(){let E,e,t,o,c,s;return E="\u8BBE\u7F6E",e="\u5173\u8054\u8BBE\u5907",t="\u7F16\u8F91",o="\u4FDD\u5B58",c="\u63CF\u8FF0",s="\u7BA1\u7406\u72B6\u6001",[[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[4,"ngIf","ngIfElse"],["nodesc",""],[1,"badge","badge-info","mr-3"],[3,"ngSwitch"],["class","badge badge-success mr-3",4,"ngSwitchCase"],["class","badge badge-danger mr-3",4,"ngSwitchDefault"],["class","badge badge-primary","role","button",3,"click",4,"ngIf"],["role","button",1,"badge","badge-secondary","float-right",3,"click"],[1,"fa","fa-cog","mr-1"],E,[1,"my-1"],[1,"badge","badge-success","mr-3"],[1,"badge","badge-danger","mr-3"],["role","button",1,"badge","badge-primary",3,"click"],[1,"fa","fa-sitemap","mr-1"],e,[1,"card","mt-3"],[1,"card-header"],[1,"fa","fa-edit","mr-1","text-danger"],t,[1,"ml-1"],[1,"btn","btn-success","btn-sm","float-right",3,"click"],o,[1,"card-body"],[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],c,[1,"col-md-10"],["type","text","name","deviceSvcDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],s,["name","deviceSvcAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"]]},template:function(e,t){1&e&&(_.TgZ(0,"ul",0),_.YNc(1,e_,22,7,"li",1),_.qZA(),_.YNc(2,I,25,3,"div",2)),2&e&&(_.xp6(1),_.Q6J("ngForOf",t.deviceServiceList),_.xp6(1),_.Q6J("ngIf",t.deviceSvcSelected))},directives:[n.sg,n.O5,n.RF,n.n9,n.ED,a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),i})(),l=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[T.lC],styles:[""]}),i})();var r=d(7982);function g(i,E){1&i&&_._UZ(0,"div")}function Z(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"li",20),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw(2).selectCmd(c)}),_._uU(1),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw(2);_.ekj("list-group-item-info",(null==t.selectedCmd?null:t.selectedCmd.name)===e.name),_.xp6(1),_.Oqu(e.name)}}function q(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw(3).issueGetCmd()}),_._uU(1,"try"),_.qZA()}}function J(i,E){1&i&&_._UZ(0,"div")}function y(i,E){if(1&i&&(_.TgZ(0,"span",41),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.hij(" ",e.cmdGetResponse,"")}}function B(i,E){if(1&i&&(_.TgZ(0,"pre",42),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdGetResponseRaw)}}function W(i,E){if(1&i&&(_.TgZ(0,"div"),_.TgZ(1,"span",35),_.SDv(2,36),_.qZA(),_.YNc(3,y,2,1,"span",37),_.qZA(),_.TgZ(4,"div",38),_.TgZ(5,"span",35),_.SDv(6,39),_.qZA(),_.YNc(7,B,2,1,"pre",40),_.qZA()),2&i){const e=_.oxw(3);_.xp6(3),_.Q6J("ngIf",e.cmdGetResponse),_.xp6(4),_.Q6J("ngIf",e.cmdGetResponseRaw)}}function H(i,E){1&i&&(_.TgZ(0,"h6",43),_._UZ(1,"i",44),_.TgZ(2,"span"),_.SDv(3,45),_.qZA(),_.qZA())}function w(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw(3).issueSetCmd()}),_._uU(1,"try"),_.qZA()}}function F(i,E){1&i&&_._UZ(0,"div")}function k(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"label",56),_._uU(2),_.qZA(),_.TgZ(3,"select",57),_.NdJ("ngModelChange",function(o){_.CHM(e);const c=_.oxw().index;return _.oxw(6).parameterBearerList[c].value=o}),_.TgZ(4,"option",58),_._uU(5,"false"),_.qZA(),_.TgZ(6,"option",58),_._uU(7,"true"),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(),t=e.$implicit,o=e.index,c=_.oxw(6);_.xp6(1),_.s9C("for",t.resourceName),_.xp6(1),_.hij(" ",t.resourceName," "),_.xp6(1),_.s9C("id",t.resourceName),_.s9C("name",t.resourceName),_.Q6J("ngModel",c.parameterBearerList[o].value),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function z(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"label",56),_._uU(1),_.qZA(),_.TgZ(2,"input",59),_.NdJ("ngModelChange",function(o){_.CHM(e);const c=_.oxw().index;return _.oxw(6).parameterBearerList[c].value=o}),_.qZA()}if(2&i){const e=_.oxw(),t=e.$implicit,o=e.index,c=_.oxw(6);_.s9C("for",t.resourceName),_.xp6(1),_.Oqu(t.resourceName),_.xp6(1),_.s9C("id",t.resourceName),_.s9C("name",t.resourceName),_.MGl("placeholder","valueType: ",t.valueType,""),_.Q6J("ngModel",c.parameterBearerList[o].value)}}function Y(i,E){if(1&i&&(_.TgZ(0,"div",53),_.YNc(1,k,8,7,"div",54),_.YNc(2,z,3,6,"ng-template",null,55,_.W1O),_.qZA()),2&i){const e=E.$implicit,t=_.MAs(3);_.xp6(1),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function Q(i,E){if(1&i&&(_.TgZ(0,"div",51),_.YNc(1,Y,4,2,"div",52),_.qZA()),2&i){const e=_.oxw(5);_.xp6(1),_.Q6J("ngForOf",e.selectedCmdSetParams)}}function j(i,E){if(1&i&&(_.TgZ(0,"div",12),_.TgZ(1,"div",4),_.SDv(2,49),_.qZA(),_.TgZ(3,"div",9),_.YNc(4,Q,2,1,"div",50),_.qZA(),_.qZA()),2&i){const e=_.oxw(4);_.xp6(4),_.Q6J("ngIf",e.selectedCmd)}}function M(i,E){if(1&i&&(_.TgZ(0,"span",41),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdSetResponse)}}function m_(i,E){if(1&i&&(_.TgZ(0,"pre",42),_._uU(1),_.qZA()),2&i){const e=_.oxw(4);_.xp6(1),_.Oqu(e.cmdSetResponseRaw)}}function v_(i,E){if(1&i&&(_.YNc(0,j,5,1,"div",46),_.TgZ(1,"div"),_.TgZ(2,"div"),_.TgZ(3,"span",35),_.SDv(4,47),_.qZA(),_.YNc(5,M,2,1,"span",37),_.qZA(),_.TgZ(6,"div",38),_.TgZ(7,"span",35),_.SDv(8,48),_.qZA(),_.YNc(9,m_,2,1,"pre",40),_.qZA(),_.qZA()),2&i){const e=_.oxw(3);_.Q6J("ngIf",e.selectedCmdSetParams),_.xp6(5),_.Q6J("ngIf",e.cmdSetResponse),_.xp6(4),_.Q6J("ngIf",e.cmdSetResponseRaw)}}function N_(i,E){1&i&&(_.TgZ(0,"h6",43),_._UZ(1,"i",44),_.TgZ(2,"span"),_.SDv(3,60),_.qZA(),_.qZA())}function M_(i,E){if(1&i&&(_.TgZ(0,"div",21),_.TgZ(1,"div",4),_.TgZ(2,"span",22),_._UZ(3,"i",23),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,24),_.qZA(),_.qZA(),_.TgZ(7,"div",25),_.TgZ(8,"div",10),_.TgZ(9,"div",26),_.TgZ(10,"div",12),_.TgZ(11,"div",4),_._uU(12," Get "),_.YNc(13,q,2,0,"button",27),_.qZA(),_.TgZ(14,"div",28),_.YNc(15,J,1,0,"div",0),_.YNc(16,W,8,2,"ng-template",null,29,_.W1O),_.YNc(18,H,4,0,"ng-template",null,30,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.TgZ(20,"div",31),_.TgZ(21,"div",21),_.TgZ(22,"div",4),_._uU(23," Set "),_.YNc(24,w,2,0,"button",27),_.qZA(),_.TgZ(25,"div",9),_.YNc(26,F,1,0,"div",0),_.YNc(27,v_,10,3,"ng-template",null,32,_.W1O),_.YNc(29,N_,4,0,"ng-template",null,33,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.MAs(17),t=_.MAs(19),o=_.MAs(28),c=_.MAs(30),s=_.oxw(2);_.xp6(4),_.hij(" ",s.selectedCmd.name," method:"),_.xp6(9),_.Q6J("ngIf",s.selectedCmd.get),_.xp6(2),_.Q6J("ngIf",s.selectedCmd.get)("ngIfThen",e)("ngIfElse",t),_.xp6(9),_.Q6J("ngIf",s.selectedCmd.set),_.xp6(2),_.Q6J("ngIf",s.selectedCmd.set)("ngIfThen",o)("ngIfElse",c)}}function P_(i,E){if(1&i&&(_.TgZ(0,"div",3),_.TgZ(1,"div",4),_.TgZ(2,"span",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"span",7),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,8),_.qZA(),_.qZA(),_.TgZ(8,"div",9),_.TgZ(9,"div",10),_.TgZ(10,"div",11),_.TgZ(11,"div",12),_.TgZ(12,"div",13),_.SDv(13,14),_.qZA(),_.TgZ(14,"div",15),_.TgZ(15,"ul",16),_.YNc(16,Z,2,3,"li",17),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",18),_.YNc(18,M_,31,9,"div",19),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(5),_.Oqu(e.associatedCmdDeviceName),_.xp6(11),_.Q6J("ngForOf",e.deviceCoreCommand),_.xp6(2),_.Q6J("ngIf",e.selectedCmd)}}function O_(i,E){if(1&i&&(_.TgZ(0,"div",3),_.TgZ(1,"div",4),_.TgZ(2,"span",5),_._UZ(3,"i",6),_.qZA(),_.TgZ(4,"span",7),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,61),_.qZA(),_.qZA(),_.TgZ(8,"div",62),_.TgZ(9,"h5",43),_._UZ(10,"i",63),_.TgZ(11,"span"),_.SDv(12,64),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(5),_.Oqu(e.associatedCmdDeviceName)}}let G_=(()=>{class i{constructor(e,t){this.cmdSvc=e,this.metadataSvc=t,this.selectedCmd={},this.selectedCmdSetParams=[],this.parameterBearerList=[]}ngOnInit(){}ngOnChanges(){!this.deviceName||(this.resetResponse(),this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(this.deviceName).subscribe(e=>{this.associatedCmdDeviceName=e.deviceCoreCommand.deviceName,this.deviceCoreCommand=e.deviceCoreCommand.coreCommands,this.deviceCoreCommand&&0!==this.deviceCoreCommand.length&&(this.selectedCmd=this.deviceCoreCommand[0],this.selectedCmdSetParams=this.selectedCmd.parameters,this.setParameterBearerList(),this.getAssociatedDeviceProfile(e.deviceCoreCommand.profileName))}))}getAssociatedDeviceProfile(e){this.metadataSvc.findProfileByName(e).subscribe(t=>this.associateDeviceProfile=t.profile)}selectCmd(e){this.selectedCmd=e,this.selectedCmdSetParams=this.selectedCmd.parameters,this.resetResponse(),this.setParameterBearerList()}setParameterBearerList(){this.parameterBearerList=[],this.selectedCmdSetParams.forEach(e=>{this.parameterBearerList.push({key:e.resourceName,value:""})})}resetResponse(){this.cmdGetResponse="",this.cmdGetResponseRaw="",this.cmdSetResponse="",this.cmdSetResponseRaw="",this.cmdBinaryResponse=!0,this.cmdBinaryResponseURL=""}isBinaryResource(){let e=!1;return this.associateDeviceProfile.deviceResources.forEach(t=>{t.name!==this.selectedCmd.name||"Binary"!==t.properties.valueType||(e=!0)}),e||(this.associateDeviceProfile.deviceCommands.forEach(t=>{t.name===this.selectedCmd.name&&t.resourceOperations.forEach(o=>{this.associateDeviceProfile.deviceResources.forEach(c=>{o.deviceResource!==c.name||"Binary"!==c.properties.valueType||(e=!0)})})}),e)}issueGetCmd(){this.cmdSvc.issueGetCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(e=>{if(this.cmdGetResponseRaw=JSON.stringify(e.event.readings,null,3),this.isBinaryResource())return void(this.cmdGetResponse="Binary resource is not supported for preview");let t=[];e.event.readings.forEach(o=>{t.push(o.value)}),this.cmdGetResponse=t.join(",")})}issueGetCmdOfBinaryResource(){this.cmdSvc.issueGetBinaryCmd(this.associatedCmdDeviceName,this.selectedCmd.name).subscribe(e=>{let t=CBOR.decode(e);"image/jpeg"===t.mediaType||"image/jpg"===t.mediaType||"image/png"===t.mediaType?(this.cmdBinaryResponse=t.binaryValue,this.cmdBinaryResponseURL=URL.createObjectURL(this.cmdBinaryResponse)):this.cmdBinaryResponse="only image binary is supported"})}issueSetCmd(){var e;let t={};this.parameterBearerList.forEach(o=>{t[o.key]=o.value}),this.cmdSvc.issueSetCmd(this.associatedCmdDeviceName,null===(e=this.selectedCmd)||void 0===e?void 0:e.name,t).subscribe(o=>{this.cmdSetResponseRaw=JSON.stringify(o,null,3),this.cmdSetResponse=o.message})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(r.V),_.Y36(u.D))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-command-viewer"]],inputs:{deviceName:"deviceName"},features:[_.TTD],decls:5,vars:3,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f;return E="\u76F8\u5173\u547D\u4EE4",e=" \u547D\u4EE4\u5217\u8868 ",t="Get \u548C Set",o="\u54CD\u5E94\uFF1A",c="\u539F\u59CB\u54CD\u5E94\uFF1A",s="\u6CA1\u6709Get\u65B9\u6CD5",C="\u54CD\u5E94\uFF1A",v="\u539F\u59CB\u54CD\u5E94\uFF1A",D="\u53C2\u6570\u8BBE\u7F6E",p="\u6CA1\u6709Set\u65B9\u6CD5",h="\u76F8\u5173\u547D\u4EE4",f="\u6CA1\u6709\u76F8\u5173\u547D\u4EE4",[[4,"ngIf","ngIfThen","ngIfElse"],["hasAssociatedCommand",""],["noAssociatedCommand",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"text-primary","mx-2","font-weight-bold"],E,[1,"card-body"],[1,"row"],[1,"col-md-2","col-lg-2"],[1,"card","mb-2"],[1,"card-header","font-weight-bold"],e,[1,"card-body","p-0"],[1,"list-group","list-group-flush"],["role","button","class","list-group-item list-group-item-action",3,"list-group-item-info","click",4,"ngFor","ngForOf"],[1,"col-md-10","col-lg-10"],["class","card",4,"ngIf"],["role","button",1,"list-group-item","list-group-item-action",3,"click"],[1,"card"],[1,"text-primary","font-weight-bold","mr-2"],[1,"fa","fa-thumb-tack","text-danger","mr-1"],t,[1,"card-body","px-2"],[1,"col-md-5","col-lg-5"],["class","btn btn-primary btn-sm float-right",3,"click",4,"ngIf"],[1,"card-body","overflow-auto"],["hasGetMethod",""],["noGetMethod",""],[1,"col-md-7","col-lg-7"],["hasSetMethod",""],["noSetMethod",""],[1,"btn","btn-primary","btn-sm","float-right",3,"click"],[1,"badge","badge-info"],o,["class","ml-2 text-primary",4,"ngIf"],[1,"mt-3"],c,["class","mt-2 bg-secondary p-2 text-light rounded",4,"ngIf"],[1,"ml-2","text-primary"],[1,"mt-2","bg-secondary","p-2","text-light","rounded"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],s,["class","card mb-2",4,"ngIf"],C,v,D,["class","d-flex flex-column bd-highlight",4,"ngIf"],[1,"d-flex","flex-column","bd-highlight"],["class","form p-2 bd-highlight",4,"ngFor","ngForOf"],[1,"form","p-2","bd-highlight"],[4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[3,"for"],[1,"custom-select","custom-select-sm",3,"id","name","ngModel","ngModelChange"],[3,"ngValue"],[1,"form-control","form-control-sm",3,"id","name","ngModel","placeholder","ngModelChange"],p,h,[1,"card-body","text-center"],[1,"fa","fa-warning"],f]},template:function(e,t){if(1&e&&(_.YNc(0,g,1,0,"div",0),_.YNc(1,P_,19,3,"ng-template",null,1,_.W1O),_.YNc(3,O_,13,1,"ng-template",null,2,_.W1O)),2&e){const o=_.MAs(2),c=_.MAs(4);_.Q6J("ngIf",t.deviceCoreCommand)("ngIfThen",o)("ngIfElse",c)}},directives:[n.O5,n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr,a.Fj],styles:[""]}),i})();function h_(i,E){if(1&i&&(_.TgZ(0,"span"),_.TgZ(1,"span",67),_.SDv(2,68),_.qZA(),_.TgZ(3,"span",69),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,70),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(4),_.Oqu(e.associatedSvcName)}}function R_(i,E){if(1&i&&(_.TgZ(0,"span"),_.TgZ(1,"span",67),_.SDv(2,71),_.qZA(),_.TgZ(3,"span",69),_._uU(4),_.qZA(),_.TgZ(5,"span"),_.SDv(6,72),_.qZA(),_.qZA()),2&i){const e=_.oxw();_.xp6(4),_.Oqu(e.associatedProfileName)}}function Z_(i,E){1&i&&(_.TgZ(0,"span"),_.SDv(1,73),_.qZA())}function U_(i,E){if(1&i&&(_.TgZ(0,"span",85),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function V_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.Oqu(e.adminState)}}function L_(i,E){if(1&i&&(_.TgZ(0,"span",85),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}function b_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}function $_(i,E){if(1&i&&(_.TgZ(0,"span",86),_._uU(1),_.qZA()),2&i){const e=_.oxw().$implicit;_.xp6(1),_.hij(" ",e.operatingState,"")}}const x_=function(i){return{profileName:i}};function q_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(o){const s=_.CHM(e).$implicit;return _.oxw().selectOne(o,s)}),_.qZA(),_.qZA(),_.TgZ(3,"td",74),_._uU(4),_.qZA(),_.TgZ(5,"td",74),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_.TgZ(12,"span",75),_.YNc(13,U_,2,1,"span",76),_.YNc(14,V_,2,1,"span",77),_.qZA(),_.qZA(),_.TgZ(15,"td",78),_.TgZ(16,"span",75),_.YNc(17,L_,2,1,"span",76),_.YNc(18,b_,2,1,"span",79),_.YNc(19,$_,2,1,"span",77),_.qZA(),_.qZA(),_.TgZ(20,"td",78),_.TgZ(21,"span",80),_.NdJ("click",function(){const c=_.CHM(e).$implicit,s=_.oxw();return s.setSpecialFeatureViewer(c,s.FEATURE_COMMAND)}),_._UZ(22,"i",81),_.qZA(),_.qZA(),_.TgZ(23,"td",78),_.TgZ(24,"span",80),_.NdJ("click",function(){const c=_.CHM(e).$implicit,s=_.oxw();return s.setSpecialFeatureViewer(c,s.FEATURE_AUTOEVENT)}),_._UZ(25,"i",82),_.qZA(),_.qZA(),_.TgZ(26,"td"),_.TgZ(27,"a",83),_._uU(28),_.qZA(),_.qZA(),_.TgZ(29,"td"),_.TgZ(30,"a",84),_._uU(31),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.id)||t.specialFeatureAssociatedDeviceName===e.name),_.xp6(2),_.Q6J("checked",t.isChecked(e.id)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Q6J("ngSwitch",e.adminState),_.xp6(1),_.Q6J("ngSwitchCase","UNLOCKED"),_.xp6(3),_.Q6J("ngSwitch",e.operatingState),_.xp6(1),_.Q6J("ngSwitchCase","UP"),_.xp6(1),_.Q6J("ngSwitchCase","DOWN"),_.xp6(3),_.ekj("badge-danger",t.specialFeatureName===t.FEATURE_COMMAND&&t.specialFeatureAssociatedDeviceName===e.name),_.xp6(3),_.ekj("badge-danger",t.specialFeatureName===t.FEATURE_AUTOEVENT&&t.specialFeatureAssociatedDeviceName===e.name),_.xp6(3),_.Q6J("queryParams",_.VKq(19,x_,e.profileName)),_.xp6(1),_.Oqu(e.profileName),_.xp6(3),_.Oqu(e.serviceName)}}function X_(i,E){if(1&i&&(_.TgZ(0,"tr"),_.TgZ(1,"td"),_._uU(2),_.qZA(),_.TgZ(3,"td"),_.TgZ(4,"span",99),_._uU(5),_.qZA(),_.qZA(),_.TgZ(6,"td"),_.TgZ(7,"span",100),_._uU(8),_.qZA(),_.qZA(),_.qZA()),2&i){const e=E.$implicit;_.xp6(2),_.Oqu(e.sourceName),_.xp6(3),_.Oqu(e.interval),_.xp6(3),_.Oqu(e.onChange)}}function J_(i,E){if(1&i&&(_.TgZ(0,"div"),_.TgZ(1,"div",89),_.TgZ(2,"div",90),_.TgZ(3,"span",91),_._UZ(4,"i",82),_.qZA(),_.TgZ(5,"span",92),_._uU(6),_.qZA(),_.TgZ(7,"span"),_.SDv(8,93),_.qZA(),_.qZA(),_.TgZ(9,"div",94),_.TgZ(10,"div",19),_.TgZ(11,"table",20),_.TgZ(12,"thead",21),_.TgZ(13,"th",22),_.SDv(14,95),_.qZA(),_.TgZ(15,"th",22),_.SDv(16,96),_.qZA(),_.TgZ(17,"th",22),_.SDv(18,97),_.qZA(),_.qZA(),_.TgZ(19,"tbody"),_.YNc(20,X_,9,3,"tr",98),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw(2);_.xp6(6),_.hij(" ",e.specialFeatureAssociatedDeviceName,""),_.xp6(14),_.Q6J("ngForOf",e.autoEvents)}}function y_(i,E){if(1&i&&(_.TgZ(0,"div",89),_.TgZ(1,"div",90),_.TgZ(2,"span",91),_._UZ(3,"i",82),_.qZA(),_.TgZ(4,"span",92),_._uU(5),_.qZA(),_.TgZ(6,"span"),_.SDv(7,101),_.qZA(),_.qZA(),_.TgZ(8,"div",102),_.TgZ(9,"h5",103),_._UZ(10,"i",58),_.TgZ(11,"span"),_.SDv(12,104),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&i){const e=_.oxw(2);_.xp6(5),_.hij(" ",e.specialFeatureAssociatedDeviceName,"")}}function B_(i,E){if(1&i&&(_.TgZ(0,"div"),_.YNc(1,J_,21,2,"div",87),_.YNc(2,y_,13,1,"ng-template",null,88,_.W1O),_.qZA()),2&i){const e=_.MAs(3),t=_.oxw();_.xp6(1),_.Q6J("ngIf",t.autoEvents)("ngIfElse",e)}}function W_(i,E){if(1&i&&(_.TgZ(0,"div"),_._UZ(1,"app-device-command-viewer",105),_.qZA()),2&i){const e=_.oxw();_.xp6(1),_.Q6J("deviceName",e.specialFeatureAssociatedDeviceName)}}let H_=(()=>{class i{constructor(e,t,o,c){this.metaSvc=e,this.msgSvc=t,this.route=o,this.router=c,this.toolbars=!0,this.enableSelectAll=!0,this.deviceList=[],this.associatedSvcName="",this.associatedProfileName="",this.selectedDevice=[],this.FEATURE_AUTOEVENT="autoevent",this.FEATURE_COMMAND="command",this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>e.svcName?(this.associatedSvcName=e.svcName,void this.getDeviceListByAssociatedSvc(this.associatedSvcName)):e.profileName?(this.associatedProfileName=e.profileName,void this.getDeviceListByAssociatedProfile(this.associatedProfileName)):(this.associatedSvcName="",this.associatedProfileName="",void this.getDeviceListPagination()))}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},250)}getDeviceList(){""===this.associatedSvcName?""===this.associatedProfileName?this.getDeviceListPagination():this.getDeviceListByAssociatedProfile(this.associatedSvcName):this.getDeviceListByAssociatedSvc(this.associatedSvcName)}getDeviceListByAssociatedSvc(e){this.metaSvc.findDevicesByServiceName(this.pageOffset,this.pageLimit,e).subscribe(t=>this.deviceList=t.devices)}getDeviceListByAssociatedProfile(e){this.metaSvc.findDevicesByProfileName(this.pageOffset,this.pageLimit,e).subscribe(t=>this.deviceList=t.devices)}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.deviceList=e.devices})}refresh(){this.associatedProfileName="",this.associatedSvcName="",this.metaSvc.allDevicesPagination(0,this.pageLimit).subscribe(e=>{this.deviceList=e.devices,this.msgSvc.success("refresh"),this.resetPagination()})}edit(){this.router.navigate(["../edit-device"],{relativeTo:this.route,queryParams:{deviceName:this.selectedDevice[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedDevice.forEach((e,t)=>{this.metaSvc.deleteOneDeviceByName(e.name).subscribe(()=>{this.selectedDevice.splice(t,1),this.deviceList.forEach((o,c)=>{if(o.id===e.id)return this.deviceList.splice(c,1),void this.msgSvc.success("remove device ",` Name: ${o.name}`)})})}),this.specialFeatureName=void 0,$("#deleteConfirmDialog").modal("hide")}setSpecialFeatureViewer(e,t){switch(this.specialFeatureAssociatedDeviceName=e.name,this.specialFeatureName=t,this.specialFeatureName){case this.FEATURE_AUTOEVENT:this.autoEvents=e.autoEvents}}isCheckedAll(){let e=!0;return this.deviceList&&0===this.deviceList.length&&(e=!1),this.deviceList.forEach(t=>{-1===this.selectedDevice.findIndex(o=>o.name===t.name)&&(e=!1)}),e}selectAll(e){this.deviceList.forEach(e.target.checked?o=>{-1===this.selectedDevice.findIndex(c=>c.name===o.name)&&this.selectedDevice.push(o)}:o=>{this.selectedDevice.forEach((c,s)=>{c.name===o.name&&this.selectedDevice.splice(s,1)})})}isChecked(e){return this.selectedDevice.findIndex(t=>t.id===e)>=0}selectOne(e,t){e.target.checked?this.selectedDevice.push(t):this.selectedDevice.forEach((c,s)=>{c.name===t.name&&this.selectedDevice.splice(s,1)})}onPageSelected(){this.resetPagination(),this.getDeviceList()}prePage(){this.setPagination(-1),this.getDeviceList()}nextPage(){this.setPagination(1),this.getDeviceList()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(T.gz),_.Y36(T.F0))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-list"]],inputs:{toolbars:"toolbars",enableSelectAll:"enableSelectAll"},decls:98,vars:12,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L,P,O,c_,s_,a_,l_,r_,A_,d_,C_,T_,g_,D_,S_,I_,p_,u_,f_;return E="\u5237\u65B0",e="\u6DFB\u52A0",t="\u7F16\u8F91",o="\u5220\u9664",c="ID",s="\u540D\u5B57",C="\u63CF\u8FF0",v="\u6807\u7B7E",D="\u7BA1\u7406\u72B6\u6001",p="\u64CD\u4F5C\u72B6\u6001",h="\u547D\u4EE4",f="\u81EA\u52A8\u91C7\u96C6",N="\u76F8\u5173\u8BBE\u5907\u5143\u4FE1\u606F",L="\u76F8\u5173\u8BBE\u5907\u670D\u52A1",P="\u6BCF\u9875\u6761\u76EE",O="\u4E0A\u4E00\u9875",c_="\u4E0B\u4E00\u9875",s_="\u8B66\u544A",a_="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",l_="\u53D6\u6D88",r_="\u786E\u8BA4",A_="\u8BBE\u5907\u670D\u52A1",d_="\u76F8\u5173\u8BBE\u5907\u5217\u8868",C_="\u8BBE\u5907\u5143\u4FE1\u606F",T_="\u76F8\u5173\u8BBE\u5907\u5217\u8868",g_="\u8BBE\u5907\u5217\u8868",D_="\u76F8\u5173\u81EA\u52A8\u91C7\u96C6",S_="\u8D44\u6E90",I_="\u5355\u4F4D\u95F4\u9694",p_="Onchange",u_="\u76F8\u5173\u81EA\u52A8\u91C7\u96C6",f_="\u65E0\u76F8\u5173\u81EA\u52A8\u91C7\u96C6",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],[4,"ngIf"],[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["data-testid","device-list-refresh-btn",1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],E,["type","button","routerLink","../add-device",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],e,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],t,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],o,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],c,s,C,v,D,p,h,f,N,L,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],P,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],O,[1,"page-item"],c_,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],s_,[1,"modal-body"],a_,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],l_,["type","button",1,"btn","btn-danger",3,"click"],r_,[1,"mr-1"],A_,[1,"text-danger","mr-1"],d_,C_,T_,g_,[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-terminal","font-weight-bolder"],[1,"fa","fa-calendar-check-o","font-weight-bolder"],["routerLink","../../device-profile-center",3,"queryParams"],["routerLink","../../device-service-list"],[1,"badge","badge-success"],[1,"badge","badge-danger"],[4,"ngIf","ngIfElse"],["noAutoEvents",""],[1,"card","mt-3"],[1,"card-header"],[1,"badge","badge-danger","text-light"],[1,"text-primary","mx-2","font-weight-bold"],D_,[1,"card-body","p-0"],S_,I_,p_,[4,"ngFor","ngForOf"],[1,"badge","badge-secondary","badge-pill"],[1,""],u_,[1,"card-body","text-center"],[1,"text-warning"],f_,[3,"deviceName"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.YNc(3,h_,7,1,"span",3),_.YNc(4,R_,7,1,"span",3),_.YNc(5,Z_,2,0,"span",3),_.qZA(),_.TgZ(6,"div",4),_.TgZ(7,"div",5),_.TgZ(8,"div",6),_.TgZ(9,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(10,"span"),_._UZ(11,"i",8),_.TgZ(12,"span"),_.SDv(13,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(14,"button",10),_.TgZ(15,"span"),_._UZ(16,"i",11),_.TgZ(17,"span"),_.SDv(18,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(20,"span"),_._UZ(21,"i",14),_.TgZ(22,"span"),_.SDv(23,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(25,"span"),_._UZ(26,"i",17),_.TgZ(27,"span"),_.SDv(28,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(29,"div",19),_.TgZ(30,"table",20),_.TgZ(31,"thead",21),_.TgZ(32,"tr"),_.TgZ(33,"th",22),_.TgZ(34,"input",23),_.NdJ("click",function(c){return t.selectAll(c)}),_.qZA(),_.qZA(),_.TgZ(35,"th",22),_.SDv(36,24),_.qZA(),_.TgZ(37,"th",22),_.SDv(38,25),_.qZA(),_.TgZ(39,"th",22),_.SDv(40,26),_.qZA(),_.TgZ(41,"th",22),_.SDv(42,27),_.qZA(),_.TgZ(43,"th",22),_.SDv(44,28),_.qZA(),_.TgZ(45,"th",22),_.SDv(46,29),_.qZA(),_.TgZ(47,"th",22),_.SDv(48,30),_.qZA(),_.TgZ(49,"th",22),_.SDv(50,31),_.qZA(),_.TgZ(51,"th",22),_.SDv(52,32),_.qZA(),_.TgZ(53,"th",22),_.SDv(54,33),_.qZA(),_.qZA(),_.qZA(),_.TgZ(55,"tbody"),_.YNc(56,q_,32,21,"tr",34),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(57,"div",35),_.TgZ(58,"nav",36),_.TgZ(59,"ul",37),_.TgZ(60,"li",38),_.TgZ(61,"span",39),_.SDv(62,40),_.qZA(),_.qZA(),_.TgZ(63,"li",41),_.TgZ(64,"select",42),_.NdJ("ngModelChange",function(c){return t.pageLimit=c})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(65,"option",43),_._uU(66,"5"),_.qZA(),_.TgZ(67,"option",44),_._uU(68,"10"),_.qZA(),_.TgZ(69,"option",45),_._uU(70,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(71,"li",46),_.TgZ(72,"button",47),_.NdJ("click",function(){return t.prePage()}),_._UZ(73,"i",48),_.TgZ(74,"span"),_.SDv(75,49),_.qZA(),_.qZA(),_.qZA(),_.TgZ(76,"li",50),_.TgZ(77,"button",47),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(78,"span"),_.SDv(79,51),_.qZA(),_._UZ(80,"i",52),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(81,B_,4,2,"div",3),_.YNc(82,W_,2,1,"div",3),_.TgZ(83,"div",53),_.TgZ(84,"div",54),_.TgZ(85,"div",55),_.TgZ(86,"div",56),_.TgZ(87,"h5",57),_._UZ(88,"i",58),_.TgZ(89,"span"),_.SDv(90,59),_.qZA(),_.qZA(),_.qZA(),_.TgZ(91,"div",60),_.SDv(92,61),_.qZA(),_.TgZ(93,"div",62),_.TgZ(94,"button",63),_.SDv(95,64),_.qZA(),_.TgZ(96,"button",65),_.NdJ("click",function(){return t.delete()}),_.SDv(97,66),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(3),_.Q6J("ngIf",""!==t.associatedSvcName),_.xp6(1),_.Q6J("ngIf",""!==t.associatedProfileName),_.xp6(1),_.Q6J("ngIf",""===t.associatedProfileName&&""===t.associatedSvcName),_.xp6(14),_.Q6J("disabled",1!==t.selectedDevice.length),_.xp6(5),_.Q6J("disabled",0===t.selectedDevice.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(22),_.Q6J("ngForOf",t.deviceList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.deviceList.length),_.xp6(4),_.Q6J("ngIf",t.specialFeatureName===t.FEATURE_AUTOEVENT),_.xp6(1),_.Q6J("ngIf",t.specialFeatureName===t.FEATURE_COMMAND))},directives:[n.O5,T.rH,n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr,n.RF,n.n9,n.ED,T.yS,G_],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();class w_{constructor(){this.Schema="",this.Host="",this.Port="",this.User="",this.Password="",this.ClientId="",this.CommandTopic=""}}class F_{constructor(){this.Address="",this.Port="",this.UnitID="",this.Timeout="",this.IdleTimeout=""}}class k_{constructor(){this.Address="",this.UnitID="",this.BaudRate="",this.DataBits="",this.StopBits="",this.Parity="",this.Timeout="",this.IdleTimeout=""}}class z_{constructor(){this.Address="",this.Port=""}}class Y_{constructor(){this.Address="",this.Port="",this.MACAddress=""}}class Q_{constructor(){this.host="",this.port=""}}function j_(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",10),_.TgZ(1,"span",11),_.NdJ("click",function(){_.CHM(e);const o=_.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_BUILT_IN)}),_._UZ(2,"i",12),_.TgZ(3,"span"),_.SDv(4,13),_.qZA(),_.qZA(),_.TgZ(5,"span",14),_.NdJ("click",function(){_.CHM(e);const o=_.oxw(2);return o.changeProtocolTemplateMode(o.TEMPLATE_CUSTOM)}),_._UZ(6,"i",12),_.TgZ(7,"span"),_.SDv(8,15),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(2);_.xp6(1),_.ekj("badge-primary",e.protocolTemplateMode===e.TEMPLATE_BUILT_IN)("badge-secondary",e.protocolTemplateMode!==e.TEMPLATE_BUILT_IN),_.xp6(1),_.ekj("fa-check-square",e.protocolTemplateMode===e.TEMPLATE_BUILT_IN),_.xp6(3),_.ekj("badge-primary",e.protocolTemplateMode===e.TEMPLATE_CUSTOM)("badge-secondary",e.protocolTemplateMode!==e.TEMPLATE_CUSTOM),_.xp6(1),_.ekj("fa-check-square",e.protocolTemplateMode===e.TEMPLATE_CUSTOM)}}function K_(i,E){1&i&&_._UZ(0,"div")}function _e(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form",34),_.TgZ(2,"div",35),_.TgZ(3,"div",36),_.TgZ(4,"span",37),_.SDv(5,38),_.qZA(),_.qZA(),_._UZ(6,"input",39),_.qZA(),_.TgZ(7,"div",40),_._UZ(8,"i",41),_.qZA(),_.TgZ(9,"div",35),_.TgZ(10,"div",36),_.TgZ(11,"span",37),_.SDv(12,42),_.qZA(),_.qZA(),_.TgZ(13,"input",43),_.NdJ("ngModelChange",function(o){const s=_.CHM(e).$implicit;return _.oxw(4).builtinProtocolTemplateSelected[s]=o}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw(4);_.xp6(6),_.Q6J("value",e),_.xp6(7),_.Q6J("ngModel",t.builtinProtocolTemplateSelected[e])}}function ee(i,E){if(1&i&&(_.TgZ(0,"div"),_.YNc(1,_e,14,2,"div",33),_.qZA()),2&i){const e=_.oxw(3);_.xp6(1),_.Q6J("ngForOf",e.builtinProtocolTemplateProperties)}}function te(i,E){1&i&&(_.TgZ(0,"h5",48),_._UZ(1,"i",49),_.TgZ(2,"span"),_.SDv(3,50),_.qZA(),_.qZA())}function ie(i,E){if(1&i&&(_.TgZ(0,"div"),_._UZ(1,"span",44),_.TgZ(2,"span",45),_.SDv(3,46),_.qZA(),_.qZA(),_.YNc(4,te,4,0,"h5",47)),2&i){const e=_.oxw(3);_.xp6(4),_.Q6J("ngIf",0===e.builtinProtocolTemplateProperties.length&&e.builtinProtocolName)}}function ne(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",16),_.TgZ(1,"div",17),_.TgZ(2,"form"),_.TgZ(3,"div",18),_.TgZ(4,"label"),_.SDv(5,19),_.qZA(),_.TgZ(6,"select",20),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw(2).builtinProtocolName=o})("ngModelChange",function(){return _.CHM(e),_.oxw(2).onSelectBuiltinProtocolTemplate()}),_.TgZ(7,"option",21),_._uU(8,"device-mqtt"),_.qZA(),_.TgZ(9,"option",22),_._uU(10,"device-rest"),_.qZA(),_.TgZ(11,"option",23),_._uU(12,"device-virtual"),_.qZA(),_.TgZ(13,"option",24),_._uU(14,"device-modbus-tcp"),_.qZA(),_.TgZ(15,"option",25),_._uU(16,"device-modbus-rtu"),_.qZA(),_.TgZ(17,"option",26),_._uU(18,"device-onvif-camera"),_.qZA(),_.TgZ(19,"option",27),_._uU(20,"device-rfid-llrp"),_.qZA(),_.qZA(),_.TgZ(21,"div",28),_.TgZ(22,"small"),_.SDv(23,29),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"div",30),_.YNc(25,ee,2,1,"div",31),_.YNc(26,ie,5,1,"ng-template",null,32,_.W1O),_.qZA(),_.qZA()}if(2&i){const e=_.MAs(27),t=_.oxw(2);_.xp6(6),_.ekj("is-invalid",!t.builtinProtocolName)("is-valid",t.builtinProtocolName),_.Q6J("ngModel",t.builtinProtocolName),_.xp6(19),_.Q6J("ngIf",0!==t.builtinProtocolTemplateProperties.length)("ngIfElse",e)}}function oe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form",34),_.TgZ(2,"div",35),_.TgZ(3,"div",36),_.TgZ(4,"span",37),_.SDv(5,60),_.qZA(),_.qZA(),_.TgZ(6,"input",61),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.propertyName=o}),_.qZA(),_.qZA(),_.TgZ(7,"div",40),_._UZ(8,"i",41),_.qZA(),_.TgZ(9,"div",35),_.TgZ(10,"div",36),_.TgZ(11,"span",37),_.SDv(12,62),_.qZA(),_.qZA(),_.TgZ(13,"input",63),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.propertyValue=o}),_.qZA(),_.qZA(),_.TgZ(14,"div",64),_.TgZ(15,"button",65),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw(3).removeCustomProtocolProperty(c)}),_._UZ(16,"i",66),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit;_.xp6(6),_.Q6J("ngModel",e.propertyName),_.xp6(7),_.Q6J("ngModel",e.propertyValue)}}function Ee(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",16),_.TgZ(1,"div",51),_.TgZ(2,"div",18),_.TgZ(3,"label"),_.SDv(4,52),_.qZA(),_.TgZ(5,"input",53),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw(2).customProtocolName=o})("ngModelChange",function(){return _.CHM(e),_.oxw(2).onCustomProtocolNameChange()}),_.qZA(),_.TgZ(6,"div",28),_.TgZ(7,"small"),_.SDv(8,54),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",55),_.TgZ(10,"div"),_.TgZ(11,"p",56),_._UZ(12,"span",57),_.TgZ(13,"span",58),_.NdJ("click",function(){return _.CHM(e),_.oxw(2).addCustomProtocolProperty()}),_.SDv(14,59),_.qZA(),_.qZA(),_.qZA(),_.YNc(15,oe,17,2,"div",33),_.qZA(),_.qZA()}if(2&i){const e=_.oxw(2);_.xp6(5),_.ekj("is-invalid",!e.customProtocolName)("is-valid",e.customProtocolName),_.Q6J("ngModel",e.customProtocolName),_.xp6(10),_.Q6J("ngForOf",e.customProtocolPropertyBearer)}}function ce(i,E){if(1&i&&(_.TgZ(0,"div",0),_.TgZ(1,"div",4),_.YNc(2,j_,9,12,"div",6),_.YNc(3,K_,1,0,"div",7),_.YNc(4,ne,28,7,"ng-template",null,8,_.W1O),_.YNc(6,Ee,16,6,"ng-template",null,9,_.W1O),_.qZA(),_.qZA()),2&i){const e=_.MAs(5),t=_.MAs(7),o=_.oxw();_.xp6(2),_.Q6J("ngIf",o.mode===o.MODE_ADD),_.xp6(1),_.Q6J("ngIf",o.protocolTemplateMode===o.TEMPLATE_CUSTOM)("ngIfThen",t)("ngIfElse",e)}}let K=(()=>{class i{constructor(){this.MODE_ADD="add",this.MODE_EDIT="edit",this.deviceProtocols={},this.isValid=!1,this.isValidChange=new _.vpe,this.TEMPLATE_CUSTOM="custom",this.TEMPLATE_BUILT_IN="built-in",this.customProtocolPropertyBearer=[],this.builtinProtocolTemplateProperties=[]}ngOnInit(){if(this.mode){if(this.mode==this.MODE_EDIT)return this.protocolTemplateMode=this.TEMPLATE_CUSTOM,this.extractProtocolName(),this.customProtocolName=this.protocolName?this.protocolName:"",void this.setCustomProtocolPropertysBearer();this.mode==this.MODE_ADD&&(this.protocolTemplateMode=this.TEMPLATE_BUILT_IN),this.validate()}}extractProtocolName(){!this.deviceProtocols||0===Object.keys(this.deviceProtocols).length||(this.protocolName=Object.keys(this.deviceProtocols)[0])}onSelectBuiltinProtocolTemplate(){switch(this.validate(),this.builtinProtocolName){case"mqtt":this.builtinProtocolTemplateSelected=new w_;break;case"modbus-tcp":this.builtinProtocolTemplateSelected=new F_;break;case"modbus-rtu":this.builtinProtocolTemplateSelected=new k_;break;case"other":this.builtinProtocolTemplateSelected=new z_;break;case"other-rest":this.builtinProtocolTemplateSelected={};break;case"Onvif":this.builtinProtocolTemplateSelected=new Y_;break;case"tcp":this.builtinProtocolTemplateSelected=new Q_;break;default:this.builtinProtocolTemplateSelected={}}this.builtinProtocolTemplateProperties=Object.keys(this.builtinProtocolTemplateSelected)}changeProtocolTemplateMode(e){this.protocolTemplateMode=e,this.validate()}onCustomProtocolNameChange(){this.validate()}setCustomProtocolPropertysBearer(){if(this.customProtocolName)for(const[e,t]of Object.entries(this.deviceProtocols[this.customProtocolName]))this.customProtocolPropertyBearer.push({propertyName:e,propertyValue:t})}addCustomProtocolProperty(){this.customProtocolPropertyBearer.push({propertyName:"",propertyValue:""})}removeCustomProtocolProperty(e){this.customProtocolPropertyBearer.splice(this.customProtocolPropertyBearer.indexOf(e),1)}getDeviceProtocols(){if(this.deviceProtocols={},this.protocolTemplateMode===this.TEMPLATE_BUILT_IN)this.deviceProtocols[this.builtinProtocolName]=Object.assign({},this.builtinProtocolTemplateSelected);else{let e={};this.customProtocolPropertyBearer.forEach(t=>{e[t.propertyName]=t.propertyValue}),this.deviceProtocols[this.customProtocolName]=e}return this.deviceProtocols}validate(){switch(this.isValid=!0,this.protocolTemplateMode){case this.TEMPLATE_BUILT_IN:this.builtinProtocolName||(this.isValid=!1);break;default:this.customProtocolName||(this.isValid=!1)}this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-protocol"]],inputs:{mode:"mode",deviceProtocols:"deviceProtocols",isValid:"isValid"},outputs:{isValidChange:"isValidChange"},decls:7,vars:1,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L;return E="\u8BBE\u5907\u534F\u8BAE",e="\u53EF\u5229\u7528\u7684\u534F\u8BAE\u6A21\u677F",t="\u81EA\u5B9A\u4E49\u534F\u8BAE\u6A21\u677F",o="\u534F\u8BAE\u540D\u5B57",c="\u534F\u8BAE\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",s="PropertyName",C="PropertyVaule",v=" all built-in protocol templates refer to the device service released by edgex, such as device-virtual, device-rest, device-mqtt, device-modbus ",D="\u8BE5\u8BBE\u5907\u670D\u52A1\u4E0D\u9700\u8981\u8BBE\u7F6E\u901A\u4FE1\u534F\u8BAE",p="\u534F\u8BAE\u540D\u5B57",h="\u534F\u8BAE\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",f="\u6DFB\u52A0\u534F\u8BAE\u5C5E\u6027",N="PropertyName",L="PropertyValue",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],E,[1,"card-body"],["class","card",4,"ngIf"],["class","mb-2",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["builtinProtocolTemplate",""],["customProtocolTemplate",""],[1,"mb-2"],["role","button",1,"user-select-none","badge","font-weight-bold","mr-3",3,"click"],[1,"fa","fa-square-o","mr-1"],e,["role","button",1,"user-select-none","badge","font-weight-bold",3,"click"],t,[1,"row","border","border-secondary","p-2","rounded-lg","mx-1"],[1,"col-md-2","border-right","border-info"],[1,"form-group"],o,["type","text","name","builtinProtocolName","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","mqtt"],["value","other-rest"],["value","other"],["value","modbus-tcp"],["value","modbus-rtu"],["value","Onvif"],["value","tcp"],[1,"invalid-feedback"],c,[1,"col-md-10"],[4,"ngIf","ngIfElse"],["noBuiltinProperties",""],[4,"ngFor","ngForOf"],[1,"form-inline","mb-1"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],s,["type","text","disabled","",1,"form-control",2,"width","300px",3,"value"],[1,"form-group","mx-2"],[1,"fa","fa-long-arrow-right"],C,["type","text","name","property",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"fa","fa-info-circle","fa-lg","text-success","font-weight-bold","mr-1"],[1,"text-muted"],v,["class","text-warning",4,"ngIf"],[1,"text-warning"],[1,"fa","fa-warning","mr-1"],D,[1,"col-md-2","col-lg-2","border-right","border-secondary"],p,["type","text","name","customProtocolName",1,"form-control",3,"ngModel","ngModelChange"],h,[1,"col-md-10","col-lg-10"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],f,N,["type","text","name","propertyName",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],L,["type","text","name","PropertyValue",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.YNc(6,ce,8,4,"div",5),_.qZA(),_.qZA()),2&e&&(_.xp6(6),_.Q6J("ngIf",t.mode))},directives:[n.O5,a._Y,a.JL,a.F,a.EJ,a.Q7,a.JJ,a.On,a.YN,a.Kr,n.sg,a.Fj],styles:[""]}),i})();var __=d(4889);function se(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",35),_.NdJ("click",function(o){const s=_.CHM(e).$implicit;return _.oxw().selectOneSvc(o,s.name)}),_.qZA(),_.qZA(),_.TgZ(3,"td"),_._uU(4),_.qZA(),_.TgZ(5,"td"),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.ALo(15,"date"),_.qZA(),_.TgZ(16,"td"),_._uU(17),_.ALo(18,"date"),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.ekj("table-active",t.isSvcChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isSvcChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Oqu(e.adminState),_.xp6(2),_.Oqu(_.xi3(15,10,e.created,"yyyy-MM-dd hh:mm:ss")),_.xp6(3),_.Oqu(_.xi3(18,13,e.modified,"yyyy-MM-dd hh:mm:ss"))}}let n_=(()=>{class i{constructor(e){this.metaSvc=e,this.singleDeviceSvcSelectedEvent=new _.vpe,this.deviceServiceList=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllDeviceSvcPagination()}findAllDeviceSvcPagination(){this.metaSvc.findAllDeviceServicesPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.deviceServiceList=e.services})}onSingleDeviceSvcSelectedEmitter(){this.singleDeviceSvcSelectedEvent.emit(this.deviceSvcSelected)}isSvcChecked(e){var t;return(null===(t=this.deviceSvcSelected)||void 0===t?void 0:t.name)===e}selectOneSvc(e,t){let c=this;e.target.checked?this.deviceServiceList.forEach(function(s){s.name===t&&(c.deviceSvcSelected=s)}):this.deviceSvcSelected=void 0,this.onSingleDeviceSvcSelectedEmitter()}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceSvcPagination()}prePage(){this.setPagination(-1),this.findAllDeviceSvcPagination()}nextPage(){this.setPagination(1),this.findAllDeviceSvcPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-service-list"]],inputs:{deviceSvcSelected:"deviceSvcSelected"},outputs:{singleDeviceSvcSelectedEvent:"singleDeviceSvcSelectedEvent"},decls:52,vars:4,consts:function(){let E,e,t,o,c,s,C,v,D,p,h;return E="\u8BBE\u5907\u670D\u52A1\u5217\u8868",e="ID",t="\u540D\u5B57",o="\u63CF\u8FF0",c="\u6807\u7B7E",s="\u7BA1\u7406\u72B6\u6001",C="\u521B\u5EFA\u65F6\u95F4",v="\u4FEE\u6539\u65F6\u95F4",D="\u6BCF\u9875\u6761\u76EE",p="\u4E0A\u4E00\u9875",h="\u4E0B\u4E00\u9875",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","mr-2","text-danger"],E,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],e,t,o,c,s,C,v,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],D,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],p,[1,"page-item"],h,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"table",6),_.TgZ(8,"thead",7),_.TgZ(9,"tr"),_.TgZ(10,"th",8),_._uU(11,"#"),_.qZA(),_.TgZ(12,"th",8),_.SDv(13,9),_.qZA(),_.TgZ(14,"th",8),_.SDv(15,10),_.qZA(),_.TgZ(16,"th",8),_.SDv(17,11),_.qZA(),_.TgZ(18,"th",8),_.SDv(19,12),_.qZA(),_.TgZ(20,"th",8),_.SDv(21,13),_.qZA(),_.TgZ(22,"th",8),_.SDv(23,14),_.qZA(),_.TgZ(24,"th",8),_.SDv(25,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"tbody"),_.YNc(27,se,19,16,"tr",16),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",17),_.TgZ(29,"nav",18),_.TgZ(30,"ul",19),_.TgZ(31,"li",20),_.TgZ(32,"span",21),_.SDv(33,22),_.qZA(),_.qZA(),_.TgZ(34,"li",23),_.TgZ(35,"select",24),_.NdJ("ngModelChange",function(c){return t.pageLimit=c})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(36,"option",25),_._uU(37,"5"),_.qZA(),_.TgZ(38,"option",26),_._uU(39,"10"),_.qZA(),_.TgZ(40,"option",27),_._uU(41,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(42,"li",28),_.TgZ(43,"button",29),_.NdJ("click",function(){return t.prePage()}),_._UZ(44,"i",30),_.TgZ(45,"span"),_.SDv(46,31),_.qZA(),_.qZA(),_.qZA(),_.TgZ(47,"li",32),_.TgZ(48,"button",29),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(49,"span"),_.SDv(50,33),_.qZA(),_._UZ(51,"i",34),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(27),_.Q6J("ngForOf",t.deviceServiceList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.deviceServiceList.length))},directives:[n.sg,a.EJ,a.JJ,a.On,a.YN,a.Kr],pipes:[n.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();var t_=d(2822);function ae(i,E){if(1&i&&(_.TgZ(0,"option",37),_._uU(1),_.qZA()),2&i){const e=E.$implicit;_.s9C("value",e),_.xp6(1),_.Oqu(e)}}function le(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",10),_.TgZ(1,"div",4),_.TgZ(2,"form"),_.TgZ(3,"div",11),_.TgZ(4,"label",12),_.SDv(5,13),_.qZA(),_.TgZ(6,"div",14),_.TgZ(7,"div",15),_.TgZ(8,"input",16),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.interval=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.qZA(),_.TgZ(9,"div",17),_.TgZ(10,"select",18),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.unit=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.TgZ(11,"option",19),_._uU(12,"millisecond"),_.qZA(),_.TgZ(13,"option",20),_._uU(14,"second"),_.qZA(),_.TgZ(15,"option",21),_._uU(16,"minute"),_.qZA(),_.TgZ(17,"option",22),_._uU(18,"hour"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",23),_.SDv(20,24),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(21,"div",25),_.TgZ(22,"label",12),_.SDv(23,26),_.qZA(),_.TgZ(24,"div",14),_.TgZ(25,"select",27),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.onChange=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.TgZ(26,"option",28),_._uU(27,"true"),_.qZA(),_.TgZ(28,"option",29),_._uU(29,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",25),_.TgZ(31,"label",12),_.SDv(32,30),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"select",31),_.NdJ("ngModelChange",function(o){return _.CHM(e).$implicit.resource=o})("ngModelChange",function(){return _.CHM(e),_.oxw().onValueChange()}),_.YNc(35,ae,2,2,"option",32),_.qZA(),_.TgZ(36,"div",23),_.SDv(37,33),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"button",34),_.NdJ("click",function(){const c=_.CHM(e).$implicit;return _.oxw().removeAutoEvent(c)}),_._UZ(39,"i",35),_.TgZ(40,"span"),_.SDv(41,36),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=E.$implicit,t=_.oxw();_.xp6(8),_.ekj("is-invalid",!t.eventIntervalNumType(e.interval))("is-valid",t.eventIntervalNumType(e.interval)),_.Q6J("ngModel",e.interval),_.xp6(2),_.Q6J("ngModel",e.unit),_.xp6(15),_.Q6J("ngModel",e.onChange),_.xp6(9),_.ekj("is-invalid",""===e.resource)("is-valid",""!==e.resource),_.Q6J("ngModel",e.resource),_.xp6(1),_.Q6J("ngForOf",t.autoEventResourceNameSet)}}let o_=(()=>{class i{constructor(){this.autoEvents=[],this.autoEventsChange=new _.vpe,this.isValid=!1,this.isValidChange=new _.vpe,this.autoEventDecoratorBearer=[],this.autoEventResourceNameSet=[]}ngOnInit(){}ngOnChanges(){this.resetAutoEventDecoratorBearer(),this.setAutoEventDecorator(this.autoEvents),this.setupAutoEventResourceNameSet(this.deviceProfile),this.resumeOriginalAutoEvents()}onValueChange(){this.resumeOriginalAutoEvents()}resetAutoEventDecoratorBearer(){this.autoEventDecoratorBearer.splice(0,this.autoEventDecoratorBearer.length)}addAutoEvent(){this.autoEventDecoratorBearer.push({interval:"",onChange:!1,resource:"",unit:"ms"}),this.resumeOriginalAutoEvents()}removeAutoEvent(e){this.autoEventDecoratorBearer.splice(this.autoEventDecoratorBearer.indexOf(e),1),this.resumeOriginalAutoEvents()}setupAutoEventResourceNameSet(e){!e||(this.autoEventResourceNameSet.splice(0,this.autoEventResourceNameSet.length),e.deviceResources.forEach((t,o)=>{this.autoEventResourceNameSet.push(t.name)}),e.deviceCommands.forEach((t,o)=>{this.autoEventResourceNameSet.push(t.name)}))}eventIntervalNumType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}setAutoEventDecorator(e){!e||e.forEach(t=>{let o=0;-1!==t.interval.indexOf("ms")?o=t.interval.indexOf("ms"):-1!==t.interval.indexOf("s")?o=t.interval.indexOf("s"):-1!==t.interval.indexOf("m")?o=t.interval.indexOf("m"):-1!==t.interval.indexOf("h")&&(o=t.interval.indexOf("h")),this.autoEventDecoratorBearer.push({interval:t.interval.slice(0,o),onChange:!!t.onChange&&t.onChange,resource:t.sourceName,unit:t.interval.substring(o)})})}resumeOriginalAutoEvents(){this.autoEvents?this.autoEvents.splice(0,this.autoEvents.length):this.autoEvents=[],this.autoEventDecoratorBearer.forEach(e=>{this.autoEvents.push({interval:`${e.interval}${e.unit}`,onChange:!!e.onChange,sourceName:e.resource})}),this.validate(),this.autoEventsChange.emit(this.autoEvents)}validate(){this.isValid=!0,0!==this.autoEventDecoratorBearer.length&&this.autoEventDecoratorBearer.forEach(e=>{this.eventIntervalNumType(e.interval)&&""!==e.resource||(this.isValid=!1)}),this.isValidChange.emit(this.isValid)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-auto-event"]],inputs:{autoEvents:"autoEvents",deviceProfile:"deviceProfile",isValid:"isValid"},outputs:{autoEventsChange:"autoEventsChange",isValidChange:"isValidChange"},features:[_.TTD],decls:11,vars:1,consts:function(){let E,e,t,o,c,s,C,v;return E="\u81EA\u52A8\u91C7\u96C6",e="\u6DFB\u52A0\u66F4\u591A\u81EA\u52A8\u91C7\u96C6\u4E8B\u4EF6",t="\u5355\u4F4D\u95F4\u9694",o=" can only be a pure integer number ",c="onchange",s="\u8BBE\u5907\u8D44\u6E90",C=" resource can't be empty ",v="\u5220\u9664",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],E,[1,"card-body"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],e,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"form-group","row","has-validation"],[1,"col-md-2","col-form-label"],t,[1,"col-md-10"],[1,"input-group","mb-3",2,"width","250px"],["type","text","name","interval","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["name","eventIntervalUnit","required","",1,"custom-select",3,"ngModel","ngModelChange"],["value","ms"],["value","s"],["value","m"],["value","h"],[1,"invalid-feedback"],o,[1,"form-group","row"],c,["name","onchange",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],["value","true"],["value","false"],s,["name","resource","required","",1,"custom-select",2,"width","250px",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],C,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],v,[3,"value"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"p",5),_._UZ(7,"span",6),_.TgZ(8,"span",7),_.NdJ("click",function(){return t.addAutoEvent()}),_.SDv(9,8),_.qZA(),_.qZA(),_.YNc(10,le,42,13,"div",9),_.qZA(),_.qZA()),2&e&&(_.xp6(10),_.Q6J("ngForOf",t.autoEventDecoratorBearer))},directives:[n.sg,a._Y,a.JL,a.F,a.Fj,a.Q7,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),i})();function re(i,E){1&i&&_._UZ(0,"i",33)}function Ae(i,E){1&i&&_._UZ(0,"i",33)}function de(i,E){1&i&&_._UZ(0,"i",33)}function Ce(i,E){1&i&&_._UZ(0,"i",33)}function Te(i,E){1&i&&_._UZ(0,"i",33)}function ge(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",34),_.NdJ("click",function(){return _.CHM(e),_.oxw().previous()}),_._UZ(1,"i",35),_.TgZ(2,"span"),_.SDv(3,36),_.qZA(),_.qZA()}}function De(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",37),_.NdJ("click",function(){return _.CHM(e),_.oxw().next()}),_.TgZ(1,"span"),_.SDv(2,38),_.qZA(),_._UZ(3,"i",39),_.qZA()}if(2&i){const e=_.oxw();_.Q6J("disabled",e.stepStateLock())}}function Se(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"button",40),_.NdJ("click",function(){return _.CHM(e),_.oxw().submit()}),_._UZ(1,"i",41),_.TgZ(2,"span"),_.SDv(3,42),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.Q6J("disabled",e.stepStateLock())}}function Ie(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",43),_.TgZ(1,"app-device-service-list",44),_.NdJ("singleDeviceSvcSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleDeviceSvcSelected(o)}),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(1),_.Q6J("deviceSvcSelected",e.selectedSvc)}}function pe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",43),_.TgZ(1,"app-device-profile-list",45),_.NdJ("singleProfileSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleProfileSelected(o)}),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(1),_.Q6J("singleProfileSelected",e.selectedProfile)("enableSelectAll",!1)("toolbars",!1)("associatedDeviceColumn",!1)}}function ue(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"form",46),_.TgZ(1,"div",47),_.TgZ(2,"label",48),_.SDv(3,49),_.qZA(),_.TgZ(4,"div",50),_.TgZ(5,"input",51),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.name=o}),_.qZA(),_.TgZ(6,"div",52),_.TgZ(7,"small"),_.SDv(8,53),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",54),_.TgZ(10,"label",55),_.SDv(11,56),_.qZA(),_.TgZ(12,"div",50),_.TgZ(13,"input",57),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(14,"div",54),_.TgZ(15,"label",58),_.SDv(16,59),_.qZA(),_.TgZ(17,"div",50),_.TgZ(18,"input",60),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceLabels=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",54),_.TgZ(20,"label",61),_.SDv(21,62),_.qZA(),_.TgZ(22,"div",50),_.TgZ(23,"select",63),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().newDevice.adminState=o}),_.TgZ(24,"option",64),_._uU(25,"UNLOCKED"),_.qZA(),_.TgZ(26,"option",65),_._uU(27,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(5),_.ekj("is-invalid",!e.newDevice.name)("is-valid",e.newDevice.name),_.Q6J("ngModel",e.newDevice.name),_.xp6(8),_.Q6J("ngModel",e.newDevice.description),_.xp6(5),_.Q6J("ngModel",e.deviceLabels),_.xp6(5),_.Q6J("ngModel",e.newDevice.adminState)}}function fe(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",30),_.TgZ(1,"div",1),_.TgZ(2,"span",66),_.SDv(3,67),_.qZA(),_.qZA(),_.TgZ(4,"div",31),_.TgZ(5,"app-device-auto-event",68),_.NdJ("autoEventsChange",function(o){return _.CHM(e),_.oxw().newDevice.autoEvents=o})("isValidChange",function(o){return _.CHM(e),_.oxw().isAutoEventsValid=o}),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(5),_.Q6J("deviceProfile",e.selectedProfile)("autoEvents",e.newDevice.autoEvents)("isValid",e.isAutoEventsValid)}}let me=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errorSvc=o,this.router=c,this.route=s,this.deviceLabels="",this.currentStep=0,this.selectedClass="text-white rounded px-2 bg-success font-weight-bold",this.noSelectedClass="text-white rounded px-2 bg-secondary font-weight-bold",this.isProtocolValid=!1,this.isAutoEventsValid=!1,this.newDevice={adminState:"UNLOCKED",operatingState:"UP"}}ngOnInit(){}onSingleProfileSelected(e){this.selectedProfile=e}onSingleDeviceSvcSelected(e){this.selectedSvc=e}stepStateLock(){switch(this.currentStep){case 0:return void 0===this.selectedSvc;case 1:return void 0===this.selectedProfile;case 2:return!this.newDevice.name;case 3:return!this.isAutoEventsValid;case 4:return!this.isProtocolValid;default:return!1}}next(){this.currentStep+=1}previous(){this.currentStep=this.currentStep-1}submit(){var e,t,o;this.newDevice.labels=null===(e=this.deviceLabels)||void 0===e?void 0:e.split(","),this.newDevice.serviceName=null===(t=this.selectedSvc)||void 0===t?void 0:t.name,this.newDevice.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.newDevice.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.addDevice(this.newDevice).subscribe(c=>{this.errorSvc.handleErrorForAPI(c)||(this.msgSvc.success("Add device",`name: ${this.newDevice.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-device"]],viewQuery:function(e,t){if(1&e&&_.Gf(K,5),2&e){let o;_.iGM(o=_.CRH())&&(t.deviceProtocols=o.first)}},decls:54,vars:22,consts:function(){let E,e,t,o,c,s,C,v,D,p,h,f,N,L,P;return E="\u8BBE\u5907\u6DFB\u52A0\u5411\u5BFC",e="\u9009\u62E9\u8BBE\u5907\u670D\u52A1",t="\u9009\u62E9\u8BBE\u5907\u5143\u4FE1\u606F",o="\u8BBE\u5907\u4FE1\u606F",c="\u521B\u5EFA\u81EA\u52A8\u4E8B\u4EF6",s="\u521B\u5EFA\u8BBE\u5907\u901A\u4FE1\u534F\u8BAE",C="\u4E0A\u4E00\u9875",v="\u4E0B\u4E00\u9875",D="\u63D0\u4EA4",p="\u540D\u5B57",h="\u8BBE\u5907\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",f="\u63CF\u8FF0",N="\u6807\u7B7E",L="\u7BA1\u7406\u72B6\u6001",P=" this step is optional, you can skip it then set it later in edit mode.",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-lightbulb-o","fa-lg","mr-2","text-danger"],[1,"text-secondary"],E,[1,"card-header","py-2"],["aria-label","breadcrumb",1,"mb-0","p-0"],[1,"breadcrumb","p-1","mb-0","bg-light"],[1,"breadcrumb-item"],[3,"ngClass"],e,["class","fa fa-check ml-1",4,"ngIf"],t,o,c,[1,"breadcrumb-item","active"],s,[1,"card-header","py-1"],["class","btn btn-info btn-sm",3,"click",4,"ngIf"],["class","btn btn-primary btn-sm float-right",3,"disabled","click",4,"ngIf","ngIfElse"],["stepDone",""],[1,"card-body","p-0"],[3,"ngSwitch"],[3,"ngSwitchCase"],["SelectDeviceService",""],["SelectDeviceProfile",""],["DevicePrimary",""],["CreateAutoEvent",""],["CreateDeviceProtocol",""],[1,"card","border-0"],[1,"card-body"],[3,"mode","isValid","isValidChange"],[1,"fa","fa-check","ml-1"],[1,"btn","btn-info","btn-sm",3,"click"],[1,"fa","fa-long-arrow-left","mr-1"],C,[1,"btn","btn-primary","btn-sm","float-right",3,"disabled","click"],v,[1,"fa","fa-long-arrow-right","ml-1"],[1,"btn","btn-success","btn-sm","ml-4","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],D,[1,"p-2"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"singleProfileSelected","enableSelectAll","toolbars","associatedDeviceColumn","singleProfileSelectedEvent"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","deviceName","required","",1,"col-md-2","col-form-label"],p,[1,"col-md-10"],["type","text","id","validationDeviceNameFeedback","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationDeviceNameFeedback",1,"invalid-feedback"],h,[1,"form-group","row"],["for","deviceDesc",1,"col-md-2","col-form-label"],f,["type","text","name","deviceDescription",1,"form-control",3,"ngModel","ngModelChange"],["for","deviceLabels",1,"col-md-2","col-form-label"],N,["type","text","name","deviceLabels","placeholder","Multiple Labels are separated by commas: label1,label2,label3",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],L,["name","deviceAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],[1,"fa","fa-info-circle","text-warning","font-weight-bold"],P,[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(e,t){if(1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span",2),_._UZ(3,"span",3),_.TgZ(4,"span",4),_.SDv(5,5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(6,"div",6),_.TgZ(7,"nav",7),_.TgZ(8,"ol",8),_.TgZ(9,"li",9),_.TgZ(10,"span",10),_.TgZ(11,"span"),_.SDv(12,11),_.qZA(),_.YNc(13,re,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(14,"li",9),_.TgZ(15,"span",10),_.TgZ(16,"span"),_.SDv(17,13),_.qZA(),_.YNc(18,Ae,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(19,"li",9),_.TgZ(20,"span",10),_.TgZ(21,"span"),_.SDv(22,14),_.qZA(),_.YNc(23,de,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(24,"li",9),_.TgZ(25,"span",10),_.TgZ(26,"span"),_.SDv(27,15),_.qZA(),_.YNc(28,Ce,1,0,"i",12),_.qZA(),_.qZA(),_.TgZ(29,"li",16),_.TgZ(30,"span",10),_.TgZ(31,"span"),_.SDv(32,17),_.qZA(),_.YNc(33,Te,1,0,"i",12),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(34,"div",18),_.YNc(35,ge,4,0,"button",19),_.YNc(36,De,4,1,"button",20),_.YNc(37,Se,4,1,"ng-template",null,21,_.W1O),_.qZA(),_.TgZ(39,"div",22),_.TgZ(40,"div",23),_.YNc(41,Ie,2,1,"ng-template",24,25,_.W1O),_.YNc(43,pe,2,4,"ng-template",24,26,_.W1O),_.YNc(45,ue,28,8,"ng-template",24,27,_.W1O),_.YNc(47,fe,6,3,"ng-template",24,28,_.W1O),_.TgZ(49,"div",null,29),_.TgZ(51,"div",30),_.TgZ(52,"div",31),_.TgZ(53,"app-device-protocol",32),_.NdJ("isValidChange",function(c){return t.isProtocolValid=c}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e){const o=_.MAs(38);_.xp6(10),_.Q6J("ngClass",t.currentStep>=0?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=1),_.xp6(2),_.Q6J("ngClass",t.currentStep>=1?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=2),_.xp6(2),_.Q6J("ngClass",t.currentStep>=2?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=3),_.xp6(2),_.Q6J("ngClass",t.currentStep>=3?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=4),_.xp6(2),_.Q6J("ngClass",t.currentStep>=4?t.selectedClass:t.noSelectedClass),_.xp6(3),_.Q6J("ngIf",t.currentStep>=5),_.xp6(2),_.Q6J("ngIf",t.currentStep),_.xp6(1),_.Q6J("ngIf",4>t.currentStep)("ngIfElse",o),_.xp6(4),_.Q6J("ngSwitch",t.currentStep),_.xp6(1),_.Q6J("ngSwitchCase",0),_.xp6(2),_.Q6J("ngSwitchCase",1),_.xp6(2),_.Q6J("ngSwitchCase",2),_.xp6(2),_.Q6J("ngSwitchCase",3),_.xp6(2),_.Udp("display",4===t.currentStep?"":"none"),_.xp6(4),_.Q6J("mode","add")("isValid",t.isProtocolValid)}},directives:[n.mk,n.O5,n.RF,n.n9,K,n_,t_.f,a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr,o_],styles:['.breadcrumb[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:before{color:inherit;font-weight:inherit;content:">>";padding:0 5px}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}']}),i})();function ve(i,E){if(1&i){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"div",2),_._UZ(2,"i",3),_.TgZ(3,"span",4),_.SDv(4,5),_.qZA(),_.TgZ(5,"span",6),_._uU(6),_.qZA(),_.TgZ(7,"button",7),_.NdJ("click",function(){return _.CHM(e),_.oxw().save()}),_.TgZ(8,"span"),_._UZ(9,"i",8),_.TgZ(10,"span"),_.SDv(11,9),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"div",11),_.TgZ(14,"div",2),_._UZ(15,"i",12),_.TgZ(16,"span"),_.SDv(17,13),_.qZA(),_.qZA(),_.TgZ(18,"div",10),_.TgZ(19,"form"),_.TgZ(20,"div",14),_.TgZ(21,"label",15),_.SDv(22,16),_.qZA(),_.TgZ(23,"div",17),_.TgZ(24,"input",18),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.name=o}),_.qZA(),_.TgZ(25,"div",19),_.SDv(26,20),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",14),_.TgZ(28,"label",15),_.SDv(29,21),_.qZA(),_.TgZ(30,"div",17),_.TgZ(31,"input",22),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.description=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(32,"div",14),_.TgZ(33,"label",15),_.SDv(34,23),_.qZA(),_.TgZ(35,"div",17),_.TgZ(36,"input",24),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().deviceLabels=o}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(37,"div",14),_.TgZ(38,"label",25),_.SDv(39,26),_.qZA(),_.TgZ(40,"div",17),_.TgZ(41,"select",27),_.NdJ("ngModelChange",function(o){return _.CHM(e),_.oxw().device.adminState=o}),_.TgZ(42,"option",28),_._uU(43,"UNLOCKED"),_.qZA(),_.TgZ(44,"option",29),_._uU(45,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(46,"div",14),_.TgZ(47,"label",30),_.SDv(48,31),_.qZA(),_.TgZ(49,"div",17),_._UZ(50,"input",32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",33),_.TgZ(52,"app-device-service-list",34),_.NdJ("singleDeviceSvcSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleDeviceSvcSelected(o)}),_.qZA(),_.qZA(),_.TgZ(53,"div",33),_.TgZ(54,"app-device-profile-list",35),_.NdJ("singleProfileSelectedEvent",function(o){return _.CHM(e),_.oxw().onSingleProfileSelected(o)}),_.qZA(),_.qZA(),_.TgZ(55,"div",33),_.TgZ(56,"app-device-protocol",36),_.NdJ("isValidChange",function(o){return _.CHM(e),_.oxw().isProtocolValid=o}),_.qZA(),_.qZA(),_.TgZ(57,"div",33),_.TgZ(58,"app-device-auto-event",37),_.NdJ("autoEventsChange",function(o){return _.CHM(e),_.oxw().device.autoEvents=o})("isValidChange",function(o){return _.CHM(e),_.oxw().isAutoEventsValid=o}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&i){const e=_.oxw();_.xp6(6),_.Oqu(e.device.name),_.xp6(1),_.Q6J("disabled",e.validateBeforeSave()),_.xp6(17),_.ekj("is-invalid",""===e.device.name),_.Q6J("ngModel",e.device.name),_.xp6(7),_.Q6J("ngModel",e.device.description),_.xp6(5),_.Q6J("ngModel",e.deviceLabels),_.xp6(5),_.Q6J("ngModel",e.device.adminState),_.xp6(9),_.Q6J("value",e.device.operatingState),_.xp6(2),_.Q6J("deviceSvcSelected",e.selectedSvc),_.xp6(2),_.Q6J("enableSelectAll",!1)("toolbars",!1)("singleProfileSelected",e.selectedProfile)("associatedDeviceColumn",!1),_.xp6(2),_.Q6J("mode","edit")("deviceProtocols",e.device.protocols)("isValid",e.isProtocolValid),_.xp6(2),_.Q6J("deviceProfile",e.selectedProfile)("autoEvents",e.device.autoEvents)("isValid",e.isAutoEventsValid)}}let Ne=(()=>{class i{constructor(e,t,o,c,s){this.router=e,this.route=t,this.metaSvc=o,this.msgSvc=c,this.errorSvc=s,this.isProtocolValid=!0,this.isAutoEventsValid=!0}ngOnInit(){this.route.queryParams.subscribe(e=>{!e.deviceName||this.metaSvc.findDeviceByName(e.deviceName).subscribe(o=>{var c;this.device=o.device,this.deviceLabels=null===(c=this.device.labels)||void 0===c?void 0:c.join(","),this.setDefaultDeviceSvcSelected(this.device.serviceName),this.setDefaultDeviceProfileSelected(this.device.profileName)})})}onSingleProfileSelected(e){this.selectedProfile=e}onSingleDeviceSvcSelected(e){this.selectedSvc=e}setDefaultDeviceSvcSelected(e){this.metaSvc.findDevcieServiceByName(e).subscribe(t=>{this.selectedSvc=t.service})}setDefaultDeviceProfileSelected(e){this.metaSvc.findProfileByName(e).subscribe(t=>{this.selectedProfile=t.profile})}validateBeforeSave(){return""===this.device.name||!this.isAutoEventsValid||!this.isProtocolValid}save(){var e,t,o;this.device.labels=null===(e=this.deviceLabels)||void 0===e?void 0:e.split(","),this.device.serviceName=null===(t=this.selectedSvc)||void 0===t?void 0:t.name,this.device.profileName=null===(o=this.selectedProfile)||void 0===o?void 0:o.name,this.device.protocols=this.deviceProtocols.getDeviceProtocols(),this.metaSvc.updateDevice(this.device).subscribe(c=>{var s;this.errorSvc.handleErrorForAPI(c)||(this.msgSvc.success("update device",`name: ${null===(s=this.device)||void 0===s?void 0:s.name}`),this.router.navigate(["../device-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(T.F0),_.Y36(T.gz),_.Y36(u.D),_.Y36(V.e),_.Y36(__.T))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-device"]],viewQuery:function(e,t){if(1&e&&_.Gf(K,5),2&e){let o;_.iGM(o=_.CRH())&&(t.deviceProtocols=o.first)}},decls:1,vars:1,consts:function(){let E,e,t,o,c,s,C,v,D;return E="\u7F16\u8F91\u8BBE\u5907",e="\u4FDD\u5B58",t="\u8BBE\u5907\u57FA\u672C\u4FE1\u606F",o="\u8BBE\u5907\u540D\u5B57",c="\u8BBE\u5907\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A\uFF01",s="\u63CF\u8FF0",C="\u6807\u7B7E",v="\u7BA1\u7406\u72B6\u6001",D="\u64CD\u4F5C\u72B6\u6001",[["class","card",4,"ngIf"],[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","text-danger","fa-lg"],[1,"mx-2"],E,[1,"text-primary"],["type","button",1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],e,[1,"card-body"],[1,"card","mb-3"],[1,"fa","fa-tags","fa-lg","text-danger","mr-1"],t,[1,"form-group","row"],[1,"col-md-2","col-form-label"],o,[1,"col-md-10"],["type","text","name","name","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],c,s,["type","text","name","description",1,"form-control",3,"ngModel","ngModelChange"],C,["type","text","name","labels",1,"form-control",3,"ngModel","ngModelChange"],["for","adminState",1,"col-md-2","col-form-label"],v,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","operatingState",1,"col-md-2","col-form-label"],D,["type","text","name","operatingState","disabled","",1,"form-control",3,"value"],[1,"mb-3"],[3,"deviceSvcSelected","singleDeviceSvcSelectedEvent"],[3,"enableSelectAll","toolbars","singleProfileSelected","associatedDeviceColumn","singleProfileSelectedEvent"],[3,"mode","deviceProtocols","isValid","isValidChange"],[3,"deviceProfile","autoEvents","isValid","autoEventsChange","isValidChange"]]},template:function(e,t){1&e&&_.YNc(0,ve,59,20,"div",0),2&e&&_.Q6J("ngIf",t.device)},directives:[n.O5,a._Y,a.JL,a.F,a.Fj,a.Q7,a.JJ,a.On,a.EJ,a.YN,a.Kr,n_,t_.f,K,o_],styles:["input[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}.btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})(),Me=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-device-profile-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[T.lC],styles:[""]}),i})(),Pe=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errSvc=o,this.router=c,this.route=s}ngOnInit(){this.renderYamlSource()}renderYamlSource(){let e=document.getElementById("editor");this.codeMirrorEditor=CodeMirror.fromTextArea(e,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px"),this.codeMirrorEditor.on("drop",(t,o)=>{var c;this.yamlFile=null===(c=o.dataTransfer)||void 0===c?void 0:c.files[0]}),this.codeMirrorEditor.on("paste",(t,o)=>{})}submit(){this.profileYamlSource=this.codeMirrorEditor.getValue(),this.metaSvc.addProfileYamlByNameViaUIBackend(this.profileYamlSource).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add profile"),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-profile"]],decls:15,vars:0,consts:function(){let E,e,t;return E="\u6DFB\u52A0\u8BBE\u5907\u5143\u4FE1\u606F",e="\u62D6\u62FD\u529F\u80FD\u5DF2\u5F00\u542F",t="\u63D0\u4EA4",[[1,"card"],[1,"card-header"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],E,[1,"fa","fa-info-circle","text-success","font-weight-bold"],e,[1,"float-right"],["type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],["id","editor","name","editor"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span"),_._UZ(3,"span",2),_.TgZ(4,"span",3),_.SDv(5,4),_.qZA(),_.TgZ(6,"span",5),_.SDv(7,6),_.qZA(),_.qZA(),_.TgZ(8,"span",7),_.TgZ(9,"button",8),_.NdJ("click",function(){return t.submit()}),_._UZ(10,"i",9),_.TgZ(11,"span"),_.SDv(12,10),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"div",11),_._UZ(14,"textarea",12),_.qZA(),_.qZA())},styles:[""]}),i})(),Oe=(()=>{class i{constructor(e,t,o,c,s){this.metaSvc=e,this.msgSvc=t,this.errSvc=o,this.router=c,this.route=s}ngOnInit(){this.renderYamlSource(),this.route.queryParams.subscribe(e=>{e.profileName&&(this.profileName=e.profileName,this.metaSvc.findProfileYamlByNameViaUIBackend(e.profileName).subscribe(t=>{this.codeMirrorEditor.setValue(t),this.codeMirrorEditor.refresh()}))})}update(){this.codeMirrorEditor.refresh(),this.metaSvc.updateProfileYamlContentViaUIBackend(this.codeMirrorEditor.getValue()).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update profile",`name: ${this.profileName}`),this.router.navigate(["../device-profile-list"],{relativeTo:this.route}))})}renderYamlSource(){let e=document.getElementById("editor-edit");this.codeMirrorEditor=CodeMirror.fromTextArea(e,{mode:"yaml",theme:"gruvbox-dark",foldGutter:!0,smartIndent:!0,showCursorWhenSelecting:!0,lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],autofocus:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,cursorHeight:.85,autocorrect:!0}),this.codeMirrorEditor.setSize("auto","600px")}ngOnDestroy(){this.codeMirrorEditor=null}}return i.\u0275fac=function(e){return new(e||i)(_.Y36(u.D),_.Y36(V.e),_.Y36(__.T),_.Y36(T.F0),_.Y36(T.gz))},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-profile"]],decls:13,vars:1,consts:function(){let E;return E="\u4FDD\u5B58",[[1,"card"],[1,"card-header"],[1,"text-danger","fa","fa-edit","mr-2"],[1,"float-right"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-save","mr-1"],E,[1,"card-body","p-0"],["id","editor-edit","name","editor"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"span"),_._UZ(3,"span",2),_._uU(4),_.qZA(),_.TgZ(5,"span",3),_.TgZ(6,"button",4),_.NdJ("click",function(){return t.update()}),_.TgZ(7,"span"),_._UZ(8,"i",5),_.TgZ(9,"span"),_.SDv(10,6),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",7),_._UZ(12,"textarea",8),_.qZA(),_.qZA()),2&e&&(_.xp6(4),_.hij("",t.profileName," "))},styles:[""]}),i})(),Ge=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-provision-watcher-center"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"provision-watcher-center works!"),_.qZA())},styles:[""]}),i})(),he=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-provision-watcher-list"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"provision-watcher-list works!"),_.qZA())},styles:[""]}),i})(),Re=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-add-provision-watcher"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"add-provision-watcher works!"),_.qZA())},styles:[""]}),i})(),Ze=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=_.Xpm({type:i,selectors:[["app-edit-provision-watcher"]],decls:2,vars:0,template:function(e,t){1&e&&(_.TgZ(0,"p"),_._uU(1,"edit-provision-watcher works!"),_.qZA())},styles:[""]}),i})();var Ue=d(8253),Ve=d(1964),Le=d(4294),be=d(5894),$e=d(7216);let E_=(()=>{class i{constructor(e,t){this.router=e,this.metadataSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.metadataSvc.ping().pipe((0,Le.q)(1),(0,be.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"metadata",routerPath:`/${t.url.split("/")[1]}`}})),(0,$e.z)(()=>(0,Ve.of)(!0)))}}return i.\u0275fac=function(e){return new(e||i)(_.LFG(T.F0),_.LFG(u.D))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const xe=[{path:"",component:x,canActivate:[Ue.a,E_],canActivateChild:[E_],children:[{path:"",redirectTo:"device-service-list",pathMatch:"full"},{path:"device-service-list",component:R},{path:"device-center",component:l,children:[{path:"",redirectTo:"device-list",pathMatch:"full"},{path:"device-list",component:H_},{path:"add-device",component:me},{path:"edit-device",component:Ne}]},{path:"device-profile-center",component:Me,children:[{path:"",redirectTo:"device-profile-list",pathMatch:"full"},{path:"device-profile-list",component:t_.f},{path:"edit-profile",component:Oe},{path:"add-profile",component:Pe}]},{path:"provision-watcher-center",component:Ge,children:[{path:"",redirectTo:"provision-watcher-list",pathMatch:"full"},{path:"provision-watcher-list",component:he},{path:"edit-provision-watcher",component:Ze},{path:"add-provision-watcher",component:Re}]}]}];let qe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[T.Bz.forChild(xe)],T.Bz]}),i})(),Xe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[n.ez,a.u5,qe,a.UX]]}),i})()},2822:(i_,b,d)=>{d.d(b,{f:()=>e_});var n=d(476),a=d(2437),T=d(7822),_=d(9502),x=d(8583),u=d(3092);function V(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"div",50),n.TgZ(1,"div",51),n.TgZ(2,"button",52),n.NdJ("click",function(){return n.CHM(l),n.oxw().refresh()}),n.TgZ(3,"span"),n._UZ(4,"i",53),n.TgZ(5,"span"),n.SDv(6,54),n.qZA(),n.qZA(),n.qZA(),n.TgZ(7,"button",55),n.TgZ(8,"span"),n._UZ(9,"i",56),n.TgZ(10,"span"),n.SDv(11,57),n.qZA(),n.qZA(),n.qZA(),n.TgZ(12,"button",58),n.NdJ("click",function(){return n.CHM(l),n.oxw().edit()}),n.TgZ(13,"span"),n._UZ(14,"i",59),n.TgZ(15,"span"),n.SDv(16,60),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"button",61),n.NdJ("click",function(){return n.CHM(l),n.oxw().deleteConfirm()}),n.TgZ(18,"span"),n._UZ(19,"i",62),n.TgZ(20,"span"),n.SDv(21,63),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&I){const l=n.oxw();n.xp6(12),n.Q6J("disabled",1!==l.multiProfilesSelected.length),n.xp6(5),n.Q6J("disabled",0===l.multiProfilesSelected.length)}}function S(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"input",64),n.NdJ("click",function(g){return n.CHM(l),n.oxw().selectAll(g)}),n.qZA()}if(2&I){const l=n.oxw();n.Q6J("checked",l.isCheckedAll())}}function m(I,R){1&I&&(n.TgZ(0,"th",9),n.SDv(1,65),n.qZA())}const G=function(I){return{profileName:I}};function U(I,R){if(1&I&&(n.TgZ(0,"td",69),n.TgZ(1,"a",70),n._UZ(2,"i",71),n.qZA(),n.qZA()),2&I){const l=n.oxw().$implicit;n.xp6(1),n.Q6J("queryParams",n.VKq(1,G,l.name))}}function X(I,R){if(1&I){const l=n.EpF();n.TgZ(0,"tr"),n.TgZ(1,"td"),n.TgZ(2,"input",66),n.NdJ("click",function(g){const q=n.CHM(l).$implicit;return n.oxw().selectOne(g,q.name)}),n.qZA(),n.qZA(),n.TgZ(3,"td",67),n._uU(4),n.qZA(),n.TgZ(5,"td",67),n._uU(6),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.YNc(9,U,3,3,"td",68),n.TgZ(10,"td"),n._uU(11),n.qZA(),n.TgZ(12,"td"),n._uU(13),n.qZA(),n.TgZ(14,"td"),n._uU(15),n.qZA(),n.qZA()}if(2&I){const l=R.$implicit,r=n.oxw();n.ekj("table-active",r.isChecked(l.name)),n.xp6(2),n.s9C("value",l.name),n.Q6J("checked",r.isChecked(l.name)),n.xp6(2),n.Oqu(l.id),n.xp6(2),n.Oqu(l.name),n.xp6(2),n.Oqu(l.description),n.xp6(1),n.Q6J("ngIf",r.associatedDeviceColumn),n.xp6(2),n.Oqu(l.labels),n.xp6(2),n.Oqu(l.manufacturer),n.xp6(2),n.Oqu(l.model)}}let e_=(()=>{class I{constructor(l,r,g,Z){this.metaSvc=l,this.msgSvc=r,this.route=g,this.router=Z,this.associatedDeviceColumn=!0,this.toolbars=!0,this.enableSelectAll=!0,this.singleProfileSelectedEvent=new n.vpe,this.multipleProfileSelectedEvent=new n.vpe,this.profileList=[],this.multiProfilesSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(l=>{l.profileName?this.metaSvc.findProfileByName(l.profileName).subscribe(r=>{this.profileList=[],this.profileList.push(r.profile)}):this.findAllDeviceProfilesPagination()})}findAllDeviceProfilesPagination(){this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}onSingleProfileSelectedEmitter(){this.singleProfileSelectedEvent.emit(this.singleProfileSelected)}onMultipleProfileSelectedEmitter(){this.multipleProfileSelectedEvent.emit(this.multiProfilesSelected)}refresh(){this.metaSvc.allDeviceProfolesPagination(0,this.pageLimit).subscribe(l=>{this.profileList=l.profiles,this.msgSvc.success("refresh"),this.pagination=1,this.resetCheckbox()})}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceProfilesPagination()}prePage(){this.setPagination(-1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}nextPage(){this.setPagination(1),this.metaSvc.allDeviceProfolesPagination(this.pageOffset,this.pageLimit).subscribe(l=>{this.profileList=l.profiles})}setPageLimit(l){this.pageLimit=l}setPagination(l){1===l?this.pagination+=1:-1===l&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit,this.resetCheckbox()}resetPagination(){this.pagination=1,this.resetCheckbox()}resetCheckbox(){}edit(){this.router.navigate(["../edit-profile"],{relativeTo:this.route,queryParams:{profileName:this.multiProfilesSelected[0]}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.multiProfilesSelected.forEach(l=>{this.metaSvc.deleteProfileByName(l).subscribe(()=>{this.multiProfilesSelected=[],this.profileList.forEach((r,g)=>{r.name==l&&(this.profileList.splice(g,1),this.msgSvc.success("delete",` Name: ${r.name}`))})})}),$("#deleteConfirmDialog").modal("hide")}isSingleProfileChecked(l){var r;return(null===(r=this.singleProfileSelected)||void 0===r?void 0:r.name)===l}selectSingleProfile(l,r){l.target.checked?this.profileList.forEach(Z=>{Z.name===r&&(this.singleProfileSelected=Z)}):this.singleProfileSelected=void 0,this.onSingleProfileSelectedEmitter()}isCheckedAll(){let l=!0;return this.profileList&&0===this.profileList.length&&(l=!1),this.profileList.forEach(r=>{-1===this.multiProfilesSelected.indexOf(r.name)&&(l=!1)}),l}selectAll(l){this.profileList.forEach(l.target.checked?g=>{this.multiProfilesSelected.includes(g.name)||this.multiProfilesSelected.push(g.name)}:g=>{this.multiProfilesSelected.includes(g.name)&&this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(g.name),1)}),this.onMultipleProfileSelectedEmitter()}isChecked(l){return this.enableSelectAll?this.multiProfilesSelected.includes(l):this.isSingleProfileChecked(l)}selectOne(l,r){this.enableSelectAll?(l.target.checked?this.multiProfilesSelected.push(r):this.multiProfilesSelected.splice(this.multiProfilesSelected.indexOf(r),1),this.onMultipleProfileSelectedEmitter()):this.selectSingleProfile(l,r)}}return I.\u0275fac=function(l){return new(l||I)(n.Y36(a.D),n.Y36(T.e),n.Y36(_.gz),n.Y36(_.F0))},I.\u0275cmp=n.Xpm({type:I,selectors:[["app-device-profile-list"]],inputs:{associatedDeviceColumn:"associatedDeviceColumn",toolbars:"toolbars",enableSelectAll:"enableSelectAll",multiProfilesSelected:"multiProfilesSelected",singleProfileSelected:"singleProfileSelected"},outputs:{singleProfileSelectedEvent:"singleProfileSelectedEvent",multipleProfileSelectedEvent:"multipleProfileSelectedEvent"},decls:67,vars:7,consts:function(){let R,l,r,g,Z,q,J,y,B,W,H,w,F,k,z,Y,Q,j;return R="\u8BBE\u5907\u5143\u4FE1\u606F\u5217\u8868",l="\u540D\u5B57",r="\u63CF\u8FF0",g="\u6807\u7B7E",Z="\u7EF4\u62A4\u8005",q="\u6A21\u5F0F",J="\u6BCF\u9875\u6761\u76EE",y="\u4E0A\u4E00\u9875",B="\u4E0B\u4E00\u9875",W="\u8B66\u544A",H="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",w="\u53D6\u6D88",F="\u786E\u8BA4",k="\u5237\u65B0",z="\u6DFB\u52A0",Y="\u7F16\u8F91",Q="\u5220\u9664",j="\u76F8\u5173\u8BBE\u5907",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-list","text-danger","mr-2"],R,[1,"card-body","p-0"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox",3,"checked","click",4,"ngIf"],l,r,["scope","col",4,"ngIf"],g,Z,q,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],J,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],y,[1,"page-item"],B,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],W,[1,"modal-body"],H,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],w,["type","button",1,"btn","btn-danger",3,"click"],F,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],k,["type","button","routerLink","../add-profile",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],z,["type","button","data-toggle","tooltip","data-placement","top","title","only one should be selected",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],Y,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],Q,["type","checkbox",3,"checked","click"],j,["type","checkbox",3,"value","checked","click"],[1,"user-select-all"],["class","text-center",4,"ngIf"],[1,"text-center"],["routerLink","../../device-center",1,"badge","badge-pill","badge-primary",3,"queryParams"],[1,"fa","fa-sitemap"]]},template:function(l,r){1&l&&(n.TgZ(0,"div",0),n.TgZ(1,"div",1),n._UZ(2,"i",2),n.TgZ(3,"span"),n.SDv(4,3),n.qZA(),n.qZA(),n.TgZ(5,"div",4),n.YNc(6,V,22,2,"div",5),n.TgZ(7,"div",6),n.TgZ(8,"table",7),n.TgZ(9,"thead",8),n.TgZ(10,"tr"),n.TgZ(11,"th",9),n.YNc(12,S,1,1,"input",10),n.qZA(),n.TgZ(13,"th",9),n._uU(14,"ID"),n.qZA(),n.TgZ(15,"th",9),n.SDv(16,11),n.qZA(),n.TgZ(17,"th",9),n.SDv(18,12),n.qZA(),n.YNc(19,m,2,0,"th",13),n.TgZ(20,"th",9),n.SDv(21,14),n.qZA(),n.TgZ(22,"th",9),n.SDv(23,15),n.qZA(),n.TgZ(24,"th",9),n.SDv(25,16),n.qZA(),n.qZA(),n.qZA(),n.TgZ(26,"tbody"),n.YNc(27,X,16,11,"tr",17),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(28,"div",18),n.TgZ(29,"nav",19),n.TgZ(30,"ul",20),n.TgZ(31,"li",21),n.TgZ(32,"span",22),n.SDv(33,23),n.qZA(),n.qZA(),n.TgZ(34,"li",24),n.TgZ(35,"select",25),n.NdJ("ngModelChange",function(Z){return r.pageLimit=Z})("ngModelChange",function(){return r.onPageSelected()}),n.TgZ(36,"option",26),n._uU(37,"5"),n.qZA(),n.TgZ(38,"option",27),n._uU(39,"10"),n.qZA(),n.TgZ(40,"option",28),n._uU(41,"20"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(42,"li",29),n.TgZ(43,"button",30),n.NdJ("click",function(){return r.prePage()}),n._UZ(44,"i",31),n.TgZ(45,"span"),n.SDv(46,32),n.qZA(),n.qZA(),n.qZA(),n.TgZ(47,"li",33),n.TgZ(48,"button",30),n.NdJ("click",function(){return r.nextPage()}),n.TgZ(49,"span"),n.SDv(50,34),n.qZA(),n._UZ(51,"i",35),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(52,"div",36),n.TgZ(53,"div",37),n.TgZ(54,"div",38),n.TgZ(55,"div",39),n.TgZ(56,"h5",40),n._UZ(57,"i",41),n.TgZ(58,"span"),n.SDv(59,42),n.qZA(),n.qZA(),n.qZA(),n.TgZ(60,"div",43),n.SDv(61,44),n.qZA(),n.TgZ(62,"div",45),n.TgZ(63,"button",46),n.SDv(64,47),n.qZA(),n.TgZ(65,"button",48),n.NdJ("click",function(){return r.delete()}),n.SDv(66,49),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&l&&(n.xp6(6),n.Q6J("ngIf",r.toolbars),n.xp6(6),n.Q6J("ngIf",r.enableSelectAll),n.xp6(7),n.Q6J("ngIf",r.associatedDeviceColumn),n.xp6(8),n.Q6J("ngForOf",r.profileList),n.xp6(8),n.Q6J("ngModel",r.pageLimit),n.xp6(8),n.Q6J("disabled",1===r.pagination),n.xp6(5),n.Q6J("disabled",r.pageLimit>r.profileList.length))},directives:[x.O5,x.sg,u.EJ,u.JJ,u.On,u.YN,u.Kr,_.rH,_.yS],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),I})()},7982:(i_,b,d)=>{d.d(b,{V:()=>x});var n=d(1841),a=d(5894),T=d(476),_=d(4889);let x=(()=>{class u{constructor(S,m){this.http=S,this.errorSvc=m,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new n.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,a.K)(m=>this.errorSvc.handleError(m)))}findCommnadsByDeviceId(S){return this.http.get(`${this.commandsByDeviceIdUrl}${S}`).pipe((0,a.K)(G=>this.errorSvc.handleError(G)))}allDeviceCoreCommandsPagination(S,m){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${S}&limit=${m}`).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}findDeviceAssociatedCommnadsByDeviceName(S){return this.http.get(`${this.commandsByDeviceNameUrl}${S}`).pipe((0,a.K)(G=>this.errorSvc.handleError(G)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,a.K)(m=>this.errorSvc.handleError(m)))}issueGetBinaryCmd(S,m){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${S}/command/${m}`,{responseType:"arraybuffer"}).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}issueGetCmd(S,m){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${S}/${m}?ds-pushevent=yes&ds-returnevent=yes`).pipe((0,a.K)(U=>this.errorSvc.handleError(U)))}issueSetCmd(S,m,G){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${S}/${m}`,JSON.stringify(G),this.httpPostOrPutJSONOptions).pipe((0,a.K)(X=>this.errorSvc.handleError(X)))}}return u.\u0275fac=function(S){return new(S||u)(T.LFG(n.eN),T.LFG(_.T))},u.\u0275prov=T.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/155.99bd04e59759370573ae.js b/cmd/edgex-ui-server/static/web/zh/155.99bd04e59759370573ae.js deleted file mode 100644 index f951ca67..00000000 --- a/cmd/edgex-ui-server/static/web/zh/155.99bd04e59759370573ae.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[155],{4155:(pt,N,d)=>{d.r(N),d.d(N,{RuleEngineModule:()=>ut});var p=d(8583),s=d(3092),c=d(9502),e=d(476);let X=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rule-engine"]],decls:11,vars:0,consts:function(){let a,t;return a="\u6570\u636E\u6E90",t="\u89C4\u5219",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./stream-center","routerLinkActive","active",1,"nav-link"],a,["routerLink","./rules-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.qZA(),e.TgZ(6,"li",3),e.TgZ(7,"a",6),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e._UZ(10,"router-outlet"),e.qZA(),e.qZA())},directives:[c.yS,c.Od,c.lC],styles:[""]}),o})();var A=d(4791),f=d(7822),w=d(6322),B=d(1302);function Q(o,a){1&o&&e._UZ(0,"i",26)}function H(o,a){1&o&&e._UZ(0,"i",27)}let W=(()=>{class o{constructor(){this.collapseToggleStatus=!1,this.optionalChange=new e.vpe,this._optional={Qos:"0",Retained:"false",SkipCertVerify:"true",AutoReconnect:"true",CleanSession:"true"}}get optional(){return this._optional}set optional(t){Object.assign(this._optional,t)}ngOnInit(){}ngOnChanges(){this.optionalChange.emit(this.optional)}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edgex-sink-optional"]],inputs:{optional:"optional"},outputs:{optionalChange:"optionalChange"},features:[e.TTD],decls:102,vars:27,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["id","collapse-edgex-sink-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Password",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["type","number","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retained",1,"custom-select",3,"ngModel","ngModelChange"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","CleanSession",1,"custom-select",3,"ngModel","ngModelChange"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","CertFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","CertPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return _.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink Options Setting"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,Q,1,0,"i",5),e.YNc(7,H,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e._uU(12,"ClientId"),e.qZA(),e.TgZ(13,"div",10),e.TgZ(14,"input",11),e.NdJ("ngModelChange",function(i){return _.optional.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",8),e.TgZ(16,"label",9),e._uU(17,"Username"),e.qZA(),e.TgZ(18,"div",10),e.TgZ(19,"input",12),e.NdJ("ngModelChange",function(i){return _.optional.Username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",8),e.TgZ(21,"label",9),e._uU(22,"Password"),e.qZA(),e.TgZ(23,"div",10),e.TgZ(24,"input",13),e.NdJ("ngModelChange",function(i){return _.optional.Password=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",8),e.TgZ(26,"label",9),e._uU(27,"Qos"),e.qZA(),e.TgZ(28,"div",10),e.TgZ(29,"select",14),e.NdJ("ngModelChange",function(i){return _.optional.Qos=i}),e.TgZ(30,"option",15),e._uU(31,"0"),e.qZA(),e.TgZ(32,"option",15),e._uU(33,"1"),e.qZA(),e.TgZ(34,"option",15),e._uU(35,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e.TgZ(37,"label",9),e._uU(38,"KeepAlive"),e.qZA(),e.TgZ(39,"div",10),e.TgZ(40,"input",16),e.NdJ("ngModelChange",function(i){return _.optional.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e._uU(43,"Retained"),e.qZA(),e.TgZ(44,"div",10),e.TgZ(45,"select",17),e.NdJ("ngModelChange",function(i){return _.optional.Retained=i}),e.TgZ(46,"option",15),e._uU(47,"false"),e.qZA(),e.TgZ(48,"option",15),e._uU(49,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",8),e.TgZ(51,"label",9),e._uU(52,"AutoReconnect"),e.qZA(),e.TgZ(53,"div",10),e.TgZ(54,"select",18),e.NdJ("ngModelChange",function(i){return _.optional.AutoReconnect=i}),e.TgZ(55,"option",15),e._uU(56,"false"),e.qZA(),e.TgZ(57,"option",15),e._uU(58,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",8),e.TgZ(60,"label",9),e._uU(61,"ConnectTimeout"),e.qZA(),e.TgZ(62,"div",10),e.TgZ(63,"input",19),e.NdJ("ngModelChange",function(i){return _.optional.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",8),e.TgZ(65,"label",9),e._uU(66,"CleanSession"),e.qZA(),e.TgZ(67,"div",10),e.TgZ(68,"select",20),e.NdJ("ngModelChange",function(i){return _.optional.CleanSession=i}),e.TgZ(69,"option",15),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",15),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e._uU(75,"SkipCertVerify"),e.qZA(),e.TgZ(76,"div",10),e.TgZ(77,"select",21),e.NdJ("ngModelChange",function(i){return _.optional.SkipCertVerify=i}),e.TgZ(78,"option",15),e._uU(79,"true"),e.qZA(),e.TgZ(80,"option",15),e._uU(81,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",8),e.TgZ(83,"label",9),e._uU(84,"CertFile"),e.qZA(),e.TgZ(85,"div",10),e.TgZ(86,"input",22),e.NdJ("ngModelChange",function(i){return _.optional.CertFile=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",8),e.TgZ(88,"label",9),e._uU(89,"KeyFile"),e.qZA(),e.TgZ(90,"div",10),e.TgZ(91,"input",23),e.NdJ("ngModelChange",function(i){return _.optional.KeyFile=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(92,"div",8),e.TgZ(93,"label",9),e._uU(94,"CertPEMBlock"),e.qZA(),e.TgZ(95,"div",10),e.TgZ(96,"input",24),e.NdJ("ngModelChange",function(i){return _.optional.CertPEMBlock=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(97,"div",8),e.TgZ(98,"label",9),e._uU(99,"KeyPEMBlock"),e.qZA(),e.TgZ(100,"div",10),e.TgZ(101,"input",25),e.NdJ("ngModelChange",function(i){return _.optional.KeyPEMBlock=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(7),e.Q6J("ngModel",_.optional.ClientId),e.xp6(5),e.Q6J("ngModel",_.optional.Username),e.xp6(5),e.Q6J("ngModel",_.optional.Password),e.xp6(5),e.Q6J("ngModel",_.optional.Qos),e.xp6(1),e.Q6J("value",0),e.xp6(2),e.Q6J("value",1),e.xp6(2),e.Q6J("value",2),e.xp6(6),e.Q6J("ngModel",_.optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",_.optional.Retained),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.AutoReconnect),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",_.optional.CleanSession),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.SkipCertVerify),e.xp6(1),e.Q6J("value",!0),e.xp6(2),e.Q6J("value",!1),e.xp6(6),e.Q6J("ngModel",_.optional.CertFile),e.xp6(5),e.Q6J("ngModel",_.optional.KeyFile),e.xp6(5),e.Q6J("ngModel",_.optional.CertPEMBlock),e.xp6(5),e.Q6J("ngModel",_.optional.KeyPEMBlock))},directives:[p.O5,s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,s.EJ,s.YN,s.Kr,s.wV],styles:[""]}),o})();var h=d(9162),V=function(o){function a(t,_){return o.call(this)||this}return(0,h.ZT)(a,o),a.prototype.schedule=function(t,_){return void 0===_&&(_=0),this},a}(d(8839).w0),Z={setInterval:function(){for(var o=[],a=0;a{class o{constructor(){this.collapseToggleStatus=!1,this.sinkBasePropertiesForm=new s.cw({concurrency:new s.NI(1),bufferLength:new s.NI(1024),runAsync:new s.NI(!1),retryInterval:new s.NI(1e3),retryCount:new s.NI(0),cacheLength:new s.NI(1024),cacheSaveInterval:new s.NI(1e3),omitIfEmpty:new s.NI(!1)}),this.sinkBasePropertiesChange=new e.vpe,this.sinkBaseProperties={}}ngOnChanges(){delete this.sinkBaseProperties.sendSingle,delete this.sinkBaseProperties.dataTemplate;let t={};for(const[_,n]of Object.entries(this.sinkBaseProperties))this.sinkBasePropertiesForm.value.hasOwnProperty(_)&&n&&(t[_]=n);this.sinkBasePropertiesForm.patchValue(t)}ngAfterViewInit(){this.sinkBasePropertiesForm.valueChanges.pipe(I(400),q()).subscribe(()=>{Object.assign(this.sinkBaseProperties,this.sinkBasePropertiesForm.value),this.sinkBasePropertiesChange.emit(this.sinkBaseProperties)})}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-sink-base-properties"]],inputs:{sinkBaseProperties:"sinkBaseProperties"},outputs:{sinkBasePropertiesChange:"sinkBasePropertiesChange"},features:[e.TTD],decls:74,vars:7,consts:function(){let a;return a="Sink Advanced Options",[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],a,[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["id","collapse-sink-base",1,"card-body","collapse"],[3,"formGroup"],[1,"form-group","row"],[1,"col","col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many instances of the sink will be run. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["type","number","name","concurrency","formControlName","concurrency",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory. If the buffered messages exceed the limit, the sink will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength","formControlName","bufferLength",1,"form-control"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many milliseconds will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryInterval","formControlName","retryInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryCount","formControlName","retryCount",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be cached. The cached messages will be resent to external system until the data sent out successfully. The cached message will be sent in order except in runAsync or concurrent mode. The cached message will be saved to disk in fixed intervals.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheLength","formControlName","cacheLength",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the interval to save cached message to the disk. Notice that, if the rule is closed in plan, all the cached messages will be saved at close. A larger value can reduce the saving overhead but may lose more cache messages when the system is interrupted in error.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheSaveInterval","formControlName","cacheSaveInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether the sink will run asynchronously for better performance. If it is true, the sink result order is not promised.",1,"fa","fa-question-circle-o","fa-lg"],["name","runAsync","formControlName","runAsync",1,"custom-select"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","If the configuration item is set to true, when SELECT result is empty, then the result will not feed to sink operator.",1,"fa","fa-question-circle-o","fa-lg"],["name","omitIfEmpty","formControlName","omitIfEmpty",1,"custom-select"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-up","fa-lg"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return _.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"span",5),e.YNc(6,_e,1,0,"i",6),e.YNc(7,ne,1,0,"i",7),e.qZA(),e.qZA(),e.TgZ(8,"div",8),e.TgZ(9,"form",9),e.TgZ(10,"div",10),e.TgZ(11,"label",11),e.TgZ(12,"span",12),e._uU(13,"concurrency"),e.qZA(),e._UZ(14,"span",13),e.qZA(),e.TgZ(15,"div",14),e._UZ(16,"input",15),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.TgZ(18,"label",11),e.TgZ(19,"span",12),e._uU(20,"bufferLength"),e.qZA(),e._UZ(21,"span",16),e.qZA(),e.TgZ(22,"div",14),e._UZ(23,"input",17),e.qZA(),e.qZA(),e.TgZ(24,"div",10),e.TgZ(25,"label",18),e.TgZ(26,"span",12),e._uU(27,"retryInterval"),e.qZA(),e._UZ(28,"span",19),e.qZA(),e.TgZ(29,"div",14),e._UZ(30,"input",20),e.qZA(),e.qZA(),e.TgZ(31,"div",10),e.TgZ(32,"label",18),e.TgZ(33,"span",12),e._uU(34,"retryCount"),e.qZA(),e._UZ(35,"span",21),e.qZA(),e.TgZ(36,"div",14),e._UZ(37,"input",22),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",18),e.TgZ(40,"span",12),e._uU(41,"cacheLength"),e.qZA(),e._UZ(42,"span",23),e.qZA(),e.TgZ(43,"div",14),e._UZ(44,"input",24),e.qZA(),e.qZA(),e.TgZ(45,"div",10),e.TgZ(46,"label",18),e.TgZ(47,"span",12),e._uU(48,"cacheSaveInterval"),e.qZA(),e._UZ(49,"span",25),e.qZA(),e.TgZ(50,"div",14),e._UZ(51,"input",26),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",18),e.TgZ(54,"span",12),e._uU(55,"runAsync"),e.qZA(),e._UZ(56,"span",27),e.qZA(),e.TgZ(57,"div",14),e.TgZ(58,"select",28),e.TgZ(59,"option",29),e._uU(60,"false"),e.qZA(),e.TgZ(61,"option",29),e._uU(62,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",10),e.TgZ(64,"label",18),e.TgZ(65,"span",12),e._uU(66,"omitIfEmpty"),e.qZA(),e._UZ(67,"span",30),e.qZA(),e.TgZ(68,"div",14),e.TgZ(69,"select",31),e.TgZ(70,"option",29),e._uU(71,"false"),e.qZA(),e.TgZ(72,"option",29),e._uU(73,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(2),e.Q6J("formGroup",_.sinkBasePropertiesForm),e.xp6(50),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(9),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,s._Y,s.JL,s.sg,s.wV,s.Fj,s.JJ,s.u,s.EJ,s.YN,s.Kr],styles:[""]}),o})(),oe=(()=>{class o{constructor(){this.sinkBaseProperties={},this.edgeXSinkChange=new e.vpe,this._edgeXSink={type:"redis",protocol:"redis",host:"edgex-redis",port:6379,contentType:"application/json",messageType:"event",sendSingle:!1}}get edgeXSink(){return this._edgeXSink}set edgeXSink(t){Object.assign(this._edgeXSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.edgeXSink)}ngOnChanges(){this.edgeXSinkChange.emit(this.edgeXSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.edgeXSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edgex-sink"]],inputs:{edgeXSink:"edgeXSink"},outputs:{edgeXSinkChange:"edgeXSinkChange"},features:[e.TTD],decls:117,vars:20,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","the type of EdgeX message bus",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","type",1,"custom-select",3,"ngModel","ngModelChange"],["value","redis"],["value","zero"],["value","mqtt"],["type","text","name","protocol",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","host",1,"form-control",3,"ngModel","ngModelChange"],["type","number","name","port",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The topic to be published. The topic is static across all messages. To use dynamic topic, leave this empty and specify the topicPrefix property. Only one of the topic and topicPrefix properties can be specified. If both are not specified, then use default topic value application.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The prefix of a dynamic topic to be published. The topic will become a concatenation of $topicPrefix/$profileName/$deviceName/$sourceName.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topicPrefix",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","contentType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The EdgeX message model type. To publish the message as an event like EdgeX application service, use event. Otherwise, to publish the message as an event request like EdgeX device service or core data service, use request. If not specified, then use the default value event.",1,"fa","fa-question-circle-o","fa-lg"],["name","messageType",1,"custom-select",3,"ngModel","ngModelChange"],["value","event"],["value","request"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The property is a field name that allows user to specify a field name of SQL select clause, the field name should use meta(*) AS xxx to select all of EdgeX metadata from message.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","metadata",1,"form-control",3,"ngModel","ngModelChange"],[3,"singleSelectionMode","singleProfileSelected","singleProfileSelectedChange"],[3,"singleSelectionMode","singleDeviceSelected","singleDeviceSelectedChange"],["type","text","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","EdgeX Message bus connection optional",1,"fa","fa-question-circle-o","fa-lg"],[3,"optional","optionalChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e.TgZ(9,"span",7),e._uU(10,"Type"),e.qZA(),e._UZ(11,"span",8),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"select",10),e.NdJ("ngModelChange",function(i){return _.edgeXSink.type=i}),e.TgZ(14,"option",11),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",12),e._uU(17,"zero"),e.qZA(),e.TgZ(18,"option",13),e._uU(19,"mqtt"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",5),e.TgZ(21,"label",6),e._uU(22,"Protocol"),e.qZA(),e.TgZ(23,"div",9),e.TgZ(24,"input",14),e.NdJ("ngModelChange",function(i){return _.edgeXSink.protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",5),e.TgZ(26,"label",6),e._uU(27,"Host"),e.qZA(),e.TgZ(28,"div",9),e.TgZ(29,"input",15),e.NdJ("ngModelChange",function(i){return _.edgeXSink.host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",5),e.TgZ(31,"label",6),e._uU(32,"Port"),e.qZA(),e.TgZ(33,"div",9),e.TgZ(34,"input",16),e.NdJ("ngModelChange",function(i){return _.edgeXSink.port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",5),e.TgZ(36,"label",6),e.TgZ(37,"span",7),e._uU(38,"Topic"),e.qZA(),e._UZ(39,"span",17),e.qZA(),e.TgZ(40,"div",9),e.TgZ(41,"input",18),e.NdJ("ngModelChange",function(i){return _.edgeXSink.topic=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",5),e.TgZ(43,"label",6),e.TgZ(44,"span",7),e._uU(45,"TopicPrefix"),e.qZA(),e._UZ(46,"span",19),e.qZA(),e.TgZ(47,"div",9),e.TgZ(48,"input",20),e.NdJ("ngModelChange",function(i){return _.edgeXSink.topicPrefix=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",5),e.TgZ(50,"label",6),e._uU(51,"ContentType"),e.qZA(),e.TgZ(52,"div",9),e.TgZ(53,"input",21),e.NdJ("ngModelChange",function(i){return _.edgeXSink.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",5),e.TgZ(55,"label",6),e.TgZ(56,"span",7),e._uU(57,"MessageType"),e.qZA(),e._UZ(58,"span",22),e.qZA(),e.TgZ(59,"div",9),e.TgZ(60,"select",23),e.NdJ("ngModelChange",function(i){return _.edgeXSink.messageType=i}),e.TgZ(61,"option",24),e._uU(62,"event"),e.qZA(),e.TgZ(63,"option",25),e._uU(64,"request"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(65,"div",5),e.TgZ(66,"label",6),e.TgZ(67,"span",7),e._uU(68,"Metadata"),e.qZA(),e._UZ(69,"span",26),e.qZA(),e.TgZ(70,"div",9),e.TgZ(71,"input",27),e.NdJ("ngModelChange",function(i){return _.edgeXSink.metadata=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",5),e.TgZ(73,"label",6),e._uU(74,"ProfileName"),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"app-device-profile-combo-list",28),e.NdJ("singleProfileSelectedChange",function(i){return _.edgeXSink.profileName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",5),e.TgZ(78,"label",6),e._uU(79,"DeviceName"),e.qZA(),e.TgZ(80,"div",9),e.TgZ(81,"app-device-combo-list",29),e.NdJ("singleDeviceSelectedChange",function(i){return _.edgeXSink.deviceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",5),e.TgZ(83,"label",6),e._uU(84,"SourceName"),e.qZA(),e.TgZ(85,"div",9),e.TgZ(86,"input",30),e.NdJ("ngModelChange",function(i){return _.edgeXSink.sourceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",5),e.TgZ(88,"label",6),e.TgZ(89,"span",7),e._uU(90,"SendSingle"),e.qZA(),e._UZ(91,"span",31),e.qZA(),e.TgZ(92,"div",9),e.TgZ(93,"select",32),e.NdJ("ngModelChange",function(i){return _.edgeXSink.sendSingle=i}),e.TgZ(94,"option",33),e._uU(95,"false"),e.qZA(),e.TgZ(96,"option",33),e._uU(97,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(98,"div",5),e.TgZ(99,"label",6),e.TgZ(100,"span",7),e._uU(101,"DataTemplate"),e.qZA(),e._UZ(102,"span",34),e.qZA(),e.TgZ(103,"div",9),e.TgZ(104,"input",35),e.NdJ("ngModelChange",function(i){return _.edgeXSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(105,"div",5),e.TgZ(106,"label",6),e.TgZ(107,"span",7),e._uU(108,"EdgeX Sink Options"),e.qZA(),e._UZ(109,"span",36),e.qZA(),e.TgZ(110,"div",9),e.TgZ(111,"app-edgex-sink-optional",37),e.NdJ("optionalChange",function(i){return _.edgeXSink.optional=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",5),e.TgZ(113,"label",6),e._uU(114,"Advanced Options"),e.qZA(),e.TgZ(115,"div",9),e.TgZ(116,"app-sink-base-properties",38),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(13),e.Q6J("ngModel",_.edgeXSink.type),e.xp6(11),e.Q6J("ngModel",_.edgeXSink.protocol),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.host),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.port),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.topic),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.topicPrefix),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.contentType),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.messageType),e.xp6(11),e.Q6J("ngModel",_.edgeXSink.metadata),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleProfileSelected",_.edgeXSink.profileName),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleDeviceSelected",_.edgeXSink.deviceName),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.sourceName),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.edgeXSink.dataTemplate),e.xp6(7),e.Q6J("optional",_.edgeXSink.optional),e.xp6(5),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,s.wV,w.o,B.h,W,C],styles:[""]}),o})(),ie=(()=>{class o{constructor(){this.sinkBaseProperties={},this.mqttSinkChange=new e.vpe,this._mqttSink={server:"tcp://127.0.0.1:1883",protocolVersion:"3.1",qos:0,insecureSkipVerify:!0,retained:!1,sendSingle:!1}}get mqttSink(){return this._mqttSink}set mqttSink(t){Object.assign(this._mqttSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.mqttSink)}ngOnChanges(){this.mqttSinkChange.emit(this.mqttSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.mqttSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-mqtt-sink"]],inputs:{mqttSink:"mqttSink"},outputs:{mqttSinkChange:"mqttSinkChange"},features:[e.TTD],decls:114,vars:32,consts:function(){let a,t,_,n;return a="the mqtt server address can't be empty!",t="the topic can't be empty!",_="Username",n="Password",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row","has-validation"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","server",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],a,["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],t,[1,"form-group","row"],["type","text","name","clientId",1,"form-control",3,"ngModel","ngModelChange"],["name","protocolVersion",1,"custom-select",3,"ngModel","ngModelChange"],["value","3.1"],["value","3.1.1"],["name","qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],_,["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],n,["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["name","retained",1,"custom-select",3,"ngModel","ngModelChange"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"MQTT Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e._uU(9,"Server"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",8),e.NdJ("ngModelChange",function(i){return _.mqttSink.server=i}),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"small"),e.SDv(14,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",5),e.TgZ(16,"label",6),e._uU(17,"Topic"),e.qZA(),e.TgZ(18,"div",7),e.TgZ(19,"input",11),e.NdJ("ngModelChange",function(i){return _.mqttSink.topic=i}),e.qZA(),e.TgZ(20,"div",9),e.TgZ(21,"small"),e.SDv(22,12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",13),e.TgZ(24,"label",6),e._uU(25,"ClientId"),e.qZA(),e.TgZ(26,"div",7),e.TgZ(27,"input",14),e.NdJ("ngModelChange",function(i){return _.mqttSink.clientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",13),e.TgZ(29,"label",6),e._uU(30,"ProtocolVersion"),e.qZA(),e.TgZ(31,"div",7),e.TgZ(32,"select",15),e.NdJ("ngModelChange",function(i){return _.mqttSink.protocolVersion=i}),e.TgZ(33,"option",16),e._uU(34,"3.1"),e.qZA(),e.TgZ(35,"option",17),e._uU(36,"3.1.1"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"div",13),e.TgZ(38,"label",6),e._uU(39,"Qos"),e.qZA(),e.TgZ(40,"div",7),e.TgZ(41,"select",18),e.NdJ("ngModelChange",function(i){return _.mqttSink.qos=i}),e.TgZ(42,"option",19),e._uU(43,"0"),e.qZA(),e.TgZ(44,"option",19),e._uU(45,"1"),e.qZA(),e.TgZ(46,"option",19),e._uU(47,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",13),e.TgZ(49,"label",6),e.SDv(50,20),e.qZA(),e.TgZ(51,"div",7),e.TgZ(52,"input",21),e.NdJ("ngModelChange",function(i){return _.mqttSink.username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",13),e.TgZ(54,"label",6),e.SDv(55,22),e.qZA(),e.TgZ(56,"div",7),e.TgZ(57,"input",23),e.NdJ("ngModelChange",function(i){return _.mqttSink.password=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",13),e.TgZ(59,"label",6),e._uU(60,"Retained"),e.qZA(),e.TgZ(61,"div",7),e.TgZ(62,"select",24),e.NdJ("ngModelChange",function(i){return _.mqttSink.retained=i}),e.TgZ(63,"option",19),e._uU(64,"false"),e.qZA(),e.TgZ(65,"option",19),e._uU(66,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",13),e.TgZ(68,"label",6),e.TgZ(69,"span",25),e._uU(70,"sendSingle"),e.qZA(),e._UZ(71,"span",26),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"select",27),e.NdJ("ngModelChange",function(i){return _.mqttSink.sendSingle=i}),e.TgZ(74,"option",19),e._uU(75,"false"),e.qZA(),e.TgZ(76,"option",19),e._uU(77,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(78,"div",13),e.TgZ(79,"label",6),e.TgZ(80,"span",25),e._uU(81,"dataTemplate"),e.qZA(),e._UZ(82,"span",28),e.qZA(),e.TgZ(83,"div",7),e.TgZ(84,"input",29),e.NdJ("ngModelChange",function(i){return _.mqttSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",13),e.TgZ(86,"label",6),e._uU(87,"InsecureSkipVerify"),e.qZA(),e.TgZ(88,"div",7),e.TgZ(89,"select",30),e.NdJ("ngModelChange",function(i){return _.mqttSink.insecureSkipVerify=i}),e.TgZ(90,"option",19),e._uU(91,"true"),e.qZA(),e.TgZ(92,"option",19),e._uU(93,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(94,"div",13),e.TgZ(95,"label",6),e._uU(96,"CertificationPath"),e.qZA(),e.TgZ(97,"div",7),e.TgZ(98,"input",31),e.NdJ("ngModelChange",function(i){return _.mqttSink.certificationPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(99,"div",13),e.TgZ(100,"label",6),e._uU(101,"PrivateKeyPath"),e.qZA(),e.TgZ(102,"div",7),e.TgZ(103,"input",32),e.NdJ("ngModelChange",function(i){return _.mqttSink.privateKeyPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(104,"div",13),e.TgZ(105,"label",6),e._uU(106,"RootCaPath"),e.qZA(),e.TgZ(107,"div",7),e.TgZ(108,"input",33),e.NdJ("ngModelChange",function(i){return _.mqttSink.rootCaPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(109,"div",13),e.TgZ(110,"label",6),e._uU(111,"Advanced Options"),e.qZA(),e.TgZ(112,"div",7),e.TgZ(113,"app-sink-base-properties",34),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(11),e.ekj("is-invalid",!_.mqttSink.server)("is-valid",_.mqttSink.server),e.Q6J("ngModel",_.mqttSink.server),e.xp6(8),e.ekj("is-invalid",!_.mqttSink.topic)("is-valid",_.mqttSink.topic),e.Q6J("ngModel",_.mqttSink.topic),e.xp6(8),e.Q6J("ngModel",_.mqttSink.clientId),e.xp6(5),e.Q6J("ngModel",_.mqttSink.protocolVersion),e.xp6(9),e.Q6J("ngModel",_.mqttSink.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(6),e.Q6J("ngModel",_.mqttSink.username),e.xp6(5),e.Q6J("ngModel",_.mqttSink.password),e.xp6(5),e.Q6J("ngModel",_.mqttSink.retained),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.mqttSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.mqttSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",_.mqttSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",_.mqttSink.certificationPath),e.xp6(5),e.Q6J("ngModel",_.mqttSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",_.mqttSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,s.EJ,s.YN,s.Kr,C],styles:[""]}),o})();var ae=d(2437),se=d(7982),re=d(9549);function le(o,a){1&o&&(e.TgZ(0,"div",21),e._UZ(1,"i",22),e.TgZ(2,"span"),e.SDv(3,23),e.qZA(),e.qZA())}function de(o,a){1&o&&(e.TgZ(0,"div"),e.TgZ(1,"span"),e.SDv(2,32),e.qZA(),e.qZA())}function ge(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"select",37),e.NdJ("change",function(n){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(n)}),e.TgZ(1,"option",38),e._uU(2,"false"),e.qZA(),e.TgZ(3,"option",38),e._uU(4,"true"),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function ce(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"input",39),e.NdJ("change",function(n){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(n)}),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.MGl("placeholder","valueType: ",t.valueType,"")}}function ue(o,a){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.cmdParametersValueRender()," ")}}function pe(o,a){if(1&o&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",2),e.TgZ(3,"label",33),e.SDv(4,34),e.qZA(),e.TgZ(5,"div",6),e.YNc(6,ge,5,4,"select",35),e.YNc(7,ce,1,3,"ng-template",null,36,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.YNc(9,ue,2,1,"ng-container",30),e.qZA()),2&o){const t=a.$implicit,_=a.last,n=e.MAs(8);e.xp6(3),e.s9C("for",t.resourceName),e.xp6(1),e.pQV(t.resourceName),e.QtT(4),e.xp6(2),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",_)}}function Se(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,de,3,0,"div",30),e.YNc(2,pe,10,5,"div",31),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",0==t.cmdSvcInfo.parametersOfPutCommand.length),e.xp6(1),e.Q6J("ngForOf",t.cmdSvcInfo.parametersOfPutCommand)}}function Ee(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",2),e.TgZ(1,"label",40),e.TgZ(2,"span",4),e.SDv(3,41),e.qZA(),e._UZ(4,"span",42),e.qZA(),e.TgZ(5,"div",6),e.TgZ(6,"select",43),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(2).cmdSvcInfo.pushEventOfGetCmdParamter=n}),e.TgZ(7,"option",44),e._uU(8,"yes"),e.qZA(),e.TgZ(9,"option",45),e._uU(10,"no"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"label",46),e.TgZ(13,"span",4),e.SDv(14,47),e.qZA(),e._UZ(15,"span",48),e.qZA(),e.TgZ(16,"div",6),e.TgZ(17,"select",49),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(2).cmdSvcInfo.returnEventOfGetCmdParamter=n}),e.TgZ(18,"option",44),e._uU(19,"yes"),e.qZA(),e.TgZ(20,"option",45),e._uU(21,"no"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(6),e.Q6J("ngModel",t.cmdSvcInfo.pushEventOfGetCmdParamter),e.xp6(11),e.Q6J("ngModel",t.cmdSvcInfo.returnEventOfGetCmdParamter)}}function me(o,a){if(1&o&&(e.TgZ(0,"div",2),e.TgZ(1,"label",18),e._uU(2,"Parameters"),e.qZA(),e.TgZ(3,"div",6),e.TgZ(4,"div",24),e.TgZ(5,"div",25),e.TgZ(6,"span"),e.SDv(7,26),e.qZA(),e.qZA(),e.TgZ(8,"div",27),e.YNc(9,Se,3,2,"div",28),e.YNc(10,Ee,22,2,"ng-template",null,29,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&o){const t=e.MAs(11),_=e.oxw();e.xp6(9),e.Q6J("ngIf","PUT"==_.cmdSvcInfo.httpMethod)("ngIfElse",t)}}let b=(()=>{class o{constructor(t,_){this.metedataSvc=t,this.cmdSvc=_,this.cmdURLFixedPrefix="/api/v3/device/name/",this.notCommandPathMsgShow=!1,this.deviceName="",this.commandName="",this.parameter={},this._url="",this._httpMethod="",this._requestBodyJSONStr="",this.cmdSvcInfoChange=new e.vpe,this.profileForm=new s.cw({host:new s.NI(""),port:new s.NI(""),path:new s.NI(""),httpMethod:new s.NI(""),pushEventOfGetCmdParamter:new s.NI(""),returnEventOfGetCmdParamter:new s.NI("")}),this.cmdSvcInfo={host:"edgex-core-command",port:59882,path:"",pushEventOfGetCmdParamter:"yes",returnEventOfGetCmdParamter:"yes",parametersOfPutCommand:[]}}get url(){return this._url}set url(t){this._url=t,this._url&&this.urlParser(t)}get httpMethod(){return this._httpMethod}set httpMethod(t){this._httpMethod=t,this.cmdSvcInfo.httpMethod=this._httpMethod}get requestBodyJSONStr(){return this._requestBodyJSONStr}set requestBodyJSONStr(t){this._requestBodyJSONStr=t}ngOnInit(){}ngAfterViewInit(){this.profileForm.valueChanges.pipe(I(400),q()).subscribe(()=>{this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}),this.renderPopoverComponent()}urlParser(t){let _={};try{_=new URL(t)}catch(n){return void(this.notCommandPathMsgShow=!0)}if(_.pathname.startsWith(this.cmdURLFixedPrefix)){let n=_.pathname.substring(this.cmdURLFixedPrefix.length).split("/");if(2===n.length)return this.deviceName=n[0],this.commandName=n[1],this.getCommandParameterByDeviceAndCommandName(this.deviceName,this.commandName),this.cmdSvcInfo.path=_.pathname,this.cmdSvcInfo.host=_.hostname,this.cmdSvcInfo.port=Number(_.port),this.cmdSvcInfo.pushEventOfGetCmdParamter=_.searchParams.get("ds-pushevent")||"yes",void(this.cmdSvcInfo.returnEventOfGetCmdParamter=_.searchParams.get("ds-returnevent")||"yes")}this.notCommandPathMsgShow=!0}getCommandParameterByDeviceAndCommandName(t,_){this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(t).subscribe(n=>{n.deviceCoreCommand.coreCommands.forEach(i=>{i.name===_&&(this.cmdSvcInfo.parametersOfPutCommand=i.parameters)})})}cmdParametersValueRender(){let t={};try{t=JSON.parse(this.requestBodyJSONStr)}catch(_){return}for(const[_,n]of Object.entries(t))this.cmdSvcInfo.parametersOfPutCommand.forEach(i=>{i.resourceName===_&&$(`#cmd-param-${_}`).val(n)})}onValueOfPutParamsChange(t){this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onCmdMethodSelected(t){this.cmdSvcInfo.httpMethod=t,this.cmdSvcInfoChange.emit(this.cmdSvcInfo),setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(t){this.cmdSvcInfo.path=t.path,this.cmdSvcInfo.parametersOfPutCommand=t.parameters}requestBodyAssemble(){let t={};return this.cmdSvcInfo.parametersOfPutCommand.forEach(_=>{!_||!$(`#cmd-param-${_.resourceName}`).val()||""!==$(`#cmd-param-${_.resourceName}`).val().trim()&&(t[_.resourceName]=$(`#cmd-param-${_.resourceName}`).val().trim())}),JSON.stringify(t)}resetPathParameterSuffix(){(-1!==this.cmdSvcInfo.path.indexOf("ds-pushevent")||-1!==this.cmdSvcInfo.path.indexOf("ds-returnevent"))&&(this.cmdSvcInfo.path=this.cmdSvcInfo.path.split("?")[0]),this.cmdSvcInfo.path=`${this.cmdSvcInfo.path}?ds-pushevent=${this.cmdSvcInfo.pushEventOfGetCmdParamter}&ds-returnevent=${this.cmdSvcInfo.returnEventOfGetCmdParamter}`}getHttpMethod(){return this.cmdSvcInfo.httpMethod}getRequestBodyJSONStr(){return this.requestBodyAssemble()}getUrl(){return"GET"===this.cmdSvcInfo.httpMethod&&this.resetPathParameterSuffix(),`http://${this.cmdSvcInfo.host}:${this.cmdSvcInfo.port}${this.cmdSvcInfo.path}`}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(ae.D),e.Y36(se.V))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-command-service-template"]],inputs:{url:"url",httpMethod:"httpMethod",requestBodyJSONStr:"requestBodyJSONStr",cmdSvcInfo:"cmdSvcInfo"},outputs:{cmdSvcInfoChange:"cmdSvcInfoChange"},decls:33,vars:19,consts:function(){let a,t,_,n,i,r,l,S;return a="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",t="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",_=" Invalid command service url, please don't use this template for custom http request, or select one new valid command path if you insist on using the template! ",n="Command Parameters Setting",i="no paramters.",r="" + "\ufffd0\ufffd" + "",l="pushevent",S="returnevent",[["class","alert alert-danger","role","alert",4,"ngIf"],[3,"formGroup"],[1,"form-group","row"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","name","httpMethod","formControlName","httpMethod","readonly","true","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"form-group","row","has-validation"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressHostREST","name","addressHost","formControlName","host","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],a,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","number","id","addressPortREST","name","addressPort","formControlName","port","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],t,["for","addressPath","required","",1,"col-md-2","col-form-label"],[3,"validate","deviceName","commandName","httpMethod","commandPath","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"],_,[1,"card"],[1,"card-header"],n,[1,"card-body"],[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngIf"],[4,"ngFor","ngForOf"],i,[1,"col-md-2","col-form-label",3,"for"],r,["class","custom-select",3,"id","name","change",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name","change"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder","change"],["for","ds-pushevent",1,"col-md-2","col-form-label"],l,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent","formControlName","pushEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],S,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent","formControlName","returnEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(t,_){1&t&&(e.YNc(0,le,4,0,"div",0),e.TgZ(1,"form",1),e.TgZ(2,"div",2),e.TgZ(3,"label",3),e.TgZ(4,"span",4),e._uU(5,"HttpMethod"),e.qZA(),e._UZ(6,"span",5),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.httpMethod=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"label",9),e.TgZ(11,"span",4),e._uU(12,"Host"),e.qZA(),e._UZ(13,"span",10),e.qZA(),e.TgZ(14,"div",6),e.TgZ(15,"input",11),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.host=i}),e.qZA(),e.TgZ(16,"div",12),e.TgZ(17,"small"),e.SDv(18,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",8),e.TgZ(20,"label",14),e._uU(21,"Port"),e.qZA(),e.TgZ(22,"div",6),e.TgZ(23,"input",15),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.port=i}),e.qZA(),e.TgZ(24,"div",16),e.TgZ(25,"small"),e.SDv(26,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"label",18),e._uU(29,"Path"),e.qZA(),e.TgZ(30,"div",6),e.TgZ(31,"app-device-core-command-combo-list",19),e.NdJ("cmdMethodEvent",function(i){return _.onCmdMethodSelected(i)})("commandSelectedEvent",function(i){return _.onCommandSelected(i)}),e.qZA(),e.qZA(),e.qZA(),e.YNc(32,me,12,2,"div",20),e.qZA()),2&t&&(e.Q6J("ngIf",_.notCommandPathMsgShow),e.xp6(1),e.Q6J("formGroup",_.profileForm),e.xp6(7),e.Q6J("ngModel",_.cmdSvcInfo.httpMethod),e.xp6(7),e.ekj("is-invalid",!_.cmdSvcInfo.host)("is-valid",_.cmdSvcInfo.host),e.Q6J("ngModel",_.cmdSvcInfo.host),e.xp6(8),e.ekj("is-invalid",!_.cmdSvcInfo.port)("is-valid",_.cmdSvcInfo.port),e.Q6J("ngModel",_.cmdSvcInfo.port),e.xp6(8),e.Q6J("validate",!0)("deviceName",_.deviceName)("commandName",_.commandName)("httpMethod",_.cmdSvcInfo.httpMethod)("commandPath",_.cmdSvcInfo.path),e.xp6(1),e.Q6J("ngIf",_.cmdSvcInfo.path&&_.cmdSvcInfo.httpMethod&&0!==_.cmdSvcInfo.parametersOfPutCommand.length))},directives:[p.O5,s._Y,s.JL,s.sg,s.Fj,s.JJ,s.u,s.Q7,s.wV,re.P,p.sg,s.F,s.YN,s.Kr,s.EJ],styles:[""]}),o})();function Te(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-command-service-template",8),e.NdJ("cmdSvcInfoChange",function(n){return e.CHM(t),e.oxw().onCmdSvcTemplateInfoChange(n)}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(1),e.Q6J("url",t.restSink.url)("httpMethod",t.restSink.method)("requestBodyJSONStr",t.restSink.dataTemplate?t.restSink.dataTemplate:"")}}function Ae(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",51),e.TgZ(2,"div",52),e.TgZ(3,"div",53),e.TgZ(4,"span",54),e._uU(5,"Key"),e.qZA(),e.qZA(),e.TgZ(6,"input",55),e.NdJ("ngModelChange",function(n){return e.CHM(t).$implicit.key=n})("ngModelChange",function(n){return e.CHM(t),e.oxw(2).requestHeaderChange(n)}),e.qZA(),e.qZA(),e.TgZ(7,"div",56),e._UZ(8,"i",57),e.qZA(),e.TgZ(9,"div",58),e.TgZ(10,"div",53),e.TgZ(11,"span",54),e._uU(12,"Value"),e.qZA(),e.qZA(),e.TgZ(13,"input",59),e.NdJ("ngModelChange",function(n){return e.CHM(t).$implicit.value=n})("ngModelChange",function(n){return e.CHM(t),e.oxw(2).requestHeaderChange(n)}),e.qZA(),e.qZA(),e.TgZ(14,"div",60),e.TgZ(15,"button",61),e.NdJ("click",function(){const i=e.CHM(t).index;return e.oxw(2).removeRequestHeader(i)}),e._UZ(16,"i",62),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit;e.xp6(6),e.Q6J("ngModel",t.key),e.xp6(7),e.Q6J("ngModel",t.value)}}function fe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",9),e.TgZ(3,"label",10),e._uU(4,"Method"),e.qZA(),e.TgZ(5,"div",11),e.TgZ(6,"select",12),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.method=n}),e.TgZ(7,"option",13),e._uU(8,"GET"),e.qZA(),e.TgZ(9,"option",14),e._uU(10,"POST"),e.qZA(),e.TgZ(11,"option",15),e._uU(12,"PUT"),e.qZA(),e.TgZ(13,"option",16),e._uU(14,"DELETE"),e.qZA(),e.TgZ(15,"option",17),e._uU(16,"PATCH"),e.qZA(),e.TgZ(17,"option",18),e._uU(18,"HEAD"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",19),e.TgZ(20,"label",10),e._uU(21,"URL"),e.qZA(),e.TgZ(22,"div",11),e.TgZ(23,"input",20),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.url=n}),e.qZA(),e.TgZ(24,"div",21),e.TgZ(25,"small"),e.SDv(26,22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",9),e.TgZ(28,"label",10),e._uU(29,"BodyType"),e.qZA(),e.TgZ(30,"div",11),e.TgZ(31,"select",23),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.bodyType=n}),e.TgZ(32,"option",24),e._uU(33,"none"),e.qZA(),e.TgZ(34,"option",25),e._uU(35,"json"),e.qZA(),e.TgZ(36,"option",26),e._uU(37,"text"),e.qZA(),e.TgZ(38,"option",27),e._uU(39,"html"),e.qZA(),e.TgZ(40,"option",28),e._uU(41,"xml"),e.qZA(),e.TgZ(42,"option",29),e._uU(43,"javascript"),e.qZA(),e.TgZ(44,"option",30),e._uU(45,"form"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",9),e.TgZ(47,"label",10),e._uU(48,"Headers"),e.qZA(),e.TgZ(49,"div",11),e.TgZ(50,"div",0),e.TgZ(51,"div",6),e.TgZ(52,"p",31),e._UZ(53,"span",32),e.TgZ(54,"span",33),e.NdJ("click",function(){return e.CHM(t),e.oxw().addRequestHeader()}),e.SDv(55,34),e.qZA(),e.qZA(),e.YNc(56,Ae,17,2,"div",35),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(57,"div",9),e.TgZ(58,"label",10),e.TgZ(59,"span",36),e._uU(60,"timeout"),e.qZA(),e._UZ(61,"span",37),e.qZA(),e.TgZ(62,"div",11),e.TgZ(63,"input",38),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.timeout=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",9),e.TgZ(65,"label",10),e.TgZ(66,"span",36),e._uU(67,"DebugResp"),e.qZA(),e._UZ(68,"span",39),e.qZA(),e.TgZ(69,"div",11),e.TgZ(70,"select",40),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.debugResp=n}),e.TgZ(71,"option",41),e._uU(72,"false"),e.qZA(),e.TgZ(73,"option",41),e._uU(74,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"label",10),e.TgZ(77,"span",36),e._uU(78,"sendSingle"),e.qZA(),e._UZ(79,"span",42),e.qZA(),e.TgZ(80,"div",11),e.TgZ(81,"select",43),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.sendSingle=n}),e.TgZ(82,"option",41),e._uU(83,"false"),e.qZA(),e.TgZ(84,"option",41),e._uU(85,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(86,"div",9),e.TgZ(87,"label",10),e.TgZ(88,"span",36),e._uU(89,"dataTemplate"),e.qZA(),e._UZ(90,"span",44),e.qZA(),e.TgZ(91,"div",11),e.TgZ(92,"input",45),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.dataTemplate=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(93,"div",9),e.TgZ(94,"label",10),e._uU(95,"InsecureSkipVerify"),e.qZA(),e.TgZ(96,"div",11),e.TgZ(97,"select",46),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.insecureSkipVerify=n}),e.TgZ(98,"option",41),e._uU(99,"true"),e.qZA(),e.TgZ(100,"option",41),e._uU(101,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",9),e.TgZ(103,"label",10),e._uU(104,"CertificationPath"),e.qZA(),e.TgZ(105,"div",11),e.TgZ(106,"input",47),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.certificationPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(107,"div",9),e.TgZ(108,"label",10),e._uU(109,"PrivateKeyPath"),e.qZA(),e.TgZ(110,"div",11),e.TgZ(111,"input",48),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.privateKeyPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",9),e.TgZ(113,"label",10),e._uU(114,"RootCaPath"),e.qZA(),e.TgZ(115,"div",11),e.TgZ(116,"input",49),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.rootCaPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(117,"div",9),e.TgZ(118,"label",10),e._uU(119,"Advanced Options"),e.qZA(),e.TgZ(120,"div",11),e.TgZ(121,"app-sink-base-properties",50),e.NdJ("sinkBasePropertiesChange",function(n){return e.CHM(t),e.oxw().onSinkBasePropertiesChange(n)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.restSink.method),e.xp6(17),e.ekj("is-invalid",!t.restSink.url)("is-valid",t.restSink.url),e.Q6J("ngModel",t.restSink.url),e.xp6(8),e.Q6J("ngModel",t.restSink.bodyType),e.xp6(25),e.Q6J("ngForOf",t.requestHeaderList),e.xp6(7),e.Q6J("ngModel",t.restSink.timeout),e.xp6(7),e.Q6J("ngModel",t.restSink.debugResp),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",t.restSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",t.restSink.certificationPath),e.xp6(5),e.Q6J("ngModel",t.restSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",t.restSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",t.sinkBaseProperties)}}let he=(()=>{class o{constructor(){this.SVC_TYPE_COMMAND="command",this.SVC_TYPE_CUSTOM="custom",this.templateTypeSelected=this.SVC_TYPE_COMMAND,this.sinkBaseProperties={},this.restSinkChange=new e.vpe,this.requestHeaderList=[],this._restSink={method:"GET",bodyType:"json",debugResp:!1,insecureSkipVerify:!0,timeout:5e3,sendSingle:!1,dataTemplate:""}}get restSink(){return this._restSink}set restSink(t){Object.assign(this._restSink,t)}ngOnInit(){if(Object.assign(this.sinkBaseProperties,this.restSink),this.restSink.headers)for(const[t,_]of Object.entries(this.restSink.headers))this.requestHeaderList.push({key:t,value:_});this.renderPopoverComponent()}ngOnChanges(){this.restSinkChange.emit(this.restSink)}ngAfterViewInit(){}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}templateTypeToggle(t){this.templateTypeSelected=t,window.setTimeout(()=>{this.renderPopoverComponent()},1e3)}requestHeaderChange(t){this.headersResovler()}headersResovler(){let t={};this.requestHeaderList.forEach(_=>{t[`${_.key}`]=`${_.value}`}),this.restSink.headers=t,this.restSinkChange.emit(this.restSink)}addRequestHeader(){this.requestHeaderList.push({key:"",value:""})}removeRequestHeader(t,_){this.requestHeaderList.splice(t,1),this.headersResovler()}onSinkBasePropertiesChange(t){Object.assign(this.restSink,t)}onCmdSvcTemplateInfoChange(t){this.getValuesSettingAllOfCommandTemplate()}getValuesSettingAllOfCommandTemplate(){this.restSink.method=this.cmdSvcTemplate.getHttpMethod(),this.restSink.url=this.cmdSvcTemplate.getUrl(),this.restSink.dataTemplate=this.cmdSvcTemplate.getRequestBodyJSONStr()}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rest-sink"]],viewQuery:function(t,_){if(1&t&&e.Gf(b,5),2&t){let n;e.iGM(n=e.CRH())&&(_.cmdSvcTemplate=n.first)}},inputs:{restSink:"restSink"},outputs:{restSinkChange:"restSinkChange"},features:[e.TTD],decls:17,vars:10,consts:function(){let a,t;return a="the url can't be empty!",t="Add Headers KV",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body"],[4,"ngIf"],[3,"url","httpMethod","requestBodyJSONStr","cmdSvcInfoChange"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["name","method",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],[1,"form-group","row","has-validation"],["type","text","name","url",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],a,["name","bodyType",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","json"],["value","text"],["value","html"],["value","xml"],["value","javascript"],["value","form"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],t,[4,"ngFor","ngForOf"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The timeout (milliseconds) for a HTTP request, defaults to 5000 ms",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","timeout",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Control if print the response information into the console. If set it to true, then print response; If set to false, then skip print log. The default is false.",1,"fa","fa-question-circle-o","fa-lg"],["name","debugResp",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here be treated as http post or put RequestBody,The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"],[1,"form-inline","mb-1"],[1,"input-group","mb-1"],[1,"input-group-prepend"],[1,"input-group-text"],["type","text","name","headerKey",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","mx-2"],[1,"fa","fa-long-arrow-right"],[1,"input-group"],["type","text","name","headerValue",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"REST Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",1),e.TgZ(6,"span",4),e.NdJ("click",function(){return _.templateTypeToggle(_.SVC_TYPE_COMMAND)}),e._UZ(7,"i",5),e.TgZ(8,"span"),e._uU(9,"EdgeXCommandServiceTemplate"),e.qZA(),e.qZA(),e.TgZ(10,"span",4),e.NdJ("click",function(){return _.templateTypeToggle(_.SVC_TYPE_CUSTOM)}),e._UZ(11,"i",5),e.TgZ(12,"span"),e._uU(13,"CustomHttpServiceTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",6),e.YNc(15,Te,2,3,"div",7),e.YNc(16,fe,122,23,"div",7),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.ekj("badge-info",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(3),e.ekj("badge-info",_.templateTypeSelected===_.SVC_TYPE_CUSTOM),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.SVC_TYPE_CUSTOM),e.xp6(4),e.Q6J("ngIf",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(1),e.Q6J("ngIf",_.templateTypeSelected===_.SVC_TYPE_CUSTOM))},directives:[p.O5,b,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,p.sg,s.wV,C],styles:[""]}),o})(),Ze=(()=>{class o{constructor(){this.sinkBaseProperties={},this.logSinkChange=new e.vpe,this._logSink={sendSingle:!1}}get logSink(){return this._logSink}set logSink(t){Object.assign(this._logSink,t)}ngOnInit(){Object.assign(this.sinkBaseProperties,this.logSink),this.renderPopoverComponent()}ngOnChanges(){this.logSinkChange.emit(this.logSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.logSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-log-sink"]],inputs:{logSink:"logSink"},outputs:{logSinkChange:"logSinkChange"},features:[e.TTD],decls:35,vars:5,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"text-info","mb-2"],[1,"fa","fa-info-circle","mr-1"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Log Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"p",5),e._UZ(7,"i",6),e._uU(8," The action is used for print output message into log file, the log file is at $eKuiper_install/log/stream.log by default."),e._UZ(9,"br"),e._uU(10," No properties can be specified for the action. "),e.qZA(),e.TgZ(11,"div",7),e.TgZ(12,"label",8),e.TgZ(13,"span",9),e._uU(14,"sendSingle"),e.qZA(),e._UZ(15,"span",10),e.qZA(),e.TgZ(16,"div",11),e.TgZ(17,"select",12),e.NdJ("ngModelChange",function(i){return _.logSink.sendSingle=i}),e.TgZ(18,"option",13),e._uU(19,"false"),e.qZA(),e.TgZ(20,"option",13),e._uU(21,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",7),e.TgZ(23,"label",8),e.TgZ(24,"span",9),e._uU(25,"dataTemplate"),e.qZA(),e._UZ(26,"span",14),e.qZA(),e.TgZ(27,"div",11),e.TgZ(28,"input",15),e.NdJ("ngModelChange",function(i){return _.logSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"form"),e.TgZ(30,"div",7),e.TgZ(31,"label",8),e._uU(32,"Advanced Options"),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"app-sink-base-properties",16),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngModel",_.logSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.logSink.dataTemplate),e.xp6(6),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,s._Y,s.JL,s.F,C],styles:[""]}),o})();function Ce(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"li",9),e.TgZ(1,"span",10),e._uU(2),e.qZA(),e.TgZ(3,"span",11),e.TgZ(4,"span",12),e.NdJ("click",function(){const n=e.CHM(t),i=n.$implicit,r=n.index;return e.oxw(2).editSinkTransfer(i,r)}),e._UZ(5,"i",13),e.qZA(),e.TgZ(6,"span",14),e.NdJ("click",function(){const n=e.CHM(t),i=n.$implicit,r=n.index;return e.oxw(2).deleteSink(i,r)}),e._UZ(7,"i",15),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit,_=a.index,n=e.oxw(2);e.ekj("list-group-item-light",_!==n.selectedSinkIndex)("list-group-item-secondary",_===n.selectedSinkIndex),e.xp6(2),e.Oqu(n.getSinkTypeOfAction(t))}}function Ne(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"p",2),e.TgZ(2,"span",3),e.NdJ("click",function(){return e.CHM(t),e.oxw().addSinkTransfer()}),e._UZ(3,"span",4),e.TgZ(4,"span",5),e.SDv(5,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"ul",7),e.YNc(7,Ce,8,5,"li",8),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(7),e.Q6J("ngForOf",t.ruleActions)}}function Me(o,a){1&o&&(e.TgZ(0,"span",33),e._uU(1,"Edit Sink"),e.qZA())}function ve(o,a){if(1&o&&(e.TgZ(0,"span"),e._UZ(1,"i",32),e.TgZ(2,"span",33),e._uU(3,"Add Sink"),e.qZA(),e.YNc(4,Me,2,0,"span",34),e.qZA()),2&o){const t=e.oxw(2);e.xp6(4),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT)}}function Re(o,a){1&o&&(e.TgZ(0,"span"),e._UZ(1,"i",35),e.TgZ(2,"span",33),e._uU(3,"Edit Sink"),e.qZA(),e.qZA())}function Ue(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).addOneNewSink()}),e._uU(1,"Add"),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function Ie(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).updateSink()}),e._uU(1,"Update"),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function qe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-edgex-sink",37),e.NdJ("edgeXSinkChange",function(n){return e.CHM(t),e.oxw(2).edgeXSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("edgeXSink",t.edgeXSink)}}function be(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-mqtt-sink",38),e.NdJ("mqttSinkChange",function(n){return e.CHM(t),e.oxw(2).mqttSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("mqttSink",t.mqttSink)}}function Ge(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-rest-sink",39),e.NdJ("restSinkChange",function(n){return e.CHM(t),e.oxw(2).restSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("restSink",t.restSink)}}function Le(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-log-sink",40),e.NdJ("logSinkChange",function(n){return e.CHM(t),e.oxw(2).logSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("logSink",t.logSink)}}function Oe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.YNc(2,ve,5,1,"span",0),e.YNc(3,Re,4,0,"span",0),e.TgZ(4,"span",11),e.YNc(5,Ue,2,1,"button",18),e.YNc(6,Ie,2,1,"button",18),e.TgZ(7,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e._uU(8,"Cancel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",20),e.TgZ(10,"form",21),e.TgZ(11,"div",22),e.TgZ(12,"label",23),e.SDv(13,24),e.qZA(),e.TgZ(14,"div",25),e.TgZ(15,"select",26),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().selectedSinkType=n}),e.TgZ(16,"option",27),e._uU(17),e.qZA(),e.TgZ(18,"option",27),e._uU(19),e.qZA(),e.TgZ(20,"option",27),e._uU(21),e.qZA(),e.TgZ(22,"option",27),e._uU(23),e.qZA(),e.qZA(),e.TgZ(24,"div",28),e.TgZ(25,"small"),e.SDv(26,29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",30),e.YNc(28,qe,2,1,"div",31),e.YNc(29,be,2,1,"div",31),e.YNc(30,Ge,2,1,"div",31),e.YNc(31,Le,2,1,"div",31),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(9),e.ekj("is-invalid",!t.selectedSinkType),e.Q6J("ngModel",t.selectedSinkType),e.xp6(1),e.s9C("value",t.EdgeX_SINK),e.xp6(1),e.Oqu(t.EdgeX_SINK),e.xp6(1),e.s9C("value",t.MQTT_SINK),e.xp6(1),e.Oqu(t.MQTT_SINK),e.xp6(1),e.s9C("value",t.REST_SINK),e.xp6(1),e.Oqu(t.REST_SINK),e.xp6(1),e.s9C("value",t.LOG_SINK),e.xp6(1),e.Oqu(t.LOG_SINK),e.xp6(4),e.Q6J("ngSwitch",t.selectedSinkType),e.xp6(1),e.Q6J("ngSwitchCase",t.EdgeX_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.MQTT_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.REST_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.LOG_SINK)}}let G=(()=>{class o{constructor(){this.EdgeX_SINK="edgex",this.MQTT_SINK="mqtt",this.REST_SINK="rest",this.LOG_SINK="log",this.NOP_SINK="nop",this.ruleActionsChange=new e.vpe,this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={},this.selectedSinkIndex=-1,this.selectedSinkType="",this.sinkAddOrEditStatus=!1,this.sinkOperation_ADD="add",this.sinkOperation_EDIT="edit",this.sinkAddOrEditOperation="",this.updateTimestamp="",this._ruleActions=[]}get ruleActions(){return this._ruleActions}set ruleActions(t){!t||(this._ruleActions=t)}ngOnInit(){}ngOnChanges(){this.ruleActionsChange.emit(this.ruleActions)}resetSinksConcreteAll(){this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={}}getSinkTypeOfAction(t){let _=Object.keys(t);return 0===_.length?"":_[0]}getSinkByType(t){let _={};switch(t){case this.EdgeX_SINK:_.edgex=this.edgeXSink;break;case this.MQTT_SINK:_.mqtt=this.mqttSink;break;case this.REST_SINK:_.rest=this.restSink;break;case this.LOG_SINK:_.log=this.logSink;break;default:_.nop=this.nopSink}return _}sinkConcreteExtractor(t){let _=this.getSinkTypeOfAction(t);switch(this.selectedSinkType=_,_){case this.EdgeX_SINK:this.edgeXSink=t.edgex;break;case this.MQTT_SINK:this.mqttSink=t.mqtt;break;case this.REST_SINK:this.restSink=t.rest;break;case this.LOG_SINK:this.logSink=t.log;break;default:this.nopSink=t.nop}}addSinkTransfer(){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_ADD,this.selectedSinkIndex=-1,this.selectedSinkType="",this.resetSinksConcreteAll()}editSinkTransfer(t,_){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_EDIT,this.selectedSinkIndex=_,this.sinkConcreteExtractor(t),this.selectedSinkType=this.getSinkTypeOfAction(t)}addOneNewSink(){this.ruleActions.push(this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}updateSink(){this.ruleActions.splice(this.selectedSinkIndex,1,this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}deleteSink(t,_){this.ruleActions.splice(_,1),this.selectedSinkIndex=-1}cancel(){this.sinkAddOrEditStatus=!1}validate(){if(!this.selectedSinkType)return!1;switch(this.selectedSinkType){case this.MQTT_SINK:if(!this.mqttSink.server||!this.mqttSink.topic)return!1;break;case this.REST_SINK:if(!this.restSink.url)return!1}return!0}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-sink-list"]],inputs:{ruleActions:"ruleActions"},outputs:{ruleActionsChange:"ruleActionsChange"},features:[e.TTD],decls:2,vars:2,consts:function(){let a,t,_;return a="Add Sink",t="Sink Type",_="please select a valid Sink Type !",[[4,"ngIf"],["class","card",4,"ngIf"],[1,"badge","badge-secondary","font-weight-bold"],[3,"click"],[1,"fa","fa-plus-circle","mr-1"],["role","button",1,"user-select-none"],a,[1,"list-group"],["class","list-group-item list-group-item-action ",3,"list-group-item-light","list-group-item-secondary",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action"],[1,"text-dark","mr-2"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit"],["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash"],[1,"card"],[1,"card-header","p-2"],["class","btn btn-success btn-sm mr-2",3,"disabled","click",4,"ngIf"],[1,"btn","btn-secondary","btn-sm",3,"click"],[1,"card-body"],[1,"mb-2"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],t,[1,"col-sm-9"],["name","SinkType",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["id","validationSinkTypeFeedback",1,"invalid-feedback"],_,[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"fa","fa-plus","mr-2","text-info"],[1,"font-weight-bold"],["class","font-weight-bold",4,"ngIf"],[1,"fa","fa-edit","mr-2","text-info"],[1,"btn","btn-success","btn-sm","mr-2",3,"disabled","click"],[3,"edgeXSink","edgeXSinkChange"],[3,"mqttSink","mqttSinkChange"],[3,"restSink","restSinkChange"],[3,"logSink","logSinkChange"]]},template:function(t,_){1&t&&(e.YNc(0,Ne,8,1,"div",0),e.YNc(1,Oe,32,20,"div",1)),2&t&&(e.Q6J("ngIf",!_.sinkAddOrEditStatus),e.xp6(1),e.Q6J("ngIf",_.sinkAddOrEditStatus))},directives:[p.O5,p.sg,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,p.RF,p.n9,oe,ie,he,Ze],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function ke(o,a){1&o&&e._UZ(0,"i",29)}function Pe(o,a){1&o&&e._UZ(0,"i",30)}let L=(()=>{class o{constructor(){this.collapseToggleStatus=!1,this.ruleOptionsChange=new e.vpe,this._ruleOptions={isEventTime:!1,sendMetaToSink:!1,sendError:!0,qos:0}}get ruleOptions(){return this._ruleOptions}set ruleOptions(t){Object.assign(this._ruleOptions,t)}ngOnInit(){}ngOnChanges(){this.ruleOptionsChange.emit(this.ruleOptions)}collapseToggle(t){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rule-advanced-options"]],inputs:{ruleOptions:"ruleOptions"},outputs:{ruleOptionsChange:"ruleOptionsChange"},features:[e.TTD],decls:84,vars:19,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"font-weight-bold","text-primary"],[1,"text-primary","ml-2"],["aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["id","clllapse-rule-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to use event time or processing time as the timestamp for an event. If event time is used, the timestamp will be extracted from the payload. The timestamp filed must be specified by the stream definition.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","isEventTime",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the qos of the stream. The options are 0: At most once; 1: At least once and 2: Exactly once. If qos is bigger than 0, the checkpoint mechanism will be activated to save states periodically so that the rule can be resumed from errors.",1,"fa","fa-question-circle-o","fa-lg"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","When working with event-time windowing, it can happen that elements arrive late. LateTolerance can specify by how much time(unit is millisecond) elements can be late before they are dropped. By default, the value is 0 which means late elements are dropped.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","lateTolerance",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","A rule is processed by several phases of plans according to the sql statement. This option will specify how many instances will be run for each plan. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","concurrency",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory for each plan. If the buffered messages exceed the limit, the plan will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit. A bigger value will accommodate more throughput but will also take up more memory footprint.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the time interval in milliseconds to trigger a checkpoint. This is only effective when qos is bigger than 0.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","checkpointInterval",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify whether the meta data of an event will be sent to the sink. If true, the sink can get te meta data information.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendMetaToSink",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to send the error to sink. If true, any runtime error will be sent through the whole rule into sinks. Otherwise, the error will only be printed out in the log.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendError",1,"custom-select",3,"ngModel","ngModelChange"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-down","fa-lg"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(i){return _.collapseToggle(i)}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Rule Advanced Options"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,ke,1,0,"i",5),e.YNc(7,Pe,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span",10),e._uU(13,"IsEventTime"),e.qZA(),e._UZ(14,"span",11),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"select",13),e.NdJ("ngModelChange",function(i){return _.ruleOptions.isEventTime=i}),e.TgZ(17,"option",14),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span",10),e._uU(24,"Qos"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",12),e.TgZ(27,"select",16),e.NdJ("ngModelChange",function(i){return _.ruleOptions.qos=i}),e.TgZ(28,"option",14),e._uU(29,"0"),e.qZA(),e.TgZ(30,"option",14),e._uU(31,"1"),e.qZA(),e.TgZ(32,"option",14),e._uU(33,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",8),e.TgZ(35,"label",9),e.TgZ(36,"span",10),e._uU(37,"LateTolerance"),e.qZA(),e._UZ(38,"span",17),e.qZA(),e.TgZ(39,"div",12),e.TgZ(40,"input",18),e.NdJ("ngModelChange",function(i){return _.ruleOptions.lateTolerance=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e.TgZ(43,"span",10),e._uU(44,"Concurrency"),e.qZA(),e._UZ(45,"span",19),e.qZA(),e.TgZ(46,"div",12),e.TgZ(47,"input",20),e.NdJ("ngModelChange",function(i){return _.ruleOptions.concurrency=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",8),e.TgZ(49,"label",9),e.TgZ(50,"span",10),e._uU(51,"BufferLength"),e.qZA(),e._UZ(52,"span",21),e.qZA(),e.TgZ(53,"div",12),e.TgZ(54,"input",22),e.NdJ("ngModelChange",function(i){return _.ruleOptions.bufferLength=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",8),e.TgZ(56,"label",9),e.TgZ(57,"span",10),e._uU(58,"CheckpointInterval"),e.qZA(),e._UZ(59,"span",23),e.qZA(),e.TgZ(60,"div",12),e.TgZ(61,"input",24),e.NdJ("ngModelChange",function(i){return _.ruleOptions.checkpointInterval=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",8),e.TgZ(63,"label",9),e.TgZ(64,"span",10),e._uU(65,"SendMetaToSink"),e.qZA(),e._UZ(66,"span",25),e.qZA(),e.TgZ(67,"div",12),e.TgZ(68,"select",26),e.NdJ("ngModelChange",function(i){return _.ruleOptions.sendMetaToSink=i}),e.TgZ(69,"option",14),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",14),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e.TgZ(75,"span",10),e._uU(76,"SendError"),e.qZA(),e._UZ(77,"span",27),e.qZA(),e.TgZ(78,"div",12),e.TgZ(79,"select",28),e.NdJ("ngModelChange",function(i){return _.ruleOptions.sendError=i}),e.TgZ(80,"option",14),e._uU(81,"false"),e.qZA(),e.TgZ(82,"option",14),e._uU(83,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(9),e.Q6J("ngModel",_.ruleOptions.isEventTime),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.lateTolerance),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.concurrency),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.bufferLength),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.checkpointInterval),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.sendMetaToSink),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.sendError),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.wV,s.Fj],styles:[""]}),o})();function De(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}function ye(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,43),e.qZA(),e.qZA())}let Je=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}submit(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.addRule(this.rule).subscribe(()=>{this.msgSvc.success("Add rule",`Name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-rules"]],decls:59,vars:18,consts:function(){let a,t,_,n,i,r,l,S,g,u,m;return a="Add Rule",t="\u63D0\u4EA4",_="\u540D\u5B57",n="\u89C4\u5219\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A\uFF01",i="RuleSQL",r="SQL Editor",l="Action",S="Add Action",g="Options",u="SQL can't be empty!",m="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],a,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],n,["for","ruleSql",1,"col-md-2","col-form-label"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],r,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],l,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],S,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u,m]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return _.submit()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(i){return _.rule.id=i}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,De,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,ye,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(i){return _.rule.actions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(i){return _.rule.options=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!_.validate()),e.xp6(12),e.ekj("is-invalid",!_.rule.id)("is-valid",_.rule.id),e.Q6J("ngModel",_.rule.id),e.xp6(11),e.ekj("border",!_.sqlEditor.getValue())("border-danger",!_.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!_.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!_.rule.actions||0===_.rule.actions.length)("border-danger",!_.rule.actions||0===_.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!_.rule.actions||0===_.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",_.rule.actions),e.xp6(7),e.Q6J("ruleOptions",_.rule.options))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,p.O5,G,L],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function xe(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e._uU(3,"SQL can't be empty!"),e.qZA(),e.qZA())}function $e(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}let Xe=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.ruleID&&this.getRuleByID(t.ruleID)}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}getRuleByID(t){this.ruleSvc.findRuleById(t).subscribe(_=>{this.rule=_,this.sqlEditor.setValue(this.rule.sql)})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}update(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.updateRule(this.rule).subscribe(()=>{this.msgSvc.success("update",`name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edit-rules"]],decls:59,vars:18,consts:function(){let a,t,_,n,i,r,l,S,g,u;return a="Edit Rule",t="Update",_="\u540D\u5B57",n="\u89C4\u5219\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A\uFF01",i="RuleSQL",r="SQL Editor",l="Action",S="Add Action",g="Options",u="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],a,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],n,["for","ruleSql",1,"col-md-2","col-form-label"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],r,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],l,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],S,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return _.update()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(i){return _.rule.id=i}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,xe,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,$e,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(i){return _.rule.actions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(i){return _.rule.options=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!_.validate()),e.xp6(12),e.ekj("is-invalid",!_.rule.id)("is-valid",_.rule.id),e.Q6J("ngModel",_.rule.id),e.xp6(11),e.ekj("border",!_.sqlEditor.getValue())("border-danger",!_.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!_.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!_.rule.actions||0===_.rule.actions.length)("border-danger",!_.rule.actions||0===_.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!_.rule.actions||0===_.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",_.rule.actions),e.xp6(7),e.Q6J("ruleOptions",_.rule.options))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,p.O5,G,L],styles:[""]}),o})(),we=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rules-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),o})();function Be(o,a){1&o&&(e.TgZ(0,"span"),e.TgZ(1,"div",50),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function Qe(o,a){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.status," ")}}function He(o,a){1&o&&(e.TgZ(0,"span"),e.TgZ(1,"div",52),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.TgZ(4,"div",53),e.TgZ(5,"span",51),e._uU(6,"Loading..."),e.qZA(),e.qZA(),e.TgZ(7,"div",54),e.TgZ(8,"span",51),e._uU(9,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function We(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",55),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"start")}),e.SDv(2,56),e.qZA(),e.TgZ(3,"span",57),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"restart")}),e.SDv(4,58),e.qZA(),e.TgZ(5,"span",59),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"stop")}),e.SDv(6,60),e.qZA(),e.qZA()}}function Fe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",24),e.NdJ("click",function(n){const r=e.CHM(t).$implicit;return e.oxw().selectOne(n,r)}),e.qZA(),e.qZA(),e.TgZ(3,"td",46),e._uU(4),e.qZA(),e.TgZ(5,"td"),e.YNc(6,Be,4,0,"span",47),e.YNc(7,Qe,2,1,"span",47),e.qZA(),e.TgZ(8,"td",48),e.TgZ(9,"i",49),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().statusMetrics(i.id)}),e.qZA(),e.qZA(),e.TgZ(10,"td"),e.YNc(11,He,10,0,"span",47),e.YNc(12,We,7,0,"span",47),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit,_=e.oxw();e.ekj("table-active",_.isChecked(t.id)),e.xp6(2),e.Q6J("checked",_.isChecked(t.id)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Q6J("ngIf",_.operationStatus),e.xp6(1),e.Q6J("ngIf",!_.operationStatus),e.xp6(2),e.ekj("text-info",_.statusMetricsRuleID===t.id),e.xp6(2),e.Q6J("ngIf",_.operationStatus),e.xp6(1),e.Q6J("ngIf",!_.operationStatus)}}function Ve(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",61),e.TgZ(1,"div",1),e._UZ(2,"i",62),e.TgZ(3,"span",63),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,64),e.qZA(),e.TgZ(7,"span",65),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return n.statusMetricsRefresh(n.statusMetricsRuleID)}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,66),e.qZA(),e.qZA(),e.TgZ(11,"span",67),e.TgZ(12,"i",68),e.NdJ("click",function(){return e.CHM(t),e.oxw().statusMetricsShowClose()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",69),e.TgZ(14,"pre",70),e._uU(15),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(4),e.Oqu(t.statusMetricsRuleID),e.xp6(11),e.Oqu(t.ruleStatusMetrics)}}let Ke=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.route=n,this.router=i,this.rulesList=[],this.selectedRules=[],this.ruleStatusMetrics="",this.statusMetricsRuleID="",this.operationStatus=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{this.getRulesList()})}getRulesList(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t})}refresh(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t,this.msgSvc.success("refresh")})}edit(){this.router.navigate(["../edit-rules"],{relativeTo:this.route,queryParams:{ruleID:this.selectedRules[0].id}})}statusMetrics(t){this.statusMetricsRuleID="",this.ruleStatusMetrics="",this.ruleSvc.getRuleStatusMetricsById(t).subscribe(_=>{let n;this.statusMetricsRuleID=t;try{n=JSON.parse(_)}catch(i){return void(this.ruleStatusMetrics=_)}this.ruleStatusMetrics=JSON.stringify(n,null,3)})}statusMetricsShowClose(){this.statusMetricsRuleID="",this.ruleStatusMetrics=""}statusMetricsRefresh(t){this.statusMetrics(t)}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedRules.forEach((t,_)=>{this.ruleSvc.deleteOneRuleById(t.id).subscribe(()=>{this.selectedRules.splice(_,1),this.rulesList.forEach((n,i)=>{n.id===t.id&&(this.rulesList.splice(i,1),this.msgSvc.success("remove rule ",` Id: ${t.id}`))})})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let t=!0;return this.rulesList&&0===this.rulesList.length&&(t=!1),this.rulesList.forEach(_=>{-1===this.selectedRules.findIndex(n=>n.id===_.id)&&(t=!1)}),t}selectAll(t){this.rulesList.forEach(t.target.checked?n=>{-1===this.selectedRules.findIndex(i=>i.id===n.id)&&this.selectedRules.push(n)}:n=>{let i=this.selectedRules.findIndex(r=>r.id===n.id);-1!==i&&this.selectedRules.splice(i,1)})}isChecked(t){return this.selectedRules.findIndex(_=>_.id===t)>=0}selectOne(t,_){if(t.target.checked)return void this.selectedRules.push(_);let i=this.selectedRules.findIndex(r=>r.id===_.id);-1!==i&&this.selectedRules.splice(i,1)}execute(t,_){this.operationStatus=!0,this.ruleSvc.executeRuleCommand(t,_).subscribe({next:()=>{this.operationStatus=!1,this.msgSvc.success(`${_} ${t}`),this.getRulesList()},error:()=>this.operationStatus=!1})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.gz),e.Y36(c.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rules-list"]],decls:56,vars:5,consts:function(){let a,t,_,n,i,r,l,S,g,u,m,T,k,P,D,y,J,x;return a="\u89C4\u5219\u5217\u8868",t="\u5237\u65B0",_="\u6DFB\u52A0",n="\u7F16\u8F91",i="\u5220\u9664",r="ID",l="\u72B6\u6001",S="Status Metrics",g="Operaion",u="\u8B66\u544A",m="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",T="\u53D6\u6D88",k="\u786E\u8BA4",P="\u542F\u52A8",D="\u91CD\u542F",y="\u505C\u6B62",J="Status Metrics",x="refresh",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],[1,"font-weight-bold"],a,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],t,["type","button","routerLink","../add-rules",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],_,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],r,l,["scope","col",1,"text-center"],S,g,[3,"table-active",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],u,[1,"modal-body"],m,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],T,["type","button",1,"btn","btn-danger",3,"click"],k,[1,"user-select-all"],[4,"ngIf"],[1,"text-center"],["role","button",1,"fa","fa-line-chart","text-primary",3,"click"],["role","status",1,"spinner-border","spinner-border-sm","text-secondary"],[1,"sr-only"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-success"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-info"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-danger"],["role","button",1,"badge","badge-success","mr-1",3,"click"],P,["role","button",1,"badge","badge-info","mr-1",3,"click"],D,["role","button",1,"badge","badge-danger","mr-1",3,"click"],y,[1,"card","mt-3"],[1,"fa","fa-line-chart","mr-2","text-info"],[1,"mr-2","font-weight-bold"],J,["role","button",1,"badge","badge-primary","mx-2",3,"click"],x,["role","button",1,"align-bottom"],[1,"fa","fa-window-close","fa-lg","text-danger","float-right","mt-1",3,"click"],[1,"card-body"],[1,"p-2"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"div",6),e.TgZ(7,"button",7),e.NdJ("click",function(){return _.refresh()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.TgZ(11,"button",10),e._UZ(12,"i",11),e.TgZ(13,"span"),e.SDv(14,12),e.qZA(),e.qZA(),e.TgZ(15,"button",13),e.NdJ("click",function(){return _.edit()}),e._UZ(16,"i",14),e.TgZ(17,"span"),e.SDv(18,15),e.qZA(),e.qZA(),e.TgZ(19,"button",16),e.NdJ("click",function(){return _.deleteConfirm()}),e._UZ(20,"i",17),e.TgZ(21,"span"),e.SDv(22,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",19),e.TgZ(24,"div",20),e.TgZ(25,"table",21),e.TgZ(26,"thead",22),e.TgZ(27,"tr"),e.TgZ(28,"th",23),e.TgZ(29,"input",24),e.NdJ("click",function(i){return _.selectAll(i)}),e.qZA(),e.qZA(),e.TgZ(30,"th",23),e.SDv(31,25),e.qZA(),e.TgZ(32,"th",23),e.SDv(33,26),e.qZA(),e.TgZ(34,"th",27),e.SDv(35,28),e.qZA(),e.TgZ(36,"th",23),e.SDv(37,29),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"tbody"),e.YNc(39,Fe,13,10,"tr",30),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(40,Ve,16,2,"div",31),e.TgZ(41,"div",32),e.TgZ(42,"div",33),e.TgZ(43,"div",34),e.TgZ(44,"div",35),e.TgZ(45,"h5",36),e._UZ(46,"i",37),e.TgZ(47,"span"),e.SDv(48,38),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",39),e.SDv(50,40),e.qZA(),e.TgZ(51,"div",41),e.TgZ(52,"button",42),e.SDv(53,43),e.qZA(),e.TgZ(54,"button",44),e.NdJ("click",function(){return _.delete()}),e.SDv(55,45),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(15),e.Q6J("disabled",1!==_.selectedRules.length),e.xp6(4),e.Q6J("disabled",0===_.selectedRules.length),e.xp6(10),e.Q6J("checked",_.isCheckedAll()),e.xp6(10),e.Q6J("ngForOf",_.rulesList),e.xp6(1),e.Q6J("ngIf",_.ruleStatusMetrics&&_.statusMetricsRuleID))},directives:[c.rH,p.sg,p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function Ye(o,a){1&o&&(e.TgZ(0,"div",18),e._UZ(1,"i",19),e.TgZ(2,"span"),e.SDv(3,20),e.qZA(),e.qZA())}let ze=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.EDGEX="edgex",this.CUSTOM="custom",this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.templateTypeSelected=this.EDGEX,this.edgexStreamDataTemplate='CREATE STREAM EdgeXStream () WITH ( FORMAT = "JSON", TYPE = "edgex" )',this.customStreamDataTemplate='CREATE STREAM demo ( field1 bigint, field2 float ) WITH ( DATASOURCE = "", KEY = "", FORMAT = "JSON", CONF_KEY = "", TYPE = "edgex", STRICT_VALIDATION = "true", TIMESTAMP = "", TIMESTAMP_FORMAT = "", RETAIN_SIZE = "0", SHARED = "false" )',this.streamIsNullMsg=!1}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}templateTypeToggle(t){this.templateTypeSelected=t,t===this.EDGEX?this.sqlEditor.setValue(this.edgexStreamDataTemplate):(this.sqlEditor.setValue(this.customStreamDataTemplate),this.formatSql())}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})}),this.sqlEditor.setValue(this.edgexStreamDataTemplate)}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}documentShow(){$("#stream-document").modal("show")}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.addStream(JSON.stringify({sql:t})).subscribe(()=>{this.msgSvc.success("Add Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-stream"]],decls:25,vars:9,consts:function(){let a,t,_;return a="\u6DFB\u52A0\u6570\u636E\u6E90",t="\u63D0\u4EA4",_="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,""],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],a,["type","button",1,"btn","btn-success","btn-sm","float-right",3,"click"],[1,"fa","fa-save","mr-1"],t,[1,"card-header"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],_]},template:function(t,_){1&t&&(e.YNc(0,Ye,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"span",5),e.SDv(6,6),e.qZA(),e.qZA(),e.TgZ(7,"button",7),e.NdJ("click",function(){return _.submit()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",10),e.TgZ(12,"span",11),e.NdJ("click",function(){return _.templateTypeToggle(_.EDGEX)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e._uU(15,"EdgeXStreamTemplate"),e.qZA(),e.qZA(),e.TgZ(16,"span",11),e.NdJ("click",function(){return _.templateTypeToggle(_.CUSTOM)}),e._UZ(17,"i",12),e.TgZ(18,"span"),e._uU(19,"CustomStreamTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",13),e.TgZ(21,"div",14),e.TgZ(22,"span",15),e.TgZ(23,"i",16),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(24,"textarea",17),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",_.streamIsNullMsg),e.xp6(12),e.ekj("badge-info",_.templateTypeSelected===_.EDGEX),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.EDGEX),e.xp6(3),e.ekj("badge-info",_.templateTypeSelected===_.CUSTOM),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.CUSTOM))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function je(o,a){1&o&&(e.TgZ(0,"div",16),e._UZ(1,"i",17),e.TgZ(2,"span"),e.SDv(3,18),e.qZA(),e.qZA())}let et=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.streamName="",this.streamStringFormatObj="",this.streamIsNullMsg=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{t.streamName&&(this.streamName=t.streamName,this.getStreamByNameOrID())}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}getStreamByNameOrID(){this.ruleSvc.findStreamByName(this.streamName).subscribe(t=>{this.streamJSONFormatObj=t,this.dataFormatJSONToStringConvertor(),this.sqlEditor.setValue(this.streamStringFormatObj),this.formatSql()})}dataFormatJSONToStringConvertor(){var t,_,n;if(!this.streamJSONFormatObj)return;let i=[];null===(_=null===(t=this.streamJSONFormatObj)||void 0===t?void 0:t.StreamFields)||void 0===_||_.forEach((l,S)=>{i.push(`${l.Name} ${l.FieldType}`)});let r=[];for(const[l,S]of Object.entries(this.streamJSONFormatObj.Options))r.push(`${l} = "${S}"`);this.streamStringFormatObj=`CREATE STREAM ${null===(n=this.streamJSONFormatObj)||void 0===n?void 0:n.Name} ( ${i.join(", ")} ) WITH ( ${r.join(", ")} )`}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.updateStream(JSON.stringify({sql:t}),this.streamName).subscribe(()=>{this.msgSvc.success("Update Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edit-stream"]],decls:19,vars:3,consts:function(){let a,t,_;return a="\u7F16\u8F91\u6570\u636E\u6E90",t="\u63D0\u4EA4",_="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-2"],a,[1,"font-weight-bold"],[1,"float-right"],["type","button",1,"btn","btn-success","btn-sm",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],_]},template:function(t,_){1&t&&(e.YNc(0,je,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span"),e._UZ(4,"span",3),e.TgZ(5,"span",4),e.SDv(6,5),e.qZA(),e.TgZ(7,"span",6),e._uU(8),e.qZA(),e.qZA(),e.TgZ(9,"span",7),e.TgZ(10,"button",8),e.NdJ("click",function(){return _.submit()}),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e.TgZ(16,"span",13),e.TgZ(17,"i",14),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(18,"textarea",15),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",_.streamIsNullMsg),e.xp6(8),e.Oqu(_.streamName),e.xp6(2),e.Q6J("disabled",!_.streamStringFormatObj))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),tt=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-stream-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),o})();function _t(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"li",29),e.TgZ(1,"div",30),e.TgZ(2,"div",31),e._UZ(3,"i",32),e.qZA(),e.TgZ(4,"div",33),e.TgZ(5,"div",34),e.TgZ(6,"h5",35),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",36),e.TgZ(10,"span",37),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().edit(i)}),e._UZ(11,"i",38),e.TgZ(12,"span"),e.SDv(13,39),e.qZA(),e.qZA(),e.TgZ(14,"span",40),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().deleteConfirm(i)}),e._UZ(15,"i",41),e.TgZ(16,"span"),e.SDv(17,42),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit;e.xp6(7),e.Oqu(t)}}let nt=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.route=n,this.router=i,this.streamList=[],this.selectedStream=""}ngOnInit(){this.getStreamList()}getStreamList(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t})}refresh(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t,this.msgSvc.success("refresh")})}add(){this.router.navigate(["../add-stream"],{relativeTo:this.route})}edit(t){this.router.navigate(["../edit-stream"],{relativeTo:this.route,queryParams:{streamName:t}})}deleteConfirm(t){this.selectedStream=t,$("#deleteConfirmDialog").modal("show")}delete(){$("#deleteConfirmDialog").modal("hide"),this.ruleSvc.deleteOneStreamById(this.selectedStream).subscribe(()=>{this.msgSvc.success("delete",`name: ${this.selectedStream}`),this.streamList.forEach((t,_)=>{t===this.selectedStream&&this.streamList.splice(_,1)})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.gz),e.Y36(c.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-stream-list"]],decls:33,vars:1,consts:function(){let a,t,_,n,i,r,l,S,g;return a="Stream List",t="\u5237\u65B0",_="\u6DFB\u52A0",n="\u8B66\u544A",i="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",r="\u53D6\u6D88",l="\u786E\u8BA4",S="\u7F16\u8F91",g="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],a,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-refresh","mr-1"],t,[1,"btn","btn-success","btn-sm",3,"click"],[1,"fa","fa-plus-circle","mr-1"],_,[1,"card-body","p-0"],[1,"list-group","p-0","border-0"],["class","list-group-item list-group-item-action list-group-item-light border-top-0 border-left-0 border-right-0",4,"ngFor","ngForOf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],n,[1,"modal-body"],i,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],r,["type","button",1,"btn","btn-danger",3,"click"],l,[1,"list-group-item","list-group-item-action","list-group-item-light","border-top-0","border-left-0","border-right-0"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit","mr-1"],S,["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash","mr-1"],g]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return _.refresh()}),e._UZ(8,"i",7),e.TgZ(9,"span"),e.SDv(10,8),e.qZA(),e.qZA(),e.TgZ(11,"button",9),e.NdJ("click",function(){return _.add()}),e._UZ(12,"i",10),e.TgZ(13,"span"),e.SDv(14,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"ul",13),e.YNc(17,_t,18,1,"li",14),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",15),e.TgZ(19,"div",16),e.TgZ(20,"div",17),e.TgZ(21,"div",18),e.TgZ(22,"h5",19),e._UZ(23,"i",20),e.TgZ(24,"span"),e.SDv(25,21),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",22),e.SDv(27,23),e.qZA(),e.TgZ(28,"div",24),e.TgZ(29,"button",25),e.SDv(30,26),e.qZA(),e.TgZ(31,"button",27),e.NdJ("click",function(){return _.delete()}),e.SDv(32,28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngForOf",_.streamList))},directives:[p.sg],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}#addStreamDialog[_ngcontent-%COMP%] #editStreamDialog[_ngcontent-%COMP%]{margin-top:10%}"]}),o})();var ot=d(8253),it=d(1964),at=d(4294),st=d(5894),rt=d(7216);let O=(()=>{class o{constructor(t,_){this.router=t,this.ruleSvc=_}canActivate(t,_){return this.checkAvailable(t,_)}canActivateChild(t,_){return this.canActivate(t,_)}checkAvailable(t,_){return this.ruleSvc.ping().pipe((0,at.q)(1),(0,st.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"rule engine",routerPath:`/${_.url.split("/")[1]}`}})),(0,rt.z)(()=>(0,it.of)(!0)))}}return o.\u0275fac=function(t){return new(t||o)(e.LFG(c.F0),e.LFG(A.n))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const lt=[{path:"",component:X,canActivate:[ot.a,O],canActivateChild:[O],children:[{path:"",redirectTo:"stream-center",pathMatch:"full"},{path:"stream-center",component:tt,children:[{path:"",redirectTo:"stream-list",pathMatch:"full"},{path:"stream-list",component:nt},{path:"add-stream",component:ze},{path:"edit-stream",component:et}]},{path:"rules-center",component:we,children:[{path:"",redirectTo:"rules-list",pathMatch:"full"},{path:"rules-list",component:Ke},{path:"add-rules",component:Je},{path:"edit-rules",component:Xe}]}]}];let dt=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[c.Bz.forChild(lt)],c.Bz]}),o})();var gt=d(6342),ct=d(4010);let ut=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.ez,s.u5,s.UX,dt,gt.Y,ct.MetadataModule]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/155.c74e9dbdebada850abed.js b/cmd/edgex-ui-server/static/web/zh/155.c74e9dbdebada850abed.js new file mode 100644 index 00000000..16fe8f9d --- /dev/null +++ b/cmd/edgex-ui-server/static/web/zh/155.c74e9dbdebada850abed.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[155],{4155:(pt,M,_)=>{_.r(M),_.d(M,{RuleEngineModule:()=>ut});var p=_(8583),r=_(3092),c=_(9502),e=_(476);let G=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-rule-engine"]],decls:11,vars:0,consts:function(){let s,t;return s="\u6570\u636E\u6E90",t="\u89C4\u5219",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./stream-center","routerLinkActive","active",1,"nav-link"],s,["routerLink","./rules-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.qZA(),e.TgZ(6,"li",3),e.TgZ(7,"a",6),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e._UZ(10,"router-outlet"),e.qZA(),e.qZA())},directives:[c.yS,c.Od,c.lC],styles:[""]}),i})();var E=_(4791),h=_(7822),X=_(6322),Q=_(1302);function F(i,s){1&i&&e._UZ(0,"i",26)}function V(i,s){1&i&&e._UZ(0,"i",27)}let K=(()=>{class i{constructor(){this.collapseToggleStatus=!1,this.optionalChange=new e.vpe,this._optional={Qos:"0",Retained:"false",SkipCertVerify:"true",AutoReconnect:"true",CleanSession:"true"}}get optional(){return this._optional}set optional(t){Object.assign(this._optional,t)}ngOnInit(){}ngOnChanges(){this.optionalChange.emit(this.optional)}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edgex-sink-optional"]],inputs:{optional:"optional"},outputs:{optionalChange:"optionalChange"},features:[e.TTD],decls:102,vars:27,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["id","collapse-edgex-sink-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Password",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["type","number","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retained",1,"custom-select",3,"ngModel","ngModelChange"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","CleanSession",1,"custom-select",3,"ngModel","ngModelChange"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","CertFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","CertPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return n.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink Options Setting"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,F,1,0,"i",5),e.YNc(7,V,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e._uU(12,"ClientId"),e.qZA(),e.TgZ(13,"div",10),e.TgZ(14,"input",11),e.NdJ("ngModelChange",function(a){return n.optional.ClientId=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",8),e.TgZ(16,"label",9),e._uU(17,"Username"),e.qZA(),e.TgZ(18,"div",10),e.TgZ(19,"input",12),e.NdJ("ngModelChange",function(a){return n.optional.Username=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",8),e.TgZ(21,"label",9),e._uU(22,"Password"),e.qZA(),e.TgZ(23,"div",10),e.TgZ(24,"input",13),e.NdJ("ngModelChange",function(a){return n.optional.Password=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",8),e.TgZ(26,"label",9),e._uU(27,"Qos"),e.qZA(),e.TgZ(28,"div",10),e.TgZ(29,"select",14),e.NdJ("ngModelChange",function(a){return n.optional.Qos=a}),e.TgZ(30,"option",15),e._uU(31,"0"),e.qZA(),e.TgZ(32,"option",15),e._uU(33,"1"),e.qZA(),e.TgZ(34,"option",15),e._uU(35,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e.TgZ(37,"label",9),e._uU(38,"KeepAlive"),e.qZA(),e.TgZ(39,"div",10),e.TgZ(40,"input",16),e.NdJ("ngModelChange",function(a){return n.optional.KeepAlive=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e._uU(43,"Retained"),e.qZA(),e.TgZ(44,"div",10),e.TgZ(45,"select",17),e.NdJ("ngModelChange",function(a){return n.optional.Retained=a}),e.TgZ(46,"option",15),e._uU(47,"false"),e.qZA(),e.TgZ(48,"option",15),e._uU(49,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",8),e.TgZ(51,"label",9),e._uU(52,"AutoReconnect"),e.qZA(),e.TgZ(53,"div",10),e.TgZ(54,"select",18),e.NdJ("ngModelChange",function(a){return n.optional.AutoReconnect=a}),e.TgZ(55,"option",15),e._uU(56,"false"),e.qZA(),e.TgZ(57,"option",15),e._uU(58,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",8),e.TgZ(60,"label",9),e._uU(61,"ConnectTimeout"),e.qZA(),e.TgZ(62,"div",10),e.TgZ(63,"input",19),e.NdJ("ngModelChange",function(a){return n.optional.ConnectTimeout=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",8),e.TgZ(65,"label",9),e._uU(66,"CleanSession"),e.qZA(),e.TgZ(67,"div",10),e.TgZ(68,"select",20),e.NdJ("ngModelChange",function(a){return n.optional.CleanSession=a}),e.TgZ(69,"option",15),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",15),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e._uU(75,"SkipCertVerify"),e.qZA(),e.TgZ(76,"div",10),e.TgZ(77,"select",21),e.NdJ("ngModelChange",function(a){return n.optional.SkipCertVerify=a}),e.TgZ(78,"option",15),e._uU(79,"true"),e.qZA(),e.TgZ(80,"option",15),e._uU(81,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",8),e.TgZ(83,"label",9),e._uU(84,"CertFile"),e.qZA(),e.TgZ(85,"div",10),e.TgZ(86,"input",22),e.NdJ("ngModelChange",function(a){return n.optional.CertFile=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",8),e.TgZ(88,"label",9),e._uU(89,"KeyFile"),e.qZA(),e.TgZ(90,"div",10),e.TgZ(91,"input",23),e.NdJ("ngModelChange",function(a){return n.optional.KeyFile=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(92,"div",8),e.TgZ(93,"label",9),e._uU(94,"CertPEMBlock"),e.qZA(),e.TgZ(95,"div",10),e.TgZ(96,"input",24),e.NdJ("ngModelChange",function(a){return n.optional.CertPEMBlock=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(97,"div",8),e.TgZ(98,"label",9),e._uU(99,"KeyPEMBlock"),e.qZA(),e.TgZ(100,"div",10),e.TgZ(101,"input",25),e.NdJ("ngModelChange",function(a){return n.optional.KeyPEMBlock=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!n.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",n.collapseToggleStatus),e.xp6(7),e.Q6J("ngModel",n.optional.ClientId),e.xp6(5),e.Q6J("ngModel",n.optional.Username),e.xp6(5),e.Q6J("ngModel",n.optional.Password),e.xp6(5),e.Q6J("ngModel",n.optional.Qos),e.xp6(1),e.Q6J("value",0),e.xp6(2),e.Q6J("value",1),e.xp6(2),e.Q6J("value",2),e.xp6(6),e.Q6J("ngModel",n.optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",n.optional.Retained),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",n.optional.AutoReconnect),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",n.optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",n.optional.CleanSession),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",n.optional.SkipCertVerify),e.xp6(1),e.Q6J("value",!0),e.xp6(2),e.Q6J("value",!1),e.xp6(6),e.Q6J("ngModel",n.optional.CertFile),e.xp6(5),e.Q6J("ngModel",n.optional.KeyFile),e.xp6(5),e.Q6J("ngModel",n.optional.CertPEMBlock),e.xp6(5),e.Q6J("ngModel",n.optional.KeyPEMBlock))},directives:[p.O5,r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,r.wV],styles:[""]}),i})();var Z=_(9162),Y=function(i){function s(t,n){return i.call(this)||this}return(0,Z.ZT)(s,i),s.prototype.schedule=function(t,n){return void 0===n&&(n=0),this},s}(_(8839).w0),A={setInterval:function(){for(var i=[],s=0;s{class i{constructor(){this.collapseToggleStatus=!1,this.sinkBasePropertiesForm=new r.cw({concurrency:new r.NI(1),bufferLength:new r.NI(1024),runAsync:new r.NI(!1),retryInterval:new r.NI(1e3),retryCount:new r.NI(0),cacheLength:new r.NI(1024),cacheSaveInterval:new r.NI(1e3),omitIfEmpty:new r.NI(!1)}),this.sinkBasePropertiesChange=new e.vpe,this.sinkBaseProperties={}}ngOnChanges(){delete this.sinkBaseProperties.sendSingle,delete this.sinkBaseProperties.dataTemplate;let t={};for(const[n,o]of Object.entries(this.sinkBaseProperties))this.sinkBasePropertiesForm.value.hasOwnProperty(n)&&o&&(t[n]=o);this.sinkBasePropertiesForm.patchValue(t)}ngAfterViewInit(){this.sinkBasePropertiesForm.valueChanges.pipe(b(400),L()).subscribe(()=>{Object.assign(this.sinkBaseProperties,this.sinkBasePropertiesForm.value),this.sinkBasePropertiesChange.emit(this.sinkBaseProperties)})}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-sink-base-properties"]],inputs:{sinkBaseProperties:"sinkBaseProperties"},outputs:{sinkBasePropertiesChange:"sinkBasePropertiesChange"},features:[e.TTD],decls:74,vars:7,consts:function(){let s;return s="Sink Advanced Options",[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],s,[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["id","collapse-sink-base",1,"card-body","collapse"],[3,"formGroup"],[1,"form-group","row"],[1,"col","col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many instances of the sink will be run. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["type","number","name","concurrency","formControlName","concurrency",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory. If the buffered messages exceed the limit, the sink will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength","formControlName","bufferLength",1,"form-control"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many milliseconds will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryInterval","formControlName","retryInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryCount","formControlName","retryCount",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be cached. The cached messages will be resent to external system until the data sent out successfully. The cached message will be sent in order except in runAsync or concurrent mode. The cached message will be saved to disk in fixed intervals.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheLength","formControlName","cacheLength",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the interval to save cached message to the disk. Notice that, if the rule is closed in plan, all the cached messages will be saved at close. A larger value can reduce the saving overhead but may lose more cache messages when the system is interrupted in error.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheSaveInterval","formControlName","cacheSaveInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether the sink will run asynchronously for better performance. If it is true, the sink result order is not promised.",1,"fa","fa-question-circle-o","fa-lg"],["name","runAsync","formControlName","runAsync",1,"custom-select"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","If the configuration item is set to true, when SELECT result is empty, then the result will not feed to sink operator.",1,"fa","fa-question-circle-o","fa-lg"],["name","omitIfEmpty","formControlName","omitIfEmpty",1,"custom-select"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-up","fa-lg"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return n.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"span",5),e.YNc(6,ne,1,0,"i",6),e.YNc(7,oe,1,0,"i",7),e.qZA(),e.qZA(),e.TgZ(8,"div",8),e.TgZ(9,"form",9),e.TgZ(10,"div",10),e.TgZ(11,"label",11),e.TgZ(12,"span",12),e._uU(13,"concurrency"),e.qZA(),e._UZ(14,"span",13),e.qZA(),e.TgZ(15,"div",14),e._UZ(16,"input",15),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.TgZ(18,"label",11),e.TgZ(19,"span",12),e._uU(20,"bufferLength"),e.qZA(),e._UZ(21,"span",16),e.qZA(),e.TgZ(22,"div",14),e._UZ(23,"input",17),e.qZA(),e.qZA(),e.TgZ(24,"div",10),e.TgZ(25,"label",18),e.TgZ(26,"span",12),e._uU(27,"retryInterval"),e.qZA(),e._UZ(28,"span",19),e.qZA(),e.TgZ(29,"div",14),e._UZ(30,"input",20),e.qZA(),e.qZA(),e.TgZ(31,"div",10),e.TgZ(32,"label",18),e.TgZ(33,"span",12),e._uU(34,"retryCount"),e.qZA(),e._UZ(35,"span",21),e.qZA(),e.TgZ(36,"div",14),e._UZ(37,"input",22),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",18),e.TgZ(40,"span",12),e._uU(41,"cacheLength"),e.qZA(),e._UZ(42,"span",23),e.qZA(),e.TgZ(43,"div",14),e._UZ(44,"input",24),e.qZA(),e.qZA(),e.TgZ(45,"div",10),e.TgZ(46,"label",18),e.TgZ(47,"span",12),e._uU(48,"cacheSaveInterval"),e.qZA(),e._UZ(49,"span",25),e.qZA(),e.TgZ(50,"div",14),e._UZ(51,"input",26),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",18),e.TgZ(54,"span",12),e._uU(55,"runAsync"),e.qZA(),e._UZ(56,"span",27),e.qZA(),e.TgZ(57,"div",14),e.TgZ(58,"select",28),e.TgZ(59,"option",29),e._uU(60,"false"),e.qZA(),e.TgZ(61,"option",29),e._uU(62,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",10),e.TgZ(64,"label",18),e.TgZ(65,"span",12),e._uU(66,"omitIfEmpty"),e.qZA(),e._UZ(67,"span",30),e.qZA(),e.TgZ(68,"div",14),e.TgZ(69,"select",31),e.TgZ(70,"option",29),e._uU(71,"false"),e.qZA(),e.TgZ(72,"option",29),e._uU(73,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!n.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",n.collapseToggleStatus),e.xp6(2),e.Q6J("formGroup",n.sinkBasePropertiesForm),e.xp6(50),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(9),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,r._Y,r.JL,r.sg,r.wV,r.Fj,r.JJ,r.u,r.EJ,r.YN,r.Kr],styles:[""]}),i})(),ie=(()=>{class i{constructor(){this.sinkBaseProperties={},this.edgeXSinkChange=new e.vpe,this._edgeXSink={type:"redis",protocol:"redis",host:"edgex-redis",port:6379,contentType:"application/json",messageType:"event",sendSingle:!1}}get edgeXSink(){return this._edgeXSink}set edgeXSink(t){Object.assign(this._edgeXSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.edgeXSink)}ngOnChanges(){this.edgeXSinkChange.emit(this.edgeXSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.edgeXSink,t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edgex-sink"]],inputs:{edgeXSink:"edgeXSink"},outputs:{edgeXSinkChange:"edgeXSinkChange"},features:[e.TTD],decls:117,vars:20,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","the type of EdgeX message bus",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","type",1,"custom-select",3,"ngModel","ngModelChange"],["value","redis"],["value","zero"],["value","mqtt"],["type","text","name","protocol",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","host",1,"form-control",3,"ngModel","ngModelChange"],["type","number","name","port",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The topic to be published. The topic is static across all messages. To use dynamic topic, leave this empty and specify the topicPrefix property. Only one of the topic and topicPrefix properties can be specified. If both are not specified, then use default topic value application.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The prefix of a dynamic topic to be published. The topic will become a concatenation of $topicPrefix/$profileName/$deviceName/$sourceName.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topicPrefix",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","contentType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The EdgeX message model type. To publish the message as an event like EdgeX application service, use event. Otherwise, to publish the message as an event request like EdgeX device service or core data service, use request. If not specified, then use the default value event.",1,"fa","fa-question-circle-o","fa-lg"],["name","messageType",1,"custom-select",3,"ngModel","ngModelChange"],["value","event"],["value","request"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The property is a field name that allows user to specify a field name of SQL select clause, the field name should use meta(*) AS xxx to select all of EdgeX metadata from message.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","metadata",1,"form-control",3,"ngModel","ngModelChange"],[3,"singleSelectionMode","singleProfileSelected","singleProfileSelectedChange"],[3,"singleSelectionMode","singleDeviceSelected","singleDeviceSelectedChange"],["type","text","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","EdgeX Message bus connection optional",1,"fa","fa-question-circle-o","fa-lg"],[3,"optional","optionalChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e.TgZ(9,"span",7),e._uU(10,"Type"),e.qZA(),e._UZ(11,"span",8),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"select",10),e.NdJ("ngModelChange",function(a){return n.edgeXSink.type=a}),e.TgZ(14,"option",11),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",12),e._uU(17,"zero"),e.qZA(),e.TgZ(18,"option",13),e._uU(19,"mqtt"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",5),e.TgZ(21,"label",6),e._uU(22,"Protocol"),e.qZA(),e.TgZ(23,"div",9),e.TgZ(24,"input",14),e.NdJ("ngModelChange",function(a){return n.edgeXSink.protocol=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",5),e.TgZ(26,"label",6),e._uU(27,"Host"),e.qZA(),e.TgZ(28,"div",9),e.TgZ(29,"input",15),e.NdJ("ngModelChange",function(a){return n.edgeXSink.host=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",5),e.TgZ(31,"label",6),e._uU(32,"Port"),e.qZA(),e.TgZ(33,"div",9),e.TgZ(34,"input",16),e.NdJ("ngModelChange",function(a){return n.edgeXSink.port=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",5),e.TgZ(36,"label",6),e.TgZ(37,"span",7),e._uU(38,"Topic"),e.qZA(),e._UZ(39,"span",17),e.qZA(),e.TgZ(40,"div",9),e.TgZ(41,"input",18),e.NdJ("ngModelChange",function(a){return n.edgeXSink.topic=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",5),e.TgZ(43,"label",6),e.TgZ(44,"span",7),e._uU(45,"TopicPrefix"),e.qZA(),e._UZ(46,"span",19),e.qZA(),e.TgZ(47,"div",9),e.TgZ(48,"input",20),e.NdJ("ngModelChange",function(a){return n.edgeXSink.topicPrefix=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",5),e.TgZ(50,"label",6),e._uU(51,"ContentType"),e.qZA(),e.TgZ(52,"div",9),e.TgZ(53,"input",21),e.NdJ("ngModelChange",function(a){return n.edgeXSink.contentType=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",5),e.TgZ(55,"label",6),e.TgZ(56,"span",7),e._uU(57,"MessageType"),e.qZA(),e._UZ(58,"span",22),e.qZA(),e.TgZ(59,"div",9),e.TgZ(60,"select",23),e.NdJ("ngModelChange",function(a){return n.edgeXSink.messageType=a}),e.TgZ(61,"option",24),e._uU(62,"event"),e.qZA(),e.TgZ(63,"option",25),e._uU(64,"request"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(65,"div",5),e.TgZ(66,"label",6),e.TgZ(67,"span",7),e._uU(68,"Metadata"),e.qZA(),e._UZ(69,"span",26),e.qZA(),e.TgZ(70,"div",9),e.TgZ(71,"input",27),e.NdJ("ngModelChange",function(a){return n.edgeXSink.metadata=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",5),e.TgZ(73,"label",6),e._uU(74,"ProfileName"),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"app-device-profile-combo-list",28),e.NdJ("singleProfileSelectedChange",function(a){return n.edgeXSink.profileName=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",5),e.TgZ(78,"label",6),e._uU(79,"DeviceName"),e.qZA(),e.TgZ(80,"div",9),e.TgZ(81,"app-device-combo-list",29),e.NdJ("singleDeviceSelectedChange",function(a){return n.edgeXSink.deviceName=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",5),e.TgZ(83,"label",6),e._uU(84,"SourceName"),e.qZA(),e.TgZ(85,"div",9),e.TgZ(86,"input",30),e.NdJ("ngModelChange",function(a){return n.edgeXSink.sourceName=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",5),e.TgZ(88,"label",6),e.TgZ(89,"span",7),e._uU(90,"SendSingle"),e.qZA(),e._UZ(91,"span",31),e.qZA(),e.TgZ(92,"div",9),e.TgZ(93,"select",32),e.NdJ("ngModelChange",function(a){return n.edgeXSink.sendSingle=a}),e.TgZ(94,"option",33),e._uU(95,"false"),e.qZA(),e.TgZ(96,"option",33),e._uU(97,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(98,"div",5),e.TgZ(99,"label",6),e.TgZ(100,"span",7),e._uU(101,"DataTemplate"),e.qZA(),e._UZ(102,"span",34),e.qZA(),e.TgZ(103,"div",9),e.TgZ(104,"input",35),e.NdJ("ngModelChange",function(a){return n.edgeXSink.dataTemplate=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(105,"div",5),e.TgZ(106,"label",6),e.TgZ(107,"span",7),e._uU(108,"EdgeX Sink Options"),e.qZA(),e._UZ(109,"span",36),e.qZA(),e.TgZ(110,"div",9),e.TgZ(111,"app-edgex-sink-optional",37),e.NdJ("optionalChange",function(a){return n.edgeXSink.optional=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",5),e.TgZ(113,"label",6),e._uU(114,"Advanced Options"),e.qZA(),e.TgZ(115,"div",9),e.TgZ(116,"app-sink-base-properties",38),e.NdJ("sinkBasePropertiesChange",function(a){return n.onSinkBasePropertiesChange(a)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(13),e.Q6J("ngModel",n.edgeXSink.type),e.xp6(11),e.Q6J("ngModel",n.edgeXSink.protocol),e.xp6(5),e.Q6J("ngModel",n.edgeXSink.host),e.xp6(5),e.Q6J("ngModel",n.edgeXSink.port),e.xp6(7),e.Q6J("ngModel",n.edgeXSink.topic),e.xp6(7),e.Q6J("ngModel",n.edgeXSink.topicPrefix),e.xp6(5),e.Q6J("ngModel",n.edgeXSink.contentType),e.xp6(7),e.Q6J("ngModel",n.edgeXSink.messageType),e.xp6(11),e.Q6J("ngModel",n.edgeXSink.metadata),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleProfileSelected",n.edgeXSink.profileName),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleDeviceSelected",n.edgeXSink.deviceName),e.xp6(5),e.Q6J("ngModel",n.edgeXSink.sourceName),e.xp6(7),e.Q6J("ngModel",n.edgeXSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.edgeXSink.dataTemplate),e.xp6(7),e.Q6J("optional",n.edgeXSink.optional),e.xp6(5),e.Q6J("sinkBaseProperties",n.sinkBaseProperties))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj,r.wV,X.o,Q.h,K,C],styles:[""]}),i})(),ae=(()=>{class i{constructor(){this.sinkBaseProperties={},this.mqttSinkChange=new e.vpe,this._mqttSink={server:"tcp://127.0.0.1:1883",protocolVersion:"3.1",qos:0,insecureSkipVerify:!0,retained:!1,sendSingle:!1}}get mqttSink(){return this._mqttSink}set mqttSink(t){Object.assign(this._mqttSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.mqttSink)}ngOnChanges(){this.mqttSinkChange.emit(this.mqttSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.mqttSink,t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-mqtt-sink"]],inputs:{mqttSink:"mqttSink"},outputs:{mqttSinkChange:"mqttSinkChange"},features:[e.TTD],decls:114,vars:32,consts:function(){let s,t,n,o;return s="the mqtt server address can't be empty!",t="the topic can't be empty!",n="Username",o="Password",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row","has-validation"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","server",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],s,["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],t,[1,"form-group","row"],["type","text","name","clientId",1,"form-control",3,"ngModel","ngModelChange"],["name","protocolVersion",1,"custom-select",3,"ngModel","ngModelChange"],["value","3.1"],["value","3.1.1"],["name","qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],n,["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],o,["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["name","retained",1,"custom-select",3,"ngModel","ngModelChange"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"MQTT Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e._uU(9,"Server"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",8),e.NdJ("ngModelChange",function(a){return n.mqttSink.server=a}),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"small"),e.SDv(14,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",5),e.TgZ(16,"label",6),e._uU(17,"Topic"),e.qZA(),e.TgZ(18,"div",7),e.TgZ(19,"input",11),e.NdJ("ngModelChange",function(a){return n.mqttSink.topic=a}),e.qZA(),e.TgZ(20,"div",9),e.TgZ(21,"small"),e.SDv(22,12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",13),e.TgZ(24,"label",6),e._uU(25,"ClientId"),e.qZA(),e.TgZ(26,"div",7),e.TgZ(27,"input",14),e.NdJ("ngModelChange",function(a){return n.mqttSink.clientId=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",13),e.TgZ(29,"label",6),e._uU(30,"ProtocolVersion"),e.qZA(),e.TgZ(31,"div",7),e.TgZ(32,"select",15),e.NdJ("ngModelChange",function(a){return n.mqttSink.protocolVersion=a}),e.TgZ(33,"option",16),e._uU(34,"3.1"),e.qZA(),e.TgZ(35,"option",17),e._uU(36,"3.1.1"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"div",13),e.TgZ(38,"label",6),e._uU(39,"Qos"),e.qZA(),e.TgZ(40,"div",7),e.TgZ(41,"select",18),e.NdJ("ngModelChange",function(a){return n.mqttSink.qos=a}),e.TgZ(42,"option",19),e._uU(43,"0"),e.qZA(),e.TgZ(44,"option",19),e._uU(45,"1"),e.qZA(),e.TgZ(46,"option",19),e._uU(47,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",13),e.TgZ(49,"label",6),e.SDv(50,20),e.qZA(),e.TgZ(51,"div",7),e.TgZ(52,"input",21),e.NdJ("ngModelChange",function(a){return n.mqttSink.username=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",13),e.TgZ(54,"label",6),e.SDv(55,22),e.qZA(),e.TgZ(56,"div",7),e.TgZ(57,"input",23),e.NdJ("ngModelChange",function(a){return n.mqttSink.password=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",13),e.TgZ(59,"label",6),e._uU(60,"Retained"),e.qZA(),e.TgZ(61,"div",7),e.TgZ(62,"select",24),e.NdJ("ngModelChange",function(a){return n.mqttSink.retained=a}),e.TgZ(63,"option",19),e._uU(64,"false"),e.qZA(),e.TgZ(65,"option",19),e._uU(66,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",13),e.TgZ(68,"label",6),e.TgZ(69,"span",25),e._uU(70,"sendSingle"),e.qZA(),e._UZ(71,"span",26),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"select",27),e.NdJ("ngModelChange",function(a){return n.mqttSink.sendSingle=a}),e.TgZ(74,"option",19),e._uU(75,"false"),e.qZA(),e.TgZ(76,"option",19),e._uU(77,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(78,"div",13),e.TgZ(79,"label",6),e.TgZ(80,"span",25),e._uU(81,"dataTemplate"),e.qZA(),e._UZ(82,"span",28),e.qZA(),e.TgZ(83,"div",7),e.TgZ(84,"input",29),e.NdJ("ngModelChange",function(a){return n.mqttSink.dataTemplate=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",13),e.TgZ(86,"label",6),e._uU(87,"InsecureSkipVerify"),e.qZA(),e.TgZ(88,"div",7),e.TgZ(89,"select",30),e.NdJ("ngModelChange",function(a){return n.mqttSink.insecureSkipVerify=a}),e.TgZ(90,"option",19),e._uU(91,"true"),e.qZA(),e.TgZ(92,"option",19),e._uU(93,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(94,"div",13),e.TgZ(95,"label",6),e._uU(96,"CertificationPath"),e.qZA(),e.TgZ(97,"div",7),e.TgZ(98,"input",31),e.NdJ("ngModelChange",function(a){return n.mqttSink.certificationPath=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(99,"div",13),e.TgZ(100,"label",6),e._uU(101,"PrivateKeyPath"),e.qZA(),e.TgZ(102,"div",7),e.TgZ(103,"input",32),e.NdJ("ngModelChange",function(a){return n.mqttSink.privateKeyPath=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(104,"div",13),e.TgZ(105,"label",6),e._uU(106,"RootCaPath"),e.qZA(),e.TgZ(107,"div",7),e.TgZ(108,"input",33),e.NdJ("ngModelChange",function(a){return n.mqttSink.rootCaPath=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(109,"div",13),e.TgZ(110,"label",6),e._uU(111,"Advanced Options"),e.qZA(),e.TgZ(112,"div",7),e.TgZ(113,"app-sink-base-properties",34),e.NdJ("sinkBasePropertiesChange",function(a){return n.onSinkBasePropertiesChange(a)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(11),e.ekj("is-invalid",!n.mqttSink.server)("is-valid",n.mqttSink.server),e.Q6J("ngModel",n.mqttSink.server),e.xp6(8),e.ekj("is-invalid",!n.mqttSink.topic)("is-valid",n.mqttSink.topic),e.Q6J("ngModel",n.mqttSink.topic),e.xp6(8),e.Q6J("ngModel",n.mqttSink.clientId),e.xp6(5),e.Q6J("ngModel",n.mqttSink.protocolVersion),e.xp6(9),e.Q6J("ngModel",n.mqttSink.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(6),e.Q6J("ngModel",n.mqttSink.username),e.xp6(5),e.Q6J("ngModel",n.mqttSink.password),e.xp6(5),e.Q6J("ngModel",n.mqttSink.retained),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.mqttSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.mqttSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",n.mqttSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",n.mqttSink.certificationPath),e.xp6(5),e.Q6J("ngModel",n.mqttSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",n.mqttSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",n.sinkBaseProperties))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,C],styles:[""]}),i})();var se=_(2437),re=_(7982),le=_(9549);function de(i,s){1&i&&(e.TgZ(0,"div",21),e._UZ(1,"i",22),e.TgZ(2,"span"),e.SDv(3,23),e.qZA(),e.qZA())}function _e(i,s){1&i&&(e.TgZ(0,"div"),e.TgZ(1,"span"),e.SDv(2,32),e.qZA(),e.qZA())}function ge(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"select",37),e.NdJ("change",function(o){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(o)}),e.TgZ(1,"option",38),e._uU(2,"false"),e.qZA(),e.TgZ(3,"option",38),e._uU(4,"true"),e.qZA(),e.qZA()}if(2&i){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function ce(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"input",39),e.NdJ("change",function(o){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(o)}),e.qZA()}if(2&i){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.MGl("placeholder","valueType: ",t.valueType,"")}}function ue(i,s){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.cmdParametersValueRender()," ")}}function pe(i,s){if(1&i&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",2),e.TgZ(3,"label",33),e.SDv(4,34),e.qZA(),e.TgZ(5,"div",6),e.YNc(6,ge,5,4,"select",35),e.YNc(7,ce,1,3,"ng-template",null,36,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.YNc(9,ue,2,1,"ng-container",30),e.qZA()),2&i){const t=s.$implicit,n=s.last,o=e.MAs(8);e.xp6(3),e.s9C("for",t.resourceName),e.xp6(1),e.pQV(t.resourceName),e.QtT(4),e.xp6(2),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",o),e.xp6(3),e.Q6J("ngIf",n)}}function me(i,s){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,_e,3,0,"div",30),e.YNc(2,pe,10,5,"div",31),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",0==t.cmdSvcInfo.parametersOfPutCommand.length),e.xp6(1),e.Q6J("ngForOf",t.cmdSvcInfo.parametersOfPutCommand)}}function Te(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",2),e.TgZ(1,"label",40),e.TgZ(2,"span",4),e.SDv(3,41),e.qZA(),e._UZ(4,"span",42),e.qZA(),e.TgZ(5,"div",6),e.TgZ(6,"select",43),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).cmdSvcInfo.pushEventOfGetCmdParamter=o}),e.TgZ(7,"option",44),e._uU(8,"true"),e.qZA(),e.TgZ(9,"option",45),e._uU(10,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"label",46),e.TgZ(13,"span",4),e.SDv(14,47),e.qZA(),e._UZ(15,"span",48),e.qZA(),e.TgZ(16,"div",6),e.TgZ(17,"select",49),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).cmdSvcInfo.returnEventOfGetCmdParamter=o}),e.TgZ(18,"option",44),e._uU(19,"true"),e.qZA(),e.TgZ(20,"option",45),e._uU(21,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(6),e.Q6J("ngModel",t.cmdSvcInfo.pushEventOfGetCmdParamter),e.xp6(11),e.Q6J("ngModel",t.cmdSvcInfo.returnEventOfGetCmdParamter)}}function Se(i,s){if(1&i&&(e.TgZ(0,"div",2),e.TgZ(1,"label",18),e._uU(2,"Parameters"),e.qZA(),e.TgZ(3,"div",6),e.TgZ(4,"div",24),e.TgZ(5,"div",25),e.TgZ(6,"span"),e.SDv(7,26),e.qZA(),e.qZA(),e.TgZ(8,"div",27),e.YNc(9,me,3,2,"div",28),e.YNc(10,Te,22,2,"ng-template",null,29,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.MAs(11),n=e.oxw();e.xp6(9),e.Q6J("ngIf","PUT"==n.cmdSvcInfo.httpMethod)("ngIfElse",t)}}let I=(()=>{class i{constructor(t,n){this.metedataSvc=t,this.cmdSvc=n,this.cmdURLFixedPrefix="/api/v3/device/name/",this.notCommandPathMsgShow=!1,this.deviceName="",this.commandName="",this.parameter={},this._url="",this._httpMethod="",this._requestBodyJSONStr="",this.cmdSvcInfoChange=new e.vpe,this.profileForm=new r.cw({host:new r.NI(""),port:new r.NI(""),path:new r.NI(""),httpMethod:new r.NI(""),pushEventOfGetCmdParamter:new r.NI(""),returnEventOfGetCmdParamter:new r.NI("")}),this.cmdSvcInfo={host:"edgex-core-command",port:59882,path:"",pushEventOfGetCmdParamter:"true",returnEventOfGetCmdParamter:"true",parametersOfPutCommand:[]}}get url(){return this._url}set url(t){this._url=t,this._url&&this.urlParser(t)}get httpMethod(){return this._httpMethod}set httpMethod(t){this._httpMethod=t,this.cmdSvcInfo.httpMethod=this._httpMethod}get requestBodyJSONStr(){return this._requestBodyJSONStr}set requestBodyJSONStr(t){this._requestBodyJSONStr=t}ngOnInit(){}ngAfterViewInit(){this.profileForm.valueChanges.pipe(b(400),L()).subscribe(()=>{this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}),this.renderPopoverComponent()}urlParser(t){let n={};try{n=new URL(t)}catch(o){return void(this.notCommandPathMsgShow=!0)}if(n.pathname.startsWith(this.cmdURLFixedPrefix)){let o=n.pathname.substring(this.cmdURLFixedPrefix.length).split("/");if(2===o.length)return this.deviceName=o[0],this.commandName=o[1],this.getCommandParameterByDeviceAndCommandName(this.deviceName,this.commandName),this.cmdSvcInfo.path=n.pathname,this.cmdSvcInfo.host=n.hostname,this.cmdSvcInfo.port=Number(n.port),this.cmdSvcInfo.pushEventOfGetCmdParamter=n.searchParams.get("ds-pushevent")||"true",void(this.cmdSvcInfo.returnEventOfGetCmdParamter=n.searchParams.get("ds-returnevent")||"true")}this.notCommandPathMsgShow=!0}getCommandParameterByDeviceAndCommandName(t,n){this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(t).subscribe(o=>{o.deviceCoreCommand.coreCommands.forEach(a=>{a.name===n&&(this.cmdSvcInfo.parametersOfPutCommand=a.parameters)})})}cmdParametersValueRender(){let t={};try{t=JSON.parse(this.requestBodyJSONStr)}catch(n){return}for(const[n,o]of Object.entries(t))this.cmdSvcInfo.parametersOfPutCommand.forEach(a=>{a.resourceName===n&&$(`#cmd-param-${n}`).val(o)})}onValueOfPutParamsChange(t){this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onCmdMethodSelected(t){this.cmdSvcInfo.httpMethod=t,this.cmdSvcInfoChange.emit(this.cmdSvcInfo),setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(t){this.cmdSvcInfo.path=t.path,this.cmdSvcInfo.parametersOfPutCommand=t.parameters}requestBodyAssemble(){let t={};return this.cmdSvcInfo.parametersOfPutCommand.forEach(n=>{!n||!$(`#cmd-param-${n.resourceName}`).val()||""!==$(`#cmd-param-${n.resourceName}`).val().trim()&&(t[n.resourceName]=$(`#cmd-param-${n.resourceName}`).val().trim())}),JSON.stringify(t)}resetPathParameterSuffix(){(-1!==this.cmdSvcInfo.path.indexOf("ds-pushevent")||-1!==this.cmdSvcInfo.path.indexOf("ds-returnevent"))&&(this.cmdSvcInfo.path=this.cmdSvcInfo.path.split("?")[0]),this.cmdSvcInfo.path=`${this.cmdSvcInfo.path}?ds-pushevent=${this.cmdSvcInfo.pushEventOfGetCmdParamter}&ds-returnevent=${this.cmdSvcInfo.returnEventOfGetCmdParamter}`}getHttpMethod(){return this.cmdSvcInfo.httpMethod}getRequestBodyJSONStr(){return this.requestBodyAssemble()}getUrl(){return"GET"===this.cmdSvcInfo.httpMethod&&this.resetPathParameterSuffix(),`http://${this.cmdSvcInfo.host}:${this.cmdSvcInfo.port}${this.cmdSvcInfo.path}`}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(se.D),e.Y36(re.V))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-command-service-template"]],inputs:{url:"url",httpMethod:"httpMethod",requestBodyJSONStr:"requestBodyJSONStr",cmdSvcInfo:"cmdSvcInfo"},outputs:{cmdSvcInfoChange:"cmdSvcInfoChange"},decls:33,vars:19,consts:function(){let s,t,n,o,a,l,d,m;return s="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",t="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",n=" Invalid command service url, please don't use this template for custom http request, or select one new valid command path if you insist on using the template! ",o="Command Parameters Setting",a="no paramters.",l="" + "\ufffd0\ufffd" + "",d="pushevent",m="returnevent",[["class","alert alert-danger","role","alert",4,"ngIf"],[3,"formGroup"],[1,"form-group","row"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","name","httpMethod","formControlName","httpMethod","readonly","true","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"form-group","row","has-validation"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressHostREST","name","addressHost","formControlName","host","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],s,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","number","id","addressPortREST","name","addressPort","formControlName","port","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],t,["for","addressPath","required","",1,"col-md-2","col-form-label"],[3,"validate","deviceName","commandName","httpMethod","commandPath","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"],n,[1,"card"],[1,"card-header"],o,[1,"card-body"],[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngIf"],[4,"ngFor","ngForOf"],a,[1,"col-md-2","col-form-label",3,"for"],l,["class","custom-select",3,"id","name","change",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name","change"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder","change"],["for","ds-pushevent",1,"col-md-2","col-form-label"],d,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","true indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent","formControlName","pushEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"],["value","true"],["value","false"],["for","ds-returnevent",1,"col-md-2","col-form-label"],m,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent","formControlName","returnEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.YNc(0,de,4,0,"div",0),e.TgZ(1,"form",1),e.TgZ(2,"div",2),e.TgZ(3,"label",3),e.TgZ(4,"span",4),e._uU(5,"HttpMethod"),e.qZA(),e._UZ(6,"span",5),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return n.cmdSvcInfo.httpMethod=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"label",9),e.TgZ(11,"span",4),e._uU(12,"Host"),e.qZA(),e._UZ(13,"span",10),e.qZA(),e.TgZ(14,"div",6),e.TgZ(15,"input",11),e.NdJ("ngModelChange",function(a){return n.cmdSvcInfo.host=a}),e.qZA(),e.TgZ(16,"div",12),e.TgZ(17,"small"),e.SDv(18,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",8),e.TgZ(20,"label",14),e._uU(21,"Port"),e.qZA(),e.TgZ(22,"div",6),e.TgZ(23,"input",15),e.NdJ("ngModelChange",function(a){return n.cmdSvcInfo.port=a}),e.qZA(),e.TgZ(24,"div",16),e.TgZ(25,"small"),e.SDv(26,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"label",18),e._uU(29,"Path"),e.qZA(),e.TgZ(30,"div",6),e.TgZ(31,"app-device-core-command-combo-list",19),e.NdJ("cmdMethodEvent",function(a){return n.onCmdMethodSelected(a)})("commandSelectedEvent",function(a){return n.onCommandSelected(a)}),e.qZA(),e.qZA(),e.qZA(),e.YNc(32,Se,12,2,"div",20),e.qZA()),2&t&&(e.Q6J("ngIf",n.notCommandPathMsgShow),e.xp6(1),e.Q6J("formGroup",n.profileForm),e.xp6(7),e.Q6J("ngModel",n.cmdSvcInfo.httpMethod),e.xp6(7),e.ekj("is-invalid",!n.cmdSvcInfo.host)("is-valid",n.cmdSvcInfo.host),e.Q6J("ngModel",n.cmdSvcInfo.host),e.xp6(8),e.ekj("is-invalid",!n.cmdSvcInfo.port)("is-valid",n.cmdSvcInfo.port),e.Q6J("ngModel",n.cmdSvcInfo.port),e.xp6(8),e.Q6J("validate",!0)("deviceName",n.deviceName)("commandName",n.commandName)("httpMethod",n.cmdSvcInfo.httpMethod)("commandPath",n.cmdSvcInfo.path),e.xp6(1),e.Q6J("ngIf",n.cmdSvcInfo.path&&n.cmdSvcInfo.httpMethod&&0!==n.cmdSvcInfo.parametersOfPutCommand.length))},directives:[p.O5,r._Y,r.JL,r.sg,r.Fj,r.JJ,r.u,r.Q7,r.wV,le.P,p.sg,r.F,r.YN,r.Kr,r.EJ],styles:[""]}),i})();function fe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-command-service-template",8),e.NdJ("cmdSvcInfoChange",function(o){return e.CHM(t),e.oxw().onCmdSvcTemplateInfoChange(o)}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("url",t.restSink.url)("httpMethod",t.restSink.method)("requestBodyJSONStr",t.restSink.dataTemplate?t.restSink.dataTemplate:"")}}function Ee(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",51),e.TgZ(2,"div",52),e.TgZ(3,"div",53),e.TgZ(4,"span",54),e._uU(5,"Key"),e.qZA(),e.qZA(),e.TgZ(6,"input",55),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.key=o})("ngModelChange",function(o){return e.CHM(t),e.oxw(2).requestHeaderChange(o)}),e.qZA(),e.qZA(),e.TgZ(7,"div",56),e._UZ(8,"i",57),e.qZA(),e.TgZ(9,"div",58),e.TgZ(10,"div",53),e.TgZ(11,"span",54),e._uU(12,"Value"),e.qZA(),e.qZA(),e.TgZ(13,"input",59),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.value=o})("ngModelChange",function(o){return e.CHM(t),e.oxw(2).requestHeaderChange(o)}),e.qZA(),e.qZA(),e.TgZ(14,"div",60),e.TgZ(15,"button",61),e.NdJ("click",function(){const a=e.CHM(t).index;return e.oxw(2).removeRequestHeader(a)}),e._UZ(16,"i",62),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=s.$implicit;e.xp6(6),e.Q6J("ngModel",t.key),e.xp6(7),e.Q6J("ngModel",t.value)}}function he(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",9),e.TgZ(3,"label",10),e._uU(4,"Method"),e.qZA(),e.TgZ(5,"div",11),e.TgZ(6,"select",12),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.method=o}),e.TgZ(7,"option",13),e._uU(8,"GET"),e.qZA(),e.TgZ(9,"option",14),e._uU(10,"POST"),e.qZA(),e.TgZ(11,"option",15),e._uU(12,"PUT"),e.qZA(),e.TgZ(13,"option",16),e._uU(14,"DELETE"),e.qZA(),e.TgZ(15,"option",17),e._uU(16,"PATCH"),e.qZA(),e.TgZ(17,"option",18),e._uU(18,"HEAD"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",19),e.TgZ(20,"label",10),e._uU(21,"URL"),e.qZA(),e.TgZ(22,"div",11),e.TgZ(23,"input",20),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.url=o}),e.qZA(),e.TgZ(24,"div",21),e.TgZ(25,"small"),e.SDv(26,22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",9),e.TgZ(28,"label",10),e._uU(29,"BodyType"),e.qZA(),e.TgZ(30,"div",11),e.TgZ(31,"select",23),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.bodyType=o}),e.TgZ(32,"option",24),e._uU(33,"none"),e.qZA(),e.TgZ(34,"option",25),e._uU(35,"json"),e.qZA(),e.TgZ(36,"option",26),e._uU(37,"text"),e.qZA(),e.TgZ(38,"option",27),e._uU(39,"html"),e.qZA(),e.TgZ(40,"option",28),e._uU(41,"xml"),e.qZA(),e.TgZ(42,"option",29),e._uU(43,"javascript"),e.qZA(),e.TgZ(44,"option",30),e._uU(45,"form"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",9),e.TgZ(47,"label",10),e._uU(48,"Headers"),e.qZA(),e.TgZ(49,"div",11),e.TgZ(50,"div",0),e.TgZ(51,"div",6),e.TgZ(52,"p",31),e._UZ(53,"span",32),e.TgZ(54,"span",33),e.NdJ("click",function(){return e.CHM(t),e.oxw().addRequestHeader()}),e.SDv(55,34),e.qZA(),e.qZA(),e.YNc(56,Ee,17,2,"div",35),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(57,"div",9),e.TgZ(58,"label",10),e.TgZ(59,"span",36),e._uU(60,"timeout"),e.qZA(),e._UZ(61,"span",37),e.qZA(),e.TgZ(62,"div",11),e.TgZ(63,"input",38),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.timeout=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",9),e.TgZ(65,"label",10),e.TgZ(66,"span",36),e._uU(67,"DebugResp"),e.qZA(),e._UZ(68,"span",39),e.qZA(),e.TgZ(69,"div",11),e.TgZ(70,"select",40),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.debugResp=o}),e.TgZ(71,"option",41),e._uU(72,"false"),e.qZA(),e.TgZ(73,"option",41),e._uU(74,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"label",10),e.TgZ(77,"span",36),e._uU(78,"sendSingle"),e.qZA(),e._UZ(79,"span",42),e.qZA(),e.TgZ(80,"div",11),e.TgZ(81,"select",43),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.sendSingle=o}),e.TgZ(82,"option",41),e._uU(83,"false"),e.qZA(),e.TgZ(84,"option",41),e._uU(85,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(86,"div",9),e.TgZ(87,"label",10),e.TgZ(88,"span",36),e._uU(89,"dataTemplate"),e.qZA(),e._UZ(90,"span",44),e.qZA(),e.TgZ(91,"div",11),e.TgZ(92,"input",45),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.dataTemplate=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(93,"div",9),e.TgZ(94,"label",10),e._uU(95,"InsecureSkipVerify"),e.qZA(),e.TgZ(96,"div",11),e.TgZ(97,"select",46),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.insecureSkipVerify=o}),e.TgZ(98,"option",41),e._uU(99,"true"),e.qZA(),e.TgZ(100,"option",41),e._uU(101,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",9),e.TgZ(103,"label",10),e._uU(104,"CertificationPath"),e.qZA(),e.TgZ(105,"div",11),e.TgZ(106,"input",47),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.certificationPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(107,"div",9),e.TgZ(108,"label",10),e._uU(109,"PrivateKeyPath"),e.qZA(),e.TgZ(110,"div",11),e.TgZ(111,"input",48),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.privateKeyPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",9),e.TgZ(113,"label",10),e._uU(114,"RootCaPath"),e.qZA(),e.TgZ(115,"div",11),e.TgZ(116,"input",49),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().restSink.rootCaPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(117,"div",9),e.TgZ(118,"label",10),e._uU(119,"Advanced Options"),e.qZA(),e.TgZ(120,"div",11),e.TgZ(121,"app-sink-base-properties",50),e.NdJ("sinkBasePropertiesChange",function(o){return e.CHM(t),e.oxw().onSinkBasePropertiesChange(o)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.restSink.method),e.xp6(17),e.ekj("is-invalid",!t.restSink.url)("is-valid",t.restSink.url),e.Q6J("ngModel",t.restSink.url),e.xp6(8),e.Q6J("ngModel",t.restSink.bodyType),e.xp6(25),e.Q6J("ngForOf",t.requestHeaderList),e.xp6(7),e.Q6J("ngModel",t.restSink.timeout),e.xp6(7),e.Q6J("ngModel",t.restSink.debugResp),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",t.restSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",t.restSink.certificationPath),e.xp6(5),e.Q6J("ngModel",t.restSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",t.restSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",t.sinkBaseProperties)}}let Ze=(()=>{class i{constructor(){this.SVC_TYPE_COMMAND="command",this.SVC_TYPE_CUSTOM="custom",this.templateTypeSelected=this.SVC_TYPE_COMMAND,this.sinkBaseProperties={},this.restSinkChange=new e.vpe,this.requestHeaderList=[],this._restSink={method:"GET",bodyType:"json",debugResp:!1,insecureSkipVerify:!0,timeout:5e3,sendSingle:!1,dataTemplate:""}}get restSink(){return this._restSink}set restSink(t){Object.assign(this._restSink,t)}ngOnInit(){if(Object.assign(this.sinkBaseProperties,this.restSink),this.restSink.headers)for(const[t,n]of Object.entries(this.restSink.headers))this.requestHeaderList.push({key:t,value:n});this.renderPopoverComponent()}ngOnChanges(){this.restSinkChange.emit(this.restSink)}ngAfterViewInit(){}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}templateTypeToggle(t){this.templateTypeSelected=t,window.setTimeout(()=>{this.renderPopoverComponent()},1e3)}requestHeaderChange(t){this.headersResovler()}headersResovler(){let t={};this.requestHeaderList.forEach(n=>{t[`${n.key}`]=`${n.value}`}),this.restSink.headers=t,this.restSinkChange.emit(this.restSink)}addRequestHeader(){this.requestHeaderList.push({key:"",value:""})}removeRequestHeader(t,n){this.requestHeaderList.splice(t,1),this.headersResovler()}onSinkBasePropertiesChange(t){Object.assign(this.restSink,t)}onCmdSvcTemplateInfoChange(t){this.getValuesSettingAllOfCommandTemplate()}getValuesSettingAllOfCommandTemplate(){this.restSink.method=this.cmdSvcTemplate.getHttpMethod(),this.restSink.url=this.cmdSvcTemplate.getUrl(),this.restSink.dataTemplate=this.cmdSvcTemplate.getRequestBodyJSONStr()}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-rest-sink"]],viewQuery:function(t,n){if(1&t&&e.Gf(I,5),2&t){let o;e.iGM(o=e.CRH())&&(n.cmdSvcTemplate=o.first)}},inputs:{restSink:"restSink"},outputs:{restSinkChange:"restSinkChange"},features:[e.TTD],decls:17,vars:10,consts:function(){let s,t;return s="the url can't be empty!",t="Add Headers KV",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body"],[4,"ngIf"],[3,"url","httpMethod","requestBodyJSONStr","cmdSvcInfoChange"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["name","method",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],[1,"form-group","row","has-validation"],["type","text","name","url",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],s,["name","bodyType",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","json"],["value","text"],["value","html"],["value","xml"],["value","javascript"],["value","form"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],t,[4,"ngFor","ngForOf"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The timeout (milliseconds) for a HTTP request, defaults to 5000 ms",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","timeout",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Control if print the response information into the console. If set it to true, then print response; If set to false, then skip print log. The default is false.",1,"fa","fa-question-circle-o","fa-lg"],["name","debugResp",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here be treated as http post or put RequestBody,The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"],[1,"form-inline","mb-1"],[1,"input-group","mb-1"],[1,"input-group-prepend"],[1,"input-group-text"],["type","text","name","headerKey",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","mx-2"],[1,"fa","fa-long-arrow-right"],[1,"input-group"],["type","text","name","headerValue",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"REST Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",1),e.TgZ(6,"span",4),e.NdJ("click",function(){return n.templateTypeToggle(n.SVC_TYPE_COMMAND)}),e._UZ(7,"i",5),e.TgZ(8,"span"),e._uU(9,"EdgeXCommandServiceTemplate"),e.qZA(),e.qZA(),e.TgZ(10,"span",4),e.NdJ("click",function(){return n.templateTypeToggle(n.SVC_TYPE_CUSTOM)}),e._UZ(11,"i",5),e.TgZ(12,"span"),e._uU(13,"CustomHttpServiceTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",6),e.YNc(15,fe,2,3,"div",7),e.YNc(16,he,122,23,"div",7),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.ekj("badge-info",n.templateTypeSelected===n.SVC_TYPE_COMMAND),e.xp6(1),e.ekj("fa-check-square",n.templateTypeSelected===n.SVC_TYPE_COMMAND),e.xp6(3),e.ekj("badge-info",n.templateTypeSelected===n.SVC_TYPE_CUSTOM),e.xp6(1),e.ekj("fa-check-square",n.templateTypeSelected===n.SVC_TYPE_CUSTOM),e.xp6(4),e.Q6J("ngIf",n.templateTypeSelected===n.SVC_TYPE_COMMAND),e.xp6(1),e.Q6J("ngIf",n.templateTypeSelected===n.SVC_TYPE_CUSTOM))},directives:[p.O5,I,r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj,p.sg,r.wV,C],styles:[""]}),i})(),Ae=(()=>{class i{constructor(){this.sinkBaseProperties={},this.logSinkChange=new e.vpe,this._logSink={sendSingle:!1}}get logSink(){return this._logSink}set logSink(t){Object.assign(this._logSink,t)}ngOnInit(){Object.assign(this.sinkBaseProperties,this.logSink),this.renderPopoverComponent()}ngOnChanges(){this.logSinkChange.emit(this.logSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.logSink,t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-log-sink"]],inputs:{logSink:"logSink"},outputs:{logSinkChange:"logSinkChange"},features:[e.TTD],decls:35,vars:5,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"text-info","mb-2"],[1,"fa","fa-info-circle","mr-1"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Log Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"p",5),e._UZ(7,"i",6),e._uU(8," The action is used for print output message into log file, the log file is at $eKuiper_install/log/stream.log by default."),e._UZ(9,"br"),e._uU(10," No properties can be specified for the action. "),e.qZA(),e.TgZ(11,"div",7),e.TgZ(12,"label",8),e.TgZ(13,"span",9),e._uU(14,"sendSingle"),e.qZA(),e._UZ(15,"span",10),e.qZA(),e.TgZ(16,"div",11),e.TgZ(17,"select",12),e.NdJ("ngModelChange",function(a){return n.logSink.sendSingle=a}),e.TgZ(18,"option",13),e._uU(19,"false"),e.qZA(),e.TgZ(20,"option",13),e._uU(21,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",7),e.TgZ(23,"label",8),e.TgZ(24,"span",9),e._uU(25,"dataTemplate"),e.qZA(),e._UZ(26,"span",14),e.qZA(),e.TgZ(27,"div",11),e.TgZ(28,"input",15),e.NdJ("ngModelChange",function(a){return n.logSink.dataTemplate=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"form"),e.TgZ(30,"div",7),e.TgZ(31,"label",8),e._uU(32,"Advanced Options"),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"app-sink-base-properties",16),e.NdJ("sinkBasePropertiesChange",function(a){return n.onSinkBasePropertiesChange(a)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngModel",n.logSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.logSink.dataTemplate),e.xp6(6),e.Q6J("sinkBaseProperties",n.sinkBaseProperties))},directives:[r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj,r._Y,r.JL,r.F,C],styles:[""]}),i})();function Ce(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"li",9),e.TgZ(1,"span",10),e._uU(2),e.qZA(),e.TgZ(3,"span",11),e.TgZ(4,"span",12),e.NdJ("click",function(){const o=e.CHM(t),a=o.$implicit,l=o.index;return e.oxw(2).editSinkTransfer(a,l)}),e._UZ(5,"i",13),e.qZA(),e.TgZ(6,"span",14),e.NdJ("click",function(){const o=e.CHM(t),a=o.$implicit,l=o.index;return e.oxw(2).deleteSink(a,l)}),e._UZ(7,"i",15),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=s.$implicit,n=s.index,o=e.oxw(2);e.ekj("list-group-item-light",n!==o.selectedSinkIndex)("list-group-item-secondary",n===o.selectedSinkIndex),e.xp6(2),e.Oqu(o.getSinkTypeOfAction(t))}}function Me(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"p",2),e.TgZ(2,"span",3),e.NdJ("click",function(){return e.CHM(t),e.oxw().addSinkTransfer()}),e._UZ(3,"span",4),e.TgZ(4,"span",5),e.SDv(5,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"ul",7),e.YNc(7,Ce,8,5,"li",8),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(7),e.Q6J("ngForOf",t.ruleActions)}}function ve(i,s){1&i&&(e.TgZ(0,"span",33),e._uU(1,"Edit Sink"),e.qZA())}function Ne(i,s){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",32),e.TgZ(2,"span",33),e._uU(3,"Add Sink"),e.qZA(),e.YNc(4,ve,2,0,"span",34),e.qZA()),2&i){const t=e.oxw(2);e.xp6(4),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT)}}function qe(i,s){1&i&&(e.TgZ(0,"span"),e._UZ(1,"i",35),e.TgZ(2,"span",33),e._uU(3,"Edit Sink"),e.qZA(),e.qZA())}function Re(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).addOneNewSink()}),e._uU(1,"Add"),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function be(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).updateSink()}),e._uU(1,"Update"),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function Le(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-edgex-sink",37),e.NdJ("edgeXSinkChange",function(o){return e.CHM(t),e.oxw(2).edgeXSink=o}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("edgeXSink",t.edgeXSink)}}function Ie(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-mqtt-sink",38),e.NdJ("mqttSinkChange",function(o){return e.CHM(t),e.oxw(2).mqttSink=o}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("mqttSink",t.mqttSink)}}function ke(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-rest-sink",39),e.NdJ("restSinkChange",function(o){return e.CHM(t),e.oxw(2).restSink=o}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("restSink",t.restSink)}}function Ue(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-log-sink",40),e.NdJ("logSinkChange",function(o){return e.CHM(t),e.oxw(2).logSink=o}),e.qZA(),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("logSink",t.logSink)}}function Pe(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.YNc(2,Ne,5,1,"span",0),e.YNc(3,qe,4,0,"span",0),e.TgZ(4,"span",11),e.YNc(5,Re,2,1,"button",18),e.YNc(6,be,2,1,"button",18),e.TgZ(7,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e._uU(8,"Cancel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",20),e.TgZ(10,"form",21),e.TgZ(11,"div",22),e.TgZ(12,"label",23),e.SDv(13,24),e.qZA(),e.TgZ(14,"div",25),e.TgZ(15,"select",26),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().selectedSinkType=o}),e.TgZ(16,"option",27),e._uU(17),e.qZA(),e.TgZ(18,"option",27),e._uU(19),e.qZA(),e.TgZ(20,"option",27),e._uU(21),e.qZA(),e.TgZ(22,"option",27),e._uU(23),e.qZA(),e.qZA(),e.TgZ(24,"div",28),e.TgZ(25,"small"),e.SDv(26,29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",30),e.YNc(28,Le,2,1,"div",31),e.YNc(29,Ie,2,1,"div",31),e.YNc(30,ke,2,1,"div",31),e.YNc(31,Ue,2,1,"div",31),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(9),e.ekj("is-invalid",!t.selectedSinkType),e.Q6J("ngModel",t.selectedSinkType),e.xp6(1),e.s9C("value",t.EdgeX_SINK),e.xp6(1),e.Oqu(t.EdgeX_SINK),e.xp6(1),e.s9C("value",t.MQTT_SINK),e.xp6(1),e.Oqu(t.MQTT_SINK),e.xp6(1),e.s9C("value",t.REST_SINK),e.xp6(1),e.Oqu(t.REST_SINK),e.xp6(1),e.s9C("value",t.LOG_SINK),e.xp6(1),e.Oqu(t.LOG_SINK),e.xp6(4),e.Q6J("ngSwitch",t.selectedSinkType),e.xp6(1),e.Q6J("ngSwitchCase",t.EdgeX_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.MQTT_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.REST_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.LOG_SINK)}}let k=(()=>{class i{constructor(){this.EdgeX_SINK="edgex",this.MQTT_SINK="mqtt",this.REST_SINK="rest",this.LOG_SINK="log",this.NOP_SINK="nop",this.ruleActionsChange=new e.vpe,this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={},this.selectedSinkIndex=-1,this.selectedSinkType="",this.sinkAddOrEditStatus=!1,this.sinkOperation_ADD="add",this.sinkOperation_EDIT="edit",this.sinkAddOrEditOperation="",this.updateTimestamp="",this._ruleActions=[]}get ruleActions(){return this._ruleActions}set ruleActions(t){!t||(this._ruleActions=t)}ngOnInit(){}ngOnChanges(){this.ruleActionsChange.emit(this.ruleActions)}resetSinksConcreteAll(){this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={}}getSinkTypeOfAction(t){let n=Object.keys(t);return 0===n.length?"":n[0]}getSinkByType(t){let n={};switch(t){case this.EdgeX_SINK:n.edgex=this.edgeXSink;break;case this.MQTT_SINK:n.mqtt=this.mqttSink;break;case this.REST_SINK:n.rest=this.restSink;break;case this.LOG_SINK:n.log=this.logSink;break;default:n.nop=this.nopSink}return n}sinkConcreteExtractor(t){let n=this.getSinkTypeOfAction(t);switch(this.selectedSinkType=n,n){case this.EdgeX_SINK:this.edgeXSink=t.edgex;break;case this.MQTT_SINK:this.mqttSink=t.mqtt;break;case this.REST_SINK:this.restSink=t.rest;break;case this.LOG_SINK:this.logSink=t.log;break;default:this.nopSink=t.nop}}addSinkTransfer(){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_ADD,this.selectedSinkIndex=-1,this.selectedSinkType="",this.resetSinksConcreteAll()}editSinkTransfer(t,n){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_EDIT,this.selectedSinkIndex=n,this.sinkConcreteExtractor(t),this.selectedSinkType=this.getSinkTypeOfAction(t)}addOneNewSink(){this.ruleActions.push(this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}updateSink(){this.ruleActions.splice(this.selectedSinkIndex,1,this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}deleteSink(t,n){this.ruleActions.splice(n,1),this.selectedSinkIndex=-1}cancel(){this.sinkAddOrEditStatus=!1}validate(){if(!this.selectedSinkType)return!1;switch(this.selectedSinkType){case this.MQTT_SINK:if(!this.mqttSink.server||!this.mqttSink.topic)return!1;break;case this.REST_SINK:if(!this.restSink.url)return!1}return!0}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-sink-list"]],inputs:{ruleActions:"ruleActions"},outputs:{ruleActionsChange:"ruleActionsChange"},features:[e.TTD],decls:2,vars:2,consts:function(){let s,t,n;return s="Add Sink",t="Sink Type",n="please select a valid Sink Type !",[[4,"ngIf"],["class","card",4,"ngIf"],[1,"badge","badge-secondary","font-weight-bold"],[3,"click"],[1,"fa","fa-plus-circle","mr-1"],["role","button",1,"user-select-none"],s,[1,"list-group"],["class","list-group-item list-group-item-action ",3,"list-group-item-light","list-group-item-secondary",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action"],[1,"text-dark","mr-2"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit"],["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash"],[1,"card"],[1,"card-header","p-2"],["class","btn btn-success btn-sm mr-2",3,"disabled","click",4,"ngIf"],[1,"btn","btn-secondary","btn-sm",3,"click"],[1,"card-body"],[1,"mb-2"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],t,[1,"col-sm-9"],["name","SinkType",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["id","validationSinkTypeFeedback",1,"invalid-feedback"],n,[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"fa","fa-plus","mr-2","text-info"],[1,"font-weight-bold"],["class","font-weight-bold",4,"ngIf"],[1,"fa","fa-edit","mr-2","text-info"],[1,"btn","btn-success","btn-sm","mr-2",3,"disabled","click"],[3,"edgeXSink","edgeXSinkChange"],[3,"mqttSink","mqttSinkChange"],[3,"restSink","restSinkChange"],[3,"logSink","logSinkChange"]]},template:function(t,n){1&t&&(e.YNc(0,Me,8,1,"div",0),e.YNc(1,Pe,32,20,"div",1)),2&t&&(e.Q6J("ngIf",!n.sinkAddOrEditStatus),e.xp6(1),e.Q6J("ngIf",n.sinkAddOrEditStatus))},directives:[p.O5,p.sg,r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,p.RF,p.n9,ie,ae,Ze,Ae],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();function Oe(i,s){1&i&&e._UZ(0,"i",29)}function ye(i,s){1&i&&e._UZ(0,"i",30)}let U=(()=>{class i{constructor(){this.collapseToggleStatus=!1,this.ruleOptionsChange=new e.vpe,this._ruleOptions={isEventTime:!1,sendMetaToSink:!1,sendError:!0,qos:0}}get ruleOptions(){return this._ruleOptions}set ruleOptions(t){Object.assign(this._ruleOptions,t)}ngOnInit(){}ngOnChanges(){this.ruleOptionsChange.emit(this.ruleOptions)}collapseToggle(t){this.collapseToggleStatus=!this.collapseToggleStatus}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-rule-advanced-options"]],inputs:{ruleOptions:"ruleOptions"},outputs:{ruleOptionsChange:"ruleOptionsChange"},features:[e.TTD],decls:84,vars:19,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"font-weight-bold","text-primary"],[1,"text-primary","ml-2"],["aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["id","clllapse-rule-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to use event time or processing time as the timestamp for an event. If event time is used, the timestamp will be extracted from the payload. The timestamp filed must be specified by the stream definition.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","isEventTime",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the qos of the stream. The options are 0: At most once; 1: At least once and 2: Exactly once. If qos is bigger than 0, the checkpoint mechanism will be activated to save states periodically so that the rule can be resumed from errors.",1,"fa","fa-question-circle-o","fa-lg"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","When working with event-time windowing, it can happen that elements arrive late. LateTolerance can specify by how much time(unit is millisecond) elements can be late before they are dropped. By default, the value is 0 which means late elements are dropped.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","lateTolerance",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","A rule is processed by several phases of plans according to the sql statement. This option will specify how many instances will be run for each plan. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","concurrency",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory for each plan. If the buffered messages exceed the limit, the plan will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit. A bigger value will accommodate more throughput but will also take up more memory footprint.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the time interval in milliseconds to trigger a checkpoint. This is only effective when qos is bigger than 0.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","checkpointInterval",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify whether the meta data of an event will be sent to the sink. If true, the sink can get te meta data information.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendMetaToSink",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to send the error to sink. If true, any runtime error will be sent through the whole rule into sinks. Otherwise, the error will only be printed out in the log.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendError",1,"custom-select",3,"ngModel","ngModelChange"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-down","fa-lg"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(a){return n.collapseToggle(a)}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Rule Advanced Options"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,Oe,1,0,"i",5),e.YNc(7,ye,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span",10),e._uU(13,"IsEventTime"),e.qZA(),e._UZ(14,"span",11),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"select",13),e.NdJ("ngModelChange",function(a){return n.ruleOptions.isEventTime=a}),e.TgZ(17,"option",14),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span",10),e._uU(24,"Qos"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",12),e.TgZ(27,"select",16),e.NdJ("ngModelChange",function(a){return n.ruleOptions.qos=a}),e.TgZ(28,"option",14),e._uU(29,"0"),e.qZA(),e.TgZ(30,"option",14),e._uU(31,"1"),e.qZA(),e.TgZ(32,"option",14),e._uU(33,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",8),e.TgZ(35,"label",9),e.TgZ(36,"span",10),e._uU(37,"LateTolerance"),e.qZA(),e._UZ(38,"span",17),e.qZA(),e.TgZ(39,"div",12),e.TgZ(40,"input",18),e.NdJ("ngModelChange",function(a){return n.ruleOptions.lateTolerance=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e.TgZ(43,"span",10),e._uU(44,"Concurrency"),e.qZA(),e._UZ(45,"span",19),e.qZA(),e.TgZ(46,"div",12),e.TgZ(47,"input",20),e.NdJ("ngModelChange",function(a){return n.ruleOptions.concurrency=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",8),e.TgZ(49,"label",9),e.TgZ(50,"span",10),e._uU(51,"BufferLength"),e.qZA(),e._UZ(52,"span",21),e.qZA(),e.TgZ(53,"div",12),e.TgZ(54,"input",22),e.NdJ("ngModelChange",function(a){return n.ruleOptions.bufferLength=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",8),e.TgZ(56,"label",9),e.TgZ(57,"span",10),e._uU(58,"CheckpointInterval"),e.qZA(),e._UZ(59,"span",23),e.qZA(),e.TgZ(60,"div",12),e.TgZ(61,"input",24),e.NdJ("ngModelChange",function(a){return n.ruleOptions.checkpointInterval=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",8),e.TgZ(63,"label",9),e.TgZ(64,"span",10),e._uU(65,"SendMetaToSink"),e.qZA(),e._UZ(66,"span",25),e.qZA(),e.TgZ(67,"div",12),e.TgZ(68,"select",26),e.NdJ("ngModelChange",function(a){return n.ruleOptions.sendMetaToSink=a}),e.TgZ(69,"option",14),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",14),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e.TgZ(75,"span",10),e._uU(76,"SendError"),e.qZA(),e._UZ(77,"span",27),e.qZA(),e.TgZ(78,"div",12),e.TgZ(79,"select",28),e.NdJ("ngModelChange",function(a){return n.ruleOptions.sendError=a}),e.TgZ(80,"option",14),e._uU(81,"false"),e.qZA(),e.TgZ(82,"option",14),e._uU(83,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!n.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",n.collapseToggleStatus),e.xp6(9),e.Q6J("ngModel",n.ruleOptions.isEventTime),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.ruleOptions.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(8),e.Q6J("ngModel",n.ruleOptions.lateTolerance),e.xp6(7),e.Q6J("ngModel",n.ruleOptions.concurrency),e.xp6(7),e.Q6J("ngModel",n.ruleOptions.bufferLength),e.xp6(7),e.Q6J("ngModel",n.ruleOptions.checkpointInterval),e.xp6(7),e.Q6J("ngModel",n.ruleOptions.sendMetaToSink),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",n.ruleOptions.sendError),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.wV,r.Fj],styles:[""]}),i})();function xe(i,s){1&i&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}function $e(i,s){1&i&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,43),e.qZA(),e.qZA())}let De=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.router=o,this.route=a,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(n=>{CodeMirror.resolveMode("text/x-pgsql").keywords[n]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(n,o)=>{}),this.sqlEditor.on("paste",(n,o)=>{}),this.sqlEditor.on("keyup",(n,o)=>{o.keyCode>=65&&o.keyCode<=90&&n.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}submit(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.addRule(this.rule).subscribe(()=>{this.msgSvc.success("Add rule",`Name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.F0),e.Y36(c.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-add-rules"]],decls:59,vars:18,consts:function(){let s,t,n,o,a,l,d,m,g,u,S;return s="Add Rule",t="\u63D0\u4EA4",n="\u540D\u5B57",o="\u89C4\u5219\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A\uFF01",a="RuleSQL",l="SQL Editor",d="Action",m="Add Action",g="Options",u="SQL can't be empty!",S="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],s,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],n,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],o,["for","ruleSql",1,"col-md-2","col-form-label"],a,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],l,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],d,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],m,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u,S]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return n.submit()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(a){return n.rule.id=a}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,xe,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return n.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,$e,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(a){return n.rule.actions=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(a){return n.rule.options=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!n.validate()),e.xp6(12),e.ekj("is-invalid",!n.rule.id)("is-valid",n.rule.id),e.Q6J("ngModel",n.rule.id),e.xp6(11),e.ekj("border",!n.sqlEditor.getValue())("border-danger",!n.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!n.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!n.rule.actions||0===n.rule.actions.length)("border-danger",!n.rule.actions||0===n.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!n.rule.actions||0===n.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",n.rule.actions),e.xp6(7),e.Q6J("ruleOptions",n.rule.options))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,p.O5,k,U],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();function Je(i,s){1&i&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e._uU(3,"SQL can't be empty!"),e.qZA(),e.qZA())}function we(i,s){1&i&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}let Ge=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.router=o,this.route=a,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.ruleID&&this.getRuleByID(t.ruleID)}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}getRuleByID(t){this.ruleSvc.findRuleById(t).subscribe(n=>{this.rule=n,this.sqlEditor.setValue(this.rule.sql)})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(n=>{CodeMirror.resolveMode("text/x-pgsql").keywords[n]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(n,o)=>{}),this.sqlEditor.on("paste",(n,o)=>{}),this.sqlEditor.on("keyup",(n,o)=>{o.keyCode>=65&&o.keyCode<=90&&n.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}update(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.updateRule(this.rule).subscribe(()=>{this.msgSvc.success("update",`name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.F0),e.Y36(c.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edit-rules"]],decls:59,vars:18,consts:function(){let s,t,n,o,a,l,d,m,g,u;return s="Edit Rule",t="Update",n="\u540D\u5B57",o="\u89C4\u5219\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A\uFF01",a="RuleSQL",l="SQL Editor",d="Action",m="Add Action",g="Options",u="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],s,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],n,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],o,["for","ruleSql",1,"col-md-2","col-form-label"],a,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],l,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],d,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],m,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return n.update()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(a){return n.rule.id=a}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,Je,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return n.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,we,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(a){return n.rule.actions=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(a){return n.rule.options=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!n.validate()),e.xp6(12),e.ekj("is-invalid",!n.rule.id)("is-valid",n.rule.id),e.Q6J("ngModel",n.rule.id),e.xp6(11),e.ekj("border",!n.sqlEditor.getValue())("border-danger",!n.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!n.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!n.rule.actions||0===n.rule.actions.length)("border-danger",!n.rule.actions||0===n.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!n.rule.actions||0===n.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",n.rule.actions),e.xp6(7),e.Q6J("ruleOptions",n.rule.options))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,p.O5,k,U],styles:[""]}),i})(),Xe=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-rules-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),i})();function Qe(i,s){1&i&&(e.TgZ(0,"span"),e.TgZ(1,"div",50),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function Fe(i,s){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.status," ")}}function Ve(i,s){1&i&&(e.TgZ(0,"span"),e.TgZ(1,"div",52),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.TgZ(4,"div",53),e.TgZ(5,"span",51),e._uU(6,"Loading..."),e.qZA(),e.qZA(),e.TgZ(7,"div",54),e.TgZ(8,"span",51),e._uU(9,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function Ke(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",55),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().execute(o.id,"start")}),e.SDv(2,56),e.qZA(),e.TgZ(3,"span",57),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().execute(o.id,"restart")}),e.SDv(4,58),e.qZA(),e.TgZ(5,"span",59),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().execute(o.id,"stop")}),e.SDv(6,60),e.qZA(),e.qZA()}}function Be(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",24),e.NdJ("click",function(o){const l=e.CHM(t).$implicit;return e.oxw().selectOne(o,l)}),e.qZA(),e.qZA(),e.TgZ(3,"td",46),e._uU(4),e.qZA(),e.TgZ(5,"td"),e.YNc(6,Qe,4,0,"span",47),e.YNc(7,Fe,2,1,"span",47),e.qZA(),e.TgZ(8,"td",48),e.TgZ(9,"i",49),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.oxw().statusMetrics(a.id)}),e.qZA(),e.qZA(),e.TgZ(10,"td"),e.YNc(11,Ve,10,0,"span",47),e.YNc(12,Ke,7,0,"span",47),e.qZA(),e.qZA()}if(2&i){const t=s.$implicit,n=e.oxw();e.ekj("table-active",n.isChecked(t.id)),e.xp6(2),e.Q6J("checked",n.isChecked(t.id)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Q6J("ngIf",n.operationStatus),e.xp6(1),e.Q6J("ngIf",!n.operationStatus),e.xp6(2),e.ekj("text-info",n.statusMetricsRuleID===t.id),e.xp6(2),e.Q6J("ngIf",n.operationStatus),e.xp6(1),e.Q6J("ngIf",!n.operationStatus)}}function Ye(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",61),e.TgZ(1,"div",1),e._UZ(2,"i",62),e.TgZ(3,"span",63),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,64),e.qZA(),e.TgZ(7,"span",65),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.statusMetricsRefresh(o.statusMetricsRuleID)}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,66),e.qZA(),e.qZA(),e.TgZ(11,"span",67),e.TgZ(12,"i",68),e.NdJ("click",function(){return e.CHM(t),e.oxw().statusMetricsShowClose()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",69),e.TgZ(14,"pre",70),e._uU(15),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(4),e.Oqu(t.statusMetricsRuleID),e.xp6(11),e.Oqu(t.ruleStatusMetrics)}}let ze=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.route=o,this.router=a,this.rulesList=[],this.selectedRules=[],this.ruleStatusMetrics="",this.statusMetricsRuleID="",this.operationStatus=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{this.getRulesList()})}getRulesList(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t})}refresh(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t,this.msgSvc.success("refresh")})}edit(){this.router.navigate(["../edit-rules"],{relativeTo:this.route,queryParams:{ruleID:this.selectedRules[0].id}})}statusMetrics(t){this.statusMetricsRuleID="",this.ruleStatusMetrics="",this.ruleSvc.getRuleStatusMetricsById(t).subscribe(n=>{let o;this.statusMetricsRuleID=t;try{o=JSON.parse(n)}catch(a){return void(this.ruleStatusMetrics=n)}this.ruleStatusMetrics=JSON.stringify(o,null,3)})}statusMetricsShowClose(){this.statusMetricsRuleID="",this.ruleStatusMetrics=""}statusMetricsRefresh(t){this.statusMetrics(t)}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedRules.forEach((t,n)=>{this.ruleSvc.deleteOneRuleById(t.id).subscribe(()=>{this.selectedRules.splice(n,1),this.rulesList.forEach((o,a)=>{o.id===t.id&&(this.rulesList.splice(a,1),this.msgSvc.success("remove rule ",` Id: ${t.id}`))})})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let t=!0;return this.rulesList&&0===this.rulesList.length&&(t=!1),this.rulesList.forEach(n=>{-1===this.selectedRules.findIndex(o=>o.id===n.id)&&(t=!1)}),t}selectAll(t){this.rulesList.forEach(t.target.checked?o=>{-1===this.selectedRules.findIndex(a=>a.id===o.id)&&this.selectedRules.push(o)}:o=>{let a=this.selectedRules.findIndex(l=>l.id===o.id);-1!==a&&this.selectedRules.splice(a,1)})}isChecked(t){return this.selectedRules.findIndex(n=>n.id===t)>=0}selectOne(t,n){if(t.target.checked)return void this.selectedRules.push(n);let a=this.selectedRules.findIndex(l=>l.id===n.id);-1!==a&&this.selectedRules.splice(a,1)}execute(t,n){this.operationStatus=!0,this.ruleSvc.executeRuleCommand(t,n).subscribe({next:()=>{this.operationStatus=!1,this.msgSvc.success(`${n} ${t}`),this.getRulesList()},error:()=>this.operationStatus=!1})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.gz),e.Y36(c.F0))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-rules-list"]],decls:56,vars:5,consts:function(){let s,t,n,o,a,l,d,m,g,u,S,f,O,y,x,D,J,w;return s="\u89C4\u5219\u5217\u8868",t="\u5237\u65B0",n="\u6DFB\u52A0",o="\u7F16\u8F91",a="\u5220\u9664",l="ID",d="\u72B6\u6001",m="Status Metrics",g="Operaion",u="\u8B66\u544A",S="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",f="\u53D6\u6D88",O="\u786E\u8BA4",y="\u542F\u52A8",x="\u91CD\u542F",D="\u505C\u6B62",J="Status Metrics",w="refresh",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],[1,"font-weight-bold"],s,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],t,["type","button","routerLink","../add-rules",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],n,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],o,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],a,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],l,d,["scope","col",1,"text-center"],m,g,[3,"table-active",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],u,[1,"modal-body"],S,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],f,["type","button",1,"btn","btn-danger",3,"click"],O,[1,"user-select-all"],[4,"ngIf"],[1,"text-center"],["role","button",1,"fa","fa-line-chart","text-primary",3,"click"],["role","status",1,"spinner-border","spinner-border-sm","text-secondary"],[1,"sr-only"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-success"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-info"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-danger"],["role","button",1,"badge","badge-success","mr-1",3,"click"],y,["role","button",1,"badge","badge-info","mr-1",3,"click"],x,["role","button",1,"badge","badge-danger","mr-1",3,"click"],D,[1,"card","mt-3"],[1,"fa","fa-line-chart","mr-2","text-info"],[1,"mr-2","font-weight-bold"],J,["role","button",1,"badge","badge-primary","mx-2",3,"click"],w,["role","button",1,"align-bottom"],[1,"fa","fa-window-close","fa-lg","text-danger","float-right","mt-1",3,"click"],[1,"card-body"],[1,"p-2"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"div",6),e.TgZ(7,"button",7),e.NdJ("click",function(){return n.refresh()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.TgZ(11,"button",10),e._UZ(12,"i",11),e.TgZ(13,"span"),e.SDv(14,12),e.qZA(),e.qZA(),e.TgZ(15,"button",13),e.NdJ("click",function(){return n.edit()}),e._UZ(16,"i",14),e.TgZ(17,"span"),e.SDv(18,15),e.qZA(),e.qZA(),e.TgZ(19,"button",16),e.NdJ("click",function(){return n.deleteConfirm()}),e._UZ(20,"i",17),e.TgZ(21,"span"),e.SDv(22,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",19),e.TgZ(24,"div",20),e.TgZ(25,"table",21),e.TgZ(26,"thead",22),e.TgZ(27,"tr"),e.TgZ(28,"th",23),e.TgZ(29,"input",24),e.NdJ("click",function(a){return n.selectAll(a)}),e.qZA(),e.qZA(),e.TgZ(30,"th",23),e.SDv(31,25),e.qZA(),e.TgZ(32,"th",23),e.SDv(33,26),e.qZA(),e.TgZ(34,"th",27),e.SDv(35,28),e.qZA(),e.TgZ(36,"th",23),e.SDv(37,29),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"tbody"),e.YNc(39,Be,13,10,"tr",30),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(40,Ye,16,2,"div",31),e.TgZ(41,"div",32),e.TgZ(42,"div",33),e.TgZ(43,"div",34),e.TgZ(44,"div",35),e.TgZ(45,"h5",36),e._UZ(46,"i",37),e.TgZ(47,"span"),e.SDv(48,38),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",39),e.SDv(50,40),e.qZA(),e.TgZ(51,"div",41),e.TgZ(52,"button",42),e.SDv(53,43),e.qZA(),e.TgZ(54,"button",44),e.NdJ("click",function(){return n.delete()}),e.SDv(55,45),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(15),e.Q6J("disabled",1!==n.selectedRules.length),e.xp6(4),e.Q6J("disabled",0===n.selectedRules.length),e.xp6(10),e.Q6J("checked",n.isCheckedAll()),e.xp6(10),e.Q6J("ngForOf",n.rulesList),e.xp6(1),e.Q6J("ngIf",n.ruleStatusMetrics&&n.statusMetricsRuleID))},directives:[c.rH,p.sg,p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();function He(i,s){1&i&&(e.TgZ(0,"div",18),e._UZ(1,"i",19),e.TgZ(2,"span"),e.SDv(3,20),e.qZA(),e.qZA())}let je=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.router=o,this.route=a,this.EDGEX="edgex",this.CUSTOM="custom",this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.templateTypeSelected=this.EDGEX,this.edgexStreamDataTemplate='CREATE STREAM EdgeXStream () WITH ( FORMAT = "JSON", TYPE = "edgex" )',this.customStreamDataTemplate='CREATE STREAM demo ( field1 bigint, field2 float ) WITH ( DATASOURCE = "", KEY = "", FORMAT = "JSON", CONF_KEY = "", TYPE = "edgex", STRICT_VALIDATION = "true", TIMESTAMP = "", TIMESTAMP_FORMAT = "", RETAIN_SIZE = "0", SHARED = "false" )',this.streamIsNullMsg=!1}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}templateTypeToggle(t){this.templateTypeSelected=t,t===this.EDGEX?this.sqlEditor.setValue(this.edgexStreamDataTemplate):(this.sqlEditor.setValue(this.customStreamDataTemplate),this.formatSql())}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(n=>{CodeMirror.resolveMode("text/x-pgsql").keywords[n]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(n,o)=>{}),this.sqlEditor.on("paste",(n,o)=>{}),this.sqlEditor.on("keyup",(n,o)=>{o.keyCode>=65&&o.keyCode<=90&&n.showHint({completeSingle:!1})}),this.sqlEditor.setValue(this.edgexStreamDataTemplate)}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}documentShow(){$("#stream-document").modal("show")}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.addStream(JSON.stringify({sql:t})).subscribe(()=>{this.msgSvc.success("Add Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.F0),e.Y36(c.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-add-stream"]],decls:25,vars:9,consts:function(){let s,t,n;return s="\u6DFB\u52A0\u6570\u636E\u6E90",t="\u63D0\u4EA4",n="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,""],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],s,["type","button",1,"btn","btn-success","btn-sm","float-right",3,"click"],[1,"fa","fa-save","mr-1"],t,[1,"card-header"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],n]},template:function(t,n){1&t&&(e.YNc(0,He,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"span",5),e.SDv(6,6),e.qZA(),e.qZA(),e.TgZ(7,"button",7),e.NdJ("click",function(){return n.submit()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",10),e.TgZ(12,"span",11),e.NdJ("click",function(){return n.templateTypeToggle(n.EDGEX)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e._uU(15,"EdgeXStreamTemplate"),e.qZA(),e.qZA(),e.TgZ(16,"span",11),e.NdJ("click",function(){return n.templateTypeToggle(n.CUSTOM)}),e._UZ(17,"i",12),e.TgZ(18,"span"),e._uU(19,"CustomStreamTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",13),e.TgZ(21,"div",14),e.TgZ(22,"span",15),e.TgZ(23,"i",16),e.NdJ("click",function(){return n.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(24,"textarea",17),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",n.streamIsNullMsg),e.xp6(12),e.ekj("badge-info",n.templateTypeSelected===n.EDGEX),e.xp6(1),e.ekj("fa-check-square",n.templateTypeSelected===n.EDGEX),e.xp6(3),e.ekj("badge-info",n.templateTypeSelected===n.CUSTOM),e.xp6(1),e.ekj("fa-check-square",n.templateTypeSelected===n.CUSTOM))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})();function We(i,s){1&i&&(e.TgZ(0,"div",16),e._UZ(1,"i",17),e.TgZ(2,"span"),e.SDv(3,18),e.qZA(),e.qZA())}let et=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.router=o,this.route=a,this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.streamName="",this.streamStringFormatObj="",this.streamIsNullMsg=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{t.streamName&&(this.streamName=t.streamName,this.getStreamByNameOrID())}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}getStreamByNameOrID(){this.ruleSvc.findStreamByName(this.streamName).subscribe(t=>{this.streamJSONFormatObj=t,this.dataFormatJSONToStringConvertor(),this.sqlEditor.setValue(this.streamStringFormatObj),this.formatSql()})}dataFormatJSONToStringConvertor(){var t,n,o;if(!this.streamJSONFormatObj)return;let a=[];null===(n=null===(t=this.streamJSONFormatObj)||void 0===t?void 0:t.StreamFields)||void 0===n||n.forEach((d,m)=>{a.push(`${d.Name} ${d.FieldType}`)});let l=[];for(const[d,m]of Object.entries(this.streamJSONFormatObj.Options))l.push(`${d} = "${m}"`);this.streamStringFormatObj=`CREATE STREAM ${null===(o=this.streamJSONFormatObj)||void 0===o?void 0:o.Name} ( ${a.join(", ")} ) WITH ( ${l.join(", ")} )`}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(n=>{CodeMirror.resolveMode("text/x-pgsql").keywords[n]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(n,o)=>{}),this.sqlEditor.on("paste",(n,o)=>{}),this.sqlEditor.on("keyup",(n,o)=>{o.keyCode>=65&&o.keyCode<=90&&n.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.updateStream(JSON.stringify({sql:t}),this.streamName).subscribe(()=>{this.msgSvc.success("Update Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.F0),e.Y36(c.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edit-stream"]],decls:19,vars:3,consts:function(){let s,t,n;return s="\u7F16\u8F91\u6570\u636E\u6E90",t="\u63D0\u4EA4",n="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-2"],s,[1,"font-weight-bold"],[1,"float-right"],["type","button",1,"btn","btn-success","btn-sm",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],n]},template:function(t,n){1&t&&(e.YNc(0,We,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span"),e._UZ(4,"span",3),e.TgZ(5,"span",4),e.SDv(6,5),e.qZA(),e.TgZ(7,"span",6),e._uU(8),e.qZA(),e.qZA(),e.TgZ(9,"span",7),e.TgZ(10,"button",8),e.NdJ("click",function(){return n.submit()}),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e.TgZ(16,"span",13),e.TgZ(17,"i",14),e.NdJ("click",function(){return n.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(18,"textarea",15),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",n.streamIsNullMsg),e.xp6(8),e.Oqu(n.streamName),e.xp6(2),e.Q6J("disabled",!n.streamStringFormatObj))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),i})(),tt=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-stream-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),i})();function nt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"li",29),e.TgZ(1,"div",30),e.TgZ(2,"div",31),e._UZ(3,"i",32),e.qZA(),e.TgZ(4,"div",33),e.TgZ(5,"div",34),e.TgZ(6,"h5",35),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",36),e.TgZ(10,"span",37),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.oxw().edit(a)}),e._UZ(11,"i",38),e.TgZ(12,"span"),e.SDv(13,39),e.qZA(),e.qZA(),e.TgZ(14,"span",40),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.oxw().deleteConfirm(a)}),e._UZ(15,"i",41),e.TgZ(16,"span"),e.SDv(17,42),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=s.$implicit;e.xp6(7),e.Oqu(t)}}let ot=(()=>{class i{constructor(t,n,o,a){this.ruleSvc=t,this.msgSvc=n,this.route=o,this.router=a,this.streamList=[],this.selectedStream=""}ngOnInit(){this.getStreamList()}getStreamList(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t})}refresh(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t,this.msgSvc.success("refresh")})}add(){this.router.navigate(["../add-stream"],{relativeTo:this.route})}edit(t){this.router.navigate(["../edit-stream"],{relativeTo:this.route,queryParams:{streamName:t}})}deleteConfirm(t){this.selectedStream=t,$("#deleteConfirmDialog").modal("show")}delete(){$("#deleteConfirmDialog").modal("hide"),this.ruleSvc.deleteOneStreamById(this.selectedStream).subscribe(()=>{this.msgSvc.success("delete",`name: ${this.selectedStream}`),this.streamList.forEach((t,n)=>{t===this.selectedStream&&this.streamList.splice(n,1)})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.n),e.Y36(h.e),e.Y36(c.gz),e.Y36(c.F0))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-stream-list"]],decls:33,vars:1,consts:function(){let s,t,n,o,a,l,d,m,g;return s="Stream List",t="\u5237\u65B0",n="\u6DFB\u52A0",o="\u8B66\u544A",a="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",l="\u53D6\u6D88",d="\u786E\u8BA4",m="\u7F16\u8F91",g="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],s,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-refresh","mr-1"],t,[1,"btn","btn-success","btn-sm",3,"click"],[1,"fa","fa-plus-circle","mr-1"],n,[1,"card-body","p-0"],[1,"list-group","p-0","border-0"],["class","list-group-item list-group-item-action list-group-item-light border-top-0 border-left-0 border-right-0",4,"ngFor","ngForOf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],o,[1,"modal-body"],a,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],l,["type","button",1,"btn","btn-danger",3,"click"],d,[1,"list-group-item","list-group-item-action","list-group-item-light","border-top-0","border-left-0","border-right-0"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit","mr-1"],m,["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash","mr-1"],g]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return n.refresh()}),e._UZ(8,"i",7),e.TgZ(9,"span"),e.SDv(10,8),e.qZA(),e.qZA(),e.TgZ(11,"button",9),e.NdJ("click",function(){return n.add()}),e._UZ(12,"i",10),e.TgZ(13,"span"),e.SDv(14,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"ul",13),e.YNc(17,nt,18,1,"li",14),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",15),e.TgZ(19,"div",16),e.TgZ(20,"div",17),e.TgZ(21,"div",18),e.TgZ(22,"h5",19),e._UZ(23,"i",20),e.TgZ(24,"span"),e.SDv(25,21),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",22),e.SDv(27,23),e.qZA(),e.TgZ(28,"div",24),e.TgZ(29,"button",25),e.SDv(30,26),e.qZA(),e.TgZ(31,"button",27),e.NdJ("click",function(){return n.delete()}),e.SDv(32,28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngForOf",n.streamList))},directives:[p.sg],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}#addStreamDialog[_ngcontent-%COMP%] #editStreamDialog[_ngcontent-%COMP%]{margin-top:10%}"]}),i})();var it=_(8253),at=_(1964),st=_(4294),rt=_(5894),lt=_(7216);let P=(()=>{class i{constructor(t,n){this.router=t,this.ruleSvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.ruleSvc.ping().pipe((0,st.q)(1),(0,rt.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"rule engine",routerPath:`/${n.url.split("/")[1]}`}})),(0,lt.z)(()=>(0,at.of)(!0)))}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(c.F0),e.LFG(E.n))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const dt=[{path:"",component:G,canActivate:[it.a,P],canActivateChild:[P],children:[{path:"",redirectTo:"stream-center",pathMatch:"full"},{path:"stream-center",component:tt,children:[{path:"",redirectTo:"stream-list",pathMatch:"full"},{path:"stream-list",component:ot},{path:"add-stream",component:je},{path:"edit-stream",component:et}]},{path:"rules-center",component:Xe,children:[{path:"",redirectTo:"rules-list",pathMatch:"full"},{path:"rules-list",component:ze},{path:"add-rules",component:De},{path:"edit-rules",component:Ge}]}]}];let _t=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[c.Bz.forChild(dt)],c.Bz]}),i})();var gt=_(6342),ct=_(4010);let ut=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[p.ez,r.u5,r.UX,_t,gt.Y,ct.MetadataModule]]}),i})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/155.eb51d10e34a83d1c5025.js b/cmd/edgex-ui-server/static/web/zh/155.eb51d10e34a83d1c5025.js deleted file mode 100644 index c46a6c4e..00000000 --- a/cmd/edgex-ui-server/static/web/zh/155.eb51d10e34a83d1c5025.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[155],{4155:(pt,N,d)=>{d.r(N),d.d(N,{RuleEngineModule:()=>ut});var p=d(8583),s=d(3092),c=d(9502),e=d(476);let X=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rule-engine"]],decls:11,vars:0,consts:function(){let a,t;return a="\u6570\u636E\u6E90",t="\u89C4\u5219",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./stream-center","routerLinkActive","active",1,"nav-link"],a,["routerLink","./rules-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.qZA(),e.TgZ(6,"li",3),e.TgZ(7,"a",6),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e._UZ(10,"router-outlet"),e.qZA(),e.qZA())},directives:[c.yS,c.Od,c.lC],styles:[""]}),o})();var A=d(4791),f=d(7822),w=d(6322),B=d(1302);function Q(o,a){1&o&&e._UZ(0,"i",26)}function H(o,a){1&o&&e._UZ(0,"i",27)}let W=(()=>{class o{constructor(){this.collapseToggleStatus=!1,this.optionalChange=new e.vpe,this._optional={Qos:"0",Retained:"false",SkipCertVerify:"true",AutoReconnect:"true",CleanSession:"true"}}get optional(){return this._optional}set optional(t){Object.assign(this._optional,t)}ngOnInit(){}ngOnChanges(){this.optionalChange.emit(this.optional)}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edgex-sink-optional"]],inputs:{optional:"optional"},outputs:{optionalChange:"optionalChange"},features:[e.TTD],decls:102,vars:27,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",4,"ngIf"],["id","collapse-edgex-sink-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Password",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["type","number","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retained",1,"custom-select",3,"ngModel","ngModelChange"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","CleanSession",1,"custom-select",3,"ngModel","ngModelChange"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","CertFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyFile",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","CertPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeyPEMBlock",1,"form-control",3,"ngModel","ngModelChange"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-edgex-sink-opts","aria-expanded","false","aria-controls","collapse-edgex-sink-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return _.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink Options Setting"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,Q,1,0,"i",5),e.YNc(7,H,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e._uU(12,"ClientId"),e.qZA(),e.TgZ(13,"div",10),e.TgZ(14,"input",11),e.NdJ("ngModelChange",function(i){return _.optional.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",8),e.TgZ(16,"label",9),e._uU(17,"Username"),e.qZA(),e.TgZ(18,"div",10),e.TgZ(19,"input",12),e.NdJ("ngModelChange",function(i){return _.optional.Username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",8),e.TgZ(21,"label",9),e._uU(22,"Password"),e.qZA(),e.TgZ(23,"div",10),e.TgZ(24,"input",13),e.NdJ("ngModelChange",function(i){return _.optional.Password=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",8),e.TgZ(26,"label",9),e._uU(27,"Qos"),e.qZA(),e.TgZ(28,"div",10),e.TgZ(29,"select",14),e.NdJ("ngModelChange",function(i){return _.optional.Qos=i}),e.TgZ(30,"option",15),e._uU(31,"0"),e.qZA(),e.TgZ(32,"option",15),e._uU(33,"1"),e.qZA(),e.TgZ(34,"option",15),e._uU(35,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e.TgZ(37,"label",9),e._uU(38,"KeepAlive"),e.qZA(),e.TgZ(39,"div",10),e.TgZ(40,"input",16),e.NdJ("ngModelChange",function(i){return _.optional.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e._uU(43,"Retained"),e.qZA(),e.TgZ(44,"div",10),e.TgZ(45,"select",17),e.NdJ("ngModelChange",function(i){return _.optional.Retained=i}),e.TgZ(46,"option",15),e._uU(47,"false"),e.qZA(),e.TgZ(48,"option",15),e._uU(49,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",8),e.TgZ(51,"label",9),e._uU(52,"AutoReconnect"),e.qZA(),e.TgZ(53,"div",10),e.TgZ(54,"select",18),e.NdJ("ngModelChange",function(i){return _.optional.AutoReconnect=i}),e.TgZ(55,"option",15),e._uU(56,"false"),e.qZA(),e.TgZ(57,"option",15),e._uU(58,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",8),e.TgZ(60,"label",9),e._uU(61,"ConnectTimeout"),e.qZA(),e.TgZ(62,"div",10),e.TgZ(63,"input",19),e.NdJ("ngModelChange",function(i){return _.optional.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",8),e.TgZ(65,"label",9),e._uU(66,"CleanSession"),e.qZA(),e.TgZ(67,"div",10),e.TgZ(68,"select",20),e.NdJ("ngModelChange",function(i){return _.optional.CleanSession=i}),e.TgZ(69,"option",15),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",15),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e._uU(75,"SkipCertVerify"),e.qZA(),e.TgZ(76,"div",10),e.TgZ(77,"select",21),e.NdJ("ngModelChange",function(i){return _.optional.SkipCertVerify=i}),e.TgZ(78,"option",15),e._uU(79,"true"),e.qZA(),e.TgZ(80,"option",15),e._uU(81,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",8),e.TgZ(83,"label",9),e._uU(84,"CertFile"),e.qZA(),e.TgZ(85,"div",10),e.TgZ(86,"input",22),e.NdJ("ngModelChange",function(i){return _.optional.CertFile=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",8),e.TgZ(88,"label",9),e._uU(89,"KeyFile"),e.qZA(),e.TgZ(90,"div",10),e.TgZ(91,"input",23),e.NdJ("ngModelChange",function(i){return _.optional.KeyFile=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(92,"div",8),e.TgZ(93,"label",9),e._uU(94,"CertPEMBlock"),e.qZA(),e.TgZ(95,"div",10),e.TgZ(96,"input",24),e.NdJ("ngModelChange",function(i){return _.optional.CertPEMBlock=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(97,"div",8),e.TgZ(98,"label",9),e._uU(99,"KeyPEMBlock"),e.qZA(),e.TgZ(100,"div",10),e.TgZ(101,"input",25),e.NdJ("ngModelChange",function(i){return _.optional.KeyPEMBlock=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(7),e.Q6J("ngModel",_.optional.ClientId),e.xp6(5),e.Q6J("ngModel",_.optional.Username),e.xp6(5),e.Q6J("ngModel",_.optional.Password),e.xp6(5),e.Q6J("ngModel",_.optional.Qos),e.xp6(1),e.Q6J("value",0),e.xp6(2),e.Q6J("value",1),e.xp6(2),e.Q6J("value",2),e.xp6(6),e.Q6J("ngModel",_.optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",_.optional.Retained),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.AutoReconnect),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",_.optional.CleanSession),e.xp6(1),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(6),e.Q6J("ngModel",_.optional.SkipCertVerify),e.xp6(1),e.Q6J("value",!0),e.xp6(2),e.Q6J("value",!1),e.xp6(6),e.Q6J("ngModel",_.optional.CertFile),e.xp6(5),e.Q6J("ngModel",_.optional.KeyFile),e.xp6(5),e.Q6J("ngModel",_.optional.CertPEMBlock),e.xp6(5),e.Q6J("ngModel",_.optional.KeyPEMBlock))},directives:[p.O5,s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,s.EJ,s.YN,s.Kr,s.wV],styles:[""]}),o})();var h=d(9162),V=function(o){function a(t,_){return o.call(this)||this}return(0,h.ZT)(a,o),a.prototype.schedule=function(t,_){return void 0===_&&(_=0),this},a}(d(8839).w0),Z={setInterval:function(){for(var o=[],a=0;a{class o{constructor(){this.collapseToggleStatus=!1,this.sinkBasePropertiesForm=new s.cw({concurrency:new s.NI(1),bufferLength:new s.NI(1024),runAsync:new s.NI(!1),retryInterval:new s.NI(1e3),retryCount:new s.NI(0),cacheLength:new s.NI(1024),cacheSaveInterval:new s.NI(1e3),omitIfEmpty:new s.NI(!1)}),this.sinkBasePropertiesChange=new e.vpe,this.sinkBaseProperties={}}ngOnChanges(){delete this.sinkBaseProperties.sendSingle,delete this.sinkBaseProperties.dataTemplate;let t={};for(const[_,n]of Object.entries(this.sinkBaseProperties))this.sinkBasePropertiesForm.value.hasOwnProperty(_)&&n&&(t[_]=n);this.sinkBasePropertiesForm.patchValue(t)}ngAfterViewInit(){this.sinkBasePropertiesForm.valueChanges.pipe(I(400),q()).subscribe(()=>{Object.assign(this.sinkBaseProperties,this.sinkBasePropertiesForm.value),this.sinkBasePropertiesChange.emit(this.sinkBaseProperties)})}collapseToggle(){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-sink-base-properties"]],inputs:{sinkBaseProperties:"sinkBaseProperties"},outputs:{sinkBasePropertiesChange:"sinkBasePropertiesChange"},features:[e.TTD],decls:74,vars:7,consts:function(){let a;return a="Sink Advanced Options",[[1,"card"],["role","button","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"text-primary"],a,[1,"text-primary","ml-2"],["role","button","aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["role","button","aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",4,"ngIf"],["id","collapse-sink-base",1,"card-body","collapse"],[3,"formGroup"],[1,"form-group","row"],[1,"col","col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many instances of the sink will be run. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["type","number","name","concurrency","formControlName","concurrency",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory. If the buffered messages exceed the limit, the sink will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength","formControlName","bufferLength",1,"form-control"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many milliseconds will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryInterval","formControlName","retryInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many will the sink retry to send data out if the previous send failed. If the specified value <= 0, then it will not retry.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","retryCount","formControlName","retryCount",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be cached. The cached messages will be resent to external system until the data sent out successfully. The cached message will be sent in order except in runAsync or concurrent mode. The cached message will be saved to disk in fixed intervals.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheLength","formControlName","cacheLength",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the interval to save cached message to the disk. Notice that, if the rule is closed in plan, all the cached messages will be saved at close. A larger value can reduce the saving overhead but may lose more cache messages when the system is interrupted in error.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","cacheSaveInterval","formControlName","cacheSaveInterval",1,"form-control"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether the sink will run asynchronously for better performance. If it is true, the sink result order is not promised.",1,"fa","fa-question-circle-o","fa-lg"],["name","runAsync","formControlName","runAsync",1,"custom-select"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","If the configuration item is set to true, when SELECT result is empty, then the result will not feed to sink operator.",1,"fa","fa-question-circle-o","fa-lg"],["name","omitIfEmpty","formControlName","omitIfEmpty",1,"custom-select"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-down","fa-lg"],["role","button","aria-disabled","true","data-toggle","collapse","data-target","#collapse-sink-base","aria-expanded","false","aria-controls","collapse-sink-base",1,"fa","fa-angle-double-up","fa-lg"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return _.collapseToggle()}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"span",5),e.YNc(6,_e,1,0,"i",6),e.YNc(7,ne,1,0,"i",7),e.qZA(),e.qZA(),e.TgZ(8,"div",8),e.TgZ(9,"form",9),e.TgZ(10,"div",10),e.TgZ(11,"label",11),e.TgZ(12,"span",12),e._uU(13,"concurrency"),e.qZA(),e._UZ(14,"span",13),e.qZA(),e.TgZ(15,"div",14),e._UZ(16,"input",15),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.TgZ(18,"label",11),e.TgZ(19,"span",12),e._uU(20,"bufferLength"),e.qZA(),e._UZ(21,"span",16),e.qZA(),e.TgZ(22,"div",14),e._UZ(23,"input",17),e.qZA(),e.qZA(),e.TgZ(24,"div",10),e.TgZ(25,"label",18),e.TgZ(26,"span",12),e._uU(27,"retryInterval"),e.qZA(),e._UZ(28,"span",19),e.qZA(),e.TgZ(29,"div",14),e._UZ(30,"input",20),e.qZA(),e.qZA(),e.TgZ(31,"div",10),e.TgZ(32,"label",18),e.TgZ(33,"span",12),e._uU(34,"retryCount"),e.qZA(),e._UZ(35,"span",21),e.qZA(),e.TgZ(36,"div",14),e._UZ(37,"input",22),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",18),e.TgZ(40,"span",12),e._uU(41,"cacheLength"),e.qZA(),e._UZ(42,"span",23),e.qZA(),e.TgZ(43,"div",14),e._UZ(44,"input",24),e.qZA(),e.qZA(),e.TgZ(45,"div",10),e.TgZ(46,"label",18),e.TgZ(47,"span",12),e._uU(48,"cacheSaveInterval"),e.qZA(),e._UZ(49,"span",25),e.qZA(),e.TgZ(50,"div",14),e._UZ(51,"input",26),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",18),e.TgZ(54,"span",12),e._uU(55,"runAsync"),e.qZA(),e._UZ(56,"span",27),e.qZA(),e.TgZ(57,"div",14),e.TgZ(58,"select",28),e.TgZ(59,"option",29),e._uU(60,"false"),e.qZA(),e.TgZ(61,"option",29),e._uU(62,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",10),e.TgZ(64,"label",18),e.TgZ(65,"span",12),e._uU(66,"omitIfEmpty"),e.qZA(),e._UZ(67,"span",30),e.qZA(),e.TgZ(68,"div",14),e.TgZ(69,"select",31),e.TgZ(70,"option",29),e._uU(71,"false"),e.qZA(),e.TgZ(72,"option",29),e._uU(73,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(2),e.Q6J("formGroup",_.sinkBasePropertiesForm),e.xp6(50),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(9),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,s._Y,s.JL,s.sg,s.wV,s.Fj,s.JJ,s.u,s.EJ,s.YN,s.Kr],styles:[""]}),o})(),oe=(()=>{class o{constructor(){this.sinkBaseProperties={},this.edgeXSinkChange=new e.vpe,this._edgeXSink={type:"redis",protocol:"redis",host:"edgex-redis",port:6379,contentType:"application/json",messageType:"event",sendSingle:!1}}get edgeXSink(){return this._edgeXSink}set edgeXSink(t){Object.assign(this._edgeXSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.edgeXSink)}ngOnChanges(){this.edgeXSinkChange.emit(this.edgeXSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.edgeXSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edgex-sink"]],inputs:{edgeXSink:"edgeXSink"},outputs:{edgeXSinkChange:"edgeXSinkChange"},features:[e.TTD],decls:117,vars:20,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","the type of EdgeX message bus",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","type",1,"custom-select",3,"ngModel","ngModelChange"],["value","redis"],["value","zero"],["value","mqtt"],["type","text","name","protocol",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","host",1,"form-control",3,"ngModel","ngModelChange"],["type","number","name","port",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The topic to be published. The topic is static across all messages. To use dynamic topic, leave this empty and specify the topicPrefix property. Only one of the topic and topicPrefix properties can be specified. If both are not specified, then use default topic value application.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The prefix of a dynamic topic to be published. The topic will become a concatenation of $topicPrefix/$profileName/$deviceName/$sourceName.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","topicPrefix",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","contentType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The EdgeX message model type. To publish the message as an event like EdgeX application service, use event. Otherwise, to publish the message as an event request like EdgeX device service or core data service, use request. If not specified, then use the default value event.",1,"fa","fa-question-circle-o","fa-lg"],["name","messageType",1,"custom-select",3,"ngModel","ngModelChange"],["value","event"],["value","request"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The property is a field name that allows user to specify a field name of SQL select clause, the field name should use meta(*) AS xxx to select all of EdgeX metadata from message.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","metadata",1,"form-control",3,"ngModel","ngModelChange"],[3,"singleSelectionMode","singleProfileSelected","singleProfileSelectedChange"],[3,"singleSelectionMode","singleDeviceSelected","singleDeviceSelectedChange"],["type","text","name","deviceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","EdgeX Message bus connection optional",1,"fa","fa-question-circle-o","fa-lg"],[3,"optional","optionalChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"EdgeX Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e.TgZ(9,"span",7),e._uU(10,"Type"),e.qZA(),e._UZ(11,"span",8),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"select",10),e.NdJ("ngModelChange",function(i){return _.edgeXSink.type=i}),e.TgZ(14,"option",11),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",12),e._uU(17,"zero"),e.qZA(),e.TgZ(18,"option",13),e._uU(19,"mqtt"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",5),e.TgZ(21,"label",6),e._uU(22,"Protocol"),e.qZA(),e.TgZ(23,"div",9),e.TgZ(24,"input",14),e.NdJ("ngModelChange",function(i){return _.edgeXSink.protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",5),e.TgZ(26,"label",6),e._uU(27,"Host"),e.qZA(),e.TgZ(28,"div",9),e.TgZ(29,"input",15),e.NdJ("ngModelChange",function(i){return _.edgeXSink.host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",5),e.TgZ(31,"label",6),e._uU(32,"Port"),e.qZA(),e.TgZ(33,"div",9),e.TgZ(34,"input",16),e.NdJ("ngModelChange",function(i){return _.edgeXSink.port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",5),e.TgZ(36,"label",6),e.TgZ(37,"span",7),e._uU(38,"Topic"),e.qZA(),e._UZ(39,"span",17),e.qZA(),e.TgZ(40,"div",9),e.TgZ(41,"input",18),e.NdJ("ngModelChange",function(i){return _.edgeXSink.topic=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",5),e.TgZ(43,"label",6),e.TgZ(44,"span",7),e._uU(45,"TopicPrefix"),e.qZA(),e._UZ(46,"span",19),e.qZA(),e.TgZ(47,"div",9),e.TgZ(48,"input",20),e.NdJ("ngModelChange",function(i){return _.edgeXSink.topicPrefix=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",5),e.TgZ(50,"label",6),e._uU(51,"ContentType"),e.qZA(),e.TgZ(52,"div",9),e.TgZ(53,"input",21),e.NdJ("ngModelChange",function(i){return _.edgeXSink.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",5),e.TgZ(55,"label",6),e.TgZ(56,"span",7),e._uU(57,"MessageType"),e.qZA(),e._UZ(58,"span",22),e.qZA(),e.TgZ(59,"div",9),e.TgZ(60,"select",23),e.NdJ("ngModelChange",function(i){return _.edgeXSink.messageType=i}),e.TgZ(61,"option",24),e._uU(62,"event"),e.qZA(),e.TgZ(63,"option",25),e._uU(64,"request"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(65,"div",5),e.TgZ(66,"label",6),e.TgZ(67,"span",7),e._uU(68,"Metadata"),e.qZA(),e._UZ(69,"span",26),e.qZA(),e.TgZ(70,"div",9),e.TgZ(71,"input",27),e.NdJ("ngModelChange",function(i){return _.edgeXSink.metadata=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",5),e.TgZ(73,"label",6),e._uU(74,"ProfileName"),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"app-device-profile-combo-list",28),e.NdJ("singleProfileSelectedChange",function(i){return _.edgeXSink.profileName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",5),e.TgZ(78,"label",6),e._uU(79,"DeviceName"),e.qZA(),e.TgZ(80,"div",9),e.TgZ(81,"app-device-combo-list",29),e.NdJ("singleDeviceSelectedChange",function(i){return _.edgeXSink.deviceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(82,"div",5),e.TgZ(83,"label",6),e._uU(84,"SourceName"),e.qZA(),e.TgZ(85,"div",9),e.TgZ(86,"input",30),e.NdJ("ngModelChange",function(i){return _.edgeXSink.sourceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(87,"div",5),e.TgZ(88,"label",6),e.TgZ(89,"span",7),e._uU(90,"SendSingle"),e.qZA(),e._UZ(91,"span",31),e.qZA(),e.TgZ(92,"div",9),e.TgZ(93,"select",32),e.NdJ("ngModelChange",function(i){return _.edgeXSink.sendSingle=i}),e.TgZ(94,"option",33),e._uU(95,"false"),e.qZA(),e.TgZ(96,"option",33),e._uU(97,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(98,"div",5),e.TgZ(99,"label",6),e.TgZ(100,"span",7),e._uU(101,"DataTemplate"),e.qZA(),e._UZ(102,"span",34),e.qZA(),e.TgZ(103,"div",9),e.TgZ(104,"input",35),e.NdJ("ngModelChange",function(i){return _.edgeXSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(105,"div",5),e.TgZ(106,"label",6),e.TgZ(107,"span",7),e._uU(108,"EdgeX Sink Options"),e.qZA(),e._UZ(109,"span",36),e.qZA(),e.TgZ(110,"div",9),e.TgZ(111,"app-edgex-sink-optional",37),e.NdJ("optionalChange",function(i){return _.edgeXSink.optional=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",5),e.TgZ(113,"label",6),e._uU(114,"Advanced Options"),e.qZA(),e.TgZ(115,"div",9),e.TgZ(116,"app-sink-base-properties",38),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(13),e.Q6J("ngModel",_.edgeXSink.type),e.xp6(11),e.Q6J("ngModel",_.edgeXSink.protocol),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.host),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.port),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.topic),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.topicPrefix),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.contentType),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.messageType),e.xp6(11),e.Q6J("ngModel",_.edgeXSink.metadata),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleProfileSelected",_.edgeXSink.profileName),e.xp6(5),e.Q6J("singleSelectionMode",!0)("singleDeviceSelected",_.edgeXSink.deviceName),e.xp6(5),e.Q6J("ngModel",_.edgeXSink.sourceName),e.xp6(7),e.Q6J("ngModel",_.edgeXSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.edgeXSink.dataTemplate),e.xp6(7),e.Q6J("optional",_.edgeXSink.optional),e.xp6(5),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,s.wV,w.o,B.h,W,C],styles:[""]}),o})(),ie=(()=>{class o{constructor(){this.sinkBaseProperties={},this.mqttSinkChange=new e.vpe,this._mqttSink={server:"tcp://127.0.0.1:1883",protocolVersion:"3.1",qos:0,insecureSkipVerify:!0,retained:!1,sendSingle:!1}}get mqttSink(){return this._mqttSink}set mqttSink(t){Object.assign(this._mqttSink,t)}ngOnInit(){this.renderPopoverComponent(),Object.assign(this.sinkBaseProperties,this.mqttSink)}ngOnChanges(){this.mqttSinkChange.emit(this.mqttSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.mqttSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-mqtt-sink"]],inputs:{mqttSink:"mqttSink"},outputs:{mqttSinkChange:"mqttSinkChange"},features:[e.TTD],decls:114,vars:32,consts:function(){let a,t,_,n;return a="the mqtt server address can't be empty!",t="the topic can't be empty!",_="Username",n="Password",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"form-group","row","has-validation"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["type","text","name","server",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],a,["type","text","name","topic",1,"form-control",3,"ngModel","ngModelChange"],t,[1,"form-group","row"],["type","text","name","clientId",1,"form-control",3,"ngModel","ngModelChange"],["name","protocolVersion",1,"custom-select",3,"ngModel","ngModelChange"],["value","3.1"],["value","3.1.1"],["name","qos",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],_,["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],n,["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["name","retained",1,"custom-select",3,"ngModel","ngModelChange"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"MQTT Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"form"),e.TgZ(7,"div",5),e.TgZ(8,"label",6),e._uU(9,"Server"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",8),e.NdJ("ngModelChange",function(i){return _.mqttSink.server=i}),e.qZA(),e.TgZ(12,"div",9),e.TgZ(13,"small"),e.SDv(14,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",5),e.TgZ(16,"label",6),e._uU(17,"Topic"),e.qZA(),e.TgZ(18,"div",7),e.TgZ(19,"input",11),e.NdJ("ngModelChange",function(i){return _.mqttSink.topic=i}),e.qZA(),e.TgZ(20,"div",9),e.TgZ(21,"small"),e.SDv(22,12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",13),e.TgZ(24,"label",6),e._uU(25,"ClientId"),e.qZA(),e.TgZ(26,"div",7),e.TgZ(27,"input",14),e.NdJ("ngModelChange",function(i){return _.mqttSink.clientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",13),e.TgZ(29,"label",6),e._uU(30,"ProtocolVersion"),e.qZA(),e.TgZ(31,"div",7),e.TgZ(32,"select",15),e.NdJ("ngModelChange",function(i){return _.mqttSink.protocolVersion=i}),e.TgZ(33,"option",16),e._uU(34,"3.1"),e.qZA(),e.TgZ(35,"option",17),e._uU(36,"3.1.1"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"div",13),e.TgZ(38,"label",6),e._uU(39,"Qos"),e.qZA(),e.TgZ(40,"div",7),e.TgZ(41,"select",18),e.NdJ("ngModelChange",function(i){return _.mqttSink.qos=i}),e.TgZ(42,"option",19),e._uU(43,"0"),e.qZA(),e.TgZ(44,"option",19),e._uU(45,"1"),e.qZA(),e.TgZ(46,"option",19),e._uU(47,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",13),e.TgZ(49,"label",6),e.SDv(50,20),e.qZA(),e.TgZ(51,"div",7),e.TgZ(52,"input",21),e.NdJ("ngModelChange",function(i){return _.mqttSink.username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",13),e.TgZ(54,"label",6),e.SDv(55,22),e.qZA(),e.TgZ(56,"div",7),e.TgZ(57,"input",23),e.NdJ("ngModelChange",function(i){return _.mqttSink.password=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",13),e.TgZ(59,"label",6),e._uU(60,"Retained"),e.qZA(),e.TgZ(61,"div",7),e.TgZ(62,"select",24),e.NdJ("ngModelChange",function(i){return _.mqttSink.retained=i}),e.TgZ(63,"option",19),e._uU(64,"false"),e.qZA(),e.TgZ(65,"option",19),e._uU(66,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",13),e.TgZ(68,"label",6),e.TgZ(69,"span",25),e._uU(70,"sendSingle"),e.qZA(),e._UZ(71,"span",26),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"select",27),e.NdJ("ngModelChange",function(i){return _.mqttSink.sendSingle=i}),e.TgZ(74,"option",19),e._uU(75,"false"),e.qZA(),e.TgZ(76,"option",19),e._uU(77,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(78,"div",13),e.TgZ(79,"label",6),e.TgZ(80,"span",25),e._uU(81,"dataTemplate"),e.qZA(),e._UZ(82,"span",28),e.qZA(),e.TgZ(83,"div",7),e.TgZ(84,"input",29),e.NdJ("ngModelChange",function(i){return _.mqttSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",13),e.TgZ(86,"label",6),e._uU(87,"InsecureSkipVerify"),e.qZA(),e.TgZ(88,"div",7),e.TgZ(89,"select",30),e.NdJ("ngModelChange",function(i){return _.mqttSink.insecureSkipVerify=i}),e.TgZ(90,"option",19),e._uU(91,"true"),e.qZA(),e.TgZ(92,"option",19),e._uU(93,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(94,"div",13),e.TgZ(95,"label",6),e._uU(96,"CertificationPath"),e.qZA(),e.TgZ(97,"div",7),e.TgZ(98,"input",31),e.NdJ("ngModelChange",function(i){return _.mqttSink.certificationPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(99,"div",13),e.TgZ(100,"label",6),e._uU(101,"PrivateKeyPath"),e.qZA(),e.TgZ(102,"div",7),e.TgZ(103,"input",32),e.NdJ("ngModelChange",function(i){return _.mqttSink.privateKeyPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(104,"div",13),e.TgZ(105,"label",6),e._uU(106,"RootCaPath"),e.qZA(),e.TgZ(107,"div",7),e.TgZ(108,"input",33),e.NdJ("ngModelChange",function(i){return _.mqttSink.rootCaPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(109,"div",13),e.TgZ(110,"label",6),e._uU(111,"Advanced Options"),e.qZA(),e.TgZ(112,"div",7),e.TgZ(113,"app-sink-base-properties",34),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(11),e.ekj("is-invalid",!_.mqttSink.server)("is-valid",_.mqttSink.server),e.Q6J("ngModel",_.mqttSink.server),e.xp6(8),e.ekj("is-invalid",!_.mqttSink.topic)("is-valid",_.mqttSink.topic),e.Q6J("ngModel",_.mqttSink.topic),e.xp6(8),e.Q6J("ngModel",_.mqttSink.clientId),e.xp6(5),e.Q6J("ngModel",_.mqttSink.protocolVersion),e.xp6(9),e.Q6J("ngModel",_.mqttSink.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(6),e.Q6J("ngModel",_.mqttSink.username),e.xp6(5),e.Q6J("ngModel",_.mqttSink.password),e.xp6(5),e.Q6J("ngModel",_.mqttSink.retained),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.mqttSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.mqttSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",_.mqttSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",_.mqttSink.certificationPath),e.xp6(5),e.Q6J("ngModel",_.mqttSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",_.mqttSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,s.EJ,s.YN,s.Kr,C],styles:[""]}),o})();var ae=d(2437),se=d(7982),re=d(9549);function le(o,a){1&o&&(e.TgZ(0,"div",21),e._UZ(1,"i",22),e.TgZ(2,"span"),e.SDv(3,23),e.qZA(),e.qZA())}function de(o,a){1&o&&(e.TgZ(0,"div"),e.TgZ(1,"span"),e.SDv(2,32),e.qZA(),e.qZA())}function ge(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"select",37),e.NdJ("change",function(n){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(n)}),e.TgZ(1,"option",38),e._uU(2,"false"),e.qZA(),e.TgZ(3,"option",38),e._uU(4,"true"),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function ce(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"input",39),e.NdJ("change",function(n){return e.CHM(t),e.oxw(4).onValueOfPutParamsChange(n)}),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.MGl("placeholder","valueType: ",t.valueType,"")}}function ue(o,a){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.cmdParametersValueRender()," ")}}function pe(o,a){if(1&o&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",2),e.TgZ(3,"label",33),e.SDv(4,34),e.qZA(),e.TgZ(5,"div",6),e.YNc(6,ge,5,4,"select",35),e.YNc(7,ce,1,3,"ng-template",null,36,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.YNc(9,ue,2,1,"ng-container",30),e.qZA()),2&o){const t=a.$implicit,_=a.last,n=e.MAs(8);e.xp6(3),e.s9C("for",t.resourceName),e.xp6(1),e.pQV(t.resourceName),e.QtT(4),e.xp6(2),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",_)}}function Se(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,de,3,0,"div",30),e.YNc(2,pe,10,5,"div",31),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",0==t.cmdSvcInfo.parametersOfPutCommand.length),e.xp6(1),e.Q6J("ngForOf",t.cmdSvcInfo.parametersOfPutCommand)}}function Ee(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",2),e.TgZ(1,"label",40),e.TgZ(2,"span",4),e.SDv(3,41),e.qZA(),e._UZ(4,"span",42),e.qZA(),e.TgZ(5,"div",6),e.TgZ(6,"select",43),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(2).cmdSvcInfo.pushEventOfGetCmdParamter=n}),e.TgZ(7,"option",44),e._uU(8,"yes"),e.qZA(),e.TgZ(9,"option",45),e._uU(10,"no"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"label",46),e.TgZ(13,"span",4),e.SDv(14,47),e.qZA(),e._UZ(15,"span",48),e.qZA(),e.TgZ(16,"div",6),e.TgZ(17,"select",49),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(2).cmdSvcInfo.returnEventOfGetCmdParamter=n}),e.TgZ(18,"option",44),e._uU(19,"yes"),e.qZA(),e.TgZ(20,"option",45),e._uU(21,"no"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(6),e.Q6J("ngModel",t.cmdSvcInfo.pushEventOfGetCmdParamter),e.xp6(11),e.Q6J("ngModel",t.cmdSvcInfo.returnEventOfGetCmdParamter)}}function me(o,a){if(1&o&&(e.TgZ(0,"div",2),e.TgZ(1,"label",18),e._uU(2,"Parameters"),e.qZA(),e.TgZ(3,"div",6),e.TgZ(4,"div",24),e.TgZ(5,"div",25),e.TgZ(6,"span"),e.SDv(7,26),e.qZA(),e.qZA(),e.TgZ(8,"div",27),e.YNc(9,Se,3,2,"div",28),e.YNc(10,Ee,22,2,"ng-template",null,29,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&o){const t=e.MAs(11),_=e.oxw();e.xp6(9),e.Q6J("ngIf","PUT"==_.cmdSvcInfo.httpMethod)("ngIfElse",t)}}let b=(()=>{class o{constructor(t,_){this.metedataSvc=t,this.cmdSvc=_,this.cmdURLFixedPrefix="/api/v3/device/name/",this.notCommandPathMsgShow=!1,this.deviceName="",this.commandName="",this.parameter={},this._url="",this._httpMethod="",this._requestBodyJSONStr="",this.cmdSvcInfoChange=new e.vpe,this.profileForm=new s.cw({host:new s.NI(""),port:new s.NI(""),path:new s.NI(""),httpMethod:new s.NI(""),pushEventOfGetCmdParamter:new s.NI(""),returnEventOfGetCmdParamter:new s.NI("")}),this.cmdSvcInfo={host:"edgex-core-command",port:59882,path:"",pushEventOfGetCmdParamter:"true",returnEventOfGetCmdParamter:"true",parametersOfPutCommand:[]}}get url(){return this._url}set url(t){this._url=t,this._url&&this.urlParser(t)}get httpMethod(){return this._httpMethod}set httpMethod(t){this._httpMethod=t,this.cmdSvcInfo.httpMethod=this._httpMethod}get requestBodyJSONStr(){return this._requestBodyJSONStr}set requestBodyJSONStr(t){this._requestBodyJSONStr=t}ngOnInit(){}ngAfterViewInit(){this.profileForm.valueChanges.pipe(I(400),q()).subscribe(()=>{this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}),this.renderPopoverComponent()}urlParser(t){let _={};try{_=new URL(t)}catch(n){return void(this.notCommandPathMsgShow=!0)}if(_.pathname.startsWith(this.cmdURLFixedPrefix)){let n=_.pathname.substring(this.cmdURLFixedPrefix.length).split("/");if(2===n.length)return this.deviceName=n[0],this.commandName=n[1],this.getCommandParameterByDeviceAndCommandName(this.deviceName,this.commandName),this.cmdSvcInfo.path=_.pathname,this.cmdSvcInfo.host=_.hostname,this.cmdSvcInfo.port=Number(_.port),this.cmdSvcInfo.pushEventOfGetCmdParamter=_.searchParams.get("ds-pushevent")||"true",void(this.cmdSvcInfo.returnEventOfGetCmdParamter=_.searchParams.get("ds-returnevent")||"true")}this.notCommandPathMsgShow=!0}getCommandParameterByDeviceAndCommandName(t,_){this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(t).subscribe(n=>{n.deviceCoreCommand.coreCommands.forEach(i=>{i.name===_&&(this.cmdSvcInfo.parametersOfPutCommand=i.parameters)})})}cmdParametersValueRender(){let t={};try{t=JSON.parse(this.requestBodyJSONStr)}catch(_){return}for(const[_,n]of Object.entries(t))this.cmdSvcInfo.parametersOfPutCommand.forEach(i=>{i.resourceName===_&&$(`#cmd-param-${_}`).val(n)})}onValueOfPutParamsChange(t){this.cmdSvcInfoChange.emit(this.cmdSvcInfo)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onCmdMethodSelected(t){this.cmdSvcInfo.httpMethod=t,this.cmdSvcInfoChange.emit(this.cmdSvcInfo),setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(t){this.cmdSvcInfo.path=t.path,this.cmdSvcInfo.parametersOfPutCommand=t.parameters}requestBodyAssemble(){let t={};return this.cmdSvcInfo.parametersOfPutCommand.forEach(_=>{!_||!$(`#cmd-param-${_.resourceName}`).val()||""!==$(`#cmd-param-${_.resourceName}`).val().trim()&&(t[_.resourceName]=$(`#cmd-param-${_.resourceName}`).val().trim())}),JSON.stringify(t)}resetPathParameterSuffix(){(-1!==this.cmdSvcInfo.path.indexOf("ds-pushevent")||-1!==this.cmdSvcInfo.path.indexOf("ds-returnevent"))&&(this.cmdSvcInfo.path=this.cmdSvcInfo.path.split("?")[0]),this.cmdSvcInfo.path=`${this.cmdSvcInfo.path}?ds-pushevent=${this.cmdSvcInfo.pushEventOfGetCmdParamter}&ds-returnevent=${this.cmdSvcInfo.returnEventOfGetCmdParamter}`}getHttpMethod(){return this.cmdSvcInfo.httpMethod}getRequestBodyJSONStr(){return this.requestBodyAssemble()}getUrl(){return"GET"===this.cmdSvcInfo.httpMethod&&this.resetPathParameterSuffix(),`http://${this.cmdSvcInfo.host}:${this.cmdSvcInfo.port}${this.cmdSvcInfo.path}`}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(ae.D),e.Y36(se.V))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-command-service-template"]],inputs:{url:"url",httpMethod:"httpMethod",requestBodyJSONStr:"requestBodyJSONStr",cmdSvcInfo:"cmdSvcInfo"},outputs:{cmdSvcInfoChange:"cmdSvcInfoChange"},decls:33,vars:19,consts:function(){let a,t,_,n,i,r,l,S;return a="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",t="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",_=" Invalid command service url, please don't use this template for custom http request, or select one new valid command path if you insist on using the template! ",n="Command Parameters Setting",i="no paramters.",r="" + "\ufffd0\ufffd" + "",l="pushevent",S="returnevent",[["class","alert alert-danger","role","alert",4,"ngIf"],[3,"formGroup"],[1,"form-group","row"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","name","httpMethod","formControlName","httpMethod","readonly","true","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"form-group","row","has-validation"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressHostREST","name","addressHost","formControlName","host","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],a,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","number","id","addressPortREST","name","addressPort","formControlName","port","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],t,["for","addressPath","required","",1,"col-md-2","col-form-label"],[3,"validate","deviceName","commandName","httpMethod","commandPath","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"],_,[1,"card"],[1,"card-header"],n,[1,"card-body"],[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngIf"],[4,"ngFor","ngForOf"],i,[1,"col-md-2","col-form-label",3,"for"],r,["class","custom-select",3,"id","name","change",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name","change"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder","change"],["for","ds-pushevent",1,"col-md-2","col-form-label"],l,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent","formControlName","pushEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],S,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent","formControlName","returnEventOfGetCmdParamter",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(t,_){1&t&&(e.YNc(0,le,4,0,"div",0),e.TgZ(1,"form",1),e.TgZ(2,"div",2),e.TgZ(3,"label",3),e.TgZ(4,"span",4),e._uU(5,"HttpMethod"),e.qZA(),e._UZ(6,"span",5),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.httpMethod=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"label",9),e.TgZ(11,"span",4),e._uU(12,"Host"),e.qZA(),e._UZ(13,"span",10),e.qZA(),e.TgZ(14,"div",6),e.TgZ(15,"input",11),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.host=i}),e.qZA(),e.TgZ(16,"div",12),e.TgZ(17,"small"),e.SDv(18,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",8),e.TgZ(20,"label",14),e._uU(21,"Port"),e.qZA(),e.TgZ(22,"div",6),e.TgZ(23,"input",15),e.NdJ("ngModelChange",function(i){return _.cmdSvcInfo.port=i}),e.qZA(),e.TgZ(24,"div",16),e.TgZ(25,"small"),e.SDv(26,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"label",18),e._uU(29,"Path"),e.qZA(),e.TgZ(30,"div",6),e.TgZ(31,"app-device-core-command-combo-list",19),e.NdJ("cmdMethodEvent",function(i){return _.onCmdMethodSelected(i)})("commandSelectedEvent",function(i){return _.onCommandSelected(i)}),e.qZA(),e.qZA(),e.qZA(),e.YNc(32,me,12,2,"div",20),e.qZA()),2&t&&(e.Q6J("ngIf",_.notCommandPathMsgShow),e.xp6(1),e.Q6J("formGroup",_.profileForm),e.xp6(7),e.Q6J("ngModel",_.cmdSvcInfo.httpMethod),e.xp6(7),e.ekj("is-invalid",!_.cmdSvcInfo.host)("is-valid",_.cmdSvcInfo.host),e.Q6J("ngModel",_.cmdSvcInfo.host),e.xp6(8),e.ekj("is-invalid",!_.cmdSvcInfo.port)("is-valid",_.cmdSvcInfo.port),e.Q6J("ngModel",_.cmdSvcInfo.port),e.xp6(8),e.Q6J("validate",!0)("deviceName",_.deviceName)("commandName",_.commandName)("httpMethod",_.cmdSvcInfo.httpMethod)("commandPath",_.cmdSvcInfo.path),e.xp6(1),e.Q6J("ngIf",_.cmdSvcInfo.path&&_.cmdSvcInfo.httpMethod&&0!==_.cmdSvcInfo.parametersOfPutCommand.length))},directives:[p.O5,s._Y,s.JL,s.sg,s.Fj,s.JJ,s.u,s.Q7,s.wV,re.P,p.sg,s.F,s.YN,s.Kr,s.EJ],styles:[""]}),o})();function Te(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-command-service-template",8),e.NdJ("cmdSvcInfoChange",function(n){return e.CHM(t),e.oxw().onCmdSvcTemplateInfoChange(n)}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(1),e.Q6J("url",t.restSink.url)("httpMethod",t.restSink.method)("requestBodyJSONStr",t.restSink.dataTemplate?t.restSink.dataTemplate:"")}}function Ae(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",51),e.TgZ(2,"div",52),e.TgZ(3,"div",53),e.TgZ(4,"span",54),e._uU(5,"Key"),e.qZA(),e.qZA(),e.TgZ(6,"input",55),e.NdJ("ngModelChange",function(n){return e.CHM(t).$implicit.key=n})("ngModelChange",function(n){return e.CHM(t),e.oxw(2).requestHeaderChange(n)}),e.qZA(),e.qZA(),e.TgZ(7,"div",56),e._UZ(8,"i",57),e.qZA(),e.TgZ(9,"div",58),e.TgZ(10,"div",53),e.TgZ(11,"span",54),e._uU(12,"Value"),e.qZA(),e.qZA(),e.TgZ(13,"input",59),e.NdJ("ngModelChange",function(n){return e.CHM(t).$implicit.value=n})("ngModelChange",function(n){return e.CHM(t),e.oxw(2).requestHeaderChange(n)}),e.qZA(),e.qZA(),e.TgZ(14,"div",60),e.TgZ(15,"button",61),e.NdJ("click",function(){const i=e.CHM(t).index;return e.oxw(2).removeRequestHeader(i)}),e._UZ(16,"i",62),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit;e.xp6(6),e.Q6J("ngModel",t.key),e.xp6(7),e.Q6J("ngModel",t.value)}}function fe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",9),e.TgZ(3,"label",10),e._uU(4,"Method"),e.qZA(),e.TgZ(5,"div",11),e.TgZ(6,"select",12),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.method=n}),e.TgZ(7,"option",13),e._uU(8,"GET"),e.qZA(),e.TgZ(9,"option",14),e._uU(10,"POST"),e.qZA(),e.TgZ(11,"option",15),e._uU(12,"PUT"),e.qZA(),e.TgZ(13,"option",16),e._uU(14,"DELETE"),e.qZA(),e.TgZ(15,"option",17),e._uU(16,"PATCH"),e.qZA(),e.TgZ(17,"option",18),e._uU(18,"HEAD"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",19),e.TgZ(20,"label",10),e._uU(21,"URL"),e.qZA(),e.TgZ(22,"div",11),e.TgZ(23,"input",20),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.url=n}),e.qZA(),e.TgZ(24,"div",21),e.TgZ(25,"small"),e.SDv(26,22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",9),e.TgZ(28,"label",10),e._uU(29,"BodyType"),e.qZA(),e.TgZ(30,"div",11),e.TgZ(31,"select",23),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.bodyType=n}),e.TgZ(32,"option",24),e._uU(33,"none"),e.qZA(),e.TgZ(34,"option",25),e._uU(35,"json"),e.qZA(),e.TgZ(36,"option",26),e._uU(37,"text"),e.qZA(),e.TgZ(38,"option",27),e._uU(39,"html"),e.qZA(),e.TgZ(40,"option",28),e._uU(41,"xml"),e.qZA(),e.TgZ(42,"option",29),e._uU(43,"javascript"),e.qZA(),e.TgZ(44,"option",30),e._uU(45,"form"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",9),e.TgZ(47,"label",10),e._uU(48,"Headers"),e.qZA(),e.TgZ(49,"div",11),e.TgZ(50,"div",0),e.TgZ(51,"div",6),e.TgZ(52,"p",31),e._UZ(53,"span",32),e.TgZ(54,"span",33),e.NdJ("click",function(){return e.CHM(t),e.oxw().addRequestHeader()}),e.SDv(55,34),e.qZA(),e.qZA(),e.YNc(56,Ae,17,2,"div",35),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(57,"div",9),e.TgZ(58,"label",10),e.TgZ(59,"span",36),e._uU(60,"timeout"),e.qZA(),e._UZ(61,"span",37),e.qZA(),e.TgZ(62,"div",11),e.TgZ(63,"input",38),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.timeout=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",9),e.TgZ(65,"label",10),e.TgZ(66,"span",36),e._uU(67,"DebugResp"),e.qZA(),e._UZ(68,"span",39),e.qZA(),e.TgZ(69,"div",11),e.TgZ(70,"select",40),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.debugResp=n}),e.TgZ(71,"option",41),e._uU(72,"false"),e.qZA(),e.TgZ(73,"option",41),e._uU(74,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(75,"div",9),e.TgZ(76,"label",10),e.TgZ(77,"span",36),e._uU(78,"sendSingle"),e.qZA(),e._UZ(79,"span",42),e.qZA(),e.TgZ(80,"div",11),e.TgZ(81,"select",43),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.sendSingle=n}),e.TgZ(82,"option",41),e._uU(83,"false"),e.qZA(),e.TgZ(84,"option",41),e._uU(85,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(86,"div",9),e.TgZ(87,"label",10),e.TgZ(88,"span",36),e._uU(89,"dataTemplate"),e.qZA(),e._UZ(90,"span",44),e.qZA(),e.TgZ(91,"div",11),e.TgZ(92,"input",45),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.dataTemplate=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(93,"div",9),e.TgZ(94,"label",10),e._uU(95,"InsecureSkipVerify"),e.qZA(),e.TgZ(96,"div",11),e.TgZ(97,"select",46),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.insecureSkipVerify=n}),e.TgZ(98,"option",41),e._uU(99,"true"),e.qZA(),e.TgZ(100,"option",41),e._uU(101,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",9),e.TgZ(103,"label",10),e._uU(104,"CertificationPath"),e.qZA(),e.TgZ(105,"div",11),e.TgZ(106,"input",47),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.certificationPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(107,"div",9),e.TgZ(108,"label",10),e._uU(109,"PrivateKeyPath"),e.qZA(),e.TgZ(110,"div",11),e.TgZ(111,"input",48),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.privateKeyPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",9),e.TgZ(113,"label",10),e._uU(114,"RootCaPath"),e.qZA(),e.TgZ(115,"div",11),e.TgZ(116,"input",49),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().restSink.rootCaPath=n}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(117,"div",9),e.TgZ(118,"label",10),e._uU(119,"Advanced Options"),e.qZA(),e.TgZ(120,"div",11),e.TgZ(121,"app-sink-base-properties",50),e.NdJ("sinkBasePropertiesChange",function(n){return e.CHM(t),e.oxw().onSinkBasePropertiesChange(n)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.restSink.method),e.xp6(17),e.ekj("is-invalid",!t.restSink.url)("is-valid",t.restSink.url),e.Q6J("ngModel",t.restSink.url),e.xp6(8),e.Q6J("ngModel",t.restSink.bodyType),e.xp6(25),e.Q6J("ngForOf",t.requestHeaderList),e.xp6(7),e.Q6J("ngModel",t.restSink.timeout),e.xp6(7),e.Q6J("ngModel",t.restSink.debugResp),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",t.restSink.dataTemplate),e.xp6(5),e.Q6J("ngModel",t.restSink.insecureSkipVerify),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",t.restSink.certificationPath),e.xp6(5),e.Q6J("ngModel",t.restSink.privateKeyPath),e.xp6(5),e.Q6J("ngModel",t.restSink.rootCaPath),e.xp6(5),e.Q6J("sinkBaseProperties",t.sinkBaseProperties)}}let he=(()=>{class o{constructor(){this.SVC_TYPE_COMMAND="command",this.SVC_TYPE_CUSTOM="custom",this.templateTypeSelected=this.SVC_TYPE_COMMAND,this.sinkBaseProperties={},this.restSinkChange=new e.vpe,this.requestHeaderList=[],this._restSink={method:"GET",bodyType:"json",debugResp:!1,insecureSkipVerify:!0,timeout:5e3,sendSingle:!1,dataTemplate:""}}get restSink(){return this._restSink}set restSink(t){Object.assign(this._restSink,t)}ngOnInit(){if(Object.assign(this.sinkBaseProperties,this.restSink),this.restSink.headers)for(const[t,_]of Object.entries(this.restSink.headers))this.requestHeaderList.push({key:t,value:_});this.renderPopoverComponent()}ngOnChanges(){this.restSinkChange.emit(this.restSink)}ngAfterViewInit(){}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}templateTypeToggle(t){this.templateTypeSelected=t,window.setTimeout(()=>{this.renderPopoverComponent()},1e3)}requestHeaderChange(t){this.headersResovler()}headersResovler(){let t={};this.requestHeaderList.forEach(_=>{t[`${_.key}`]=`${_.value}`}),this.restSink.headers=t,this.restSinkChange.emit(this.restSink)}addRequestHeader(){this.requestHeaderList.push({key:"",value:""})}removeRequestHeader(t,_){this.requestHeaderList.splice(t,1),this.headersResovler()}onSinkBasePropertiesChange(t){Object.assign(this.restSink,t)}onCmdSvcTemplateInfoChange(t){this.getValuesSettingAllOfCommandTemplate()}getValuesSettingAllOfCommandTemplate(){this.restSink.method=this.cmdSvcTemplate.getHttpMethod(),this.restSink.url=this.cmdSvcTemplate.getUrl(),this.restSink.dataTemplate=this.cmdSvcTemplate.getRequestBodyJSONStr()}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rest-sink"]],viewQuery:function(t,_){if(1&t&&e.Gf(b,5),2&t){let n;e.iGM(n=e.CRH())&&(_.cmdSvcTemplate=n.first)}},inputs:{restSink:"restSink"},outputs:{restSinkChange:"restSinkChange"},features:[e.TTD],decls:17,vars:10,consts:function(){let a,t;return a="the url can't be empty!",t="Add Headers KV",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body"],[4,"ngIf"],[3,"url","httpMethod","requestBodyJSONStr","cmdSvcInfoChange"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"col-sm-9"],["name","method",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],[1,"form-group","row","has-validation"],["type","text","name","url",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],a,["name","bodyType",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","json"],["value","text"],["value","html"],["value","xml"],["value","javascript"],["value","form"],[1,"badge","badge-secondary","font-weight-bold"],[1,"fa","fa-plus-circle","mr-2"],["role","button",1,"user-select-none",3,"click"],t,[4,"ngFor","ngForOf"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The timeout (milliseconds) for a HTTP request, defaults to 5000 ms",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","timeout",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Control if print the response information into the console. If set it to true, then print response; If set to false, then skip print log. The default is false.",1,"fa","fa-question-circle-o","fa-lg"],["name","debugResp",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here be treated as http post or put RequestBody,The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],["name","insecureSkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","certificationPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","privateKeyPath",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","rootCaPath",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"],[1,"form-inline","mb-1"],[1,"input-group","mb-1"],[1,"input-group-prepend"],[1,"input-group-text"],["type","text","name","headerKey",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","mx-2"],[1,"fa","fa-long-arrow-right"],[1,"input-group"],["type","text","name","headerValue",1,"form-control",2,"width","200px","min-width","200px",3,"ngModel","ngModelChange"],[1,"input-group","ml-2"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"REST Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",1),e.TgZ(6,"span",4),e.NdJ("click",function(){return _.templateTypeToggle(_.SVC_TYPE_COMMAND)}),e._UZ(7,"i",5),e.TgZ(8,"span"),e._uU(9,"EdgeXCommandServiceTemplate"),e.qZA(),e.qZA(),e.TgZ(10,"span",4),e.NdJ("click",function(){return _.templateTypeToggle(_.SVC_TYPE_CUSTOM)}),e._UZ(11,"i",5),e.TgZ(12,"span"),e._uU(13,"CustomHttpServiceTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",6),e.YNc(15,Te,2,3,"div",7),e.YNc(16,fe,122,23,"div",7),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.ekj("badge-info",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(3),e.ekj("badge-info",_.templateTypeSelected===_.SVC_TYPE_CUSTOM),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.SVC_TYPE_CUSTOM),e.xp6(4),e.Q6J("ngIf",_.templateTypeSelected===_.SVC_TYPE_COMMAND),e.xp6(1),e.Q6J("ngIf",_.templateTypeSelected===_.SVC_TYPE_CUSTOM))},directives:[p.O5,b,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,p.sg,s.wV,C],styles:[""]}),o})(),Ze=(()=>{class o{constructor(){this.sinkBaseProperties={},this.logSinkChange=new e.vpe,this._logSink={sendSingle:!1}}get logSink(){return this._logSink}set logSink(t){Object.assign(this._logSink,t)}ngOnInit(){Object.assign(this.sinkBaseProperties,this.logSink),this.renderPopoverComponent()}ngOnChanges(){this.logSinkChange.emit(this.logSink)}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onSinkBasePropertiesChange(t){Object.assign(this.logSink,t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-log-sink"]],inputs:{logSink:"logSink"},outputs:{logSinkChange:"logSinkChange"},features:[e.TTD],decls:35,vars:5,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"card-body"],[1,"text-info","mb-2"],[1,"fa","fa-info-circle","mr-1"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The output messages are received as an array. This is indicate whether to send the results one by one. If false, the output message will be {"result":"${the string of received message}"}. For example, {"result":"[{\\"count\\":30},"\\"count\\":20}]"}. Otherwise, the result message will be sent one by one with the actual field name. For the same example as above, it will send {"count":30}, then send {"count":20} to the RESTful endpoint.Default to false.',1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","sendSingle",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","here is treated as mqtt payload, The golang template format string to specify the output data format. The input of the template is the sink message which is always an array of map. If no data template is specified, the raw input will be the data.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","dataTemplate",1,"form-control",3,"ngModel","ngModelChange"],[3,"sinkBaseProperties","sinkBasePropertiesChange"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Log Sink"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"p",5),e._UZ(7,"i",6),e._uU(8," The action is used for print output message into log file, the log file is at $eKuiper_install/log/stream.log by default."),e._UZ(9,"br"),e._uU(10," No properties can be specified for the action. "),e.qZA(),e.TgZ(11,"div",7),e.TgZ(12,"label",8),e.TgZ(13,"span",9),e._uU(14,"sendSingle"),e.qZA(),e._UZ(15,"span",10),e.qZA(),e.TgZ(16,"div",11),e.TgZ(17,"select",12),e.NdJ("ngModelChange",function(i){return _.logSink.sendSingle=i}),e.TgZ(18,"option",13),e._uU(19,"false"),e.qZA(),e.TgZ(20,"option",13),e._uU(21,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",7),e.TgZ(23,"label",8),e.TgZ(24,"span",9),e._uU(25,"dataTemplate"),e.qZA(),e._UZ(26,"span",14),e.qZA(),e.TgZ(27,"div",11),e.TgZ(28,"input",15),e.NdJ("ngModelChange",function(i){return _.logSink.dataTemplate=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"form"),e.TgZ(30,"div",7),e.TgZ(31,"label",8),e._uU(32,"Advanced Options"),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"app-sink-base-properties",16),e.NdJ("sinkBasePropertiesChange",function(i){return _.onSinkBasePropertiesChange(i)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngModel",_.logSink.sendSingle),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.logSink.dataTemplate),e.xp6(6),e.Q6J("sinkBaseProperties",_.sinkBaseProperties))},directives:[s.EJ,s.JJ,s.On,s.YN,s.Kr,s.Fj,s._Y,s.JL,s.F,C],styles:[""]}),o})();function Ce(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"li",9),e.TgZ(1,"span",10),e._uU(2),e.qZA(),e.TgZ(3,"span",11),e.TgZ(4,"span",12),e.NdJ("click",function(){const n=e.CHM(t),i=n.$implicit,r=n.index;return e.oxw(2).editSinkTransfer(i,r)}),e._UZ(5,"i",13),e.qZA(),e.TgZ(6,"span",14),e.NdJ("click",function(){const n=e.CHM(t),i=n.$implicit,r=n.index;return e.oxw(2).deleteSink(i,r)}),e._UZ(7,"i",15),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit,_=a.index,n=e.oxw(2);e.ekj("list-group-item-light",_!==n.selectedSinkIndex)("list-group-item-secondary",_===n.selectedSinkIndex),e.xp6(2),e.Oqu(n.getSinkTypeOfAction(t))}}function Ne(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"p",2),e.TgZ(2,"span",3),e.NdJ("click",function(){return e.CHM(t),e.oxw().addSinkTransfer()}),e._UZ(3,"span",4),e.TgZ(4,"span",5),e.SDv(5,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"ul",7),e.YNc(7,Ce,8,5,"li",8),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(7),e.Q6J("ngForOf",t.ruleActions)}}function Me(o,a){1&o&&(e.TgZ(0,"span",33),e._uU(1,"Edit Sink"),e.qZA())}function ve(o,a){if(1&o&&(e.TgZ(0,"span"),e._UZ(1,"i",32),e.TgZ(2,"span",33),e._uU(3,"Add Sink"),e.qZA(),e.YNc(4,Me,2,0,"span",34),e.qZA()),2&o){const t=e.oxw(2);e.xp6(4),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT)}}function Re(o,a){1&o&&(e.TgZ(0,"span"),e._UZ(1,"i",35),e.TgZ(2,"span",33),e._uU(3,"Edit Sink"),e.qZA(),e.qZA())}function Ue(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).addOneNewSink()}),e._uU(1,"Add"),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function Ie(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).updateSink()}),e._uU(1,"Update"),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.validate())}}function qe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-edgex-sink",37),e.NdJ("edgeXSinkChange",function(n){return e.CHM(t),e.oxw(2).edgeXSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("edgeXSink",t.edgeXSink)}}function be(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-mqtt-sink",38),e.NdJ("mqttSinkChange",function(n){return e.CHM(t),e.oxw(2).mqttSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("mqttSink",t.mqttSink)}}function Ge(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-rest-sink",39),e.NdJ("restSinkChange",function(n){return e.CHM(t),e.oxw(2).restSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("restSink",t.restSink)}}function Le(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-log-sink",40),e.NdJ("logSinkChange",function(n){return e.CHM(t),e.oxw(2).logSink=n}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("logSink",t.logSink)}}function Oe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.YNc(2,ve,5,1,"span",0),e.YNc(3,Re,4,0,"span",0),e.TgZ(4,"span",11),e.YNc(5,Ue,2,1,"button",18),e.YNc(6,Ie,2,1,"button",18),e.TgZ(7,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e._uU(8,"Cancel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",20),e.TgZ(10,"form",21),e.TgZ(11,"div",22),e.TgZ(12,"label",23),e.SDv(13,24),e.qZA(),e.TgZ(14,"div",25),e.TgZ(15,"select",26),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw().selectedSinkType=n}),e.TgZ(16,"option",27),e._uU(17),e.qZA(),e.TgZ(18,"option",27),e._uU(19),e.qZA(),e.TgZ(20,"option",27),e._uU(21),e.qZA(),e.TgZ(22,"option",27),e._uU(23),e.qZA(),e.qZA(),e.TgZ(24,"div",28),e.TgZ(25,"small"),e.SDv(26,29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",30),e.YNc(28,qe,2,1,"div",31),e.YNc(29,be,2,1,"div",31),e.YNc(30,Ge,2,1,"div",31),e.YNc(31,Le,2,1,"div",31),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(2),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_ADD),e.xp6(1),e.Q6J("ngIf",t.sinkAddOrEditOperation===t.sinkOperation_EDIT),e.xp6(9),e.ekj("is-invalid",!t.selectedSinkType),e.Q6J("ngModel",t.selectedSinkType),e.xp6(1),e.s9C("value",t.EdgeX_SINK),e.xp6(1),e.Oqu(t.EdgeX_SINK),e.xp6(1),e.s9C("value",t.MQTT_SINK),e.xp6(1),e.Oqu(t.MQTT_SINK),e.xp6(1),e.s9C("value",t.REST_SINK),e.xp6(1),e.Oqu(t.REST_SINK),e.xp6(1),e.s9C("value",t.LOG_SINK),e.xp6(1),e.Oqu(t.LOG_SINK),e.xp6(4),e.Q6J("ngSwitch",t.selectedSinkType),e.xp6(1),e.Q6J("ngSwitchCase",t.EdgeX_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.MQTT_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.REST_SINK),e.xp6(1),e.Q6J("ngSwitchCase",t.LOG_SINK)}}let G=(()=>{class o{constructor(){this.EdgeX_SINK="edgex",this.MQTT_SINK="mqtt",this.REST_SINK="rest",this.LOG_SINK="log",this.NOP_SINK="nop",this.ruleActionsChange=new e.vpe,this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={},this.selectedSinkIndex=-1,this.selectedSinkType="",this.sinkAddOrEditStatus=!1,this.sinkOperation_ADD="add",this.sinkOperation_EDIT="edit",this.sinkAddOrEditOperation="",this.updateTimestamp="",this._ruleActions=[]}get ruleActions(){return this._ruleActions}set ruleActions(t){!t||(this._ruleActions=t)}ngOnInit(){}ngOnChanges(){this.ruleActionsChange.emit(this.ruleActions)}resetSinksConcreteAll(){this.edgeXSink={},this.mqttSink={},this.restSink={},this.nopSink={},this.logSink={}}getSinkTypeOfAction(t){let _=Object.keys(t);return 0===_.length?"":_[0]}getSinkByType(t){let _={};switch(t){case this.EdgeX_SINK:_.edgex=this.edgeXSink;break;case this.MQTT_SINK:_.mqtt=this.mqttSink;break;case this.REST_SINK:_.rest=this.restSink;break;case this.LOG_SINK:_.log=this.logSink;break;default:_.nop=this.nopSink}return _}sinkConcreteExtractor(t){let _=this.getSinkTypeOfAction(t);switch(this.selectedSinkType=_,_){case this.EdgeX_SINK:this.edgeXSink=t.edgex;break;case this.MQTT_SINK:this.mqttSink=t.mqtt;break;case this.REST_SINK:this.restSink=t.rest;break;case this.LOG_SINK:this.logSink=t.log;break;default:this.nopSink=t.nop}}addSinkTransfer(){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_ADD,this.selectedSinkIndex=-1,this.selectedSinkType="",this.resetSinksConcreteAll()}editSinkTransfer(t,_){this.sinkAddOrEditStatus=!0,this.sinkAddOrEditOperation=this.sinkOperation_EDIT,this.selectedSinkIndex=_,this.sinkConcreteExtractor(t),this.selectedSinkType=this.getSinkTypeOfAction(t)}addOneNewSink(){this.ruleActions.push(this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}updateSink(){this.ruleActions.splice(this.selectedSinkIndex,1,this.getSinkByType(this.selectedSinkType)),this.sinkAddOrEditStatus=!1}deleteSink(t,_){this.ruleActions.splice(_,1),this.selectedSinkIndex=-1}cancel(){this.sinkAddOrEditStatus=!1}validate(){if(!this.selectedSinkType)return!1;switch(this.selectedSinkType){case this.MQTT_SINK:if(!this.mqttSink.server||!this.mqttSink.topic)return!1;break;case this.REST_SINK:if(!this.restSink.url)return!1}return!0}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-sink-list"]],inputs:{ruleActions:"ruleActions"},outputs:{ruleActionsChange:"ruleActionsChange"},features:[e.TTD],decls:2,vars:2,consts:function(){let a,t,_;return a="Add Sink",t="Sink Type",_="please select a valid Sink Type !",[[4,"ngIf"],["class","card",4,"ngIf"],[1,"badge","badge-secondary","font-weight-bold"],[3,"click"],[1,"fa","fa-plus-circle","mr-1"],["role","button",1,"user-select-none"],a,[1,"list-group"],["class","list-group-item list-group-item-action ",3,"list-group-item-light","list-group-item-secondary",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action"],[1,"text-dark","mr-2"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit"],["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash"],[1,"card"],[1,"card-header","p-2"],["class","btn btn-success btn-sm mr-2",3,"disabled","click",4,"ngIf"],[1,"btn","btn-secondary","btn-sm",3,"click"],[1,"card-body"],[1,"mb-2"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],t,[1,"col-sm-9"],["name","SinkType",1,"custom-select",3,"ngModel","ngModelChange"],[3,"value"],["id","validationSinkTypeFeedback",1,"invalid-feedback"],_,[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"fa","fa-plus","mr-2","text-info"],[1,"font-weight-bold"],["class","font-weight-bold",4,"ngIf"],[1,"fa","fa-edit","mr-2","text-info"],[1,"btn","btn-success","btn-sm","mr-2",3,"disabled","click"],[3,"edgeXSink","edgeXSinkChange"],[3,"mqttSink","mqttSinkChange"],[3,"restSink","restSinkChange"],[3,"logSink","logSinkChange"]]},template:function(t,_){1&t&&(e.YNc(0,Ne,8,1,"div",0),e.YNc(1,Oe,32,20,"div",1)),2&t&&(e.Q6J("ngIf",!_.sinkAddOrEditStatus),e.xp6(1),e.Q6J("ngIf",_.sinkAddOrEditStatus))},directives:[p.O5,p.sg,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,p.RF,p.n9,oe,ie,he,Ze],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function ke(o,a){1&o&&e._UZ(0,"i",29)}function Pe(o,a){1&o&&e._UZ(0,"i",30)}let L=(()=>{class o{constructor(){this.collapseToggleStatus=!1,this.ruleOptionsChange=new e.vpe,this._ruleOptions={isEventTime:!1,sendMetaToSink:!1,sendError:!0,qos:0}}get ruleOptions(){return this._ruleOptions}set ruleOptions(t){Object.assign(this._ruleOptions,t)}ngOnInit(){}ngOnChanges(){this.ruleOptionsChange.emit(this.ruleOptions)}collapseToggle(t){this.collapseToggleStatus=!this.collapseToggleStatus}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rule-advanced-options"]],inputs:{ruleOptions:"ruleOptions"},outputs:{ruleOptionsChange:"ruleOptionsChange"},features:[e.TTD],decls:84,vars:19,consts:[[1,"card"],["role","button","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"card-header",3,"click"],[1,"fa","fa-tags","text-primary","mr-2"],[1,"font-weight-bold","text-primary"],[1,"text-primary","ml-2"],["aria-disabled","true","class","fa fa-angle-double-down fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["aria-disabled","true","class","fa fa-angle-double-up fa-lg","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",4,"ngIf"],["id","clllapse-rule-opts",1,"card-body","collapse"],[1,"form-group","row"],[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],[1,"mr-2"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to use event time or processing time as the timestamp for an event. If event time is used, the timestamp will be extracted from the payload. The timestamp filed must be specified by the stream definition.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-sm-9"],["name","isEventTime",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the qos of the stream. The options are 0: At most once; 1: At least once and 2: Exactly once. If qos is bigger than 0, the checkpoint mechanism will be activated to save states periodically so that the rule can be resumed from errors.",1,"fa","fa-question-circle-o","fa-lg"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","When working with event-time windowing, it can happen that elements arrive late. LateTolerance can specify by how much time(unit is millisecond) elements can be late before they are dropped. By default, the value is 0 which means late elements are dropped.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","lateTolerance",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","A rule is processed by several phases of plans according to the sql statement. This option will specify how many instances will be run for each plan. If the value is bigger than 1, the order of the messages may not be retained.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","concurrency",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify how many messages can be buffered in memory for each plan. If the buffered messages exceed the limit, the plan will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit. A bigger value will accommodate more throughput but will also take up more memory footprint.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","bufferLength",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify the time interval in milliseconds to trigger a checkpoint. This is only effective when qos is bigger than 0.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","checkpointInterval",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Specify whether the meta data of an event will be sent to the sink. If true, the sink can get te meta data information.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendMetaToSink",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Whether to send the error to sink. If true, any runtime error will be sent through the whole rule into sinks. Otherwise, the error will only be printed out in the log.",1,"fa","fa-question-circle-o","fa-lg"],["name","sendError",1,"custom-select",3,"ngModel","ngModelChange"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-down","fa-lg"],["aria-disabled","true","data-toggle","collapse","data-target","#clllapse-rule-opts","aria-expanded","false","aria-controls","clllapse-rule-opts",1,"fa","fa-angle-double-up","fa-lg"]],template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.NdJ("click",function(i){return _.collapseToggle(i)}),e._UZ(2,"i",2),e.TgZ(3,"span",3),e._uU(4,"Rule Advanced Options"),e.qZA(),e.TgZ(5,"span",4),e.YNc(6,ke,1,0,"i",5),e.YNc(7,Pe,1,0,"i",6),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span",10),e._uU(13,"IsEventTime"),e.qZA(),e._UZ(14,"span",11),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"select",13),e.NdJ("ngModelChange",function(i){return _.ruleOptions.isEventTime=i}),e.TgZ(17,"option",14),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span",10),e._uU(24,"Qos"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",12),e.TgZ(27,"select",16),e.NdJ("ngModelChange",function(i){return _.ruleOptions.qos=i}),e.TgZ(28,"option",14),e._uU(29,"0"),e.qZA(),e.TgZ(30,"option",14),e._uU(31,"1"),e.qZA(),e.TgZ(32,"option",14),e._uU(33,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",8),e.TgZ(35,"label",9),e.TgZ(36,"span",10),e._uU(37,"LateTolerance"),e.qZA(),e._UZ(38,"span",17),e.qZA(),e.TgZ(39,"div",12),e.TgZ(40,"input",18),e.NdJ("ngModelChange",function(i){return _.ruleOptions.lateTolerance=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",9),e.TgZ(43,"span",10),e._uU(44,"Concurrency"),e.qZA(),e._UZ(45,"span",19),e.qZA(),e.TgZ(46,"div",12),e.TgZ(47,"input",20),e.NdJ("ngModelChange",function(i){return _.ruleOptions.concurrency=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",8),e.TgZ(49,"label",9),e.TgZ(50,"span",10),e._uU(51,"BufferLength"),e.qZA(),e._UZ(52,"span",21),e.qZA(),e.TgZ(53,"div",12),e.TgZ(54,"input",22),e.NdJ("ngModelChange",function(i){return _.ruleOptions.bufferLength=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",8),e.TgZ(56,"label",9),e.TgZ(57,"span",10),e._uU(58,"CheckpointInterval"),e.qZA(),e._UZ(59,"span",23),e.qZA(),e.TgZ(60,"div",12),e.TgZ(61,"input",24),e.NdJ("ngModelChange",function(i){return _.ruleOptions.checkpointInterval=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",8),e.TgZ(63,"label",9),e.TgZ(64,"span",10),e._uU(65,"SendMetaToSink"),e.qZA(),e._UZ(66,"span",25),e.qZA(),e.TgZ(67,"div",12),e.TgZ(68,"select",26),e.NdJ("ngModelChange",function(i){return _.ruleOptions.sendMetaToSink=i}),e.TgZ(69,"option",14),e._uU(70,"false"),e.qZA(),e.TgZ(71,"option",14),e._uU(72,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",8),e.TgZ(74,"label",9),e.TgZ(75,"span",10),e._uU(76,"SendError"),e.qZA(),e._UZ(77,"span",27),e.qZA(),e.TgZ(78,"div",12),e.TgZ(79,"select",28),e.NdJ("ngModelChange",function(i){return _.ruleOptions.sendError=i}),e.TgZ(80,"option",14),e._uU(81,"false"),e.qZA(),e.TgZ(82,"option",14),e._uU(83,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",!_.collapseToggleStatus),e.xp6(1),e.Q6J("ngIf",_.collapseToggleStatus),e.xp6(9),e.Q6J("ngModel",_.ruleOptions.isEventTime),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.qos),e.xp6(1),e.Q6J("ngValue",0),e.xp6(2),e.Q6J("ngValue",1),e.xp6(2),e.Q6J("ngValue",2),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.lateTolerance),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.concurrency),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.bufferLength),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.checkpointInterval),e.xp6(7),e.Q6J("ngModel",_.ruleOptions.sendMetaToSink),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(8),e.Q6J("ngModel",_.ruleOptions.sendError),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[p.O5,s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,s.wV,s.Fj],styles:[""]}),o})();function De(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}function ye(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,43),e.qZA(),e.qZA())}let Je=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}submit(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.addRule(this.rule).subscribe(()=>{this.msgSvc.success("Add rule",`Name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-rules"]],decls:59,vars:18,consts:function(){let a,t,_,n,i,r,l,S,g,u,m;return a="Add Rule",t="\u63D0\u4EA4",_="\u540D\u5B57",n="\u89C4\u5219\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A\uFF01",i="RuleSQL",r="SQL Editor",l="Action",S="Add Action",g="Options",u="SQL can't be empty!",m="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],a,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],n,["for","ruleSql",1,"col-md-2","col-form-label"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],r,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],l,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],S,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u,m]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return _.submit()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(i){return _.rule.id=i}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,De,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,ye,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(i){return _.rule.actions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(i){return _.rule.options=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!_.validate()),e.xp6(12),e.ekj("is-invalid",!_.rule.id)("is-valid",_.rule.id),e.Q6J("ngModel",_.rule.id),e.xp6(11),e.ekj("border",!_.sqlEditor.getValue())("border-danger",!_.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!_.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!_.rule.actions||0===_.rule.actions.length)("border-danger",!_.rule.actions||0===_.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!_.rule.actions||0===_.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",_.rule.actions),e.xp6(7),e.Q6J("ruleOptions",_.rule.options))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,p.O5,G,L],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function xe(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e._uU(3,"SQL can't be empty!"),e.qZA(),e.qZA())}function $e(o,a){1&o&&(e.TgZ(0,"span",40),e._UZ(1,"i",41),e.TgZ(2,"span"),e.SDv(3,42),e.qZA(),e.qZA())}let Xe=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.ruleSql="",this.SQL_CUSTOM_KEYWORDS=["CONCAT","concat"],this.rule={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.ruleID&&this.getRuleByID(t.ruleID)}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),this.renderPopoverComponent()}getRuleByID(t){this.ruleSvc.findRuleById(t).subscribe(_=>{this.rule=_,this.sqlEditor.setValue(this.rule.sql)})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}validate(){return!(!this.rule.id||!this.sqlEditor.getValue()||!this.rule.actions||0===this.rule.actions.length)}update(){this.rule.sql=this.sqlEditor.getValue(),this.ruleSvc.updateRule(this.rule).subscribe(()=>{this.msgSvc.success("update",`name: ${this.rule.id}`),this.router.navigate(["../rules-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edit-rules"]],decls:59,vars:18,consts:function(){let a,t,_,n,i,r,l,S,g,u;return a="Edit Rule",t="Update",_="\u540D\u5B57",n="\u89C4\u5219\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A\uFF01",i="RuleSQL",r="SQL Editor",l="Action",S="Add Action",g="Options",u="at least one rule action required!",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","mr-1","text-danger"],[1,"font-weight-bold"],a,[1,"btn","btn-success","btn-sm","float-right",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"px-5","py-4"],[1,"form-group","row","has-validation"],["for","ruleName",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","The identification of the rule. The rule name cannot be duplicated in the same Kuiper instance.",1,"fa","fa-question-circle-o","fa-lg"],[1,"col-md-10"],["type","text","id","ruleName","name","ruleId",1,"form-control",3,"ngModel","ngModelChange"],["id","ruleName",1,"invalid-feedback"],n,["for","ruleSql",1,"col-md-2","col-form-label"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'The sql query to run for the rule.The Table name must be your stream name.For example "SELECT EdgexStream.temperature, EdgexStream.temp FROM EdgexStream where EdgexStream.temperature > EdgexStream.temp ".',1,"fa","fa-question-circle-o","fa-lg"],[1,"card-header","p-2"],[1,"fa","fa-code","text-info","mr-2","font-weight-bolder"],r,["class","text-danger float-right",4,"ngIf"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["for","ruleActions",1,"col-md-2","col-form-label"],l,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","where the sql result data sent to",1,"fa","fa-question-circle-o","fa-lg"],[1,"fa","fa-plus","mr-2","text-info"],S,[1,"card-body"],[3,"ruleActions","ruleActionsChange"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Advanced Options",1,"fa","fa-question-circle-o","fa-lg"],[3,"ruleOptions","ruleOptionsChange"],[1,"text-danger","float-right"],[1,"fa","fa-warning","mr-2"],u]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"button",5),e.NdJ("click",function(){return _.update()}),e._UZ(6,"i",6),e.TgZ(7,"span"),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"form",9),e.TgZ(11,"div",10),e.TgZ(12,"label",11),e.TgZ(13,"span",12),e.SDv(14,13),e.qZA(),e._UZ(15,"span",14),e.qZA(),e.TgZ(16,"div",15),e.TgZ(17,"input",16),e.NdJ("ngModelChange",function(i){return _.rule.id=i}),e.qZA(),e.TgZ(18,"div",17),e.TgZ(19,"small"),e.SDv(20,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",10),e.TgZ(22,"label",19),e.TgZ(23,"span",12),e.SDv(24,20),e.qZA(),e._UZ(25,"span",21),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"div",0),e.TgZ(28,"div",22),e._UZ(29,"i",23),e.TgZ(30,"span",3),e.SDv(31,24),e.qZA(),e.YNc(32,xe,4,0,"span",25),e.qZA(),e.TgZ(33,"div",26),e.TgZ(34,"span",27),e.TgZ(35,"i",28),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",8),e._UZ(37,"textarea",29),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",10),e.TgZ(39,"label",30),e.TgZ(40,"span",12),e.SDv(41,31),e.qZA(),e._UZ(42,"span",32),e.qZA(),e.TgZ(43,"div",15),e.TgZ(44,"div",0),e.TgZ(45,"div",1),e._UZ(46,"i",33),e.TgZ(47,"span",3),e.SDv(48,34),e.qZA(),e.YNc(49,$e,4,0,"span",25),e.qZA(),e.TgZ(50,"div",35),e.TgZ(51,"app-sink-list",36),e.NdJ("ruleActionsChange",function(i){return _.rule.actions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",10),e.TgZ(53,"label",19),e.TgZ(54,"span",12),e.SDv(55,37),e.qZA(),e._UZ(56,"span",38),e.qZA(),e.TgZ(57,"div",15),e.TgZ(58,"app-rule-advanced-options",39),e.NdJ("ruleOptionsChange",function(i){return _.rule.options=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!_.validate()),e.xp6(12),e.ekj("is-invalid",!_.rule.id)("is-valid",_.rule.id),e.Q6J("ngModel",_.rule.id),e.xp6(11),e.ekj("border",!_.sqlEditor.getValue())("border-danger",!_.sqlEditor.getValue()),e.xp6(4),e.Q6J("ngIf",!_.sqlEditor.getValue()),e.xp6(13),e.ekj("border",!_.rule.actions||0===_.rule.actions.length)("border-danger",!_.rule.actions||0===_.rule.actions.length),e.xp6(4),e.Q6J("ngIf",!_.rule.actions||0===_.rule.actions.length),e.xp6(2),e.Q6J("ruleActions",_.rule.actions),e.xp6(7),e.Q6J("ruleOptions",_.rule.options))},directives:[s._Y,s.JL,s.F,s.Fj,s.JJ,s.On,p.O5,G,L],styles:[""]}),o})(),we=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rules-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),o})();function Be(o,a){1&o&&(e.TgZ(0,"span"),e.TgZ(1,"div",50),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function Qe(o,a){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.status," ")}}function He(o,a){1&o&&(e.TgZ(0,"span"),e.TgZ(1,"div",52),e.TgZ(2,"span",51),e._uU(3,"Loading..."),e.qZA(),e.qZA(),e.TgZ(4,"div",53),e.TgZ(5,"span",51),e._uU(6,"Loading..."),e.qZA(),e.qZA(),e.TgZ(7,"div",54),e.TgZ(8,"span",51),e._uU(9,"Loading..."),e.qZA(),e.qZA(),e.qZA())}function We(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",55),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"start")}),e.SDv(2,56),e.qZA(),e.TgZ(3,"span",57),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"restart")}),e.SDv(4,58),e.qZA(),e.TgZ(5,"span",59),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw().execute(n.id,"stop")}),e.SDv(6,60),e.qZA(),e.qZA()}}function Fe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",24),e.NdJ("click",function(n){const r=e.CHM(t).$implicit;return e.oxw().selectOne(n,r)}),e.qZA(),e.qZA(),e.TgZ(3,"td",46),e._uU(4),e.qZA(),e.TgZ(5,"td"),e.YNc(6,Be,4,0,"span",47),e.YNc(7,Qe,2,1,"span",47),e.qZA(),e.TgZ(8,"td",48),e.TgZ(9,"i",49),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().statusMetrics(i.id)}),e.qZA(),e.qZA(),e.TgZ(10,"td"),e.YNc(11,He,10,0,"span",47),e.YNc(12,We,7,0,"span",47),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit,_=e.oxw();e.ekj("table-active",_.isChecked(t.id)),e.xp6(2),e.Q6J("checked",_.isChecked(t.id)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Q6J("ngIf",_.operationStatus),e.xp6(1),e.Q6J("ngIf",!_.operationStatus),e.xp6(2),e.ekj("text-info",_.statusMetricsRuleID===t.id),e.xp6(2),e.Q6J("ngIf",_.operationStatus),e.xp6(1),e.Q6J("ngIf",!_.operationStatus)}}function Ve(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",61),e.TgZ(1,"div",1),e._UZ(2,"i",62),e.TgZ(3,"span",63),e._uU(4),e.qZA(),e.TgZ(5,"span"),e.SDv(6,64),e.qZA(),e.TgZ(7,"span",65),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return n.statusMetricsRefresh(n.statusMetricsRuleID)}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,66),e.qZA(),e.qZA(),e.TgZ(11,"span",67),e.TgZ(12,"i",68),e.NdJ("click",function(){return e.CHM(t),e.oxw().statusMetricsShowClose()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",69),e.TgZ(14,"pre",70),e._uU(15),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(4),e.Oqu(t.statusMetricsRuleID),e.xp6(11),e.Oqu(t.ruleStatusMetrics)}}let Ke=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.route=n,this.router=i,this.rulesList=[],this.selectedRules=[],this.ruleStatusMetrics="",this.statusMetricsRuleID="",this.operationStatus=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{this.getRulesList()})}getRulesList(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t})}refresh(){this.ruleSvc.allRules().subscribe(t=>{this.rulesList=t,this.msgSvc.success("refresh")})}edit(){this.router.navigate(["../edit-rules"],{relativeTo:this.route,queryParams:{ruleID:this.selectedRules[0].id}})}statusMetrics(t){this.statusMetricsRuleID="",this.ruleStatusMetrics="",this.ruleSvc.getRuleStatusMetricsById(t).subscribe(_=>{let n;this.statusMetricsRuleID=t;try{n=JSON.parse(_)}catch(i){return void(this.ruleStatusMetrics=_)}this.ruleStatusMetrics=JSON.stringify(n,null,3)})}statusMetricsShowClose(){this.statusMetricsRuleID="",this.ruleStatusMetrics=""}statusMetricsRefresh(t){this.statusMetrics(t)}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}delete(){this.selectedRules.forEach((t,_)=>{this.ruleSvc.deleteOneRuleById(t.id).subscribe(()=>{this.selectedRules.splice(_,1),this.rulesList.forEach((n,i)=>{n.id===t.id&&(this.rulesList.splice(i,1),this.msgSvc.success("remove rule ",` Id: ${t.id}`))})})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let t=!0;return this.rulesList&&0===this.rulesList.length&&(t=!1),this.rulesList.forEach(_=>{-1===this.selectedRules.findIndex(n=>n.id===_.id)&&(t=!1)}),t}selectAll(t){this.rulesList.forEach(t.target.checked?n=>{-1===this.selectedRules.findIndex(i=>i.id===n.id)&&this.selectedRules.push(n)}:n=>{let i=this.selectedRules.findIndex(r=>r.id===n.id);-1!==i&&this.selectedRules.splice(i,1)})}isChecked(t){return this.selectedRules.findIndex(_=>_.id===t)>=0}selectOne(t,_){if(t.target.checked)return void this.selectedRules.push(_);let i=this.selectedRules.findIndex(r=>r.id===_.id);-1!==i&&this.selectedRules.splice(i,1)}execute(t,_){this.operationStatus=!0,this.ruleSvc.executeRuleCommand(t,_).subscribe({next:()=>{this.operationStatus=!1,this.msgSvc.success(`${_} ${t}`),this.getRulesList()},error:()=>this.operationStatus=!1})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.gz),e.Y36(c.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rules-list"]],decls:56,vars:5,consts:function(){let a,t,_,n,i,r,l,S,g,u,m,T,k,P,D,y,J,x;return a="\u89C4\u5219\u5217\u8868",t="\u5237\u65B0",_="\u6DFB\u52A0",n="\u7F16\u8F91",i="\u5220\u9664",r="ID",l="\u72B6\u6001",S="Status Metrics",g="Operaion",u="\u8B66\u544A",m="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",T="\u53D6\u6D88",k="\u786E\u8BA4",P="\u542F\u52A8",D="\u91CD\u542F",y="\u505C\u6B62",J="Status Metrics",x="refresh",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],[1,"font-weight-bold"],a,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],t,["type","button","routerLink","../add-rules",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],_,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],r,l,["scope","col",1,"text-center"],S,g,[3,"table-active",4,"ngFor","ngForOf"],["class","card mt-3",4,"ngIf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],u,[1,"modal-body"],m,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],T,["type","button",1,"btn","btn-danger",3,"click"],k,[1,"user-select-all"],[4,"ngIf"],[1,"text-center"],["role","button",1,"fa","fa-line-chart","text-primary",3,"click"],["role","status",1,"spinner-border","spinner-border-sm","text-secondary"],[1,"sr-only"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-success"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-info"],["role","status",1,"spinner-border","spinner-border-sm","mr-1","text-danger"],["role","button",1,"badge","badge-success","mr-1",3,"click"],P,["role","button",1,"badge","badge-info","mr-1",3,"click"],D,["role","button",1,"badge","badge-danger","mr-1",3,"click"],y,[1,"card","mt-3"],[1,"fa","fa-line-chart","mr-2","text-info"],[1,"mr-2","font-weight-bold"],J,["role","button",1,"badge","badge-primary","mx-2",3,"click"],x,["role","button",1,"align-bottom"],[1,"fa","fa-window-close","fa-lg","text-danger","float-right","mt-1",3,"click"],[1,"card-body"],[1,"p-2"]]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"div",6),e.TgZ(7,"button",7),e.NdJ("click",function(){return _.refresh()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.TgZ(11,"button",10),e._UZ(12,"i",11),e.TgZ(13,"span"),e.SDv(14,12),e.qZA(),e.qZA(),e.TgZ(15,"button",13),e.NdJ("click",function(){return _.edit()}),e._UZ(16,"i",14),e.TgZ(17,"span"),e.SDv(18,15),e.qZA(),e.qZA(),e.TgZ(19,"button",16),e.NdJ("click",function(){return _.deleteConfirm()}),e._UZ(20,"i",17),e.TgZ(21,"span"),e.SDv(22,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",19),e.TgZ(24,"div",20),e.TgZ(25,"table",21),e.TgZ(26,"thead",22),e.TgZ(27,"tr"),e.TgZ(28,"th",23),e.TgZ(29,"input",24),e.NdJ("click",function(i){return _.selectAll(i)}),e.qZA(),e.qZA(),e.TgZ(30,"th",23),e.SDv(31,25),e.qZA(),e.TgZ(32,"th",23),e.SDv(33,26),e.qZA(),e.TgZ(34,"th",27),e.SDv(35,28),e.qZA(),e.TgZ(36,"th",23),e.SDv(37,29),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"tbody"),e.YNc(39,Fe,13,10,"tr",30),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(40,Ve,16,2,"div",31),e.TgZ(41,"div",32),e.TgZ(42,"div",33),e.TgZ(43,"div",34),e.TgZ(44,"div",35),e.TgZ(45,"h5",36),e._UZ(46,"i",37),e.TgZ(47,"span"),e.SDv(48,38),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",39),e.SDv(50,40),e.qZA(),e.TgZ(51,"div",41),e.TgZ(52,"button",42),e.SDv(53,43),e.qZA(),e.TgZ(54,"button",44),e.NdJ("click",function(){return _.delete()}),e.SDv(55,45),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(15),e.Q6J("disabled",1!==_.selectedRules.length),e.xp6(4),e.Q6J("disabled",0===_.selectedRules.length),e.xp6(10),e.Q6J("checked",_.isCheckedAll()),e.xp6(10),e.Q6J("ngForOf",_.rulesList),e.xp6(1),e.Q6J("ngIf",_.ruleStatusMetrics&&_.statusMetricsRuleID))},directives:[c.rH,p.sg,p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function Ye(o,a){1&o&&(e.TgZ(0,"div",18),e._UZ(1,"i",19),e.TgZ(2,"span"),e.SDv(3,20),e.qZA(),e.qZA())}let ze=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.EDGEX="edgex",this.CUSTOM="custom",this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.templateTypeSelected=this.EDGEX,this.edgexStreamDataTemplate='CREATE STREAM EdgeXStream () WITH ( FORMAT = "JSON", TYPE = "edgex" )',this.customStreamDataTemplate='CREATE STREAM demo ( field1 bigint, field2 float ) WITH ( DATASOURCE = "", KEY = "", FORMAT = "JSON", CONF_KEY = "", TYPE = "edgex", STRICT_VALIDATION = "true", TIMESTAMP = "", TIMESTAMP_FORMAT = "", RETAIN_SIZE = "0", SHARED = "false" )',this.streamIsNullMsg=!1}ngOnInit(){this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}templateTypeToggle(t){this.templateTypeSelected=t,t===this.EDGEX?this.sqlEditor.setValue(this.edgexStreamDataTemplate):(this.sqlEditor.setValue(this.customStreamDataTemplate),this.formatSql())}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})}),this.sqlEditor.setValue(this.edgexStreamDataTemplate)}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}documentShow(){$("#stream-document").modal("show")}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.addStream(JSON.stringify({sql:t})).subscribe(()=>{this.msgSvc.success("Add Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-stream"]],decls:25,vars:9,consts:function(){let a,t,_;return a="\u6DFB\u52A0\u6570\u636E\u6E90",t="\u63D0\u4EA4",_="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,""],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-3","font-weight-bold"],a,["type","button",1,"btn","btn-success","btn-sm","float-right",3,"click"],[1,"fa","fa-save","mr-1"],t,[1,"card-header"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-square-o","mr-1"],[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],_]},template:function(t,_){1&t&&(e.YNc(0,Ye,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"span",5),e.SDv(6,6),e.qZA(),e.qZA(),e.TgZ(7,"button",7),e.NdJ("click",function(){return _.submit()}),e._UZ(8,"i",8),e.TgZ(9,"span"),e.SDv(10,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",10),e.TgZ(12,"span",11),e.NdJ("click",function(){return _.templateTypeToggle(_.EDGEX)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e._uU(15,"EdgeXStreamTemplate"),e.qZA(),e.qZA(),e.TgZ(16,"span",11),e.NdJ("click",function(){return _.templateTypeToggle(_.CUSTOM)}),e._UZ(17,"i",12),e.TgZ(18,"span"),e._uU(19,"CustomStreamTemplate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",13),e.TgZ(21,"div",14),e.TgZ(22,"span",15),e.TgZ(23,"i",16),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(24,"textarea",17),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",_.streamIsNullMsg),e.xp6(12),e.ekj("badge-info",_.templateTypeSelected===_.EDGEX),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.EDGEX),e.xp6(3),e.ekj("badge-info",_.templateTypeSelected===_.CUSTOM),e.xp6(1),e.ekj("fa-check-square",_.templateTypeSelected===_.CUSTOM))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function je(o,a){1&o&&(e.TgZ(0,"div",16),e._UZ(1,"i",17),e.TgZ(2,"span"),e.SDv(3,18),e.qZA(),e.qZA())}let et=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.router=n,this.route=i,this.SQL_CUSTOM_KEYWORDS=["STREAM","stream"],this.streamName="",this.streamStringFormatObj="",this.streamIsNullMsg=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{t.streamName&&(this.streamName=t.streamName,this.getStreamByNameOrID())}),this.sqlEditorRender(),$(function(){$('[data-toggle="tooltip"]').tooltip()})}getStreamByNameOrID(){this.ruleSvc.findStreamByName(this.streamName).subscribe(t=>{this.streamJSONFormatObj=t,this.dataFormatJSONToStringConvertor(),this.sqlEditor.setValue(this.streamStringFormatObj),this.formatSql()})}dataFormatJSONToStringConvertor(){var t,_,n;if(!this.streamJSONFormatObj)return;let i=[];null===(_=null===(t=this.streamJSONFormatObj)||void 0===t?void 0:t.StreamFields)||void 0===_||_.forEach((l,S)=>{i.push(`${l.Name} ${l.FieldType}`)});let r=[];for(const[l,S]of Object.entries(this.streamJSONFormatObj.Options))r.push(`${l} = "${S}"`);this.streamStringFormatObj=`CREATE STREAM ${null===(n=this.streamJSONFormatObj)||void 0===n?void 0:n.Name} ( ${i.join(", ")} ) WITH ( ${r.join(", ")} )`}sqlEditorRender(){let t=document.getElementById("sql-editor");this.SQL_CUSTOM_KEYWORDS.forEach(_=>{CodeMirror.resolveMode("text/x-pgsql").keywords[_]=!0}),this.sqlEditor=CodeMirror.fromTextArea(t,{mode:"text/x-pgsql",tabSize:4,theme:"gruvbox-dark",lineNumbers:!0,lineWrapping:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autofocus:!0,matchBrackets:!0,styleActiveLine:!0,cursorHeight:.85,hint:CodeMirror.hint.sql}),this.sqlEditor.setSize("auto","500px"),this.sqlEditor.on("drop",(_,n)=>{}),this.sqlEditor.on("paste",(_,n)=>{}),this.sqlEditor.on("keyup",(_,n)=>{n.keyCode>=65&&n.keyCode<=90&&_.showHint({completeSingle:!1})})}formatSql(){let t="";t=this.sqlEditor.getValue(),this.sqlEditor.setValue(sqlFormatter.format(t,{language:"postgresql"}))}submit(){let t=this.sqlEditor.getValue();if(!t.trim())return this.streamIsNullMsg=!0,void window.setTimeout(()=>{this.streamIsNullMsg=!1},2e3);this.ruleSvc.updateStream(JSON.stringify({sql:t}),this.streamName).subscribe(()=>{this.msgSvc.success("Update Stream"),this.router.navigate(["../stream-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.F0),e.Y36(c.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edit-stream"]],decls:19,vars:3,consts:function(){let a,t,_;return a="\u7F16\u8F91\u6570\u636E\u6E90",t="\u63D0\u4EA4",_="Stream can't be empty!",[["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-header","p-2"],[1,"text-danger","font-weight-bold","fa","fa-code","mr-2"],[1,"mr-2"],a,[1,"font-weight-bold"],[1,"float-right"],["type","button",1,"btn","btn-success","btn-sm",3,"disabled","click"],[1,"fa","fa-save","mr-1"],t,[1,"card-body","p-0"],[1,"card-header","bg-secondary","py-2"],[1,"text-light"],["role","button","data-toggle","tooltip","data-placement","top","title","formatter",1,"fa","fa-indent","fa-lg","mr-3",3,"click"],["id","sql-editor","name","sql-editor"],["role","alert",1,"alert","alert-warning"],[1,"fa","fa-warning","mr-2"],_]},template:function(t,_){1&t&&(e.YNc(0,je,4,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"span"),e._UZ(4,"span",3),e.TgZ(5,"span",4),e.SDv(6,5),e.qZA(),e.TgZ(7,"span",6),e._uU(8),e.qZA(),e.qZA(),e.TgZ(9,"span",7),e.TgZ(10,"button",8),e.NdJ("click",function(){return _.submit()}),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e.TgZ(16,"span",13),e.TgZ(17,"i",14),e.NdJ("click",function(){return _.formatSql()}),e.qZA(),e.qZA(),e.qZA(),e._UZ(18,"textarea",15),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",_.streamIsNullMsg),e.xp6(8),e.Oqu(_.streamName),e.xp6(2),e.Q6J("disabled",!_.streamStringFormatObj))},directives:[p.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),tt=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-stream-center"]],decls:1,vars:0,template:function(t,_){1&t&&e._UZ(0,"router-outlet")},directives:[c.lC],styles:[""]}),o})();function _t(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"li",29),e.TgZ(1,"div",30),e.TgZ(2,"div",31),e._UZ(3,"i",32),e.qZA(),e.TgZ(4,"div",33),e.TgZ(5,"div",34),e.TgZ(6,"h5",35),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",36),e.TgZ(10,"span",37),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().edit(i)}),e._UZ(11,"i",38),e.TgZ(12,"span"),e.SDv(13,39),e.qZA(),e.qZA(),e.TgZ(14,"span",40),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw().deleteConfirm(i)}),e._UZ(15,"i",41),e.TgZ(16,"span"),e.SDv(17,42),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=a.$implicit;e.xp6(7),e.Oqu(t)}}let nt=(()=>{class o{constructor(t,_,n,i){this.ruleSvc=t,this.msgSvc=_,this.route=n,this.router=i,this.streamList=[],this.selectedStream=""}ngOnInit(){this.getStreamList()}getStreamList(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t})}refresh(){this.ruleSvc.allStreams().subscribe(t=>{this.streamList=t,this.msgSvc.success("refresh")})}add(){this.router.navigate(["../add-stream"],{relativeTo:this.route})}edit(t){this.router.navigate(["../edit-stream"],{relativeTo:this.route,queryParams:{streamName:t}})}deleteConfirm(t){this.selectedStream=t,$("#deleteConfirmDialog").modal("show")}delete(){$("#deleteConfirmDialog").modal("hide"),this.ruleSvc.deleteOneStreamById(this.selectedStream).subscribe(()=>{this.msgSvc.success("delete",`name: ${this.selectedStream}`),this.streamList.forEach((t,_)=>{t===this.selectedStream&&this.streamList.splice(_,1)})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(A.n),e.Y36(f.e),e.Y36(c.gz),e.Y36(c.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-stream-list"]],decls:33,vars:1,consts:function(){let a,t,_,n,i,r,l,S,g;return a="Stream List",t="\u5237\u65B0",_="\u6DFB\u52A0",n="\u8B66\u544A",i="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",r="\u53D6\u6D88",l="\u786E\u8BA4",S="\u7F16\u8F91",g="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],a,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-refresh","mr-1"],t,[1,"btn","btn-success","btn-sm",3,"click"],[1,"fa","fa-plus-circle","mr-1"],_,[1,"card-body","p-0"],[1,"list-group","p-0","border-0"],["class","list-group-item list-group-item-action list-group-item-light border-top-0 border-left-0 border-right-0",4,"ngFor","ngForOf"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],n,[1,"modal-body"],i,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],r,["type","button",1,"btn","btn-danger",3,"click"],l,[1,"list-group-item","list-group-item-action","list-group-item-light","border-top-0","border-left-0","border-right-0"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"d-inline","mr-3","align-middle","text-dark"],[1,"float-right"],["role","button",1,"badge","badge-info","mr-2",3,"click"],[1,"fa","fa-edit","mr-1"],S,["role","button",1,"badge","badge-danger",3,"click"],[1,"fa","fa-trash","mr-1"],g]},template:function(t,_){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return _.refresh()}),e._UZ(8,"i",7),e.TgZ(9,"span"),e.SDv(10,8),e.qZA(),e.qZA(),e.TgZ(11,"button",9),e.NdJ("click",function(){return _.add()}),e._UZ(12,"i",10),e.TgZ(13,"span"),e.SDv(14,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"ul",13),e.YNc(17,_t,18,1,"li",14),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",15),e.TgZ(19,"div",16),e.TgZ(20,"div",17),e.TgZ(21,"div",18),e.TgZ(22,"h5",19),e._UZ(23,"i",20),e.TgZ(24,"span"),e.SDv(25,21),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",22),e.SDv(27,23),e.qZA(),e.TgZ(28,"div",24),e.TgZ(29,"button",25),e.SDv(30,26),e.qZA(),e.TgZ(31,"button",27),e.NdJ("click",function(){return _.delete()}),e.SDv(32,28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(17),e.Q6J("ngForOf",_.streamList))},directives:[p.sg],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}#addStreamDialog[_ngcontent-%COMP%] #editStreamDialog[_ngcontent-%COMP%]{margin-top:10%}"]}),o})();var ot=d(8253),it=d(1964),at=d(4294),st=d(5894),rt=d(7216);let O=(()=>{class o{constructor(t,_){this.router=t,this.ruleSvc=_}canActivate(t,_){return this.checkAvailable(t,_)}canActivateChild(t,_){return this.canActivate(t,_)}checkAvailable(t,_){return this.ruleSvc.ping().pipe((0,at.q)(1),(0,st.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"rule engine",routerPath:`/${_.url.split("/")[1]}`}})),(0,rt.z)(()=>(0,it.of)(!0)))}}return o.\u0275fac=function(t){return new(t||o)(e.LFG(c.F0),e.LFG(A.n))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const lt=[{path:"",component:X,canActivate:[ot.a,O],canActivateChild:[O],children:[{path:"",redirectTo:"stream-center",pathMatch:"full"},{path:"stream-center",component:tt,children:[{path:"",redirectTo:"stream-list",pathMatch:"full"},{path:"stream-list",component:nt},{path:"add-stream",component:ze},{path:"edit-stream",component:et}]},{path:"rules-center",component:we,children:[{path:"",redirectTo:"rules-list",pathMatch:"full"},{path:"rules-list",component:Ke},{path:"add-rules",component:Je},{path:"edit-rules",component:Xe}]}]}];let dt=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[c.Bz.forChild(lt)],c.Bz]}),o})();var gt=d(6342),ct=d(4010);let ut=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.ez,s.u5,s.UX,dt,gt.Y,ct.MetadataModule]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/489.1d8008a97976d4d683d9.js b/cmd/edgex-ui-server/static/web/zh/489.1d8008a97976d4d683d9.js deleted file mode 100644 index 22c55312..00000000 --- a/cmd/edgex-ui-server/static/web/zh/489.1d8008a97976d4d683d9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[489],{3489:(N,d,r)=>{r.r(d),r.d(d,{CoreDataModule:()=>C});var c=r(8583),s=r(9502),e=r(476);let A=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(_){return new(_||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-core-data"]],decls:21,vars:0,consts:function(){let n,_,a;return n="\u4E00\u4E2A\u4E8B\u4EF6\u8868\u793A\u4E00\u4E2A\u6216\u591A\u4E2A\u4F20\u611F\u5668\u8BFB\u503C\u7684\u96C6\u5408\uFF0C\u4E00\u4E9B\u4F20\u611F\u5668\u8BBE\u5907\u4E00\u6B21\u4E00\u4E2A\u8BFB\u503C\uFF0C\u800C\u6709\u7684\u53EF\u80FD\u4E00\u6B21\u63D0\u4F9B\u591A\u4E2A\u8BFB\u503C\uFF0C\u4F46\u662F\u4E00\u4E2A\u4E8B\u4EF6\u81F3\u5C11\u5E94\u8BE5\u6709\u4E00\u4E2A\u8BFB\u503C\uFF0C\u5728GUI\u4E0A\u64CD\u4F5C\u6570\u636E\u4E2D\u5FC3\u662F\u4E0D\u5408\u7406\u7684\u884C\u4E3A\uFF0C\u6570\u636E\u4E2D\u5FC3\u7684API\u53EA\u80FD\u662F\u5185\u90E8\u6216\u8005\u5916\u90E8\u670D\u52A1\u901A\u4FE1\u4F7F\u7528\uFF0C\u56E0\u6B64\u8FD9\u91CC\u4EC5\u4EC5\u662F\u8BA9\u7528\u6237\u9884\u89C8\u6570\u636E\u6D41",n=e.Zx4(n),_="\u4E8B\u4EF6",a="\u8BFB\u503C",[[1,"card","mb-2"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],[1,"card-body"],n,[1,"card"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./event","routerLinkActive","active",1,"nav-link"],_,["routerLink","./reading","routerLinkActive","active",1,"nav-link"],a]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e._uU(4,"Tips"),e.qZA(),e.qZA(),e.TgZ(5,"div",3),e.tHW(6,4),e._UZ(7,"br"),e._UZ(8,"br"),e._UZ(9,"br"),e.N_p(),e.qZA(),e.qZA(),e.TgZ(10,"div",5),e.TgZ(11,"div",1),e.TgZ(12,"ul",6),e.TgZ(13,"li",7),e.TgZ(14,"a",8),e.SDv(15,9),e.qZA(),e.qZA(),e.TgZ(16,"li",7),e.TgZ(17,"a",10),e.SDv(18,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",3),e._UZ(20,"router-outlet"),e.qZA(),e.qZA())},directives:[s.yS,s.Od,s.lC],styles:[""]}),t})();var i=r(2468);let u=(()=>{class t{constructor(_){this.dataSvc=_,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allEventsPagination(0,5).subscribe(_=>{0!==_.events.length?_.events.forEach((a,o)=>{$("#data-event-stream").prepend('

'+JSON.stringify(a)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return t.\u0275fac=function(_){return new(_||t)(e.Y36(i.D))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-event"]],decls:20,vars:2,consts:function(){let n,_,a;return n="\u4E8B\u4EF6\u6570\u636E\u6D41",_="\u5F00\u59CB",a="\u6682\u505C",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],n,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],_,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],a,[1,"card-body"],["id","data-event-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return a.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return a.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.Q6J("disabled",!a.pauseOperate),e.xp6(5),e.Q6J("disabled",a.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),t})(),E=(()=>{class t{constructor(_){this.dataSvc=_,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allReadingsPagination(0,5).subscribe(_=>{0!==_.readings.length?_.readings.forEach((a,o)=>{$("#data-reading-stream").prepend('

'+JSON.stringify(a)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return t.\u0275fac=function(_){return new(_||t)(e.Y36(i.D))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-reading"]],decls:20,vars:2,consts:function(){let n,_,a;return n="\u8BFB\u503C\u6570\u636E\u6D41",_="\u5F00\u59CB",a="\u6682\u505C",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],n,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],_,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],a,[1,"card-body"],["id","data-reading-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return a.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return a.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.Q6J("disabled",!a.pauseOperate),e.xp6(5),e.Q6J("disabled",a.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),t})();var p=r(8253),g=r(1964),F=r(4294),f=r(5894),D=r(7216);let l=(()=>{class t{constructor(_,a){this.router=_,this.dataSvc=a}canActivate(_,a){return this.checkAvailable(_,a)}canActivateChild(_,a){return this.canActivate(_,a)}checkAvailable(_,a){return this.dataSvc.ping().pipe((0,F.q)(1),(0,f.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"core data",routerPath:`/${a.url.split("/")[1]}`}})),(0,D.z)(()=>(0,g.of)(!0)))}}return t.\u0275fac=function(_){return new(_||t)(e.LFG(s.F0),e.LFG(i.D))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const T=[{path:"",component:A,canActivate:[p.a,l],canActivateChild:[l],children:[{path:"",redirectTo:"event",pathMatch:"full"},{path:"event",component:u},{path:"reading",component:E}]}];let v=(()=>{class t{}return t.\u0275fac=function(_){return new(_||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.Bz.forChild(T)],s.Bz]}),t})(),C=(()=>{class t{}return t.\u0275fac=function(_){return new(_||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.ez,v]]}),t})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/489.4065c1dc2d3b3b501684.js b/cmd/edgex-ui-server/static/web/zh/489.4065c1dc2d3b3b501684.js deleted file mode 100644 index 22c55312..00000000 --- a/cmd/edgex-ui-server/static/web/zh/489.4065c1dc2d3b3b501684.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[489],{3489:(N,d,r)=>{r.r(d),r.d(d,{CoreDataModule:()=>C});var c=r(8583),s=r(9502),e=r(476);let A=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(_){return new(_||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-core-data"]],decls:21,vars:0,consts:function(){let n,_,a;return n="\u4E00\u4E2A\u4E8B\u4EF6\u8868\u793A\u4E00\u4E2A\u6216\u591A\u4E2A\u4F20\u611F\u5668\u8BFB\u503C\u7684\u96C6\u5408\uFF0C\u4E00\u4E9B\u4F20\u611F\u5668\u8BBE\u5907\u4E00\u6B21\u4E00\u4E2A\u8BFB\u503C\uFF0C\u800C\u6709\u7684\u53EF\u80FD\u4E00\u6B21\u63D0\u4F9B\u591A\u4E2A\u8BFB\u503C\uFF0C\u4F46\u662F\u4E00\u4E2A\u4E8B\u4EF6\u81F3\u5C11\u5E94\u8BE5\u6709\u4E00\u4E2A\u8BFB\u503C\uFF0C\u5728GUI\u4E0A\u64CD\u4F5C\u6570\u636E\u4E2D\u5FC3\u662F\u4E0D\u5408\u7406\u7684\u884C\u4E3A\uFF0C\u6570\u636E\u4E2D\u5FC3\u7684API\u53EA\u80FD\u662F\u5185\u90E8\u6216\u8005\u5916\u90E8\u670D\u52A1\u901A\u4FE1\u4F7F\u7528\uFF0C\u56E0\u6B64\u8FD9\u91CC\u4EC5\u4EC5\u662F\u8BA9\u7528\u6237\u9884\u89C8\u6570\u636E\u6D41",n=e.Zx4(n),_="\u4E8B\u4EF6",a="\u8BFB\u503C",[[1,"card","mb-2"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],[1,"card-body"],n,[1,"card"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./event","routerLinkActive","active",1,"nav-link"],_,["routerLink","./reading","routerLinkActive","active",1,"nav-link"],a]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e._uU(4,"Tips"),e.qZA(),e.qZA(),e.TgZ(5,"div",3),e.tHW(6,4),e._UZ(7,"br"),e._UZ(8,"br"),e._UZ(9,"br"),e.N_p(),e.qZA(),e.qZA(),e.TgZ(10,"div",5),e.TgZ(11,"div",1),e.TgZ(12,"ul",6),e.TgZ(13,"li",7),e.TgZ(14,"a",8),e.SDv(15,9),e.qZA(),e.qZA(),e.TgZ(16,"li",7),e.TgZ(17,"a",10),e.SDv(18,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",3),e._UZ(20,"router-outlet"),e.qZA(),e.qZA())},directives:[s.yS,s.Od,s.lC],styles:[""]}),t})();var i=r(2468);let u=(()=>{class t{constructor(_){this.dataSvc=_,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allEventsPagination(0,5).subscribe(_=>{0!==_.events.length?_.events.forEach((a,o)=>{$("#data-event-stream").prepend('

'+JSON.stringify(a)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return t.\u0275fac=function(_){return new(_||t)(e.Y36(i.D))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-event"]],decls:20,vars:2,consts:function(){let n,_,a;return n="\u4E8B\u4EF6\u6570\u636E\u6D41",_="\u5F00\u59CB",a="\u6682\u505C",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],n,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],_,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],a,[1,"card-body"],["id","data-event-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return a.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return a.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.Q6J("disabled",!a.pauseOperate),e.xp6(5),e.Q6J("disabled",a.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),t})(),E=(()=>{class t{constructor(_){this.dataSvc=_,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allReadingsPagination(0,5).subscribe(_=>{0!==_.readings.length?_.readings.forEach((a,o)=>{$("#data-reading-stream").prepend('

'+JSON.stringify(a)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return t.\u0275fac=function(_){return new(_||t)(e.Y36(i.D))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-reading"]],decls:20,vars:2,consts:function(){let n,_,a;return n="\u8BFB\u503C\u6570\u636E\u6D41",_="\u5F00\u59CB",a="\u6682\u505C",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],n,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],_,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],a,[1,"card-body"],["id","data-reading-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(_,a){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return a.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return a.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.Q6J("disabled",!a.pauseOperate),e.xp6(5),e.Q6J("disabled",a.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),t})();var p=r(8253),g=r(1964),F=r(4294),f=r(5894),D=r(7216);let l=(()=>{class t{constructor(_,a){this.router=_,this.dataSvc=a}canActivate(_,a){return this.checkAvailable(_,a)}canActivateChild(_,a){return this.canActivate(_,a)}checkAvailable(_,a){return this.dataSvc.ping().pipe((0,F.q)(1),(0,f.K)(o=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"core data",routerPath:`/${a.url.split("/")[1]}`}})),(0,D.z)(()=>(0,g.of)(!0)))}}return t.\u0275fac=function(_){return new(_||t)(e.LFG(s.F0),e.LFG(i.D))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const T=[{path:"",component:A,canActivate:[p.a,l],canActivateChild:[l],children:[{path:"",redirectTo:"event",pathMatch:"full"},{path:"event",component:u},{path:"reading",component:E}]}];let v=(()=>{class t{}return t.\u0275fac=function(_){return new(_||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.Bz.forChild(T)],s.Bz]}),t})(),C=(()=>{class t{}return t.\u0275fac=function(_){return new(_||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.ez,v]]}),t})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/489.8656f68beb54ecacddb5.js b/cmd/edgex-ui-server/static/web/zh/489.8656f68beb54ecacddb5.js new file mode 100644 index 00000000..666e9582 --- /dev/null +++ b/cmd/edgex-ui-server/static/web/zh/489.8656f68beb54ecacddb5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[489],{3489:(h,l,s)=>{s.r(l),s.d(l,{CoreDataModule:()=>D});var u=s(8583),i=s(9502),e=s(476);let _=(()=>{class a{constructor(){}ngOnInit(){}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-core-data"]],decls:21,vars:0,consts:function(){let o,t,n;return o="\u4E00\u4E2A\u4E8B\u4EF6\u8868\u793A\u4E00\u4E2A\u6216\u591A\u4E2A\u4F20\u611F\u5668\u8BFB\u503C\u7684\u96C6\u5408\uFF0C\u4E00\u4E9B\u4F20\u611F\u5668\u8BBE\u5907\u4E00\u6B21\u4E00\u4E2A\u8BFB\u503C\uFF0C\u800C\u6709\u7684\u53EF\u80FD\u4E00\u6B21\u63D0\u4F9B\u591A\u4E2A\u8BFB\u503C\uFF0C\u4F46\u662F\u4E00\u4E2A\u4E8B\u4EF6\u81F3\u5C11\u5E94\u8BE5\u6709\u4E00\u4E2A\u8BFB\u503C\uFF0C\u5728GUI\u4E0A\u64CD\u4F5C\u6570\u636E\u4E2D\u5FC3\u662F\u4E0D\u5408\u7406\u7684\u884C\u4E3A\uFF0C\u6570\u636E\u4E2D\u5FC3\u7684API\u53EA\u80FD\u662F\u5185\u90E8\u6216\u8005\u5916\u90E8\u670D\u52A1\u901A\u4FE1\u4F7F\u7528\uFF0C\u56E0\u6B64\u8FD9\u91CC\u4EC5\u4EC5\u662F\u8BA9\u7528\u6237\u9884\u89C8\u6570\u636E\u6D41",o=e.Zx4(o),t="\u4E8B\u4EF6",n="\u8BFB\u503C",[[1,"card","mb-2"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],[1,"card-body"],o,[1,"card"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./event","routerLinkActive","active",1,"nav-link"],t,["routerLink","./reading","routerLinkActive","active",1,"nav-link"],n]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e._uU(4,"Tips"),e.qZA(),e.qZA(),e.TgZ(5,"div",3),e.tHW(6,4),e._UZ(7,"br"),e._UZ(8,"br"),e._UZ(9,"br"),e.N_p(),e.qZA(),e.qZA(),e.TgZ(10,"div",5),e.TgZ(11,"div",1),e.TgZ(12,"ul",6),e.TgZ(13,"li",7),e.TgZ(14,"a",8),e.SDv(15,9),e.qZA(),e.qZA(),e.TgZ(16,"li",7),e.TgZ(17,"a",10),e.SDv(18,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",3),e._UZ(20,"router-outlet"),e.qZA(),e.qZA())},directives:[i.yS,i.Od,i.lC],styles:[""]}),a})();var d=s(2468);let p=(()=>{class a{constructor(t){this.dataSvc=t,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allEventsPagination(0,5).subscribe(t=>{0!==t.events.length?t.events.forEach((n,r)=>{$("#data-event-stream").prepend('

'+JSON.stringify(n)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(d.D))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-event"]],decls:20,vars:2,consts:function(){let o,t,n;return o="\u4E8B\u4EF6\u6570\u636E\u6D41",t="\u5F00\u59CB",n="\u6682\u505C",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],o,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],t,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],n,[1,"card-body"],["id","data-event-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return n.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return n.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("disabled",!n.pauseOperate),e.xp6(5),e.Q6J("disabled",n.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),a})(),g=(()=>{class a{constructor(t){this.dataSvc=t,this.pauseOperate=!0}ngOnInit(){}feedEvents(){this.feedInterval=setInterval(()=>{this.dataSvc.allReadingsPagination(0,5).subscribe(t=>{0!==t.readings.length?t.readings.forEach((n,r)=>{$("#data-reading-stream").prepend('

'+JSON.stringify(n)+"

")}):$("#data-event-stream").prepend('

no data stream available, please confirm whether there is at least one device to collect data

')})},3e3)}start(){this.pauseOperate=!1,this.feedEvents()}pause(){this.pauseOperate=!0,window.clearInterval(this.feedInterval)}operateToggle(){this.pauseOperate=!this.pauseOperate}ngOnDestroy(){window.clearInterval(this.feedInterval)}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(d.D))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-reading"]],decls:20,vars:2,consts:function(){let o,t,n;return o="\u8BFB\u503C\u6570\u636E\u6D41",t="\u5F00\u59CB",n="\u6682\u505C",[[1,"card"],[1,"card-header"],[1,"font-weight-bold"],[1,"fa","fa-area-chart","mr-2","text-danger"],[1,"text-secondary"],o,[1,"card-header","p-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-play","mr-1"],t,["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"fa","fa-pause","mr-1"],n,[1,"card-body"],["id","data-reading-stream",1,"w-100","overflow-auto",2,"height","350px"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.TgZ(8,"button",8),e.NdJ("click",function(){return n.start()}),e.TgZ(9,"span"),e._UZ(10,"i",9),e.TgZ(11,"span"),e.SDv(12,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return n.pause()}),e.TgZ(14,"span"),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"pre",15),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("disabled",!n.pauseOperate),e.xp6(5),e.Q6J("disabled",n.pauseOperate))},styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),a})();var A=s(8253),F=s(1964),f=s(4294),T=s(5894),v=s(7216);let c=(()=>{class a{constructor(t,n){this.router=t,this.dataSvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.dataSvc.ping().pipe((0,f.q)(1),(0,T.K)(r=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"core data",routerPath:`/${n.url.split("/")[1]}`}})),(0,v.z)(()=>(0,F.of)(!0)))}}return a.\u0275fac=function(t){return new(t||a)(e.LFG(i.F0),e.LFG(d.D))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const E=[{path:"",component:_,canActivate:[A.a,c],canActivateChild:[c],children:[{path:"",redirectTo:"event",pathMatch:"full"},{path:"event",component:p},{path:"reading",component:g}]}];let C=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[i.Bz.forChild(E)],i.Bz]}),a})(),D=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[u.ez,C]]}),a})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/536.1c48ef705d3c1d565d49.js b/cmd/edgex-ui-server/static/web/zh/536.1c48ef705d3c1d565d49.js new file mode 100644 index 00000000..0da507d1 --- /dev/null +++ b/cmd/edgex-ui-server/static/web/zh/536.1c48ef705d3c1d565d49.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[536],{5886:(Ee,b,g)=>{g.r(b),g.d(b,{SchedulerModule:()=>dt});var I=g(8583),l=g(3092),s=g(9502),e=g(476);let q=(()=>{class _{constructor(){}ngOnInit(){}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-scheduler"]],decls:13,vars:0,consts:function(){let a,t;return a="\u5355\u4F4D\u95F4\u9694",t="Interval\u4EFB\u52A1",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./interval-center","routerLinkActive","active",1,"nav-link"],a,["routerLink","./interval-action-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.TgZ(5,"span"),e.SDv(6,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"li",3),e.TgZ(8,"a",6),e.TgZ(9,"span"),e.SDv(10,7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",8),e._UZ(12,"router-outlet"),e.qZA(),e.qZA())},directives:[s.yS,s.Od,s.lC],styles:[""]}),_})(),D=(()=>{class _{constructor(){}ngOnInit(){}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-interval-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[s.lC],styles:[""]}),_})();var h=g(8391),T=g(7822),p=g(4889);function u(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",50),e.TgZ(1,"div",51),e.TgZ(2,"button",52),e.NdJ("click",function(){return e.CHM(t),e.oxw().refresh()}),e.TgZ(3,"span"),e._UZ(4,"i",53),e.TgZ(5,"span"),e.SDv(6,54),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"button",55),e.TgZ(8,"span"),e._UZ(9,"i",56),e.TgZ(10,"span"),e.SDv(11,57),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"button",58),e.NdJ("click",function(){return e.CHM(t),e.oxw().edit()}),e.TgZ(13,"span"),e._UZ(14,"i",59),e.TgZ(15,"span"),e.SDv(16,60),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"button",61),e.NdJ("click",function(){return e.CHM(t),e.oxw().deleteConfirm()}),e.TgZ(18,"span"),e._UZ(19,"i",62),e.TgZ(20,"span"),e.SDv(21,63),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(12),e.Q6J("disabled",1!==t.intervalSelected.length),e.xp6(5),e.Q6J("disabled",0===t.intervalSelected.length)}}function O(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"input",64),e.NdJ("click",function(i){return e.CHM(t),e.oxw().selectAll(i)}),e.qZA()}if(2&_){const t=e.oxw();e.Q6J("checked",t.isCheckedAll())}}function V(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",64),e.NdJ("click",function(i){const r=e.CHM(t).$implicit;return e.oxw().selectOne(i,r)}),e.qZA(),e.qZA(),e.TgZ(3,"td",65),e._uU(4),e.qZA(),e.TgZ(5,"td",65),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.ekj("table-active",n.isChecked(t.name)),e.xp6(2),e.Q6J("checked",n.isChecked(t.name)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.start),e.xp6(2),e.Oqu(t.end),e.xp6(2),e.Oqu(t.interval),e.xp6(2),e.Oqu(!!t.runOnce)}}let y=(()=>{class _{constructor(t,n,i,o,r){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.errSvc=r,this.enableSelectAll=!0,this.singleIntervalSelectedEvent=new e.vpe,this.toolbars=!0,this.intervalList=[],this.intervalSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(t=>{t.intervalName?this.schedulerSvc.findIntervalByName(t.intervalName).subscribe(n=>{this.intervalList=[],this.intervalList.push(n.interval)}):this.findIntervalsPagination()})}refresh(){this.schedulerSvc.findAllIntervalsPagination(0,this.pageLimit).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.intervalList=t.intervals,this.msgSvc.success("refresh"),this.resetPagination())})}findIntervalsPagination(){this.schedulerSvc.findAllIntervalsPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.intervalList=t.intervals)})}onSingleIntervalSelectedEmitter(){this.singleIntervalSelectedEvent.emit(this.singleIntervalSelected)}isSingleChecked(t){var n;return(null===(n=this.singleIntervalSelected)||void 0===n?void 0:n.name)===t}selectSingleInterval(t,n){t.target.checked?this.intervalList.forEach(o=>{o.name===n&&(this.singleIntervalSelected=o)}):this.singleIntervalSelected={},this.onSingleIntervalSelectedEmitter()}isCheckedAll(){let t=!0;return this.intervalList&&0===this.intervalList.length&&(t=!1),this.intervalList.forEach(n=>{-1===this.intervalSelected.findIndex(i=>i.name===n.name)&&(t=!1)}),t}selectAll(t){this.intervalList.forEach(t.target.checked?i=>{-1===this.intervalSelected.findIndex(o=>o.name===i.name)&&this.intervalSelected.push(i)}:i=>{let o=this.intervalSelected.findIndex(r=>r.name===i.name);-1!==o&&this.intervalSelected.splice(o,1)})}isChecked(t){return this.enableSelectAll?this.intervalSelected.findIndex(n=>n.name===t)>=0:this.isSingleChecked(t)}selectOne(t,n){if(!this.enableSelectAll)return void this.selectSingleInterval(t,n.name);if(t.target.checked)return void this.intervalSelected.push(n);let o=this.intervalSelected.findIndex(r=>r.name===n.name);-1!==o&&this.intervalSelected.splice(o,1)}edit(){this.router.navigate(["../edit-interval"],{relativeTo:this.route,queryParams:{intervalName:this.intervalSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervals(){this.intervalSelected.forEach((t,n)=>{this.schedulerSvc.deleteIntervalByName(t.name).subscribe(i=>{this.errSvc.handleErrorForAPI(i)||(this.intervalSelected.splice(n,1),this.intervalList.forEach((o,r)=>{o.name!==t.name||this.intervalList.splice(r,1)}),this.msgSvc.success("delete",`name: ${t.name}`),this.resetPagination(),this.findIntervalsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalsPagination()}prePage(){this.setPagination(-1),this.findIntervalsPagination()}nextPage(){this.setPagination(1),this.findIntervalsPagination()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0),e.Y36(p.T))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-interval-list"]],inputs:{enableSelectAll:"enableSelectAll",toolbars:"toolbars",singleIntervalSelected:"singleIntervalSelected"},outputs:{singleIntervalSelectedEvent:"singleIntervalSelectedEvent"},decls:66,vars:6,consts:function(){let a,t,n,i,o,r,N,A,v,m,f,S,R,Z,L,M,c,E;return a="Interval \u5217\u8868",t="ID",n="\u540D\u5B57",i="\u5F00\u59CB",o="\u7ED3\u675F\u65F6\u95F4",r="\u5355\u4F4D\u95F4\u9694",N="\u6267\u884C\u5355\u6B21",A="\u6BCF\u9875\u6761\u76EE",v="\u4E0A\u4E00\u9875",m="\u4E0B\u4E00\u9875",f="\u8B66\u544A",S="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",R="\u53D6\u6D88",Z="\u786E\u8BA4",L="\u5237\u65B0",M="\u6DFB\u52A0",c="\u7F16\u8F91",E="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger"],a,[1,"card-body","p-0","position-relative"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],t,n,i,o,r,N,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],A,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],v,[1,"page-item"],m,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],f,[1,"modal-body"],S,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],R,["type","button",1,"btn","btn-danger",3,"click"],Z,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],L,["type","button","routerLink","../add-interval",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],M,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],c,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],E,["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.YNc(6,u,22,2,"div",5),e.TgZ(7,"div",6),e.TgZ(8,"table",7),e.TgZ(9,"thead",8),e.TgZ(10,"tr"),e.TgZ(11,"th",9),e.YNc(12,O,1,1,"input",10),e.qZA(),e.TgZ(13,"th",9),e.SDv(14,11),e.qZA(),e.TgZ(15,"th",9),e.SDv(16,12),e.qZA(),e.TgZ(17,"th",9),e.SDv(18,13),e.qZA(),e.TgZ(19,"th",9),e.SDv(20,14),e.qZA(),e.TgZ(21,"th",9),e.SDv(22,15),e.qZA(),e.TgZ(23,"th",9),e.SDv(24,16),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"tbody"),e.YNc(26,V,15,9,"tr",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",18),e.TgZ(28,"nav",19),e.TgZ(29,"ul",20),e.TgZ(30,"li",21),e.TgZ(31,"span",22),e.SDv(32,23),e.qZA(),e.qZA(),e.TgZ(33,"li",24),e.TgZ(34,"select",25),e.NdJ("ngModelChange",function(o){return n.pageLimit=o})("ngModelChange",function(){return n.onPageSelected()}),e.TgZ(35,"option",26),e._uU(36,"5"),e.qZA(),e.TgZ(37,"option",27),e._uU(38,"10"),e.qZA(),e.TgZ(39,"option",28),e._uU(40,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"li",29),e.TgZ(42,"button",30),e.NdJ("click",function(){return n.prePage()}),e._UZ(43,"i",31),e.TgZ(44,"span"),e.SDv(45,32),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"li",33),e.TgZ(47,"button",30),e.NdJ("click",function(){return n.nextPage()}),e.TgZ(48,"span"),e.SDv(49,34),e.qZA(),e._UZ(50,"i",35),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",36),e.TgZ(52,"div",37),e.TgZ(53,"div",38),e.TgZ(54,"div",39),e.TgZ(55,"h5",40),e._UZ(56,"i",41),e.TgZ(57,"span"),e.SDv(58,42),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",43),e.SDv(60,44),e.qZA(),e.TgZ(61,"div",45),e.TgZ(62,"button",46),e.SDv(63,47),e.qZA(),e.TgZ(64,"button",48),e.NdJ("click",function(){return n.deleteIntervals()}),e.SDv(65,49),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",n.toolbars),e.xp6(6),e.Q6J("ngIf",n.enableSelectAll),e.xp6(14),e.Q6J("ngForOf",n.intervalList),e.xp6(8),e.Q6J("ngModel",n.pageLimit),e.xp6(8),e.Q6J("disabled",1===n.pagination),e.xp6(5),e.Q6J("disabled",n.pageLimit>n.intervalList.length))},directives:[I.O5,I.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,s.rH],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),_})();var P=g(9827);let Ce=(()=>{class _{constructor(t,n,i,o,r){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.errSvc=r,this.interval={}}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,P.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,P.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}submit(){this.schedulerSvc.addInterval(this.interval).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("create new interval",`name: ${this.interval.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0),e.Y36(p.T))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-add-interval"]],decls:54,vars:16,consts:function(){let a,t,n,i,o,r,N;return a="\u6DFB\u52A0 Interval",t="\u63D0\u4EA4",n="\u540D\u5B57",i="\u5F00\u59CB",o="\u7ED3\u675F\u65F6\u95F4",r="\u5355\u4F4D\u95F4\u9694",N="\u6267\u884C\u5355\u6B21",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],t,[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],n,[1,"col-md-10"],["type","text","id","validationIntervalName","name","intervalName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],i,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd",1,"col-md-2","col-form-label"],o,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],N,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return n.submit()}),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"form"),e.TgZ(9,"div",7),e.TgZ(10,"label",8),e.SDv(11,9),e.qZA(),e.TgZ(12,"div",10),e.TgZ(13,"input",11),e.NdJ("ngModelChange",function(o){return n.interval.name=o}),e.qZA(),e.TgZ(14,"div",12),e.TgZ(15,"small"),e._uU(16,"the interval name can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",13),e.TgZ(18,"label",14),e.SDv(19,15),e.qZA(),e.TgZ(20,"div",10),e.TgZ(21,"div",16),e.TgZ(22,"div",17),e.TgZ(23,"span",18),e._UZ(24,"i",19),e.qZA(),e.qZA(),e.TgZ(25,"input",20),e.NdJ("ngModelChange",function(o){return n.interval.start=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",13),e.TgZ(27,"label",21),e.SDv(28,22),e.qZA(),e.TgZ(29,"div",10),e.TgZ(30,"div",16),e.TgZ(31,"div",17),e.TgZ(32,"span",18),e._UZ(33,"i",19),e.qZA(),e.qZA(),e.TgZ(34,"input",23),e.NdJ("ngModelChange",function(o){return n.interval.end=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",13),e.TgZ(36,"label",24),e.TgZ(37,"span",25),e.SDv(38,26),e.qZA(),e._UZ(39,"span",27),e.qZA(),e.TgZ(40,"div",10),e.TgZ(41,"input",28),e.NdJ("ngModelChange",function(o){return n.interval.interval=o}),e.qZA(),e.TgZ(42,"div",29),e.TgZ(43,"small"),e._uU(44,"the interval interval can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(45,"div",13),e.TgZ(46,"label",30),e.SDv(47,31),e.qZA(),e.TgZ(48,"div",10),e.TgZ(49,"select",32),e.NdJ("ngModelChange",function(o){return n.interval.runOnce=o}),e.TgZ(50,"option",33),e._uU(51,"false"),e.qZA(),e.TgZ(52,"option",33),e._uU(53,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!n.interval.name||!n.interval.interval),e.xp6(8),e.ekj("is-invalid",!n.interval.name)("is-valid",n.interval.name),e.Q6J("ngModel",n.interval.name),e.xp6(12),e.Q6J("ngModel",n.interval.start),e.xp6(9),e.Q6J("ngModel",n.interval.end),e.xp6(7),e.ekj("is-invalid",!n.interval.interval)("is-valid",n.interval.interval),e.Q6J("ngModel",n.interval.interval),e.xp6(8),e.Q6J("ngModel",n.interval.runOnce),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),_})();function Ne(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",8),e.TgZ(2,"label",9),e.SDv(3,10),e.qZA(),e.TgZ(4,"div",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().interval.name=i}),e.qZA(),e.TgZ(6,"div",13),e.TgZ(7,"small"),e._uU(8,"the interval name can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",14),e.TgZ(10,"label",15),e.SDv(11,16),e.qZA(),e.TgZ(12,"div",11),e.TgZ(13,"div",17),e.TgZ(14,"div",18),e.TgZ(15,"span",19),e._UZ(16,"i",20),e.qZA(),e.qZA(),e.TgZ(17,"input",21),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().interval.start=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",14),e.TgZ(19,"label",22),e.SDv(20,23),e.qZA(),e.TgZ(21,"div",11),e.TgZ(22,"div",17),e.TgZ(23,"div",18),e.TgZ(24,"span",19),e._UZ(25,"i",20),e.qZA(),e.qZA(),e.TgZ(26,"input",24),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().interval.end=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",14),e.TgZ(28,"label",25),e.TgZ(29,"span",26),e.SDv(30,27),e.qZA(),e._UZ(31,"span",28),e.qZA(),e.TgZ(32,"div",11),e.TgZ(33,"input",29),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().interval.interval=i}),e.qZA(),e.TgZ(34,"div",30),e.TgZ(35,"small"),e._uU(36,"the interval interval can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"div",14),e.TgZ(38,"label",31),e.SDv(39,32),e.qZA(),e.TgZ(40,"div",11),e.TgZ(41,"select",33),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().interval.runOnce=i}),e.TgZ(42,"option",34),e._uU(43,"false"),e.qZA(),e.TgZ(44,"option",34),e._uU(45,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(5),e.ekj("is-invalid",!t.interval.name)("is-valid",t.interval.name),e.Q6J("ngModel",t.interval.name),e.xp6(12),e.Q6J("ngModel",t.interval.start),e.xp6(9),e.Q6J("ngModel",t.interval.end),e.xp6(7),e.ekj("is-invalid",!t.interval.interval)("is-valid",t.interval.interval),e.Q6J("ngModel",t.interval.interval),e.xp6(8),e.Q6J("ngModel",t.interval.runOnce),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}let Ie=(()=>{class _{constructor(t,n,i,o,r){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.errSvc=r}ngOnInit(){this.route.queryParams.subscribe(t=>{t.intervalName&&this.schedulerSvc.findIntervalByName(t.intervalName).subscribe(n=>{this.errSvc.handleErrorForAPI(n)||(this.interval=n.interval,this.interval.runOnce=!!this.interval.runOnce,setTimeout(()=>{this.initDatePickr()},300))})})}initDatePickr(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.calendarStart=(0,P.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,P.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}update(){this.schedulerSvc.updateInterval(this.interval).subscribe(t=>{var n;this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("update interval",`name: ${null===(n=this.interval)||void 0===n?void 0:n.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0),e.Y36(p.T))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-edit-interval"]],decls:10,vars:3,consts:function(){let a,t,n,i,o,r,N;return a="\u7F16\u8F91 Interval",t="\u63D0\u4EA4",n="\u540D\u5B57",i="\u5F00\u59CB",o="\u7ED3\u675F\u65F6\u95F4",r="\u5355\u4F4D\u95F4\u9694",N="\u6267\u884C\u5355\u6B21",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],t,[1,"card-body"],[4,"ngIf"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],n,[1,"col-md-10"],["type","text","name","intervalName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],i,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd2",1,"col-md-2","col-form-label"],o,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","ISO8601 duration format","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],N,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e._uU(5),e.TgZ(6,"button",4),e.NdJ("click",function(){return n.update()}),e.SDv(7,5),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e.YNc(9,Ne,46,15,"form",7),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.hij(" ",null==n.interval?null:n.interval.name," "),e.xp6(1),e.Q6J("disabled",!(null!=n.interval&&n.interval.name)),e.xp6(3),e.Q6J("ngIf",n.interval))},directives:[I.O5,l._Y,l.JL,l.F,l.Fj,l.JJ,l.On,l.Q7,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),_})(),ue=(()=>{class _{constructor(){}ngOnInit(){}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-interval-action-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[s.lC],styles:[""]}),_})();const ve=function(_){return{intervalName:_}};function me(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",23),e.NdJ("click",function(i){const r=e.CHM(t).$implicit;return e.oxw().selectOne(i,r)}),e.qZA(),e.qZA(),e.TgZ(3,"td",61),e._uU(4),e.qZA(),e.TgZ(5,"td",61),e._uU(6),e.qZA(),e.TgZ(7,"td"),e.TgZ(8,"a",62),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"td"),e._uU(11),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.ekj("table-active",n.isChecked(t.name)),e.xp6(2),e.Q6J("checked",n.isChecked(t.name)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("queryParams",e.VKq(8,ve,t.intervalName)),e.xp6(1),e.Oqu(t.intervalName),e.xp6(2),e.Oqu(t.address.type)}}let fe=(()=>{class _{constructor(t,n,i,o){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.intervalActionList=[],this.intervalActionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(t=>{t.intervalName||this.findIntervalActionsPagination()})}refresh(){this.schedulerSvc.findAllIntervalActionsPagination(0,this.pageLimit).subscribe(t=>{this.intervalActionList=t.actions,this.msgSvc.success("refresh"),this.resetPagination()})}findIntervalActionsPagination(){this.schedulerSvc.findAllIntervalActionsPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.intervalActionList=t.actions})}isCheckedAll(){let t=!0;return this.intervalActionList&&0===this.intervalActionList.length&&(t=!1),this.intervalActionList.forEach(n=>{-1===this.intervalActionSelected.findIndex(i=>i.name===n.name)&&(t=!1)}),t}selectAll(t){this.intervalActionList.forEach(t.target.checked?i=>{-1===this.intervalActionSelected.findIndex(o=>o.name===i.name)&&this.intervalActionSelected.push(i)}:i=>{let o=this.intervalActionSelected.findIndex(r=>r.name===i.name);-1!==o&&this.intervalActionSelected.splice(o,1)})}isChecked(t){return this.intervalActionSelected.findIndex(n=>n.name===t)>=0}selectOne(t,n){if(t.target.checked)return void this.intervalActionSelected.push(n);let o=this.intervalActionSelected.findIndex(r=>r.name===n.name);-1!==o&&this.intervalActionSelected.splice(o,1)}edit(){this.router.navigate(["../edit-interval-action"],{relativeTo:this.route,queryParams:{intervalActionName:this.intervalActionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervalActions(){this.intervalActionSelected.forEach((t,n)=>{this.schedulerSvc.deleteIntervalActionByName(t.name).subscribe(()=>{this.intervalActionList.forEach((i,o)=>{i.name!==t.name||this.intervalActionList.splice(o,1)}),this.intervalActionSelected.splice(n,1),this.msgSvc.success("delete",`name: ${t.name}`),this.resetPagination(),this.findIntervalActionsPagination()})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalActionsPagination()}prePage(){this.setPagination(-1),this.findIntervalActionsPagination()}nextPage(){this.setPagination(1),this.findIntervalActionsPagination()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-interval-action-list"]],decls:84,vars:7,consts:function(){let a,t,n,i,o,r,N,A,v,m,f,S,R,Z,L,M;return a="Interval \u4EFB\u52A1\u5217\u8868",t="\u5237\u65B0",n="\u6DFB\u52A0",i="\u7F16\u8F91",o="\u5220\u9664",r="ID",N="\u540D\u5B57",A="\u76F8\u5173Interval",v="\u5730\u5740\u7C7B\u578B",m="\u6BCF\u9875\u6761\u76EE",f="\u4E0A\u4E00\u9875",S="\u4E0B\u4E00\u9875",R="\u8B66\u544A",Z="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",L="\u53D6\u6D88",M="\u786E\u8BA4",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],a,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],t,["type","button","routerLink","../add-interval-action",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],n,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],i,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],o,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],r,N,A,v,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],m,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],f,[1,"page-item"],S,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],R,[1,"modal-body"],Z,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],L,["type","button",1,"btn","btn-danger",3,"click"],M,[1,"user-select-all"],["routerLink","../../interval-center",3,"queryParams"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return n.refresh()}),e.TgZ(9,"span"),e._UZ(10,"i",8),e.TgZ(11,"span"),e.SDv(12,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",10),e.TgZ(14,"span"),e._UZ(15,"i",11),e.TgZ(16,"span"),e.SDv(17,12),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"button",13),e.NdJ("click",function(){return n.edit()}),e.TgZ(19,"span"),e._UZ(20,"i",14),e.TgZ(21,"span"),e.SDv(22,15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"button",16),e.NdJ("click",function(){return n.deleteConfirm()}),e.TgZ(24,"span"),e._UZ(25,"i",17),e.TgZ(26,"span"),e.SDv(27,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",19),e.TgZ(29,"table",20),e.TgZ(30,"thead",21),e.TgZ(31,"tr"),e.TgZ(32,"th",22),e.TgZ(33,"input",23),e.NdJ("click",function(o){return n.selectAll(o)}),e.qZA(),e.qZA(),e.TgZ(34,"th",22),e.SDv(35,24),e.qZA(),e.TgZ(36,"th",22),e.SDv(37,25),e.qZA(),e.TgZ(38,"th",22),e.SDv(39,26),e.qZA(),e.TgZ(40,"th",22),e.SDv(41,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"tbody"),e.YNc(43,me,12,10,"tr",28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",29),e.TgZ(45,"nav",30),e.TgZ(46,"ul",31),e.TgZ(47,"li",32),e.TgZ(48,"span",33),e.SDv(49,34),e.qZA(),e.qZA(),e.TgZ(50,"li",35),e.TgZ(51,"select",36),e.NdJ("ngModelChange",function(o){return n.pageLimit=o})("ngModelChange",function(){return n.onPageSelected()}),e.TgZ(52,"option",37),e._uU(53,"5"),e.qZA(),e.TgZ(54,"option",38),e._uU(55,"10"),e.qZA(),e.TgZ(56,"option",39),e._uU(57,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"li",40),e.TgZ(59,"button",41),e.NdJ("click",function(){return n.prePage()}),e._UZ(60,"i",42),e.TgZ(61,"span"),e.SDv(62,43),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"li",44),e.TgZ(64,"button",41),e.NdJ("click",function(){return n.nextPage()}),e.TgZ(65,"span"),e.SDv(66,45),e.qZA(),e._UZ(67,"i",46),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"div",47),e.TgZ(69,"div",48),e.TgZ(70,"div",49),e.TgZ(71,"div",50),e.TgZ(72,"h5",51),e._UZ(73,"i",52),e.TgZ(74,"span"),e.SDv(75,53),e.qZA(),e.qZA(),e.qZA(),e.TgZ(76,"div",54),e.TgZ(77,"span"),e.SDv(78,55),e.qZA(),e.qZA(),e.TgZ(79,"div",56),e.TgZ(80,"button",57),e.SDv(81,58),e.qZA(),e.TgZ(82,"button",59),e.NdJ("click",function(){return n.deleteIntervalActions()}),e.SDv(83,60),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(18),e.Q6J("disabled",1!==n.intervalActionSelected.length),e.xp6(5),e.Q6J("disabled",0===n.intervalActionSelected.length),e.xp6(10),e.Q6J("checked",n.isCheckedAll()),e.xp6(10),e.Q6J("ngForOf",n.intervalActionList),e.xp6(8),e.Q6J("ngModel",n.pageLimit),e.xp6(8),e.Q6J("disabled",1===n.pagination),e.xp6(5),e.Q6J("disabled",n.pageLimit>n.intervalActionList.length))},directives:[s.rH,I.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,s.yS],styles:[""]}),_})();function Se(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(i){return e.CHM(t),e.oxw().close(i)}),e.qZA()}}let U=(()=>{class _{constructor(){this.visible=!1,this.validate=!1,this.intervalSelectedEvent=new e.vpe,this.selectedInterval={}}ngOnInit(){}onSingleIntervalSelected(t){this.selectedInterval=t,this.intervalSelectedEvent.emit(t)}close(t){t.stopPropagation(),this.visible=!1}toggle(t){t.stopImmediatePropagation(),this.visible=!this.visible}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-interval-combo-list"]],inputs:{validate:"validate",selectedInterval:"selectedInterval"},outputs:{intervalSelectedEvent:"intervalSelectedEvent"},decls:12,vars:11,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"click"],["type","text","name","selectedInterval","readonly","readonly","maxlength","0","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"combo-body","shadow","rounded"],[3,"singleIntervalSelected","enableSelectAll","toolbars","singleIntervalSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(t,n){1&t&&(e.YNc(0,Se,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("click",function(o){return n.toggle(o)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(o){return n.selectedInterval.name=o}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.TgZ(7,"div",7),e.TgZ(8,"small"),e._uU(9,"the interval name can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",8),e.TgZ(11,"app-interval-list",9),e.NdJ("singleIntervalSelectedEvent",function(o){return n.onSingleIntervalSelected(o)}),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngIf",n.visible),e.xp6(3),e.ekj("is-invalid",!n.selectedInterval.name&&n.validate)("is-valid",n.selectedInterval.name&&n.validate),e.Q6J("ngModel",n.selectedInterval.name),e.xp6(7),e.Udp("display",n.visible?"":"none"),e.xp6(1),e.Q6J("singleIntervalSelected",n.selectedInterval)("enableSelectAll",!1)("toolbars",!1))},directives:[I.O5,l.Fj,l.nD,l.Q7,l.JJ,l.On,y],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),_})();var x=g(9549);function Re(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"span",91),e.NdJ("click",function(){return e.CHM(t),e.oxw().templateToggle("coredata")}),e.SDv(2,92),e.qZA(),e.TgZ(3,"span",91),e.NdJ("click",function(){return e.CHM(t),e.oxw().templateToggle("command")}),e.SDv(4,93),e.qZA(),e.TgZ(5,"span",91),e.NdJ("click",function(){return e.CHM(t),e.oxw().templateToggle("custom")}),e.SDv(6,94),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(1),e.ekj("badge-secondary","coredata"!==t.templateSelected)("badge-primary","coredata"===t.templateSelected),e.xp6(2),e.ekj("badge-secondary","command"!==t.templateSelected)("badge-primary","command"===t.templateSelected),e.xp6(2),e.ekj("badge-secondary","custom"!==t.templateSelected)("badge-primary","custom"===t.templateSelected)}}function Ze(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",17),e.TgZ(2,"label",101),e.SDv(3,102),e.qZA(),e.TgZ(4,"div",14),e.TgZ(5,"select",103),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.httpMethod=i}),e.TgZ(6,"option",104),e._uU(7,"GET"),e.qZA(),e.TgZ(8,"option",105),e._uU(9,"POST"),e.qZA(),e.TgZ(10,"option",106),e._uU(11,"PUT"),e.qZA(),e.TgZ(12,"option",107),e._uU(13,"DELETE"),e.qZA(),e.TgZ(14,"option",108),e._uU(15,"PATCH"),e.qZA(),e.TgZ(16,"option",109),e._uU(17,"HEAD"),e.qZA(),e.TgZ(18,"option",110),e._uU(19,"TRACE"),e.qZA(),e.TgZ(20,"option",111),e._uU(21,"CONNECT"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",11),e.TgZ(23,"label",112),e.SDv(24,113),e.qZA(),e.TgZ(25,"div",14),e.TgZ(26,"input",114),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.host=i}),e.qZA(),e.TgZ(27,"div",115),e.TgZ(28,"small"),e._uU(29,"the REST address host can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",11),e.TgZ(31,"label",116),e.SDv(32,117),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"input",118),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.port=i}),e.qZA(),e.TgZ(35,"div",119),e.TgZ(36,"small"),e.SDv(37,120),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",17),e.TgZ(39,"label",121),e.SDv(40,122),e.qZA(),e.TgZ(41,"div",14),e.TgZ(42,"input",123),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(43,"div",17),e.TgZ(44,"label",50),e.TgZ(45,"span",51),e.SDv(46,124),e.qZA(),e._UZ(47,"span",53),e.qZA(),e.TgZ(48,"div",14),e.TgZ(49,"input",54),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.content=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",17),e.TgZ(51,"label",55),e.TgZ(52,"span",51),e._uU(53,"ContentType"),e.qZA(),e._UZ(54,"span",56),e.qZA(),e.TgZ(55,"div",14),e.TgZ(56,"input",57),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(21),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(8),e.Q6J("ngModel",t.intervalAction.address.path),e.xp6(7),e.Q6J("ngModel",t.intervalAction.content),e.xp6(7),e.Q6J("ngModel",t.intervalAction.contentType)}}function Le(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",17),e.TgZ(2,"label",101),e.SDv(3,125),e.qZA(),e.TgZ(4,"div",14),e.TgZ(5,"select",103),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.httpMethod=i}),e.TgZ(6,"option",107),e._uU(7,"DELETE"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",11),e.TgZ(9,"label",112),e.TgZ(10,"span",51),e._uU(11,"Host"),e.qZA(),e._UZ(12,"span",126),e.qZA(),e.TgZ(13,"div",14),e.TgZ(14,"input",114),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.host=i}),e.qZA(),e.TgZ(15,"div",115),e.TgZ(16,"small"),e.SDv(17,127),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",11),e.TgZ(19,"label",116),e.SDv(20,128),e.qZA(),e.TgZ(21,"div",14),e.TgZ(22,"input",118),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.port=i}),e.qZA(),e.TgZ(23,"div",119),e.TgZ(24,"small"),e.SDv(25,129),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",17),e.TgZ(27,"label",121),e.TgZ(28,"span",51),e.SDv(29,130),e.qZA(),e._UZ(30,"span",131),e.qZA(),e.TgZ(31,"div",14),e.TgZ(32,"input",132),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",17),e.TgZ(34,"label",133),e.SDv(35,134),e.qZA(),e.TgZ(36,"div",14),e.TgZ(37,"div",135),e.TgZ(38,"div",136),e.TgZ(39,"span",137),e._UZ(40,"i",138),e.qZA(),e.qZA(),e.TgZ(41,"input",139),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).coredataRequestParameter=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(9),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(10),e.Q6J("ngModel",t.intervalAction.address.path),e.xp6(9),e.Q6J("ngModel",t.coredataRequestParameter)}}function Me(_,a){1&_&&(e.TgZ(0,"div"),e._uU(1," no paramters. "),e.qZA())}function he(_,a){if(1&_&&(e.TgZ(0,"select",157),e.TgZ(1,"option",78),e._uU(2,"false"),e.qZA(),e.TgZ(3,"option",78),e._uU(4,"true"),e.qZA(),e.qZA()),2&_){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function Oe(_,a){if(1&_&&e._UZ(0,"input",158),2&_){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.MGl("placeholder","valueType: ",t.valueType,"")}}function De(_,a){if(1&_&&(e.TgZ(0,"div"),e.TgZ(1,"div",17),e.TgZ(2,"label",153),e.SDv(3,154),e.qZA(),e.TgZ(4,"div",14),e.YNc(5,he,5,4,"select",155),e.YNc(6,Oe,1,3,"ng-template",null,156,e.W1O),e.qZA(),e.qZA(),e.qZA()),2&_){const t=a.$implicit,n=e.MAs(7);e.xp6(2),e.s9C("for",t.resourceName),e.xp6(1),e.pQV(t.resourceName),e.QtT(3),e.xp6(2),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",n)}}function Pe(_,a){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,Me,2,0,"div",38),e.YNc(2,De,8,4,"div",152),e.qZA()),2&_){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",0==t.commandServiceTemplateRequestParameters.length),e.xp6(1),e.Q6J("ngForOf",t.commandServiceTemplateRequestParameters)}}function be(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",17),e.TgZ(1,"label",159),e.TgZ(2,"span",51),e.SDv(3,160),e.qZA(),e._UZ(4,"span",161),e.qZA(),e.TgZ(5,"div",14),e.TgZ(6,"select",162),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(4).pushEventOfGetCmdParamter=i}),e.TgZ(7,"option",163),e._uU(8,"true"),e.qZA(),e.TgZ(9,"option",164),e._uU(10,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",17),e.TgZ(12,"label",165),e.TgZ(13,"span",51),e.SDv(14,166),e.qZA(),e._UZ(15,"span",167),e.qZA(),e.TgZ(16,"div",14),e.TgZ(17,"select",168),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(4).returnEventOfGetCmdParamter=i}),e.TgZ(18,"option",163),e._uU(19,"true"),e.qZA(),e.TgZ(20,"option",164),e._uU(21,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(4);e.xp6(6),e.Q6J("ngModel",t.pushEventOfGetCmdParamter),e.xp6(11),e.Q6J("ngModel",t.returnEventOfGetCmdParamter)}}function qe(_,a){if(1&_&&(e.TgZ(0,"div",17),e.TgZ(1,"label",121),e.SDv(2,149),e.qZA(),e.TgZ(3,"div",14),e.TgZ(4,"div",6),e.TgZ(5,"div",1),e.TgZ(6,"span"),e._uU(7,"Command Parameters Setting"),e.qZA(),e.qZA(),e.TgZ(8,"div",4),e.YNc(9,Pe,3,2,"div",150),e.YNc(10,be,22,2,"ng-template",null,151,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_){const t=e.MAs(11),n=e.oxw(3);e.xp6(9),e.Q6J("ngIf","PUT"==n.intervalAction.address.httpMethod)("ngIfElse",t)}}function Ve(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",17),e.TgZ(2,"label",101),e.TgZ(3,"span",51),e.SDv(4,140),e.qZA(),e._UZ(5,"span",141),e.qZA(),e.TgZ(6,"div",14),e.TgZ(7,"input",142),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.httpMethod=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",11),e.TgZ(9,"label",112),e.TgZ(10,"span",51),e._uU(11,"Host"),e.qZA(),e._UZ(12,"span",126),e.qZA(),e.TgZ(13,"div",14),e.TgZ(14,"input",114),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.host=i}),e.qZA(),e.TgZ(15,"div",115),e.TgZ(16,"small"),e.SDv(17,143),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",11),e.TgZ(19,"label",116),e.SDv(20,144),e.qZA(),e.TgZ(21,"div",14),e.TgZ(22,"input",118),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.port=i}),e.qZA(),e.TgZ(23,"div",119),e.TgZ(24,"small"),e.SDv(25,145),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",17),e.TgZ(27,"label",121),e.SDv(28,146),e.qZA(),e.TgZ(29,"div",14),e.TgZ(30,"app-device-core-command-combo-list",147),e.NdJ("cmdMethodEvent",function(i){return e.CHM(t),e.oxw(2).onCmdMethodSelected(i)})("commandSelectedEvent",function(i){return e.CHM(t),e.oxw(2).onCommandSelected(i)}),e.qZA(),e.qZA(),e.qZA(),e.YNc(31,qe,12,2,"div",148),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(7),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(7),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(8),e.Q6J("validate",!0),e.xp6(1),e.Q6J("ngIf",t.intervalAction.address.path&&t.intervalAction.address.httpMethod)}}function $e(_,a){if(1&_&&(e.TgZ(0,"div",null,95),e.TgZ(2,"div",96),e.YNc(3,Ze,57,14,"ng-template",97,98,e.W1O),e.YNc(5,Le,42,13,"ng-template",97,99,e.W1O),e.YNc(7,Ve,32,13,"ng-template",97,100,e.W1O),e.qZA(),e.qZA()),2&_){const t=e.oxw();e.xp6(2),e.Q6J("ngSwitch",t.templateSelected),e.xp6(1),e.Q6J("ngSwitchCase","custom"),e.xp6(2),e.Q6J("ngSwitchCase","coredata"),e.xp6(2),e.Q6J("ngSwitchCase","command")}}let ye=(()=>{class _{constructor(t,n,i,o,r){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="coredata",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="yes",this.returnEventOfGetCmdParamter="yes",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={adminState:"UNLOCKED"},this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}ngOnInit(){this.renderPopoverComponent(),this.renderCoredataDefaultTemplate()}initDatePickr(){let t=this;this.calendarStart=(0,P.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(n,i,o){t.intervalAction.address.path=t.coredataSvcAvailableAPI[0]+i}})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(t){switch(this.templateSelected=t,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.httpMethod="",this.intervalAction.address.host="edgex-core-command",this.intervalAction.address.port=59882,this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300),this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}typeToggle(t){this.intervalAction.address.type=t,"REST"===t&&this.templateToggle("coredata")}onCmdMethodSelected(t){this.intervalAction.address.httpMethod=t,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(t){this.intervalAction.address.path=t.path,this.commandServiceTemplateRequestParameters=t.parameters}onSingleIntervalSelected(t){this.intervalAction.intervalName=t.name}isPureIntegerType(t){return!isNaN(t)&&parseFloat(t)===parseInt(t)}validate(){let t=!0,n=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:n&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(t=!1);break;case this.addr_type_MQTT:n&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(t=!1);break;case this.addr_type_EMAIL:n&&(t=!1)}return t}getAllCmdTemplateParametersValue(){var t;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let n={};return null===(t=this.commandServiceTemplateRequestParameters)||void 0===t||t.forEach(i=>{""!==$(`#cmd-param-${i.resourceName}`).val().trim()&&(n[i.resourceName]=$(`#cmd-param-${i.resourceName}`).val().trim())}),JSON.stringify(n)}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}submit(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.addIntervalAction(this.intervalAction).subscribe(t=>{this.errorSvc.handleErrorForAPI(t)||(this.msgSvc.success("Add interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0),e.Y36(p.T))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-add-interval-action"]],decls:176,vars:63,consts:function(){let a,t,n,i,o,r,N,A,v,m,f,S,R,Z,L,M,c,E,C,J,G,k,X,Q,w,F,z,Y,j,K,B,W,ee,te,ne,ie,oe,_e,ae,le,de,re,se,Te,Ae,ce,ge,pe;return a="\u63D0\u793A",t=" The support scheduler micro service provide an internal EdgeX \u201Cclock\u201D that can kick off operations in any EdgeX service. At a configuration specified time (called an interval), the service calls on any EdgeX service API URL via REST to trigger an operation (called an interval action). For example, the scheduling service periodically calls on core data APIs to clean up old sensed events that have been successfully exported out of EdgeX. " + "\ufffd#7\ufffd\ufffd/#7\ufffd" + " Users also can call the API of command service to collect one device's data automatically. ",n="\u6DFB\u52A0 Interval \u4EFB\u52A1",i="\u63D0\u4EA4",o="\u540D\u5B57",r="Interval\u540D\u5B57",N="\u7BA1\u7406\u72B6\u6001",A="\u5730\u5740",v="Host",m="the MQTT host can't be empty!",f="Port",S="the MQTT port can't be empty and only pure integer is supported!!",R="\u5185\u5BB9",Z="Publisher",L="the MQTT publisher can't be empty!",M="Topic",c="the MQTT topic can't be empty!",E="QoS",C="KeepAlive",J="Retained",G="AutoReconnect",k="ConnectTimeout",X="Email\u63A5\u6536\u8005",Q="\u5185\u5BB9",w="CoreData\u670D\u52A1\u6A21\u677F",F="Command\u670D\u52A1\u6A21\u677F",z="\u81EA\u5B9A\u4E49\u6A21\u677F",Y="HttpMethod",j="Host",K="Port",B="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",W="Path",ee="\u5185\u5BB9",te="HttpMethod",ne="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",ie="Port",oe="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",_e="Path",ae="Parameter",le="HttpMethod",de="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",re="Port",se="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",Te="Path",Ae="Parameters",ce="" + "\ufffd0\ufffd" + "",ge="pushevent",pe="returnevent",[[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],a,[1,"card-body"],t,[1,"card"],[1,"fa","fa-plus","text-danger","mr-1"],n,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],i,[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],o,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],r,[1,"mb-3"],[3,"validate","intervalSelectedEvent"],["for","adminState",1,"col-md-2","col-form-label"],N,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],A,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","REST",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["MQTT",""],["for","addressHostMQTT","required","",1,"col-md-2","col-form-label"],v,["type","text","id","addressHostMQTT","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostMQTTFeedback",1,"invalid-feedback"],m,["for","addressPortMQTT","required","",1,"col-md-2","col-form-label"],f,["type","text","id","addressPortMQTT","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortMQTTFeedback",1,"invalid-feedback"],S,["for","Content",1,"col-md-2","col-form-label"],[1,"mr-2"],R,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],["for","addressPublisher","required","",1,"col-md-2","col-form-label"],Z,["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],L,["for","addressTopic","required","",1,"col-md-2","col-form-label"],M,["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],c,["for","addressQoS",1,"col-md-2","col-form-label"],E,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","only pure integer supported!",1,"fa","fa-question-circle-o","fa-lg"],["type","number","id","addressQoS","name","addressQoS",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive",1,"col-md-2","col-form-label"],C,["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],J,["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],G,["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],k,["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],X,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],Q,["role","button",1,"badge","mr-2",3,"click"],w,F,z,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],Y,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],j,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],K,["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],B,["for","addressPath","required","",1,"col-md-2","col-form-label"],W,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],ee,te,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],ne,ie,oe,_e,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],ae,[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],le,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],de,re,se,Te,[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],Ae,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],ce,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],ge,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","true indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","true"],["value","false"],["for","ds-returnevent",1,"col-md-2","col-form-label"],pe,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.tHW(6,5),e._UZ(7,"br"),e.N_p(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e.TgZ(9,"div",1),e._UZ(10,"i",7),e.TgZ(11,"span"),e.SDv(12,8),e.qZA(),e.TgZ(13,"button",9),e.NdJ("click",function(){return n.submit()}),e.SDv(14,10),e.qZA(),e.qZA(),e.TgZ(15,"div",4),e.TgZ(16,"form"),e.TgZ(17,"div",11),e.TgZ(18,"label",12),e.SDv(19,13),e.qZA(),e.TgZ(20,"div",14),e.TgZ(21,"input",15),e.NdJ("ngModelChange",function(o){return n.intervalAction.name=o}),e.qZA(),e.TgZ(22,"div",16),e.TgZ(23,"small"),e._uU(24,"the interval action name can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",17),e.TgZ(26,"label",18),e.SDv(27,19),e.qZA(),e.TgZ(28,"div",14),e.TgZ(29,"div",20),e.TgZ(30,"app-interval-combo-list",21),e.NdJ("intervalSelectedEvent",function(o){return n.onSingleIntervalSelected(o)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",17),e.TgZ(32,"label",22),e.SDv(33,23),e.qZA(),e.TgZ(34,"div",14),e.TgZ(35,"select",24),e.NdJ("ngModelChange",function(o){return n.intervalAction.adminState=o}),e.TgZ(36,"option",25),e._uU(37,"UNLOCKED"),e.qZA(),e.TgZ(38,"option",26),e._uU(39,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(40,"div",17),e.TgZ(41,"label",27),e.SDv(42,28),e.qZA(),e.TgZ(43,"div",14),e.TgZ(44,"div",6),e.TgZ(45,"div",1),e.TgZ(46,"div",29),e.TgZ(47,"span",30),e.TgZ(48,"input",31),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.type=o})("click",function(){return n.typeToggle("REST")}),e.qZA(),e.TgZ(49,"label",32),e._uU(50,"REST"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",29),e.TgZ(52,"span",30),e.TgZ(53,"input",33),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.type=o})("click",function(){return n.typeToggle("MQTT")}),e.qZA(),e.TgZ(54,"label",34),e._uU(55,"MQTT"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(56,"div",29),e.TgZ(57,"span",30),e.TgZ(58,"input",35),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.type=o})("click",function(){return n.typeToggle("EMAIL")}),e.qZA(),e.TgZ(59,"label",36),e._uU(60,"EMAIL"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(61,Re,7,12,"div",37),e.TgZ(62,"div",4),e.YNc(63,$e,9,4,"div",38),e.TgZ(64,"div",null,39),e.TgZ(66,"form"),e.TgZ(67,"div",11),e.TgZ(68,"label",40),e.SDv(69,41),e.qZA(),e.TgZ(70,"div",14),e.TgZ(71,"input",42),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.host=o}),e.qZA(),e.TgZ(72,"div",43),e.TgZ(73,"small"),e.SDv(74,44),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(75,"div",11),e.TgZ(76,"label",45),e.SDv(77,46),e.qZA(),e.TgZ(78,"div",14),e.TgZ(79,"input",47),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.port=o}),e.qZA(),e.TgZ(80,"div",48),e.TgZ(81,"small"),e.SDv(82,49),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(83,"div",17),e.TgZ(84,"label",50),e.TgZ(85,"span",51),e.SDv(86,52),e.qZA(),e._UZ(87,"span",53),e.qZA(),e.TgZ(88,"div",14),e.TgZ(89,"input",54),e.NdJ("ngModelChange",function(o){return n.intervalAction.content=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(90,"div",17),e.TgZ(91,"label",55),e.TgZ(92,"span",51),e._uU(93,"ContentType"),e.qZA(),e._UZ(94,"span",56),e.qZA(),e.TgZ(95,"div",14),e.TgZ(96,"input",57),e.NdJ("ngModelChange",function(o){return n.intervalAction.contentType=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(97,"div",11),e.TgZ(98,"label",58),e.SDv(99,59),e.qZA(),e.TgZ(100,"div",14),e.TgZ(101,"input",60),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.publisher=o}),e.qZA(),e.TgZ(102,"div",61),e.TgZ(103,"small"),e.SDv(104,62),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(105,"div",11),e.TgZ(106,"label",63),e.SDv(107,64),e.qZA(),e.TgZ(108,"div",14),e.TgZ(109,"input",65),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.topic=o}),e.qZA(),e.TgZ(110,"div",66),e.TgZ(111,"small"),e.SDv(112,67),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(113,"div",17),e.TgZ(114,"label",68),e.TgZ(115,"span",51),e.SDv(116,69),e.qZA(),e._UZ(117,"span",70),e.qZA(),e.TgZ(118,"div",14),e.TgZ(119,"input",71),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.qos=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(120,"div",17),e.TgZ(121,"label",72),e.TgZ(122,"span",51),e.SDv(123,73),e.qZA(),e._UZ(124,"span",70),e.qZA(),e.TgZ(125,"div",14),e.TgZ(126,"input",74),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.keepAlive=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(127,"div",17),e.TgZ(128,"label",75),e.SDv(129,76),e.qZA(),e.TgZ(130,"div",14),e.TgZ(131,"select",77),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.retained=o}),e.TgZ(132,"option",78),e._uU(133,"false"),e.qZA(),e.TgZ(134,"option",78),e._uU(135,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(136,"div",17),e.TgZ(137,"label",79),e.SDv(138,80),e.qZA(),e.TgZ(139,"div",14),e.TgZ(140,"select",81),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.autoReconnect=o}),e.TgZ(141,"option",78),e._uU(142,"true"),e.qZA(),e.TgZ(143,"option",78),e._uU(144,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(145,"div",17),e.TgZ(146,"label",82),e.TgZ(147,"span",51),e.SDv(148,83),e.qZA(),e._UZ(149,"span",70),e.qZA(),e.TgZ(150,"div",14),e.TgZ(151,"input",84),e.NdJ("ngModelChange",function(o){return n.intervalAction.address.connectTimeout=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(152,"div",null,85),e.TgZ(154,"form"),e.TgZ(155,"div",17),e.TgZ(156,"label",86),e.TgZ(157,"span",51),e.SDv(158,87),e.qZA(),e._UZ(159,"span",88),e.qZA(),e.TgZ(160,"div",14),e.TgZ(161,"input",89),e.NdJ("ngModelChange",function(o){return n.addressEmailRecipients=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(162,"div",17),e.TgZ(163,"label",50),e.TgZ(164,"span",51),e.SDv(165,90),e.qZA(),e._UZ(166,"span",53),e.qZA(),e.TgZ(167,"div",14),e.TgZ(168,"input",54),e.NdJ("ngModelChange",function(o){return n.intervalAction.content=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(169,"div",17),e.TgZ(170,"label",55),e.TgZ(171,"span",51),e._uU(172,"ContentType"),e.qZA(),e._UZ(173,"span",56),e.qZA(),e.TgZ(174,"div",14),e.TgZ(175,"input",57),e.NdJ("ngModelChange",function(o){return n.intervalAction.contentType=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(13),e.Q6J("disabled",n.validate()),e.xp6(8),e.ekj("is-invalid",!n.intervalAction.name)("is-valid",n.intervalAction.name),e.Q6J("ngModel",n.intervalAction.name),e.xp6(9),e.Q6J("validate",!0),e.xp6(5),e.Q6J("ngModel",n.intervalAction.adminState),e.xp6(12),e.ekj("badge-secondary","REST"!==n.intervalAction.address.type)("badge-primary","REST"===n.intervalAction.address.type),e.xp6(1),e.Q6J("ngModel",n.intervalAction.address.type),e.xp6(4),e.ekj("badge-secondary","MQTT"!==n.intervalAction.address.type)("badge-primary","MQTT"===n.intervalAction.address.type),e.xp6(1),e.Q6J("ngModel",n.intervalAction.address.type),e.xp6(4),e.ekj("badge-secondary","EMAIL"!==n.intervalAction.address.type)("badge-primary","EMAIL"===n.intervalAction.address.type),e.xp6(1),e.Q6J("ngModel",n.intervalAction.address.type),e.xp6(3),e.Q6J("ngIf","REST"===n.intervalAction.address.type),e.xp6(2),e.Q6J("ngIf","REST"===n.intervalAction.address.type),e.xp6(1),e.Udp("display","MQTT"!==n.intervalAction.address.type?"none":""),e.xp6(7),e.ekj("is-invalid",!n.intervalAction.address.host)("is-valid",n.intervalAction.address.host),e.Q6J("ngModel",n.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!n.isPureIntegerType(n.intervalAction.address.port))("is-valid",n.isPureIntegerType(n.intervalAction.address.port)),e.Q6J("ngModel",n.intervalAction.address.port),e.xp6(10),e.Q6J("ngModel",n.intervalAction.content),e.xp6(7),e.Q6J("ngModel",n.intervalAction.contentType),e.xp6(5),e.ekj("is-invalid",!n.intervalAction.address.publisher)("is-valid",n.intervalAction.address.publisher),e.Q6J("ngModel",n.intervalAction.address.publisher),e.xp6(8),e.ekj("is-invalid",!n.intervalAction.address.topic)("is-valid",n.intervalAction.address.topic),e.Q6J("ngModel",n.intervalAction.address.topic),e.xp6(10),e.Q6J("ngModel",n.intervalAction.address.qos),e.xp6(7),e.Q6J("ngModel",n.intervalAction.address.keepAlive),e.xp6(5),e.Q6J("ngModel",n.intervalAction.address.retained),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(6),e.Q6J("ngModel",n.intervalAction.address.autoReconnect),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(8),e.Q6J("ngModel",n.intervalAction.address.connectTimeout),e.xp6(1),e.Udp("display","EMAIL"!==(null==n.intervalAction.address?null:n.intervalAction.address.type)?"none":""),e.xp6(9),e.Q6J("ngModel",n.addressEmailRecipients),e.xp6(7),e.Q6J("ngModel",n.intervalAction.content),e.xp6(7),e.Q6J("ngModel",n.intervalAction.contentType))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,U,l.EJ,l.YN,l.Kr,l._,I.O5,l.wV,I.RF,I.n9,x.P,I.sg],styles:[""]}),_})();function Ue(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",48),e.TgZ(1,"app-interval-combo-list",49),e.NdJ("intervalSelectedEvent",function(i){return e.CHM(t),e.oxw(2).onSingleIntervalSelected(i)}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(1),e.Q6J("validate",!0)("selectedInterval",t.selectedIntervalDefault)}}function xe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"span",50),e.SDv(2,51),e.qZA(),e._UZ(3,"span",52),e.TgZ(4,"span",53),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return i.templateToggle(i.template_type_coredata)}),e.SDv(5,54),e.qZA(),e.TgZ(6,"span",53),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return i.templateToggle(i.template_type_command)}),e.SDv(7,55),e.qZA(),e.TgZ(8,"span",53),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return i.templateToggle(i.template_type_custom)}),e.SDv(9,56),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(4),e.ekj("badge-secondary",t.templateSelected!==t.template_type_coredata)("badge-primary",t.templateSelected===t.template_type_coredata),e.xp6(2),e.ekj("badge-secondary",t.templateSelected!==t.template_type_command)("badge-primary",t.templateSelected===t.template_type_command),e.xp6(2),e.ekj("badge-secondary",t.templateSelected!==t.template_type_custom)("badge-primary",t.templateSelected===t.template_type_custom)}}function He(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",14),e.TgZ(2,"label",63),e._uU(3,"HttpMethod"),e.qZA(),e.TgZ(4,"div",11),e.TgZ(5,"select",64),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.httpMethod=i}),e.TgZ(6,"option",65),e._uU(7,"GET"),e.qZA(),e.TgZ(8,"option",66),e._uU(9,"POST"),e.qZA(),e.TgZ(10,"option",67),e._uU(11,"PUT"),e.qZA(),e.TgZ(12,"option",68),e._uU(13,"DELETE"),e.qZA(),e.TgZ(14,"option",69),e._uU(15,"PATCH"),e.qZA(),e.TgZ(16,"option",70),e._uU(17,"HEAD"),e.qZA(),e.TgZ(18,"option",71),e._uU(19,"TRACE"),e.qZA(),e.TgZ(20,"option",72),e._uU(21,"CONNECT"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",8),e.TgZ(23,"label",73),e._uU(24,"Host"),e.qZA(),e.TgZ(25,"div",11),e.TgZ(26,"input",74),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.host=i}),e.qZA(),e.TgZ(27,"div",75),e.TgZ(28,"small"),e._uU(29,"the REST address host can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",8),e.TgZ(31,"label",76),e._uU(32,"Port"),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"input",77),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.port=i}),e.qZA(),e.TgZ(35,"div",78),e.TgZ(36,"small"),e._uU(37,"the REST address port can't be empty and only pure integer is supported!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",14),e.TgZ(39,"label",79),e._uU(40,"Path"),e.qZA(),e.TgZ(41,"div",11),e.TgZ(42,"input",80),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(43,"div",14),e.TgZ(44,"label",41),e.TgZ(45,"span",38),e.SDv(46,81),e.qZA(),e._UZ(47,"span",43),e.qZA(),e.TgZ(48,"div",11),e.TgZ(49,"input",44),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.content=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"label",45),e.TgZ(52,"span",38),e._uU(53,"ContentType"),e.qZA(),e._UZ(54,"span",46),e.qZA(),e.TgZ(55,"div",11),e.TgZ(56,"input",47),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(3);e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(21),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(8),e.Q6J("ngModel",t.intervalAction.address.path),e.xp6(7),e.Q6J("ngModel",t.intervalAction.content),e.xp6(7),e.Q6J("ngModel",t.intervalAction.contentType)}}function Je(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",14),e.TgZ(2,"label",63),e._uU(3,"HttpMethod"),e.qZA(),e.TgZ(4,"div",11),e.TgZ(5,"select",64),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.httpMethod=i}),e.TgZ(6,"option",68),e._uU(7,"DELETE"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",8),e.TgZ(9,"label",73),e.TgZ(10,"span",38),e._uU(11,"Host"),e.qZA(),e._UZ(12,"span",82),e.qZA(),e.TgZ(13,"div",11),e.TgZ(14,"input",74),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.host=i}),e.qZA(),e.TgZ(15,"div",75),e.TgZ(16,"small"),e._uU(17,"the REST address host can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",8),e.TgZ(19,"label",76),e._uU(20,"Port"),e.qZA(),e.TgZ(21,"div",11),e.TgZ(22,"input",77),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.port=i}),e.qZA(),e.TgZ(23,"div",78),e.TgZ(24,"small"),e._uU(25,"the REST address port can't be empty and only pure integer is supported!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",14),e.TgZ(27,"label",79),e.TgZ(28,"span",38),e._uU(29,"Path"),e.qZA(),e._UZ(30,"span",83),e.qZA(),e.TgZ(31,"div",11),e.TgZ(32,"input",84),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"label",85),e._uU(35,"Parameter"),e.qZA(),e.TgZ(36,"div",11),e.TgZ(37,"div",86),e.TgZ(38,"div",87),e.TgZ(39,"span",88),e._UZ(40,"i",89),e.qZA(),e.qZA(),e.TgZ(41,"input",90),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).coredataRequestParameter=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(3);e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(9),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(10),e.Q6J("ngModel",t.intervalAction.address.path),e.xp6(9),e.Q6J("ngModel",t.coredataRequestParameter)}}function Ge(_,a){1&_&&(e.TgZ(0,"div"),e._uU(1," no paramters. "),e.qZA())}function ke(_,a){if(1&_&&(e.TgZ(0,"select",103),e.TgZ(1,"option",104),e._uU(2,"false"),e.qZA(),e.TgZ(3,"option",104),e._uU(4,"true"),e.qZA(),e.qZA()),2&_){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0)}}function Xe(_,a){if(1&_&&e._UZ(0,"input",105),2&_){const t=e.oxw().$implicit;e.MGl("id","cmd-param-",t.resourceName,""),e.s9C("name",t.resourceName),e.MGl("placeholder","valueType: ",t.valueType,"")}}function Qe(_,a){if(1&_&&(e.TgZ(0,"div"),e.TgZ(1,"div",14),e.TgZ(2,"label",99),e.SDv(3,100),e.qZA(),e.TgZ(4,"div",11),e.YNc(5,ke,5,4,"select",101),e.YNc(6,Xe,1,3,"ng-template",null,102,e.W1O),e.qZA(),e.qZA(),e.qZA()),2&_){const t=a.$implicit,n=e.MAs(7);e.xp6(2),e.s9C("for",t.resourceName),e.xp6(1),e.pQV(t.resourceName),e.QtT(3),e.xp6(2),e.Q6J("ngIf","Bool"==t.valueType)("ngIfElse",n)}}function we(_,a){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,Ge,2,0,"div",35),e.YNc(2,Qe,8,4,"div",98),e.qZA()),2&_){const t=e.oxw(5);e.xp6(1),e.Q6J("ngIf",0==t.commandServiceTemplateRequestParameters.length),e.xp6(1),e.Q6J("ngForOf",t.commandServiceTemplateRequestParameters)}}function Fe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"label",106),e.TgZ(2,"span",38),e.SDv(3,107),e.qZA(),e._UZ(4,"span",108),e.qZA(),e.TgZ(5,"div",11),e.TgZ(6,"select",109),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(5).pushEventOfGetCmdParamter=i}),e.TgZ(7,"option",110),e._uU(8,"true"),e.qZA(),e.TgZ(9,"option",111),e._uU(10,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",14),e.TgZ(12,"label",112),e.TgZ(13,"span",38),e.SDv(14,113),e.qZA(),e._UZ(15,"span",114),e.qZA(),e.TgZ(16,"div",11),e.TgZ(17,"select",115),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(5).returnEventOfGetCmdParamter=i}),e.TgZ(18,"option",110),e._uU(19,"true"),e.qZA(),e.TgZ(20,"option",111),e._uU(21,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(5);e.xp6(6),e.Q6J("ngModel",t.pushEventOfGetCmdParamter),e.xp6(11),e.Q6J("ngModel",t.returnEventOfGetCmdParamter)}}function ze(_,a){if(1&_&&(e.TgZ(0,"div",14),e.TgZ(1,"label",79),e.SDv(2,95),e.qZA(),e.TgZ(3,"div",11),e.TgZ(4,"div",0),e.TgZ(5,"div",1),e.TgZ(6,"span"),e._uU(7,"Command Parameters Setting"),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.YNc(9,we,3,2,"div",96),e.YNc(10,Fe,22,2,"ng-template",null,97,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_){const t=e.MAs(11),n=e.oxw(4);e.xp6(9),e.Q6J("ngIf","PUT"==n.intervalAction.address.httpMethod)("ngIfElse",t)}}function Ye(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"form"),e.TgZ(1,"div",14),e.TgZ(2,"label",63),e.TgZ(3,"span",38),e._uU(4,"HttpMethod"),e.qZA(),e._UZ(5,"span",91),e.qZA(),e.TgZ(6,"div",11),e.TgZ(7,"input",92),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.httpMethod=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",8),e.TgZ(9,"label",73),e.TgZ(10,"span",38),e._uU(11,"Host"),e.qZA(),e._UZ(12,"span",82),e.qZA(),e.TgZ(13,"div",11),e.TgZ(14,"input",74),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.host=i}),e.qZA(),e.TgZ(15,"div",75),e.TgZ(16,"small"),e._uU(17,"the REST address host can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",8),e.TgZ(19,"label",76),e._uU(20,"Port"),e.qZA(),e.TgZ(21,"div",11),e.TgZ(22,"input",77),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(3).intervalAction.address.port=i}),e.qZA(),e.TgZ(23,"div",78),e.TgZ(24,"small"),e._uU(25,"the REST address port can't be empty and only pure integer is supported!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",14),e.TgZ(27,"label",79),e._uU(28,"Path"),e.qZA(),e.TgZ(29,"div",11),e.TgZ(30,"app-device-core-command-combo-list",93),e.NdJ("cmdMethodEvent",function(i){return e.CHM(t),e.oxw(3).onCmdMethodSelected(i)})("commandSelectedEvent",function(i){return e.CHM(t),e.oxw(3).onCommandSelected(i)}),e.qZA(),e.qZA(),e.qZA(),e.YNc(31,ze,12,2,"div",94),e.qZA()}if(2&_){const t=e.oxw(3);e.xp6(7),e.Q6J("ngModel",t.intervalAction.address.httpMethod),e.xp6(7),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(8),e.Q6J("validate",!0),e.xp6(1),e.Q6J("ngIf",t.intervalAction.address.path&&t.intervalAction.address.httpMethod)}}function je(_,a){if(1&_&&(e.TgZ(0,"div",null,57),e.TgZ(2,"div",58),e.YNc(3,He,57,14,"ng-template",59,60,e.W1O),e.YNc(5,Je,42,13,"ng-template",59,61,e.W1O),e.YNc(7,Ye,32,13,"ng-template",59,62,e.W1O),e.qZA(),e.qZA()),2&_){const t=e.oxw(2);e.xp6(2),e.Q6J("ngSwitch",t.templateSelected),e.xp6(1),e.Q6J("ngSwitchCase",t.template_type_custom),e.xp6(2),e.Q6J("ngSwitchCase",t.template_type_coredata),e.xp6(2),e.Q6J("ngSwitchCase",t.template_type_command)}}function Ke(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",null,116),e.TgZ(2,"form"),e.TgZ(3,"div",8),e.TgZ(4,"label",117),e._uU(5,"Host"),e.qZA(),e.TgZ(6,"div",11),e.TgZ(7,"input",118),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.host=i}),e.qZA(),e.TgZ(8,"div",119),e.TgZ(9,"small"),e._uU(10,"the MQTT host can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",8),e.TgZ(12,"label",120),e._uU(13,"Port"),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"input",121),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.port=i}),e.qZA(),e.TgZ(16,"div",122),e.TgZ(17,"small"),e._uU(18,"the MQTT port can't be empty and only pure integer is supported!!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",14),e.TgZ(20,"label",41),e.TgZ(21,"span",38),e.SDv(22,123),e.qZA(),e._UZ(23,"span",43),e.qZA(),e.TgZ(24,"div",11),e.TgZ(25,"input",44),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.content=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",14),e.TgZ(27,"label",45),e.TgZ(28,"span",38),e._uU(29,"ContentType"),e.qZA(),e._UZ(30,"span",46),e.qZA(),e.TgZ(31,"div",11),e.TgZ(32,"input",47),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",8),e.TgZ(34,"label",124),e._uU(35,"Publisher"),e.qZA(),e.TgZ(36,"div",11),e.TgZ(37,"input",125),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.publisher=i}),e.qZA(),e.TgZ(38,"div",126),e.TgZ(39,"small"),e._uU(40,"the MQTT publisher can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",8),e.TgZ(42,"label",127),e._uU(43,"Topic"),e.qZA(),e.TgZ(44,"div",11),e.TgZ(45,"input",128),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.topic=i}),e.qZA(),e.TgZ(46,"div",129),e.TgZ(47,"small"),e._uU(48,"the MQTT topic can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",14),e.TgZ(50,"label",130),e._uU(51,"QoS"),e.qZA(),e.TgZ(52,"div",11),e.TgZ(53,"input",131),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.qos=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",14),e.TgZ(55,"label",132),e._uU(56,"KeepAlive"),e.qZA(),e.TgZ(57,"div",11),e.TgZ(58,"input",133),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.keepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",14),e.TgZ(60,"label",134),e._uU(61,"Retained"),e.qZA(),e.TgZ(62,"div",11),e.TgZ(63,"select",135),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.retained=i}),e.TgZ(64,"option",136),e._uU(65,"false"),e.qZA(),e.TgZ(66,"option",104),e._uU(67,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"div",14),e.TgZ(69,"label",137),e._uU(70,"AutoReconnect"),e.qZA(),e.TgZ(71,"div",11),e.TgZ(72,"select",138),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.autoReconnect=i}),e.TgZ(73,"option",136),e._uU(74,"true"),e.qZA(),e.TgZ(75,"option",104),e._uU(76,"false"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",14),e.TgZ(78,"label",139),e._uU(79,"ConnectTimeout"),e.qZA(),e.TgZ(80,"div",11),e.TgZ(81,"input",140),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).intervalAction.address.connectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(7),e.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),e.Q6J("ngModel",t.intervalAction.address.host),e.xp6(8),e.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),e.Q6J("ngModel",t.intervalAction.address.port),e.xp6(10),e.Q6J("ngModel",t.intervalAction.content),e.xp6(7),e.Q6J("ngModel",t.intervalAction.contentType),e.xp6(5),e.ekj("is-invalid",!t.intervalAction.address.publisher)("is-valid",t.intervalAction.address.publisher),e.Q6J("ngModel",t.intervalAction.address.publisher),e.xp6(8),e.ekj("is-invalid",!t.intervalAction.address.topic)("is-valid",t.intervalAction.address.topic),e.Q6J("ngModel",t.intervalAction.address.topic),e.xp6(8),e.Q6J("ngModel",t.intervalAction.address.qos),e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.keepAlive),e.xp6(5),e.Q6J("ngModel",t.intervalAction.address.retained),e.xp6(1),e.Q6J("ngValue",!1),e.xp6(2),e.Q6J("ngValue",!0),e.xp6(6),e.Q6J("ngModel",t.intervalAction.address.autoReconnect),e.xp6(1),e.Q6J("ngValue",!0),e.xp6(2),e.Q6J("ngValue",!1),e.xp6(6),e.Q6J("ngModel",t.intervalAction.address.connectTimeout)}}function Be(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",7),e.TgZ(1,"form"),e.TgZ(2,"div",8),e.TgZ(3,"label",9),e.SDv(4,10),e.qZA(),e.TgZ(5,"div",11),e.TgZ(6,"input",12),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.name=i}),e.qZA(),e.TgZ(7,"div",13),e.TgZ(8,"small"),e._uU(9,"the interval action name can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",14),e.TgZ(11,"label",15),e.SDv(12,16),e.qZA(),e.TgZ(13,"div",11),e.YNc(14,Ue,2,2,"div",17),e.qZA(),e.qZA(),e.TgZ(15,"div",14),e.TgZ(16,"label",18),e.SDv(17,19),e.qZA(),e.TgZ(18,"div",11),e.TgZ(19,"select",20),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.adminState=i}),e.TgZ(20,"option",21),e._uU(21,"UNLOCKED"),e.qZA(),e.TgZ(22,"option",22),e._uU(23,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",14),e.TgZ(25,"label",23),e.SDv(26,24),e.qZA(),e.TgZ(27,"div",11),e.TgZ(28,"div",0),e.TgZ(29,"div",1),e.TgZ(30,"div",25),e.TgZ(31,"span",26),e.TgZ(32,"input",27),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.address.type=i})("change",function(){return e.CHM(t),e.oxw().typeToggle("REST")}),e.qZA(),e.TgZ(33,"label",28),e._uU(34,"REST"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",25),e.TgZ(36,"span",29),e.NdJ("click",function(){return e.CHM(t),e.oxw().typeToggle("MQTT")}),e.TgZ(37,"input",30),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.address.type=i}),e.qZA(),e.TgZ(38,"label",31),e._uU(39,"MQTT"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(40,"div",25),e.TgZ(41,"span",29),e.NdJ("click",function(){return e.CHM(t),e.oxw().typeToggle("EMAIL")}),e.TgZ(42,"input",32),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.address.type=i}),e.qZA(),e.TgZ(43,"label",33),e._uU(44,"EMAIL"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(45,xe,10,12,"div",34),e.TgZ(46,"div",7),e.YNc(47,je,9,4,"div",35),e.YNc(48,Ke,82,31,"div",35),e.TgZ(49,"div",null,36),e.TgZ(51,"form"),e.TgZ(52,"div",14),e.TgZ(53,"label",37),e.TgZ(54,"span",38),e._uU(55,"EmailRecipients"),e.qZA(),e._UZ(56,"span",39),e.qZA(),e.TgZ(57,"div",11),e.TgZ(58,"input",40),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().addressEmailRecipients=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",14),e.TgZ(60,"label",41),e.TgZ(61,"span",38),e.SDv(62,42),e.qZA(),e._UZ(63,"span",43),e.qZA(),e.TgZ(64,"div",11),e.TgZ(65,"input",44),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.content=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(66,"div",14),e.TgZ(67,"label",45),e.TgZ(68,"span",38),e._uU(69,"ContentType"),e.qZA(),e._UZ(70,"span",46),e.qZA(),e.TgZ(71,"div",11),e.TgZ(72,"input",47),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().intervalAction.contentType=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.intervalAction.name)("is-valid",t.intervalAction.name),e.Q6J("ngModel",t.intervalAction.name),e.xp6(8),e.Q6J("ngIf",t.selectedIntervalDefault),e.xp6(5),e.Q6J("ngModel",t.intervalAction.adminState),e.xp6(12),e.ekj("badge-secondary",t.intervalAction.address.type!==t.addr_type_REST)("badge-primary",t.intervalAction.address.type===t.addr_type_REST),e.xp6(1),e.Q6J("ngModel",t.intervalAction.address.type),e.xp6(4),e.ekj("badge-secondary",t.intervalAction.address.type!==t.addr_type_MQTT)("badge-primary",t.intervalAction.address.type===t.addr_type_MQTT),e.xp6(1),e.Q6J("ngModel",t.intervalAction.address.type),e.xp6(4),e.ekj("badge-secondary",t.intervalAction.address.type!==t.addr_type_EMAIL)("badge-primary",t.intervalAction.address.type===t.addr_type_EMAIL),e.xp6(1),e.Q6J("ngModel",t.intervalAction.address.type),e.xp6(3),e.Q6J("ngIf",t.intervalAction.address.type===t.addr_type_REST),e.xp6(2),e.Q6J("ngIf","REST"===t.intervalAction.address.type),e.xp6(1),e.Q6J("ngIf",(null==t.intervalAction.address?null:t.intervalAction.address.type)===t.addr_type_MQTT),e.xp6(1),e.Udp("display",t.intervalAction.address.type!==t.addr_type_EMAIL?"none":""),e.xp6(9),e.Q6J("ngModel",t.addressEmailRecipients),e.xp6(7),e.Q6J("ngModel",t.intervalAction.content),e.xp6(7),e.Q6J("ngModel",t.intervalAction.contentType)}}let We=(()=>{class _{constructor(t,n,i,o,r){this.schedulerSvc=t,this.msgSvc=n,this.route=i,this.router=o,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="custom",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="true",this.returnEventOfGetCmdParamter="true",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={},this.intervalActionOrigin={},this.intervalAction.address={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(t=>{t.intervalActionName&&this.schedulerSvc.findIntervalActionByName(t.intervalActionName).subscribe(n=>{this.intervalAction=JSON.parse(JSON.stringify(n.action)),this.intervalActionOrigin=JSON.parse(JSON.stringify(n.action)),this.intervalActionOrigin.adminState=""===this.intervalActionOrigin.adminState?"UNLOCKED":this.intervalActionOrigin.adminState,this.intervalAction.adminState=""===this.intervalAction.adminState?"UNLOCKED":this.intervalAction.adminState,this.addressEmailRecipients=this.intervalAction.address.recipients?this.intervalAction.address.recipients.toString():"",this.findDefaultSelectedIntervalByName(this.intervalAction.intervalName),setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)})})}initDatePickr(){let t=this;this.calendarStart=(0,P.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(n,i,o){t.intervalAction.address.path=t.coredataSvcAvailableAPI[0]+i}})}setActionDefaultProperties(){switch(this.intervalAction.address.type){case this.addr_type_REST:this.intervalAction.address.httpMethod="GET";break;case this.addr_type_MQTT:this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}findDefaultSelectedIntervalByName(t){this.schedulerSvc.findIntervalByName(t).subscribe(n=>{this.selectedIntervalDefault=n.interval})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(t){switch(this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=this.addr_type_REST,this.templateSelected=t,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300)}}typeToggle(t){this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=t,this.templateSelected="custom",setTimeout(()=>{this.renderPopoverComponent()},300)}onCmdMethodSelected(t){this.intervalAction.address.httpMethod=t,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(t){this.intervalAction.address.path=t.path,this.commandServiceTemplateRequestParameters=t.parameters}onSingleIntervalSelected(t){this.intervalAction.intervalName=t.name}isPureIntegerType(t){return!isNaN(t)&&parseFloat(t)===parseInt(t)}validate(){let t=!0,n=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:n&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(t=!1);break;case this.addr_type_MQTT:n&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(t=!1);break;case this.addr_type_EMAIL:n&&(t=!1)}return t}getAllCmdTemplateParametersValue(){var t;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let n={};return null===(t=this.commandServiceTemplateRequestParameters)||void 0===t||t.forEach(i=>{""!==$(`#cmd-param-${i.resourceName}`).val().trim()&&(n[i.resourceName]=$(`#cmd-param-${i.resourceName}`).val().trim())}),JSON.stringify(n)}resolveCommandTemplateParameterSuffix(){if(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent")){let t=this.intervalAction.address.path.split("?");this.intervalAction.address.path=t[0],t[1].split("&").forEach(o=>{let r=o.split("=");"ds-pushevent"===r[0]?this.pushEventOfGetCmdParamter=r[1]:"ds-returnevent"===r[0]&&(this.returnEventOfGetCmdParamter=r[1])})}}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}save(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.updateIntervalAction(this.intervalAction).subscribe(t=>{this.errorSvc.handleErrorForAPI(t)||(this.msgSvc.success("Update interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(h.G),e.Y36(T.e),e.Y36(s.gz),e.Y36(s.F0),e.Y36(p.T))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-edit-interval-action"]],decls:8,vars:2,consts:function(){let a,t,n,i,o,r,N,A,v,m,f,S,R,Z,L,M,c;return a="\u7F16\u8F91 Interval \u4EFB\u52A1",t="\u4FDD\u5B58",n="\u540D\u5B57",i="Interval\u540D\u5B57",o="\u7BA1\u7406\u72B6\u6001",r="\u5730\u5740",N="\u5185\u5BB9",A="\u53EF\u4EE5\u7528\u7684\u6A21\u677F >>",v="CoreData\u670D\u52A1\u6A21\u677F",m="Command\u670D\u52A1\u6A21\u677F",f="\u81EA\u5B9A\u4E49\u6A21\u677F",S="\u5185\u5BB9",R="Parameters",Z="" + "\ufffd0\ufffd" + "",L="pushevent",M="returnevent",c="\u5185\u5BB9",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],t,["class","card-body",4,"ngIf"],[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],n,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],i,["class","mb-3",4,"ngIf"],["for","adminState",1,"col-md-2","col-form-label"],o,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],r,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","REST",1,"form-check-label"],[1,"badge",3,"click"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["for","Content",1,"col-md-2","col-form-label"],N,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],[1,"mb-3"],[3,"validate","selectedInterval","intervalSelectedEvent"],[1,"mr-2","text-primary"],A,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","custom template will be choosed by default",1,"fa","fa-question-circle-o","fa-lg","mr-2"],["role","button",1,"badge","mr-2",3,"click"],v,m,f,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],["for","addressPath","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],S,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],R,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],Z,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],L,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","true indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","true"],["value","false"],["for","ds-returnevent",1,"col-md-2","col-form-label"],M,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"],["MQTT",""],["for","addressHost","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHost","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostFeedback",1,"invalid-feedback"],["for","addressPort","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPort","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortFeedback",1,"invalid-feedback"],c,["for","addressPublisher","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],["for","addressTopic","required","",1,"col-md-2","col-form-label"],["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],["for","addressQoS","required","",1,"col-md-2","col-form-label"],["type","number","id","addressQoS","name","addressQoS","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive","required","",1,"col-md-2","col-form-label"],["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],["selected","",3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return n.save()}),e.SDv(6,5),e.qZA(),e.qZA(),e.YNc(7,Be,73,30,"div",6),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",n.validate()),e.xp6(2),e.Q6J("ngIf",n.intervalAction))},directives:[I.O5,l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr,l._,U,I.RF,I.n9,x.P,I.sg,l.wV],styles:[""]}),_})();var et=g(8253),tt=g(1964),nt=g(4294),it=g(5894),ot=g(7216);let H=(()=>{class _{constructor(t,n){this.router=t,this.schedulerSvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.schedulerSvc.ping().pipe((0,nt.q)(1),(0,it.K)(i=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"scheduler",routerPath:`/${n.url.split("/")[1]}`}})),(0,ot.z)(()=>(0,tt.of)(!0)))}}return _.\u0275fac=function(t){return new(t||_)(e.LFG(s.F0),e.LFG(h.G))},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const _t=[{path:"",component:q,canActivate:[et.a,H],canActivateChild:[H],children:[{path:"",redirectTo:"interval-center",pathMatch:"full"},{path:"interval-center",component:D,children:[{path:"",redirectTo:"interval-list",pathMatch:"full"},{path:"interval-list",component:y},{path:"add-interval",component:Ce},{path:"edit-interval",component:Ie}]},{path:"interval-action-center",component:ue,children:[{path:"",redirectTo:"interval-action-list",pathMatch:"full"},{path:"interval-action-list",component:fe},{path:"add-interval-action",component:ye},{path:"edit-interval-action",component:We}]}]}];let at=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[s.Bz.forChild(_t)],s.Bz]}),_})();var lt=g(6342);let dt=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[I.ez,l.u5,lt.Y,at]]}),_})()},7982:(Ee,b,g)=>{g.d(b,{V:()=>q});var I=g(1841),l=g(5894),s=g(476),e=g(4889);let q=(()=>{class D{constructor(T,p){this.http=T,this.errorSvc=p,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new I.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,l.K)(p=>this.errorSvc.handleError(p)))}findCommnadsByDeviceId(T){return this.http.get(`${this.commandsByDeviceIdUrl}${T}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}allDeviceCoreCommandsPagination(T,p){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${T}&limit=${p}`).pipe((0,l.K)(O=>this.errorSvc.handleError(O)))}findDeviceAssociatedCommnadsByDeviceName(T){return this.http.get(`${this.commandsByDeviceNameUrl}${T}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,l.K)(p=>this.errorSvc.handleError(p)))}issueGetBinaryCmd(T,p){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${T}/command/${p}`,{responseType:"arraybuffer"}).pipe((0,l.K)(O=>this.errorSvc.handleError(O)))}issueGetCmd(T,p){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${T}/${p}?ds-pushevent=true&ds-returnevent=true`).pipe((0,l.K)(O=>this.errorSvc.handleError(O)))}issueSetCmd(T,p,u){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${T}/${p}`,JSON.stringify(u),this.httpPostOrPutJSONOptions).pipe((0,l.K)(V=>this.errorSvc.handleError(V)))}}return D.\u0275fac=function(T){return new(T||D)(s.LFG(I.eN),s.LFG(e.T))},D.\u0275prov=s.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/536.77ceca190a98a8038a03.js b/cmd/edgex-ui-server/static/web/zh/536.77ceca190a98a8038a03.js deleted file mode 100644 index ff8750ec..00000000 --- a/cmd/edgex-ui-server/static/web/zh/536.77ceca190a98a8038a03.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[536],{5886:(N_,U,E)=>{E.r(U),E.d(U,{SchedulerModule:()=>de});var p=E(8583),l=E(3092),A=E(9502),_=E(476);let P=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-scheduler"]],decls:13,vars:0,consts:function(){let a,e;return a="\u5355\u4F4D\u95F4\u9694",e="Interval\u4EFB\u52A1",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./interval-center","routerLinkActive","active",1,"nav-link"],a,["routerLink","./interval-action-center","routerLinkActive","active",1,"nav-link"],e,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.TgZ(5,"span"),_.SDv(6,5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(7,"li",3),_.TgZ(8,"a",6),_.TgZ(9,"span"),_.SDv(10,7),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",8),_._UZ(12,"router-outlet"),_.qZA(),_.qZA())},directives:[A.yS,A.Od,A.lC],styles:[""]}),o})(),O=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[A.lC],styles:[""]}),o})();var M=E(8391),s=E(7822),g=E(4889);function u(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",50),_.TgZ(1,"div",51),_.TgZ(2,"button",52),_.NdJ("click",function(){return _.CHM(e),_.oxw().refresh()}),_.TgZ(3,"span"),_._UZ(4,"i",53),_.TgZ(5,"span"),_.SDv(6,54),_.qZA(),_.qZA(),_.qZA(),_.TgZ(7,"button",55),_.TgZ(8,"span"),_._UZ(9,"i",56),_.TgZ(10,"span"),_.SDv(11,57),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",58),_.NdJ("click",function(){return _.CHM(e),_.oxw().edit()}),_.TgZ(13,"span"),_._UZ(14,"i",59),_.TgZ(15,"span"),_.SDv(16,60),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"button",61),_.NdJ("click",function(){return _.CHM(e),_.oxw().deleteConfirm()}),_.TgZ(18,"span"),_._UZ(19,"i",62),_.TgZ(20,"span"),_.SDv(21,63),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(12),_.Q6J("disabled",1!==e.intervalSelected.length),_.xp6(5),_.Q6J("disabled",0===e.intervalSelected.length)}}function h(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"input",64),_.NdJ("click",function(n){return _.CHM(e),_.oxw().selectAll(n)}),_.qZA()}if(2&o){const e=_.oxw();_.Q6J("checked",e.isCheckedAll())}}function b(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",64),_.NdJ("click",function(n){const r=_.CHM(e).$implicit;return _.oxw().selectOne(n,r)}),_.qZA(),_.qZA(),_.TgZ(3,"td",65),_._uU(4),_.qZA(),_.TgZ(5,"td",65),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.qZA(),_.qZA()}if(2&o){const e=a.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.start),_.xp6(2),_.Oqu(e.end),_.xp6(2),_.Oqu(e.interval),_.xp6(2),_.Oqu(!!e.runOnce)}}let q=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r,this.enableSelectAll=!0,this.singleIntervalSelectedEvent=new _.vpe,this.toolbars=!0,this.intervalList=[],this.intervalSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName?this.schedulerSvc.findIntervalByName(e.intervalName).subscribe(t=>{this.intervalList=[],this.intervalList.push(t.interval)}):this.findIntervalsPagination()})}refresh(){this.schedulerSvc.findAllIntervalsPagination(0,this.pageLimit).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.intervalList=e.intervals,this.msgSvc.success("refresh"),this.resetPagination())})}findIntervalsPagination(){this.schedulerSvc.findAllIntervalsPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.intervalList=e.intervals)})}onSingleIntervalSelectedEmitter(){this.singleIntervalSelectedEvent.emit(this.singleIntervalSelected)}isSingleChecked(e){var t;return(null===(t=this.singleIntervalSelected)||void 0===t?void 0:t.name)===e}selectSingleInterval(e,t){e.target.checked?this.intervalList.forEach(i=>{i.name===t&&(this.singleIntervalSelected=i)}):this.singleIntervalSelected={},this.onSingleIntervalSelectedEmitter()}isCheckedAll(){let e=!0;return this.intervalList&&0===this.intervalList.length&&(e=!1),this.intervalList.forEach(t=>{-1===this.intervalSelected.findIndex(n=>n.name===t.name)&&(e=!1)}),e}selectAll(e){this.intervalList.forEach(e.target.checked?n=>{-1===this.intervalSelected.findIndex(i=>i.name===n.name)&&this.intervalSelected.push(n)}:n=>{let i=this.intervalSelected.findIndex(r=>r.name===n.name);-1!==i&&this.intervalSelected.splice(i,1)})}isChecked(e){return this.enableSelectAll?this.intervalSelected.findIndex(t=>t.name===e)>=0:this.isSingleChecked(e)}selectOne(e,t){if(!this.enableSelectAll)return void this.selectSingleInterval(e,t.name);if(e.target.checked)return void this.intervalSelected.push(t);let i=this.intervalSelected.findIndex(r=>r.name===t.name);-1!==i&&this.intervalSelected.splice(i,1)}edit(){this.router.navigate(["../edit-interval"],{relativeTo:this.route,queryParams:{intervalName:this.intervalSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervals(){this.intervalSelected.forEach((e,t)=>{this.schedulerSvc.deleteIntervalByName(e.name).subscribe(n=>{this.errSvc.handleErrorForAPI(n)||(this.intervalSelected.splice(t,1),this.intervalList.forEach((i,r)=>{i.name!==e.name||this.intervalList.splice(r,1)}),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findIntervalsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalsPagination()}prePage(){this.setPagination(-1),this.findIntervalsPagination()}nextPage(){this.setPagination(1),this.findIntervalsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-list"]],inputs:{enableSelectAll:"enableSelectAll",toolbars:"toolbars",singleIntervalSelected:"singleIntervalSelected"},outputs:{singleIntervalSelectedEvent:"singleIntervalSelectedEvent"},decls:66,vars:6,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c,N;return a="Interval \u5217\u8868",e="ID",t="\u540D\u5B57",n="\u5F00\u59CB",i="\u7ED3\u675F\u65F6\u95F4",r="\u5355\u4F4D\u95F4\u9694",C="\u6267\u884C\u5355\u6B21",T="\u6BCF\u9875\u6761\u76EE",v="\u4E0A\u4E00\u9875",S="\u4E0B\u4E00\u9875",m="\u8B66\u544A",R="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",f="\u53D6\u6D88",Z="\u786E\u8BA4",D="\u5237\u65B0",L="\u6DFB\u52A0",c="\u7F16\u8F91",N="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger"],a,[1,"card-body","p-0","position-relative"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],e,t,n,i,r,C,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],T,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],v,[1,"page-item"],S,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],m,[1,"modal-body"],R,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],f,["type","button",1,"btn","btn-danger",3,"click"],Z,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],D,["type","button","routerLink","../add-interval",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],L,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],c,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],N,["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.YNc(6,u,22,2,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"table",7),_.TgZ(9,"thead",8),_.TgZ(10,"tr"),_.TgZ(11,"th",9),_.YNc(12,h,1,1,"input",10),_.qZA(),_.TgZ(13,"th",9),_.SDv(14,11),_.qZA(),_.TgZ(15,"th",9),_.SDv(16,12),_.qZA(),_.TgZ(17,"th",9),_.SDv(18,13),_.qZA(),_.TgZ(19,"th",9),_.SDv(20,14),_.qZA(),_.TgZ(21,"th",9),_.SDv(22,15),_.qZA(),_.TgZ(23,"th",9),_.SDv(24,16),_.qZA(),_.qZA(),_.qZA(),_.TgZ(25,"tbody"),_.YNc(26,b,15,9,"tr",17),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",18),_.TgZ(28,"nav",19),_.TgZ(29,"ul",20),_.TgZ(30,"li",21),_.TgZ(31,"span",22),_.SDv(32,23),_.qZA(),_.qZA(),_.TgZ(33,"li",24),_.TgZ(34,"select",25),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(35,"option",26),_._uU(36,"5"),_.qZA(),_.TgZ(37,"option",27),_._uU(38,"10"),_.qZA(),_.TgZ(39,"option",28),_._uU(40,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(41,"li",29),_.TgZ(42,"button",30),_.NdJ("click",function(){return t.prePage()}),_._UZ(43,"i",31),_.TgZ(44,"span"),_.SDv(45,32),_.qZA(),_.qZA(),_.qZA(),_.TgZ(46,"li",33),_.TgZ(47,"button",30),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(48,"span"),_.SDv(49,34),_.qZA(),_._UZ(50,"i",35),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",36),_.TgZ(52,"div",37),_.TgZ(53,"div",38),_.TgZ(54,"div",39),_.TgZ(55,"h5",40),_._UZ(56,"i",41),_.TgZ(57,"span"),_.SDv(58,42),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",43),_.SDv(60,44),_.qZA(),_.TgZ(61,"div",45),_.TgZ(62,"button",46),_.SDv(63,47),_.qZA(),_.TgZ(64,"button",48),_.NdJ("click",function(){return t.deleteIntervals()}),_.SDv(65,49),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(6),_.Q6J("ngIf",t.toolbars),_.xp6(6),_.Q6J("ngIf",t.enableSelectAll),_.xp6(14),_.Q6J("ngForOf",t.intervalList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.intervalList.length))},directives:[p.O5,p.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,A.rH],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();var G=E(9827);let I_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r,this.interval={}}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,G.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,G.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}submit(){this.schedulerSvc.addInterval(this.interval).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("create new interval",`name: ${this.interval.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-interval"]],decls:54,vars:16,consts:function(){let a,e,t,n,i,r,C;return a="\u6DFB\u52A0 Interval",e="\u63D0\u4EA4",t="\u540D\u5B57",n="\u5F00\u59CB",i="\u7ED3\u675F\u65F6\u95F4",r="\u5355\u4F4D\u95F4\u9694",C="\u6267\u884C\u5355\u6B21",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationIntervalName","name","intervalName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],n,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd",1,"col-md-2","col-form-label"],i,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],C,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.submit()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.interval.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_._uU(16,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",13),_.TgZ(18,"label",14),_.SDv(19,15),_.qZA(),_.TgZ(20,"div",10),_.TgZ(21,"div",16),_.TgZ(22,"div",17),_.TgZ(23,"span",18),_._UZ(24,"i",19),_.qZA(),_.qZA(),_.TgZ(25,"input",20),_.NdJ("ngModelChange",function(i){return t.interval.start=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",13),_.TgZ(27,"label",21),_.SDv(28,22),_.qZA(),_.TgZ(29,"div",10),_.TgZ(30,"div",16),_.TgZ(31,"div",17),_.TgZ(32,"span",18),_._UZ(33,"i",19),_.qZA(),_.qZA(),_.TgZ(34,"input",23),_.NdJ("ngModelChange",function(i){return t.interval.end=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(35,"div",13),_.TgZ(36,"label",24),_.TgZ(37,"span",25),_.SDv(38,26),_.qZA(),_._UZ(39,"span",27),_.qZA(),_.TgZ(40,"div",10),_.TgZ(41,"input",28),_.NdJ("ngModelChange",function(i){return t.interval.interval=i}),_.qZA(),_.TgZ(42,"div",29),_.TgZ(43,"small"),_._uU(44,"the interval interval can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(45,"div",13),_.TgZ(46,"label",30),_.SDv(47,31),_.qZA(),_.TgZ(48,"div",10),_.TgZ(49,"select",32),_.NdJ("ngModelChange",function(i){return t.interval.runOnce=i}),_.TgZ(50,"option",33),_._uU(51,"false"),_.qZA(),_.TgZ(52,"option",33),_._uU(53,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",!t.interval.name||!t.interval.interval),_.xp6(8),_.ekj("is-invalid",!t.interval.name)("is-valid",t.interval.name),_.Q6J("ngModel",t.interval.name),_.xp6(12),_.Q6J("ngModel",t.interval.start),_.xp6(9),_.Q6J("ngModel",t.interval.end),_.xp6(7),_.ekj("is-invalid",!t.interval.interval)("is-valid",t.interval.interval),_.Q6J("ngModel",t.interval.interval),_.xp6(8),_.Q6J("ngModel",t.interval.runOnce),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function C_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",8),_.TgZ(2,"label",9),_.SDv(3,10),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"input",12),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.name=n}),_.qZA(),_.TgZ(6,"div",13),_.TgZ(7,"small"),_._uU(8,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",14),_.TgZ(10,"label",15),_.SDv(11,16),_.qZA(),_.TgZ(12,"div",11),_.TgZ(13,"div",17),_.TgZ(14,"div",18),_.TgZ(15,"span",19),_._UZ(16,"i",20),_.qZA(),_.qZA(),_.TgZ(17,"input",21),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.start=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",14),_.TgZ(19,"label",22),_.SDv(20,23),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"div",17),_.TgZ(23,"div",18),_.TgZ(24,"span",19),_._UZ(25,"i",20),_.qZA(),_.qZA(),_.TgZ(26,"input",24),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.end=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",14),_.TgZ(28,"label",25),_.TgZ(29,"span",26),_.SDv(30,27),_.qZA(),_._UZ(31,"span",28),_.qZA(),_.TgZ(32,"div",11),_.TgZ(33,"input",29),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.interval=n}),_.qZA(),_.TgZ(34,"div",30),_.TgZ(35,"small"),_._uU(36,"the interval interval can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(37,"div",14),_.TgZ(38,"label",31),_.SDv(39,32),_.qZA(),_.TgZ(40,"div",11),_.TgZ(41,"select",33),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.runOnce=n}),_.TgZ(42,"option",34),_._uU(43,"false"),_.qZA(),_.TgZ(44,"option",34),_._uU(45,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(5),_.ekj("is-invalid",!e.interval.name)("is-valid",e.interval.name),_.Q6J("ngModel",e.interval.name),_.xp6(12),_.Q6J("ngModel",e.interval.start),_.xp6(9),_.Q6J("ngModel",e.interval.end),_.xp6(7),_.ekj("is-invalid",!e.interval.interval)("is-valid",e.interval.interval),_.Q6J("ngModel",e.interval.interval),_.xp6(8),_.Q6J("ngModel",e.interval.runOnce),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}let p_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName&&this.schedulerSvc.findIntervalByName(e.intervalName).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.interval=t.interval,this.interval.runOnce=!!this.interval.runOnce,setTimeout(()=>{this.initDatePickr()},300))})})}initDatePickr(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.calendarStart=(0,G.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,G.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}update(){this.schedulerSvc.updateInterval(this.interval).subscribe(e=>{var t;this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("update interval",`name: ${null===(t=this.interval)||void 0===t?void 0:t.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-interval"]],decls:10,vars:3,consts:function(){let a,e,t,n,i,r,C;return a="\u7F16\u8F91 Interval",e="\u63D0\u4EA4",t="\u540D\u5B57",n="\u5F00\u59CB",i="\u7ED3\u675F\u65F6\u95F4",r="\u5355\u4F4D\u95F4\u9694",C="\u6267\u884C\u5355\u6B21",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[4,"ngIf"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","name","intervalName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],n,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd2",1,"col-md-2","col-form-label"],i,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","ISO8601 duration format","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],C,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_._uU(5),_.TgZ(6,"button",4),_.NdJ("click",function(){return t.update()}),_.SDv(7,5),_.qZA(),_.qZA(),_.TgZ(8,"div",6),_.YNc(9,C_,46,15,"form",7),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.hij(" ",null==t.interval?null:t.interval.name," "),_.xp6(1),_.Q6J("disabled",!(null!=t.interval&&t.interval.name)),_.xp6(3),_.Q6J("ngIf",t.interval))},directives:[p.O5,l._Y,l.JL,l.F,l.Fj,l.JJ,l.On,l.Q7,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),u_=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-action-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[A.lC],styles:[""]}),o})();const v_=function(o){return{intervalName:o}};function S_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(n){const r=_.CHM(e).$implicit;return _.oxw().selectOne(n,r)}),_.qZA(),_.qZA(),_.TgZ(3,"td",61),_._uU(4),_.qZA(),_.TgZ(5,"td",61),_._uU(6),_.qZA(),_.TgZ(7,"td"),_.TgZ(8,"a",62),_._uU(9),_.qZA(),_.qZA(),_.TgZ(10,"td"),_._uU(11),_.qZA(),_.qZA()}if(2&o){const e=a.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Q6J("queryParams",_.VKq(8,v_,e.intervalName)),_.xp6(1),_.Oqu(e.intervalName),_.xp6(2),_.Oqu(e.address.type)}}let m_=(()=>{class o{constructor(e,t,n,i){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.intervalActionList=[],this.intervalActionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName||this.findIntervalActionsPagination()})}refresh(){this.schedulerSvc.findAllIntervalActionsPagination(0,this.pageLimit).subscribe(e=>{this.intervalActionList=e.actions,this.msgSvc.success("refresh"),this.resetPagination()})}findIntervalActionsPagination(){this.schedulerSvc.findAllIntervalActionsPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.intervalActionList=e.actions})}isCheckedAll(){let e=!0;return this.intervalActionList&&0===this.intervalActionList.length&&(e=!1),this.intervalActionList.forEach(t=>{-1===this.intervalActionSelected.findIndex(n=>n.name===t.name)&&(e=!1)}),e}selectAll(e){this.intervalActionList.forEach(e.target.checked?n=>{-1===this.intervalActionSelected.findIndex(i=>i.name===n.name)&&this.intervalActionSelected.push(n)}:n=>{let i=this.intervalActionSelected.findIndex(r=>r.name===n.name);-1!==i&&this.intervalActionSelected.splice(i,1)})}isChecked(e){return this.intervalActionSelected.findIndex(t=>t.name===e)>=0}selectOne(e,t){if(e.target.checked)return void this.intervalActionSelected.push(t);let i=this.intervalActionSelected.findIndex(r=>r.name===t.name);-1!==i&&this.intervalActionSelected.splice(i,1)}edit(){this.router.navigate(["../edit-interval-action"],{relativeTo:this.route,queryParams:{intervalActionName:this.intervalActionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervalActions(){this.intervalActionSelected.forEach((e,t)=>{this.schedulerSvc.deleteIntervalActionByName(e.name).subscribe(()=>{this.intervalActionList.forEach((n,i)=>{n.name!==e.name||this.intervalActionList.splice(i,1)}),this.intervalActionSelected.splice(t,1),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findIntervalActionsPagination()})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalActionsPagination()}prePage(){this.setPagination(-1),this.findIntervalActionsPagination()}nextPage(){this.setPagination(1),this.findIntervalActionsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-action-list"]],decls:84,vars:7,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L;return a="Interval \u4EFB\u52A1\u5217\u8868",e="\u5237\u65B0",t="\u6DFB\u52A0",n="\u7F16\u8F91",i="\u5220\u9664",r="ID",C="\u540D\u5B57",T="\u76F8\u5173Interval",v="\u5730\u5740\u7C7B\u578B",S="\u6BCF\u9875\u6761\u76EE",m="\u4E0A\u4E00\u9875",R="\u4E0B\u4E00\u9875",f="\u8B66\u544A",Z="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",D="\u53D6\u6D88",L="\u786E\u8BA4",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],a,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],e,["type","button","routerLink","../add-interval-action",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],t,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],r,C,T,v,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],S,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],m,[1,"page-item"],R,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],f,[1,"modal-body"],Z,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],D,["type","button",1,"btn","btn-danger",3,"click"],L,[1,"user-select-all"],["routerLink","../../interval-center",3,"queryParams"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(9,"span"),_._UZ(10,"i",8),_.TgZ(11,"span"),_.SDv(12,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"button",10),_.TgZ(14,"span"),_._UZ(15,"i",11),_.TgZ(16,"span"),_.SDv(17,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(19,"span"),_._UZ(20,"i",14),_.TgZ(21,"span"),_.SDv(22,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(24,"span"),_._UZ(25,"i",17),_.TgZ(26,"span"),_.SDv(27,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",19),_.TgZ(29,"table",20),_.TgZ(30,"thead",21),_.TgZ(31,"tr"),_.TgZ(32,"th",22),_.TgZ(33,"input",23),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(34,"th",22),_.SDv(35,24),_.qZA(),_.TgZ(36,"th",22),_.SDv(37,25),_.qZA(),_.TgZ(38,"th",22),_.SDv(39,26),_.qZA(),_.TgZ(40,"th",22),_.SDv(41,27),_.qZA(),_.qZA(),_.qZA(),_.TgZ(42,"tbody"),_.YNc(43,S_,12,10,"tr",28),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"div",29),_.TgZ(45,"nav",30),_.TgZ(46,"ul",31),_.TgZ(47,"li",32),_.TgZ(48,"span",33),_.SDv(49,34),_.qZA(),_.qZA(),_.TgZ(50,"li",35),_.TgZ(51,"select",36),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(52,"option",37),_._uU(53,"5"),_.qZA(),_.TgZ(54,"option",38),_._uU(55,"10"),_.qZA(),_.TgZ(56,"option",39),_._uU(57,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(58,"li",40),_.TgZ(59,"button",41),_.NdJ("click",function(){return t.prePage()}),_._UZ(60,"i",42),_.TgZ(61,"span"),_.SDv(62,43),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"li",44),_.TgZ(64,"button",41),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(65,"span"),_.SDv(66,45),_.qZA(),_._UZ(67,"i",46),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"div",47),_.TgZ(69,"div",48),_.TgZ(70,"div",49),_.TgZ(71,"div",50),_.TgZ(72,"h5",51),_._UZ(73,"i",52),_.TgZ(74,"span"),_.SDv(75,53),_.qZA(),_.qZA(),_.qZA(),_.TgZ(76,"div",54),_.TgZ(77,"span"),_.SDv(78,55),_.qZA(),_.qZA(),_.TgZ(79,"div",56),_.TgZ(80,"button",57),_.SDv(81,58),_.qZA(),_.TgZ(82,"button",59),_.NdJ("click",function(){return t.deleteIntervalActions()}),_.SDv(83,60),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(18),_.Q6J("disabled",1!==t.intervalActionSelected.length),_.xp6(5),_.Q6J("disabled",0===t.intervalActionSelected.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(10),_.Q6J("ngForOf",t.intervalActionList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.intervalActionList.length))},directives:[A.rH,p.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,A.yS],styles:[""]}),o})();function R_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",10),_.NdJ("click",function(n){return _.CHM(e),_.oxw().close(n)}),_.qZA()}}let V=(()=>{class o{constructor(){this.visible=!1,this.validate=!1,this.intervalSelectedEvent=new _.vpe,this.selectedInterval={}}ngOnInit(){}onSingleIntervalSelected(e){this.selectedInterval=e,this.intervalSelectedEvent.emit(e)}close(e){e.stopPropagation(),this.visible=!1}toggle(e){e.stopImmediatePropagation(),this.visible=!this.visible}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-combo-list"]],inputs:{validate:"validate",selectedInterval:"selectedInterval"},outputs:{intervalSelectedEvent:"intervalSelectedEvent"},decls:12,vars:11,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"click"],["type","text","name","selectedInterval","readonly","readonly","maxlength","0","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"combo-body","shadow","rounded"],[3,"singleIntervalSelected","enableSelectAll","toolbars","singleIntervalSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(e,t){1&e&&(_.YNc(0,R_,1,0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"div",2),_.NdJ("click",function(i){return t.toggle(i)}),_.TgZ(3,"input",3),_.NdJ("ngModelChange",function(i){return t.selectedInterval.name=i}),_.qZA(),_.TgZ(4,"div",4),_.TgZ(5,"span",5),_._UZ(6,"i",6),_.qZA(),_.qZA(),_.TgZ(7,"div",7),_.TgZ(8,"small"),_._uU(9,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(10,"div",8),_.TgZ(11,"app-interval-list",9),_.NdJ("singleIntervalSelectedEvent",function(i){return t.onSingleIntervalSelected(i)}),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.Q6J("ngIf",t.visible),_.xp6(3),_.ekj("is-invalid",!t.selectedInterval.name&&t.validate)("is-valid",t.selectedInterval.name&&t.validate),_.Q6J("ngModel",t.selectedInterval.name),_.xp6(7),_.Udp("display",t.visible?"":"none"),_.xp6(1),_.Q6J("singleIntervalSelected",t.selectedInterval)("enableSelectAll",!1)("toolbars",!1))},directives:[p.O5,l.Fj,l.nD,l.Q7,l.JJ,l.On,q],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),o})();var H=E(9549);function f_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("coredata")}),_.SDv(2,92),_.qZA(),_.TgZ(3,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("command")}),_.SDv(4,93),_.qZA(),_.TgZ(5,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("custom")}),_.SDv(6,94),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(1),_.ekj("badge-secondary","coredata"!==e.templateSelected)("badge-primary","coredata"===e.templateSelected),_.xp6(2),_.ekj("badge-secondary","command"!==e.templateSelected)("badge-primary","command"===e.templateSelected),_.xp6(2),_.ekj("badge-secondary","custom"!==e.templateSelected)("badge-primary","custom"===e.templateSelected)}}function Z_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.SDv(3,102),_.qZA(),_.TgZ(4,"div",14),_.TgZ(5,"select",103),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",104),_._uU(7,"GET"),_.qZA(),_.TgZ(8,"option",105),_._uU(9,"POST"),_.qZA(),_.TgZ(10,"option",106),_._uU(11,"PUT"),_.qZA(),_.TgZ(12,"option",107),_._uU(13,"DELETE"),_.qZA(),_.TgZ(14,"option",108),_._uU(15,"PATCH"),_.qZA(),_.TgZ(16,"option",109),_._uU(17,"HEAD"),_.qZA(),_.TgZ(18,"option",110),_._uU(19,"TRACE"),_.qZA(),_.TgZ(20,"option",111),_._uU(21,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(22,"div",11),_.TgZ(23,"label",112),_.SDv(24,113),_.qZA(),_.TgZ(25,"div",14),_.TgZ(26,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(27,"div",115),_.TgZ(28,"small"),_._uU(29,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",11),_.TgZ(31,"label",116),_.SDv(32,117),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(35,"div",119),_.TgZ(36,"small"),_.SDv(37,120),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"div",17),_.TgZ(39,"label",121),_.SDv(40,122),_.qZA(),_.TgZ(41,"div",14),_.TgZ(42,"input",123),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(43,"div",17),_.TgZ(44,"label",50),_.TgZ(45,"span",51),_.SDv(46,124),_.qZA(),_._UZ(47,"span",53),_.qZA(),_.TgZ(48,"div",14),_.TgZ(49,"input",54),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(50,"div",17),_.TgZ(51,"label",55),_.TgZ(52,"span",51),_._uU(53,"ContentType"),_.qZA(),_._UZ(54,"span",56),_.qZA(),_.TgZ(55,"div",14),_.TgZ(56,"input",57),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}function D_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.SDv(3,125),_.qZA(),_.TgZ(4,"div",14),_.TgZ(5,"select",103),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",107),_._uU(7,"DELETE"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"label",112),_.TgZ(10,"span",51),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",126),_.qZA(),_.TgZ(13,"div",14),_.TgZ(14,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",115),_.TgZ(16,"small"),_.SDv(17,127),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"label",116),_.SDv(20,128),_.qZA(),_.TgZ(21,"div",14),_.TgZ(22,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",119),_.TgZ(24,"small"),_.SDv(25,129),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",17),_.TgZ(27,"label",121),_.TgZ(28,"span",51),_.SDv(29,130),_.qZA(),_._UZ(30,"span",131),_.qZA(),_.TgZ(31,"div",14),_.TgZ(32,"input",132),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",17),_.TgZ(34,"label",133),_.SDv(35,134),_.qZA(),_.TgZ(36,"div",14),_.TgZ(37,"div",135),_.TgZ(38,"div",136),_.TgZ(39,"span",137),_._UZ(40,"i",138),_.qZA(),_.qZA(),_.TgZ(41,"input",139),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).coredataRequestParameter=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(9),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(9),_.Q6J("ngModel",e.coredataRequestParameter)}}function L_(o,a){1&o&&(_.TgZ(0,"div"),_._uU(1," no paramters. "),_.qZA())}function M_(o,a){if(1&o&&(_.TgZ(0,"select",157),_.TgZ(1,"option",78),_._uU(2,"false"),_.qZA(),_.TgZ(3,"option",78),_._uU(4,"true"),_.qZA(),_.qZA()),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function h_(o,a){if(1&o&&_._UZ(0,"input",158),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.MGl("placeholder","valueType: ",e.valueType,"")}}function O_(o,a){if(1&o&&(_.TgZ(0,"div"),_.TgZ(1,"div",17),_.TgZ(2,"label",153),_.SDv(3,154),_.qZA(),_.TgZ(4,"div",14),_.YNc(5,M_,5,4,"select",155),_.YNc(6,h_,1,3,"ng-template",null,156,_.W1O),_.qZA(),_.qZA(),_.qZA()),2&o){const e=a.$implicit,t=_.MAs(7);_.xp6(2),_.s9C("for",e.resourceName),_.xp6(1),_.pQV(e.resourceName),_.QtT(3),_.xp6(2),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function G_(o,a){if(1&o&&(_.TgZ(0,"div"),_.YNc(1,L_,2,0,"div",38),_.YNc(2,O_,8,4,"div",152),_.qZA()),2&o){const e=_.oxw(4);_.xp6(1),_.Q6J("ngIf",0==e.commandServiceTemplateRequestParameters.length),_.xp6(1),_.Q6J("ngForOf",e.commandServiceTemplateRequestParameters)}}function U_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",17),_.TgZ(1,"label",159),_.TgZ(2,"span",51),_.SDv(3,160),_.qZA(),_._UZ(4,"span",161),_.qZA(),_.TgZ(5,"div",14),_.TgZ(6,"select",162),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(4).pushEventOfGetCmdParamter=n}),_.TgZ(7,"option",163),_._uU(8,"yes"),_.qZA(),_.TgZ(9,"option",164),_._uU(10,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",17),_.TgZ(12,"label",165),_.TgZ(13,"span",51),_.SDv(14,166),_.qZA(),_._UZ(15,"span",167),_.qZA(),_.TgZ(16,"div",14),_.TgZ(17,"select",168),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(4).returnEventOfGetCmdParamter=n}),_.TgZ(18,"option",163),_._uU(19,"yes"),_.qZA(),_.TgZ(20,"option",164),_._uU(21,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(4);_.xp6(6),_.Q6J("ngModel",e.pushEventOfGetCmdParamter),_.xp6(11),_.Q6J("ngModel",e.returnEventOfGetCmdParamter)}}function P_(o,a){if(1&o&&(_.TgZ(0,"div",17),_.TgZ(1,"label",121),_.SDv(2,149),_.qZA(),_.TgZ(3,"div",14),_.TgZ(4,"div",6),_.TgZ(5,"div",1),_.TgZ(6,"span"),_._uU(7,"Command Parameters Setting"),_.qZA(),_.qZA(),_.TgZ(8,"div",4),_.YNc(9,G_,3,2,"div",150),_.YNc(10,U_,22,2,"ng-template",null,151,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&o){const e=_.MAs(11),t=_.oxw(3);_.xp6(9),_.Q6J("ngIf","PUT"==t.intervalAction.address.httpMethod)("ngIfElse",e)}}function b_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.TgZ(3,"span",51),_.SDv(4,140),_.qZA(),_._UZ(5,"span",141),_.qZA(),_.TgZ(6,"div",14),_.TgZ(7,"input",142),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"label",112),_.TgZ(10,"span",51),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",126),_.qZA(),_.TgZ(13,"div",14),_.TgZ(14,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",115),_.TgZ(16,"small"),_.SDv(17,143),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"label",116),_.SDv(20,144),_.qZA(),_.TgZ(21,"div",14),_.TgZ(22,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",119),_.TgZ(24,"small"),_.SDv(25,145),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",17),_.TgZ(27,"label",121),_.SDv(28,146),_.qZA(),_.TgZ(29,"div",14),_.TgZ(30,"app-device-core-command-combo-list",147),_.NdJ("cmdMethodEvent",function(n){return _.CHM(e),_.oxw(2).onCmdMethodSelected(n)})("commandSelectedEvent",function(n){return _.CHM(e),_.oxw(2).onCommandSelected(n)}),_.qZA(),_.qZA(),_.qZA(),_.YNc(31,P_,12,2,"div",148),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(7),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("validate",!0),_.xp6(1),_.Q6J("ngIf",e.intervalAction.address.path&&e.intervalAction.address.httpMethod)}}function q_(o,a){if(1&o&&(_.TgZ(0,"div",null,95),_.TgZ(2,"div",96),_.YNc(3,Z_,57,14,"ng-template",97,98,_.W1O),_.YNc(5,D_,42,13,"ng-template",97,99,_.W1O),_.YNc(7,b_,32,13,"ng-template",97,100,_.W1O),_.qZA(),_.qZA()),2&o){const e=_.oxw();_.xp6(2),_.Q6J("ngSwitch",e.templateSelected),_.xp6(1),_.Q6J("ngSwitchCase","custom"),_.xp6(2),_.Q6J("ngSwitchCase","coredata"),_.xp6(2),_.Q6J("ngSwitchCase","command")}}let V_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="coredata",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="yes",this.returnEventOfGetCmdParamter="yes",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={adminState:"UNLOCKED"},this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}ngOnInit(){this.renderPopoverComponent(),this.renderCoredataDefaultTemplate()}initDatePickr(){let e=this;this.calendarStart=(0,G.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(t,n,i){e.intervalAction.address.path=e.coredataSvcAvailableAPI[0]+n}})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(e){switch(this.templateSelected=e,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.httpMethod="",this.intervalAction.address.host="edgex-core-command",this.intervalAction.address.port=59882,this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300),this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}typeToggle(e){this.intervalAction.address.type=e,"REST"===e&&this.templateToggle("coredata")}onCmdMethodSelected(e){this.intervalAction.address.httpMethod=e,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(e){this.intervalAction.address.path=e.path,this.commandServiceTemplateRequestParameters=e.parameters}onSingleIntervalSelected(e){this.intervalAction.intervalName=e.name}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!0,t=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(e=!1);break;case this.addr_type_MQTT:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(e=!1);break;case this.addr_type_EMAIL:t&&(e=!1)}return e}getAllCmdTemplateParametersValue(){var e;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let t={};return null===(e=this.commandServiceTemplateRequestParameters)||void 0===e||e.forEach(n=>{""!==$(`#cmd-param-${n.resourceName}`).val().trim()&&(t[n.resourceName]=$(`#cmd-param-${n.resourceName}`).val().trim())}),JSON.stringify(t)}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}submit(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.addIntervalAction(this.intervalAction).subscribe(e=>{this.errorSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-interval-action"]],decls:176,vars:63,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c,N,I,J,X,x,B,k,W,Q,w,F,z,Y,j,K,__,e_,t_,n_,i_,o_,a_,l_,d_,r_,A_,s_,T_,c_,E_,g_;return a="\u63D0\u793A",e="scheduler\u63D0\u4F9B\u4E86\u4E00\u79CD\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u53EF\u4EE5\u5B9A\u4E49\u64CD\u4F5C\u4E00\u4E9B\u4E8B\u60C5\uFF0C\u6BD4\u5982\u8C03\u7528EdgeX\u670D\u52A1\u7684API\uFF0C\u6BD4\u5982\u8C03\u7528core data\u670D\u52A1\u7684API\u5B9A\u65F6\u6E05\u9664\u91C7\u96C6\u6570\u636E\u7B49\uFF0C\u6216\u8005\u5B9A\u65F6\u8C03\u7528commanf\u670D\u52A1\u4F5C\u4E3A\u5B9A\u65F6\u91C7\u96C6\u4EFB\u52A1\u7B49",t="\u6DFB\u52A0 Interval \u4EFB\u52A1",n="\u63D0\u4EA4",i="\u540D\u5B57",r="Interval\u540D\u5B57",C="\u7BA1\u7406\u72B6\u6001",T="\u5730\u5740",v="Host",S="the MQTT host can't be empty!",m="Port",R="the MQTT port can't be empty and only pure integer is supported!!",f="\u5185\u5BB9",Z="Publisher",D="the MQTT publisher can't be empty!",L="Topic",c="the MQTT topic can't be empty!",N="QoS",I="KeepAlive",J="Retained",X="AutoReconnect",x="ConnectTimeout",B="Email\u63A5\u6536\u8005",k="\u5185\u5BB9",W="CoreData\u670D\u52A1\u6A21\u677F",Q="Command\u670D\u52A1\u6A21\u677F",w="\u81EA\u5B9A\u4E49\u6A21\u677F",F="HttpMethod",z="Host",Y="Port",j="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",K="Path",__="\u5185\u5BB9",e_="HttpMethod",t_="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",n_="Port",i_="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",o_="Path",a_="Parameter",l_="HttpMethod",d_="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",r_="Port",A_="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",s_="Path",T_="Parameters",c_="" + "\ufffd0\ufffd" + "",E_="pushevent",g_="returnevent",[[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],a,[1,"card-body"],e,[1,"card"],[1,"fa","fa-plus","text-danger","mr-1"],t,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],n,[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],i,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],r,[1,"mb-3"],[3,"validate","intervalSelectedEvent"],["for","adminState",1,"col-md-2","col-form-label"],C,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],T,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","REST",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["MQTT",""],["for","addressHostMQTT","required","",1,"col-md-2","col-form-label"],v,["type","text","id","addressHostMQTT","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostMQTTFeedback",1,"invalid-feedback"],S,["for","addressPortMQTT","required","",1,"col-md-2","col-form-label"],m,["type","text","id","addressPortMQTT","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortMQTTFeedback",1,"invalid-feedback"],R,["for","Content",1,"col-md-2","col-form-label"],[1,"mr-2"],f,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],["for","addressPublisher","required","",1,"col-md-2","col-form-label"],Z,["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],D,["for","addressTopic","required","",1,"col-md-2","col-form-label"],L,["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],c,["for","addressQoS",1,"col-md-2","col-form-label"],N,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","only pure integer supported!",1,"fa","fa-question-circle-o","fa-lg"],["type","number","id","addressQoS","name","addressQoS",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive",1,"col-md-2","col-form-label"],I,["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],J,["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],X,["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],x,["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],B,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],k,["role","button",1,"badge","mr-2",3,"click"],W,Q,w,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],F,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],z,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],Y,["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],j,["for","addressPath","required","",1,"col-md-2","col-form-label"],K,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],__,e_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],t_,n_,i_,o_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],a_,[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],l_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],d_,r_,A_,s_,[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],T_,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],c_,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],E_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],g_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.tHW(6,5),_._UZ(7,"br"),_.N_p(),_.qZA(),_.qZA(),_.TgZ(8,"div",6),_.TgZ(9,"div",1),_._UZ(10,"i",7),_.TgZ(11,"span"),_.SDv(12,8),_.qZA(),_.TgZ(13,"button",9),_.NdJ("click",function(){return t.submit()}),_.SDv(14,10),_.qZA(),_.qZA(),_.TgZ(15,"div",4),_.TgZ(16,"form"),_.TgZ(17,"div",11),_.TgZ(18,"label",12),_.SDv(19,13),_.qZA(),_.TgZ(20,"div",14),_.TgZ(21,"input",15),_.NdJ("ngModelChange",function(i){return t.intervalAction.name=i}),_.qZA(),_.TgZ(22,"div",16),_.TgZ(23,"small"),_._uU(24,"the interval action name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(25,"div",17),_.TgZ(26,"label",18),_.SDv(27,19),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"div",20),_.TgZ(30,"app-interval-combo-list",21),_.NdJ("intervalSelectedEvent",function(i){return t.onSingleIntervalSelected(i)}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",17),_.TgZ(32,"label",22),_.SDv(33,23),_.qZA(),_.TgZ(34,"div",14),_.TgZ(35,"select",24),_.NdJ("ngModelChange",function(i){return t.intervalAction.adminState=i}),_.TgZ(36,"option",25),_._uU(37,"UNLOCKED"),_.qZA(),_.TgZ(38,"option",26),_._uU(39,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(40,"div",17),_.TgZ(41,"label",27),_.SDv(42,28),_.qZA(),_.TgZ(43,"div",14),_.TgZ(44,"div",6),_.TgZ(45,"div",1),_.TgZ(46,"div",29),_.TgZ(47,"span",30),_.TgZ(48,"input",31),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("REST")}),_.qZA(),_.TgZ(49,"label",32),_._uU(50,"REST"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",29),_.TgZ(52,"span",30),_.TgZ(53,"input",33),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("MQTT")}),_.qZA(),_.TgZ(54,"label",34),_._uU(55,"MQTT"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",29),_.TgZ(57,"span",30),_.TgZ(58,"input",35),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("EMAIL")}),_.qZA(),_.TgZ(59,"label",36),_._uU(60,"EMAIL"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(61,f_,7,12,"div",37),_.TgZ(62,"div",4),_.YNc(63,q_,9,4,"div",38),_.TgZ(64,"div",null,39),_.TgZ(66,"form"),_.TgZ(67,"div",11),_.TgZ(68,"label",40),_.SDv(69,41),_.qZA(),_.TgZ(70,"div",14),_.TgZ(71,"input",42),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.host=i}),_.qZA(),_.TgZ(72,"div",43),_.TgZ(73,"small"),_.SDv(74,44),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(75,"div",11),_.TgZ(76,"label",45),_.SDv(77,46),_.qZA(),_.TgZ(78,"div",14),_.TgZ(79,"input",47),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.port=i}),_.qZA(),_.TgZ(80,"div",48),_.TgZ(81,"small"),_.SDv(82,49),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(83,"div",17),_.TgZ(84,"label",50),_.TgZ(85,"span",51),_.SDv(86,52),_.qZA(),_._UZ(87,"span",53),_.qZA(),_.TgZ(88,"div",14),_.TgZ(89,"input",54),_.NdJ("ngModelChange",function(i){return t.intervalAction.content=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(90,"div",17),_.TgZ(91,"label",55),_.TgZ(92,"span",51),_._uU(93,"ContentType"),_.qZA(),_._UZ(94,"span",56),_.qZA(),_.TgZ(95,"div",14),_.TgZ(96,"input",57),_.NdJ("ngModelChange",function(i){return t.intervalAction.contentType=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(97,"div",11),_.TgZ(98,"label",58),_.SDv(99,59),_.qZA(),_.TgZ(100,"div",14),_.TgZ(101,"input",60),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.publisher=i}),_.qZA(),_.TgZ(102,"div",61),_.TgZ(103,"small"),_.SDv(104,62),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(105,"div",11),_.TgZ(106,"label",63),_.SDv(107,64),_.qZA(),_.TgZ(108,"div",14),_.TgZ(109,"input",65),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.topic=i}),_.qZA(),_.TgZ(110,"div",66),_.TgZ(111,"small"),_.SDv(112,67),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(113,"div",17),_.TgZ(114,"label",68),_.TgZ(115,"span",51),_.SDv(116,69),_.qZA(),_._UZ(117,"span",70),_.qZA(),_.TgZ(118,"div",14),_.TgZ(119,"input",71),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.qos=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(120,"div",17),_.TgZ(121,"label",72),_.TgZ(122,"span",51),_.SDv(123,73),_.qZA(),_._UZ(124,"span",70),_.qZA(),_.TgZ(125,"div",14),_.TgZ(126,"input",74),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.keepAlive=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(127,"div",17),_.TgZ(128,"label",75),_.SDv(129,76),_.qZA(),_.TgZ(130,"div",14),_.TgZ(131,"select",77),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.retained=i}),_.TgZ(132,"option",78),_._uU(133,"false"),_.qZA(),_.TgZ(134,"option",78),_._uU(135,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(136,"div",17),_.TgZ(137,"label",79),_.SDv(138,80),_.qZA(),_.TgZ(139,"div",14),_.TgZ(140,"select",81),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.autoReconnect=i}),_.TgZ(141,"option",78),_._uU(142,"true"),_.qZA(),_.TgZ(143,"option",78),_._uU(144,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(145,"div",17),_.TgZ(146,"label",82),_.TgZ(147,"span",51),_.SDv(148,83),_.qZA(),_._UZ(149,"span",70),_.qZA(),_.TgZ(150,"div",14),_.TgZ(151,"input",84),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.connectTimeout=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(152,"div",null,85),_.TgZ(154,"form"),_.TgZ(155,"div",17),_.TgZ(156,"label",86),_.TgZ(157,"span",51),_.SDv(158,87),_.qZA(),_._UZ(159,"span",88),_.qZA(),_.TgZ(160,"div",14),_.TgZ(161,"input",89),_.NdJ("ngModelChange",function(i){return t.addressEmailRecipients=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(162,"div",17),_.TgZ(163,"label",50),_.TgZ(164,"span",51),_.SDv(165,90),_.qZA(),_._UZ(166,"span",53),_.qZA(),_.TgZ(167,"div",14),_.TgZ(168,"input",54),_.NdJ("ngModelChange",function(i){return t.intervalAction.content=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(169,"div",17),_.TgZ(170,"label",55),_.TgZ(171,"span",51),_._uU(172,"ContentType"),_.qZA(),_._UZ(173,"span",56),_.qZA(),_.TgZ(174,"div",14),_.TgZ(175,"input",57),_.NdJ("ngModelChange",function(i){return t.intervalAction.contentType=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(13),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.intervalAction.name)("is-valid",t.intervalAction.name),_.Q6J("ngModel",t.intervalAction.name),_.xp6(9),_.Q6J("validate",!0),_.xp6(5),_.Q6J("ngModel",t.intervalAction.adminState),_.xp6(12),_.ekj("badge-secondary","REST"!==t.intervalAction.address.type)("badge-primary","REST"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary","MQTT"!==t.intervalAction.address.type)("badge-primary","MQTT"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary","EMAIL"!==t.intervalAction.address.type)("badge-primary","EMAIL"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(3),_.Q6J("ngIf","REST"===t.intervalAction.address.type),_.xp6(2),_.Q6J("ngIf","REST"===t.intervalAction.address.type),_.xp6(1),_.Udp("display","MQTT"!==t.intervalAction.address.type?"none":""),_.xp6(7),_.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),_.Q6J("ngModel",t.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),_.Q6J("ngModel",t.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",t.intervalAction.content),_.xp6(7),_.Q6J("ngModel",t.intervalAction.contentType),_.xp6(5),_.ekj("is-invalid",!t.intervalAction.address.publisher)("is-valid",t.intervalAction.address.publisher),_.Q6J("ngModel",t.intervalAction.address.publisher),_.xp6(8),_.ekj("is-invalid",!t.intervalAction.address.topic)("is-valid",t.intervalAction.address.topic),_.Q6J("ngModel",t.intervalAction.address.topic),_.xp6(10),_.Q6J("ngModel",t.intervalAction.address.qos),_.xp6(7),_.Q6J("ngModel",t.intervalAction.address.keepAlive),_.xp6(5),_.Q6J("ngModel",t.intervalAction.address.retained),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0),_.xp6(6),_.Q6J("ngModel",t.intervalAction.address.autoReconnect),_.xp6(1),_.Q6J("ngValue",!0),_.xp6(2),_.Q6J("ngValue",!1),_.xp6(8),_.Q6J("ngModel",t.intervalAction.address.connectTimeout),_.xp6(1),_.Udp("display","EMAIL"!==(null==t.intervalAction.address?null:t.intervalAction.address.type)?"none":""),_.xp6(9),_.Q6J("ngModel",t.addressEmailRecipients),_.xp6(7),_.Q6J("ngModel",t.intervalAction.content),_.xp6(7),_.Q6J("ngModel",t.intervalAction.contentType))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,V,l.EJ,l.YN,l.Kr,l._,p.O5,l.wV,p.RF,p.n9,H.P,p.sg],styles:[""]}),o})();function $_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",48),_.TgZ(1,"app-interval-combo-list",49),_.NdJ("intervalSelectedEvent",function(n){return _.CHM(e),_.oxw(2).onSingleIntervalSelected(n)}),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(1),_.Q6J("validate",!0)("selectedInterval",e.selectedIntervalDefault)}}function H_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"span",50),_.SDv(2,51),_.qZA(),_._UZ(3,"span",52),_.TgZ(4,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_coredata)}),_.SDv(5,54),_.qZA(),_.TgZ(6,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_command)}),_.SDv(7,55),_.qZA(),_.TgZ(8,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_custom)}),_.SDv(9,56),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(4),_.ekj("badge-secondary",e.templateSelected!==e.template_type_coredata)("badge-primary",e.templateSelected===e.template_type_coredata),_.xp6(2),_.ekj("badge-secondary",e.templateSelected!==e.template_type_command)("badge-primary",e.templateSelected===e.template_type_command),_.xp6(2),_.ekj("badge-secondary",e.templateSelected!==e.template_type_custom)("badge-primary",e.templateSelected===e.template_type_custom)}}function y_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_._uU(3,"HttpMethod"),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"select",64),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",65),_._uU(7,"GET"),_.qZA(),_.TgZ(8,"option",66),_._uU(9,"POST"),_.qZA(),_.TgZ(10,"option",67),_._uU(11,"PUT"),_.qZA(),_.TgZ(12,"option",68),_._uU(13,"DELETE"),_.qZA(),_.TgZ(14,"option",69),_._uU(15,"PATCH"),_.qZA(),_.TgZ(16,"option",70),_._uU(17,"HEAD"),_.qZA(),_.TgZ(18,"option",71),_._uU(19,"TRACE"),_.qZA(),_.TgZ(20,"option",72),_._uU(21,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(22,"div",8),_.TgZ(23,"label",73),_._uU(24,"Host"),_.qZA(),_.TgZ(25,"div",11),_.TgZ(26,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(27,"div",75),_.TgZ(28,"small"),_._uU(29,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",8),_.TgZ(31,"label",76),_._uU(32,"Port"),_.qZA(),_.TgZ(33,"div",11),_.TgZ(34,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(35,"div",78),_.TgZ(36,"small"),_._uU(37,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"div",14),_.TgZ(39,"label",79),_._uU(40,"Path"),_.qZA(),_.TgZ(41,"div",11),_.TgZ(42,"input",80),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(43,"div",14),_.TgZ(44,"label",41),_.TgZ(45,"span",38),_.SDv(46,81),_.qZA(),_._UZ(47,"span",43),_.qZA(),_.TgZ(48,"div",11),_.TgZ(49,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(50,"div",14),_.TgZ(51,"label",45),_.TgZ(52,"span",38),_._uU(53,"ContentType"),_.qZA(),_._UZ(54,"span",46),_.qZA(),_.TgZ(55,"div",11),_.TgZ(56,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}function J_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_._uU(3,"HttpMethod"),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"select",64),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",68),_._uU(7,"DELETE"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",8),_.TgZ(9,"label",73),_.TgZ(10,"span",38),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",82),_.qZA(),_.TgZ(13,"div",11),_.TgZ(14,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",75),_.TgZ(16,"small"),_._uU(17,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",8),_.TgZ(19,"label",76),_._uU(20,"Port"),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",78),_.TgZ(24,"small"),_._uU(25,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",79),_.TgZ(28,"span",38),_._uU(29,"Path"),_.qZA(),_._UZ(30,"span",83),_.qZA(),_.TgZ(31,"div",11),_.TgZ(32,"input",84),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"label",85),_._uU(35,"Parameter"),_.qZA(),_.TgZ(36,"div",11),_.TgZ(37,"div",86),_.TgZ(38,"div",87),_.TgZ(39,"span",88),_._UZ(40,"i",89),_.qZA(),_.qZA(),_.TgZ(41,"input",90),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).coredataRequestParameter=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(9),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(9),_.Q6J("ngModel",e.coredataRequestParameter)}}function X_(o,a){1&o&&(_.TgZ(0,"div"),_._uU(1," no paramters. "),_.qZA())}function x_(o,a){if(1&o&&(_.TgZ(0,"select",103),_.TgZ(1,"option",104),_._uU(2,"false"),_.qZA(),_.TgZ(3,"option",104),_._uU(4,"true"),_.qZA(),_.qZA()),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function B_(o,a){if(1&o&&_._UZ(0,"input",105),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.MGl("placeholder","valueType: ",e.valueType,"")}}function k_(o,a){if(1&o&&(_.TgZ(0,"div"),_.TgZ(1,"div",14),_.TgZ(2,"label",99),_.SDv(3,100),_.qZA(),_.TgZ(4,"div",11),_.YNc(5,x_,5,4,"select",101),_.YNc(6,B_,1,3,"ng-template",null,102,_.W1O),_.qZA(),_.qZA(),_.qZA()),2&o){const e=a.$implicit,t=_.MAs(7);_.xp6(2),_.s9C("for",e.resourceName),_.xp6(1),_.pQV(e.resourceName),_.QtT(3),_.xp6(2),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function W_(o,a){if(1&o&&(_.TgZ(0,"div"),_.YNc(1,X_,2,0,"div",35),_.YNc(2,k_,8,4,"div",98),_.qZA()),2&o){const e=_.oxw(5);_.xp6(1),_.Q6J("ngIf",0==e.commandServiceTemplateRequestParameters.length),_.xp6(1),_.Q6J("ngForOf",e.commandServiceTemplateRequestParameters)}}function Q_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",14),_.TgZ(1,"label",106),_.TgZ(2,"span",38),_.SDv(3,107),_.qZA(),_._UZ(4,"span",108),_.qZA(),_.TgZ(5,"div",11),_.TgZ(6,"select",109),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(5).pushEventOfGetCmdParamter=n}),_.TgZ(7,"option",110),_._uU(8,"yes"),_.qZA(),_.TgZ(9,"option",111),_._uU(10,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",14),_.TgZ(12,"label",112),_.TgZ(13,"span",38),_.SDv(14,113),_.qZA(),_._UZ(15,"span",114),_.qZA(),_.TgZ(16,"div",11),_.TgZ(17,"select",115),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(5).returnEventOfGetCmdParamter=n}),_.TgZ(18,"option",110),_._uU(19,"yes"),_.qZA(),_.TgZ(20,"option",111),_._uU(21,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(5);_.xp6(6),_.Q6J("ngModel",e.pushEventOfGetCmdParamter),_.xp6(11),_.Q6J("ngModel",e.returnEventOfGetCmdParamter)}}function w_(o,a){if(1&o&&(_.TgZ(0,"div",14),_.TgZ(1,"label",79),_.SDv(2,95),_.qZA(),_.TgZ(3,"div",11),_.TgZ(4,"div",0),_.TgZ(5,"div",1),_.TgZ(6,"span"),_._uU(7,"Command Parameters Setting"),_.qZA(),_.qZA(),_.TgZ(8,"div",7),_.YNc(9,W_,3,2,"div",96),_.YNc(10,Q_,22,2,"ng-template",null,97,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&o){const e=_.MAs(11),t=_.oxw(4);_.xp6(9),_.Q6J("ngIf","PUT"==t.intervalAction.address.httpMethod)("ngIfElse",e)}}function F_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_.TgZ(3,"span",38),_._uU(4,"HttpMethod"),_.qZA(),_._UZ(5,"span",91),_.qZA(),_.TgZ(6,"div",11),_.TgZ(7,"input",92),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",8),_.TgZ(9,"label",73),_.TgZ(10,"span",38),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",82),_.qZA(),_.TgZ(13,"div",11),_.TgZ(14,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",75),_.TgZ(16,"small"),_._uU(17,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",8),_.TgZ(19,"label",76),_._uU(20,"Port"),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",78),_.TgZ(24,"small"),_._uU(25,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",79),_._uU(28,"Path"),_.qZA(),_.TgZ(29,"div",11),_.TgZ(30,"app-device-core-command-combo-list",93),_.NdJ("cmdMethodEvent",function(n){return _.CHM(e),_.oxw(3).onCmdMethodSelected(n)})("commandSelectedEvent",function(n){return _.CHM(e),_.oxw(3).onCommandSelected(n)}),_.qZA(),_.qZA(),_.qZA(),_.YNc(31,w_,12,2,"div",94),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(7),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("validate",!0),_.xp6(1),_.Q6J("ngIf",e.intervalAction.address.path&&e.intervalAction.address.httpMethod)}}function z_(o,a){if(1&o&&(_.TgZ(0,"div",null,57),_.TgZ(2,"div",58),_.YNc(3,y_,57,14,"ng-template",59,60,_.W1O),_.YNc(5,J_,42,13,"ng-template",59,61,_.W1O),_.YNc(7,F_,32,13,"ng-template",59,62,_.W1O),_.qZA(),_.qZA()),2&o){const e=_.oxw(2);_.xp6(2),_.Q6J("ngSwitch",e.templateSelected),_.xp6(1),_.Q6J("ngSwitchCase",e.template_type_custom),_.xp6(2),_.Q6J("ngSwitchCase",e.template_type_coredata),_.xp6(2),_.Q6J("ngSwitchCase",e.template_type_command)}}function Y_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",null,116),_.TgZ(2,"form"),_.TgZ(3,"div",8),_.TgZ(4,"label",117),_._uU(5,"Host"),_.qZA(),_.TgZ(6,"div",11),_.TgZ(7,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(8,"div",119),_.TgZ(9,"small"),_._uU(10,"the MQTT host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",8),_.TgZ(12,"label",120),_._uU(13,"Port"),_.qZA(),_.TgZ(14,"div",11),_.TgZ(15,"input",121),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(16,"div",122),_.TgZ(17,"small"),_._uU(18,"the MQTT port can't be empty and only pure integer is supported!!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",14),_.TgZ(20,"label",41),_.TgZ(21,"span",38),_.SDv(22,123),_.qZA(),_._UZ(23,"span",43),_.qZA(),_.TgZ(24,"div",11),_.TgZ(25,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",45),_.TgZ(28,"span",38),_._uU(29,"ContentType"),_.qZA(),_._UZ(30,"span",46),_.qZA(),_.TgZ(31,"div",11),_.TgZ(32,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",8),_.TgZ(34,"label",124),_._uU(35,"Publisher"),_.qZA(),_.TgZ(36,"div",11),_.TgZ(37,"input",125),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.publisher=n}),_.qZA(),_.TgZ(38,"div",126),_.TgZ(39,"small"),_._uU(40,"the MQTT publisher can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(41,"div",8),_.TgZ(42,"label",127),_._uU(43,"Topic"),_.qZA(),_.TgZ(44,"div",11),_.TgZ(45,"input",128),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.topic=n}),_.qZA(),_.TgZ(46,"div",129),_.TgZ(47,"small"),_._uU(48,"the MQTT topic can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",130),_._uU(51,"QoS"),_.qZA(),_.TgZ(52,"div",11),_.TgZ(53,"input",131),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.qos=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(54,"div",14),_.TgZ(55,"label",132),_._uU(56,"KeepAlive"),_.qZA(),_.TgZ(57,"div",11),_.TgZ(58,"input",133),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.keepAlive=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",14),_.TgZ(60,"label",134),_._uU(61,"Retained"),_.qZA(),_.TgZ(62,"div",11),_.TgZ(63,"select",135),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.retained=n}),_.TgZ(64,"option",136),_._uU(65,"false"),_.qZA(),_.TgZ(66,"option",104),_._uU(67,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"div",14),_.TgZ(69,"label",137),_._uU(70,"AutoReconnect"),_.qZA(),_.TgZ(71,"div",11),_.TgZ(72,"select",138),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.autoReconnect=n}),_.TgZ(73,"option",136),_._uU(74,"true"),_.qZA(),_.TgZ(75,"option",104),_._uU(76,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(77,"div",14),_.TgZ(78,"label",139),_._uU(79,"ConnectTimeout"),_.qZA(),_.TgZ(80,"div",11),_.TgZ(81,"input",140),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.connectTimeout=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType),_.xp6(5),_.ekj("is-invalid",!e.intervalAction.address.publisher)("is-valid",e.intervalAction.address.publisher),_.Q6J("ngModel",e.intervalAction.address.publisher),_.xp6(8),_.ekj("is-invalid",!e.intervalAction.address.topic)("is-valid",e.intervalAction.address.topic),_.Q6J("ngModel",e.intervalAction.address.topic),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.qos),_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.keepAlive),_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.retained),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0),_.xp6(6),_.Q6J("ngModel",e.intervalAction.address.autoReconnect),_.xp6(1),_.Q6J("ngValue",!0),_.xp6(2),_.Q6J("ngValue",!1),_.xp6(6),_.Q6J("ngModel",e.intervalAction.address.connectTimeout)}}function j_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",7),_.TgZ(1,"form"),_.TgZ(2,"div",8),_.TgZ(3,"label",9),_.SDv(4,10),_.qZA(),_.TgZ(5,"div",11),_.TgZ(6,"input",12),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.name=n}),_.qZA(),_.TgZ(7,"div",13),_.TgZ(8,"small"),_._uU(9,"the interval action name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(10,"div",14),_.TgZ(11,"label",15),_.SDv(12,16),_.qZA(),_.TgZ(13,"div",11),_.YNc(14,$_,2,2,"div",17),_.qZA(),_.qZA(),_.TgZ(15,"div",14),_.TgZ(16,"label",18),_.SDv(17,19),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"select",20),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.adminState=n}),_.TgZ(20,"option",21),_._uU(21,"UNLOCKED"),_.qZA(),_.TgZ(22,"option",22),_._uU(23,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"div",14),_.TgZ(25,"label",23),_.SDv(26,24),_.qZA(),_.TgZ(27,"div",11),_.TgZ(28,"div",0),_.TgZ(29,"div",1),_.TgZ(30,"div",25),_.TgZ(31,"span",26),_.TgZ(32,"input",27),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n})("change",function(){return _.CHM(e),_.oxw().typeToggle("REST")}),_.qZA(),_.TgZ(33,"label",28),_._uU(34,"REST"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(35,"div",25),_.TgZ(36,"span",29),_.NdJ("click",function(){return _.CHM(e),_.oxw().typeToggle("MQTT")}),_.TgZ(37,"input",30),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n}),_.qZA(),_.TgZ(38,"label",31),_._uU(39,"MQTT"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(40,"div",25),_.TgZ(41,"span",29),_.NdJ("click",function(){return _.CHM(e),_.oxw().typeToggle("EMAIL")}),_.TgZ(42,"input",32),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n}),_.qZA(),_.TgZ(43,"label",33),_._uU(44,"EMAIL"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(45,H_,10,12,"div",34),_.TgZ(46,"div",7),_.YNc(47,z_,9,4,"div",35),_.YNc(48,Y_,82,31,"div",35),_.TgZ(49,"div",null,36),_.TgZ(51,"form"),_.TgZ(52,"div",14),_.TgZ(53,"label",37),_.TgZ(54,"span",38),_._uU(55,"EmailRecipients"),_.qZA(),_._UZ(56,"span",39),_.qZA(),_.TgZ(57,"div",11),_.TgZ(58,"input",40),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().addressEmailRecipients=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",14),_.TgZ(60,"label",41),_.TgZ(61,"span",38),_.SDv(62,42),_.qZA(),_._UZ(63,"span",43),_.qZA(),_.TgZ(64,"div",11),_.TgZ(65,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(66,"div",14),_.TgZ(67,"label",45),_.TgZ(68,"span",38),_._uU(69,"ContentType"),_.qZA(),_._UZ(70,"span",46),_.qZA(),_.TgZ(71,"div",11),_.TgZ(72,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(6),_.ekj("is-invalid",!e.intervalAction.name)("is-valid",e.intervalAction.name),_.Q6J("ngModel",e.intervalAction.name),_.xp6(8),_.Q6J("ngIf",e.selectedIntervalDefault),_.xp6(5),_.Q6J("ngModel",e.intervalAction.adminState),_.xp6(12),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_REST)("badge-primary",e.intervalAction.address.type===e.addr_type_REST),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_MQTT)("badge-primary",e.intervalAction.address.type===e.addr_type_MQTT),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_EMAIL)("badge-primary",e.intervalAction.address.type===e.addr_type_EMAIL),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(3),_.Q6J("ngIf",e.intervalAction.address.type===e.addr_type_REST),_.xp6(2),_.Q6J("ngIf","REST"===e.intervalAction.address.type),_.xp6(1),_.Q6J("ngIf",(null==e.intervalAction.address?null:e.intervalAction.address.type)===e.addr_type_MQTT),_.xp6(1),_.Udp("display",e.intervalAction.address.type!==e.addr_type_EMAIL?"none":""),_.xp6(9),_.Q6J("ngModel",e.addressEmailRecipients),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}let K_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="custom",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="yes",this.returnEventOfGetCmdParamter="yes",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={},this.intervalActionOrigin={},this.intervalAction.address={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(e=>{e.intervalActionName&&this.schedulerSvc.findIntervalActionByName(e.intervalActionName).subscribe(t=>{this.intervalAction=JSON.parse(JSON.stringify(t.action)),this.intervalActionOrigin=JSON.parse(JSON.stringify(t.action)),this.intervalActionOrigin.adminState=""===this.intervalActionOrigin.adminState?"UNLOCKED":this.intervalActionOrigin.adminState,this.intervalAction.adminState=""===this.intervalAction.adminState?"UNLOCKED":this.intervalAction.adminState,this.addressEmailRecipients=this.intervalAction.address.recipients?this.intervalAction.address.recipients.toString():"",this.findDefaultSelectedIntervalByName(this.intervalAction.intervalName),setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)})})}initDatePickr(){let e=this;this.calendarStart=(0,G.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(t,n,i){e.intervalAction.address.path=e.coredataSvcAvailableAPI[0]+n}})}setActionDefaultProperties(){switch(this.intervalAction.address.type){case this.addr_type_REST:this.intervalAction.address.httpMethod="GET";break;case this.addr_type_MQTT:this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}findDefaultSelectedIntervalByName(e){this.schedulerSvc.findIntervalByName(e).subscribe(t=>{this.selectedIntervalDefault=t.interval})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(e){switch(this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=this.addr_type_REST,this.templateSelected=e,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300)}}typeToggle(e){this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=e,this.templateSelected="custom",setTimeout(()=>{this.renderPopoverComponent()},300)}onCmdMethodSelected(e){this.intervalAction.address.httpMethod=e,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(e){this.intervalAction.address.path=e.path,this.commandServiceTemplateRequestParameters=e.parameters}onSingleIntervalSelected(e){this.intervalAction.intervalName=e.name}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!0,t=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(e=!1);break;case this.addr_type_MQTT:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(e=!1);break;case this.addr_type_EMAIL:t&&(e=!1)}return e}getAllCmdTemplateParametersValue(){var e;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let t={};return null===(e=this.commandServiceTemplateRequestParameters)||void 0===e||e.forEach(n=>{""!==$(`#cmd-param-${n.resourceName}`).val().trim()&&(t[n.resourceName]=$(`#cmd-param-${n.resourceName}`).val().trim())}),JSON.stringify(t)}resolveCommandTemplateParameterSuffix(){if(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent")){let e=this.intervalAction.address.path.split("?");this.intervalAction.address.path=e[0],e[1].split("&").forEach(i=>{let r=i.split("=");"ds-pushevent"===r[0]?this.pushEventOfGetCmdParamter=r[1]:"ds-returnevent"===r[0]&&(this.returnEventOfGetCmdParamter=r[1])})}}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}save(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.updateIntervalAction(this.intervalAction).subscribe(e=>{this.errorSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-interval-action"]],decls:8,vars:2,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c;return a="\u7F16\u8F91 Interval \u4EFB\u52A1",e="\u4FDD\u5B58",t="\u540D\u5B57",n="Interval\u540D\u5B57",i="\u7BA1\u7406\u72B6\u6001",r="\u5730\u5740",C="\u5185\u5BB9",T="\u53EF\u4EE5\u7528\u7684\u6A21\u677F >>",v="CoreData\u670D\u52A1\u6A21\u677F",S="Command\u670D\u52A1\u6A21\u677F",m="\u81EA\u5B9A\u4E49\u6A21\u677F",R="\u5185\u5BB9",f="Parameters",Z="" + "\ufffd0\ufffd" + "",D="pushevent",L="returnevent",c="\u5185\u5BB9",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,["class","card-body",4,"ngIf"],[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],n,["class","mb-3",4,"ngIf"],["for","adminState",1,"col-md-2","col-form-label"],i,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],r,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","REST",1,"form-check-label"],[1,"badge",3,"click"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["for","Content",1,"col-md-2","col-form-label"],C,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],[1,"mb-3"],[3,"validate","selectedInterval","intervalSelectedEvent"],[1,"mr-2","text-primary"],T,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","custom template will be choosed by default",1,"fa","fa-question-circle-o","fa-lg","mr-2"],["role","button",1,"badge","mr-2",3,"click"],v,S,m,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],["for","addressPath","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],R,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],f,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],Z,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],D,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],L,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"],["MQTT",""],["for","addressHost","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHost","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostFeedback",1,"invalid-feedback"],["for","addressPort","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPort","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortFeedback",1,"invalid-feedback"],c,["for","addressPublisher","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],["for","addressTopic","required","",1,"col-md-2","col-form-label"],["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],["for","addressQoS","required","",1,"col-md-2","col-form-label"],["type","number","id","addressQoS","name","addressQoS","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive","required","",1,"col-md-2","col-form-label"],["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],["selected","",3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.save()}),_.SDv(6,5),_.qZA(),_.qZA(),_.YNc(7,j_,73,30,"div",6),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(2),_.Q6J("ngIf",t.intervalAction))},directives:[p.O5,l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr,l._,V,p.RF,p.n9,H.P,p.sg,l.wV],styles:[""]}),o})();var _e=E(8253),ee=E(1964),te=E(4294),ne=E(5894),ie=E(7216);let y=(()=>{class o{constructor(e,t){this.router=e,this.schedulerSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.schedulerSvc.ping().pipe((0,te.q)(1),(0,ne.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"scheduler",routerPath:`/${t.url.split("/")[1]}`}})),(0,ie.z)(()=>(0,ee.of)(!0)))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(A.F0),_.LFG(M.G))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const oe=[{path:"",component:P,canActivate:[_e.a,y],canActivateChild:[y],children:[{path:"",redirectTo:"interval-center",pathMatch:"full"},{path:"interval-center",component:O,children:[{path:"",redirectTo:"interval-list",pathMatch:"full"},{path:"interval-list",component:q},{path:"add-interval",component:I_},{path:"edit-interval",component:p_}]},{path:"interval-action-center",component:u_,children:[{path:"",redirectTo:"interval-action-list",pathMatch:"full"},{path:"interval-action-list",component:m_},{path:"add-interval-action",component:V_},{path:"edit-interval-action",component:K_}]}]}];let ae=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[A.Bz.forChild(oe)],A.Bz]}),o})();var le=E(6342);let de=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[p.ez,l.u5,le.Y,ae]]}),o})()},7982:(N_,U,E)=>{E.d(U,{V:()=>P});var p=E(1841),l=E(5894),A=E(476),_=E(4889);let P=(()=>{class O{constructor(s,g){this.http=s,this.errorSvc=g,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new p.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,l.K)(g=>this.errorSvc.handleError(g)))}findCommnadsByDeviceId(s){return this.http.get(`${this.commandsByDeviceIdUrl}${s}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}allDeviceCoreCommandsPagination(s,g){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${s}&limit=${g}`).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}findDeviceAssociatedCommnadsByDeviceName(s){return this.http.get(`${this.commandsByDeviceNameUrl}${s}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,l.K)(g=>this.errorSvc.handleError(g)))}issueGetBinaryCmd(s,g){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${s}/command/${g}`,{responseType:"arraybuffer"}).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}issueGetCmd(s,g){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${s}/${g}?ds-pushevent=yes&ds-returnevent=yes`).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}issueSetCmd(s,g,u){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${s}/${g}`,JSON.stringify(u),this.httpPostOrPutJSONOptions).pipe((0,l.K)(b=>this.errorSvc.handleError(b)))}}return O.\u0275fac=function(s){return new(s||O)(A.LFG(p.eN),A.LFG(_.T))},O.\u0275prov=A.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/536.a6d638d333a1069f0cc8.js b/cmd/edgex-ui-server/static/web/zh/536.a6d638d333a1069f0cc8.js deleted file mode 100644 index fac5ae6b..00000000 --- a/cmd/edgex-ui-server/static/web/zh/536.a6d638d333a1069f0cc8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[536],{5886:(N_,U,E)=>{E.r(U),E.d(U,{SchedulerModule:()=>de});var p=E(8583),l=E(3092),A=E(9502),_=E(476);let P=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-scheduler"]],decls:13,vars:0,consts:function(){let a,e;return a="\u5355\u4F4D\u95F4\u9694",e="Interval\u4EFB\u52A1",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./interval-center","routerLinkActive","active",1,"nav-link"],a,["routerLink","./interval-action-center","routerLinkActive","active",1,"nav-link"],e,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.TgZ(5,"span"),_.SDv(6,5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(7,"li",3),_.TgZ(8,"a",6),_.TgZ(9,"span"),_.SDv(10,7),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",8),_._UZ(12,"router-outlet"),_.qZA(),_.qZA())},directives:[A.yS,A.Od,A.lC],styles:[""]}),o})(),O=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[A.lC],styles:[""]}),o})();var M=E(8391),s=E(7822),g=E(4889);function u(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",50),_.TgZ(1,"div",51),_.TgZ(2,"button",52),_.NdJ("click",function(){return _.CHM(e),_.oxw().refresh()}),_.TgZ(3,"span"),_._UZ(4,"i",53),_.TgZ(5,"span"),_.SDv(6,54),_.qZA(),_.qZA(),_.qZA(),_.TgZ(7,"button",55),_.TgZ(8,"span"),_._UZ(9,"i",56),_.TgZ(10,"span"),_.SDv(11,57),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",58),_.NdJ("click",function(){return _.CHM(e),_.oxw().edit()}),_.TgZ(13,"span"),_._UZ(14,"i",59),_.TgZ(15,"span"),_.SDv(16,60),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"button",61),_.NdJ("click",function(){return _.CHM(e),_.oxw().deleteConfirm()}),_.TgZ(18,"span"),_._UZ(19,"i",62),_.TgZ(20,"span"),_.SDv(21,63),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(12),_.Q6J("disabled",1!==e.intervalSelected.length),_.xp6(5),_.Q6J("disabled",0===e.intervalSelected.length)}}function h(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"input",64),_.NdJ("click",function(n){return _.CHM(e),_.oxw().selectAll(n)}),_.qZA()}if(2&o){const e=_.oxw();_.Q6J("checked",e.isCheckedAll())}}function b(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",64),_.NdJ("click",function(n){const r=_.CHM(e).$implicit;return _.oxw().selectOne(n,r)}),_.qZA(),_.qZA(),_.TgZ(3,"td",65),_._uU(4),_.qZA(),_.TgZ(5,"td",65),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.qZA(),_.qZA()}if(2&o){const e=a.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.start),_.xp6(2),_.Oqu(e.end),_.xp6(2),_.Oqu(e.interval),_.xp6(2),_.Oqu(!!e.runOnce)}}let q=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r,this.enableSelectAll=!0,this.singleIntervalSelectedEvent=new _.vpe,this.toolbars=!0,this.intervalList=[],this.intervalSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName?this.schedulerSvc.findIntervalByName(e.intervalName).subscribe(t=>{this.intervalList=[],this.intervalList.push(t.interval)}):this.findIntervalsPagination()})}refresh(){this.schedulerSvc.findAllIntervalsPagination(0,this.pageLimit).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.intervalList=e.intervals,this.msgSvc.success("refresh"),this.resetPagination())})}findIntervalsPagination(){this.schedulerSvc.findAllIntervalsPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.intervalList=e.intervals)})}onSingleIntervalSelectedEmitter(){this.singleIntervalSelectedEvent.emit(this.singleIntervalSelected)}isSingleChecked(e){var t;return(null===(t=this.singleIntervalSelected)||void 0===t?void 0:t.name)===e}selectSingleInterval(e,t){e.target.checked?this.intervalList.forEach(i=>{i.name===t&&(this.singleIntervalSelected=i)}):this.singleIntervalSelected={},this.onSingleIntervalSelectedEmitter()}isCheckedAll(){let e=!0;return this.intervalList&&0===this.intervalList.length&&(e=!1),this.intervalList.forEach(t=>{-1===this.intervalSelected.findIndex(n=>n.name===t.name)&&(e=!1)}),e}selectAll(e){this.intervalList.forEach(e.target.checked?n=>{-1===this.intervalSelected.findIndex(i=>i.name===n.name)&&this.intervalSelected.push(n)}:n=>{let i=this.intervalSelected.findIndex(r=>r.name===n.name);-1!==i&&this.intervalSelected.splice(i,1)})}isChecked(e){return this.enableSelectAll?this.intervalSelected.findIndex(t=>t.name===e)>=0:this.isSingleChecked(e)}selectOne(e,t){if(!this.enableSelectAll)return void this.selectSingleInterval(e,t.name);if(e.target.checked)return void this.intervalSelected.push(t);let i=this.intervalSelected.findIndex(r=>r.name===t.name);-1!==i&&this.intervalSelected.splice(i,1)}edit(){this.router.navigate(["../edit-interval"],{relativeTo:this.route,queryParams:{intervalName:this.intervalSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervals(){this.intervalSelected.forEach((e,t)=>{this.schedulerSvc.deleteIntervalByName(e.name).subscribe(n=>{this.errSvc.handleErrorForAPI(n)||(this.intervalSelected.splice(t,1),this.intervalList.forEach((i,r)=>{i.name!==e.name||this.intervalList.splice(r,1)}),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findIntervalsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalsPagination()}prePage(){this.setPagination(-1),this.findIntervalsPagination()}nextPage(){this.setPagination(1),this.findIntervalsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-list"]],inputs:{enableSelectAll:"enableSelectAll",toolbars:"toolbars",singleIntervalSelected:"singleIntervalSelected"},outputs:{singleIntervalSelectedEvent:"singleIntervalSelectedEvent"},decls:66,vars:6,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c,N;return a="Interval \u5217\u8868",e="ID",t="\u540D\u5B57",n="\u5F00\u59CB",i="\u7ED3\u675F\u65F6\u95F4",r="\u5355\u4F4D\u95F4\u9694",C="\u6267\u884C\u5355\u6B21",T="\u6BCF\u9875\u6761\u76EE",v="\u4E0A\u4E00\u9875",S="\u4E0B\u4E00\u9875",m="\u8B66\u544A",R="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",f="\u53D6\u6D88",Z="\u786E\u8BA4",D="\u5237\u65B0",L="\u6DFB\u52A0",c="\u7F16\u8F91",N="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger"],a,[1,"card-body","p-0","position-relative"],["class","bg-light px-2 py-2",4,"ngIf"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],e,t,n,i,r,C,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],T,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],v,[1,"page-item"],S,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],m,[1,"modal-body"],R,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],f,["type","button",1,"btn","btn-danger",3,"click"],Z,[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],D,["type","button","routerLink","../add-interval",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],L,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],c,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],N,["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.YNc(6,u,22,2,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"table",7),_.TgZ(9,"thead",8),_.TgZ(10,"tr"),_.TgZ(11,"th",9),_.YNc(12,h,1,1,"input",10),_.qZA(),_.TgZ(13,"th",9),_.SDv(14,11),_.qZA(),_.TgZ(15,"th",9),_.SDv(16,12),_.qZA(),_.TgZ(17,"th",9),_.SDv(18,13),_.qZA(),_.TgZ(19,"th",9),_.SDv(20,14),_.qZA(),_.TgZ(21,"th",9),_.SDv(22,15),_.qZA(),_.TgZ(23,"th",9),_.SDv(24,16),_.qZA(),_.qZA(),_.qZA(),_.TgZ(25,"tbody"),_.YNc(26,b,15,9,"tr",17),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",18),_.TgZ(28,"nav",19),_.TgZ(29,"ul",20),_.TgZ(30,"li",21),_.TgZ(31,"span",22),_.SDv(32,23),_.qZA(),_.qZA(),_.TgZ(33,"li",24),_.TgZ(34,"select",25),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(35,"option",26),_._uU(36,"5"),_.qZA(),_.TgZ(37,"option",27),_._uU(38,"10"),_.qZA(),_.TgZ(39,"option",28),_._uU(40,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(41,"li",29),_.TgZ(42,"button",30),_.NdJ("click",function(){return t.prePage()}),_._UZ(43,"i",31),_.TgZ(44,"span"),_.SDv(45,32),_.qZA(),_.qZA(),_.qZA(),_.TgZ(46,"li",33),_.TgZ(47,"button",30),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(48,"span"),_.SDv(49,34),_.qZA(),_._UZ(50,"i",35),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",36),_.TgZ(52,"div",37),_.TgZ(53,"div",38),_.TgZ(54,"div",39),_.TgZ(55,"h5",40),_._UZ(56,"i",41),_.TgZ(57,"span"),_.SDv(58,42),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",43),_.SDv(60,44),_.qZA(),_.TgZ(61,"div",45),_.TgZ(62,"button",46),_.SDv(63,47),_.qZA(),_.TgZ(64,"button",48),_.NdJ("click",function(){return t.deleteIntervals()}),_.SDv(65,49),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(6),_.Q6J("ngIf",t.toolbars),_.xp6(6),_.Q6J("ngIf",t.enableSelectAll),_.xp6(14),_.Q6J("ngForOf",t.intervalList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.intervalList.length))},directives:[p.O5,p.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,A.rH],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();var G=E(9827);let I_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r,this.interval={}}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,G.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,G.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}submit(){this.schedulerSvc.addInterval(this.interval).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("create new interval",`name: ${this.interval.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-interval"]],decls:54,vars:16,consts:function(){let a,e,t,n,i,r,C;return a="\u6DFB\u52A0 Interval",e="\u63D0\u4EA4",t="\u540D\u5B57",n="\u5F00\u59CB",i="\u7ED3\u675F\u65F6\u95F4",r="\u5355\u4F4D\u95F4\u9694",C="\u6267\u884C\u5355\u6B21",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationIntervalName","name","intervalName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],n,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd",1,"col-md-2","col-form-label"],i,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],C,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.submit()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.interval.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_._uU(16,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",13),_.TgZ(18,"label",14),_.SDv(19,15),_.qZA(),_.TgZ(20,"div",10),_.TgZ(21,"div",16),_.TgZ(22,"div",17),_.TgZ(23,"span",18),_._UZ(24,"i",19),_.qZA(),_.qZA(),_.TgZ(25,"input",20),_.NdJ("ngModelChange",function(i){return t.interval.start=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",13),_.TgZ(27,"label",21),_.SDv(28,22),_.qZA(),_.TgZ(29,"div",10),_.TgZ(30,"div",16),_.TgZ(31,"div",17),_.TgZ(32,"span",18),_._UZ(33,"i",19),_.qZA(),_.qZA(),_.TgZ(34,"input",23),_.NdJ("ngModelChange",function(i){return t.interval.end=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(35,"div",13),_.TgZ(36,"label",24),_.TgZ(37,"span",25),_.SDv(38,26),_.qZA(),_._UZ(39,"span",27),_.qZA(),_.TgZ(40,"div",10),_.TgZ(41,"input",28),_.NdJ("ngModelChange",function(i){return t.interval.interval=i}),_.qZA(),_.TgZ(42,"div",29),_.TgZ(43,"small"),_._uU(44,"the interval interval can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(45,"div",13),_.TgZ(46,"label",30),_.SDv(47,31),_.qZA(),_.TgZ(48,"div",10),_.TgZ(49,"select",32),_.NdJ("ngModelChange",function(i){return t.interval.runOnce=i}),_.TgZ(50,"option",33),_._uU(51,"false"),_.qZA(),_.TgZ(52,"option",33),_._uU(53,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",!t.interval.name||!t.interval.interval),_.xp6(8),_.ekj("is-invalid",!t.interval.name)("is-valid",t.interval.name),_.Q6J("ngModel",t.interval.name),_.xp6(12),_.Q6J("ngModel",t.interval.start),_.xp6(9),_.Q6J("ngModel",t.interval.end),_.xp6(7),_.ekj("is-invalid",!t.interval.interval)("is-valid",t.interval.interval),_.Q6J("ngModel",t.interval.interval),_.xp6(8),_.Q6J("ngModel",t.interval.runOnce),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function C_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",8),_.TgZ(2,"label",9),_.SDv(3,10),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"input",12),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.name=n}),_.qZA(),_.TgZ(6,"div",13),_.TgZ(7,"small"),_._uU(8,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",14),_.TgZ(10,"label",15),_.SDv(11,16),_.qZA(),_.TgZ(12,"div",11),_.TgZ(13,"div",17),_.TgZ(14,"div",18),_.TgZ(15,"span",19),_._UZ(16,"i",20),_.qZA(),_.qZA(),_.TgZ(17,"input",21),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.start=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",14),_.TgZ(19,"label",22),_.SDv(20,23),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"div",17),_.TgZ(23,"div",18),_.TgZ(24,"span",19),_._UZ(25,"i",20),_.qZA(),_.qZA(),_.TgZ(26,"input",24),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.end=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(27,"div",14),_.TgZ(28,"label",25),_.TgZ(29,"span",26),_.SDv(30,27),_.qZA(),_._UZ(31,"span",28),_.qZA(),_.TgZ(32,"div",11),_.TgZ(33,"input",29),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.interval=n}),_.qZA(),_.TgZ(34,"div",30),_.TgZ(35,"small"),_._uU(36,"the interval interval can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(37,"div",14),_.TgZ(38,"label",31),_.SDv(39,32),_.qZA(),_.TgZ(40,"div",11),_.TgZ(41,"select",33),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().interval.runOnce=n}),_.TgZ(42,"option",34),_._uU(43,"false"),_.qZA(),_.TgZ(44,"option",34),_._uU(45,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(5),_.ekj("is-invalid",!e.interval.name)("is-valid",e.interval.name),_.Q6J("ngModel",e.interval.name),_.xp6(12),_.Q6J("ngModel",e.interval.start),_.xp6(9),_.Q6J("ngModel",e.interval.end),_.xp6(7),_.ekj("is-invalid",!e.interval.interval)("is-valid",e.interval.interval),_.Q6J("ngModel",e.interval.interval),_.xp6(8),_.Q6J("ngModel",e.interval.runOnce),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}let p_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=r}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName&&this.schedulerSvc.findIntervalByName(e.intervalName).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.interval=t.interval,this.interval.runOnce=!!this.interval.runOnce,setTimeout(()=>{this.initDatePickr()},300))})})}initDatePickr(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.calendarStart=(0,G.Z)("input[name='intervalStart']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1}),this.calendarEnd=(0,G.Z)("input[name='intervalEnd']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1})}update(){this.schedulerSvc.updateInterval(this.interval).subscribe(e=>{var t;this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("update interval",`name: ${null===(t=this.interval)||void 0===t?void 0:t.name}`),this.router.navigate(["../interval-list"],{relativeTo:this.route}))})}ngOnDestroy(){$('[data-toggle="popover"]').popover("dispose")}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-interval"]],decls:10,vars:3,consts:function(){let a,e,t,n,i,r,C;return a="\u7F16\u8F91 Interval",e="\u63D0\u4EA4",t="\u540D\u5B57",n="\u5F00\u59CB",i="\u7ED3\u675F\u65F6\u95F4",r="\u5355\u4F4D\u95F4\u9694",C="\u6267\u884C\u5355\u6B21",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[4,"ngIf"],[1,"form-group","row","has-validation"],["for","intervalName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","name","intervalName",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalStart",1,"col-md-2","col-form-label"],n,[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","intervalStart",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalEnd2",1,"col-md-2","col-form-label"],i,["type","text","name","intervalEnd",1,"form-control",3,"ngModel","ngModelChange"],["for","intervalInterval",1,"col-md-2","col-form-label"],[1,"mr-2"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","ISO8601 duration format","data-content",'Interval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","intervalInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalIntervalFeedback",1,"invalid-feedback"],["for","intervalRunOnce",1,"col-md-2","col-form-label"],C,["name","intervalRunOnce",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_._uU(5),_.TgZ(6,"button",4),_.NdJ("click",function(){return t.update()}),_.SDv(7,5),_.qZA(),_.qZA(),_.TgZ(8,"div",6),_.YNc(9,C_,46,15,"form",7),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.hij(" ",null==t.interval?null:t.interval.name," "),_.xp6(1),_.Q6J("disabled",!(null!=t.interval&&t.interval.name)),_.xp6(3),_.Q6J("ngIf",t.interval))},directives:[p.O5,l._Y,l.JL,l.F,l.Fj,l.JJ,l.On,l.Q7,l.EJ,l.YN,l.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),u_=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-action-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[A.lC],styles:[""]}),o})();const v_=function(o){return{intervalName:o}};function S_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(n){const r=_.CHM(e).$implicit;return _.oxw().selectOne(n,r)}),_.qZA(),_.qZA(),_.TgZ(3,"td",61),_._uU(4),_.qZA(),_.TgZ(5,"td",61),_._uU(6),_.qZA(),_.TgZ(7,"td"),_.TgZ(8,"a",62),_._uU(9),_.qZA(),_.qZA(),_.TgZ(10,"td"),_._uU(11),_.qZA(),_.qZA()}if(2&o){const e=a.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Q6J("queryParams",_.VKq(8,v_,e.intervalName)),_.xp6(1),_.Oqu(e.intervalName),_.xp6(2),_.Oqu(e.address.type)}}let m_=(()=>{class o{constructor(e,t,n,i){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.intervalActionList=[],this.intervalActionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.route.queryParams.subscribe(e=>{e.intervalName||this.findIntervalActionsPagination()})}refresh(){this.schedulerSvc.findAllIntervalActionsPagination(0,this.pageLimit).subscribe(e=>{this.intervalActionList=e.actions,this.msgSvc.success("refresh"),this.resetPagination()})}findIntervalActionsPagination(){this.schedulerSvc.findAllIntervalActionsPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.intervalActionList=e.actions})}isCheckedAll(){let e=!0;return this.intervalActionList&&0===this.intervalActionList.length&&(e=!1),this.intervalActionList.forEach(t=>{-1===this.intervalActionSelected.findIndex(n=>n.name===t.name)&&(e=!1)}),e}selectAll(e){this.intervalActionList.forEach(e.target.checked?n=>{-1===this.intervalActionSelected.findIndex(i=>i.name===n.name)&&this.intervalActionSelected.push(n)}:n=>{let i=this.intervalActionSelected.findIndex(r=>r.name===n.name);-1!==i&&this.intervalActionSelected.splice(i,1)})}isChecked(e){return this.intervalActionSelected.findIndex(t=>t.name===e)>=0}selectOne(e,t){if(e.target.checked)return void this.intervalActionSelected.push(t);let i=this.intervalActionSelected.findIndex(r=>r.name===t.name);-1!==i&&this.intervalActionSelected.splice(i,1)}edit(){this.router.navigate(["../edit-interval-action"],{relativeTo:this.route,queryParams:{intervalActionName:this.intervalActionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteIntervalActions(){this.intervalActionSelected.forEach((e,t)=>{this.schedulerSvc.deleteIntervalActionByName(e.name).subscribe(()=>{this.intervalActionList.forEach((n,i)=>{n.name!==e.name||this.intervalActionList.splice(i,1)}),this.intervalActionSelected.splice(t,1),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findIntervalActionsPagination()})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findIntervalActionsPagination()}prePage(){this.setPagination(-1),this.findIntervalActionsPagination()}nextPage(){this.setPagination(1),this.findIntervalActionsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-action-list"]],decls:84,vars:7,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L;return a="Interval \u4EFB\u52A1\u5217\u8868",e="\u5237\u65B0",t="\u6DFB\u52A0",n="\u7F16\u8F91",i="\u5220\u9664",r="ID",C="\u540D\u5B57",T="\u76F8\u5173Interval",v="\u5730\u5740\u7C7B\u578B",S="\u6BCF\u9875\u6761\u76EE",m="\u4E0A\u4E00\u9875",R="\u4E0B\u4E00\u9875",f="\u8B66\u544A",Z="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",D="\u53D6\u6D88",L="\u786E\u8BA4",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],a,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],e,["type","button","routerLink","../add-interval-action",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],t,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],r,C,T,v,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],S,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],m,[1,"page-item"],R,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],f,[1,"modal-body"],Z,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],D,["type","button",1,"btn","btn-danger",3,"click"],L,[1,"user-select-all"],["routerLink","../../interval-center",3,"queryParams"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(9,"span"),_._UZ(10,"i",8),_.TgZ(11,"span"),_.SDv(12,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"button",10),_.TgZ(14,"span"),_._UZ(15,"i",11),_.TgZ(16,"span"),_.SDv(17,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(19,"span"),_._UZ(20,"i",14),_.TgZ(21,"span"),_.SDv(22,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(24,"span"),_._UZ(25,"i",17),_.TgZ(26,"span"),_.SDv(27,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",19),_.TgZ(29,"table",20),_.TgZ(30,"thead",21),_.TgZ(31,"tr"),_.TgZ(32,"th",22),_.TgZ(33,"input",23),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(34,"th",22),_.SDv(35,24),_.qZA(),_.TgZ(36,"th",22),_.SDv(37,25),_.qZA(),_.TgZ(38,"th",22),_.SDv(39,26),_.qZA(),_.TgZ(40,"th",22),_.SDv(41,27),_.qZA(),_.qZA(),_.qZA(),_.TgZ(42,"tbody"),_.YNc(43,S_,12,10,"tr",28),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"div",29),_.TgZ(45,"nav",30),_.TgZ(46,"ul",31),_.TgZ(47,"li",32),_.TgZ(48,"span",33),_.SDv(49,34),_.qZA(),_.qZA(),_.TgZ(50,"li",35),_.TgZ(51,"select",36),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(52,"option",37),_._uU(53,"5"),_.qZA(),_.TgZ(54,"option",38),_._uU(55,"10"),_.qZA(),_.TgZ(56,"option",39),_._uU(57,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(58,"li",40),_.TgZ(59,"button",41),_.NdJ("click",function(){return t.prePage()}),_._UZ(60,"i",42),_.TgZ(61,"span"),_.SDv(62,43),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"li",44),_.TgZ(64,"button",41),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(65,"span"),_.SDv(66,45),_.qZA(),_._UZ(67,"i",46),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"div",47),_.TgZ(69,"div",48),_.TgZ(70,"div",49),_.TgZ(71,"div",50),_.TgZ(72,"h5",51),_._UZ(73,"i",52),_.TgZ(74,"span"),_.SDv(75,53),_.qZA(),_.qZA(),_.qZA(),_.TgZ(76,"div",54),_.TgZ(77,"span"),_.SDv(78,55),_.qZA(),_.qZA(),_.TgZ(79,"div",56),_.TgZ(80,"button",57),_.SDv(81,58),_.qZA(),_.TgZ(82,"button",59),_.NdJ("click",function(){return t.deleteIntervalActions()}),_.SDv(83,60),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(18),_.Q6J("disabled",1!==t.intervalActionSelected.length),_.xp6(5),_.Q6J("disabled",0===t.intervalActionSelected.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(10),_.Q6J("ngForOf",t.intervalActionList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.intervalActionList.length))},directives:[A.rH,p.sg,l.EJ,l.JJ,l.On,l.YN,l.Kr,A.yS],styles:[""]}),o})();function R_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",10),_.NdJ("click",function(n){return _.CHM(e),_.oxw().close(n)}),_.qZA()}}let V=(()=>{class o{constructor(){this.visible=!1,this.validate=!1,this.intervalSelectedEvent=new _.vpe,this.selectedInterval={}}ngOnInit(){}onSingleIntervalSelected(e){this.selectedInterval=e,this.intervalSelectedEvent.emit(e)}close(e){e.stopPropagation(),this.visible=!1}toggle(e){e.stopImmediatePropagation(),this.visible=!this.visible}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-interval-combo-list"]],inputs:{validate:"validate",selectedInterval:"selectedInterval"},outputs:{intervalSelectedEvent:"intervalSelectedEvent"},decls:12,vars:11,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"click"],["type","text","name","selectedInterval","readonly","readonly","maxlength","0","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["id","validationIntervalNameFeedback",1,"invalid-feedback"],[1,"combo-body","shadow","rounded"],[3,"singleIntervalSelected","enableSelectAll","toolbars","singleIntervalSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(e,t){1&e&&(_.YNc(0,R_,1,0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"div",2),_.NdJ("click",function(i){return t.toggle(i)}),_.TgZ(3,"input",3),_.NdJ("ngModelChange",function(i){return t.selectedInterval.name=i}),_.qZA(),_.TgZ(4,"div",4),_.TgZ(5,"span",5),_._UZ(6,"i",6),_.qZA(),_.qZA(),_.TgZ(7,"div",7),_.TgZ(8,"small"),_._uU(9,"the interval name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(10,"div",8),_.TgZ(11,"app-interval-list",9),_.NdJ("singleIntervalSelectedEvent",function(i){return t.onSingleIntervalSelected(i)}),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.Q6J("ngIf",t.visible),_.xp6(3),_.ekj("is-invalid",!t.selectedInterval.name&&t.validate)("is-valid",t.selectedInterval.name&&t.validate),_.Q6J("ngModel",t.selectedInterval.name),_.xp6(7),_.Udp("display",t.visible?"":"none"),_.xp6(1),_.Q6J("singleIntervalSelected",t.selectedInterval)("enableSelectAll",!1)("toolbars",!1))},directives:[p.O5,l.Fj,l.nD,l.Q7,l.JJ,l.On,q],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),o})();var H=E(9549);function f_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("coredata")}),_.SDv(2,92),_.qZA(),_.TgZ(3,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("command")}),_.SDv(4,93),_.qZA(),_.TgZ(5,"span",91),_.NdJ("click",function(){return _.CHM(e),_.oxw().templateToggle("custom")}),_.SDv(6,94),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(1),_.ekj("badge-secondary","coredata"!==e.templateSelected)("badge-primary","coredata"===e.templateSelected),_.xp6(2),_.ekj("badge-secondary","command"!==e.templateSelected)("badge-primary","command"===e.templateSelected),_.xp6(2),_.ekj("badge-secondary","custom"!==e.templateSelected)("badge-primary","custom"===e.templateSelected)}}function Z_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.SDv(3,102),_.qZA(),_.TgZ(4,"div",14),_.TgZ(5,"select",103),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",104),_._uU(7,"GET"),_.qZA(),_.TgZ(8,"option",105),_._uU(9,"POST"),_.qZA(),_.TgZ(10,"option",106),_._uU(11,"PUT"),_.qZA(),_.TgZ(12,"option",107),_._uU(13,"DELETE"),_.qZA(),_.TgZ(14,"option",108),_._uU(15,"PATCH"),_.qZA(),_.TgZ(16,"option",109),_._uU(17,"HEAD"),_.qZA(),_.TgZ(18,"option",110),_._uU(19,"TRACE"),_.qZA(),_.TgZ(20,"option",111),_._uU(21,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(22,"div",11),_.TgZ(23,"label",112),_.SDv(24,113),_.qZA(),_.TgZ(25,"div",14),_.TgZ(26,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(27,"div",115),_.TgZ(28,"small"),_._uU(29,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",11),_.TgZ(31,"label",116),_.SDv(32,117),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(35,"div",119),_.TgZ(36,"small"),_.SDv(37,120),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"div",17),_.TgZ(39,"label",121),_.SDv(40,122),_.qZA(),_.TgZ(41,"div",14),_.TgZ(42,"input",123),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(43,"div",17),_.TgZ(44,"label",50),_.TgZ(45,"span",51),_.SDv(46,124),_.qZA(),_._UZ(47,"span",53),_.qZA(),_.TgZ(48,"div",14),_.TgZ(49,"input",54),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(50,"div",17),_.TgZ(51,"label",55),_.TgZ(52,"span",51),_._uU(53,"ContentType"),_.qZA(),_._UZ(54,"span",56),_.qZA(),_.TgZ(55,"div",14),_.TgZ(56,"input",57),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}function D_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.SDv(3,125),_.qZA(),_.TgZ(4,"div",14),_.TgZ(5,"select",103),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",107),_._uU(7,"DELETE"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"label",112),_.TgZ(10,"span",51),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",126),_.qZA(),_.TgZ(13,"div",14),_.TgZ(14,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",115),_.TgZ(16,"small"),_.SDv(17,127),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"label",116),_.SDv(20,128),_.qZA(),_.TgZ(21,"div",14),_.TgZ(22,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",119),_.TgZ(24,"small"),_.SDv(25,129),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",17),_.TgZ(27,"label",121),_.TgZ(28,"span",51),_.SDv(29,130),_.qZA(),_._UZ(30,"span",131),_.qZA(),_.TgZ(31,"div",14),_.TgZ(32,"input",132),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",17),_.TgZ(34,"label",133),_.SDv(35,134),_.qZA(),_.TgZ(36,"div",14),_.TgZ(37,"div",135),_.TgZ(38,"div",136),_.TgZ(39,"span",137),_._UZ(40,"i",138),_.qZA(),_.qZA(),_.TgZ(41,"input",139),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).coredataRequestParameter=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(9),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(9),_.Q6J("ngModel",e.coredataRequestParameter)}}function L_(o,a){1&o&&(_.TgZ(0,"div"),_._uU(1," no paramters. "),_.qZA())}function M_(o,a){if(1&o&&(_.TgZ(0,"select",157),_.TgZ(1,"option",78),_._uU(2,"false"),_.qZA(),_.TgZ(3,"option",78),_._uU(4,"true"),_.qZA(),_.qZA()),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function h_(o,a){if(1&o&&_._UZ(0,"input",158),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.MGl("placeholder","valueType: ",e.valueType,"")}}function O_(o,a){if(1&o&&(_.TgZ(0,"div"),_.TgZ(1,"div",17),_.TgZ(2,"label",153),_.SDv(3,154),_.qZA(),_.TgZ(4,"div",14),_.YNc(5,M_,5,4,"select",155),_.YNc(6,h_,1,3,"ng-template",null,156,_.W1O),_.qZA(),_.qZA(),_.qZA()),2&o){const e=a.$implicit,t=_.MAs(7);_.xp6(2),_.s9C("for",e.resourceName),_.xp6(1),_.pQV(e.resourceName),_.QtT(3),_.xp6(2),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function G_(o,a){if(1&o&&(_.TgZ(0,"div"),_.YNc(1,L_,2,0,"div",38),_.YNc(2,O_,8,4,"div",152),_.qZA()),2&o){const e=_.oxw(4);_.xp6(1),_.Q6J("ngIf",0==e.commandServiceTemplateRequestParameters.length),_.xp6(1),_.Q6J("ngForOf",e.commandServiceTemplateRequestParameters)}}function U_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",17),_.TgZ(1,"label",159),_.TgZ(2,"span",51),_.SDv(3,160),_.qZA(),_._UZ(4,"span",161),_.qZA(),_.TgZ(5,"div",14),_.TgZ(6,"select",162),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(4).pushEventOfGetCmdParamter=n}),_.TgZ(7,"option",163),_._uU(8,"yes"),_.qZA(),_.TgZ(9,"option",164),_._uU(10,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",17),_.TgZ(12,"label",165),_.TgZ(13,"span",51),_.SDv(14,166),_.qZA(),_._UZ(15,"span",167),_.qZA(),_.TgZ(16,"div",14),_.TgZ(17,"select",168),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(4).returnEventOfGetCmdParamter=n}),_.TgZ(18,"option",163),_._uU(19,"yes"),_.qZA(),_.TgZ(20,"option",164),_._uU(21,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(4);_.xp6(6),_.Q6J("ngModel",e.pushEventOfGetCmdParamter),_.xp6(11),_.Q6J("ngModel",e.returnEventOfGetCmdParamter)}}function P_(o,a){if(1&o&&(_.TgZ(0,"div",17),_.TgZ(1,"label",121),_.SDv(2,149),_.qZA(),_.TgZ(3,"div",14),_.TgZ(4,"div",6),_.TgZ(5,"div",1),_.TgZ(6,"span"),_._uU(7,"Command Parameters Setting"),_.qZA(),_.qZA(),_.TgZ(8,"div",4),_.YNc(9,G_,3,2,"div",150),_.YNc(10,U_,22,2,"ng-template",null,151,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&o){const e=_.MAs(11),t=_.oxw(3);_.xp6(9),_.Q6J("ngIf","PUT"==t.intervalAction.address.httpMethod)("ngIfElse",e)}}function b_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",17),_.TgZ(2,"label",101),_.TgZ(3,"span",51),_.SDv(4,140),_.qZA(),_._UZ(5,"span",141),_.qZA(),_.TgZ(6,"div",14),_.TgZ(7,"input",142),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.httpMethod=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"label",112),_.TgZ(10,"span",51),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",126),_.qZA(),_.TgZ(13,"div",14),_.TgZ(14,"input",114),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",115),_.TgZ(16,"small"),_.SDv(17,143),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"label",116),_.SDv(20,144),_.qZA(),_.TgZ(21,"div",14),_.TgZ(22,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",119),_.TgZ(24,"small"),_.SDv(25,145),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",17),_.TgZ(27,"label",121),_.SDv(28,146),_.qZA(),_.TgZ(29,"div",14),_.TgZ(30,"app-device-core-command-combo-list",147),_.NdJ("cmdMethodEvent",function(n){return _.CHM(e),_.oxw(2).onCmdMethodSelected(n)})("commandSelectedEvent",function(n){return _.CHM(e),_.oxw(2).onCommandSelected(n)}),_.qZA(),_.qZA(),_.qZA(),_.YNc(31,P_,12,2,"div",148),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(7),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("validate",!0),_.xp6(1),_.Q6J("ngIf",e.intervalAction.address.path&&e.intervalAction.address.httpMethod)}}function q_(o,a){if(1&o&&(_.TgZ(0,"div",null,95),_.TgZ(2,"div",96),_.YNc(3,Z_,57,14,"ng-template",97,98,_.W1O),_.YNc(5,D_,42,13,"ng-template",97,99,_.W1O),_.YNc(7,b_,32,13,"ng-template",97,100,_.W1O),_.qZA(),_.qZA()),2&o){const e=_.oxw();_.xp6(2),_.Q6J("ngSwitch",e.templateSelected),_.xp6(1),_.Q6J("ngSwitchCase","custom"),_.xp6(2),_.Q6J("ngSwitchCase","coredata"),_.xp6(2),_.Q6J("ngSwitchCase","command")}}let V_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="coredata",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="yes",this.returnEventOfGetCmdParamter="yes",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={adminState:"UNLOCKED"},this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}ngOnInit(){this.renderPopoverComponent(),this.renderCoredataDefaultTemplate()}initDatePickr(){let e=this;this.calendarStart=(0,G.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(t,n,i){e.intervalAction.address.path=e.coredataSvcAvailableAPI[0]+n}})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(e){switch(this.templateSelected=e,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.httpMethod="",this.intervalAction.address.host="edgex-core-command",this.intervalAction.address.port=59882,this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300),this.intervalAction.address={},this.intervalAction.address.type="REST",this.intervalAction.address.httpMethod="GET",this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}typeToggle(e){this.intervalAction.address.type=e,"REST"===e&&this.templateToggle("coredata")}onCmdMethodSelected(e){this.intervalAction.address.httpMethod=e,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(e){this.intervalAction.address.path=e.path,this.commandServiceTemplateRequestParameters=e.parameters}onSingleIntervalSelected(e){this.intervalAction.intervalName=e.name}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!0,t=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(e=!1);break;case this.addr_type_MQTT:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(e=!1);break;case this.addr_type_EMAIL:t&&(e=!1)}return e}getAllCmdTemplateParametersValue(){var e;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let t={};return null===(e=this.commandServiceTemplateRequestParameters)||void 0===e||e.forEach(n=>{""!==$(`#cmd-param-${n.resourceName}`).val().trim()&&(t[n.resourceName]=$(`#cmd-param-${n.resourceName}`).val().trim())}),JSON.stringify(t)}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}submit(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.addIntervalAction(this.intervalAction).subscribe(e=>{this.errorSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-interval-action"]],decls:176,vars:63,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c,N,I,J,X,x,B,k,W,Q,w,F,z,Y,j,K,__,e_,t_,n_,i_,o_,a_,l_,d_,r_,A_,s_,T_,c_,E_,g_;return a="\u63D0\u793A",e="scheduler\u63D0\u4F9B\u4E86\u4E00\u79CD\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u53EF\u4EE5\u5B9A\u4E49\u64CD\u4F5C\u4E00\u4E9B\u4E8B\u60C5\uFF0C\u6BD4\u5982\u8C03\u7528EdgeX\u670D\u52A1\u7684API\uFF0C\u6BD4\u5982\u8C03\u7528core data\u670D\u52A1\u7684API\u5B9A\u65F6\u6E05\u9664\u91C7\u96C6\u6570\u636E\u7B49\uFF0C\u6216\u8005\u5B9A\u65F6\u8C03\u7528commanf\u670D\u52A1\u4F5C\u4E3A\u5B9A\u65F6\u91C7\u96C6\u4EFB\u52A1\u7B49",t="\u6DFB\u52A0 Interval \u4EFB\u52A1",n="\u63D0\u4EA4",i="\u540D\u5B57",r="Interval\u540D\u5B57",C="\u7BA1\u7406\u72B6\u6001",T="\u5730\u5740",v="Host",S="the MQTT host can't be empty!",m="Port",R="the MQTT port can't be empty and only pure integer is supported!!",f="\u5185\u5BB9",Z="Publisher",D="the MQTT publisher can't be empty!",L="Topic",c="the MQTT topic can't be empty!",N="QoS",I="KeepAlive",J="Retained",X="AutoReconnect",x="ConnectTimeout",B="Email\u63A5\u6536\u8005",k="\u5185\u5BB9",W="CoreData\u670D\u52A1\u6A21\u677F",Q="Command\u670D\u52A1\u6A21\u677F",w="\u81EA\u5B9A\u4E49\u6A21\u677F",F="HttpMethod",z="Host",Y="Port",j="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",K="Path",__="\u5185\u5BB9",e_="HttpMethod",t_="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",n_="Port",i_="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",o_="Path",a_="Parameter",l_="HttpMethod",d_="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",r_="Port",A_="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",s_="Path",T_="Parameters",c_="" + "\ufffd0\ufffd" + "",E_="pushevent",g_="returnevent",[[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-info-circle","mr-2","text-info"],a,[1,"card-body"],e,[1,"card"],[1,"fa","fa-plus","text-danger","mr-1"],t,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],n,[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],i,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],r,[1,"mb-3"],[3,"validate","intervalSelectedEvent"],["for","adminState",1,"col-md-2","col-form-label"],C,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],T,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","REST",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange","click"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["MQTT",""],["for","addressHostMQTT","required","",1,"col-md-2","col-form-label"],v,["type","text","id","addressHostMQTT","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostMQTTFeedback",1,"invalid-feedback"],S,["for","addressPortMQTT","required","",1,"col-md-2","col-form-label"],m,["type","text","id","addressPortMQTT","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortMQTTFeedback",1,"invalid-feedback"],R,["for","Content",1,"col-md-2","col-form-label"],[1,"mr-2"],f,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],["for","addressPublisher","required","",1,"col-md-2","col-form-label"],Z,["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],D,["for","addressTopic","required","",1,"col-md-2","col-form-label"],L,["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],c,["for","addressQoS",1,"col-md-2","col-form-label"],N,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","only pure integer supported!",1,"fa","fa-question-circle-o","fa-lg"],["type","number","id","addressQoS","name","addressQoS",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive",1,"col-md-2","col-form-label"],I,["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],J,["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],X,["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],x,["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],B,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],k,["role","button",1,"badge","mr-2",3,"click"],W,Q,w,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],F,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],z,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],Y,["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],j,["for","addressPath","required","",1,"col-md-2","col-form-label"],K,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],__,e_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],t_,n_,i_,o_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],a_,[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],l_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],d_,r_,A_,s_,[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],T_,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],c_,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],E_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],g_,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.tHW(6,5),_._UZ(7,"br"),_.N_p(),_.qZA(),_.qZA(),_.TgZ(8,"div",6),_.TgZ(9,"div",1),_._UZ(10,"i",7),_.TgZ(11,"span"),_.SDv(12,8),_.qZA(),_.TgZ(13,"button",9),_.NdJ("click",function(){return t.submit()}),_.SDv(14,10),_.qZA(),_.qZA(),_.TgZ(15,"div",4),_.TgZ(16,"form"),_.TgZ(17,"div",11),_.TgZ(18,"label",12),_.SDv(19,13),_.qZA(),_.TgZ(20,"div",14),_.TgZ(21,"input",15),_.NdJ("ngModelChange",function(i){return t.intervalAction.name=i}),_.qZA(),_.TgZ(22,"div",16),_.TgZ(23,"small"),_._uU(24,"the interval action name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(25,"div",17),_.TgZ(26,"label",18),_.SDv(27,19),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"div",20),_.TgZ(30,"app-interval-combo-list",21),_.NdJ("intervalSelectedEvent",function(i){return t.onSingleIntervalSelected(i)}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",17),_.TgZ(32,"label",22),_.SDv(33,23),_.qZA(),_.TgZ(34,"div",14),_.TgZ(35,"select",24),_.NdJ("ngModelChange",function(i){return t.intervalAction.adminState=i}),_.TgZ(36,"option",25),_._uU(37,"UNLOCKED"),_.qZA(),_.TgZ(38,"option",26),_._uU(39,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(40,"div",17),_.TgZ(41,"label",27),_.SDv(42,28),_.qZA(),_.TgZ(43,"div",14),_.TgZ(44,"div",6),_.TgZ(45,"div",1),_.TgZ(46,"div",29),_.TgZ(47,"span",30),_.TgZ(48,"input",31),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("REST")}),_.qZA(),_.TgZ(49,"label",32),_._uU(50,"REST"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(51,"div",29),_.TgZ(52,"span",30),_.TgZ(53,"input",33),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("MQTT")}),_.qZA(),_.TgZ(54,"label",34),_._uU(55,"MQTT"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",29),_.TgZ(57,"span",30),_.TgZ(58,"input",35),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.type=i})("click",function(){return t.typeToggle("EMAIL")}),_.qZA(),_.TgZ(59,"label",36),_._uU(60,"EMAIL"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(61,f_,7,12,"div",37),_.TgZ(62,"div",4),_.YNc(63,q_,9,4,"div",38),_.TgZ(64,"div",null,39),_.TgZ(66,"form"),_.TgZ(67,"div",11),_.TgZ(68,"label",40),_.SDv(69,41),_.qZA(),_.TgZ(70,"div",14),_.TgZ(71,"input",42),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.host=i}),_.qZA(),_.TgZ(72,"div",43),_.TgZ(73,"small"),_.SDv(74,44),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(75,"div",11),_.TgZ(76,"label",45),_.SDv(77,46),_.qZA(),_.TgZ(78,"div",14),_.TgZ(79,"input",47),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.port=i}),_.qZA(),_.TgZ(80,"div",48),_.TgZ(81,"small"),_.SDv(82,49),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(83,"div",17),_.TgZ(84,"label",50),_.TgZ(85,"span",51),_.SDv(86,52),_.qZA(),_._UZ(87,"span",53),_.qZA(),_.TgZ(88,"div",14),_.TgZ(89,"input",54),_.NdJ("ngModelChange",function(i){return t.intervalAction.content=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(90,"div",17),_.TgZ(91,"label",55),_.TgZ(92,"span",51),_._uU(93,"ContentType"),_.qZA(),_._UZ(94,"span",56),_.qZA(),_.TgZ(95,"div",14),_.TgZ(96,"input",57),_.NdJ("ngModelChange",function(i){return t.intervalAction.contentType=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(97,"div",11),_.TgZ(98,"label",58),_.SDv(99,59),_.qZA(),_.TgZ(100,"div",14),_.TgZ(101,"input",60),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.publisher=i}),_.qZA(),_.TgZ(102,"div",61),_.TgZ(103,"small"),_.SDv(104,62),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(105,"div",11),_.TgZ(106,"label",63),_.SDv(107,64),_.qZA(),_.TgZ(108,"div",14),_.TgZ(109,"input",65),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.topic=i}),_.qZA(),_.TgZ(110,"div",66),_.TgZ(111,"small"),_.SDv(112,67),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(113,"div",17),_.TgZ(114,"label",68),_.TgZ(115,"span",51),_.SDv(116,69),_.qZA(),_._UZ(117,"span",70),_.qZA(),_.TgZ(118,"div",14),_.TgZ(119,"input",71),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.qos=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(120,"div",17),_.TgZ(121,"label",72),_.TgZ(122,"span",51),_.SDv(123,73),_.qZA(),_._UZ(124,"span",70),_.qZA(),_.TgZ(125,"div",14),_.TgZ(126,"input",74),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.keepAlive=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(127,"div",17),_.TgZ(128,"label",75),_.SDv(129,76),_.qZA(),_.TgZ(130,"div",14),_.TgZ(131,"select",77),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.retained=i}),_.TgZ(132,"option",78),_._uU(133,"false"),_.qZA(),_.TgZ(134,"option",78),_._uU(135,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(136,"div",17),_.TgZ(137,"label",79),_.SDv(138,80),_.qZA(),_.TgZ(139,"div",14),_.TgZ(140,"select",81),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.autoReconnect=i}),_.TgZ(141,"option",78),_._uU(142,"true"),_.qZA(),_.TgZ(143,"option",78),_._uU(144,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(145,"div",17),_.TgZ(146,"label",82),_.TgZ(147,"span",51),_.SDv(148,83),_.qZA(),_._UZ(149,"span",70),_.qZA(),_.TgZ(150,"div",14),_.TgZ(151,"input",84),_.NdJ("ngModelChange",function(i){return t.intervalAction.address.connectTimeout=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(152,"div",null,85),_.TgZ(154,"form"),_.TgZ(155,"div",17),_.TgZ(156,"label",86),_.TgZ(157,"span",51),_.SDv(158,87),_.qZA(),_._UZ(159,"span",88),_.qZA(),_.TgZ(160,"div",14),_.TgZ(161,"input",89),_.NdJ("ngModelChange",function(i){return t.addressEmailRecipients=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(162,"div",17),_.TgZ(163,"label",50),_.TgZ(164,"span",51),_.SDv(165,90),_.qZA(),_._UZ(166,"span",53),_.qZA(),_.TgZ(167,"div",14),_.TgZ(168,"input",54),_.NdJ("ngModelChange",function(i){return t.intervalAction.content=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(169,"div",17),_.TgZ(170,"label",55),_.TgZ(171,"span",51),_._uU(172,"ContentType"),_.qZA(),_._UZ(173,"span",56),_.qZA(),_.TgZ(174,"div",14),_.TgZ(175,"input",57),_.NdJ("ngModelChange",function(i){return t.intervalAction.contentType=i}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(13),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.intervalAction.name)("is-valid",t.intervalAction.name),_.Q6J("ngModel",t.intervalAction.name),_.xp6(9),_.Q6J("validate",!0),_.xp6(5),_.Q6J("ngModel",t.intervalAction.adminState),_.xp6(12),_.ekj("badge-secondary","REST"!==t.intervalAction.address.type)("badge-primary","REST"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary","MQTT"!==t.intervalAction.address.type)("badge-primary","MQTT"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary","EMAIL"!==t.intervalAction.address.type)("badge-primary","EMAIL"===t.intervalAction.address.type),_.xp6(1),_.Q6J("ngModel",t.intervalAction.address.type),_.xp6(3),_.Q6J("ngIf","REST"===t.intervalAction.address.type),_.xp6(2),_.Q6J("ngIf","REST"===t.intervalAction.address.type),_.xp6(1),_.Udp("display","MQTT"!==t.intervalAction.address.type?"none":""),_.xp6(7),_.ekj("is-invalid",!t.intervalAction.address.host)("is-valid",t.intervalAction.address.host),_.Q6J("ngModel",t.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(t.intervalAction.address.port))("is-valid",t.isPureIntegerType(t.intervalAction.address.port)),_.Q6J("ngModel",t.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",t.intervalAction.content),_.xp6(7),_.Q6J("ngModel",t.intervalAction.contentType),_.xp6(5),_.ekj("is-invalid",!t.intervalAction.address.publisher)("is-valid",t.intervalAction.address.publisher),_.Q6J("ngModel",t.intervalAction.address.publisher),_.xp6(8),_.ekj("is-invalid",!t.intervalAction.address.topic)("is-valid",t.intervalAction.address.topic),_.Q6J("ngModel",t.intervalAction.address.topic),_.xp6(10),_.Q6J("ngModel",t.intervalAction.address.qos),_.xp6(7),_.Q6J("ngModel",t.intervalAction.address.keepAlive),_.xp6(5),_.Q6J("ngModel",t.intervalAction.address.retained),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0),_.xp6(6),_.Q6J("ngModel",t.intervalAction.address.autoReconnect),_.xp6(1),_.Q6J("ngValue",!0),_.xp6(2),_.Q6J("ngValue",!1),_.xp6(8),_.Q6J("ngModel",t.intervalAction.address.connectTimeout),_.xp6(1),_.Udp("display","EMAIL"!==(null==t.intervalAction.address?null:t.intervalAction.address.type)?"none":""),_.xp6(9),_.Q6J("ngModel",t.addressEmailRecipients),_.xp6(7),_.Q6J("ngModel",t.intervalAction.content),_.xp6(7),_.Q6J("ngModel",t.intervalAction.contentType))},directives:[l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,V,l.EJ,l.YN,l.Kr,l._,p.O5,l.wV,p.RF,p.n9,H.P,p.sg],styles:[""]}),o})();function $_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",48),_.TgZ(1,"app-interval-combo-list",49),_.NdJ("intervalSelectedEvent",function(n){return _.CHM(e),_.oxw(2).onSingleIntervalSelected(n)}),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(1),_.Q6J("validate",!0)("selectedInterval",e.selectedIntervalDefault)}}function H_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",1),_.TgZ(1,"span",50),_.SDv(2,51),_.qZA(),_._UZ(3,"span",52),_.TgZ(4,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_coredata)}),_.SDv(5,54),_.qZA(),_.TgZ(6,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_command)}),_.SDv(7,55),_.qZA(),_.TgZ(8,"span",53),_.NdJ("click",function(){_.CHM(e);const n=_.oxw(2);return n.templateToggle(n.template_type_custom)}),_.SDv(9,56),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(4),_.ekj("badge-secondary",e.templateSelected!==e.template_type_coredata)("badge-primary",e.templateSelected===e.template_type_coredata),_.xp6(2),_.ekj("badge-secondary",e.templateSelected!==e.template_type_command)("badge-primary",e.templateSelected===e.template_type_command),_.xp6(2),_.ekj("badge-secondary",e.templateSelected!==e.template_type_custom)("badge-primary",e.templateSelected===e.template_type_custom)}}function y_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_._uU(3,"HttpMethod"),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"select",64),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",65),_._uU(7,"GET"),_.qZA(),_.TgZ(8,"option",66),_._uU(9,"POST"),_.qZA(),_.TgZ(10,"option",67),_._uU(11,"PUT"),_.qZA(),_.TgZ(12,"option",68),_._uU(13,"DELETE"),_.qZA(),_.TgZ(14,"option",69),_._uU(15,"PATCH"),_.qZA(),_.TgZ(16,"option",70),_._uU(17,"HEAD"),_.qZA(),_.TgZ(18,"option",71),_._uU(19,"TRACE"),_.qZA(),_.TgZ(20,"option",72),_._uU(21,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(22,"div",8),_.TgZ(23,"label",73),_._uU(24,"Host"),_.qZA(),_.TgZ(25,"div",11),_.TgZ(26,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(27,"div",75),_.TgZ(28,"small"),_._uU(29,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(30,"div",8),_.TgZ(31,"label",76),_._uU(32,"Port"),_.qZA(),_.TgZ(33,"div",11),_.TgZ(34,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(35,"div",78),_.TgZ(36,"small"),_._uU(37,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(38,"div",14),_.TgZ(39,"label",79),_._uU(40,"Path"),_.qZA(),_.TgZ(41,"div",11),_.TgZ(42,"input",80),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(43,"div",14),_.TgZ(44,"label",41),_.TgZ(45,"span",38),_.SDv(46,81),_.qZA(),_._UZ(47,"span",43),_.qZA(),_.TgZ(48,"div",11),_.TgZ(49,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(50,"div",14),_.TgZ(51,"label",45),_.TgZ(52,"span",38),_._uU(53,"ContentType"),_.qZA(),_._UZ(54,"span",46),_.qZA(),_.TgZ(55,"div",11),_.TgZ(56,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}function J_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_._uU(3,"HttpMethod"),_.qZA(),_.TgZ(4,"div",11),_.TgZ(5,"select",64),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.TgZ(6,"option",68),_._uU(7,"DELETE"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",8),_.TgZ(9,"label",73),_.TgZ(10,"span",38),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",82),_.qZA(),_.TgZ(13,"div",11),_.TgZ(14,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",75),_.TgZ(16,"small"),_._uU(17,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",8),_.TgZ(19,"label",76),_._uU(20,"Port"),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",78),_.TgZ(24,"small"),_._uU(25,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",79),_.TgZ(28,"span",38),_._uU(29,"Path"),_.qZA(),_._UZ(30,"span",83),_.qZA(),_.TgZ(31,"div",11),_.TgZ(32,"input",84),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.path=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",14),_.TgZ(34,"label",85),_._uU(35,"Parameter"),_.qZA(),_.TgZ(36,"div",11),_.TgZ(37,"div",86),_.TgZ(38,"div",87),_.TgZ(39,"span",88),_._UZ(40,"i",89),_.qZA(),_.qZA(),_.TgZ(41,"input",90),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).coredataRequestParameter=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(9),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.address.path),_.xp6(9),_.Q6J("ngModel",e.coredataRequestParameter)}}function X_(o,a){1&o&&(_.TgZ(0,"div"),_._uU(1," no paramters. "),_.qZA())}function x_(o,a){if(1&o&&(_.TgZ(0,"select",103),_.TgZ(1,"option",104),_._uU(2,"false"),_.qZA(),_.TgZ(3,"option",104),_._uU(4,"true"),_.qZA(),_.qZA()),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0)}}function B_(o,a){if(1&o&&_._UZ(0,"input",105),2&o){const e=_.oxw().$implicit;_.MGl("id","cmd-param-",e.resourceName,""),_.s9C("name",e.resourceName),_.MGl("placeholder","valueType: ",e.valueType,"")}}function k_(o,a){if(1&o&&(_.TgZ(0,"div"),_.TgZ(1,"div",14),_.TgZ(2,"label",99),_.SDv(3,100),_.qZA(),_.TgZ(4,"div",11),_.YNc(5,x_,5,4,"select",101),_.YNc(6,B_,1,3,"ng-template",null,102,_.W1O),_.qZA(),_.qZA(),_.qZA()),2&o){const e=a.$implicit,t=_.MAs(7);_.xp6(2),_.s9C("for",e.resourceName),_.xp6(1),_.pQV(e.resourceName),_.QtT(3),_.xp6(2),_.Q6J("ngIf","Bool"==e.valueType)("ngIfElse",t)}}function W_(o,a){if(1&o&&(_.TgZ(0,"div"),_.YNc(1,X_,2,0,"div",35),_.YNc(2,k_,8,4,"div",98),_.qZA()),2&o){const e=_.oxw(5);_.xp6(1),_.Q6J("ngIf",0==e.commandServiceTemplateRequestParameters.length),_.xp6(1),_.Q6J("ngForOf",e.commandServiceTemplateRequestParameters)}}function Q_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",14),_.TgZ(1,"label",106),_.TgZ(2,"span",38),_.SDv(3,107),_.qZA(),_._UZ(4,"span",108),_.qZA(),_.TgZ(5,"div",11),_.TgZ(6,"select",109),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(5).pushEventOfGetCmdParamter=n}),_.TgZ(7,"option",110),_._uU(8,"yes"),_.qZA(),_.TgZ(9,"option",111),_._uU(10,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",14),_.TgZ(12,"label",112),_.TgZ(13,"span",38),_.SDv(14,113),_.qZA(),_._UZ(15,"span",114),_.qZA(),_.TgZ(16,"div",11),_.TgZ(17,"select",115),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(5).returnEventOfGetCmdParamter=n}),_.TgZ(18,"option",110),_._uU(19,"yes"),_.qZA(),_.TgZ(20,"option",111),_._uU(21,"no"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(5);_.xp6(6),_.Q6J("ngModel",e.pushEventOfGetCmdParamter),_.xp6(11),_.Q6J("ngModel",e.returnEventOfGetCmdParamter)}}function w_(o,a){if(1&o&&(_.TgZ(0,"div",14),_.TgZ(1,"label",79),_.SDv(2,95),_.qZA(),_.TgZ(3,"div",11),_.TgZ(4,"div",0),_.TgZ(5,"div",1),_.TgZ(6,"span"),_._uU(7,"Command Parameters Setting"),_.qZA(),_.qZA(),_.TgZ(8,"div",7),_.YNc(9,W_,3,2,"div",96),_.YNc(10,Q_,22,2,"ng-template",null,97,_.W1O),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&o){const e=_.MAs(11),t=_.oxw(4);_.xp6(9),_.Q6J("ngIf","PUT"==t.intervalAction.address.httpMethod)("ngIfElse",e)}}function F_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"form"),_.TgZ(1,"div",14),_.TgZ(2,"label",63),_.TgZ(3,"span",38),_._uU(4,"HttpMethod"),_.qZA(),_._UZ(5,"span",91),_.qZA(),_.TgZ(6,"div",11),_.TgZ(7,"input",92),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.httpMethod=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(8,"div",8),_.TgZ(9,"label",73),_.TgZ(10,"span",38),_._uU(11,"Host"),_.qZA(),_._UZ(12,"span",82),_.qZA(),_.TgZ(13,"div",11),_.TgZ(14,"input",74),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.host=n}),_.qZA(),_.TgZ(15,"div",75),_.TgZ(16,"small"),_._uU(17,"the REST address host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"div",8),_.TgZ(19,"label",76),_._uU(20,"Port"),_.qZA(),_.TgZ(21,"div",11),_.TgZ(22,"input",77),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(3).intervalAction.address.port=n}),_.qZA(),_.TgZ(23,"div",78),_.TgZ(24,"small"),_._uU(25,"the REST address port can't be empty and only pure integer is supported!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",79),_._uU(28,"Path"),_.qZA(),_.TgZ(29,"div",11),_.TgZ(30,"app-device-core-command-combo-list",93),_.NdJ("cmdMethodEvent",function(n){return _.CHM(e),_.oxw(3).onCmdMethodSelected(n)})("commandSelectedEvent",function(n){return _.CHM(e),_.oxw(3).onCommandSelected(n)}),_.qZA(),_.qZA(),_.qZA(),_.YNc(31,w_,12,2,"div",94),_.qZA()}if(2&o){const e=_.oxw(3);_.xp6(7),_.Q6J("ngModel",e.intervalAction.address.httpMethod),_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(8),_.Q6J("validate",!0),_.xp6(1),_.Q6J("ngIf",e.intervalAction.address.path&&e.intervalAction.address.httpMethod)}}function z_(o,a){if(1&o&&(_.TgZ(0,"div",null,57),_.TgZ(2,"div",58),_.YNc(3,y_,57,14,"ng-template",59,60,_.W1O),_.YNc(5,J_,42,13,"ng-template",59,61,_.W1O),_.YNc(7,F_,32,13,"ng-template",59,62,_.W1O),_.qZA(),_.qZA()),2&o){const e=_.oxw(2);_.xp6(2),_.Q6J("ngSwitch",e.templateSelected),_.xp6(1),_.Q6J("ngSwitchCase",e.template_type_custom),_.xp6(2),_.Q6J("ngSwitchCase",e.template_type_coredata),_.xp6(2),_.Q6J("ngSwitchCase",e.template_type_command)}}function Y_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",null,116),_.TgZ(2,"form"),_.TgZ(3,"div",8),_.TgZ(4,"label",117),_._uU(5,"Host"),_.qZA(),_.TgZ(6,"div",11),_.TgZ(7,"input",118),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.host=n}),_.qZA(),_.TgZ(8,"div",119),_.TgZ(9,"small"),_._uU(10,"the MQTT host can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(11,"div",8),_.TgZ(12,"label",120),_._uU(13,"Port"),_.qZA(),_.TgZ(14,"div",11),_.TgZ(15,"input",121),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.port=n}),_.qZA(),_.TgZ(16,"div",122),_.TgZ(17,"small"),_._uU(18,"the MQTT port can't be empty and only pure integer is supported!!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(19,"div",14),_.TgZ(20,"label",41),_.TgZ(21,"span",38),_.SDv(22,123),_.qZA(),_._UZ(23,"span",43),_.qZA(),_.TgZ(24,"div",11),_.TgZ(25,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(26,"div",14),_.TgZ(27,"label",45),_.TgZ(28,"span",38),_._uU(29,"ContentType"),_.qZA(),_._UZ(30,"span",46),_.qZA(),_.TgZ(31,"div",11),_.TgZ(32,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(33,"div",8),_.TgZ(34,"label",124),_._uU(35,"Publisher"),_.qZA(),_.TgZ(36,"div",11),_.TgZ(37,"input",125),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.publisher=n}),_.qZA(),_.TgZ(38,"div",126),_.TgZ(39,"small"),_._uU(40,"the MQTT publisher can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(41,"div",8),_.TgZ(42,"label",127),_._uU(43,"Topic"),_.qZA(),_.TgZ(44,"div",11),_.TgZ(45,"input",128),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.topic=n}),_.qZA(),_.TgZ(46,"div",129),_.TgZ(47,"small"),_._uU(48,"the MQTT topic can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",130),_._uU(51,"QoS"),_.qZA(),_.TgZ(52,"div",11),_.TgZ(53,"input",131),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.qos=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(54,"div",14),_.TgZ(55,"label",132),_._uU(56,"KeepAlive"),_.qZA(),_.TgZ(57,"div",11),_.TgZ(58,"input",133),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.keepAlive=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",14),_.TgZ(60,"label",134),_._uU(61,"Retained"),_.qZA(),_.TgZ(62,"div",11),_.TgZ(63,"select",135),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.retained=n}),_.TgZ(64,"option",136),_._uU(65,"false"),_.qZA(),_.TgZ(66,"option",104),_._uU(67,"true"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"div",14),_.TgZ(69,"label",137),_._uU(70,"AutoReconnect"),_.qZA(),_.TgZ(71,"div",11),_.TgZ(72,"select",138),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.autoReconnect=n}),_.TgZ(73,"option",136),_._uU(74,"true"),_.qZA(),_.TgZ(75,"option",104),_._uU(76,"false"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(77,"div",14),_.TgZ(78,"label",139),_._uU(79,"ConnectTimeout"),_.qZA(),_.TgZ(80,"div",11),_.TgZ(81,"input",140),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw(2).intervalAction.address.connectTimeout=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw(2);_.xp6(7),_.ekj("is-invalid",!e.intervalAction.address.host)("is-valid",e.intervalAction.address.host),_.Q6J("ngModel",e.intervalAction.address.host),_.xp6(8),_.ekj("is-invalid",!e.isPureIntegerType(e.intervalAction.address.port))("is-valid",e.isPureIntegerType(e.intervalAction.address.port)),_.Q6J("ngModel",e.intervalAction.address.port),_.xp6(10),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType),_.xp6(5),_.ekj("is-invalid",!e.intervalAction.address.publisher)("is-valid",e.intervalAction.address.publisher),_.Q6J("ngModel",e.intervalAction.address.publisher),_.xp6(8),_.ekj("is-invalid",!e.intervalAction.address.topic)("is-valid",e.intervalAction.address.topic),_.Q6J("ngModel",e.intervalAction.address.topic),_.xp6(8),_.Q6J("ngModel",e.intervalAction.address.qos),_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.keepAlive),_.xp6(5),_.Q6J("ngModel",e.intervalAction.address.retained),_.xp6(1),_.Q6J("ngValue",!1),_.xp6(2),_.Q6J("ngValue",!0),_.xp6(6),_.Q6J("ngModel",e.intervalAction.address.autoReconnect),_.xp6(1),_.Q6J("ngValue",!0),_.xp6(2),_.Q6J("ngValue",!1),_.xp6(6),_.Q6J("ngModel",e.intervalAction.address.connectTimeout)}}function j_(o,a){if(1&o){const e=_.EpF();_.TgZ(0,"div",7),_.TgZ(1,"form"),_.TgZ(2,"div",8),_.TgZ(3,"label",9),_.SDv(4,10),_.qZA(),_.TgZ(5,"div",11),_.TgZ(6,"input",12),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.name=n}),_.qZA(),_.TgZ(7,"div",13),_.TgZ(8,"small"),_._uU(9,"the interval action name can't be empty!"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(10,"div",14),_.TgZ(11,"label",15),_.SDv(12,16),_.qZA(),_.TgZ(13,"div",11),_.YNc(14,$_,2,2,"div",17),_.qZA(),_.qZA(),_.TgZ(15,"div",14),_.TgZ(16,"label",18),_.SDv(17,19),_.qZA(),_.TgZ(18,"div",11),_.TgZ(19,"select",20),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.adminState=n}),_.TgZ(20,"option",21),_._uU(21,"UNLOCKED"),_.qZA(),_.TgZ(22,"option",22),_._uU(23,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(24,"div",14),_.TgZ(25,"label",23),_.SDv(26,24),_.qZA(),_.TgZ(27,"div",11),_.TgZ(28,"div",0),_.TgZ(29,"div",1),_.TgZ(30,"div",25),_.TgZ(31,"span",26),_.TgZ(32,"input",27),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n})("change",function(){return _.CHM(e),_.oxw().typeToggle("REST")}),_.qZA(),_.TgZ(33,"label",28),_._uU(34,"REST"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(35,"div",25),_.TgZ(36,"span",29),_.NdJ("click",function(){return _.CHM(e),_.oxw().typeToggle("MQTT")}),_.TgZ(37,"input",30),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n}),_.qZA(),_.TgZ(38,"label",31),_._uU(39,"MQTT"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(40,"div",25),_.TgZ(41,"span",29),_.NdJ("click",function(){return _.CHM(e),_.oxw().typeToggle("EMAIL")}),_.TgZ(42,"input",32),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.address.type=n}),_.qZA(),_.TgZ(43,"label",33),_._uU(44,"EMAIL"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.YNc(45,H_,10,12,"div",34),_.TgZ(46,"div",7),_.YNc(47,z_,9,4,"div",35),_.YNc(48,Y_,82,31,"div",35),_.TgZ(49,"div",null,36),_.TgZ(51,"form"),_.TgZ(52,"div",14),_.TgZ(53,"label",37),_.TgZ(54,"span",38),_._uU(55,"EmailRecipients"),_.qZA(),_._UZ(56,"span",39),_.qZA(),_.TgZ(57,"div",11),_.TgZ(58,"input",40),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().addressEmailRecipients=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",14),_.TgZ(60,"label",41),_.TgZ(61,"span",38),_.SDv(62,42),_.qZA(),_._UZ(63,"span",43),_.qZA(),_.TgZ(64,"div",11),_.TgZ(65,"input",44),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.content=n}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(66,"div",14),_.TgZ(67,"label",45),_.TgZ(68,"span",38),_._uU(69,"ContentType"),_.qZA(),_._UZ(70,"span",46),_.qZA(),_.TgZ(71,"div",11),_.TgZ(72,"input",47),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().intervalAction.contentType=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw();_.xp6(6),_.ekj("is-invalid",!e.intervalAction.name)("is-valid",e.intervalAction.name),_.Q6J("ngModel",e.intervalAction.name),_.xp6(8),_.Q6J("ngIf",e.selectedIntervalDefault),_.xp6(5),_.Q6J("ngModel",e.intervalAction.adminState),_.xp6(12),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_REST)("badge-primary",e.intervalAction.address.type===e.addr_type_REST),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_MQTT)("badge-primary",e.intervalAction.address.type===e.addr_type_MQTT),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(4),_.ekj("badge-secondary",e.intervalAction.address.type!==e.addr_type_EMAIL)("badge-primary",e.intervalAction.address.type===e.addr_type_EMAIL),_.xp6(1),_.Q6J("ngModel",e.intervalAction.address.type),_.xp6(3),_.Q6J("ngIf",e.intervalAction.address.type===e.addr_type_REST),_.xp6(2),_.Q6J("ngIf","REST"===e.intervalAction.address.type),_.xp6(1),_.Q6J("ngIf",(null==e.intervalAction.address?null:e.intervalAction.address.type)===e.addr_type_MQTT),_.xp6(1),_.Udp("display",e.intervalAction.address.type!==e.addr_type_EMAIL?"none":""),_.xp6(9),_.Q6J("ngModel",e.addressEmailRecipients),_.xp6(7),_.Q6J("ngModel",e.intervalAction.content),_.xp6(7),_.Q6J("ngModel",e.intervalAction.contentType)}}let K_=(()=>{class o{constructor(e,t,n,i,r){this.schedulerSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errorSvc=r,this.addr_type_REST="REST",this.addr_type_MQTT="MQTT",this.addr_type_EMAIL="EMAIL",this.template_type_coredata="coredata",this.template_type_command="command",this.template_type_custom="custom",this.addressEmailRecipients="",this.templateSelected="custom",this.coredataRequestParameter="",this.commandServiceTemplateRequestParameters=[],this.pushEventOfGetCmdParamter="yes",this.returnEventOfGetCmdParamter="yes",this.coredataSvcAvailableAPI=["/api/v3/event/age/"],this.intervalAction={},this.intervalActionOrigin={},this.intervalAction.address={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(e=>{e.intervalActionName&&this.schedulerSvc.findIntervalActionByName(e.intervalActionName).subscribe(t=>{this.intervalAction=JSON.parse(JSON.stringify(t.action)),this.intervalActionOrigin=JSON.parse(JSON.stringify(t.action)),this.intervalActionOrigin.adminState=""===this.intervalActionOrigin.adminState?"UNLOCKED":this.intervalActionOrigin.adminState,this.intervalAction.adminState=""===this.intervalAction.adminState?"UNLOCKED":this.intervalAction.adminState,this.addressEmailRecipients=this.intervalAction.address.recipients?this.intervalAction.address.recipients.toString():"",this.findDefaultSelectedIntervalByName(this.intervalAction.intervalName),setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)})})}initDatePickr(){let e=this;this.calendarStart=(0,G.Z)("input[name='coredataRequestParameter']",{dateFormat:"YmdTHiS",enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:function(t,n,i){e.intervalAction.address.path=e.coredataSvcAvailableAPI[0]+n}})}setActionDefaultProperties(){switch(this.intervalAction.address.type){case this.addr_type_REST:this.intervalAction.address.httpMethod="GET";break;case this.addr_type_MQTT:this.intervalAction.address.retained=!1,this.intervalAction.address.autoReconnect=!0}}findDefaultSelectedIntervalByName(e){this.schedulerSvc.findIntervalByName(e).subscribe(t=>{this.selectedIntervalDefault=t.interval})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}renderCoredataDefaultTemplate(){this.intervalAction.address.httpMethod="DELETE",this.intervalAction.address.host="edgex-core-data",this.intervalAction.address.port=59880,this.intervalAction.address.path=this.coredataSvcAvailableAPI[0],setTimeout(()=>{this.renderPopoverComponent(),this.initDatePickr()},300)}templateToggle(e){switch(this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=this.addr_type_REST,this.templateSelected=e,this.templateSelected){case this.template_type_coredata:this.renderCoredataDefaultTemplate();break;case this.template_type_command:this.intervalAction.address.path="",this.intervalAction.address.httpMethod="",setTimeout(()=>{this.renderPopoverComponent()},300);break;case this.template_type_custom:setTimeout(()=>{this.renderPopoverComponent()},300)}}typeToggle(e){this.intervalAction=JSON.parse(JSON.stringify(this.intervalActionOrigin)),this.intervalAction.address.type=e,this.templateSelected="custom",setTimeout(()=>{this.renderPopoverComponent()},300)}onCmdMethodSelected(e){this.intervalAction.address.httpMethod=e,setTimeout(()=>{this.renderPopoverComponent()},500)}onCommandSelected(e){this.intervalAction.address.path=e.path,this.commandServiceTemplateRequestParameters=e.parameters}onSingleIntervalSelected(e){this.intervalAction.intervalName=e.name}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!0,t=this.intervalAction.name&&this.intervalAction.intervalName;switch(this.intervalAction.address.type){case this.addr_type_REST:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.path&&this.intervalAction.address.httpMethod&&(e=!1);break;case this.addr_type_MQTT:t&&this.intervalAction.address.host&&this.isPureIntegerType(this.intervalAction.address.port)&&this.intervalAction.address.publisher&&this.intervalAction.address.topic&&(e=!1);break;case this.addr_type_EMAIL:t&&(e=!1)}return e}getAllCmdTemplateParametersValue(){var e;if(this.intervalAction.address.type!==this.addr_type_REST||this.templateSelected!==this.template_type_command||"GET"==this.intervalAction.address.httpMethod)return"";let t={};return null===(e=this.commandServiceTemplateRequestParameters)||void 0===e||e.forEach(n=>{""!==$(`#cmd-param-${n.resourceName}`).val().trim()&&(t[n.resourceName]=$(`#cmd-param-${n.resourceName}`).val().trim())}),JSON.stringify(t)}resolveCommandTemplateParameterSuffix(){if(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent")){let e=this.intervalAction.address.path.split("?");this.intervalAction.address.path=e[0],e[1].split("&").forEach(i=>{let r=i.split("=");"ds-pushevent"===r[0]?this.pushEventOfGetCmdParamter=r[1]:"ds-returnevent"===r[0]&&(this.returnEventOfGetCmdParamter=r[1])})}}resetPathParameterSuffix(){(-1!==this.intervalAction.address.path.indexOf("ds-pushevent")||-1!==this.intervalAction.address.path.indexOf("ds-returnevent"))&&(this.intervalAction.address.path=this.intervalAction.address.path.split("?")[0]),this.intervalAction.address.path=`${this.intervalAction.address.path}?ds-pushevent=${this.pushEventOfGetCmdParamter}&ds-returnevent=${this.returnEventOfGetCmdParamter}`}save(){this.intervalAction.address.recipients=this.addressEmailRecipients.split(","),this.intervalAction.address.port=Number(this.intervalAction.address.port),this.intervalAction.address.type===this.addr_type_REST&&this.templateSelected===this.template_type_command&&("GET"===this.intervalAction.address.httpMethod?this.resetPathParameterSuffix():"PUT"===this.intervalAction.address.httpMethod&&(this.intervalAction.content=this.getAllCmdTemplateParametersValue())),this.schedulerSvc.updateIntervalAction(this.intervalAction).subscribe(e=>{this.errorSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update interval action",`name: ${this.intervalAction.name}`),this.router.navigate(["../interval-action-list"],{relativeTo:this.route}))})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(M.G),_.Y36(s.e),_.Y36(A.gz),_.Y36(A.F0),_.Y36(g.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-interval-action"]],decls:8,vars:2,consts:function(){let a,e,t,n,i,r,C,T,v,S,m,R,f,Z,D,L,c;return a="\u7F16\u8F91 Interval \u4EFB\u52A1",e="\u4FDD\u5B58",t="\u540D\u5B57",n="Interval\u540D\u5B57",i="\u7BA1\u7406\u72B6\u6001",r="\u5730\u5740",C="\u5185\u5BB9",T="\u53EF\u4EE5\u7528\u7684\u6A21\u677F >>",v="CoreData\u670D\u52A1\u6A21\u677F",S="Command\u670D\u52A1\u6A21\u677F",m="\u81EA\u5B9A\u4E49\u6A21\u677F",R="\u5185\u5BB9",f="Parameters",Z="" + "\ufffd0\ufffd" + "",D="pushevent",L="returnevent",c="\u5185\u5BB9",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-1"],a,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,["class","card-body",4,"ngIf"],[1,"card-body"],[1,"form-group","row","has-validation"],["for","intervalActionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationIntervalActionName","name","intervalActionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationIntervalActionNameFeedback",1,"invalid-feedback"],[1,"form-group","row"],["for","intervalName",1,"col-md-2","col-form-label"],n,["class","mb-3",4,"ngIf"],["for","adminState",1,"col-md-2","col-form-label"],i,["name","adminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","Address",1,"col-md-2","col-form-label"],r,[1,"form-check","form-check-inline"],[1,"badge"],["type","radio","name","inlineRadioOptions","id","REST","value","REST",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","REST",1,"form-check-label"],[1,"badge",3,"click"],["type","radio","name","inlineRadioOptions","id","MQTT","value","MQTT",1,"form-check-input",3,"ngModel","ngModelChange"],["for","MQTT",1,"form-check-label"],["type","radio","name","inlineRadioOptions","id","EMAIL","value","EMAIL",1,"form-check-input",3,"ngModel","ngModelChange"],["for","EMAIL",1,"form-check-label"],["class","card-header",4,"ngIf"],[4,"ngIf"],["EMAIL",""],["for","emailRecipients",1,"col-md-2","col-form-label"],[1,"mr-2"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["for","Content",1,"col-md-2","col-form-label"],C,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","the actual content to be sent as the body,such as one string format of JSON",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","Content","name","Content",1,"form-control",3,"ngModel","ngModelChange"],["for","ContentType",1,"col-md-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates which request contentType should be used (i.e. text/html, application/json), the default is application/json if not setup",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","ContentType","name","ContentType",1,"form-control",3,"ngModel","ngModelChange"],[1,"mb-3"],[3,"validate","selectedInterval","intervalSelectedEvent"],[1,"mr-2","text-primary"],T,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","custom template will be choosed by default",1,"fa","fa-question-circle-o","fa-lg","mr-2"],["role","button",1,"badge","mr-2",3,"click"],v,S,m,["REST",""],[3,"ngSwitch"],[3,"ngSwitchCase"],["customTemplate",""],["coredataTemplate",""],["commandTemplate",""],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],["for","addressPortREST","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPortREST","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],["for","addressPath","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],R,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Both Host and Port fields are editable if you have a different host address !",1,"fa","fa-question-circle-o","fa-lg"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Remove all old events (and associated readings) based on delimiting age, the parameters delimiting age will be filled up automatically when parameters field is selected!",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","addressPath","name","addressPath","disabled","",1,"form-control",3,"ngModel","ngModelChange"],["for","requestBody","required","",1,"col-md-2","col-form-label"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-calendar"],["type","text","name","coredataRequestParameter",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","httpMethod field will be filled up automatically when the path field is selected! ",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","httpMethod","disabled","","required","",1,"form-control",3,"ngModel","ngModelChange"],[3,"validate","cmdMethodEvent","commandSelectedEvent"],["class","form-group row",4,"ngIf"],f,[4,"ngIf","ngIfElse"],["getParameter",""],[4,"ngFor","ngForOf"],[1,"col-md-2","col-form-label",3,"for"],Z,["class","custom-select",3,"id","name",4,"ngIf","ngIfElse"],["valueTypeIsNotBool",""],[1,"custom-select",3,"id","name"],[3,"ngValue"],["type","text",1,"form-control",3,"id","name","placeholder"],["for","ds-pushevent",1,"col-md-2","col-form-label"],D,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","yes indicates a successful GET will result in an event being pushed to the EdgeX system",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-pushevent","name","ds-pushevent",1,"custom-select",3,"ngModel","ngModelChange"],["value","yes"],["value","no"],["for","ds-returnevent",1,"col-md-2","col-form-label"],L,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","no indicates there will be no Event returned in the http response",1,"fa","fa-question-circle-o","fa-lg"],["id","ds-returnevent","name","ds-returnevent",1,"custom-select",3,"ngModel","ngModelChange"],["MQTT",""],["for","addressHost","required","",1,"col-md-2","col-form-label"],["type","text","id","addressHost","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostFeedback",1,"invalid-feedback"],["for","addressPort","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPort","name","addressPort","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortFeedback",1,"invalid-feedback"],c,["for","addressPublisher","required","",1,"col-md-2","col-form-label"],["type","text","id","addressPublisher","name","addressPublisher","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPublisherFeedback",1,"invalid-feedback"],["for","addressTopic","required","",1,"col-md-2","col-form-label"],["type","text","id","addressTopic","name","addressTopic","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressTopicFeedback",1,"invalid-feedback"],["for","addressQoS","required","",1,"col-md-2","col-form-label"],["type","number","id","addressQoS","name","addressQoS","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","addressKeepAlive","required","",1,"col-md-2","col-form-label"],["type","number","id","addressKeepAlive","name","addressKeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["for","addressRetained","required","",1,"col-md-2","col-form-label"],["type","text","id","addressRetained","name","addressRetained",1,"custom-select",3,"ngModel","ngModelChange"],["selected","",3,"ngValue"],["for","addressAutoReconnect","required","",1,"col-md-2","col-form-label"],["type","text","id","addressAutoReconnect","name","addressAutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["for","addressConnectTimeout","required","",1,"col-md-2","col-form-label"],["type","number","id","addressConnectTimeout","name","addressConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.save()}),_.SDv(6,5),_.qZA(),_.qZA(),_.YNc(7,j_,73,30,"div",6),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(2),_.Q6J("ngIf",t.intervalAction))},directives:[p.O5,l._Y,l.JL,l.F,l.Fj,l.Q7,l.JJ,l.On,l.EJ,l.YN,l.Kr,l._,V,p.RF,p.n9,H.P,p.sg,l.wV],styles:[""]}),o})();var _e=E(8253),ee=E(1964),te=E(4294),ne=E(5894),ie=E(7216);let y=(()=>{class o{constructor(e,t){this.router=e,this.schedulerSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.schedulerSvc.ping().pipe((0,te.q)(1),(0,ne.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"scheduler",routerPath:`/${t.url.split("/")[1]}`}})),(0,ie.z)(()=>(0,ee.of)(!0)))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(A.F0),_.LFG(M.G))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const oe=[{path:"",component:P,canActivate:[_e.a,y],canActivateChild:[y],children:[{path:"",redirectTo:"interval-center",pathMatch:"full"},{path:"interval-center",component:O,children:[{path:"",redirectTo:"interval-list",pathMatch:"full"},{path:"interval-list",component:q},{path:"add-interval",component:I_},{path:"edit-interval",component:p_}]},{path:"interval-action-center",component:u_,children:[{path:"",redirectTo:"interval-action-list",pathMatch:"full"},{path:"interval-action-list",component:m_},{path:"add-interval-action",component:V_},{path:"edit-interval-action",component:K_}]}]}];let ae=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[A.Bz.forChild(oe)],A.Bz]}),o})();var le=E(6342);let de=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[p.ez,l.u5,le.Y,ae]]}),o})()},7982:(N_,U,E)=>{E.d(U,{V:()=>P});var p=E(1841),l=E(5894),A=E(476),_=E(4889);let P=(()=>{class O{constructor(s,g){this.http=s,this.errorSvc=g,this.endpoint="/core-command",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.endpointHealthUrl="/ping",this.versionUrl="/version",this.configUrl="/config",this.deviceCoreCommandListUrl=`${this.urlPrefix}/device/all`,this.commandsByDeviceIdUrl=`${this.urlPrefix}/device/`,this.commandsByDeviceNameUrl=`${this.urlPrefix}/device/name/`,this.issueCmdByDeviceNameAndCmdNameUrl=`${this.urlPrefix}/device/name/`,this.httpPostOrPutJSONOptions={headers:new p.WM({"Content-type":"application/json"})}}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,l.K)(g=>this.errorSvc.handleError(g)))}findCommnadsByDeviceId(s){return this.http.get(`${this.commandsByDeviceIdUrl}${s}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}allDeviceCoreCommandsPagination(s,g){return this.http.get(`${this.deviceCoreCommandListUrl}?offset=${s}&limit=${g}`).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}findDeviceAssociatedCommnadsByDeviceName(s){return this.http.get(`${this.commandsByDeviceNameUrl}${s}`).pipe((0,l.K)(u=>this.errorSvc.handleError(u)))}findAllDeviceCommnads(){return this.http.get(`${this.urlPrefix}/device`).pipe((0,l.K)(g=>this.errorSvc.handleError(g)))}issueGetBinaryCmd(s,g){return this.http.request("GET",`${this.commandsByDeviceIdUrl}${s}/command/${g}`,{responseType:"arraybuffer"}).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}issueGetCmd(s,g){return this.http.get(`${this.issueCmdByDeviceNameAndCmdNameUrl}${s}/${g}?ds-pushevent=true&ds-returnevent=true`).pipe((0,l.K)(h=>this.errorSvc.handleError(h)))}issueSetCmd(s,g,u){return this.http.put(`${this.issueCmdByDeviceNameAndCmdNameUrl}${s}/${g}`,JSON.stringify(u),this.httpPostOrPutJSONOptions).pipe((0,l.K)(b=>this.errorSvc.handleError(b)))}}return O.\u0275fac=function(s){return new(s||O)(A.LFG(p.eN),A.LFG(_.T))},O.\u0275prov=A.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/634.06407e8d8a370697347f.js b/cmd/edgex-ui-server/static/web/zh/634.06407e8d8a370697347f.js deleted file mode 100644 index 49dd2ef6..00000000 --- a/cmd/edgex-ui-server/static/web/zh/634.06407e8d8a370697347f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[634],{2634:(l_,F,l)=>{l.r(F),l.d(F,{NotificationsModule:()=>N_});var M=l(8583),S=l(3092),d=l(9502),_=l(476);let y=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notifications"]],decls:11,vars:0,consts:function(){let I,e;return I="\u901A\u77E5",e="\u8BA2\u9605",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./notification-center","routerLinkActive","active",1,"nav-link"],I,["routerLink","./subscription-center","routerLinkActive","active",1,"nav-link"],e,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.SDv(5,5),_.qZA(),_.qZA(),_.TgZ(6,"li",3),_.TgZ(7,"a",6),_.SDv(8,7),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",8),_._UZ(10,"router-outlet"),_.qZA(),_.qZA())},directives:[d.yS,d.Od,d.lC],styles:[""]}),o})(),J=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notification-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[d.lC],styles:[""]}),o})();var v=l(9827),B=l(9744),L=l(7822);function H(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",48),_.NdJ("click",function(n){const a=_.CHM(e).$implicit;return _.oxw().selectOne(n,a)}),_.qZA(),_.qZA(),_.TgZ(3,"td",91),_._uU(4),_.qZA(),_.TgZ(5,"td",91),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.qZA(),_.TgZ(15,"td"),_._uU(16),_.qZA(),_.TgZ(17,"td"),_._uU(18),_.qZA(),_.TgZ(19,"td"),_._uU(20),_.qZA(),_.TgZ(21,"td"),_._uU(22),_.ALo(23,"date"),_.qZA(),_.TgZ(24,"td"),_._uU(25),_.ALo(26,"date"),_.qZA(),_.qZA()}if(2&o){const e=I.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.id)),_.xp6(2),_.Q6J("checked",t.isChecked(e.id)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.category),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Oqu(e.content),_.xp6(2),_.Oqu(e.contentType),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.sender),_.xp6(2),_.Oqu(e.severity),_.xp6(2),_.Oqu(e.status),_.xp6(2),_.Oqu(_.xi3(23,14,e.created,"yyyy-MM-dd hh:mm:ss")),_.xp6(3),_.Oqu(_.xi3(26,17,e.modified,"yyyy-MM-dd hh:mm:ss"))}}let W=(()=>{class o{constructor(e,t){this.notiSvc=e,this.msgSvc=t,this.notificationList=[],this.notificationSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this.categorySelected="SECURITY",this.statusSelected="NEW",this.advancedOperation=!1}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.setSearchMode("status"),this.findNotificationsByStatusPagination(!0),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,v.Z)("input[name='startSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.startSelected=1e3*Number(t)}}),this.calendarEnd=(0,v.Z)("input[name='endSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.endSelected=1e3*Number(t)}}),this.calendarStart=(0,v.Z)("input[name='ageCleanupAll']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.ageCleanupAll=1e3*Number(t)}}),this.calendarEnd=(0,v.Z)("input[name='ageCleanupByStatusIsProcessed']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.ageCleanupByStatusIsProcessed=1e3*Number(t)}})}advancedToggle(){this.advancedOperation=!this.advancedOperation}findNotificationsByCategoryPagination(e){this.notiSvc.findNotificationsByCategoryPagination(this.pageOffset,this.pageLimit,this.categorySelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by category")})}findNotificationsByStatusPagination(e){this.notiSvc.findNotificationsByStatusPagination(this.pageOffset,this.pageLimit,this.statusSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by status")})}findNotificationsByLabelPagination(e){this.notiSvc.findNotificationsByLabelPagination(this.pageOffset,this.pageLimit,this.labelSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by label")})}findNotificationsByStartEndPagination(e){console.log(this.startSelected,this.endSelected),this.notiSvc.findNotificationsByStartEndPagination(this.pageOffset,this.pageLimit,this.startSelected,this.endSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by start and end")})}setSearchMode(e){this.searchMode=e}searchByStatus(){this.resetPagination(),this.setSearchMode("status"),this.findNotificationsByStatusPagination()}searchByCategory(){this.resetPagination(),this.setSearchMode("category"),this.findNotificationsByCategoryPagination()}searchByStartEnd(){this.resetPagination(),this.setSearchMode("duration"),this.findNotificationsByStartEndPagination()}deleteConfirm(e){this.cleanMode=e,$("#deleteConfirmDialog").modal("show")}cleanup(){switch(this.cleanMode){case"age":this.cleanupByAge();break;case"status":this.cleanupByAgeAndStatusIsProcessed();break;default:this.deleteSelected()}}cleanupByAge(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupAll).subscribe(()=>{this.msgSvc.success("cleanup by age")}),$("#deleteConfirmDialog").modal("hide")}cleanupByAgeAndStatusIsProcessed(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupByStatusIsProcessed).subscribe(()=>{this.msgSvc.success("cleanup by age when status is processed")}),$("#deleteConfirmDialog").modal("hide")}deleteSelected(){this.notificationSelected.forEach(e=>{this.notiSvc.deleteNotificationById(e.id).subscribe(()=>{this.msgSvc.success("delete",`ID: ${e.id}`)})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let e=!0;return this.notificationList&&0===this.notificationList.length&&(e=!1),this.notificationList.forEach(t=>{-1===this.notificationSelected.findIndex(n=>n.id===t.id)&&(e=!1)}),e}selectAll(e){this.notificationList.forEach(e.target.checked?n=>{-1===this.notificationSelected.findIndex(i=>i.id===n.id)&&this.notificationSelected.push(n)}:n=>{let i=this.notificationSelected.findIndex(a=>a.id===n.id);-1!==i&&this.notificationSelected.splice(i,1)})}isChecked(e){return this.notificationSelected.findIndex(t=>t.id===e)>=0}selectOne(e,t){if(e.target.checked)return void this.notificationSelected.push(t);let i=this.notificationSelected.findIndex(a=>a.id===t.id);-1!==i&&this.notificationSelected.splice(i,1)}paginationBySearchMode(){switch(this.searchMode){case"status":this.findNotificationsByStatusPagination(!0);break;case"category":this.findNotificationsByCategoryPagination(!0);break;case"duration":this.findNotificationsByStartEndPagination(!0)}}onPageSelected(){this.resetPagination(),this.paginationBySearchMode()}prePage(){this.setPagination(-1),this.paginationBySearchMode()}nextPage(){this.setPagination(1),this.paginationBySearchMode()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.setPagination()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notification-list"]],decls:161,vars:11,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h;return I="\u901A\u77E5\u5217\u8868",e="\u9ED8\u8BA4\u72B6\u6001\u503C\u4E3ANEW\u52A0\u8F7D\u6570\u636E",t="\u5220\u9664",n="\u9AD8\u7EA7\u529F\u80FD",i="\u72B6\u6001",a="\u5F00\u59CB",A="\u7ED3\u675F\u65F6\u95F4",r="\u6309\u65F6\u95F4\u6E05\u9664",C="\u6E05\u9664",c="\u7C7B\u522B",O="\u6807\u7B7E",g="\u5185\u5BB9",E="ContentType",u="\u63CF\u8FF0",p="\u53D1\u9001\u8005",f="\u4E25\u683C\u7B49\u7EA7",P="\u72B6\u6001",U="\u521B\u5EFA\u65F6\u95F4",R="\u4FEE\u6539\u65F6\u95F4",G="\u6BCF\u9875\u6761\u76EE",b="\u4E0A\u4E00\u9875",s="\u4E0B\u4E00\u9875",m="\u8B66\u544A",Z="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",D="\u53D6\u6D88",h="\u786E\u8BA4",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],I,[1,"fa","fa-info-circle","text-success","font-weight-bold","ml-1"],e,[1,"bg-light","card-header","p-0"],[1,"px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],t,["role","button",1,"text-primary","ml-3","text-decoration-none",3,"click"],n,[1,"fa","fa-angle-double-right","ml-1"],[1,"bg-light","card-header","p-0",3,"hidden"],[1,"form-group","row"],[1,"col-md-10"],[1,"input-group",2,"width","600px"],[1,"input-group-prepend"],[1,"input-group-text"],i,["name","statusSelected",1,"custom-select",3,"ngModel","ngModelChange"],["value","NEW"],["value","PROCESSED"],["value","ESCALATED"],["role","button",1,"input-group-append",3,"click"],[1,"fa","fa-search"],a,[1,"fa","fa-calendar"],["type","text","name","startSelected",1,"form-control"],A,["type","text","name","endSelected",1,"form-control"],[1,"input-group-append"],["type","button",1,"btn","btn-secondary",3,"disabled","click"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes notifications which have age and is less than the specified one, where the age of Notification is calculated by subtracting its last modification timestamp from the current timestamp. Note that the corresponding transmissions will also be deleted.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupAll",1,"form-control"],[1,"fa","fa-trash-o"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes the processed notifications if the current timestamp minus their last modification timestamp is less than the age parameter, and the corresponding transmissions will also be deleted. Please notice that this API is only for processed notifications (status = PROCESSED). If the deletion purpose includes each kind of notifications, please refer to cleanupAll.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupByStatusIsProcessed",1,"form-control"],["type","button",1,"btn","btn-danger","font-weight-bold",3,"disabled","click"],[1,"card-body","p-0","position-relative"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],c,O,g,E,u,p,f,P,U,R,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],G,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],b,[1,"page-item"],s,["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],m,[1,"modal-body"],Z,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],D,["type","button",1,"btn","btn-danger",3,"click"],h,[1,"user-select-all"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"span",4),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"div",7),_.TgZ(9,"div",8),_.TgZ(10,"button",9),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(11,"span"),_._UZ(12,"i",10),_.TgZ(13,"span"),_.SDv(14,11),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(15,"a",12),_.NdJ("click",function(){return t.advancedToggle()}),_.TgZ(16,"span"),_.TgZ(17,"span"),_.SDv(18,13),_.qZA(),_._UZ(19,"i",14),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(20,"div",15),_.TgZ(21,"div",7),_.TgZ(22,"form"),_.TgZ(23,"div",16),_.TgZ(24,"div",17),_.TgZ(25,"div",18),_.TgZ(26,"div",19),_.TgZ(27,"span",20),_.SDv(28,21),_.qZA(),_.qZA(),_.TgZ(29,"select",22),_.NdJ("ngModelChange",function(i){return t.statusSelected=i}),_.TgZ(30,"option",23),_._uU(31,"NEW"),_.qZA(),_.TgZ(32,"option",24),_._uU(33,"PROCESSED"),_.qZA(),_.TgZ(34,"option",25),_._uU(35,"ESCALATED"),_.qZA(),_.qZA(),_.TgZ(36,"div",26),_.NdJ("click",function(){return t.searchByStatus()}),_.TgZ(37,"span",20),_._UZ(38,"i",27),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",16),_.TgZ(40,"div",17),_.TgZ(41,"div",18),_.TgZ(42,"div",19),_.TgZ(43,"span",20),_.SDv(44,28),_.qZA(),_.qZA(),_.TgZ(45,"div",19),_.TgZ(46,"span",20),_._UZ(47,"i",29),_.qZA(),_.qZA(),_._UZ(48,"input",30),_.TgZ(49,"div",19),_.TgZ(50,"span",20),_.SDv(51,31),_.qZA(),_.qZA(),_.TgZ(52,"div",19),_.TgZ(53,"span",20),_._UZ(54,"i",29),_.qZA(),_.qZA(),_._UZ(55,"input",32),_.TgZ(56,"div",33),_.TgZ(57,"button",34),_.NdJ("click",function(){return t.searchByStartEnd()}),_._UZ(58,"i",27),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",16),_.TgZ(60,"div",17),_.TgZ(61,"div",18),_.TgZ(62,"div",19),_.TgZ(63,"span",20),_.TgZ(64,"span"),_.SDv(65,35),_.qZA(),_._uU(66,"\xa0 "),_._UZ(67,"span",36),_.qZA(),_.qZA(),_.TgZ(68,"div",19),_.TgZ(69,"span",20),_._UZ(70,"i",29),_.qZA(),_.qZA(),_._UZ(71,"input",37),_.TgZ(72,"div",33),_.TgZ(73,"button",9),_.NdJ("click",function(){return t.deleteConfirm("age")}),_._UZ(74,"i",38),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(75,"div",16),_.TgZ(76,"div",17),_.TgZ(77,"div",18),_.TgZ(78,"div",19),_.TgZ(79,"span",20),_.TgZ(80,"span"),_.SDv(81,39),_.qZA(),_._uU(82,"\xa0 "),_._UZ(83,"span",40),_.qZA(),_.qZA(),_.TgZ(84,"div",19),_.TgZ(85,"span",20),_._UZ(86,"i",29),_.qZA(),_.qZA(),_._UZ(87,"input",41),_.TgZ(88,"div",33),_.TgZ(89,"button",42),_.NdJ("click",function(){return t.deleteConfirm("status")}),_._UZ(90,"i",38),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(91,"div",43),_.TgZ(92,"div",44),_.TgZ(93,"table",45),_.TgZ(94,"thead",46),_.TgZ(95,"tr"),_.TgZ(96,"th",47),_.TgZ(97,"input",48),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(98,"th",47),_._uU(99,"ID"),_.qZA(),_.TgZ(100,"th",47),_.SDv(101,49),_.qZA(),_.TgZ(102,"th",47),_.SDv(103,50),_.qZA(),_.TgZ(104,"th",47),_.SDv(105,51),_.qZA(),_.TgZ(106,"th",47),_.SDv(107,52),_.qZA(),_.TgZ(108,"th",47),_.SDv(109,53),_.qZA(),_.TgZ(110,"th",47),_.SDv(111,54),_.qZA(),_.TgZ(112,"th",47),_.SDv(113,55),_.qZA(),_.TgZ(114,"th",47),_.SDv(115,56),_.qZA(),_.TgZ(116,"th",47),_.SDv(117,57),_.qZA(),_.TgZ(118,"th",47),_.SDv(119,58),_.qZA(),_.qZA(),_.qZA(),_.TgZ(120,"tbody"),_.YNc(121,H,27,20,"tr",59),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(122,"div",60),_.TgZ(123,"nav",61),_.TgZ(124,"ul",62),_.TgZ(125,"li",63),_.TgZ(126,"span",64),_.SDv(127,65),_.qZA(),_.qZA(),_.TgZ(128,"li",66),_.TgZ(129,"select",67),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(130,"option",68),_._uU(131,"5"),_.qZA(),_.TgZ(132,"option",69),_._uU(133,"10"),_.qZA(),_.TgZ(134,"option",70),_._uU(135,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(136,"li",71),_.TgZ(137,"button",72),_.NdJ("click",function(){return t.prePage()}),_._UZ(138,"i",73),_.TgZ(139,"span"),_.SDv(140,74),_.qZA(),_.qZA(),_.qZA(),_.TgZ(141,"li",75),_.TgZ(142,"button",72),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(143,"span"),_.SDv(144,76),_.qZA(),_._UZ(145,"i",14),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(146,"div",77),_.TgZ(147,"div",78),_.TgZ(148,"div",79),_.TgZ(149,"div",80),_.TgZ(150,"h5",81),_._UZ(151,"i",82),_.TgZ(152,"span"),_.SDv(153,83),_.qZA(),_.qZA(),_.qZA(),_.TgZ(154,"div",84),_.SDv(155,85),_.qZA(),_.TgZ(156,"div",86),_.TgZ(157,"button",87),_.SDv(158,88),_.qZA(),_.TgZ(159,"button",89),_.NdJ("click",function(){return t.cleanup()}),_.SDv(160,90),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(10),_.Q6J("disabled",0===t.notificationSelected.length),_.xp6(10),_.Q6J("hidden",!t.advancedOperation),_.xp6(9),_.Q6J("ngModel",t.statusSelected),_.xp6(28),_.Q6J("disabled",!t.startSelected||!t.endSelected),_.xp6(16),_.Q6J("disabled",!t.ageCleanupAll),_.xp6(16),_.Q6J("disabled",!t.ageCleanupByStatusIsProcessed),_.xp6(8),_.Q6J("checked",t.isCheckedAll()),_.xp6(24),_.Q6J("ngForOf",t.notificationList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.notificationList.length))},directives:[S._Y,S.JL,S.F,S.EJ,S.JJ,S.On,S.YN,S.Kr,M.sg],pipes:[M.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),k=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-subscription-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[d.lC],styles:[""]}),o})();var q=l(4889);function x(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(n){const a=_.CHM(e).$implicit;return _.oxw().selectOne(n,a)}),_.qZA(),_.qZA(),_.TgZ(3,"td",66),_._uU(4),_.qZA(),_.TgZ(5,"td",66),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td",67),_.TgZ(14,"span",68),_.NdJ("click",function(){const i=_.CHM(e).$implicit;return _.oxw().checkChannels(i)}),_._UZ(15,"i",69),_._uU(16),_.qZA(),_.qZA(),_.TgZ(17,"td"),_._uU(18),_.qZA(),_.TgZ(19,"td"),_._uU(20),_.qZA(),_.TgZ(21,"td"),_._uU(22),_.qZA(),_.qZA()}if(2&o){const e=I.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.categories),_.xp6(2),_.Oqu(e.labels),_.xp6(4),_.hij(" ",e.channels.length," "),_.xp6(2),_.Oqu(e.receiver),_.xp6(2),_.Oqu(e.resendLimit),_.xp6(2),_.Oqu(e.resendInterval)}}let z=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=a,this.subscriptionList=[],this.subscriptionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllSubscriptionsPagination()}refresh(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.subscriptionList=e.subscriptions,this.msgSvc.success("refresh")})}findAllSubscriptionsPagination(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.subscriptionList=e.subscriptions})}checkChannels(e){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:e.name}})}isCheckedAll(){let e=!0;return this.subscriptionList&&0===this.subscriptionList.length&&(e=!1),this.subscriptionList.forEach(t=>{-1===this.subscriptionSelected.findIndex(n=>n.id===t.id)&&(e=!1)}),e}selectAll(e){this.subscriptionList.forEach(e.target.checked?n=>{-1===this.subscriptionSelected.findIndex(i=>i.name===n.name)&&this.subscriptionSelected.push(n)}:n=>{let i=this.subscriptionSelected.findIndex(a=>a.name===n.name);-1!==i&&this.subscriptionSelected.splice(i,1)})}isChecked(e){return this.subscriptionSelected.findIndex(t=>t.name===e)>=0}selectOne(e,t){if(e.target.checked)return void this.subscriptionSelected.push(t);let i=this.subscriptionSelected.findIndex(a=>a.name===t.name);-1!==i&&this.subscriptionSelected.splice(i,1)}edit(){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:this.subscriptionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteSubs(){this.subscriptionSelected.forEach(e=>{this.notiSvc.deleteOneSubscriptionByName(e.name).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.subscriptionList.forEach((n,i)=>{n.name!==e.name||this.subscriptionList.splice(i,1)}),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findAllSubscriptionsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllSubscriptionsPagination()}prePage(){this.setPagination(-1),this.findAllSubscriptionsPagination()}nextPage(){this.setPagination(1),this.findAllSubscriptionsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(d.gz),_.Y36(d.F0),_.Y36(q.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-subscription-list"]],decls:93,vars:7,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b;return I="\u8BA2\u9605\u5217\u8868",e="\u5237\u65B0",t="\u6DFB\u52A0",n="\u7F16\u8F91",i="\u5220\u9664",a="ID",A="\u540D\u5B57",r="\u63CF\u8FF0",C="\u7C7B\u522B",c="\u6807\u7B7E",O="\u901A\u9053",g="\u63A5\u6536\u8005",E="\u91CD\u53D1\u9650\u5236",u="\u91CD\u53D1\u95F4\u9694",p="\u6BCF\u9875\u6761\u76EE",f="\u4E0A\u4E00\u9875",P="\u4E0B\u4E00\u9875",U="\u8B66\u544A",R="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",G="\u53D6\u6D88",b="\u786E\u8BA4",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],I,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],e,["type","button","routerLink","../add-subscription",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],t,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],a,A,r,C,c,O,g,E,u,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],p,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],f,[1,"page-item"],P,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],U,[1,"modal-body"],R,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],G,["type","button",1,"btn","btn-danger",3,"click"],b,[1,"user-select-all"],[1,"text-center"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-paper-plane-o"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(9,"span"),_._UZ(10,"i",8),_.TgZ(11,"span"),_.SDv(12,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"button",10),_.TgZ(14,"span"),_._UZ(15,"i",11),_.TgZ(16,"span"),_.SDv(17,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(19,"span"),_._UZ(20,"i",14),_.TgZ(21,"span"),_.SDv(22,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(24,"span"),_._UZ(25,"i",17),_.TgZ(26,"span"),_.SDv(27,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",19),_.TgZ(29,"table",20),_.TgZ(30,"thead",21),_.TgZ(31,"tr"),_.TgZ(32,"th",22),_.TgZ(33,"input",23),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(34,"th",22),_.SDv(35,24),_.qZA(),_.TgZ(36,"th",22),_.SDv(37,25),_.qZA(),_.TgZ(38,"th",22),_.SDv(39,26),_.qZA(),_.TgZ(40,"th",22),_.SDv(41,27),_.qZA(),_.TgZ(42,"th",22),_.SDv(43,28),_.qZA(),_.TgZ(44,"th",22),_.SDv(45,29),_.qZA(),_.TgZ(46,"th",22),_.SDv(47,30),_.qZA(),_.TgZ(48,"th",22),_.SDv(49,31),_.qZA(),_.TgZ(50,"th",22),_.SDv(51,32),_.qZA(),_.qZA(),_.qZA(),_.TgZ(52,"tbody"),_.YNc(53,x,23,12,"tr",33),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(54,"div",34),_.TgZ(55,"nav",35),_.TgZ(56,"ul",36),_.TgZ(57,"li",37),_.TgZ(58,"span",38),_.SDv(59,39),_.qZA(),_.qZA(),_.TgZ(60,"li",40),_.TgZ(61,"select",41),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(62,"option",42),_._uU(63,"5"),_.qZA(),_.TgZ(64,"option",43),_._uU(65,"10"),_.qZA(),_.TgZ(66,"option",44),_._uU(67,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"li",45),_.TgZ(69,"button",46),_.NdJ("click",function(){return t.prePage()}),_._UZ(70,"i",47),_.TgZ(71,"span"),_.SDv(72,48),_.qZA(),_.qZA(),_.qZA(),_.TgZ(73,"li",49),_.TgZ(74,"button",46),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(75,"span"),_.SDv(76,50),_.qZA(),_._UZ(77,"i",51),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(78,"div",52),_.TgZ(79,"div",53),_.TgZ(80,"div",54),_.TgZ(81,"div",55),_.TgZ(82,"h5",56),_._UZ(83,"i",57),_.TgZ(84,"span"),_.SDv(85,58),_.qZA(),_.qZA(),_.qZA(),_.TgZ(86,"div",59),_.SDv(87,60),_.qZA(),_.TgZ(88,"div",61),_.TgZ(89,"button",62),_.SDv(90,63),_.qZA(),_.TgZ(91,"button",64),_.NdJ("click",function(){return t.deleteSubs()}),_.SDv(92,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(18),_.Q6J("disabled",1!==t.subscriptionSelected.length),_.xp6(5),_.Q6J("disabled",0===t.subscriptionSelected.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(20),_.Q6J("ngForOf",t.subscriptionList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.subscriptionList.length))},directives:[d.rH,M.sg,S.EJ,S.JJ,S.On,S.YN,S.Kr],styles:[""]}),o})();function w(o,I){if(1&o&&_._UZ(0,"span",57),2&o){const e=_.oxw();_.ekj("text-danger",0===e.channelTemplates.length)}}function Q(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",60),_.TgZ(4,"span",16),_.SDv(5,61),_.qZA(),_._UZ(6,"span",62),_.qZA(),_.TgZ(7,"div",10),_.TgZ(8,"input",63),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.recipients=n}),_.qZA(),_.TgZ(9,"div",64),_.TgZ(10,"small"),_.SDv(11,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(13,"i",67),_.TgZ(14,"span"),_.SDv(15,68),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit;_.xp6(8),_.ekj("is-invalid",!e.recipients)("is-valid",e.recipients),_.Q6J("ngModel",e.recipients)}}function Y(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",69),_.SDv(4,70),_.qZA(),_.TgZ(5,"div",10),_.TgZ(6,"select",71),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.httpMethod=n}),_.TgZ(7,"option",72),_._uU(8,"GET"),_.qZA(),_.TgZ(9,"option",73),_._uU(10,"POST"),_.qZA(),_.TgZ(11,"option",74),_._uU(12,"PUT"),_.qZA(),_.TgZ(13,"option",75),_._uU(14,"DELETE"),_.qZA(),_.TgZ(15,"option",76),_._uU(16,"PATCH"),_.qZA(),_.TgZ(17,"option",77),_._uU(18,"HEAD"),_.qZA(),_.TgZ(19,"option",78),_._uU(20,"TRACE"),_.qZA(),_.TgZ(21,"option",79),_._uU(22,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"div",7),_.TgZ(24,"label",80),_.SDv(25,81),_.qZA(),_.TgZ(26,"div",10),_.TgZ(27,"input",82),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.host=n}),_.qZA(),_.TgZ(28,"div",83),_.TgZ(29,"small"),_.SDv(30,84),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",7),_.TgZ(32,"label",85),_.SDv(33,86),_.qZA(),_.TgZ(34,"div",10),_.TgZ(35,"input",87),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.port=n}),_.qZA(),_.TgZ(36,"div",88),_.TgZ(37,"small"),_.SDv(38,89),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",90),_.SDv(41,91),_.qZA(),_.TgZ(42,"div",10),_.TgZ(43,"input",92),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.path=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(45,"i",67),_.TgZ(46,"span"),_.SDv(47,93),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit,t=_.oxw();_.xp6(6),_.Q6J("ngModel",e.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.host)("is-valid",e.host),_.Q6J("ngModel",e.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(e.port))("is-valid",t.isPureIntegerType(e.port)),_.Q6J("ngModel",e.port),_.xp6(8),_.Q6J("ngModel",e.path)}}function j(o,I){if(1&o&&(_.TgZ(0,"div",58),_.TgZ(1,"div",6),_.YNc(2,Q,16,5,"div",59),_.YNc(3,Y,48,12,"div",59),_.qZA(),_.qZA()),2&o){const e=I.$implicit;_.xp6(2),_.Q6J("ngIf","EMAIL"===e.type),_.xp6(1),_.Q6J("ngIf","REST"===e.type)}}let K=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.errSvc=n,this.route=i,this.router=a,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={adminState:"UNLOCKED"}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}submit(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((e,t)=>{if("EMAIL"===e.type){let n=e.recipients.toString();e.recipients=n.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.addOneSubscription(this.subscription).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add new subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(e){switch(e){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(e){let t=this.channelTemplates.indexOf(e);-1!==t&&(this.channelTemplates.splice(t,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((t,n)=>{("REST"!==t.type||""!==t.path&&t.port)&&("EMAIL"!==t.type||t.recipients)||(e=!0)}),!(!e&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(q.T),_.Y36(d.gz),_.Y36(d.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-subscription"]],decls:92,vars:30,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h,T;return I="\u6DFB\u52A0\u8BA2\u9605",e="\u63D0\u4EA4",t="\u540D\u5B57",n="\u8BA2\u9605\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",i="\u7C7B\u522B",a="\u8BA2\u9605\u7C7B\u522B\u4E0D\u80FD\u4E3A\u7A7A\uFF01",A="\u6807\u7B7E",r="\u8BA2\u9605label\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A\uFF01",C="\u63A5\u6536\u8005",c="\u8BA2\u9605\u63A5\u6536\u8005\u4E0D\u80FD\u4E3A\u7A7A\uFF01",O="\u91CD\u53D1\u95F4\u9694",g="\u91CD\u53D1\u9650\u5236",E="\u7BA1\u7406\u72B6\u6001",u="\u901A\u9053",p="\u6DFB\u52A0\u901A\u9053\u6A21\u677F",f="EMAIL \u901A\u9053\u6A21\u677F",P="REST \u901A\u9053\u6A21\u677F",U="Email\u63A5\u6536\u8005",R="email\u5730\u5740\u7AEF\u53E3\u4E0D\u80FD\u4E3A\u7A7A",G="\u5220\u9664",b="HttpMethod",s="Host",m="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",Z="Port",D="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",h="Path",T="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-2"],I,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],n,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],a,["for","subscriptionLabels",1,"col-md-2","col-form-label"],A,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],r,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],c,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],E,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],u,p,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],f,["role","button",1,"badge","badge-secondary",3,"click"],P,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],U,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],R,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],G,["for","HttpMethod","required","",1,"col-md-2","col-form-label"],b,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],s,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],m,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],Z,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],D,["for","addressPath","required","",1,"col-md-2","col-form-label"],h,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],T]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.submit()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.subscription.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_.SDv(16,13),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",14),_.TgZ(18,"label",15),_.TgZ(19,"span",16),_.SDv(20,17),_.qZA(),_._UZ(21,"span",18),_.qZA(),_.TgZ(22,"div",10),_.TgZ(23,"div",19),_.TgZ(24,"input",20),_.NdJ("ngModelChange",function(i){return t.subCategories=i}),_.qZA(),_.TgZ(25,"div",12),_.TgZ(26,"small"),_.SDv(27,21),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"label",22),_.TgZ(30,"span",16),_.SDv(31,23),_.qZA(),_._UZ(32,"span",24),_.qZA(),_.TgZ(33,"div",10),_.TgZ(34,"div",19),_.TgZ(35,"input",25),_.NdJ("ngModelChange",function(i){return t.subLabels=i}),_.qZA(),_.TgZ(36,"div",12),_.TgZ(37,"small"),_.SDv(38,26),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",27),_.TgZ(41,"span",16),_.SDv(42,28),_.qZA(),_._UZ(43,"span",29),_.qZA(),_.TgZ(44,"div",10),_.TgZ(45,"input",30),_.NdJ("ngModelChange",function(i){return t.subscription.receiver=i}),_.qZA(),_.TgZ(46,"div",31),_.TgZ(47,"small"),_.SDv(48,32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",33),_.TgZ(51,"span",16),_.SDv(52,34),_.qZA(),_._UZ(53,"span",35),_.qZA(),_.TgZ(54,"div",10),_.TgZ(55,"input",36),_.NdJ("ngModelChange",function(i){return t.subscription.resendInterval=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",14),_.TgZ(57,"label",37),_.TgZ(58,"span",16),_.SDv(59,38),_.qZA(),_._UZ(60,"span",39),_.qZA(),_.TgZ(61,"div",10),_.TgZ(62,"input",40),_.NdJ("ngModelChange",function(i){return t.subscription.resendLimit=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"div",14),_.TgZ(64,"label",41),_.SDv(65,42),_.qZA(),_.TgZ(66,"div",10),_.TgZ(67,"select",43),_.NdJ("ngModelChange",function(i){return t.subscription.adminState=i}),_.TgZ(68,"option",44),_._uU(69,"UNLOCKED"),_.qZA(),_.TgZ(70,"option",45),_._uU(71,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(72,"div",14),_.TgZ(73,"label",46),_.SDv(74,47),_.qZA(),_.TgZ(75,"div",10),_.TgZ(76,"div",0),_.TgZ(77,"div",1),_.TgZ(78,"span",16),_.SDv(79,48),_.qZA(),_.YNc(80,w,1,2,"span",49),_.qZA(),_.TgZ(81,"div",6),_.TgZ(82,"div",50),_.TgZ(83,"span",51),_.NdJ("click",function(){return t.addChannelTemplate("EMAIL")}),_._UZ(84,"i",52),_.TgZ(85,"span"),_.SDv(86,53),_.qZA(),_.qZA(),_.TgZ(87,"span",54),_.NdJ("click",function(){return t.addChannelTemplate("REST")}),_._UZ(88,"i",52),_.TgZ(89,"span"),_.SDv(90,55),_.qZA(),_.qZA(),_.qZA(),_.YNc(91,j,4,2,"div",56),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.subscription.name)("is-valid",t.subscription.name),_.Q6J("ngModel",t.subscription.name),_.xp6(11),_.ekj("is-invalid",!t.subCategories)("is-valid",t.subCategories),_.Q6J("ngModel",t.subCategories),_.xp6(11),_.ekj("is-invalid",!t.subLabels)("is-valid",t.subLabels),_.Q6J("ngModel",t.subLabels),_.xp6(10),_.ekj("is-invalid",!t.subscription.receiver)("is-valid",t.subscription.receiver),_.Q6J("ngModel",t.subscription.receiver),_.xp6(10),_.Q6J("ngModel",t.subscription.resendInterval),_.xp6(7),_.Q6J("ngModel",t.subscription.resendLimit),_.xp6(5),_.Q6J("ngModel",t.subscription.adminState),_.xp6(10),_.ekj("border",0===t.channelTemplates.length)("border-danger",0===t.channelTemplates.length),_.xp6(3),_.Q6J("ngIf",0===t.channelTemplates.length),_.xp6(11),_.Q6J("ngForOf",t.channelTemplates))},directives:[S._Y,S.JL,S.F,S.Fj,S.Q7,S.JJ,S.On,S.wV,S.EJ,S.YN,S.Kr,M.O5,M.sg],styles:[""]}),o})();function V(o,I){if(1&o&&_._UZ(0,"span",57),2&o){const e=_.oxw();_.ekj("text-danger",0===e.channelTemplates.length)}}function __(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",60),_.TgZ(4,"span",16),_.SDv(5,61),_.qZA(),_._UZ(6,"span",62),_.qZA(),_.TgZ(7,"div",10),_.TgZ(8,"input",63),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.recipients=n}),_.qZA(),_.TgZ(9,"div",64),_.TgZ(10,"small"),_.SDv(11,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(13,"i",67),_._uU(14," Remove"),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit;_.xp6(8),_.ekj("is-invalid",!e.recipients)("is-valid",e.recipients),_.Q6J("ngModel",e.recipients)}}function e_(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",68),_.SDv(4,69),_.qZA(),_.TgZ(5,"div",10),_.TgZ(6,"select",70),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.httpMethod=n}),_.TgZ(7,"option",71),_._uU(8,"GET"),_.qZA(),_.TgZ(9,"option",72),_._uU(10,"POST"),_.qZA(),_.TgZ(11,"option",73),_._uU(12,"PUT"),_.qZA(),_.TgZ(13,"option",74),_._uU(14,"DELETE"),_.qZA(),_.TgZ(15,"option",75),_._uU(16,"PATCH"),_.qZA(),_.TgZ(17,"option",76),_._uU(18,"HEAD"),_.qZA(),_.TgZ(19,"option",77),_._uU(20,"TRACE"),_.qZA(),_.TgZ(21,"option",78),_._uU(22,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"div",7),_.TgZ(24,"label",79),_.SDv(25,80),_.qZA(),_.TgZ(26,"div",10),_.TgZ(27,"input",81),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.host=n}),_.qZA(),_.TgZ(28,"div",82),_.TgZ(29,"small"),_.SDv(30,83),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",7),_.TgZ(32,"label",84),_.SDv(33,85),_.qZA(),_.TgZ(34,"div",10),_.TgZ(35,"input",86),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.port=n}),_.qZA(),_.TgZ(36,"div",87),_.TgZ(37,"small"),_.SDv(38,88),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",89),_.SDv(41,90),_.qZA(),_.TgZ(42,"div",10),_.TgZ(43,"input",91),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.path=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(45,"i",92),_.TgZ(46,"span"),_.SDv(47,93),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit,t=_.oxw();_.xp6(6),_.Q6J("ngModel",e.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.host)("is-valid",e.host),_.Q6J("ngModel",e.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(e.port))("is-valid",t.isPureIntegerType(e.port)),_.Q6J("ngModel",e.port),_.xp6(8),_.Q6J("ngModel",e.path)}}function t_(o,I){if(1&o&&(_.TgZ(0,"div",58),_.TgZ(1,"div",6),_.YNc(2,__,15,5,"div",59),_.YNc(3,e_,48,12,"div",59),_.qZA(),_.qZA()),2&o){const e=I.$implicit;_.xp6(2),_.Q6J("ngIf","EMAIL"===e.type),_.xp6(1),_.Q6J("ngIf","REST"===e.type)}}let n_=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.errSvc=n,this.route=i,this.router=a,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(e=>{e.subName&&this.notiSvc.findOneSubscriptionByName(e.subName).subscribe(t=>{this.subscription=t.subscription,this.subCategories=this.subscription.categories.toString(),this.subLabels=this.subscription.labels.toString(),this.channelTemplates=this.subscription.channels})})}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}update(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((e,t)=>{if("EMAIL"===e.type){let n=e.recipients.toString();e.recipients=n.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.updateOneSubscription(this.subscription).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(e){switch(e){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(e){let t=this.channelTemplates.indexOf(e);-1!==t&&(this.channelTemplates.splice(t,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((t,n)=>{("REST"!==t.type||""!==t.path&&t.port)&&("EMAIL"!==t.type||t.recipients)||(e=!0)}),!(!e&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(q.T),_.Y36(d.gz),_.Y36(d.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-subscription"]],decls:92,vars:30,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h;return I="\u7F16\u8F91\u8BA2\u9605",e="\u4FDD\u5B58",t="\u540D\u5B57",n="\u8BA2\u9605\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",i="\u7C7B\u522B",a="\u8BA2\u9605\u7C7B\u522B\u4E0D\u80FD\u4E3A\u7A7A\uFF01",A="\u6807\u7B7E",r="\u8BA2\u9605label\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A\uFF01",C="\u63A5\u6536\u8005",c="\u8BA2\u9605\u63A5\u6536\u8005\u4E0D\u80FD\u4E3A\u7A7A\uFF01",O="\u91CD\u53D1\u95F4\u9694",g="\u91CD\u53D1\u9650\u5236",E="\u7BA1\u7406\u72B6\u6001",u="\u901A\u9053",p="\u6DFB\u52A0\u901A\u9053\u6A21\u677F",f="EMAIL \u901A\u9053\u6A21\u677F",P="REST \u901A\u9053\u6A21\u677F",U="Email\u63A5\u6536\u8005",R="email\u5730\u5740\u7AEF\u53E3\u4E0D\u80FD\u4E3A\u7A7A",G="HttpMethod",b="Host",s="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",m="Port",Z="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",D="Path",h="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-2"],I,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],n,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],a,["for","subscriptionLabels",1,"col-md-2","col-form-label"],A,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],r,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],c,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],E,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],u,p,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],f,["role","button",1,"badge","badge-secondary",3,"click"],P,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],U,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],R,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],G,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],b,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],s,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],m,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],Z,["for","addressPath","required","",1,"col-md-2","col-form-label"],D,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"fa","fa-trash","mr-1"],h]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.update()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.subscription.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_.SDv(16,13),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",14),_.TgZ(18,"label",15),_.TgZ(19,"span",16),_.SDv(20,17),_.qZA(),_._UZ(21,"span",18),_.qZA(),_.TgZ(22,"div",10),_.TgZ(23,"div",19),_.TgZ(24,"input",20),_.NdJ("ngModelChange",function(i){return t.subCategories=i}),_.qZA(),_.TgZ(25,"div",12),_.TgZ(26,"small"),_.SDv(27,21),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"label",22),_.TgZ(30,"span",16),_.SDv(31,23),_.qZA(),_._UZ(32,"span",24),_.qZA(),_.TgZ(33,"div",10),_.TgZ(34,"div",19),_.TgZ(35,"input",25),_.NdJ("ngModelChange",function(i){return t.subLabels=i}),_.qZA(),_.TgZ(36,"div",12),_.TgZ(37,"small"),_.SDv(38,26),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",27),_.TgZ(41,"span",16),_.SDv(42,28),_.qZA(),_._UZ(43,"span",29),_.qZA(),_.TgZ(44,"div",10),_.TgZ(45,"input",30),_.NdJ("ngModelChange",function(i){return t.subscription.receiver=i}),_.qZA(),_.TgZ(46,"div",31),_.TgZ(47,"small"),_.SDv(48,32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",33),_.TgZ(51,"span",16),_.SDv(52,34),_.qZA(),_._UZ(53,"span",35),_.qZA(),_.TgZ(54,"div",10),_.TgZ(55,"input",36),_.NdJ("ngModelChange",function(i){return t.subscription.resendInterval=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",14),_.TgZ(57,"label",37),_.TgZ(58,"span",16),_.SDv(59,38),_.qZA(),_._UZ(60,"span",39),_.qZA(),_.TgZ(61,"div",10),_.TgZ(62,"input",40),_.NdJ("ngModelChange",function(i){return t.subscription.resendLimit=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"div",14),_.TgZ(64,"label",41),_.SDv(65,42),_.qZA(),_.TgZ(66,"div",10),_.TgZ(67,"select",43),_.NdJ("ngModelChange",function(i){return t.subscription.adminState=i}),_.TgZ(68,"option",44),_._uU(69,"UNLOCKED"),_.qZA(),_.TgZ(70,"option",45),_._uU(71,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(72,"div",14),_.TgZ(73,"label",46),_.SDv(74,47),_.qZA(),_.TgZ(75,"div",10),_.TgZ(76,"div",0),_.TgZ(77,"div",1),_.TgZ(78,"span",16),_.SDv(79,48),_.qZA(),_.YNc(80,V,1,2,"span",49),_.qZA(),_.TgZ(81,"div",6),_.TgZ(82,"div",50),_.TgZ(83,"span",51),_.NdJ("click",function(){return t.addChannelTemplate("EMAIL")}),_._UZ(84,"i",52),_.TgZ(85,"span"),_.SDv(86,53),_.qZA(),_.qZA(),_.TgZ(87,"span",54),_.NdJ("click",function(){return t.addChannelTemplate("REST")}),_._UZ(88,"i",52),_.TgZ(89,"span"),_.SDv(90,55),_.qZA(),_.qZA(),_.qZA(),_.YNc(91,t_,4,2,"div",56),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.subscription.name)("is-valid",t.subscription.name),_.Q6J("ngModel",t.subscription.name),_.xp6(11),_.ekj("is-invalid",!t.subCategories)("is-valid",t.subCategories),_.Q6J("ngModel",t.subCategories),_.xp6(11),_.ekj("is-invalid",!t.subLabels)("is-valid",t.subLabels),_.Q6J("ngModel",t.subLabels),_.xp6(10),_.ekj("is-invalid",!t.subscription.receiver)("is-valid",t.subscription.receiver),_.Q6J("ngModel",t.subscription.receiver),_.xp6(10),_.Q6J("ngModel",t.subscription.resendInterval),_.xp6(7),_.Q6J("ngModel",t.subscription.resendLimit),_.xp6(5),_.Q6J("ngModel",t.subscription.adminState),_.xp6(10),_.ekj("border",0===t.channelTemplates.length)("border-danger",0===t.channelTemplates.length),_.xp6(3),_.Q6J("ngIf",0===t.channelTemplates.length),_.xp6(11),_.Q6J("ngForOf",t.channelTemplates))},directives:[S._Y,S.JL,S.F,S.Fj,S.Q7,S.JJ,S.On,S.wV,S.EJ,S.YN,S.Kr,M.O5,M.sg],styles:[""]}),o})();var i_=l(8253),o_=l(1964),I_=l(4294),T_=l(5894),S_=l(7216);let X=(()=>{class o{constructor(e,t){this.router=e,this.notiSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.notiSvc.ping().pipe((0,I_.q)(1),(0,T_.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"notification",routerPath:`/${t.url.split("/")[1]}`}})),(0,S_.z)(()=>(0,o_.of)(!0)))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(d.F0),_.LFG(B.T))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const a_=[{path:"",component:y,canActivate:[i_.a,X],canActivateChild:[X],children:[{path:"",redirectTo:"notification-center",pathMatch:"full"},{path:"notification-center",component:J,children:[{path:"",component:W}]},{path:"subscription-center",component:k,children:[{path:"",redirectTo:"subscription-list",pathMatch:"full"},{path:"subscription-list",component:z},{path:"add-subscription",component:K},{path:"edit-subscription",component:n_}]}]}];let s_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[d.Bz.forChild(a_)],d.Bz]}),o})(),N_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[M.ez,S.u5,s_]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/634.3a15cb1e5504f0e3110a.js b/cmd/edgex-ui-server/static/web/zh/634.3a15cb1e5504f0e3110a.js new file mode 100644 index 00000000..725a1ad8 --- /dev/null +++ b/cmd/edgex-ui-server/static/web/zh/634.3a15cb1e5504f0e3110a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[634],{2634:(de,y,d)=>{d.r(y),d.d(y,{NotificationsModule:()=>le});var Z=d(8583),s=d(3092),r=d(9502),e=d(476);let X=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-notifications"]],decls:11,vars:0,consts:function(){let T,t;return T="\u901A\u77E5",t="\u8BA2\u9605",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./notification-center","routerLinkActive","active",1,"nav-link"],T,["routerLink","./subscription-center","routerLinkActive","active",1,"nav-link"],t,[1,"card-body"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"ul",2),e.TgZ(3,"li",3),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.qZA(),e.TgZ(6,"li",3),e.TgZ(7,"a",6),e.SDv(8,7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e._UZ(10,"router-outlet"),e.qZA(),e.qZA())},directives:[r.yS,r.Od,r.lC],styles:[""]}),o})(),k=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-notification-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[r.lC],styles:[""]}),o})();var D=d(9827),B=d(9744),q=d(7822);function x(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",48),e.NdJ("click",function(i){const I=e.CHM(t).$implicit;return e.oxw().selectOne(i,I)}),e.qZA(),e.qZA(),e.TgZ(3,"td",91),e._uU(4),e.qZA(),e.TgZ(5,"td",91),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.qZA(),e.TgZ(15,"td"),e._uU(16),e.qZA(),e.TgZ(17,"td"),e._uU(18),e.qZA(),e.TgZ(19,"td"),e._uU(20),e.qZA(),e.TgZ(21,"td"),e._uU(22),e.ALo(23,"date"),e.qZA(),e.TgZ(24,"td"),e._uU(25),e.ALo(26,"date"),e.qZA(),e.qZA()}if(2&o){const t=T.$implicit,n=e.oxw();e.ekj("table-active",n.isChecked(t.id)),e.xp6(2),e.Q6J("checked",n.isChecked(t.id)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.category),e.xp6(2),e.Oqu(t.labels),e.xp6(2),e.Oqu(t.content),e.xp6(2),e.Oqu(t.contentType),e.xp6(2),e.Oqu(t.description),e.xp6(2),e.Oqu(t.sender),e.xp6(2),e.Oqu(t.severity),e.xp6(2),e.Oqu(t.status),e.xp6(2),e.Oqu(e.xi3(23,14,t.created,"yyyy-MM-dd hh:mm:ss")),e.xp6(3),e.Oqu(e.xi3(26,17,t.modified,"yyyy-MM-dd hh:mm:ss"))}}let J=(()=>{class o{constructor(t,n){this.notiSvc=t,this.msgSvc=n,this.notificationList=[],this.notificationSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this.categorySelected="SECURITY",this.statusSelected="NEW",this.advancedOperation=!1}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.setSearchMode("status"),this.findNotificationsByStatusPagination(!0),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,D.Z)("input[name='startSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(t,n,i)=>{this.startSelected=1e3*Number(n)}}),this.calendarEnd=(0,D.Z)("input[name='endSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(t,n,i)=>{this.endSelected=1e3*Number(n)}}),this.calendarStart=(0,D.Z)("input[name='ageCleanupAll']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(t,n,i)=>{this.ageCleanupAll=1e3*Number(n)}}),this.calendarEnd=(0,D.Z)("input[name='ageCleanupByStatusIsProcessed']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(t,n,i)=>{this.ageCleanupByStatusIsProcessed=1e3*Number(n)}})}advancedToggle(){this.advancedOperation=!this.advancedOperation}findNotificationsByCategoryPagination(t){this.notiSvc.findNotificationsByCategoryPagination(this.pageOffset,this.pageLimit,this.categorySelected).subscribe(n=>{this.notificationList=n.notifications,!t&&this.msgSvc.success("search by category")})}findNotificationsByStatusPagination(t){this.notiSvc.findNotificationsByStatusPagination(this.pageOffset,this.pageLimit,this.statusSelected).subscribe(n=>{this.notificationList=n.notifications,!t&&this.msgSvc.success("search by status")})}findNotificationsByLabelPagination(t){this.notiSvc.findNotificationsByLabelPagination(this.pageOffset,this.pageLimit,this.labelSelected).subscribe(n=>{this.notificationList=n.notifications,!t&&this.msgSvc.success("search by label")})}findNotificationsByStartEndPagination(t){console.log(this.startSelected,this.endSelected),this.notiSvc.findNotificationsByStartEndPagination(this.pageOffset,this.pageLimit,this.startSelected,this.endSelected).subscribe(n=>{this.notificationList=n.notifications,!t&&this.msgSvc.success("search by start and end")})}setSearchMode(t){this.searchMode=t}searchByStatus(){this.resetPagination(),this.setSearchMode("status"),this.findNotificationsByStatusPagination()}searchByCategory(){this.resetPagination(),this.setSearchMode("category"),this.findNotificationsByCategoryPagination()}searchByStartEnd(){this.resetPagination(),this.setSearchMode("duration"),this.findNotificationsByStartEndPagination()}deleteConfirm(t){this.cleanMode=t,$("#deleteConfirmDialog").modal("show")}cleanup(){switch(this.cleanMode){case"age":this.cleanupByAge();break;case"status":this.cleanupByAgeAndStatusIsProcessed();break;default:this.deleteSelected()}}cleanupByAge(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupAll).subscribe(()=>{this.msgSvc.success("cleanup by age")}),$("#deleteConfirmDialog").modal("hide")}cleanupByAgeAndStatusIsProcessed(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupByStatusIsProcessed).subscribe(()=>{this.msgSvc.success("cleanup by age when status is processed")}),$("#deleteConfirmDialog").modal("hide")}deleteSelected(){this.notificationSelected.forEach(t=>{this.notiSvc.deleteNotificationById(t.id).subscribe(()=>{this.msgSvc.success("delete",`ID: ${t.id}`)})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let t=!0;return this.notificationList&&0===this.notificationList.length&&(t=!1),this.notificationList.forEach(n=>{-1===this.notificationSelected.findIndex(i=>i.id===n.id)&&(t=!1)}),t}selectAll(t){this.notificationList.forEach(t.target.checked?i=>{-1===this.notificationSelected.findIndex(_=>_.id===i.id)&&this.notificationSelected.push(i)}:i=>{let _=this.notificationSelected.findIndex(I=>I.id===i.id);-1!==_&&this.notificationSelected.splice(_,1)})}isChecked(t){return this.notificationSelected.findIndex(n=>n.id===t)>=0}selectOne(t,n){if(t.target.checked)return void this.notificationSelected.push(n);let _=this.notificationSelected.findIndex(I=>I.id===n.id);-1!==_&&this.notificationSelected.splice(_,1)}paginationBySearchMode(){switch(this.searchMode){case"status":this.findNotificationsByStatusPagination(!0);break;case"category":this.findNotificationsByCategoryPagination(!0);break;case"duration":this.findNotificationsByStartEndPagination(!0)}}onPageSelected(){this.resetPagination(),this.paginationBySearchMode()}prePage(){this.setPagination(-1),this.paginationBySearchMode()}nextPage(){this.setPagination(1),this.paginationBySearchMode()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.setPagination()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(B.T),e.Y36(q.e))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-notification-list"]],decls:161,vars:11,consts:function(){let T,t,n,i,_,I,c,N,C,g,O,u,A,p,f,P,R,b,M,m,E,S,h,v,L,U;return T="\u901A\u77E5\u5217\u8868",t="\u9ED8\u8BA4\u72B6\u6001\u503C\u4E3ANEW\u52A0\u8F7D\u6570\u636E",n="\u5220\u9664",i="\u9AD8\u7EA7\u529F\u80FD",_="\u72B6\u6001",I="\u5F00\u59CB",c="\u7ED3\u675F\u65F6\u95F4",N="\u6309\u65F6\u95F4\u6E05\u9664",C="\u6E05\u9664",g="\u7C7B\u522B",O="\u6807\u7B7E",u="\u5185\u5BB9",A="ContentType",p="\u63CF\u8FF0",f="\u53D1\u9001\u8005",P="\u4E25\u683C\u7B49\u7EA7",R="\u72B6\u6001",b="\u521B\u5EFA\u65F6\u95F4",M="\u4FEE\u6539\u65F6\u95F4",m="\u6BCF\u9875\u6761\u76EE",E="\u4E0A\u4E00\u9875",S="\u4E0B\u4E00\u9875",h="\u8B66\u544A",v="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",L="\u53D6\u6D88",U="\u786E\u8BA4",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],T,[1,"fa","fa-info-circle","text-success","font-weight-bold","ml-1"],t,[1,"bg-light","card-header","p-0"],[1,"px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],n,["role","button",1,"text-primary","ml-3","text-decoration-none",3,"click"],i,[1,"fa","fa-angle-double-right","ml-1"],[1,"bg-light","card-header","p-0",3,"hidden"],[1,"form-group","row"],[1,"col-md-10"],[1,"input-group",2,"width","600px"],[1,"input-group-prepend"],[1,"input-group-text"],_,["name","statusSelected",1,"custom-select",3,"ngModel","ngModelChange"],["value","NEW"],["value","PROCESSED"],["value","ESCALATED"],["role","button",1,"input-group-append",3,"click"],[1,"fa","fa-search"],I,[1,"fa","fa-calendar"],["type","text","name","startSelected",1,"form-control"],c,["type","text","name","endSelected",1,"form-control"],[1,"input-group-append"],["type","button",1,"btn","btn-secondary",3,"disabled","click"],N,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes notifications which have age and is less than the specified one, where the age of Notification is calculated by subtracting its last modification timestamp from the current timestamp. Note that the corresponding transmissions will also be deleted.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupAll",1,"form-control"],[1,"fa","fa-trash-o"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes the processed notifications if the current timestamp minus their last modification timestamp is less than the age parameter, and the corresponding transmissions will also be deleted. Please notice that this API is only for processed notifications (status = PROCESSED). If the deletion purpose includes each kind of notifications, please refer to cleanupAll.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupByStatusIsProcessed",1,"form-control"],["type","button",1,"btn","btn-danger","font-weight-bold",3,"disabled","click"],[1,"card-body","p-0","position-relative"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],g,O,u,A,p,f,P,R,b,M,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],m,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],E,[1,"page-item"],S,["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],h,[1,"modal-body"],v,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],L,["type","button",1,"btn","btn-danger",3,"click"],U,[1,"user-select-all"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"div",7),e.TgZ(9,"div",8),e.TgZ(10,"button",9),e.NdJ("click",function(){return n.deleteConfirm()}),e.TgZ(11,"span"),e._UZ(12,"i",10),e.TgZ(13,"span"),e.SDv(14,11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"a",12),e.NdJ("click",function(){return n.advancedToggle()}),e.TgZ(16,"span"),e.TgZ(17,"span"),e.SDv(18,13),e.qZA(),e._UZ(19,"i",14),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",15),e.TgZ(21,"div",7),e.TgZ(22,"form"),e.TgZ(23,"div",16),e.TgZ(24,"div",17),e.TgZ(25,"div",18),e.TgZ(26,"div",19),e.TgZ(27,"span",20),e.SDv(28,21),e.qZA(),e.qZA(),e.TgZ(29,"select",22),e.NdJ("ngModelChange",function(_){return n.statusSelected=_}),e.TgZ(30,"option",23),e._uU(31,"NEW"),e.qZA(),e.TgZ(32,"option",24),e._uU(33,"PROCESSED"),e.qZA(),e.TgZ(34,"option",25),e._uU(35,"ESCALATED"),e.qZA(),e.qZA(),e.TgZ(36,"div",26),e.NdJ("click",function(){return n.searchByStatus()}),e.TgZ(37,"span",20),e._UZ(38,"i",27),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",16),e.TgZ(40,"div",17),e.TgZ(41,"div",18),e.TgZ(42,"div",19),e.TgZ(43,"span",20),e.SDv(44,28),e.qZA(),e.qZA(),e.TgZ(45,"div",19),e.TgZ(46,"span",20),e._UZ(47,"i",29),e.qZA(),e.qZA(),e._UZ(48,"input",30),e.TgZ(49,"div",19),e.TgZ(50,"span",20),e.SDv(51,31),e.qZA(),e.qZA(),e.TgZ(52,"div",19),e.TgZ(53,"span",20),e._UZ(54,"i",29),e.qZA(),e.qZA(),e._UZ(55,"input",32),e.TgZ(56,"div",33),e.TgZ(57,"button",34),e.NdJ("click",function(){return n.searchByStartEnd()}),e._UZ(58,"i",27),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",16),e.TgZ(60,"div",17),e.TgZ(61,"div",18),e.TgZ(62,"div",19),e.TgZ(63,"span",20),e.TgZ(64,"span"),e.SDv(65,35),e.qZA(),e._uU(66,"\xa0 "),e._UZ(67,"span",36),e.qZA(),e.qZA(),e.TgZ(68,"div",19),e.TgZ(69,"span",20),e._UZ(70,"i",29),e.qZA(),e.qZA(),e._UZ(71,"input",37),e.TgZ(72,"div",33),e.TgZ(73,"button",9),e.NdJ("click",function(){return n.deleteConfirm("age")}),e._UZ(74,"i",38),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(75,"div",16),e.TgZ(76,"div",17),e.TgZ(77,"div",18),e.TgZ(78,"div",19),e.TgZ(79,"span",20),e.TgZ(80,"span"),e.SDv(81,39),e.qZA(),e._uU(82,"\xa0 "),e._UZ(83,"span",40),e.qZA(),e.qZA(),e.TgZ(84,"div",19),e.TgZ(85,"span",20),e._UZ(86,"i",29),e.qZA(),e.qZA(),e._UZ(87,"input",41),e.TgZ(88,"div",33),e.TgZ(89,"button",42),e.NdJ("click",function(){return n.deleteConfirm("status")}),e._UZ(90,"i",38),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(91,"div",43),e.TgZ(92,"div",44),e.TgZ(93,"table",45),e.TgZ(94,"thead",46),e.TgZ(95,"tr"),e.TgZ(96,"th",47),e.TgZ(97,"input",48),e.NdJ("click",function(_){return n.selectAll(_)}),e.qZA(),e.qZA(),e.TgZ(98,"th",47),e._uU(99,"ID"),e.qZA(),e.TgZ(100,"th",47),e.SDv(101,49),e.qZA(),e.TgZ(102,"th",47),e.SDv(103,50),e.qZA(),e.TgZ(104,"th",47),e.SDv(105,51),e.qZA(),e.TgZ(106,"th",47),e.SDv(107,52),e.qZA(),e.TgZ(108,"th",47),e.SDv(109,53),e.qZA(),e.TgZ(110,"th",47),e.SDv(111,54),e.qZA(),e.TgZ(112,"th",47),e.SDv(113,55),e.qZA(),e.TgZ(114,"th",47),e.SDv(115,56),e.qZA(),e.TgZ(116,"th",47),e.SDv(117,57),e.qZA(),e.TgZ(118,"th",47),e.SDv(119,58),e.qZA(),e.qZA(),e.qZA(),e.TgZ(120,"tbody"),e.YNc(121,x,27,20,"tr",59),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(122,"div",60),e.TgZ(123,"nav",61),e.TgZ(124,"ul",62),e.TgZ(125,"li",63),e.TgZ(126,"span",64),e.SDv(127,65),e.qZA(),e.qZA(),e.TgZ(128,"li",66),e.TgZ(129,"select",67),e.NdJ("ngModelChange",function(_){return n.pageLimit=_})("ngModelChange",function(){return n.onPageSelected()}),e.TgZ(130,"option",68),e._uU(131,"5"),e.qZA(),e.TgZ(132,"option",69),e._uU(133,"10"),e.qZA(),e.TgZ(134,"option",70),e._uU(135,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(136,"li",71),e.TgZ(137,"button",72),e.NdJ("click",function(){return n.prePage()}),e._UZ(138,"i",73),e.TgZ(139,"span"),e.SDv(140,74),e.qZA(),e.qZA(),e.qZA(),e.TgZ(141,"li",75),e.TgZ(142,"button",72),e.NdJ("click",function(){return n.nextPage()}),e.TgZ(143,"span"),e.SDv(144,76),e.qZA(),e._UZ(145,"i",14),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(146,"div",77),e.TgZ(147,"div",78),e.TgZ(148,"div",79),e.TgZ(149,"div",80),e.TgZ(150,"h5",81),e._UZ(151,"i",82),e.TgZ(152,"span"),e.SDv(153,83),e.qZA(),e.qZA(),e.qZA(),e.TgZ(154,"div",84),e.SDv(155,85),e.qZA(),e.TgZ(156,"div",86),e.TgZ(157,"button",87),e.SDv(158,88),e.qZA(),e.TgZ(159,"button",89),e.NdJ("click",function(){return n.cleanup()}),e.SDv(160,90),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("disabled",0===n.notificationSelected.length),e.xp6(10),e.Q6J("hidden",!n.advancedOperation),e.xp6(9),e.Q6J("ngModel",n.statusSelected),e.xp6(28),e.Q6J("disabled",!n.startSelected||!n.endSelected),e.xp6(16),e.Q6J("disabled",!n.ageCleanupAll),e.xp6(16),e.Q6J("disabled",!n.ageCleanupByStatusIsProcessed),e.xp6(8),e.Q6J("checked",n.isCheckedAll()),e.xp6(24),e.Q6J("ngForOf",n.notificationList),e.xp6(8),e.Q6J("ngModel",n.pageLimit),e.xp6(8),e.Q6J("disabled",1===n.pagination),e.xp6(5),e.Q6J("disabled",n.pageLimit>n.notificationList.length))},directives:[s._Y,s.JL,s.F,s.EJ,s.JJ,s.On,s.YN,s.Kr,Z.sg],pipes:[Z.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),z=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-subscription-center"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[r.lC],styles:[""]}),o})();var F=d(4889);function w(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",23),e.NdJ("click",function(i){const I=e.CHM(t).$implicit;return e.oxw().selectOne(i,I)}),e.qZA(),e.qZA(),e.TgZ(3,"td",66),e._uU(4),e.qZA(),e.TgZ(5,"td",66),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td",67),e.TgZ(14,"span",68),e.NdJ("click",function(){const _=e.CHM(t).$implicit;return e.oxw().checkChannels(_)}),e._UZ(15,"i",69),e._uU(16),e.qZA(),e.qZA(),e.TgZ(17,"td"),e._uU(18),e.qZA(),e.TgZ(19,"td"),e._uU(20),e.qZA(),e.TgZ(21,"td"),e._uU(22),e.qZA(),e.qZA()}if(2&o){const t=T.$implicit,n=e.oxw();e.ekj("table-active",n.isChecked(t.name)),e.xp6(2),e.Q6J("checked",n.isChecked(t.name)),e.xp6(2),e.Oqu(t.id),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.description),e.xp6(2),e.Oqu(t.categories),e.xp6(2),e.Oqu(t.labels),e.xp6(4),e.hij(" ",t.channels.length," "),e.xp6(2),e.Oqu(t.receiver),e.xp6(2),e.Oqu(t.resendLimit),e.xp6(2),e.Oqu(t.resendInterval)}}let Q=(()=>{class o{constructor(t,n,i,_,I){this.notiSvc=t,this.msgSvc=n,this.route=i,this.router=_,this.errSvc=I,this.subscriptionList=[],this.subscriptionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllSubscriptionsPagination()}refresh(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.subscriptionList=t.subscriptions,this.msgSvc.success("refresh")})}findAllSubscriptionsPagination(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.subscriptionList=t.subscriptions})}checkChannels(t){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:t.name}})}isCheckedAll(){let t=!0;return this.subscriptionList&&0===this.subscriptionList.length&&(t=!1),this.subscriptionList.forEach(n=>{-1===this.subscriptionSelected.findIndex(i=>i.id===n.id)&&(t=!1)}),t}selectAll(t){this.subscriptionList.forEach(t.target.checked?i=>{-1===this.subscriptionSelected.findIndex(_=>_.name===i.name)&&this.subscriptionSelected.push(i)}:i=>{let _=this.subscriptionSelected.findIndex(I=>I.name===i.name);-1!==_&&this.subscriptionSelected.splice(_,1)})}isChecked(t){return this.subscriptionSelected.findIndex(n=>n.name===t)>=0}selectOne(t,n){if(t.target.checked)return void this.subscriptionSelected.push(n);let _=this.subscriptionSelected.findIndex(I=>I.name===n.name);-1!==_&&this.subscriptionSelected.splice(_,1)}edit(){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:this.subscriptionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteSubs(){this.subscriptionSelected.forEach(t=>{this.notiSvc.deleteOneSubscriptionByName(t.name).subscribe(n=>{this.errSvc.handleErrorForAPI(n)||(this.subscriptionList.forEach((i,_)=>{i.name!==t.name||this.subscriptionList.splice(_,1)}),this.msgSvc.success("delete",`name: ${t.name}`),this.resetPagination(),this.findAllSubscriptionsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllSubscriptionsPagination()}prePage(){this.setPagination(-1),this.findAllSubscriptionsPagination()}nextPage(){this.setPagination(1),this.findAllSubscriptionsPagination()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(B.T),e.Y36(q.e),e.Y36(r.gz),e.Y36(r.F0),e.Y36(F.T))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-subscription-list"]],decls:93,vars:7,consts:function(){let T,t,n,i,_,I,c,N,C,g,O,u,A,p,f,P,R,b,M,m,E;return T="\u8BA2\u9605\u5217\u8868",t="\u5237\u65B0",n="\u6DFB\u52A0",i="\u7F16\u8F91",_="\u5220\u9664",I="ID",c="\u540D\u5B57",N="\u63CF\u8FF0",C="\u7C7B\u522B",g="\u6807\u7B7E",O="\u901A\u9053",u="\u63A5\u6536\u8005",A="\u91CD\u53D1\u9650\u5236",p="\u91CD\u53D1\u95F4\u9694",f="\u6BCF\u9875\u6761\u76EE",P="\u4E0A\u4E00\u9875",R="\u4E0B\u4E00\u9875",b="\u8B66\u544A",M="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",m="\u53D6\u6D88",E="\u786E\u8BA4",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],T,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],t,["type","button","routerLink","../add-subscription",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],n,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],i,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],_,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],I,c,N,C,g,O,u,A,p,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],f,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],P,[1,"page-item"],R,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],b,[1,"modal-body"],M,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],m,["type","button",1,"btn","btn-danger",3,"click"],E,[1,"user-select-all"],[1,"text-center"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-paper-plane-o"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return n.refresh()}),e.TgZ(9,"span"),e._UZ(10,"i",8),e.TgZ(11,"span"),e.SDv(12,9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",10),e.TgZ(14,"span"),e._UZ(15,"i",11),e.TgZ(16,"span"),e.SDv(17,12),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"button",13),e.NdJ("click",function(){return n.edit()}),e.TgZ(19,"span"),e._UZ(20,"i",14),e.TgZ(21,"span"),e.SDv(22,15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"button",16),e.NdJ("click",function(){return n.deleteConfirm()}),e.TgZ(24,"span"),e._UZ(25,"i",17),e.TgZ(26,"span"),e.SDv(27,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",19),e.TgZ(29,"table",20),e.TgZ(30,"thead",21),e.TgZ(31,"tr"),e.TgZ(32,"th",22),e.TgZ(33,"input",23),e.NdJ("click",function(_){return n.selectAll(_)}),e.qZA(),e.qZA(),e.TgZ(34,"th",22),e.SDv(35,24),e.qZA(),e.TgZ(36,"th",22),e.SDv(37,25),e.qZA(),e.TgZ(38,"th",22),e.SDv(39,26),e.qZA(),e.TgZ(40,"th",22),e.SDv(41,27),e.qZA(),e.TgZ(42,"th",22),e.SDv(43,28),e.qZA(),e.TgZ(44,"th",22),e.SDv(45,29),e.qZA(),e.TgZ(46,"th",22),e.SDv(47,30),e.qZA(),e.TgZ(48,"th",22),e.SDv(49,31),e.qZA(),e.TgZ(50,"th",22),e.SDv(51,32),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"tbody"),e.YNc(53,w,23,12,"tr",33),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",34),e.TgZ(55,"nav",35),e.TgZ(56,"ul",36),e.TgZ(57,"li",37),e.TgZ(58,"span",38),e.SDv(59,39),e.qZA(),e.qZA(),e.TgZ(60,"li",40),e.TgZ(61,"select",41),e.NdJ("ngModelChange",function(_){return n.pageLimit=_})("ngModelChange",function(){return n.onPageSelected()}),e.TgZ(62,"option",42),e._uU(63,"5"),e.qZA(),e.TgZ(64,"option",43),e._uU(65,"10"),e.qZA(),e.TgZ(66,"option",44),e._uU(67,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"li",45),e.TgZ(69,"button",46),e.NdJ("click",function(){return n.prePage()}),e._UZ(70,"i",47),e.TgZ(71,"span"),e.SDv(72,48),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"li",49),e.TgZ(74,"button",46),e.NdJ("click",function(){return n.nextPage()}),e.TgZ(75,"span"),e.SDv(76,50),e.qZA(),e._UZ(77,"i",51),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(78,"div",52),e.TgZ(79,"div",53),e.TgZ(80,"div",54),e.TgZ(81,"div",55),e.TgZ(82,"h5",56),e._UZ(83,"i",57),e.TgZ(84,"span"),e.SDv(85,58),e.qZA(),e.qZA(),e.qZA(),e.TgZ(86,"div",59),e.SDv(87,60),e.qZA(),e.TgZ(88,"div",61),e.TgZ(89,"button",62),e.SDv(90,63),e.qZA(),e.TgZ(91,"button",64),e.NdJ("click",function(){return n.deleteSubs()}),e.SDv(92,65),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(18),e.Q6J("disabled",1!==n.subscriptionSelected.length),e.xp6(5),e.Q6J("disabled",0===n.subscriptionSelected.length),e.xp6(10),e.Q6J("checked",n.isCheckedAll()),e.xp6(20),e.Q6J("ngForOf",n.subscriptionList),e.xp6(8),e.Q6J("ngModel",n.pageLimit),e.xp6(8),e.Q6J("disabled",1===n.pagination),e.xp6(5),e.Q6J("disabled",n.pageLimit>n.subscriptionList.length))},directives:[r.rH,Z.sg,s.EJ,s.JJ,s.On,s.YN,s.Kr],styles:[""]}),o})();function H(o,T){if(1&o&&e._UZ(0,"span",57),2&o){const t=e.oxw();e.ekj("text-danger",0===t.channelTemplates.length)}}function Y(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",14),e.TgZ(3,"label",60),e.TgZ(4,"span",16),e.SDv(5,61),e.qZA(),e._UZ(6,"span",62),e.qZA(),e.TgZ(7,"div",10),e.TgZ(8,"input",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.recipients=i}),e.qZA(),e.TgZ(9,"div",64),e.TgZ(10,"small"),e.SDv(11,65),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"button",66),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit;return e.oxw().removeChannelTemplate(i)}),e._UZ(13,"i",67),e.TgZ(14,"span"),e.SDv(15,68),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.xp6(8),e.ekj("is-invalid",!t.recipients)("is-valid",t.recipients),e.Q6J("ngModel",t.recipients)}}function j(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",14),e.TgZ(3,"label",69),e.SDv(4,70),e.qZA(),e.TgZ(5,"div",10),e.TgZ(6,"select",71),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.httpMethod=i}),e.TgZ(7,"option",72),e._uU(8,"GET"),e.qZA(),e.TgZ(9,"option",73),e._uU(10,"POST"),e.qZA(),e.TgZ(11,"option",74),e._uU(12,"PUT"),e.qZA(),e.TgZ(13,"option",75),e._uU(14,"DELETE"),e.qZA(),e.TgZ(15,"option",76),e._uU(16,"PATCH"),e.qZA(),e.TgZ(17,"option",77),e._uU(18,"HEAD"),e.qZA(),e.TgZ(19,"option",78),e._uU(20,"TRACE"),e.qZA(),e.TgZ(21,"option",79),e._uU(22,"CONNECT"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",7),e.TgZ(24,"label",80),e.SDv(25,81),e.qZA(),e.TgZ(26,"div",10),e.TgZ(27,"input",82),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.host=i}),e.qZA(),e.TgZ(28,"div",83),e.TgZ(29,"small"),e.SDv(30,84),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",7),e.TgZ(32,"label",85),e.SDv(33,86),e.qZA(),e.TgZ(34,"div",10),e.TgZ(35,"input",87),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.port=i}),e.qZA(),e.TgZ(36,"div",88),e.TgZ(37,"small"),e.SDv(38,89),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"label",90),e.SDv(41,91),e.qZA(),e.TgZ(42,"div",10),e.TgZ(43,"input",92),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.path=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"button",66),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit;return e.oxw().removeChannelTemplate(i)}),e._UZ(45,"i",67),e.TgZ(46,"span"),e.SDv(47,93),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw();e.xp6(6),e.Q6J("ngModel",t.httpMethod),e.xp6(21),e.ekj("is-invalid",!t.host)("is-valid",t.host),e.Q6J("ngModel",t.host),e.xp6(8),e.ekj("is-invalid",!n.isPureIntegerType(t.port))("is-valid",n.isPureIntegerType(t.port)),e.Q6J("ngModel",t.port),e.xp6(8),e.Q6J("ngModel",t.path)}}function K(o,T){if(1&o&&(e.TgZ(0,"div",58),e.TgZ(1,"div",6),e.YNc(2,Y,16,5,"div",59),e.YNc(3,j,48,12,"div",59),e.qZA(),e.qZA()),2&o){const t=T.$implicit;e.xp6(2),e.Q6J("ngIf","EMAIL"===t.type),e.xp6(1),e.Q6J("ngIf","REST"===t.type)}}let W=(()=>{class o{constructor(t,n,i,_,I){this.notiSvc=t,this.msgSvc=n,this.errSvc=i,this.route=_,this.router=I,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={adminState:"UNLOCKED"}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}submit(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((t,n)=>{if("EMAIL"===t.type){let i=t.recipients.toString();t.recipients=i.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.addOneSubscription(this.subscription).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("Add new subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(t){switch(t){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(t){let n=this.channelTemplates.indexOf(t);-1!==n&&(this.channelTemplates.splice(n,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(t){return!isNaN(t)&&parseFloat(t)===parseInt(t)}validate(){let t=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((n,i)=>{("REST"!==n.type||""!==n.path&&n.port)&&("EMAIL"!==n.type||n.recipients)||(t=!0)}),!(!t&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(B.T),e.Y36(q.e),e.Y36(F.T),e.Y36(r.gz),e.Y36(r.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-subscription"]],decls:92,vars:30,consts:function(){let T,t,n,i,_,I,c,N,C,g,O,u,A,p,f,P,R,b,M,m,E,S,h,v,L,U,a;return T="\u6DFB\u52A0\u8BA2\u9605",t="\u63D0\u4EA4",n="\u540D\u5B57",i="\u8BA2\u9605\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",_="\u7C7B\u522B",I="\u8BA2\u9605\u7C7B\u522B\u4E0D\u80FD\u4E3A\u7A7A\uFF01",c="\u6807\u7B7E",N="\u8BA2\u9605label\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A\uFF01",C="\u63A5\u6536\u8005",g="\u8BA2\u9605\u63A5\u6536\u8005\u4E0D\u80FD\u4E3A\u7A7A\uFF01",O="\u91CD\u53D1\u95F4\u9694",u="\u91CD\u53D1\u9650\u5236",A="\u7BA1\u7406\u72B6\u6001",p="\u901A\u9053",f="\u6DFB\u52A0\u901A\u9053\u6A21\u677F",P="EMAIL \u901A\u9053\u6A21\u677F",R="REST \u901A\u9053\u6A21\u677F",b="Email\u63A5\u6536\u8005",M="email\u5730\u5740\u7AEF\u53E3\u4E0D\u80FD\u4E3A\u7A7A",m="\u5220\u9664",E="HttpMethod",S="Host",h="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",v="Port",L="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",U="Path",a="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-2"],T,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],t,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],n,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],i,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],I,["for","subscriptionLabels",1,"col-md-2","col-form-label"],c,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],N,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],g,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],u,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],A,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],p,f,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],P,["role","button",1,"badge","badge-secondary",3,"click"],R,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],b,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],M,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],m,["for","HttpMethod","required","",1,"col-md-2","col-form-label"],E,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],S,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],h,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],v,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],L,["for","addressPath","required","",1,"col-md-2","col-form-label"],U,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],a]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return n.submit()}),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"form"),e.TgZ(9,"div",7),e.TgZ(10,"label",8),e.SDv(11,9),e.qZA(),e.TgZ(12,"div",10),e.TgZ(13,"input",11),e.NdJ("ngModelChange",function(_){return n.subscription.name=_}),e.qZA(),e.TgZ(14,"div",12),e.TgZ(15,"small"),e.SDv(16,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",14),e.TgZ(18,"label",15),e.TgZ(19,"span",16),e.SDv(20,17),e.qZA(),e._UZ(21,"span",18),e.qZA(),e.TgZ(22,"div",10),e.TgZ(23,"div",19),e.TgZ(24,"input",20),e.NdJ("ngModelChange",function(_){return n.subCategories=_}),e.qZA(),e.TgZ(25,"div",12),e.TgZ(26,"small"),e.SDv(27,21),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",14),e.TgZ(29,"label",22),e.TgZ(30,"span",16),e.SDv(31,23),e.qZA(),e._UZ(32,"span",24),e.qZA(),e.TgZ(33,"div",10),e.TgZ(34,"div",19),e.TgZ(35,"input",25),e.NdJ("ngModelChange",function(_){return n.subLabels=_}),e.qZA(),e.TgZ(36,"div",12),e.TgZ(37,"small"),e.SDv(38,26),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"label",27),e.TgZ(41,"span",16),e.SDv(42,28),e.qZA(),e._UZ(43,"span",29),e.qZA(),e.TgZ(44,"div",10),e.TgZ(45,"input",30),e.NdJ("ngModelChange",function(_){return n.subscription.receiver=_}),e.qZA(),e.TgZ(46,"div",31),e.TgZ(47,"small"),e.SDv(48,32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",14),e.TgZ(50,"label",33),e.TgZ(51,"span",16),e.SDv(52,34),e.qZA(),e._UZ(53,"span",35),e.qZA(),e.TgZ(54,"div",10),e.TgZ(55,"input",36),e.NdJ("ngModelChange",function(_){return n.subscription.resendInterval=_}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(56,"div",14),e.TgZ(57,"label",37),e.TgZ(58,"span",16),e.SDv(59,38),e.qZA(),e._UZ(60,"span",39),e.qZA(),e.TgZ(61,"div",10),e.TgZ(62,"input",40),e.NdJ("ngModelChange",function(_){return n.subscription.resendLimit=_}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",14),e.TgZ(64,"label",41),e.SDv(65,42),e.qZA(),e.TgZ(66,"div",10),e.TgZ(67,"select",43),e.NdJ("ngModelChange",function(_){return n.subscription.adminState=_}),e.TgZ(68,"option",44),e._uU(69,"UNLOCKED"),e.qZA(),e.TgZ(70,"option",45),e._uU(71,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",14),e.TgZ(73,"label",46),e.SDv(74,47),e.qZA(),e.TgZ(75,"div",10),e.TgZ(76,"div",0),e.TgZ(77,"div",1),e.TgZ(78,"span",16),e.SDv(79,48),e.qZA(),e.YNc(80,H,1,2,"span",49),e.qZA(),e.TgZ(81,"div",6),e.TgZ(82,"div",50),e.TgZ(83,"span",51),e.NdJ("click",function(){return n.addChannelTemplate("EMAIL")}),e._UZ(84,"i",52),e.TgZ(85,"span"),e.SDv(86,53),e.qZA(),e.qZA(),e.TgZ(87,"span",54),e.NdJ("click",function(){return n.addChannelTemplate("REST")}),e._UZ(88,"i",52),e.TgZ(89,"span"),e.SDv(90,55),e.qZA(),e.qZA(),e.qZA(),e.YNc(91,K,4,2,"div",56),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",n.validate()),e.xp6(8),e.ekj("is-invalid",!n.subscription.name)("is-valid",n.subscription.name),e.Q6J("ngModel",n.subscription.name),e.xp6(11),e.ekj("is-invalid",!n.subCategories)("is-valid",n.subCategories),e.Q6J("ngModel",n.subCategories),e.xp6(11),e.ekj("is-invalid",!n.subLabels)("is-valid",n.subLabels),e.Q6J("ngModel",n.subLabels),e.xp6(10),e.ekj("is-invalid",!n.subscription.receiver)("is-valid",n.subscription.receiver),e.Q6J("ngModel",n.subscription.receiver),e.xp6(10),e.Q6J("ngModel",n.subscription.resendInterval),e.xp6(7),e.Q6J("ngModel",n.subscription.resendLimit),e.xp6(5),e.Q6J("ngModel",n.subscription.adminState),e.xp6(10),e.ekj("border",0===n.channelTemplates.length)("border-danger",0===n.channelTemplates.length),e.xp6(3),e.Q6J("ngIf",0===n.channelTemplates.length),e.xp6(11),e.Q6J("ngForOf",n.channelTemplates))},directives:[s._Y,s.JL,s.F,s.Fj,s.Q7,s.JJ,s.On,s.wV,s.EJ,s.YN,s.Kr,Z.O5,Z.sg],styles:[""]}),o})();function V(o,T){if(1&o&&e._UZ(0,"span",57),2&o){const t=e.oxw();e.ekj("text-danger",0===t.channelTemplates.length)}}function ee(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",14),e.TgZ(3,"label",60),e.TgZ(4,"span",16),e.SDv(5,61),e.qZA(),e._UZ(6,"span",62),e.qZA(),e.TgZ(7,"div",10),e.TgZ(8,"input",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.recipients=i}),e.qZA(),e.TgZ(9,"div",64),e.TgZ(10,"small"),e.SDv(11,65),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"button",66),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit;return e.oxw().removeChannelTemplate(i)}),e._UZ(13,"i",67),e._uU(14," Remove"),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.xp6(8),e.ekj("is-invalid",!t.recipients)("is-valid",t.recipients),e.Q6J("ngModel",t.recipients)}}function te(o,T){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form"),e.TgZ(2,"div",14),e.TgZ(3,"label",68),e.SDv(4,69),e.qZA(),e.TgZ(5,"div",10),e.TgZ(6,"select",70),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.httpMethod=i}),e.TgZ(7,"option",71),e._uU(8,"GET"),e.qZA(),e.TgZ(9,"option",72),e._uU(10,"POST"),e.qZA(),e.TgZ(11,"option",73),e._uU(12,"PUT"),e.qZA(),e.TgZ(13,"option",74),e._uU(14,"DELETE"),e.qZA(),e.TgZ(15,"option",75),e._uU(16,"PATCH"),e.qZA(),e.TgZ(17,"option",76),e._uU(18,"HEAD"),e.qZA(),e.TgZ(19,"option",77),e._uU(20,"TRACE"),e.qZA(),e.TgZ(21,"option",78),e._uU(22,"CONNECT"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",7),e.TgZ(24,"label",79),e.SDv(25,80),e.qZA(),e.TgZ(26,"div",10),e.TgZ(27,"input",81),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.host=i}),e.qZA(),e.TgZ(28,"div",82),e.TgZ(29,"small"),e.SDv(30,83),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",7),e.TgZ(32,"label",84),e.SDv(33,85),e.qZA(),e.TgZ(34,"div",10),e.TgZ(35,"input",86),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.port=i}),e.qZA(),e.TgZ(36,"div",87),e.TgZ(37,"small"),e.SDv(38,88),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"label",89),e.SDv(41,90),e.qZA(),e.TgZ(42,"div",10),e.TgZ(43,"input",91),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().$implicit.path=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"button",66),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit;return e.oxw().removeChannelTemplate(i)}),e._UZ(45,"i",92),e.TgZ(46,"span"),e.SDv(47,93),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw();e.xp6(6),e.Q6J("ngModel",t.httpMethod),e.xp6(21),e.ekj("is-invalid",!t.host)("is-valid",t.host),e.Q6J("ngModel",t.host),e.xp6(8),e.ekj("is-invalid",!n.isPureIntegerType(t.port))("is-valid",n.isPureIntegerType(t.port)),e.Q6J("ngModel",t.port),e.xp6(8),e.Q6J("ngModel",t.path)}}function ne(o,T){if(1&o&&(e.TgZ(0,"div",58),e.TgZ(1,"div",6),e.YNc(2,ee,15,5,"div",59),e.YNc(3,te,48,12,"div",59),e.qZA(),e.qZA()),2&o){const t=T.$implicit;e.xp6(2),e.Q6J("ngIf","EMAIL"===t.type),e.xp6(1),e.Q6J("ngIf","REST"===t.type)}}let ie=(()=>{class o{constructor(t,n,i,_,I){this.notiSvc=t,this.msgSvc=n,this.errSvc=i,this.route=_,this.router=I,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(t=>{t.subName&&this.notiSvc.findOneSubscriptionByName(t.subName).subscribe(n=>{this.subscription=n.subscription,this.subCategories=this.subscription.categories.toString(),this.subLabels=this.subscription.labels.toString(),this.channelTemplates=this.subscription.channels})})}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}update(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((t,n)=>{if("EMAIL"===t.type){let i=t.recipients.toString();t.recipients=i.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.updateOneSubscription(this.subscription).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.msgSvc.success("Update subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(t){switch(t){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(t){let n=this.channelTemplates.indexOf(t);-1!==n&&(this.channelTemplates.splice(n,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(t){return!isNaN(t)&&parseFloat(t)===parseInt(t)}validate(){let t=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((n,i)=>{("REST"!==n.type||""!==n.path&&n.port)&&("EMAIL"!==n.type||n.recipients)||(t=!0)}),!(!t&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(B.T),e.Y36(q.e),e.Y36(F.T),e.Y36(r.gz),e.Y36(r.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edit-subscription"]],decls:92,vars:30,consts:function(){let T,t,n,i,_,I,c,N,C,g,O,u,A,p,f,P,R,b,M,m,E,S,h,v,L,U;return T="\u7F16\u8F91\u8BA2\u9605",t="\u4FDD\u5B58",n="\u540D\u5B57",i="\u8BA2\u9605\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",_="\u7C7B\u522B",I="\u8BA2\u9605\u7C7B\u522B\u4E0D\u80FD\u4E3A\u7A7A\uFF01",c="\u6807\u7B7E",N="\u8BA2\u9605label\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A\uFF01",C="\u63A5\u6536\u8005",g="\u8BA2\u9605\u63A5\u6536\u8005\u4E0D\u80FD\u4E3A\u7A7A\uFF01",O="\u91CD\u53D1\u95F4\u9694",u="\u91CD\u53D1\u9650\u5236",A="\u7BA1\u7406\u72B6\u6001",p="\u901A\u9053",f="\u6DFB\u52A0\u901A\u9053\u6A21\u677F",P="EMAIL \u901A\u9053\u6A21\u677F",R="REST \u901A\u9053\u6A21\u677F",b="Email\u63A5\u6536\u8005",M="email\u5730\u5740\u7AEF\u53E3\u4E0D\u80FD\u4E3A\u7A7A",m="HttpMethod",E="Host",S="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",h="Port",v="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",L="Path",U="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-2"],T,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],t,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],n,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],i,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],_,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],I,["for","subscriptionLabels",1,"col-md-2","col-form-label"],c,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],N,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],g,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],u,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],A,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],p,f,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],P,["role","button",1,"badge","badge-secondary",3,"click"],R,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],b,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],M,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],m,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],E,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],S,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],h,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],v,["for","addressPath","required","",1,"col-md-2","col-form-label"],L,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"fa","fa-trash","mr-1"],U]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return n.update()}),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"form"),e.TgZ(9,"div",7),e.TgZ(10,"label",8),e.SDv(11,9),e.qZA(),e.TgZ(12,"div",10),e.TgZ(13,"input",11),e.NdJ("ngModelChange",function(_){return n.subscription.name=_}),e.qZA(),e.TgZ(14,"div",12),e.TgZ(15,"small"),e.SDv(16,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",14),e.TgZ(18,"label",15),e.TgZ(19,"span",16),e.SDv(20,17),e.qZA(),e._UZ(21,"span",18),e.qZA(),e.TgZ(22,"div",10),e.TgZ(23,"div",19),e.TgZ(24,"input",20),e.NdJ("ngModelChange",function(_){return n.subCategories=_}),e.qZA(),e.TgZ(25,"div",12),e.TgZ(26,"small"),e.SDv(27,21),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",14),e.TgZ(29,"label",22),e.TgZ(30,"span",16),e.SDv(31,23),e.qZA(),e._UZ(32,"span",24),e.qZA(),e.TgZ(33,"div",10),e.TgZ(34,"div",19),e.TgZ(35,"input",25),e.NdJ("ngModelChange",function(_){return n.subLabels=_}),e.qZA(),e.TgZ(36,"div",12),e.TgZ(37,"small"),e.SDv(38,26),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"label",27),e.TgZ(41,"span",16),e.SDv(42,28),e.qZA(),e._UZ(43,"span",29),e.qZA(),e.TgZ(44,"div",10),e.TgZ(45,"input",30),e.NdJ("ngModelChange",function(_){return n.subscription.receiver=_}),e.qZA(),e.TgZ(46,"div",31),e.TgZ(47,"small"),e.SDv(48,32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",14),e.TgZ(50,"label",33),e.TgZ(51,"span",16),e.SDv(52,34),e.qZA(),e._UZ(53,"span",35),e.qZA(),e.TgZ(54,"div",10),e.TgZ(55,"input",36),e.NdJ("ngModelChange",function(_){return n.subscription.resendInterval=_}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(56,"div",14),e.TgZ(57,"label",37),e.TgZ(58,"span",16),e.SDv(59,38),e.qZA(),e._UZ(60,"span",39),e.qZA(),e.TgZ(61,"div",10),e.TgZ(62,"input",40),e.NdJ("ngModelChange",function(_){return n.subscription.resendLimit=_}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",14),e.TgZ(64,"label",41),e.SDv(65,42),e.qZA(),e.TgZ(66,"div",10),e.TgZ(67,"select",43),e.NdJ("ngModelChange",function(_){return n.subscription.adminState=_}),e.TgZ(68,"option",44),e._uU(69,"UNLOCKED"),e.qZA(),e.TgZ(70,"option",45),e._uU(71,"LOCKED"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",14),e.TgZ(73,"label",46),e.SDv(74,47),e.qZA(),e.TgZ(75,"div",10),e.TgZ(76,"div",0),e.TgZ(77,"div",1),e.TgZ(78,"span",16),e.SDv(79,48),e.qZA(),e.YNc(80,V,1,2,"span",49),e.qZA(),e.TgZ(81,"div",6),e.TgZ(82,"div",50),e.TgZ(83,"span",51),e.NdJ("click",function(){return n.addChannelTemplate("EMAIL")}),e._UZ(84,"i",52),e.TgZ(85,"span"),e.SDv(86,53),e.qZA(),e.qZA(),e.TgZ(87,"span",54),e.NdJ("click",function(){return n.addChannelTemplate("REST")}),e._UZ(88,"i",52),e.TgZ(89,"span"),e.SDv(90,55),e.qZA(),e.qZA(),e.qZA(),e.YNc(91,ne,4,2,"div",56),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",n.validate()),e.xp6(8),e.ekj("is-invalid",!n.subscription.name)("is-valid",n.subscription.name),e.Q6J("ngModel",n.subscription.name),e.xp6(11),e.ekj("is-invalid",!n.subCategories)("is-valid",n.subCategories),e.Q6J("ngModel",n.subCategories),e.xp6(11),e.ekj("is-invalid",!n.subLabels)("is-valid",n.subLabels),e.Q6J("ngModel",n.subLabels),e.xp6(10),e.ekj("is-invalid",!n.subscription.receiver)("is-valid",n.subscription.receiver),e.Q6J("ngModel",n.subscription.receiver),e.xp6(10),e.Q6J("ngModel",n.subscription.resendInterval),e.xp6(7),e.Q6J("ngModel",n.subscription.resendLimit),e.xp6(5),e.Q6J("ngModel",n.subscription.adminState),e.xp6(10),e.ekj("border",0===n.channelTemplates.length)("border-danger",0===n.channelTemplates.length),e.xp6(3),e.Q6J("ngIf",0===n.channelTemplates.length),e.xp6(11),e.Q6J("ngForOf",n.channelTemplates))},directives:[s._Y,s.JL,s.F,s.Fj,s.Q7,s.JJ,s.On,s.wV,s.EJ,s.YN,s.Kr,Z.O5,Z.sg],styles:[""]}),o})();var _e=d(8253),oe=d(1964),Te=d(4294),ae=d(5894),se=d(7216);let G=(()=>{class o{constructor(t,n){this.router=t,this.notiSvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.notiSvc.ping().pipe((0,Te.q)(1),(0,ae.K)(i=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"notification",routerPath:`/${n.url.split("/")[1]}`}})),(0,se.z)(()=>(0,oe.of)(!0)))}}return o.\u0275fac=function(t){return new(t||o)(e.LFG(r.F0),e.LFG(B.T))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Ie=[{path:"",component:X,canActivate:[_e.a,G],canActivateChild:[G],children:[{path:"",redirectTo:"notification-center",pathMatch:"full"},{path:"notification-center",component:k,children:[{path:"",component:J}]},{path:"subscription-center",component:z,children:[{path:"",redirectTo:"subscription-list",pathMatch:"full"},{path:"subscription-list",component:Q},{path:"add-subscription",component:W},{path:"edit-subscription",component:ie}]}]}];let Se=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[r.Bz.forChild(Ie)],r.Bz]}),o})(),le=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[Z.ez,s.u5,Se]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/634.c5763db2e92fa7d59036.js b/cmd/edgex-ui-server/static/web/zh/634.c5763db2e92fa7d59036.js deleted file mode 100644 index 49dd2ef6..00000000 --- a/cmd/edgex-ui-server/static/web/zh/634.c5763db2e92fa7d59036.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[634],{2634:(l_,F,l)=>{l.r(F),l.d(F,{NotificationsModule:()=>N_});var M=l(8583),S=l(3092),d=l(9502),_=l(476);let y=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notifications"]],decls:11,vars:0,consts:function(){let I,e;return I="\u901A\u77E5",e="\u8BA2\u9605",[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item"],["routerLink","./notification-center","routerLinkActive","active",1,"nav-link"],I,["routerLink","./subscription-center","routerLinkActive","active",1,"nav-link"],e,[1,"card-body"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_.TgZ(2,"ul",2),_.TgZ(3,"li",3),_.TgZ(4,"a",4),_.SDv(5,5),_.qZA(),_.qZA(),_.TgZ(6,"li",3),_.TgZ(7,"a",6),_.SDv(8,7),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(9,"div",8),_._UZ(10,"router-outlet"),_.qZA(),_.qZA())},directives:[d.yS,d.Od,d.lC],styles:[""]}),o})(),J=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notification-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[d.lC],styles:[""]}),o})();var v=l(9827),B=l(9744),L=l(7822);function H(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",48),_.NdJ("click",function(n){const a=_.CHM(e).$implicit;return _.oxw().selectOne(n,a)}),_.qZA(),_.qZA(),_.TgZ(3,"td",91),_._uU(4),_.qZA(),_.TgZ(5,"td",91),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td"),_._uU(14),_.qZA(),_.TgZ(15,"td"),_._uU(16),_.qZA(),_.TgZ(17,"td"),_._uU(18),_.qZA(),_.TgZ(19,"td"),_._uU(20),_.qZA(),_.TgZ(21,"td"),_._uU(22),_.ALo(23,"date"),_.qZA(),_.TgZ(24,"td"),_._uU(25),_.ALo(26,"date"),_.qZA(),_.qZA()}if(2&o){const e=I.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.id)),_.xp6(2),_.Q6J("checked",t.isChecked(e.id)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.category),_.xp6(2),_.Oqu(e.labels),_.xp6(2),_.Oqu(e.content),_.xp6(2),_.Oqu(e.contentType),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.sender),_.xp6(2),_.Oqu(e.severity),_.xp6(2),_.Oqu(e.status),_.xp6(2),_.Oqu(_.xi3(23,14,e.created,"yyyy-MM-dd hh:mm:ss")),_.xp6(3),_.Oqu(_.xi3(26,17,e.modified,"yyyy-MM-dd hh:mm:ss"))}}let W=(()=>{class o{constructor(e,t){this.notiSvc=e,this.msgSvc=t,this.notificationList=[],this.notificationSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this.categorySelected="SECURITY",this.statusSelected="NEW",this.advancedOperation=!1}ngOnInit(){$('[data-toggle="popover"]').popover({trigger:"hover"}),this.setSearchMode("status"),this.findNotificationsByStatusPagination(!0),this.initDatePickr()}initDatePickr(){this.calendarStart=(0,v.Z)("input[name='startSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.startSelected=1e3*Number(t)}}),this.calendarEnd=(0,v.Z)("input[name='endSelected']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.endSelected=1e3*Number(t)}}),this.calendarStart=(0,v.Z)("input[name='ageCleanupAll']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.ageCleanupAll=1e3*Number(t)}}),this.calendarEnd=(0,v.Z)("input[name='ageCleanupByStatusIsProcessed']",{dateFormat:"U",altFormat:"Y-m-d H:i:S",altInput:!0,enableTime:!0,enableSeconds:!0,time_24hr:!0,allowInput:!1,onChange:(e,t,n)=>{this.ageCleanupByStatusIsProcessed=1e3*Number(t)}})}advancedToggle(){this.advancedOperation=!this.advancedOperation}findNotificationsByCategoryPagination(e){this.notiSvc.findNotificationsByCategoryPagination(this.pageOffset,this.pageLimit,this.categorySelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by category")})}findNotificationsByStatusPagination(e){this.notiSvc.findNotificationsByStatusPagination(this.pageOffset,this.pageLimit,this.statusSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by status")})}findNotificationsByLabelPagination(e){this.notiSvc.findNotificationsByLabelPagination(this.pageOffset,this.pageLimit,this.labelSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by label")})}findNotificationsByStartEndPagination(e){console.log(this.startSelected,this.endSelected),this.notiSvc.findNotificationsByStartEndPagination(this.pageOffset,this.pageLimit,this.startSelected,this.endSelected).subscribe(t=>{this.notificationList=t.notifications,!e&&this.msgSvc.success("search by start and end")})}setSearchMode(e){this.searchMode=e}searchByStatus(){this.resetPagination(),this.setSearchMode("status"),this.findNotificationsByStatusPagination()}searchByCategory(){this.resetPagination(),this.setSearchMode("category"),this.findNotificationsByCategoryPagination()}searchByStartEnd(){this.resetPagination(),this.setSearchMode("duration"),this.findNotificationsByStartEndPagination()}deleteConfirm(e){this.cleanMode=e,$("#deleteConfirmDialog").modal("show")}cleanup(){switch(this.cleanMode){case"age":this.cleanupByAge();break;case"status":this.cleanupByAgeAndStatusIsProcessed();break;default:this.deleteSelected()}}cleanupByAge(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupAll).subscribe(()=>{this.msgSvc.success("cleanup by age")}),$("#deleteConfirmDialog").modal("hide")}cleanupByAgeAndStatusIsProcessed(){this.notiSvc.deleteNotificationByAgeAndStatus(this.ageCleanupByStatusIsProcessed).subscribe(()=>{this.msgSvc.success("cleanup by age when status is processed")}),$("#deleteConfirmDialog").modal("hide")}deleteSelected(){this.notificationSelected.forEach(e=>{this.notiSvc.deleteNotificationById(e.id).subscribe(()=>{this.msgSvc.success("delete",`ID: ${e.id}`)})}),$("#deleteConfirmDialog").modal("hide")}isCheckedAll(){let e=!0;return this.notificationList&&0===this.notificationList.length&&(e=!1),this.notificationList.forEach(t=>{-1===this.notificationSelected.findIndex(n=>n.id===t.id)&&(e=!1)}),e}selectAll(e){this.notificationList.forEach(e.target.checked?n=>{-1===this.notificationSelected.findIndex(i=>i.id===n.id)&&this.notificationSelected.push(n)}:n=>{let i=this.notificationSelected.findIndex(a=>a.id===n.id);-1!==i&&this.notificationSelected.splice(i,1)})}isChecked(e){return this.notificationSelected.findIndex(t=>t.id===e)>=0}selectOne(e,t){if(e.target.checked)return void this.notificationSelected.push(t);let i=this.notificationSelected.findIndex(a=>a.id===t.id);-1!==i&&this.notificationSelected.splice(i,1)}paginationBySearchMode(){switch(this.searchMode){case"status":this.findNotificationsByStatusPagination(!0);break;case"category":this.findNotificationsByCategoryPagination(!0);break;case"duration":this.findNotificationsByStartEndPagination(!0)}}onPageSelected(){this.resetPagination(),this.paginationBySearchMode()}prePage(){this.setPagination(-1),this.paginationBySearchMode()}nextPage(){this.setPagination(1),this.paginationBySearchMode()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.setPagination()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-notification-list"]],decls:161,vars:11,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h;return I="\u901A\u77E5\u5217\u8868",e="\u9ED8\u8BA4\u72B6\u6001\u503C\u4E3ANEW\u52A0\u8F7D\u6570\u636E",t="\u5220\u9664",n="\u9AD8\u7EA7\u529F\u80FD",i="\u72B6\u6001",a="\u5F00\u59CB",A="\u7ED3\u675F\u65F6\u95F4",r="\u6309\u65F6\u95F4\u6E05\u9664",C="\u6E05\u9664",c="\u7C7B\u522B",O="\u6807\u7B7E",g="\u5185\u5BB9",E="ContentType",u="\u63CF\u8FF0",p="\u53D1\u9001\u8005",f="\u4E25\u683C\u7B49\u7EA7",P="\u72B6\u6001",U="\u521B\u5EFA\u65F6\u95F4",R="\u4FEE\u6539\u65F6\u95F4",G="\u6BCF\u9875\u6761\u76EE",b="\u4E0A\u4E00\u9875",s="\u4E0B\u4E00\u9875",m="\u8B66\u544A",Z="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",D="\u53D6\u6D88",h="\u786E\u8BA4",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],I,[1,"fa","fa-info-circle","text-success","font-weight-bold","ml-1"],e,[1,"bg-light","card-header","p-0"],[1,"px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],t,["role","button",1,"text-primary","ml-3","text-decoration-none",3,"click"],n,[1,"fa","fa-angle-double-right","ml-1"],[1,"bg-light","card-header","p-0",3,"hidden"],[1,"form-group","row"],[1,"col-md-10"],[1,"input-group",2,"width","600px"],[1,"input-group-prepend"],[1,"input-group-text"],i,["name","statusSelected",1,"custom-select",3,"ngModel","ngModelChange"],["value","NEW"],["value","PROCESSED"],["value","ESCALATED"],["role","button",1,"input-group-append",3,"click"],[1,"fa","fa-search"],a,[1,"fa","fa-calendar"],["type","text","name","startSelected",1,"form-control"],A,["type","text","name","endSelected",1,"form-control"],[1,"input-group-append"],["type","button",1,"btn","btn-secondary",3,"disabled","click"],r,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes notifications which have age and is less than the specified one, where the age of Notification is calculated by subtracting its last modification timestamp from the current timestamp. Note that the corresponding transmissions will also be deleted.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupAll",1,"form-control"],[1,"fa","fa-trash-o"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Deletes the processed notifications if the current timestamp minus their last modification timestamp is less than the age parameter, and the corresponding transmissions will also be deleted. Please notice that this API is only for processed notifications (status = PROCESSED). If the deletion purpose includes each kind of notifications, please refer to cleanupAll.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","ageCleanupByStatusIsProcessed",1,"form-control"],["type","button",1,"btn","btn-danger","font-weight-bold",3,"disabled","click"],[1,"card-body","p-0","position-relative"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],c,O,g,E,u,p,f,P,U,R,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],G,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],b,[1,"page-item"],s,["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],m,[1,"modal-body"],Z,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],D,["type","button",1,"btn","btn-danger",3,"click"],h,[1,"user-select-all"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"span",4),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"div",7),_.TgZ(9,"div",8),_.TgZ(10,"button",9),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(11,"span"),_._UZ(12,"i",10),_.TgZ(13,"span"),_.SDv(14,11),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(15,"a",12),_.NdJ("click",function(){return t.advancedToggle()}),_.TgZ(16,"span"),_.TgZ(17,"span"),_.SDv(18,13),_.qZA(),_._UZ(19,"i",14),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(20,"div",15),_.TgZ(21,"div",7),_.TgZ(22,"form"),_.TgZ(23,"div",16),_.TgZ(24,"div",17),_.TgZ(25,"div",18),_.TgZ(26,"div",19),_.TgZ(27,"span",20),_.SDv(28,21),_.qZA(),_.qZA(),_.TgZ(29,"select",22),_.NdJ("ngModelChange",function(i){return t.statusSelected=i}),_.TgZ(30,"option",23),_._uU(31,"NEW"),_.qZA(),_.TgZ(32,"option",24),_._uU(33,"PROCESSED"),_.qZA(),_.TgZ(34,"option",25),_._uU(35,"ESCALATED"),_.qZA(),_.qZA(),_.TgZ(36,"div",26),_.NdJ("click",function(){return t.searchByStatus()}),_.TgZ(37,"span",20),_._UZ(38,"i",27),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",16),_.TgZ(40,"div",17),_.TgZ(41,"div",18),_.TgZ(42,"div",19),_.TgZ(43,"span",20),_.SDv(44,28),_.qZA(),_.qZA(),_.TgZ(45,"div",19),_.TgZ(46,"span",20),_._UZ(47,"i",29),_.qZA(),_.qZA(),_._UZ(48,"input",30),_.TgZ(49,"div",19),_.TgZ(50,"span",20),_.SDv(51,31),_.qZA(),_.qZA(),_.TgZ(52,"div",19),_.TgZ(53,"span",20),_._UZ(54,"i",29),_.qZA(),_.qZA(),_._UZ(55,"input",32),_.TgZ(56,"div",33),_.TgZ(57,"button",34),_.NdJ("click",function(){return t.searchByStartEnd()}),_._UZ(58,"i",27),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(59,"div",16),_.TgZ(60,"div",17),_.TgZ(61,"div",18),_.TgZ(62,"div",19),_.TgZ(63,"span",20),_.TgZ(64,"span"),_.SDv(65,35),_.qZA(),_._uU(66,"\xa0 "),_._UZ(67,"span",36),_.qZA(),_.qZA(),_.TgZ(68,"div",19),_.TgZ(69,"span",20),_._UZ(70,"i",29),_.qZA(),_.qZA(),_._UZ(71,"input",37),_.TgZ(72,"div",33),_.TgZ(73,"button",9),_.NdJ("click",function(){return t.deleteConfirm("age")}),_._UZ(74,"i",38),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(75,"div",16),_.TgZ(76,"div",17),_.TgZ(77,"div",18),_.TgZ(78,"div",19),_.TgZ(79,"span",20),_.TgZ(80,"span"),_.SDv(81,39),_.qZA(),_._uU(82,"\xa0 "),_._UZ(83,"span",40),_.qZA(),_.qZA(),_.TgZ(84,"div",19),_.TgZ(85,"span",20),_._UZ(86,"i",29),_.qZA(),_.qZA(),_._UZ(87,"input",41),_.TgZ(88,"div",33),_.TgZ(89,"button",42),_.NdJ("click",function(){return t.deleteConfirm("status")}),_._UZ(90,"i",38),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(91,"div",43),_.TgZ(92,"div",44),_.TgZ(93,"table",45),_.TgZ(94,"thead",46),_.TgZ(95,"tr"),_.TgZ(96,"th",47),_.TgZ(97,"input",48),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(98,"th",47),_._uU(99,"ID"),_.qZA(),_.TgZ(100,"th",47),_.SDv(101,49),_.qZA(),_.TgZ(102,"th",47),_.SDv(103,50),_.qZA(),_.TgZ(104,"th",47),_.SDv(105,51),_.qZA(),_.TgZ(106,"th",47),_.SDv(107,52),_.qZA(),_.TgZ(108,"th",47),_.SDv(109,53),_.qZA(),_.TgZ(110,"th",47),_.SDv(111,54),_.qZA(),_.TgZ(112,"th",47),_.SDv(113,55),_.qZA(),_.TgZ(114,"th",47),_.SDv(115,56),_.qZA(),_.TgZ(116,"th",47),_.SDv(117,57),_.qZA(),_.TgZ(118,"th",47),_.SDv(119,58),_.qZA(),_.qZA(),_.qZA(),_.TgZ(120,"tbody"),_.YNc(121,H,27,20,"tr",59),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(122,"div",60),_.TgZ(123,"nav",61),_.TgZ(124,"ul",62),_.TgZ(125,"li",63),_.TgZ(126,"span",64),_.SDv(127,65),_.qZA(),_.qZA(),_.TgZ(128,"li",66),_.TgZ(129,"select",67),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(130,"option",68),_._uU(131,"5"),_.qZA(),_.TgZ(132,"option",69),_._uU(133,"10"),_.qZA(),_.TgZ(134,"option",70),_._uU(135,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(136,"li",71),_.TgZ(137,"button",72),_.NdJ("click",function(){return t.prePage()}),_._UZ(138,"i",73),_.TgZ(139,"span"),_.SDv(140,74),_.qZA(),_.qZA(),_.qZA(),_.TgZ(141,"li",75),_.TgZ(142,"button",72),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(143,"span"),_.SDv(144,76),_.qZA(),_._UZ(145,"i",14),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(146,"div",77),_.TgZ(147,"div",78),_.TgZ(148,"div",79),_.TgZ(149,"div",80),_.TgZ(150,"h5",81),_._UZ(151,"i",82),_.TgZ(152,"span"),_.SDv(153,83),_.qZA(),_.qZA(),_.qZA(),_.TgZ(154,"div",84),_.SDv(155,85),_.qZA(),_.TgZ(156,"div",86),_.TgZ(157,"button",87),_.SDv(158,88),_.qZA(),_.TgZ(159,"button",89),_.NdJ("click",function(){return t.cleanup()}),_.SDv(160,90),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(10),_.Q6J("disabled",0===t.notificationSelected.length),_.xp6(10),_.Q6J("hidden",!t.advancedOperation),_.xp6(9),_.Q6J("ngModel",t.statusSelected),_.xp6(28),_.Q6J("disabled",!t.startSelected||!t.endSelected),_.xp6(16),_.Q6J("disabled",!t.ageCleanupAll),_.xp6(16),_.Q6J("disabled",!t.ageCleanupByStatusIsProcessed),_.xp6(8),_.Q6J("checked",t.isCheckedAll()),_.xp6(24),_.Q6J("ngForOf",t.notificationList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.notificationList.length))},directives:[S._Y,S.JL,S.F,S.EJ,S.JJ,S.On,S.YN,S.Kr,M.sg],pipes:[M.uU],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})(),k=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-subscription-center"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},directives:[d.lC],styles:[""]}),o})();var q=l(4889);function x(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"tr"),_.TgZ(1,"td"),_.TgZ(2,"input",23),_.NdJ("click",function(n){const a=_.CHM(e).$implicit;return _.oxw().selectOne(n,a)}),_.qZA(),_.qZA(),_.TgZ(3,"td",66),_._uU(4),_.qZA(),_.TgZ(5,"td",66),_._uU(6),_.qZA(),_.TgZ(7,"td"),_._uU(8),_.qZA(),_.TgZ(9,"td"),_._uU(10),_.qZA(),_.TgZ(11,"td"),_._uU(12),_.qZA(),_.TgZ(13,"td",67),_.TgZ(14,"span",68),_.NdJ("click",function(){const i=_.CHM(e).$implicit;return _.oxw().checkChannels(i)}),_._UZ(15,"i",69),_._uU(16),_.qZA(),_.qZA(),_.TgZ(17,"td"),_._uU(18),_.qZA(),_.TgZ(19,"td"),_._uU(20),_.qZA(),_.TgZ(21,"td"),_._uU(22),_.qZA(),_.qZA()}if(2&o){const e=I.$implicit,t=_.oxw();_.ekj("table-active",t.isChecked(e.name)),_.xp6(2),_.Q6J("checked",t.isChecked(e.name)),_.xp6(2),_.Oqu(e.id),_.xp6(2),_.Oqu(e.name),_.xp6(2),_.Oqu(e.description),_.xp6(2),_.Oqu(e.categories),_.xp6(2),_.Oqu(e.labels),_.xp6(4),_.hij(" ",e.channels.length," "),_.xp6(2),_.Oqu(e.receiver),_.xp6(2),_.Oqu(e.resendLimit),_.xp6(2),_.Oqu(e.resendInterval)}}let z=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.route=n,this.router=i,this.errSvc=a,this.subscriptionList=[],this.subscriptionSelected=[],this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllSubscriptionsPagination()}refresh(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.subscriptionList=e.subscriptions,this.msgSvc.success("refresh")})}findAllSubscriptionsPagination(){this.notiSvc.findAllSubscriptionPagination(this.pageOffset,this.pageLimit).subscribe(e=>{this.subscriptionList=e.subscriptions})}checkChannels(e){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:e.name}})}isCheckedAll(){let e=!0;return this.subscriptionList&&0===this.subscriptionList.length&&(e=!1),this.subscriptionList.forEach(t=>{-1===this.subscriptionSelected.findIndex(n=>n.id===t.id)&&(e=!1)}),e}selectAll(e){this.subscriptionList.forEach(e.target.checked?n=>{-1===this.subscriptionSelected.findIndex(i=>i.name===n.name)&&this.subscriptionSelected.push(n)}:n=>{let i=this.subscriptionSelected.findIndex(a=>a.name===n.name);-1!==i&&this.subscriptionSelected.splice(i,1)})}isChecked(e){return this.subscriptionSelected.findIndex(t=>t.name===e)>=0}selectOne(e,t){if(e.target.checked)return void this.subscriptionSelected.push(t);let i=this.subscriptionSelected.findIndex(a=>a.name===t.name);-1!==i&&this.subscriptionSelected.splice(i,1)}edit(){this.router.navigate(["../edit-subscription"],{relativeTo:this.route,queryParams:{subName:this.subscriptionSelected[0].name}})}deleteConfirm(){$("#deleteConfirmDialog").modal("show")}deleteSubs(){this.subscriptionSelected.forEach(e=>{this.notiSvc.deleteOneSubscriptionByName(e.name).subscribe(t=>{this.errSvc.handleErrorForAPI(t)||(this.subscriptionList.forEach((n,i)=>{n.name!==e.name||this.subscriptionList.splice(i,1)}),this.msgSvc.success("delete",`name: ${e.name}`),this.resetPagination(),this.findAllSubscriptionsPagination())})}),$("#deleteConfirmDialog").modal("hide")}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllSubscriptionsPagination()}prePage(){this.setPagination(-1),this.findAllSubscriptionsPagination()}nextPage(){this.setPagination(1),this.findAllSubscriptionsPagination()}setPagination(e){1===e?this.pagination+=1:-1===e&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(d.gz),_.Y36(d.F0),_.Y36(q.T))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-subscription-list"]],decls:93,vars:7,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b;return I="\u8BA2\u9605\u5217\u8868",e="\u5237\u65B0",t="\u6DFB\u52A0",n="\u7F16\u8F91",i="\u5220\u9664",a="ID",A="\u540D\u5B57",r="\u63CF\u8FF0",C="\u7C7B\u522B",c="\u6807\u7B7E",O="\u901A\u9053",g="\u63A5\u6536\u8005",E="\u91CD\u53D1\u9650\u5236",u="\u91CD\u53D1\u95F4\u9694",p="\u6BCF\u9875\u6761\u76EE",f="\u4E0A\u4E00\u9875",P="\u4E0B\u4E00\u9875",U="\u8B66\u544A",R="\u6570\u636E\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\uFF01\uFF01\uFF01\u786E\u5B9A\u8981\u6267\u884C\u5220\u9664\u64CD\u4F5C\u5417\uFF1F",G="\u53D6\u6D88",b="\u786E\u8BA4",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-1"],I,[1,"card-body","p-0","position-relative"],[1,"bg-light","px-2","py-2"],["role","group",1,"btn-group","btn-group-sm"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-refresh","mr-1"],e,["type","button","routerLink","../add-subscription",1,"btn","btn-info"],[1,"fa","fa-plus","mr-1"],t,["type","button",1,"btn","btn-success",3,"disabled","click"],[1,"fa","fa-edit","mr-1"],n,["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-trash","mr-1"],i,[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click"],a,A,r,C,c,O,g,E,u,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],p,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],f,[1,"page-item"],P,[1,"fa","fa-angle-double-right","ml-1"],["id","deleteConfirmDialog","data-backdrop","static","data-keyboard","false","tabindex","-1","aria-labelledby","deleteConfirmDialogLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","deleteConfirmDialogLabel",1,"modal-title","text-danger"],[1,"fa","fa-warning","mr-1"],U,[1,"modal-body"],R,[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],G,["type","button",1,"btn","btn-danger",3,"click"],b,[1,"user-select-all"],[1,"text-center"],["role","button",1,"badge","badge-primary","text-light",3,"click"],[1,"fa","fa-paper-plane-o"]]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.qZA(),_.TgZ(5,"div",4),_.TgZ(6,"div",5),_.TgZ(7,"div",6),_.TgZ(8,"button",7),_.NdJ("click",function(){return t.refresh()}),_.TgZ(9,"span"),_._UZ(10,"i",8),_.TgZ(11,"span"),_.SDv(12,9),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"button",10),_.TgZ(14,"span"),_._UZ(15,"i",11),_.TgZ(16,"span"),_.SDv(17,12),_.qZA(),_.qZA(),_.qZA(),_.TgZ(18,"button",13),_.NdJ("click",function(){return t.edit()}),_.TgZ(19,"span"),_._UZ(20,"i",14),_.TgZ(21,"span"),_.SDv(22,15),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"button",16),_.NdJ("click",function(){return t.deleteConfirm()}),_.TgZ(24,"span"),_._UZ(25,"i",17),_.TgZ(26,"span"),_.SDv(27,18),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",19),_.TgZ(29,"table",20),_.TgZ(30,"thead",21),_.TgZ(31,"tr"),_.TgZ(32,"th",22),_.TgZ(33,"input",23),_.NdJ("click",function(i){return t.selectAll(i)}),_.qZA(),_.qZA(),_.TgZ(34,"th",22),_.SDv(35,24),_.qZA(),_.TgZ(36,"th",22),_.SDv(37,25),_.qZA(),_.TgZ(38,"th",22),_.SDv(39,26),_.qZA(),_.TgZ(40,"th",22),_.SDv(41,27),_.qZA(),_.TgZ(42,"th",22),_.SDv(43,28),_.qZA(),_.TgZ(44,"th",22),_.SDv(45,29),_.qZA(),_.TgZ(46,"th",22),_.SDv(47,30),_.qZA(),_.TgZ(48,"th",22),_.SDv(49,31),_.qZA(),_.TgZ(50,"th",22),_.SDv(51,32),_.qZA(),_.qZA(),_.qZA(),_.TgZ(52,"tbody"),_.YNc(53,x,23,12,"tr",33),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(54,"div",34),_.TgZ(55,"nav",35),_.TgZ(56,"ul",36),_.TgZ(57,"li",37),_.TgZ(58,"span",38),_.SDv(59,39),_.qZA(),_.qZA(),_.TgZ(60,"li",40),_.TgZ(61,"select",41),_.NdJ("ngModelChange",function(i){return t.pageLimit=i})("ngModelChange",function(){return t.onPageSelected()}),_.TgZ(62,"option",42),_._uU(63,"5"),_.qZA(),_.TgZ(64,"option",43),_._uU(65,"10"),_.qZA(),_.TgZ(66,"option",44),_._uU(67,"20"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(68,"li",45),_.TgZ(69,"button",46),_.NdJ("click",function(){return t.prePage()}),_._UZ(70,"i",47),_.TgZ(71,"span"),_.SDv(72,48),_.qZA(),_.qZA(),_.qZA(),_.TgZ(73,"li",49),_.TgZ(74,"button",46),_.NdJ("click",function(){return t.nextPage()}),_.TgZ(75,"span"),_.SDv(76,50),_.qZA(),_._UZ(77,"i",51),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(78,"div",52),_.TgZ(79,"div",53),_.TgZ(80,"div",54),_.TgZ(81,"div",55),_.TgZ(82,"h5",56),_._UZ(83,"i",57),_.TgZ(84,"span"),_.SDv(85,58),_.qZA(),_.qZA(),_.qZA(),_.TgZ(86,"div",59),_.SDv(87,60),_.qZA(),_.TgZ(88,"div",61),_.TgZ(89,"button",62),_.SDv(90,63),_.qZA(),_.TgZ(91,"button",64),_.NdJ("click",function(){return t.deleteSubs()}),_.SDv(92,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(18),_.Q6J("disabled",1!==t.subscriptionSelected.length),_.xp6(5),_.Q6J("disabled",0===t.subscriptionSelected.length),_.xp6(10),_.Q6J("checked",t.isCheckedAll()),_.xp6(20),_.Q6J("ngForOf",t.subscriptionList),_.xp6(8),_.Q6J("ngModel",t.pageLimit),_.xp6(8),_.Q6J("disabled",1===t.pagination),_.xp6(5),_.Q6J("disabled",t.pageLimit>t.subscriptionList.length))},directives:[d.rH,M.sg,S.EJ,S.JJ,S.On,S.YN,S.Kr],styles:[""]}),o})();function w(o,I){if(1&o&&_._UZ(0,"span",57),2&o){const e=_.oxw();_.ekj("text-danger",0===e.channelTemplates.length)}}function Q(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",60),_.TgZ(4,"span",16),_.SDv(5,61),_.qZA(),_._UZ(6,"span",62),_.qZA(),_.TgZ(7,"div",10),_.TgZ(8,"input",63),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.recipients=n}),_.qZA(),_.TgZ(9,"div",64),_.TgZ(10,"small"),_.SDv(11,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(13,"i",67),_.TgZ(14,"span"),_.SDv(15,68),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit;_.xp6(8),_.ekj("is-invalid",!e.recipients)("is-valid",e.recipients),_.Q6J("ngModel",e.recipients)}}function Y(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",69),_.SDv(4,70),_.qZA(),_.TgZ(5,"div",10),_.TgZ(6,"select",71),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.httpMethod=n}),_.TgZ(7,"option",72),_._uU(8,"GET"),_.qZA(),_.TgZ(9,"option",73),_._uU(10,"POST"),_.qZA(),_.TgZ(11,"option",74),_._uU(12,"PUT"),_.qZA(),_.TgZ(13,"option",75),_._uU(14,"DELETE"),_.qZA(),_.TgZ(15,"option",76),_._uU(16,"PATCH"),_.qZA(),_.TgZ(17,"option",77),_._uU(18,"HEAD"),_.qZA(),_.TgZ(19,"option",78),_._uU(20,"TRACE"),_.qZA(),_.TgZ(21,"option",79),_._uU(22,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"div",7),_.TgZ(24,"label",80),_.SDv(25,81),_.qZA(),_.TgZ(26,"div",10),_.TgZ(27,"input",82),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.host=n}),_.qZA(),_.TgZ(28,"div",83),_.TgZ(29,"small"),_.SDv(30,84),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",7),_.TgZ(32,"label",85),_.SDv(33,86),_.qZA(),_.TgZ(34,"div",10),_.TgZ(35,"input",87),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.port=n}),_.qZA(),_.TgZ(36,"div",88),_.TgZ(37,"small"),_.SDv(38,89),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",90),_.SDv(41,91),_.qZA(),_.TgZ(42,"div",10),_.TgZ(43,"input",92),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.path=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(45,"i",67),_.TgZ(46,"span"),_.SDv(47,93),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit,t=_.oxw();_.xp6(6),_.Q6J("ngModel",e.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.host)("is-valid",e.host),_.Q6J("ngModel",e.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(e.port))("is-valid",t.isPureIntegerType(e.port)),_.Q6J("ngModel",e.port),_.xp6(8),_.Q6J("ngModel",e.path)}}function j(o,I){if(1&o&&(_.TgZ(0,"div",58),_.TgZ(1,"div",6),_.YNc(2,Q,16,5,"div",59),_.YNc(3,Y,48,12,"div",59),_.qZA(),_.qZA()),2&o){const e=I.$implicit;_.xp6(2),_.Q6J("ngIf","EMAIL"===e.type),_.xp6(1),_.Q6J("ngIf","REST"===e.type)}}let K=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.errSvc=n,this.route=i,this.router=a,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={adminState:"UNLOCKED"}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}submit(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((e,t)=>{if("EMAIL"===e.type){let n=e.recipients.toString();e.recipients=n.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.addOneSubscription(this.subscription).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Add new subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(e){switch(e){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(e){let t=this.channelTemplates.indexOf(e);-1!==t&&(this.channelTemplates.splice(t,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((t,n)=>{("REST"!==t.type||""!==t.path&&t.port)&&("EMAIL"!==t.type||t.recipients)||(e=!0)}),!(!e&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(q.T),_.Y36(d.gz),_.Y36(d.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-add-subscription"]],decls:92,vars:30,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h,T;return I="\u6DFB\u52A0\u8BA2\u9605",e="\u63D0\u4EA4",t="\u540D\u5B57",n="\u8BA2\u9605\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",i="\u7C7B\u522B",a="\u8BA2\u9605\u7C7B\u522B\u4E0D\u80FD\u4E3A\u7A7A\uFF01",A="\u6807\u7B7E",r="\u8BA2\u9605label\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A\uFF01",C="\u63A5\u6536\u8005",c="\u8BA2\u9605\u63A5\u6536\u8005\u4E0D\u80FD\u4E3A\u7A7A\uFF01",O="\u91CD\u53D1\u95F4\u9694",g="\u91CD\u53D1\u9650\u5236",E="\u7BA1\u7406\u72B6\u6001",u="\u901A\u9053",p="\u6DFB\u52A0\u901A\u9053\u6A21\u677F",f="EMAIL \u901A\u9053\u6A21\u677F",P="REST \u901A\u9053\u6A21\u677F",U="Email\u63A5\u6536\u8005",R="email\u5730\u5740\u7AEF\u53E3\u4E0D\u80FD\u4E3A\u7A7A",G="\u5220\u9664",b="HttpMethod",s="Host",m="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",Z="Port",D="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",h="Path",T="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-plus","text-danger","mr-2"],I,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],n,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],a,["for","subscriptionLabels",1,"col-md-2","col-form-label"],A,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],r,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],c,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],E,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],u,p,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],f,["role","button",1,"badge","badge-secondary",3,"click"],P,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],U,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],R,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash","mr-1"],G,["for","HttpMethod","required","",1,"col-md-2","col-form-label"],b,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],s,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],m,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],Z,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],D,["for","addressPath","required","",1,"col-md-2","col-form-label"],h,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],T]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.submit()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.subscription.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_.SDv(16,13),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",14),_.TgZ(18,"label",15),_.TgZ(19,"span",16),_.SDv(20,17),_.qZA(),_._UZ(21,"span",18),_.qZA(),_.TgZ(22,"div",10),_.TgZ(23,"div",19),_.TgZ(24,"input",20),_.NdJ("ngModelChange",function(i){return t.subCategories=i}),_.qZA(),_.TgZ(25,"div",12),_.TgZ(26,"small"),_.SDv(27,21),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"label",22),_.TgZ(30,"span",16),_.SDv(31,23),_.qZA(),_._UZ(32,"span",24),_.qZA(),_.TgZ(33,"div",10),_.TgZ(34,"div",19),_.TgZ(35,"input",25),_.NdJ("ngModelChange",function(i){return t.subLabels=i}),_.qZA(),_.TgZ(36,"div",12),_.TgZ(37,"small"),_.SDv(38,26),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",27),_.TgZ(41,"span",16),_.SDv(42,28),_.qZA(),_._UZ(43,"span",29),_.qZA(),_.TgZ(44,"div",10),_.TgZ(45,"input",30),_.NdJ("ngModelChange",function(i){return t.subscription.receiver=i}),_.qZA(),_.TgZ(46,"div",31),_.TgZ(47,"small"),_.SDv(48,32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",33),_.TgZ(51,"span",16),_.SDv(52,34),_.qZA(),_._UZ(53,"span",35),_.qZA(),_.TgZ(54,"div",10),_.TgZ(55,"input",36),_.NdJ("ngModelChange",function(i){return t.subscription.resendInterval=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",14),_.TgZ(57,"label",37),_.TgZ(58,"span",16),_.SDv(59,38),_.qZA(),_._UZ(60,"span",39),_.qZA(),_.TgZ(61,"div",10),_.TgZ(62,"input",40),_.NdJ("ngModelChange",function(i){return t.subscription.resendLimit=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"div",14),_.TgZ(64,"label",41),_.SDv(65,42),_.qZA(),_.TgZ(66,"div",10),_.TgZ(67,"select",43),_.NdJ("ngModelChange",function(i){return t.subscription.adminState=i}),_.TgZ(68,"option",44),_._uU(69,"UNLOCKED"),_.qZA(),_.TgZ(70,"option",45),_._uU(71,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(72,"div",14),_.TgZ(73,"label",46),_.SDv(74,47),_.qZA(),_.TgZ(75,"div",10),_.TgZ(76,"div",0),_.TgZ(77,"div",1),_.TgZ(78,"span",16),_.SDv(79,48),_.qZA(),_.YNc(80,w,1,2,"span",49),_.qZA(),_.TgZ(81,"div",6),_.TgZ(82,"div",50),_.TgZ(83,"span",51),_.NdJ("click",function(){return t.addChannelTemplate("EMAIL")}),_._UZ(84,"i",52),_.TgZ(85,"span"),_.SDv(86,53),_.qZA(),_.qZA(),_.TgZ(87,"span",54),_.NdJ("click",function(){return t.addChannelTemplate("REST")}),_._UZ(88,"i",52),_.TgZ(89,"span"),_.SDv(90,55),_.qZA(),_.qZA(),_.qZA(),_.YNc(91,j,4,2,"div",56),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.subscription.name)("is-valid",t.subscription.name),_.Q6J("ngModel",t.subscription.name),_.xp6(11),_.ekj("is-invalid",!t.subCategories)("is-valid",t.subCategories),_.Q6J("ngModel",t.subCategories),_.xp6(11),_.ekj("is-invalid",!t.subLabels)("is-valid",t.subLabels),_.Q6J("ngModel",t.subLabels),_.xp6(10),_.ekj("is-invalid",!t.subscription.receiver)("is-valid",t.subscription.receiver),_.Q6J("ngModel",t.subscription.receiver),_.xp6(10),_.Q6J("ngModel",t.subscription.resendInterval),_.xp6(7),_.Q6J("ngModel",t.subscription.resendLimit),_.xp6(5),_.Q6J("ngModel",t.subscription.adminState),_.xp6(10),_.ekj("border",0===t.channelTemplates.length)("border-danger",0===t.channelTemplates.length),_.xp6(3),_.Q6J("ngIf",0===t.channelTemplates.length),_.xp6(11),_.Q6J("ngForOf",t.channelTemplates))},directives:[S._Y,S.JL,S.F,S.Fj,S.Q7,S.JJ,S.On,S.wV,S.EJ,S.YN,S.Kr,M.O5,M.sg],styles:[""]}),o})();function V(o,I){if(1&o&&_._UZ(0,"span",57),2&o){const e=_.oxw();_.ekj("text-danger",0===e.channelTemplates.length)}}function __(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",60),_.TgZ(4,"span",16),_.SDv(5,61),_.qZA(),_._UZ(6,"span",62),_.qZA(),_.TgZ(7,"div",10),_.TgZ(8,"input",63),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.recipients=n}),_.qZA(),_.TgZ(9,"div",64),_.TgZ(10,"small"),_.SDv(11,65),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(12,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(13,"i",67),_._uU(14," Remove"),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit;_.xp6(8),_.ekj("is-invalid",!e.recipients)("is-valid",e.recipients),_.Q6J("ngModel",e.recipients)}}function e_(o,I){if(1&o){const e=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"form"),_.TgZ(2,"div",14),_.TgZ(3,"label",68),_.SDv(4,69),_.qZA(),_.TgZ(5,"div",10),_.TgZ(6,"select",70),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.httpMethod=n}),_.TgZ(7,"option",71),_._uU(8,"GET"),_.qZA(),_.TgZ(9,"option",72),_._uU(10,"POST"),_.qZA(),_.TgZ(11,"option",73),_._uU(12,"PUT"),_.qZA(),_.TgZ(13,"option",74),_._uU(14,"DELETE"),_.qZA(),_.TgZ(15,"option",75),_._uU(16,"PATCH"),_.qZA(),_.TgZ(17,"option",76),_._uU(18,"HEAD"),_.qZA(),_.TgZ(19,"option",77),_._uU(20,"TRACE"),_.qZA(),_.TgZ(21,"option",78),_._uU(22,"CONNECT"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(23,"div",7),_.TgZ(24,"label",79),_.SDv(25,80),_.qZA(),_.TgZ(26,"div",10),_.TgZ(27,"input",81),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.host=n}),_.qZA(),_.TgZ(28,"div",82),_.TgZ(29,"small"),_.SDv(30,83),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(31,"div",7),_.TgZ(32,"label",84),_.SDv(33,85),_.qZA(),_.TgZ(34,"div",10),_.TgZ(35,"input",86),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.port=n}),_.qZA(),_.TgZ(36,"div",87),_.TgZ(37,"small"),_.SDv(38,88),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",89),_.SDv(41,90),_.qZA(),_.TgZ(42,"div",10),_.TgZ(43,"input",91),_.NdJ("ngModelChange",function(n){return _.CHM(e),_.oxw().$implicit.path=n}),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(44,"button",66),_.NdJ("click",function(){_.CHM(e);const n=_.oxw().$implicit;return _.oxw().removeChannelTemplate(n)}),_._UZ(45,"i",92),_.TgZ(46,"span"),_.SDv(47,93),_.qZA(),_.qZA(),_.qZA()}if(2&o){const e=_.oxw().$implicit,t=_.oxw();_.xp6(6),_.Q6J("ngModel",e.httpMethod),_.xp6(21),_.ekj("is-invalid",!e.host)("is-valid",e.host),_.Q6J("ngModel",e.host),_.xp6(8),_.ekj("is-invalid",!t.isPureIntegerType(e.port))("is-valid",t.isPureIntegerType(e.port)),_.Q6J("ngModel",e.port),_.xp6(8),_.Q6J("ngModel",e.path)}}function t_(o,I){if(1&o&&(_.TgZ(0,"div",58),_.TgZ(1,"div",6),_.YNc(2,__,15,5,"div",59),_.YNc(3,e_,48,12,"div",59),_.qZA(),_.qZA()),2&o){const e=I.$implicit;_.xp6(2),_.Q6J("ngIf","EMAIL"===e.type),_.xp6(1),_.Q6J("ngIf","REST"===e.type)}}let n_=(()=>{class o{constructor(e,t,n,i,a){this.notiSvc=e,this.msgSvc=t,this.errSvc=n,this.route=i,this.router=a,this.channelTemplates=[],this.subCategories="",this.subLabels="",this.subscription={}}ngOnInit(){this.renderPopoverComponent(),this.route.queryParams.subscribe(e=>{e.subName&&this.notiSvc.findOneSubscriptionByName(e.subName).subscribe(t=>{this.subscription=t.subscription,this.subCategories=this.subscription.categories.toString(),this.subLabels=this.subscription.labels.toString(),this.channelTemplates=this.subscription.channels})})}renderPopoverComponent(){setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},150)}update(){this.subscription.categories=this.subCategories.split(","),this.subscription.labels=this.subLabels.split(","),this.channelTemplates.forEach((e,t)=>{if("EMAIL"===e.type){let n=e.recipients.toString();e.recipients=n.split(",")}}),this.subscription.channels=this.channelTemplates,this.notiSvc.updateOneSubscription(this.subscription).subscribe(e=>{this.errSvc.handleErrorForAPI(e)||(this.msgSvc.success("Update subscription",`Name: ${this.subscription.name}`),this.router.navigate(["../subscription-list"],{relativeTo:this.route}))})}addChannelTemplate(e){switch(e){case"REST":this.addRESTAddr();break;case"EMAIL":this.addEMAILAddr()}}removeChannelTemplate(e){let t=this.channelTemplates.indexOf(e);-1!==t&&(this.channelTemplates.splice(t,1),this.renderPopoverComponent())}addRESTAddr(){this.channelTemplates.push({type:"REST",httpMethod:"GET"}),this.renderPopoverComponent()}addEMAILAddr(){this.channelTemplates.push({type:"EMAIL"}),this.renderPopoverComponent()}isPureIntegerType(e){return!isNaN(e)&&parseFloat(e)===parseInt(e)}validate(){let e=!1;return 0!==this.channelTemplates.length&&this.channelTemplates.forEach((t,n)=>{("REST"!==t.type||""!==t.path&&t.port)&&("EMAIL"!==t.type||t.recipients)||(e=!0)}),!(!e&&this.subscription.name&&this.subCategories&&this.subLabels&&this.subscription.receiver&&0!==this.channelTemplates.length)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(B.T),_.Y36(L.e),_.Y36(q.T),_.Y36(d.gz),_.Y36(d.F0))},o.\u0275cmp=_.Xpm({type:o,selectors:[["app-edit-subscription"]],decls:92,vars:30,consts:function(){let I,e,t,n,i,a,A,r,C,c,O,g,E,u,p,f,P,U,R,G,b,s,m,Z,D,h;return I="\u7F16\u8F91\u8BA2\u9605",e="\u4FDD\u5B58",t="\u540D\u5B57",n="\u8BA2\u9605\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",i="\u7C7B\u522B",a="\u8BA2\u9605\u7C7B\u522B\u4E0D\u80FD\u4E3A\u7A7A\uFF01",A="\u6807\u7B7E",r="\u8BA2\u9605label\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A\uFF01",C="\u63A5\u6536\u8005",c="\u8BA2\u9605\u63A5\u6536\u8005\u4E0D\u80FD\u4E3A\u7A7A\uFF01",O="\u91CD\u53D1\u95F4\u9694",g="\u91CD\u53D1\u9650\u5236",E="\u7BA1\u7406\u72B6\u6001",u="\u901A\u9053",p="\u6DFB\u52A0\u901A\u9053\u6A21\u677F",f="EMAIL \u901A\u9053\u6A21\u677F",P="REST \u901A\u9053\u6A21\u677F",U="Email\u63A5\u6536\u8005",R="email\u5730\u5740\u7AEF\u53E3\u4E0D\u80FD\u4E3A\u7A7A",G="HttpMethod",b="Host",s="REST\u5730\u5740\u4E3B\u673A\u4E0D\u80FD\u4E3A\u7A7A\uFF01",m="Port",Z="REST\u5730\u5740\u7AEF\u53E3\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u4E14\u53EA\u80FD\u662F\u6570\u5B57\uFF01",D="Path",h="\u5220\u9664",[[1,"card"],[1,"card-header"],[1,"fa","fa-edit","text-danger","mr-2"],I,[1,"btn","btn-sm","btn-success","float-right",3,"disabled","click"],e,[1,"card-body"],[1,"form-group","row","has-validation"],["for","subscriptionName","required","",1,"col-md-2","col-form-label"],t,[1,"col-md-10"],["type","text","id","validationSubscriptionName","name","subscriptionName","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionNameFeedback",1,"invalid-feedback"],n,[1,"form-group","row"],["for","subscriptionStart",1,"col-md-2","col-form-label"],[1,"mr-2"],i,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Links the subscription to one or more categories of notification. Multiple categories are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],[1,"input-group","mb-3"],["type","text","name","subscriptionStart","required","",1,"form-control",3,"ngModel","ngModelChange"],a,["for","subscriptionLabels",1,"col-md-2","col-form-label"],A,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Arbitrary labels that can be applied to the subscription for further categorization or identification. Multiple labels are separated by commas, such as: xxx,yyy,zzz",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionLabels",1,"form-control",3,"ngModel","ngModelChange"],r,["for","subscriptionReceiver",1,"col-md-2","col-form-label"],C,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Receiver indicates the name of the party interested in the notification.",1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionReceiver","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","validationSubscriptionReceiverFeedback",1,"invalid-feedback"],c,["for","subscriptionResendInterval",1,"col-md-2","col-form-label"],O,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content",'Subscription ResendInterval indicates how often the specific resource needs to be polled. It represents as a duration string. The format of this field is to be an unsigned integer followed by a unit which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg"],["type","text","name","subscriptionResendInterval","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionResendLimit",1,"col-md-2","col-form-label"],g,["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Pure integer! Subscription ResendLimit indicates the retry limit for attempts to send notifications.",1,"fa","fa-question-circle-o","fa-lg"],["type","number","name","subscriptionResendLimit","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","subscriptionAdminState",1,"col-md-2","col-form-label"],E,["name","subscriptionAdminState",1,"custom-select",3,"ngModel","ngModelChange"],["value","UNLOCKED"],["value","LOCKED"],["for","subscriptionChannels",1,"col-md-2","col-form-label"],u,p,["class","fa fa-question-circle-o fa-lg","role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",3,"text-danger",4,"ngIf"],[1,"mb-3"],["role","button",1,"badge","badge-secondary","mr-2",3,"click"],[1,"fa","fa-plus-circle","mr-1"],f,["role","button",1,"badge","badge-secondary",3,"click"],P,["class","card mb-3",4,"ngFor","ngForOf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","At least one channel must be created",1,"fa","fa-question-circle-o","fa-lg"],[1,"card","mb-3"],[4,"ngIf"],["for","emailRecipients",1,"col-md-2","col-form-label"],U,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","format tips","data-content","Multiple email addresses are separated by commas, such as: xxx@xxx.com, yyy@yyy.com",1,"fa","fa-question-circle-o","fa-lg"],["type","text","id","emailRecipients","name","emailRecipients",1,"form-control",3,"ngModel","ngModelChange"],["id","emailRecipientsFeedback",1,"invalid-feedback"],R,[1,"btn","btn-danger","btn-sm",3,"click"],[1,"fa","fa-trash"],["for","HttpMethod","required","",1,"col-md-2","col-form-label"],G,["type","text","name","httpMethod",1,"custom-select",3,"ngModel","ngModelChange"],["value","GET"],["value","POST"],["value","PUT"],["value","DELETE"],["value","PATCH"],["value","HEAD"],["value","TRACE"],["value","CONNECT"],["for","addressHostREST","required","",1,"col-md-2","col-form-label"],b,["type","text","id","addressHostREST","name","addressHost","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressHostRESTFeedback",1,"invalid-feedback"],s,["for","addressPortREST","required","",1,"col-md-2","col-form-label"],m,["type","number","id","addressPortREST","name","addressPort","placeholder","Pure integer !","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","addressPortRESTFeedback",1,"invalid-feedback"],Z,["for","addressPath","required","",1,"col-md-2","col-form-label"],D,["type","text","id","addressPath","name","addressPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"fa","fa-trash","mr-1"],h]},template:function(e,t){1&e&&(_.TgZ(0,"div",0),_.TgZ(1,"div",1),_._UZ(2,"i",2),_.TgZ(3,"span"),_.SDv(4,3),_.qZA(),_.TgZ(5,"button",4),_.NdJ("click",function(){return t.update()}),_.SDv(6,5),_.qZA(),_.qZA(),_.TgZ(7,"div",6),_.TgZ(8,"form"),_.TgZ(9,"div",7),_.TgZ(10,"label",8),_.SDv(11,9),_.qZA(),_.TgZ(12,"div",10),_.TgZ(13,"input",11),_.NdJ("ngModelChange",function(i){return t.subscription.name=i}),_.qZA(),_.TgZ(14,"div",12),_.TgZ(15,"small"),_.SDv(16,13),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(17,"div",14),_.TgZ(18,"label",15),_.TgZ(19,"span",16),_.SDv(20,17),_.qZA(),_._UZ(21,"span",18),_.qZA(),_.TgZ(22,"div",10),_.TgZ(23,"div",19),_.TgZ(24,"input",20),_.NdJ("ngModelChange",function(i){return t.subCategories=i}),_.qZA(),_.TgZ(25,"div",12),_.TgZ(26,"small"),_.SDv(27,21),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(28,"div",14),_.TgZ(29,"label",22),_.TgZ(30,"span",16),_.SDv(31,23),_.qZA(),_._UZ(32,"span",24),_.qZA(),_.TgZ(33,"div",10),_.TgZ(34,"div",19),_.TgZ(35,"input",25),_.NdJ("ngModelChange",function(i){return t.subLabels=i}),_.qZA(),_.TgZ(36,"div",12),_.TgZ(37,"small"),_.SDv(38,26),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(39,"div",14),_.TgZ(40,"label",27),_.TgZ(41,"span",16),_.SDv(42,28),_.qZA(),_._UZ(43,"span",29),_.qZA(),_.TgZ(44,"div",10),_.TgZ(45,"input",30),_.NdJ("ngModelChange",function(i){return t.subscription.receiver=i}),_.qZA(),_.TgZ(46,"div",31),_.TgZ(47,"small"),_.SDv(48,32),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(49,"div",14),_.TgZ(50,"label",33),_.TgZ(51,"span",16),_.SDv(52,34),_.qZA(),_._UZ(53,"span",35),_.qZA(),_.TgZ(54,"div",10),_.TgZ(55,"input",36),_.NdJ("ngModelChange",function(i){return t.subscription.resendInterval=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(56,"div",14),_.TgZ(57,"label",37),_.TgZ(58,"span",16),_.SDv(59,38),_.qZA(),_._UZ(60,"span",39),_.qZA(),_.TgZ(61,"div",10),_.TgZ(62,"input",40),_.NdJ("ngModelChange",function(i){return t.subscription.resendLimit=i}),_.qZA(),_.qZA(),_.qZA(),_.TgZ(63,"div",14),_.TgZ(64,"label",41),_.SDv(65,42),_.qZA(),_.TgZ(66,"div",10),_.TgZ(67,"select",43),_.NdJ("ngModelChange",function(i){return t.subscription.adminState=i}),_.TgZ(68,"option",44),_._uU(69,"UNLOCKED"),_.qZA(),_.TgZ(70,"option",45),_._uU(71,"LOCKED"),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.TgZ(72,"div",14),_.TgZ(73,"label",46),_.SDv(74,47),_.qZA(),_.TgZ(75,"div",10),_.TgZ(76,"div",0),_.TgZ(77,"div",1),_.TgZ(78,"span",16),_.SDv(79,48),_.qZA(),_.YNc(80,V,1,2,"span",49),_.qZA(),_.TgZ(81,"div",6),_.TgZ(82,"div",50),_.TgZ(83,"span",51),_.NdJ("click",function(){return t.addChannelTemplate("EMAIL")}),_._UZ(84,"i",52),_.TgZ(85,"span"),_.SDv(86,53),_.qZA(),_.qZA(),_.TgZ(87,"span",54),_.NdJ("click",function(){return t.addChannelTemplate("REST")}),_._UZ(88,"i",52),_.TgZ(89,"span"),_.SDv(90,55),_.qZA(),_.qZA(),_.qZA(),_.YNc(91,t_,4,2,"div",56),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&e&&(_.xp6(5),_.Q6J("disabled",t.validate()),_.xp6(8),_.ekj("is-invalid",!t.subscription.name)("is-valid",t.subscription.name),_.Q6J("ngModel",t.subscription.name),_.xp6(11),_.ekj("is-invalid",!t.subCategories)("is-valid",t.subCategories),_.Q6J("ngModel",t.subCategories),_.xp6(11),_.ekj("is-invalid",!t.subLabels)("is-valid",t.subLabels),_.Q6J("ngModel",t.subLabels),_.xp6(10),_.ekj("is-invalid",!t.subscription.receiver)("is-valid",t.subscription.receiver),_.Q6J("ngModel",t.subscription.receiver),_.xp6(10),_.Q6J("ngModel",t.subscription.resendInterval),_.xp6(7),_.Q6J("ngModel",t.subscription.resendLimit),_.xp6(5),_.Q6J("ngModel",t.subscription.adminState),_.xp6(10),_.ekj("border",0===t.channelTemplates.length)("border-danger",0===t.channelTemplates.length),_.xp6(3),_.Q6J("ngIf",0===t.channelTemplates.length),_.xp6(11),_.Q6J("ngForOf",t.channelTemplates))},directives:[S._Y,S.JL,S.F,S.Fj,S.Q7,S.JJ,S.On,S.wV,S.EJ,S.YN,S.Kr,M.O5,M.sg],styles:[""]}),o})();var i_=l(8253),o_=l(1964),I_=l(4294),T_=l(5894),S_=l(7216);let X=(()=>{class o{constructor(e,t){this.router=e,this.notiSvc=t}canActivate(e,t){return this.checkAvailable(e,t)}canActivateChild(e,t){return this.canActivate(e,t)}checkAvailable(e,t){return this.notiSvc.ping().pipe((0,I_.q)(1),(0,T_.K)(n=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"notification",routerPath:`/${t.url.split("/")[1]}`}})),(0,S_.z)(()=>(0,o_.of)(!0)))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(d.F0),_.LFG(B.T))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const a_=[{path:"",component:y,canActivate:[i_.a,X],canActivateChild:[X],children:[{path:"",redirectTo:"notification-center",pathMatch:"full"},{path:"notification-center",component:J,children:[{path:"",component:W}]},{path:"subscription-center",component:k,children:[{path:"",redirectTo:"subscription-list",pathMatch:"full"},{path:"subscription-list",component:z},{path:"add-subscription",component:K},{path:"edit-subscription",component:n_}]}]}];let s_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[d.Bz.forChild(a_)],d.Bz]}),o})(),N_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[M.ez,S.u5,s_]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/707.65d94ee77cc572c9cd8c.js b/cmd/edgex-ui-server/static/web/zh/707.65d94ee77cc572c9cd8c.js deleted file mode 100644 index d81d616e..00000000 --- a/cmd/edgex-ui-server/static/web/zh/707.65d94ee77cc572c9cd8c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[707],{6342:(Z,h,s)=>{s.d(h,{Y:()=>u});var e=s(8583),r=s(3092),m=s(9502),l=s(476);const _=[];let g=(()=>{class a{}return a.\u0275fac=function(p){return new(p||a)},a.\u0275mod=l.oAB({type:a}),a.\u0275inj=l.cJS({imports:[[m.Bz.forChild(_)],m.Bz]}),a})(),u=(()=>{class a{}return a.\u0275fac=function(p){return new(p||a)},a.\u0275mod=l.oAB({type:a}),a.\u0275inj=l.cJS({imports:[[e.ez,r.u5,r.UX,g]]}),a})()},9549:(Z,h,s)=>{s.d(h,{P:()=>q});var e=s(476),r=s(8583),m=s(3092),l=s(7982);function _(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"div",24),e.TgZ(3,"input",25),e.NdJ("click",function(n){const v=e.CHM(t).$implicit;return e.oxw().selectOne(n,v)}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"td",26),e._uU(5),e.qZA(),e.TgZ(6,"td",26),e._uU(7),e.qZA(),e.TgZ(8,"td"),e.TgZ(9,"span",27),e.NdJ("click",function(){const c=e.CHM(t).$implicit;return e.oxw().checkOne(c)}),e._uU(10,"coreCommands"),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=d.$implicit,i=e.oxw();e.ekj("table-active",i.isChecked(t)),e.xp6(3),e.Q6J("checked",i.isChecked(t)),e.xp6(2),e.Oqu(t.deviceName),e.xp6(2),e.Oqu(t.profileName)}}let g=(()=>{class o{constructor(t){this.cmdSvc=t,this.deviceCoreCmdList=[],this.deviceCoreCmdSelectedEvent=new e.vpe,this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit}ngOnInit(){this.findAllDeviceCoreCmdsPagination()}findAllDeviceCoreCmdsPagination(){this.cmdSvc.allDeviceCoreCommandsPagination(this.pageOffset,this.pageLimit).subscribe(t=>{this.deviceCoreCmdList=t.deviceCoreCommands})}isChecked(t){var i;return(null===(i=this.deviceCoreCmdSelected)||void 0===i?void 0:i.deviceName)===t.deviceName}selectOne(t,i){this.deviceCoreCmdSelected=t.target.checked?i:void 0,this.deviceCoreCmdSelectedEvent.emit(this.deviceCoreCmdSelected)}checkOne(t){this.deviceCoreCmdSelected=t,this.deviceCoreCmdSelectedEvent.emit(this.deviceCoreCmdSelected)}onPageSelected(){this.resetPagination(),this.setPagination(),this.findAllDeviceCoreCmdsPagination()}prePage(){this.setPagination(-1),this.findAllDeviceCoreCmdsPagination()}nextPage(){this.setPagination(1),this.findAllDeviceCoreCmdsPagination()}setPagination(t){1===t?this.pagination+=1:-1===t&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(l.V))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-device-core-command-list"]],inputs:{deviceCoreCmdSelected:"deviceCoreCmdSelected"},outputs:{deviceCoreCmdSelectedEvent:"deviceCoreCmdSelectedEvent"},decls:41,vars:4,consts:[[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger"],[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"custom-select",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left"],[1,"page-item"],[1,"fa","fa-angle-double-right"],[1,"form-group","form-check"],["type","checkbox","role","button",1,"form-check-input",3,"checked","click"],[1,"user-select-all"],["role","button",1,"badge","badge-primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e._uU(3," Device Core Command List "),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"div",4),e.TgZ(6,"table",5),e.TgZ(7,"thead",6),e.TgZ(8,"tr"),e.TgZ(9,"th",7),e._uU(10,"#"),e.qZA(),e.TgZ(11,"th",7),e._uU(12,"Device"),e.qZA(),e.TgZ(13,"th",7),e._uU(14,"DeviceProfile"),e.qZA(),e.TgZ(15,"th",7),e._uU(16,"AssociatedCommands"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"tbody"),e.YNc(18,_,11,5,"tr",8),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",9),e.TgZ(20,"nav",10),e.TgZ(21,"ul",11),e.TgZ(22,"li",12),e.TgZ(23,"span",13),e._uU(24,"items per page"),e.qZA(),e.qZA(),e.TgZ(25,"li",14),e.TgZ(26,"select",15),e.NdJ("ngModelChange",function(c){return i.pageLimit=c})("ngModelChange",function(){return i.onPageSelected()}),e.TgZ(27,"option",16),e._uU(28,"5"),e.qZA(),e.TgZ(29,"option",17),e._uU(30,"10"),e.qZA(),e.TgZ(31,"option",18),e._uU(32,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"li",19),e.TgZ(34,"button",20),e.NdJ("click",function(){return i.prePage()}),e._UZ(35,"i",21),e._uU(36," Previous"),e.qZA(),e.qZA(),e.TgZ(37,"li",22),e.TgZ(38,"button",20),e.NdJ("click",function(){return i.nextPage()}),e._uU(39,"Next "),e._UZ(40,"i",23),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(18),e.Q6J("ngForOf",i.deviceCoreCmdList),e.xp6(8),e.Q6J("ngModel",i.pageLimit),e.xp6(8),e.Q6J("disabled",1===i.pagination),e.xp6(4),e.Q6J("disabled",i.pageLimit>i.deviceCoreCmdList.length))},directives:[r.sg,m.EJ,m.JJ,m.On,m.YN,m.Kr],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),o})();function u(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"input",17),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(3).httpMethod=n})("click",function(n){return e.CHM(t),e.oxw(3).onMethodChecked(n,"GET")}),e.qZA()}if(2&o){const t=e.oxw(2),i=t.$implicit,n=t.index,c=e.oxw();e.hYB("id","get-",i,"-",n,""),e.Q6J("checked",c.isMethodChecked("GET"))("ngModel",c.httpMethod)}}function a(o,d){if(1&o&&(e.TgZ(0,"div",13),e.TgZ(1,"span",14),e.YNc(2,u,1,4,"input",15),e.TgZ(3,"label",16),e._uU(4,"get"),e.qZA(),e.qZA(),e.qZA()),2&o){const t=e.oxw(),i=t.$implicit,n=t.index,c=e.oxw();e.xp6(2),e.Q6J("ngIf",c.isChecked(i.name)),e.xp6(1),e.hYB("for","get-",i,"-",n,"")}}function C(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"input",19),e.NdJ("ngModelChange",function(n){return e.CHM(t),e.oxw(3).httpMethod=n})("click",function(n){return e.CHM(t),e.oxw(3).onMethodChecked(n,"PUT")}),e.qZA()}if(2&o){const t=e.oxw(2),i=t.$implicit,n=t.index,c=e.oxw();e.hYB("id","set-",i,"-",n,""),e.Q6J("checked",c.isMethodChecked("PUT"))("ngModel",c.httpMethod)}}function p(o,d){if(1&o&&(e.TgZ(0,"div",13),e.TgZ(1,"span",14),e.YNc(2,C,1,4,"input",18),e.TgZ(3,"label",16),e._uU(4,"set"),e.qZA(),e.qZA(),e.qZA()),2&o){const t=e.oxw(),i=t.$implicit,n=t.index,c=e.oxw();e.xp6(2),e.Q6J("ngIf",c.isChecked(i.name)),e.xp6(1),e.hYB("for","set-",i,"-",n,"")}}function f(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",10),e.NdJ("click",function(n){const v=e.CHM(t).$implicit;return e.oxw().selectOne(n,v)}),e.qZA(),e.qZA(),e.TgZ(3,"td",11),e._uU(4),e.qZA(),e.TgZ(5,"td"),e.TgZ(6,"div"),e.YNc(7,a,5,3,"div",12),e.YNc(8,p,5,3,"div",12),e.qZA(),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.qZA()}if(2&o){const t=d.$implicit,i=e.oxw();e.ekj("table-active",i.isChecked(t.name)),e.xp6(2),e.Q6J("checked",i.isChecked(t.name)),e.xp6(2),e.Oqu(t.name),e.xp6(3),e.Q6J("ngIf",t.get),e.xp6(1),e.Q6J("ngIf",t.set),e.xp6(2),e.Oqu(t.url),e.xp6(2),e.Oqu(t.path)}}let T=(()=>{class o{constructor(t){this.cmdSvc=t,this.singleCoreCmdSelectedEvent=new e.vpe,this.deviceAssociatedCoreCommandsList=[],this.httpMethod="",this.coreCmdMethodEvent=new e.vpe}ngOnInit(){this.cmdSvc.findDeviceAssociatedCommnadsByDeviceName(this.deviceName).subscribe(t=>{this.deviceAssociatedCoreCommandsList=t.deviceCoreCommand.coreCommands})}onMethodChecked(t,i){this.httpMethod=t.target.checked?i:"",this.coreCmdMethodEvent.emit(this.httpMethod)}isChecked(t){var i;return(null===(i=this.coreCmdSelected)||void 0===i?void 0:i.name)===t}isMethodChecked(t){return this.httpMethod===t}radioUnchecked(t){return t||!1}selectOne(t,i){this.coreCmdSelected=t.target.checked?i:{},this.singleCoreCmdSelectedEvent.emit(this.coreCmdSelected),this.coreCmdMethodEvent.emit(void 0)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(l.V))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-device-associated-core-command-list"]],inputs:{deviceName:"deviceName",coreCmdSelected:"coreCmdSelected",httpMethod:"httpMethod"},outputs:{singleCoreCmdSelectedEvent:"singleCoreCmdSelectedEvent",coreCmdMethodEvent:"coreCmdMethodEvent"},decls:24,vars:2,consts:[[1,"card","border-0"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],[1,"text-info"],[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],[3,"table-active",4,"ngFor","ngForOf"],["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"],["class","form-check form-check-inline",4,"ngIf"],[1,"form-check","form-check-inline"],[1,"badge","badge-secondary"],["class","form-check-input align-middle","type","radio","name","cmdMethod","value","GET",3,"id","checked","ngModel","ngModelChange","click",4,"ngIf"],[1,"form-check-label","align-middle",3,"for"],["type","radio","name","cmdMethod","value","GET",1,"form-check-input","align-middle",3,"id","checked","ngModel","ngModelChange","click"],["class","form-check-input align-middle","type","radio","name","cmdMethod","value","PUT",3,"id","checked","ngModel","ngModelChange","click",4,"ngIf"],["type","radio","name","cmdMethod","value","PUT",1,"form-check-input","align-middle",3,"id","checked","ngModel","ngModelChange","click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.TgZ(4,"span",3),e._uU(5),e.qZA(),e._uU(6," Associated Commands List"),e.qZA(),e.qZA(),e.TgZ(7,"div",4),e.TgZ(8,"div",5),e.TgZ(9,"table",6),e.TgZ(10,"thead",7),e.TgZ(11,"tr"),e.TgZ(12,"th",8),e._uU(13,"#"),e.qZA(),e.TgZ(14,"th",8),e._uU(15,"Name"),e.qZA(),e.TgZ(16,"th",8),e._uU(17,"Method"),e.qZA(),e.TgZ(18,"th",8),e._uU(19,"URL"),e.qZA(),e.TgZ(20,"th",8),e._uU(21,"Path"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"tbody"),e.YNc(23,f,13,8,"tr",9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(i.deviceName),e.xp6(18),e.Q6J("ngForOf",i.deviceAssociatedCoreCommandsList))},directives:[r.sg,r.O5,m._,m.Fj,m.JJ,m.On],styles:[""]}),o})();function A(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(n){return e.CHM(t),e.oxw().close(n)}),e.qZA()}}function b(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"nav",17),e.TgZ(2,"ol",18),e.TgZ(3,"li",19),e.TgZ(4,"a",20),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).backtoDeviceCoreCommandList()}),e._uU(5,"DeviceCoreCommandList"),e.qZA(),e.qZA(),e.TgZ(6,"li",21),e._uU(7),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(7),e.Oqu(t.deviceName)}}function x(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-device-associated-core-command-list",22),e.NdJ("coreCmdMethodEvent",function(n){return e.CHM(t),e.oxw(2).onCmdMethodSelected(n)})("singleCoreCmdSelectedEvent",function(n){return e.CHM(t),e.oxw(2).onCoreCmdSelected(n)}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("coreCmdSelected",t.coreCmdSelected)("deviceName",t.deviceName)("httpMethod",t.httpMethod)}}function M(o,d){if(1&o){const t=e.EpF();e.TgZ(0,"div",10),e.TgZ(1,"div",11),e.YNc(2,b,8,1,"div",12),e.TgZ(3,"div",13),e.TgZ(4,"div"),e.TgZ(5,"app-device-core-command-list",14),e.NdJ("deviceCoreCmdSelectedEvent",function(n){return e.CHM(t),e.oxw().onDeviceCoreCmdSelected(n)}),e.qZA(),e.qZA(),e.YNc(6,x,2,3,"div",15),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",!t.deviceCoreCmdListVisible),e.xp6(2),e.Udp("display",t.deviceCoreCmdListVisible?"":"none"),e.xp6(1),e.Q6J("deviceCoreCmdSelected",t.deviceCoreCmdSelected),e.xp6(1),e.Q6J("ngIf",!t.deviceCoreCmdListVisible)}}let q=(()=>{class o{constructor(){this.visible=!1,this.validate=!1,this.deviceName="",this.httpMethod="",this.commandName="",this.commandPath="",this.commandSelectedEvent=new e.vpe,this.cmdMethodEvent=new e.vpe,this.deviceCoreCmdListVisible=!0,this.coreCmdSelected={}}ngOnInit(){this.deviceCoreCmdSelected={deviceName:this.deviceName},this.coreCmdSelected={name:this.commandName,path:this.commandPath}}onDeviceCoreCmdSelected(t){if(!t)return this.deviceCoreCmdSelected=t,this.httpMethod="",void(this.coreCmdSelected={});this.deviceCoreCmdSelected=t,this.deviceName=this.deviceCoreCmdSelected.deviceName,this.deviceCoreCmdListVisible=!1}onCmdMethodSelected(t){this.httpMethod=t,this.cmdMethodEvent.emit(this.httpMethod)}onCoreCmdSelected(t){this.coreCmdSelected=t,this.commandSelectedEvent.emit(this.coreCmdSelected)}backtoDeviceCoreCommandList(){this.deviceCoreCmdListVisible=!0}toggle(t){t.stopImmediatePropagation(),this.visible=!this.visible}close(t){t.stopPropagation(),this.visible=!1}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-device-core-command-combo-list"]],inputs:{validate:"validate",deviceName:"deviceName",httpMethod:"httpMethod",commandName:"commandName",commandPath:"commandPath",coreCmdSelected:"coreCmdSelected"},outputs:{commandSelectedEvent:"commandSelectedEvent",cmdMethodEvent:"cmdMethodEvent"},decls:11,vars:7,consts:[["class","cmd-combo-shielder",3,"click",4,"ngIf"],[1,"cmd-combo"],[1,"input-group","has-validation",3,"click"],["type","text","name","coreCmdSelected","readonly","readonly","maxlength","0","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["id","validationCoreCmdPathFeedback",1,"invalid-feedback"],["class","cmd-combo-body shadow rounded",4,"ngIf"],[1,"cmd-combo-shielder",3,"click"],[1,"cmd-combo-body","shadow","rounded"],[1,"card"],["class","card-header",4,"ngIf"],[1,"card-body","p-0"],[3,"deviceCoreCmdSelected","deviceCoreCmdSelectedEvent"],[4,"ngIf"],[1,"card-header"],["aria-label","breadcrumb",1,"m-0","p-0"],[1,"breadcrumb","p-0","m-0","bg-light"],[1,"breadcrumb-item","text-primary"],["role","button",3,"click"],["aria-current","page",1,"breadcrumb-item","active"],[3,"coreCmdSelected","deviceName","httpMethod","coreCmdMethodEvent","singleCoreCmdSelectedEvent"]],template:function(t,i){1&t&&(e.YNc(0,A,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("click",function(c){return i.toggle(c)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(c){return i.coreCmdSelected.path=c}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.TgZ(7,"div",7),e.TgZ(8,"small"),e._uU(9,"the command name and method can't be empty!"),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,M,7,5,"div",8),e.qZA()),2&t&&(e.Q6J("ngIf",i.visible),e.xp6(3),e.ekj("is-invalid",(!i.coreCmdSelected.path||!i.httpMethod)&&i.validate)("is-valid",i.coreCmdSelected.path&&i.httpMethod&&i.validate),e.Q6J("ngModel",i.coreCmdSelected.path),e.xp6(7),e.Q6J("ngIf",i.visible))},directives:[r.O5,m.Fj,m.nD,m.Q7,m.JJ,m.On,g,T],styles:[".cmd-combo[_ngcontent-%COMP%]{position:relative;right:auto}.cmd-combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:101}.cmd-combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/753.17a3f2b06f5ffbdb9f25.js b/cmd/edgex-ui-server/static/web/zh/753.29ab49e72766d4c1702a.js similarity index 50% rename from cmd/edgex-ui-server/static/web/zh/753.17a3f2b06f5ffbdb9f25.js rename to cmd/edgex-ui-server/static/web/zh/753.29ab49e72766d4c1702a.js index 06fa78f8..57813602 100644 --- a/cmd/edgex-ui-server/static/web/zh/753.17a3f2b06f5ffbdb9f25.js +++ b/cmd/edgex-ui-server/static/web/zh/753.29ab49e72766d4c1702a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[753],{1302:(P,T,c)=>{c.d(T,{h:()=>N});var e=c(476),f=c(2437),g=c(8583),S=c(3092);function v(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(n){return e.CHM(_),e.oxw().close(n)}),e.qZA()}}function D(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"input",47),e.NdJ("click",function(n){return e.CHM(_),e.oxw(2).onSelectAll(n)}),e.qZA()}if(2&i){const _=e.oxw(2);e.Q6J("checked",_.isCheckedAll())}}function C(i,s){if(1&i&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.adminState)}}function A(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.adminState)}}function o(i,s){if(1&i&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function l(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function r(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function E(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",47),e.NdJ("click",function(n){const p=e.CHM(_).$implicit;return e.oxw(2).onSelectOne(n,p.name)}),e.qZA(),e.qZA(),e.TgZ(3,"td",48),e._uU(4),e.qZA(),e.TgZ(5,"td",48),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e.TgZ(12,"span",49),e.YNc(13,C,2,1,"span",50),e.YNc(14,A,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(15,"td",52),e.TgZ(16,"span",49),e.YNc(17,o,2,1,"span",50),e.YNc(18,l,2,1,"span",53),e.YNc(19,r,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(20,"td"),e.TgZ(21,"span",54),e._uU(22),e.qZA(),e.qZA(),e.TgZ(23,"td"),e.TgZ(24,"span",54),e._uU(25),e.qZA(),e.qZA(),e.qZA()}if(2&i){const _=s.$implicit,t=e.oxw(2);e.ekj("table-active",t.isChecked(_.name)),e.xp6(2),e.Q6J("checked",t.isChecked(_.name)),e.xp6(2),e.Oqu(_.id),e.xp6(2),e.Oqu(_.name),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.labels),e.xp6(2),e.Q6J("ngSwitch",_.adminState),e.xp6(1),e.Q6J("ngSwitchCase","UNLOCKED"),e.xp6(3),e.Q6J("ngSwitch",_.operatingState),e.xp6(1),e.Q6J("ngSwitchCase","UP"),e.xp6(1),e.Q6J("ngSwitchCase","DOWN"),e.xp6(4),e.Oqu(_.profileName),e.xp6(3),e.Oqu(_.serviceName)}}function b(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e.TgZ(2,"div",11),e._UZ(3,"i",12),e.TgZ(4,"span"),e.SDv(5,13),e.qZA(),e.qZA(),e.TgZ(6,"div",14),e.TgZ(7,"div",15),e.TgZ(8,"table",16),e.TgZ(9,"thead",17),e.TgZ(10,"tr"),e.TgZ(11,"th",18),e.YNc(12,D,1,1,"input",19),e.qZA(),e.TgZ(13,"th",18),e.SDv(14,20),e.qZA(),e.TgZ(15,"th",18),e.SDv(16,21),e.qZA(),e.TgZ(17,"th",18),e.SDv(18,22),e.qZA(),e.TgZ(19,"th",18),e.SDv(20,23),e.qZA(),e.TgZ(21,"th",18),e.SDv(22,24),e.qZA(),e.TgZ(23,"th",18),e.SDv(24,25),e.qZA(),e.TgZ(25,"th",18),e.SDv(26,26),e.qZA(),e.TgZ(27,"th",18),e.SDv(28,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"tbody"),e.YNc(30,E,26,14,"tr",28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",29),e.TgZ(32,"nav",30),e.TgZ(33,"ul",31),e.TgZ(34,"li",32),e.TgZ(35,"span",33),e.SDv(36,34),e.qZA(),e.qZA(),e.TgZ(37,"li",35),e.TgZ(38,"select",36),e.NdJ("ngModelChange",function(n){return e.CHM(_),e.oxw().pageLimit=n})("ngModelChange",function(){return e.CHM(_),e.oxw().onPageSelected()}),e.TgZ(39,"option",37),e._uU(40,"5"),e.qZA(),e.TgZ(41,"option",38),e._uU(42,"10"),e.qZA(),e.TgZ(43,"option",39),e._uU(44,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(45,"li",40),e.TgZ(46,"button",41),e.NdJ("click",function(){return e.CHM(_),e.oxw().prePage()}),e._UZ(47,"i",42),e.TgZ(48,"span"),e.SDv(49,43),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"li",44),e.TgZ(51,"button",41),e.NdJ("click",function(){return e.CHM(_),e.oxw().nextPage()}),e.TgZ(52,"span"),e.SDv(53,45),e.qZA(),e._UZ(54,"i",46),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const _=e.oxw();e.xp6(12),e.Q6J("ngIf",!_.singleSelectionMode),e.xp6(18),e.Q6J("ngForOf",_.deviceList),e.xp6(8),e.Q6J("ngModel",_.pageLimit),e.xp6(8),e.Q6J("disabled",1===_.pagination),e.xp6(5),e.Q6J("disabled",_.pageLimit>_.deviceList.length)}}let N=(()=>{class i{constructor(_){this.metaSvc=_,this.deviceList=[],this.deviceNamesSelectedStr="",this._deviceSelected=[],this.deviceSelectedChange=new e.vpe,this.singleDeviceSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this._singleDeviceSelected=""}get deviceSelected(){return this._deviceSelected}set deviceSelected(_){_.forEach((t,n)=>{_[n]=t.trim()}),this._deviceSelected=_,this.deviceNamesSelectedStr=this._deviceSelected.join(",")}get singleDeviceSelected(){return this._singleDeviceSelected}set singleDeviceSelected(_){this._singleDeviceSelected=_?_.trim():"",this.deviceNamesSelectedStr=this._singleDeviceSelected}ngOnInit(){this.getDeviceListPagination()}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(_=>{this.deviceList=_.devices})}onSelectAll(_){this.deviceList.forEach(_.target.checked?n=>{this.deviceSelected.includes(n.name)||this.deviceSelected.push(n.name)}:n=>{this.deviceSelected.includes(n.name)&&this.deviceSelected.splice(this.deviceSelected.indexOf(n.name),1)}),this.deviceSelectedChange.emit(this.deviceSelected),this.deviceNamesSelectedStr=this.deviceSelected.join(",")}isCheckedAll(){let _=!0;return this.deviceList.forEach(t=>{this.deviceSelected.includes(t.name)||(_=!1)}),_}isChecked(_){return this.singleSelectionMode?this.singleDeviceSelected===_:this.deviceSelected.includes(_)}selectSingleDevice(_,t){this.singleDeviceSelected=_.target.checked?t:"",this.deviceNamesSelectedStr=this.singleDeviceSelected,this.singleDeviceSelectedChange.emit(this.singleDeviceSelected)}onSelectOne(_,t){this.singleSelectionMode?this.selectSingleDevice(_,t):(_.target.checked?this.deviceSelected.push(t):this.deviceSelected.splice(this.deviceSelected.indexOf(t),1),this.deviceNamesSelectedStr=this.deviceSelected.join(","),this.deviceSelectedChange.emit(this.deviceSelected))}onPageSelected(){this.resetPagination(),this.getDeviceListPagination()}prePage(){this.setPagination(-1),this.getDeviceListPagination()}nextPage(){this.setPagination(1),this.getDeviceListPagination()}setPagination(_){1===_?this.pagination+=1:-1===_&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}close(_){this.visible=!1}toggle(_){_.stopPropagation(),this.visible=!this.visible}}return i.\u0275fac=function(_){return new(_||i)(e.Y36(f.D))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-combo-list"]],inputs:{deviceSelected:"deviceSelected",singleDeviceSelected:"singleDeviceSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceSelectedChange:"deviceSelectedChange",singleDeviceSelectedChange:"singleDeviceSelectedChange"},decls:8,vars:3,consts:function(){let s,_,t,n,d,p,O,h,M,u,I,m;return s="\u8BBE\u5907\u5217\u8868",_="ID",t="\u540D\u5B57",n="\u63CF\u8FF0",d="\u6807\u7B7E",p="\u7BA1\u7406\u72B6\u6001",O="\u64CD\u4F5C\u72B6\u6001",h="\u76F8\u5173\u8BBE\u5907\u5143\u4FE1\u606F",M="\u76F8\u5173\u8BBE\u5907\u670D\u52A1",u="\u6BCF\u9875\u6761\u76EE",I="\u4E0A\u4E00\u9875",m="\u4E0B\u4E00\u9875",[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","deviceNamesSelected","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["class","combo-body shadow rounded",4,"ngIf"],[1,"combo-shielder",3,"click"],[1,"combo-body","shadow","rounded"],[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],s,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],_,t,n,d,p,O,h,M,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],u,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"form-control",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],I,[1,"page-item"],m,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],[1,"text-primary"],[1,"badge","badge-success"],[1,"badge","badge-danger"]]},template:function(_,t){1&_&&(e.YNc(0,v,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(d){return t.toggle(d)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(d){return t.deviceNamesSelectedStr=d}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,b,55,5,"div",7),e.qZA()),2&_&&(e.Q6J("ngIf",t.visible),e.xp6(3),e.Q6J("ngModel",t.deviceNamesSelectedStr),e.xp6(4),e.Q6J("ngIf",t.visible))},directives:[g.O5,S.Fj,S.JJ,S.On,g.sg,S.EJ,S.YN,S.Kr,g.RF,g.n9,g.ED],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),i})()},6322:(P,T,c)=>{c.d(T,{o:()=>D});var e=c(476),f=c(8583),g=c(3092),S=c(2822);function v(C,A){if(1&C){const o=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(r){return e.CHM(o),e.oxw().close(r)}),e.qZA()}}let D=(()=>{class C{constructor(){this.selectedProfilesStr="",this._selectedProfiles=[],this.deviceProfileSelectedEvent=new e.vpe,this.singleProfileSelectedObject={},this.singleProfileSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this._singleProfileSelected=""}get selectedProfiles(){return this._selectedProfiles}set selectedProfiles(o){o.forEach((l,r)=>{o[r]=l.trim()}),this._selectedProfiles=o,this.selectedProfilesStr=this._selectedProfiles.join(",")}get singleProfileSelected(){return this._singleProfileSelected}set singleProfileSelected(o){this._singleProfileSelected=o?o.trim():"",this.selectedProfilesStr=this._singleProfileSelected,this.singleProfileSelectedObject={name:this._singleProfileSelected}}ngOnInit(){}onMultipleProfileSelectedEvent(o){this.selectedProfiles=o,this.selectedProfilesStr=this.selectedProfiles.join(","),this.deviceProfileSelectedEvent.emit(this.selectedProfiles)}onSingleProfileSelectedEvent(o){this.singleProfileSelected=o?o.name:"",this.selectedProfilesStr=this.singleProfileSelected,this.singleProfileSelectedChange.emit(this.singleProfileSelected)}close(o){this.visible=!1}toggle(o){o.stopPropagation(),this.visible=!this.visible}}return C.\u0275fac=function(o){return new(o||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["app-device-profile-combo-list"]],inputs:{selectedProfiles:"selectedProfiles",singleProfileSelected:"singleProfileSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceProfileSelectedEvent:"deviceProfileSelectedEvent",singleProfileSelectedChange:"singleProfileSelectedChange"},decls:9,vars:9,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","selectedProfiles","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],[1,"combo-body","shadow","rounded"],[3,"toolbars","associatedDeviceColumn","enableSelectAll","multiProfilesSelected","singleProfileSelected","multipleProfileSelectedEvent","singleProfileSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(o,l){1&o&&(e.YNc(0,v,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(E){return l.toggle(E)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(E){return l.selectedProfilesStr=E}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",7),e.TgZ(8,"app-device-profile-list",8),e.NdJ("multipleProfileSelectedEvent",function(E){return l.onMultipleProfileSelectedEvent(E)})("singleProfileSelectedEvent",function(E){return l.onSingleProfileSelectedEvent(E)}),e.qZA(),e.qZA(),e.qZA()),2&o&&(e.Q6J("ngIf",l.visible),e.xp6(3),e.Q6J("ngModel",l.selectedProfilesStr),e.xp6(4),e.Udp("display",l.visible?"":"none"),e.xp6(1),e.Q6J("toolbars",!1)("associatedDeviceColumn",!1)("enableSelectAll",!l.singleSelectionMode)("multiProfilesSelected",l.selectedProfiles)("singleProfileSelected",l.singleProfileSelectedObject))},directives:[f.O5,g.Fj,g.JJ,g.On,S.f],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),C})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[753],{1302:(I,f,c)=>{c.d(f,{h:()=>Z});var e=c(476),v=c(2437),r=c(8583),S=c(3092);function h(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(o){return e.CHM(i),e.oxw().close(o)}),e.qZA()}}function M(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"input",47),e.NdJ("click",function(o){return e.CHM(i),e.oxw(2).onSelectAll(o)}),e.qZA()}if(2&t){const i=e.oxw(2);e.Q6J("checked",i.isCheckedAll())}}function C(t,s){if(1&t&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.Oqu(i.adminState)}}function p(t,s){if(1&t&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.Oqu(i.adminState)}}function _(t,s){if(1&t&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.hij(" ",i.operatingState,"")}}function l(t,s){if(1&t&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.hij(" ",i.operatingState,"")}}function E(t,s){if(1&t&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.hij(" ",i.operatingState,"")}}function g(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",47),e.NdJ("click",function(o){const T=e.CHM(i).$implicit;return e.oxw(2).onSelectOne(o,T.name)}),e.qZA(),e.qZA(),e.TgZ(3,"td",48),e._uU(4),e.qZA(),e.TgZ(5,"td",48),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e.TgZ(12,"span",49),e.YNc(13,C,2,1,"span",50),e.YNc(14,p,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(15,"td",52),e.TgZ(16,"span",49),e.YNc(17,_,2,1,"span",50),e.YNc(18,l,2,1,"span",53),e.YNc(19,E,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(20,"td"),e.TgZ(21,"span",54),e._uU(22),e.qZA(),e.qZA(),e.TgZ(23,"td"),e.TgZ(24,"span",54),e._uU(25),e.qZA(),e.qZA(),e.qZA()}if(2&t){const i=s.$implicit,n=e.oxw(2);e.ekj("table-active",n.isChecked(i.name)),e.xp6(2),e.Q6J("checked",n.isChecked(i.name)),e.xp6(2),e.Oqu(i.id),e.xp6(2),e.Oqu(i.name),e.xp6(2),e.Oqu(i.description),e.xp6(2),e.Oqu(i.labels),e.xp6(2),e.Q6J("ngSwitch",i.adminState),e.xp6(1),e.Q6J("ngSwitchCase","UNLOCKED"),e.xp6(3),e.Q6J("ngSwitch",i.operatingState),e.xp6(1),e.Q6J("ngSwitchCase","UP"),e.xp6(1),e.Q6J("ngSwitchCase","DOWN"),e.xp6(4),e.Oqu(i.profileName),e.xp6(3),e.Oqu(i.serviceName)}}function b(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e.TgZ(2,"div",11),e._UZ(3,"i",12),e.TgZ(4,"span"),e.SDv(5,13),e.qZA(),e.qZA(),e.TgZ(6,"div",14),e.TgZ(7,"div",15),e.TgZ(8,"table",16),e.TgZ(9,"thead",17),e.TgZ(10,"tr"),e.TgZ(11,"th",18),e.YNc(12,M,1,1,"input",19),e.qZA(),e.TgZ(13,"th",18),e.SDv(14,20),e.qZA(),e.TgZ(15,"th",18),e.SDv(16,21),e.qZA(),e.TgZ(17,"th",18),e.SDv(18,22),e.qZA(),e.TgZ(19,"th",18),e.SDv(20,23),e.qZA(),e.TgZ(21,"th",18),e.SDv(22,24),e.qZA(),e.TgZ(23,"th",18),e.SDv(24,25),e.qZA(),e.TgZ(25,"th",18),e.SDv(26,26),e.qZA(),e.TgZ(27,"th",18),e.SDv(28,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"tbody"),e.YNc(30,g,26,14,"tr",28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",29),e.TgZ(32,"nav",30),e.TgZ(33,"ul",31),e.TgZ(34,"li",32),e.TgZ(35,"span",33),e.SDv(36,34),e.qZA(),e.qZA(),e.TgZ(37,"li",35),e.TgZ(38,"select",36),e.NdJ("ngModelChange",function(o){return e.CHM(i),e.oxw().pageLimit=o})("ngModelChange",function(){return e.CHM(i),e.oxw().onPageSelected()}),e.TgZ(39,"option",37),e._uU(40,"5"),e.qZA(),e.TgZ(41,"option",38),e._uU(42,"10"),e.qZA(),e.TgZ(43,"option",39),e._uU(44,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(45,"li",40),e.TgZ(46,"button",41),e.NdJ("click",function(){return e.CHM(i),e.oxw().prePage()}),e._UZ(47,"i",42),e.TgZ(48,"span"),e.SDv(49,43),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"li",44),e.TgZ(51,"button",41),e.NdJ("click",function(){return e.CHM(i),e.oxw().nextPage()}),e.TgZ(52,"span"),e.SDv(53,45),e.qZA(),e._UZ(54,"i",46),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&t){const i=e.oxw();e.xp6(12),e.Q6J("ngIf",!i.singleSelectionMode),e.xp6(18),e.Q6J("ngForOf",i.deviceList),e.xp6(8),e.Q6J("ngModel",i.pageLimit),e.xp6(8),e.Q6J("disabled",1===i.pagination),e.xp6(5),e.Q6J("disabled",i.pageLimit>i.deviceList.length)}}let Z=(()=>{class t{constructor(i){this.metaSvc=i,this.deviceList=[],this.deviceNamesSelectedStr="",this._deviceSelected=[],this.deviceSelectedChange=new e.vpe,this.singleDeviceSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this._singleDeviceSelected=""}get deviceSelected(){return this._deviceSelected}set deviceSelected(i){i.forEach((n,o)=>{i[o]=n.trim()}),this._deviceSelected=i,this.deviceNamesSelectedStr=this._deviceSelected.join(",")}get singleDeviceSelected(){return this._singleDeviceSelected}set singleDeviceSelected(i){this._singleDeviceSelected=i?i.trim():"",this.deviceNamesSelectedStr=this._singleDeviceSelected}ngOnInit(){this.getDeviceListPagination()}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(i=>{this.deviceList=i.devices})}onSelectAll(i){this.deviceList.forEach(i.target.checked?o=>{this.deviceSelected.includes(o.name)||this.deviceSelected.push(o.name)}:o=>{this.deviceSelected.includes(o.name)&&this.deviceSelected.splice(this.deviceSelected.indexOf(o.name),1)}),this.deviceSelectedChange.emit(this.deviceSelected),this.deviceNamesSelectedStr=this.deviceSelected.join(",")}isCheckedAll(){let i=!0;return this.deviceList.forEach(n=>{this.deviceSelected.includes(n.name)||(i=!1)}),i}isChecked(i){return this.singleSelectionMode?this.singleDeviceSelected===i:this.deviceSelected.includes(i)}selectSingleDevice(i,n){this.singleDeviceSelected=i.target.checked?n:"",this.deviceNamesSelectedStr=this.singleDeviceSelected,this.singleDeviceSelectedChange.emit(this.singleDeviceSelected)}onSelectOne(i,n){this.singleSelectionMode?this.selectSingleDevice(i,n):(i.target.checked?this.deviceSelected.push(n):this.deviceSelected.splice(this.deviceSelected.indexOf(n),1),this.deviceNamesSelectedStr=this.deviceSelected.join(","),this.deviceSelectedChange.emit(this.deviceSelected))}onPageSelected(){this.resetPagination(),this.getDeviceListPagination()}prePage(){this.setPagination(-1),this.getDeviceListPagination()}nextPage(){this.setPagination(1),this.getDeviceListPagination()}setPagination(i){1===i?this.pagination+=1:-1===i&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}close(i){this.visible=!1}toggle(i){i.stopPropagation(),this.visible=!this.visible}}return t.\u0275fac=function(i){return new(i||t)(e.Y36(v.D))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-device-combo-list"]],inputs:{deviceSelected:"deviceSelected",singleDeviceSelected:"singleDeviceSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceSelectedChange:"deviceSelectedChange",singleDeviceSelectedChange:"singleDeviceSelectedChange"},decls:8,vars:3,consts:function(){let s,i,n,o,d,T,u,m,A,O,D,P;return s="\u8BBE\u5907\u5217\u8868",i="ID",n="\u540D\u5B57",o="\u63CF\u8FF0",d="\u6807\u7B7E",T="\u7BA1\u7406\u72B6\u6001",u="\u64CD\u4F5C\u72B6\u6001",m="\u76F8\u5173\u8BBE\u5907\u5143\u4FE1\u606F",A="\u76F8\u5173\u8BBE\u5907\u670D\u52A1",O="\u6BCF\u9875\u6761\u76EE",D="\u4E0A\u4E00\u9875",P="\u4E0B\u4E00\u9875",[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","deviceNamesSelected","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["class","combo-body shadow rounded",4,"ngIf"],[1,"combo-shielder",3,"click"],[1,"combo-body","shadow","rounded"],[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],s,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],i,n,o,d,T,u,m,A,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],O,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"form-control",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],D,[1,"page-item"],P,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],[1,"text-primary"],[1,"badge","badge-success"],[1,"badge","badge-danger"]]},template:function(i,n){1&i&&(e.YNc(0,h,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(d){return n.toggle(d)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(d){return n.deviceNamesSelectedStr=d}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,b,55,5,"div",7),e.qZA()),2&i&&(e.Q6J("ngIf",n.visible),e.xp6(3),e.Q6J("ngModel",n.deviceNamesSelectedStr),e.xp6(4),e.Q6J("ngIf",n.visible))},directives:[r.O5,S.Fj,S.JJ,S.On,r.sg,S.EJ,S.YN,S.Kr,r.RF,r.n9,r.ED],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),t})()},6322:(I,f,c)=>{c.d(f,{o:()=>M});var e=c(476),v=c(8583),r=c(3092),S=c(2822);function h(C,p){if(1&C){const _=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(E){return e.CHM(_),e.oxw().close(E)}),e.qZA()}}let M=(()=>{class C{constructor(){this.selectedProfilesStr="",this._selectedProfiles=[],this.deviceProfileSelectedEvent=new e.vpe,this.singleProfileSelectedObject={},this.singleProfileSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this._singleProfileSelected=""}get selectedProfiles(){return this._selectedProfiles}set selectedProfiles(_){_.forEach((l,E)=>{_[E]=l.trim()}),this._selectedProfiles=_,this.selectedProfilesStr=this._selectedProfiles.join(",")}get singleProfileSelected(){return this._singleProfileSelected}set singleProfileSelected(_){this._singleProfileSelected=_?_.trim():"",this.selectedProfilesStr=this._singleProfileSelected,this.singleProfileSelectedObject={name:this._singleProfileSelected}}ngOnInit(){}onMultipleProfileSelectedEvent(_){this.selectedProfiles=_,this.selectedProfilesStr=this.selectedProfiles.join(","),this.deviceProfileSelectedEvent.emit(this.selectedProfiles)}onSingleProfileSelectedEvent(_){this.singleProfileSelected=_?_.name:"",this.selectedProfilesStr=this.singleProfileSelected,this.singleProfileSelectedChange.emit(this.singleProfileSelected)}close(_){this.visible=!1}toggle(_){_.stopPropagation(),this.visible=!this.visible}}return C.\u0275fac=function(_){return new(_||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["app-device-profile-combo-list"]],inputs:{selectedProfiles:"selectedProfiles",singleProfileSelected:"singleProfileSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceProfileSelectedEvent:"deviceProfileSelectedEvent",singleProfileSelectedChange:"singleProfileSelectedChange"},decls:9,vars:9,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","selectedProfiles","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],[1,"combo-body","shadow","rounded"],[3,"toolbars","associatedDeviceColumn","enableSelectAll","multiProfilesSelected","singleProfileSelected","multipleProfileSelectedEvent","singleProfileSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(_,l){1&_&&(e.YNc(0,h,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(g){return l.toggle(g)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(g){return l.selectedProfilesStr=g}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",7),e.TgZ(8,"app-device-profile-list",8),e.NdJ("multipleProfileSelectedEvent",function(g){return l.onMultipleProfileSelectedEvent(g)})("singleProfileSelectedEvent",function(g){return l.onSingleProfileSelectedEvent(g)}),e.qZA(),e.qZA(),e.qZA()),2&_&&(e.Q6J("ngIf",l.visible),e.xp6(3),e.Q6J("ngModel",l.selectedProfilesStr),e.xp6(4),e.Udp("display",l.visible?"":"none"),e.xp6(1),e.Q6J("toolbars",!1)("associatedDeviceColumn",!1)("enableSelectAll",!l.singleSelectionMode)("multiProfilesSelected",l.selectedProfiles)("singleProfileSelected",l.singleProfileSelectedObject))},directives:[v.O5,r.Fj,r.JJ,r.On,S.f],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),C})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/753.5ef6f0ee7641c98adf0e.js b/cmd/edgex-ui-server/static/web/zh/753.5ef6f0ee7641c98adf0e.js deleted file mode 100644 index 06fa78f8..00000000 --- a/cmd/edgex-ui-server/static/web/zh/753.5ef6f0ee7641c98adf0e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[753],{1302:(P,T,c)=>{c.d(T,{h:()=>N});var e=c(476),f=c(2437),g=c(8583),S=c(3092);function v(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(n){return e.CHM(_),e.oxw().close(n)}),e.qZA()}}function D(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"input",47),e.NdJ("click",function(n){return e.CHM(_),e.oxw(2).onSelectAll(n)}),e.qZA()}if(2&i){const _=e.oxw(2);e.Q6J("checked",_.isCheckedAll())}}function C(i,s){if(1&i&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.adminState)}}function A(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.adminState)}}function o(i,s){if(1&i&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function l(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function r(i,s){if(1&i&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.operatingState,"")}}function E(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"tr"),e.TgZ(1,"td"),e.TgZ(2,"input",47),e.NdJ("click",function(n){const p=e.CHM(_).$implicit;return e.oxw(2).onSelectOne(n,p.name)}),e.qZA(),e.qZA(),e.TgZ(3,"td",48),e._uU(4),e.qZA(),e.TgZ(5,"td",48),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e.TgZ(12,"span",49),e.YNc(13,C,2,1,"span",50),e.YNc(14,A,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(15,"td",52),e.TgZ(16,"span",49),e.YNc(17,o,2,1,"span",50),e.YNc(18,l,2,1,"span",53),e.YNc(19,r,2,1,"span",51),e.qZA(),e.qZA(),e.TgZ(20,"td"),e.TgZ(21,"span",54),e._uU(22),e.qZA(),e.qZA(),e.TgZ(23,"td"),e.TgZ(24,"span",54),e._uU(25),e.qZA(),e.qZA(),e.qZA()}if(2&i){const _=s.$implicit,t=e.oxw(2);e.ekj("table-active",t.isChecked(_.name)),e.xp6(2),e.Q6J("checked",t.isChecked(_.name)),e.xp6(2),e.Oqu(_.id),e.xp6(2),e.Oqu(_.name),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.labels),e.xp6(2),e.Q6J("ngSwitch",_.adminState),e.xp6(1),e.Q6J("ngSwitchCase","UNLOCKED"),e.xp6(3),e.Q6J("ngSwitch",_.operatingState),e.xp6(1),e.Q6J("ngSwitchCase","UP"),e.xp6(1),e.Q6J("ngSwitchCase","DOWN"),e.xp6(4),e.Oqu(_.profileName),e.xp6(3),e.Oqu(_.serviceName)}}function b(i,s){if(1&i){const _=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e.TgZ(2,"div",11),e._UZ(3,"i",12),e.TgZ(4,"span"),e.SDv(5,13),e.qZA(),e.qZA(),e.TgZ(6,"div",14),e.TgZ(7,"div",15),e.TgZ(8,"table",16),e.TgZ(9,"thead",17),e.TgZ(10,"tr"),e.TgZ(11,"th",18),e.YNc(12,D,1,1,"input",19),e.qZA(),e.TgZ(13,"th",18),e.SDv(14,20),e.qZA(),e.TgZ(15,"th",18),e.SDv(16,21),e.qZA(),e.TgZ(17,"th",18),e.SDv(18,22),e.qZA(),e.TgZ(19,"th",18),e.SDv(20,23),e.qZA(),e.TgZ(21,"th",18),e.SDv(22,24),e.qZA(),e.TgZ(23,"th",18),e.SDv(24,25),e.qZA(),e.TgZ(25,"th",18),e.SDv(26,26),e.qZA(),e.TgZ(27,"th",18),e.SDv(28,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"tbody"),e.YNc(30,E,26,14,"tr",28),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",29),e.TgZ(32,"nav",30),e.TgZ(33,"ul",31),e.TgZ(34,"li",32),e.TgZ(35,"span",33),e.SDv(36,34),e.qZA(),e.qZA(),e.TgZ(37,"li",35),e.TgZ(38,"select",36),e.NdJ("ngModelChange",function(n){return e.CHM(_),e.oxw().pageLimit=n})("ngModelChange",function(){return e.CHM(_),e.oxw().onPageSelected()}),e.TgZ(39,"option",37),e._uU(40,"5"),e.qZA(),e.TgZ(41,"option",38),e._uU(42,"10"),e.qZA(),e.TgZ(43,"option",39),e._uU(44,"20"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(45,"li",40),e.TgZ(46,"button",41),e.NdJ("click",function(){return e.CHM(_),e.oxw().prePage()}),e._UZ(47,"i",42),e.TgZ(48,"span"),e.SDv(49,43),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"li",44),e.TgZ(51,"button",41),e.NdJ("click",function(){return e.CHM(_),e.oxw().nextPage()}),e.TgZ(52,"span"),e.SDv(53,45),e.qZA(),e._UZ(54,"i",46),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const _=e.oxw();e.xp6(12),e.Q6J("ngIf",!_.singleSelectionMode),e.xp6(18),e.Q6J("ngForOf",_.deviceList),e.xp6(8),e.Q6J("ngModel",_.pageLimit),e.xp6(8),e.Q6J("disabled",1===_.pagination),e.xp6(5),e.Q6J("disabled",_.pageLimit>_.deviceList.length)}}let N=(()=>{class i{constructor(_){this.metaSvc=_,this.deviceList=[],this.deviceNamesSelectedStr="",this._deviceSelected=[],this.deviceSelectedChange=new e.vpe,this.singleDeviceSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this.pagination=1,this.pageLimit=5,this.pageOffset=(this.pagination-1)*this.pageLimit,this._singleDeviceSelected=""}get deviceSelected(){return this._deviceSelected}set deviceSelected(_){_.forEach((t,n)=>{_[n]=t.trim()}),this._deviceSelected=_,this.deviceNamesSelectedStr=this._deviceSelected.join(",")}get singleDeviceSelected(){return this._singleDeviceSelected}set singleDeviceSelected(_){this._singleDeviceSelected=_?_.trim():"",this.deviceNamesSelectedStr=this._singleDeviceSelected}ngOnInit(){this.getDeviceListPagination()}getDeviceListPagination(){this.metaSvc.allDevicesPagination(this.pageOffset,this.pageLimit).subscribe(_=>{this.deviceList=_.devices})}onSelectAll(_){this.deviceList.forEach(_.target.checked?n=>{this.deviceSelected.includes(n.name)||this.deviceSelected.push(n.name)}:n=>{this.deviceSelected.includes(n.name)&&this.deviceSelected.splice(this.deviceSelected.indexOf(n.name),1)}),this.deviceSelectedChange.emit(this.deviceSelected),this.deviceNamesSelectedStr=this.deviceSelected.join(",")}isCheckedAll(){let _=!0;return this.deviceList.forEach(t=>{this.deviceSelected.includes(t.name)||(_=!1)}),_}isChecked(_){return this.singleSelectionMode?this.singleDeviceSelected===_:this.deviceSelected.includes(_)}selectSingleDevice(_,t){this.singleDeviceSelected=_.target.checked?t:"",this.deviceNamesSelectedStr=this.singleDeviceSelected,this.singleDeviceSelectedChange.emit(this.singleDeviceSelected)}onSelectOne(_,t){this.singleSelectionMode?this.selectSingleDevice(_,t):(_.target.checked?this.deviceSelected.push(t):this.deviceSelected.splice(this.deviceSelected.indexOf(t),1),this.deviceNamesSelectedStr=this.deviceSelected.join(","),this.deviceSelectedChange.emit(this.deviceSelected))}onPageSelected(){this.resetPagination(),this.getDeviceListPagination()}prePage(){this.setPagination(-1),this.getDeviceListPagination()}nextPage(){this.setPagination(1),this.getDeviceListPagination()}setPagination(_){1===_?this.pagination+=1:-1===_&&(this.pagination-=1),this.pageOffset=(this.pagination-1)*this.pageLimit}resetPagination(){this.pagination=1,this.pageOffset=(this.pagination-1)*this.pageLimit}close(_){this.visible=!1}toggle(_){_.stopPropagation(),this.visible=!this.visible}}return i.\u0275fac=function(_){return new(_||i)(e.Y36(f.D))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-device-combo-list"]],inputs:{deviceSelected:"deviceSelected",singleDeviceSelected:"singleDeviceSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceSelectedChange:"deviceSelectedChange",singleDeviceSelectedChange:"singleDeviceSelectedChange"},decls:8,vars:3,consts:function(){let s,_,t,n,d,p,O,h,M,u,I,m;return s="\u8BBE\u5907\u5217\u8868",_="ID",t="\u540D\u5B57",n="\u63CF\u8FF0",d="\u6807\u7B7E",p="\u7BA1\u7406\u72B6\u6001",O="\u64CD\u4F5C\u72B6\u6001",h="\u76F8\u5173\u8BBE\u5907\u5143\u4FE1\u606F",M="\u76F8\u5173\u8BBE\u5907\u670D\u52A1",u="\u6BCF\u9875\u6761\u76EE",I="\u4E0A\u4E00\u9875",m="\u4E0B\u4E00\u9875",[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","deviceNamesSelected","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],["class","combo-body shadow rounded",4,"ngIf"],[1,"combo-shielder",3,"click"],[1,"combo-body","shadow","rounded"],[1,"card"],[1,"card-header"],[1,"fa","fa-list","text-danger","mr-2"],s,[1,"card-body","p-0"],[1,"table-responsive"],[1,"table","table-hover","text-truncate"],[1,"thead-light"],["scope","col"],["type","checkbox","role","button",3,"checked","click",4,"ngIf"],_,t,n,d,p,O,h,M,[3,"table-active",4,"ngFor","ngForOf"],[1,"card-footer","text-muted","p-1"],["aria-label","navigation"],[1,"pagination","justify-content-end","m-0"],[1,"page-item","mr-2","mt-1"],[1,"align-middle"],u,[1,"page-item","mr-2"],["name","pageLimit","id","pageLimit",1,"form-control",3,"ngModel","ngModelChange"],["value","5"],["value","10"],["value","20"],[1,"page-item","mr-1"],[1,"page-link","btn",3,"disabled","click"],[1,"fa","fa-angle-double-left","mr-1"],I,[1,"page-item"],m,[1,"fa","fa-angle-double-right","ml-1"],["type","checkbox","role","button",3,"checked","click"],[1,"user-select-all"],[3,"ngSwitch"],["class","badge badge-success",4,"ngSwitchCase"],["class","badge badge-danger",4,"ngSwitchDefault"],[1,"text-center"],["class","badge badge-danger",4,"ngSwitchCase"],[1,"text-primary"],[1,"badge","badge-success"],[1,"badge","badge-danger"]]},template:function(_,t){1&_&&(e.YNc(0,v,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(d){return t.toggle(d)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(d){return t.deviceNamesSelectedStr=d}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,b,55,5,"div",7),e.qZA()),2&_&&(e.Q6J("ngIf",t.visible),e.xp6(3),e.Q6J("ngModel",t.deviceNamesSelectedStr),e.xp6(4),e.Q6J("ngIf",t.visible))},directives:[g.O5,S.Fj,S.JJ,S.On,g.sg,S.EJ,S.YN,S.Kr,g.RF,g.n9,g.ED],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),i})()},6322:(P,T,c)=>{c.d(T,{o:()=>D});var e=c(476),f=c(8583),g=c(3092),S=c(2822);function v(C,A){if(1&C){const o=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(r){return e.CHM(o),e.oxw().close(r)}),e.qZA()}}let D=(()=>{class C{constructor(){this.selectedProfilesStr="",this._selectedProfiles=[],this.deviceProfileSelectedEvent=new e.vpe,this.singleProfileSelectedObject={},this.singleProfileSelectedChange=new e.vpe,this.visible=!1,this.validate=!1,this.singleSelectionMode=!1,this._singleProfileSelected=""}get selectedProfiles(){return this._selectedProfiles}set selectedProfiles(o){o.forEach((l,r)=>{o[r]=l.trim()}),this._selectedProfiles=o,this.selectedProfilesStr=this._selectedProfiles.join(",")}get singleProfileSelected(){return this._singleProfileSelected}set singleProfileSelected(o){this._singleProfileSelected=o?o.trim():"",this.selectedProfilesStr=this._singleProfileSelected,this.singleProfileSelectedObject={name:this._singleProfileSelected}}ngOnInit(){}onMultipleProfileSelectedEvent(o){this.selectedProfiles=o,this.selectedProfilesStr=this.selectedProfiles.join(","),this.deviceProfileSelectedEvent.emit(this.selectedProfiles)}onSingleProfileSelectedEvent(o){this.singleProfileSelected=o?o.name:"",this.selectedProfilesStr=this.singleProfileSelected,this.singleProfileSelectedChange.emit(this.singleProfileSelected)}close(o){this.visible=!1}toggle(o){o.stopPropagation(),this.visible=!this.visible}}return C.\u0275fac=function(o){return new(o||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["app-device-profile-combo-list"]],inputs:{selectedProfiles:"selectedProfiles",singleProfileSelected:"singleProfileSelected",validate:"validate",singleSelectionMode:"singleSelectionMode"},outputs:{deviceProfileSelectedEvent:"deviceProfileSelectedEvent",singleProfileSelectedChange:"singleProfileSelectedChange"},decls:9,vars:9,consts:[["class","combo-shielder",3,"click",4,"ngIf"],[1,"combo"],[1,"input-group","has-validation",3,"mousedown"],["type","text","name","selectedProfiles","disabled","",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-append"],["role","button",1,"input-group-text"],[1,"fa","fa-chevron-down"],[1,"combo-body","shadow","rounded"],[3,"toolbars","associatedDeviceColumn","enableSelectAll","multiProfilesSelected","singleProfileSelected","multipleProfileSelectedEvent","singleProfileSelectedEvent"],[1,"combo-shielder",3,"click"]],template:function(o,l){1&o&&(e.YNc(0,v,1,0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("mousedown",function(E){return l.toggle(E)}),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(E){return l.selectedProfilesStr=E}),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._UZ(6,"i",6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",7),e.TgZ(8,"app-device-profile-list",8),e.NdJ("multipleProfileSelectedEvent",function(E){return l.onMultipleProfileSelectedEvent(E)})("singleProfileSelectedEvent",function(E){return l.onSingleProfileSelectedEvent(E)}),e.qZA(),e.qZA(),e.qZA()),2&o&&(e.Q6J("ngIf",l.visible),e.xp6(3),e.Q6J("ngModel",l.selectedProfilesStr),e.xp6(4),e.Udp("display",l.visible?"":"none"),e.xp6(1),e.Q6J("toolbars",!1)("associatedDeviceColumn",!1)("enableSelectAll",!l.singleSelectionMode)("multiProfilesSelected",l.selectedProfiles)("singleProfileSelected",l.singleProfileSelectedObject))},directives:[f.O5,g.Fj,g.JJ,g.On,S.f],styles:[".combo[_ngcontent-%COMP%]{position:relative;right:auto}.combo-shielder[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:100}.combo-body[_ngcontent-%COMP%]{position:absolute;top:33px;bottom:auto;left:0;right:0;z-index:105;visibility:visible;display:inline-block}"]}),C})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/827.4e2251bfaee2216adb91.js b/cmd/edgex-ui-server/static/web/zh/827.4e2251bfaee2216adb91.js deleted file mode 100644 index f75c1069..00000000 --- a/cmd/edgex-ui-server/static/web/zh/827.4e2251bfaee2216adb91.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[827],{9827:(ee,ue,W)=>{W.d(ue,{Z:()=>Ge});const R=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],$={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:i=>"undefined"!=typeof console&&console.warn(i),getWeek:i=>{const o=new Date(i.getTime());o.setHours(0,0,0,0),o.setDate(o.getDate()+3-(o.getDay()+6)%7);var e=new Date(o.getFullYear(),0,4);return 1+Math.round(((o.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},me={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:i=>{const o=i%100;if(o>3&&o<21)return"th";switch(o%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},ge=me,x=(i,o=2)=>`000${i}`.slice(-1*o),I=i=>!0===i?1:0;function _e(i,o){let e;return function(){clearTimeout(e),e=setTimeout(()=>i.apply(this,arguments),o)}}const pe=i=>i instanceof Array?i:[i];function v(i,o,e){if(!0===e)return i.classList.add(o);i.classList.remove(o)}function m(i,o,e){const p=window.document.createElement(i);return e=e||"",p.className=o=o||"",void 0!==e&&(p.textContent=e),p}function te(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Fe(i,o){return o(i)?i:i.parentNode?Fe(i.parentNode,o):void 0}function ne(i,o){const e=m("div","numInputWrapper"),p=m("input","numInput "+i),g=m("span","arrowUp"),w=m("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?p.type="number":(p.type="text",p.pattern="\\d*"),void 0!==o)for(const E in o)p.setAttribute(E,o[E]);return e.appendChild(p),e.appendChild(g),e.appendChild(w),e}function k(i){try{return"function"==typeof i.composedPath?i.composedPath()[0]:i.target}catch(o){return i.target}}const he=()=>{},ie=(i,o,e)=>e.months[o?"shorthand":"longhand"][i],Je={D:he,F:function(i,o,e){i.setMonth(e.months.longhand.indexOf(o))},G:(i,o)=>{i.setHours(parseFloat(o))},H:(i,o)=>{i.setHours(parseFloat(o))},J:(i,o)=>{i.setDate(parseFloat(o))},K:(i,o,e)=>{i.setHours(i.getHours()%12+12*I(new RegExp(e.amPM[1],"i").test(o)))},M:function(i,o,e){i.setMonth(e.months.shorthand.indexOf(o))},S:(i,o)=>{i.setSeconds(parseFloat(o))},U:(i,o)=>new Date(1e3*parseFloat(o)),W:function(i,o,e){const p=parseInt(o),g=new Date(i.getFullYear(),0,2+7*(p-1),0,0,0,0);return g.setDate(g.getDate()-g.getDay()+e.firstDayOfWeek),g},Y:(i,o)=>{i.setFullYear(parseFloat(o))},Z:(i,o)=>new Date(o),d:(i,o)=>{i.setDate(parseFloat(o))},h:(i,o)=>{i.setHours(parseFloat(o))},i:(i,o)=>{i.setMinutes(parseFloat(o))},j:(i,o)=>{i.setDate(parseFloat(o))},l:he,m:(i,o)=>{i.setMonth(parseFloat(o)-1)},n:(i,o)=>{i.setMonth(parseFloat(o)-1)},s:(i,o)=>{i.setSeconds(parseFloat(o))},u:(i,o)=>new Date(parseFloat(o)),w:he,y:(i,o)=>{i.setFullYear(2e3+parseFloat(o))}},De={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},q={Z:i=>i.toISOString(),D:function(i,o,e){return o.weekdays.shorthand[q.w(i,o,e)]},F:function(i,o,e){return ie(q.n(i,o,e)-1,!1,o)},G:function(i,o,e){return x(q.h(i,o,e))},H:i=>x(i.getHours()),J:function(i,o){return void 0!==o.ordinal?i.getDate()+o.ordinal(i.getDate()):i.getDate()},K:(i,o)=>o.amPM[I(i.getHours()>11)],M:function(i,o){return ie(i.getMonth(),!0,o)},S:i=>x(i.getSeconds()),U:i=>i.getTime()/1e3,W:function(i,o,e){return e.getWeek(i)},Y:i=>x(i.getFullYear(),4),d:i=>x(i.getDate()),h:i=>i.getHours()%12?i.getHours()%12:12,i:i=>x(i.getMinutes()),j:i=>i.getDate(),l:function(i,o){return o.weekdays.longhand[i.getDay()]},m:i=>x(i.getMonth()+1),n:i=>i.getMonth()+1,s:i=>i.getSeconds(),u:i=>i.getTime(),w:i=>i.getDay(),y:i=>String(i.getFullYear()).substring(2)},Ne=({config:i=$,l10n:o=me,isMobile:e=!1})=>(p,g,w)=>{const E=w||o;return void 0===i.formatDate||e?g.split("").map((D,z,_)=>q[D]&&"\\"!==_[z-1]?q[D](p,E,i):"\\"!==D?D:"").join(""):i.formatDate(p,g,E)},be=({config:i=$,l10n:o=me})=>(e,p,g,w)=>{if(0!==e&&!e)return;const E=w||o;let D;const z=e;if(e instanceof Date)D=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)D=new Date(e);else if("string"==typeof e){const _=p||(i||$).dateFormat,F=String(e).trim();if("today"===F)D=new Date,g=!0;else if(/Z$/.test(F)||/GMT$/.test(F))D=new Date(e);else if(i&&i.parseDate)D=i.parseDate(e,_);else{D=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);let P,K=[];for(let J=0,h=0,Y="";J<_.length;J++){const H=_[J],j="\\"===H,Me="\\"===_[J-1]||j;if(De[H]&&!Me){Y+=De[H];const N=new RegExp(Y).exec(e);N&&(P=!0)&&K["Y"!==H?"push":"unshift"]({fn:Je[H],val:N[++h]})}else j||(Y+=".");K.forEach(({fn:N,val:Ce})=>D=N(D,Ce,E)||D)}D=P?D:void 0}}if(D instanceof Date&&!isNaN(D.getTime()))return!0===g&&D.setHours(0,0,0,0),D;i.errorHandler(new Error(`Invalid date provided: ${z}`))};function T(i,o,e=!0){return!1!==e?new Date(i.getTime()).setHours(0,0,0,0)-new Date(o.getTime()).setHours(0,0,0,0):i.getTime()-o.getTime()}const Ue=(i,o,e)=>i>Math.min(o,e)&&i=0?new Date:new Date(e.config.minDate.getTime()),r=we(e.config);a.setHours(r.hours,r.minutes,r.seconds,a.getMilliseconds()),e.selectedDates=[a],e.latestSelectedDateObj=a}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();const n="keydown"===t.type,a=k(t),r=a;void 0!==e.amPM&&a===e.amPM&&(e.amPM.textContent=e.l10n.amPM[I(e.amPM.textContent===e.l10n.amPM[0])]);const l=parseFloat(r.getAttribute("min")),s=parseFloat(r.getAttribute("max")),d=parseFloat(r.getAttribute("step")),c=parseInt(r.value,10);let u=c+d*(t.delta||(n?38===t.which?1:-1:0));if(void 0!==r.value&&2===r.value.length){const b=r===e.hourElement,S=r===e.minuteElement;us&&(u=r===e.hourElement?u-s-I(!e.amPM):l,S&&N(void 0,1,e.hourElement)),e.amPM&&b&&(1===d?u+c===23:Math.abs(u-c)>d)&&(e.amPM.textContent=e.l10n.amPM[I(e.amPM.textContent===e.l10n.amPM[0])]),r.value=x(u)}}(t);const n=e._input.value;F(),A(),e._input.value!==n&&e._debouncedChange()}function F(){if(void 0===e.hourElement||void 0===e.minuteElement)return;let t=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,n=(parseInt(e.minuteElement.value,10)||0)%60,a=void 0!==e.secondElement?(parseInt(e.secondElement.value,10)||0)%60:0;void 0!==e.amPM&&(t=function(t,n){return t%12+12*I(n===e.l10n.amPM[1])}(t,e.amPM.textContent));const r=void 0!==e.config.minTime||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&0===T(e.latestSelectedDateObj,e.config.minDate,!0);if(void 0!==e.config.maxTime||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&0===T(e.latestSelectedDateObj,e.config.maxDate,!0)){const s=void 0!==e.config.maxTime?e.config.maxTime:e.config.maxDate;t=Math.min(t,s.getHours()),t===s.getHours()&&(n=Math.min(n,s.getMinutes())),n===s.getMinutes()&&(a=Math.min(a,s.getSeconds()))}if(r){const s=void 0!==e.config.minTime?e.config.minTime:e.config.minDate;t=Math.max(t,s.getHours()),t===s.getHours()&&n=12)]),void 0!==e.secondElement&&(e.secondElement.value=x(a)))}function J(t){const n=k(t),a=parseInt(n.value)+(t.delta||0);(a/1e3>1||"Enter"===t.key&&!/[^\d]/.test(a.toString()))&&re(a)}function h(t,n,a,r){return n instanceof Array?n.forEach(l=>h(t,l,a,r)):t instanceof Array?t.forEach(l=>h(l,n,a,r)):(t.addEventListener(n,a,r),void e._handlers.push({remove:()=>t.removeEventListener(n,a)}))}function Y(){M("onChange")}function j(t,n){const a=void 0!==t?e.parseDate(t):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate=0&&T(t,e.selectedDates[1])<=0}(n)&&!Se(n)&&s.classList.add("inRange"),e.weekNumbers&&1===e.config.showMonths&&"prevMonthDay"!==t&&a%7==1&&e.weekNumbers.insertAdjacentHTML("beforeend",""+e.config.getWeek(n)+""),M("onDayCreate",s),s}function ve(t){t.focus(),"range"===e.config.mode&&ke(t)}function ae(t){const a=t>0?e.config.showMonths:-1;for(let r=t>0?0:e.config.showMonths-1;r!=a;r+=t){const l=e.daysContainer.children[r],d=t>0?l.children.length:-1;for(let c=t>0?0:l.children.length-1;c!=d;c+=t){const f=l.children[c];if(-1===f.className.indexOf("hidden")&&L(f.dateObj))return f}}}function G(t,n){const a=se(document.activeElement||document.body),r=void 0!==t?t:a?document.activeElement:void 0!==e.selectedDateElem&&se(e.selectedDateElem)?e.selectedDateElem:void 0!==e.todayDateElem&&se(e.todayDateElem)?e.todayDateElem:ae(n>0?1:-1);void 0===r?e._input.focus():a?function(t,n){const a=-1===t.className.indexOf("Month")?t.dateObj.getMonth():e.currentMonth,r=n>0?e.config.showMonths:-1,l=n>0?1:-1;for(let s=a-e.currentMonth;s!=r;s+=l){const d=e.daysContainer.children[s],f=d.children.length;for(let u=a-e.currentMonth===s?t.$i+n:n<0?d.children.length-1:0;u>=0&&u0?f:-1);u+=l){const b=d.children[u];if(-1===b.className.indexOf("hidden")&&L(b.dateObj)&&Math.abs(t.$i-u)>=Math.abs(n))return ve(b)}}e.changeMonth(l),G(ae(l),0)}(r,n):ve(r)}function Qe(t,n){const a=(new Date(t,n,1).getDay()-e.l10n.firstDayOfWeek+7)%7,r=e.utils.getDaysInMonth((n-1+12)%12,t),l=e.utils.getDaysInMonth(n,t),s=window.document.createDocumentFragment(),d=e.config.showMonths>1,c=d?"prevMonthDay hidden":"prevMonthDay",f=d?"nextMonthDay hidden":"nextMonthDay";let u=r+1-a,b=0;for(;u<=r;u++,b++)s.appendChild(ye(c,new Date(t,n-1,u),u,b));for(u=1;u<=l;u++,b++)s.appendChild(ye("",new Date(t,n,u),u,b));for(let y=l+1;y<=42-a&&(1===e.config.showMonths||b%7!=0);y++,b++)s.appendChild(ye(f,new Date(t,n+1,y%l),y,b));const S=m("div","dayContainer");return S.appendChild(s),S}function oe(){if(void 0===e.daysContainer)return;te(e.daysContainer),e.weekNumbers&&te(e.weekNumbers);const t=document.createDocumentFragment();for(let n=0;n1||"dropdown"!==e.config.monthSelectorType)return;const t=function(n){return!(void 0!==e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&ne.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(let n=0;n<12;n++){if(!t(n))continue;const a=m("option","flatpickr-monthDropdown-month");a.value=new Date(e.currentYear,n).getMonth().toString(),a.textContent=ie(n,e.config.shorthandCurrentMonth,e.l10n),a.tabIndex=-1,e.currentMonth===n&&(a.selected=!0),e.monthsDropdownContainer.appendChild(a)}}function Xe(){const t=m("div","flatpickr-month"),n=window.document.createDocumentFragment();let a;e.config.showMonths>1||"static"===e.config.monthSelectorType?a=m("span","cur-month"):(e.monthsDropdownContainer=m("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),h(e.monthsDropdownContainer,"change",d=>{const c=k(d),f=parseInt(c.value,10);e.changeMonth(f-e.currentMonth),M("onMonthChange")}),U(),a=e.monthsDropdownContainer);const r=ne("cur-year",{tabindex:"-1"}),l=r.getElementsByTagName("input")[0];l.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&l.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(l.setAttribute("max",e.config.maxDate.getFullYear().toString()),l.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());const s=m("div","flatpickr-current-month");return s.appendChild(a),s.appendChild(r),n.appendChild(s),t.appendChild(n),{container:t,yearElement:l,monthElement:a}}function Ae(){te(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(let t=e.config.showMonths;t--;){const n=Xe();e.yearElements.push(n.yearElement),e.monthElements.push(n.monthElement),e.monthNav.appendChild(n.container)}e.monthNav.appendChild(e.nextMonthNav)}function Pe(){e.weekdayContainer?te(e.weekdayContainer):e.weekdayContainer=m("div","flatpickr-weekdays");for(let t=e.config.showMonths;t--;){const n=m("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(n)}return Ye(),e.weekdayContainer}function Ye(){if(!e.weekdayContainer)return;const t=e.l10n.firstDayOfWeek;let n=[...e.l10n.weekdays.shorthand];t>0&&t\n ${n.join("")}\n \n `}function xe(t,n=!0){const a=n?t:t-e.currentMonth;a<0&&!0===e._hidePrevMonthArrow||a>0&&!0===e._hideNextMonthArrow||(e.currentMonth+=a,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,M("onYearChange"),U()),oe(),M("onMonthChange"),de())}function V(t){return!(!e.config.appendTo||!e.config.appendTo.contains(t))||e.calendarContainer.contains(t)}function Ee(t){if(e.isOpen&&!e.config.inline){const n=k(t),a=V(n),r=n===e.input||n===e.altInput||e.element.contains(n)||t.path&&t.path.indexOf&&(~t.path.indexOf(e.input)||~t.path.indexOf(e.altInput)),l="blur"===t.type?r&&t.relatedTarget&&!V(t.relatedTarget):!r&&!a&&!V(t.relatedTarget),s=!e.config.ignoredFocusElements.some(d=>d.contains(n));l&&s&&(void 0!==e.timeContainer&&void 0!==e.minuteElement&&void 0!==e.hourElement&&""!==e.input.value&&void 0!==e.input.value&&D(),e.close(),e.config&&"range"===e.config.mode&&1===e.selectedDates.length&&(e.clear(!1),e.redraw()))}}function re(t){if(!t||e.config.minDate&&te.config.maxDate.getFullYear())return;const a=e.currentYear!==t;e.currentYear=t||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),a&&(e.redraw(),M("onYearChange"),U())}function L(t,n=!0){var a;const r=e.parseDate(t,void 0,n);if(e.config.minDate&&r&&T(r,e.config.minDate,void 0!==n?n:!e.minDateHasTime)<0||e.config.maxDate&&r&&T(r,e.config.maxDate,void 0!==n?n:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&0===e.config.disable.length)return!0;if(void 0===r)return!1;const l=!!e.config.enable,s=null!==(a=e.config.enable)&&void 0!==a?a:e.config.disable;for(let c,d=0;d=c.from.getTime()&&r.getTime()<=c.to.getTime())return l}return!l}function se(t){return void 0!==e.daysContainer&&-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&e.daysContainer.contains(t)}function rt(t){t.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&(!t.relatedTarget||!V(t.relatedTarget))&&e.setDate(e._input.value,!0,t.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function st(t){const n=k(t),a=e.config.wrap?i.contains(n):n===e._input,r=e.config.allowInput,l=e.isOpen&&(!r||!a),s=e.config.inline&&a&&!r;if(13===t.keyCode&&a){if(r)return e.setDate(e._input.value,!0,n===e.altInput?e.config.altFormat:e.config.dateFormat),n.blur();e.open()}else if(V(n)||l||s){const d=!!e.timeContainer&&e.timeContainer.contains(n);switch(t.keyCode){case 13:d?(t.preventDefault(),D(),Te()):Re(t);break;case 27:t.preventDefault(),Te();break;case 8:case 46:a&&!e.config.allowInput&&(t.preventDefault(),e.clear());break;case 37:case 39:if(d||a)e.hourElement&&e.hourElement.focus();else if(t.preventDefault(),void 0!==e.daysContainer&&(!1===r||document.activeElement&&se(document.activeElement))){const f=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),xe(f),G(ae(1),0)):G(void 0,f)}break;case 38:case 40:t.preventDefault();const c=40===t.keyCode?1:-1;e.daysContainer&&void 0!==n.$i||n===e.input||n===e.altInput?t.ctrlKey?(t.stopPropagation(),re(e.currentYear-c),G(ae(1),0)):d||G(void 0,7*c):n===e.currentYearElement?re(e.currentYear-c):e.config.enableTime&&(!d&&e.hourElement&&e.hourElement.focus(),D(t),e._debouncedChange());break;case 9:if(d){const f=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(b=>b),u=f.indexOf(n);if(-1!==u){const b=f[u+(t.shiftKey?-1:1)];t.preventDefault(),(b||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(n)&&t.shiftKey&&(t.preventDefault(),e._input.focus())}}if(void 0!==e.amPM&&n===e.amPM)switch(t.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],F(),A();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],F(),A()}(a||V(n))&&M("onKeyDown",t)}function ke(t){if(1!==e.selectedDates.length||t&&(!t.classList.contains("flatpickr-day")||t.classList.contains("flatpickr-disabled")))return;const n=t?t.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),a=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),r=Math.min(n,e.selectedDates[0].getTime()),l=Math.max(n,e.selectedDates[0].getTime());let s=!1,d=0,c=0;for(let f=r;fr&&fd)?d=f:f>a&&(!c||f0&&O0&&O>c;Z?(y.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(Q=>{y.classList.remove(Q)})):s&&!Z||(["startRange","inRange","endRange","notAllowed"].forEach(Q=>{y.classList.remove(Q)}),void 0!==t&&(t.classList.add(n<=e.selectedDates[0].getTime()?"startRange":"endRange"),an&&O===a&&y.classList.add("endRange"),O>=d&&(0===c||O<=c)&&Ue(O,a,n)&&y.classList.add("inRange")))}}}function lt(){e.isOpen&&!e.config.static&&!e.config.inline&&le()}function He(t){return n=>{const a=e.config[`_${t}Date`]=e.parseDate(n,e.config.dateFormat),r=e.config[`_${"min"===t?"max":"min"}Date`];void 0!==a&&(e["min"===t?"minDateHasTime":"maxDateHasTime"]=a.getHours()>0||a.getMinutes()>0||a.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(l=>L(l)),!e.selectedDates.length&&"min"===t&&P(a),A()),e.daysContainer&&(We(),void 0!==a?e.currentYearElement[t]=a.getFullYear().toString():e.currentYearElement.removeAttribute(t),e.currentYearElement.disabled=!!r&&void 0!==a&&r.getFullYear()===a.getFullYear())}}function je(){return e.config.wrap?i.querySelector("[data-input]"):i}function Le(){"object"!=typeof e.config.locale&&void 0===C.l10ns[e.config.locale]&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},C.l10ns.default),"object"==typeof e.config.locale?e.config.locale:"default"!==e.config.locale?C.l10ns[e.config.locale]:void 0),De.K=`(${e.l10n.amPM[0]}|${e.l10n.amPM[1]}|${e.l10n.amPM[0].toLowerCase()}|${e.l10n.amPM[1].toLowerCase()})`,void 0===Object.assign(Object.assign({},o),JSON.parse(JSON.stringify(i.dataset||{}))).time_24hr&&void 0===C.defaultConfig.time_24hr&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Ne(e),e.parseDate=be({config:e.config,l10n:e.l10n})}function le(t){if("function"==typeof e.config.position)return void e.config.position(e,t);if(void 0===e.calendarContainer)return;M("onPreCalendarPosition");const n=t||e._positionElement,a=Array.prototype.reduce.call(e.calendarContainer.children,(X,Oe)=>X+Oe.offsetHeight,0),r=e.calendarContainer.offsetWidth,l=e.config.position.split(" "),s=l[0],d=l.length>1?l[1]:null,c=n.getBoundingClientRect(),f=window.innerHeight-c.bottom,u="above"===s||"below"!==s&&fa,b=window.pageYOffset+c.top+(u?-a-2:n.offsetHeight+2);if(v(e.calendarContainer,"arrowTop",!u),v(e.calendarContainer,"arrowBottom",u),e.config.inline)return;let S=window.pageXOffset+c.left,y=!1,fe=!1;"center"===d?(S-=(r-c.width)/2,y=!0):"right"===d&&(S-=r-c.width,fe=!0),v(e.calendarContainer,"arrowLeft",!y&&!fe),v(e.calendarContainer,"arrowCenter",y),v(e.calendarContainer,"arrowRight",fe);const O=window.document.body.offsetWidth-(window.pageXOffset+c.right),Z=S+r>window.document.body.offsetWidth,Q=O+r>window.document.body.offsetWidth;if(v(e.calendarContainer,"rightMost",Z),!e.config.static)if(e.calendarContainer.style.top=`${b}px`,Z)if(Q){const X=function(){let t=null;for(let n=0;nd.classList&&d.classList.contains("flatpickr-day")&&!d.classList.contains("flatpickr-disabled")&&!d.classList.contains("notAllowed"));if(void 0===a)return;const r=a,l=e.latestSelectedDateObj=new Date(r.dateObj.getTime()),s=(l.getMonth()e.currentMonth+e.config.showMonths-1)&&"range"!==e.config.mode;if(e.selectedDateElem=r,"single"===e.config.mode)e.selectedDates=[l];else if("multiple"===e.config.mode){const d=Se(l);d?e.selectedDates.splice(parseInt(d),1):e.selectedDates.push(l)}else"range"===e.config.mode&&(2===e.selectedDates.length&&e.clear(!1,!1),e.latestSelectedDateObj=l,e.selectedDates.push(l),0!==T(l,e.selectedDates[0],!0)&&e.selectedDates.sort((d,c)=>d.getTime()-c.getTime()));if(F(),s){const d=e.currentYear!==l.getFullYear();e.currentYear=l.getFullYear(),e.currentMonth=l.getMonth(),d&&(M("onYearChange"),U()),M("onMonthChange")}if(de(),oe(),A(),s||"range"===e.config.mode||1!==e.config.showMonths?void 0!==e.selectedDateElem&&void 0===e.hourElement&&e.selectedDateElem&&e.selectedDateElem.focus():ve(r),void 0!==e.hourElement&&void 0!==e.hourElement&&e.hourElement.focus(),e.config.closeOnSelect){const c="range"===e.config.mode&&2===e.selectedDates.length&&!e.config.enableTime;("single"===e.config.mode&&!e.config.enableTime||c)&&Te()}Y()}e.parseDate=be({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=h,e._setHoursFromDate=P,e._positionCalendar=le,e.changeMonth=xe,e.changeYear=re,e.clear=function(t=!0,n=!0){if(e.input.value="",void 0!==e.altInput&&(e.altInput.value=""),void 0!==e.mobileInput&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,!0===n&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),!0===e.config.enableTime){const{hours:a,minutes:r,seconds:l}=we(e.config);K(a,r,l)}e.redraw(),t&&M("onChange")},e.close=function(){e.isOpen=!1,e.isMobile||(void 0!==e.calendarContainer&&e.calendarContainer.classList.remove("open"),void 0!==e._input&&e._input.classList.remove("active")),M("onClose")},e._createElement=m,e.destroy=function(){void 0!==e.config&&M("onDestroy");for(let t=e._handlers.length;t--;)e._handlers[t].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){const t=e.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(t=>{try{delete e[t]}catch(n){}})},e.isEnabled=L,e.jumpToDate=j,e.open=function(t,n=e._positionElement){if(!0===e.isMobile){if(t){t.preventDefault();const r=k(t);r&&r.blur()}return void 0!==e.mobileInput&&(e.mobileInput.focus(),e.mobileInput.click()),void M("onOpen")}if(e._input.disabled||e.config.inline)return;const a=e.isOpen;e.isOpen=!0,a||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),M("onOpen"),le(n)),!0===e.config.enableTime&&!0===e.config.noCalendar&&!1===e.config.allowInput&&(void 0===t||!e.timeContainer.contains(t.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)},e.redraw=We,e.set=function(t,n){if(null!==t&&"object"==typeof t){Object.assign(e.config,t);for(const a in t)void 0!==ce[a]&&ce[a].forEach(r=>r())}else e.config[t]=n,void 0!==ce[t]?ce[t].forEach(a=>a()):R.indexOf(t)>-1&&(e.config[t]=pe(n));e.redraw(),A(!0)},e.setDate=function(t,n=!1,a=e.config.dateFormat){if(0!==t&&!t||t instanceof Array&&0===t.length)return e.clear(n);$e(t,a),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),j(void 0,n),P(),0===e.selectedDates.length&&e.clear(!1),A(n),n&&M("onChange")},e.toggle=function(t){if(!0===e.isOpen)return e.close();e.open(t)};const ce={locale:[Le,Ye],showMonths:[Ae,E,Pe],minDate:[j],maxDate:[j],clickOpens:[()=>{!0===e.config.clickOpens?(h(e._input,"focus",e.open),h(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function $e(t,n){let a=[];if(t instanceof Array)a=t.map(r=>e.parseDate(r,n));else if(t instanceof Date||"number"==typeof t)a=[e.parseDate(t,n)];else if("string"==typeof t)switch(e.config.mode){case"single":case"time":a=[e.parseDate(t,n)];break;case"multiple":a=t.split(e.config.conjunction).map(r=>e.parseDate(r,n));break;case"range":a=t.split(e.l10n.rangeSeparator).map(r=>e.parseDate(r,n))}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(t)}`));e.selectedDates=e.config.allowInvalidPreload?a:a.filter(r=>r instanceof Date&&L(r,!1)),"range"===e.config.mode&&e.selectedDates.sort((r,l)=>r.getTime()-l.getTime())}function Be(t){return t.slice().map(n=>"string"==typeof n||"number"==typeof n||n instanceof Date?e.parseDate(n,void 0,!0):n&&"object"==typeof n&&n.from&&n.to?{from:e.parseDate(n.from,void 0),to:e.parseDate(n.to,void 0)}:n).filter(n=>n)}function M(t,n){if(void 0===e.config)return;const a=e.config[t];if(void 0!==a&&a.length>0)for(let r=0;a[r]&&r{const a=new Date(e.currentYear,e.currentMonth,1);a.setMonth(e.currentMonth+n),e.config.showMonths>1||"static"===e.config.monthSelectorType?e.monthElements[n].textContent=ie(a.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=a.getMonth().toString(),t.value=a.getFullYear().toString()}),e._hidePrevMonthArrow=void 0!==e.config.minDate&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYeare.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function Ke(t){return e.selectedDates.map(n=>e.formatDate(n,t)).filter((n,a,r)=>"range"!==e.config.mode||e.config.enableTime||r.indexOf(n)===a).join("range"!==e.config.mode?e.config.conjunction:e.l10n.rangeSeparator)}function A(t=!0){void 0!==e.mobileInput&&e.mobileFormatStr&&(e.mobileInput.value=void 0!==e.latestSelectedDateObj?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=Ke(e.config.dateFormat),void 0!==e.altInput&&(e.altInput.value=Ke(e.config.altFormat)),!1!==t&&M("onValueUpdate")}function Mt(t){const n=k(t),a=e.prevMonthNav.contains(n),r=e.nextMonthNav.contains(n);a||r?xe(a?-1:1):e.yearElements.indexOf(n)>=0?n.select():n.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):n.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}return function(){e.element=e.input=i,e.isOpen=!1,function(){const t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],n=Object.assign(Object.assign({},JSON.parse(JSON.stringify(i.dataset||{}))),o),a={};e.config.parseDate=n.parseDate,e.config.formatDate=n.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:s=>{e.config._enable=Be(s)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:s=>{e.config._disable=Be(s)}});const r="time"===n.mode;if(!n.dateFormat&&(n.enableTime||r)){const s=C.defaultConfig.dateFormat||$.dateFormat;a.dateFormat=n.noCalendar||r?"H:i"+(n.enableSeconds?":S":""):s+" H:i"+(n.enableSeconds?":S":"")}if(n.altInput&&(n.enableTime||r)&&!n.altFormat){const s=C.defaultConfig.altFormat||$.altFormat;a.altFormat=n.noCalendar||r?"h:i"+(n.enableSeconds?":S K":" K"):s+` h:i${n.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:He("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:He("max")});const l=s=>d=>{e.config["min"===s?"_minTime":"_maxTime"]=e.parseDate(d,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:l("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:l("max")}),"time"===n.mode&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,a,n);for(let s=0;svoid 0!==e.config[s]).forEach(s=>{e.config[s]=pe(e.config[s]||[]).map(w)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&"single"===e.config.mode&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let s=0;s-1?e.config[c]=pe(d[c]).map(w).concat(e.config[c]):void 0===n[c]&&(e.config[c]=d[c])}n.altInputClass||(e.config.altInputClass=je().className+" "+e.config.altInputClass),M("onParseConfig")}(),Le(),e.input=je(),e.input?(e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=m(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),e._positionElement=e.config.positionElement||e._input):e.config.errorHandler(new Error("Invalid input element specified")),function(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const t=e.config.defaultDate||("INPUT"!==e.input.nodeName&&"TEXTAREA"!==e.input.nodeName||!e.input.placeholder||e.input.value!==e.input.placeholder?e.input.value:null);t&&$e(t,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()0&&(e.latestSelectedDateObj=e.selectedDates[0]),void 0!==e.config.minTime&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),void 0!==e.config.maxTime&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}(),e.utils={getDaysInMonth:(t=e.currentMonth,n=e.currentYear)=>1===t&&(n%4==0&&n%100!=0||n%400==0)?29:e.l10n.daysInMonth[t]},e.isMobile||function(){const t=window.document.createDocumentFragment();if(e.calendarContainer=m("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(t.appendChild((e.monthNav=m("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=m("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=m("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,Ae(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:()=>e.__hidePrevMonthArrow,set(t){e.__hidePrevMonthArrow!==t&&(v(e.prevMonthNav,"flatpickr-disabled",t),e.__hidePrevMonthArrow=t)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:()=>e.__hideNextMonthArrow,set(t){e.__hideNextMonthArrow!==t&&(v(e.nextMonthNav,"flatpickr-disabled",t),e.__hideNextMonthArrow=t)}}),e.currentYearElement=e.yearElements[0],de(),e.monthNav)),e.innerContainer=m("div","flatpickr-innerContainer"),e.config.weekNumbers){const{weekWrapper:a,weekNumbers:r}=function(){e.calendarContainer.classList.add("hasWeeks");const t=m("div","flatpickr-weekwrapper");t.appendChild(m("span","flatpickr-weekday",e.l10n.weekAbbreviation));const n=m("div","flatpickr-weeks");return t.appendChild(n),{weekWrapper:t,weekNumbers:n}}();e.innerContainer.appendChild(a),e.weekNumbers=r,e.weekWrapper=a}e.rContainer=m("div","flatpickr-rContainer"),e.rContainer.appendChild(Pe()),e.daysContainer||(e.daysContainer=m("div","flatpickr-days"),e.daysContainer.tabIndex=-1),oe(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),t.appendChild(e.innerContainer)}e.config.enableTime&&t.appendChild(function(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");const t=we(e.config);e.timeContainer=m("div","flatpickr-time"),e.timeContainer.tabIndex=-1;const n=m("span","flatpickr-time-separator",":"),a=ne("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=a.getElementsByTagName("input")[0];const r=ne("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=r.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=x(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),e.minuteElement.value=x(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():t.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(a),e.timeContainer.appendChild(n),e.timeContainer.appendChild(r),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");const l=ne("flatpickr-second");e.secondElement=l.getElementsByTagName("input")[0],e.secondElement.value=x(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():t.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(m("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(l)}return e.config.time_24hr||(e.amPM=m("span","flatpickr-am-pm",e.l10n.amPM[I((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}()),v(e.calendarContainer,"rangeMode","range"===e.config.mode),v(e.calendarContainer,"animate",!0===e.config.animate),v(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(t);const n=void 0!==e.config.appendTo&&void 0!==e.config.appendTo.nodeType;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!n&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):void 0!==e.config.appendTo&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){const a=m("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(a,e.element),a.appendChild(e.element),e.altInput&&a.appendChild(e.altInput),a.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(void 0!==e.config.appendTo?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}(),function(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(n=>{Array.prototype.forEach.call(e.element.querySelectorAll(`[data-${n}]`),a=>h(a,"click",e[n]))}),e.isMobile)return void function(){const t=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=m("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=t,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",void 0!==e.altInput&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch(n){}h(e.mobileInput,"change",n=>{e.setDate(k(n).value,!1,e.mobileFormatStr),M("onChange"),M("onClose")})}();const t=_e(lt,50);if(e._debouncedChange=_e(Y,300),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&h(e.daysContainer,"mouseover",n=>{"range"===e.config.mode&&ke(k(n))}),h(window.document.body,"keydown",st),!e.config.inline&&!e.config.static&&h(window,"resize",t),void 0!==window.ontouchstart?h(window.document,"touchstart",Ee):h(window.document,"mousedown",Ee),h(window.document,"focus",Ee,{capture:!0}),!0===e.config.clickOpens&&(h(e._input,"focus",e.open),h(e._input,"click",e.open)),void 0!==e.daysContainer&&(h(e.monthNav,"click",Mt),h(e.monthNav,["keyup","increment"],J),h(e.daysContainer,"click",Re)),void 0!==e.timeContainer&&void 0!==e.minuteElement&&void 0!==e.hourElement){const n=a=>k(a).select();h(e.timeContainer,["increment"],D),h(e.timeContainer,"blur",D,{capture:!0}),h(e.timeContainer,"click",Me),h([e.hourElement,e.minuteElement],["focus","click"],n),void 0!==e.secondElement&&h(e.secondElement,"focus",()=>e.secondElement&&e.secondElement.select()),void 0!==e.amPM&&h(e.amPM,"click",a=>{D(a),Y()})}e.config.allowInput&&h(e._input,"blur",rt)}(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&P(e.config.noCalendar?e.latestSelectedDateObj:void 0),A(!1)),E();const t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&t&&le(),M("onReady")}(),e}function B(i,o){const e=Array.prototype.slice.call(i).filter(g=>g instanceof HTMLElement),p=[];for(let g=0;g{C.l10ns.default=Object.assign(Object.assign({},C.l10ns.default),i)},C.setDefaults=i=>{C.defaultConfig=Object.assign(Object.assign({},C.defaultConfig),i)},C.parseDate=be({}),C.formatDate=Ne({}),C.compareDates=T,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(i){return B(this,i)}),Date.prototype.fp_incr=function(i){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof i?parseInt(i,10):i))},"undefined"!=typeof window&&(window.flatpickr=C);const Ge=C},9989:()=>{"function"!=typeof Object.assign&&(Object.assign=function(ee,...ue){if(!ee)throw TypeError("Cannot convert undefined or null to object");for(const W of ue)W&&Object.keys(W).forEach(R=>ee[R]=W[R]);return ee})}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/849.5f6112a144f036c16a05.js b/cmd/edgex-ui-server/static/web/zh/849.5f6112a144f036c16a05.js deleted file mode 100644 index 1b897c91..00000000 --- a/cmd/edgex-ui-server/static/web/zh/849.5f6112a144f036c16a05.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[849],{8849:(O,u,n)=>{n.r(u),n.d(u,{DashboardModule:()=>b});var g=n(8583),r=n(9502),e=n(476),S=n(2468),v=n(2437),l=n(8391),C=n(9744),D=n(9386),h=n(3692);let E=(()=>{class i{constructor(_,t,s,a,A,c){this.dataService=_,this.metadataSvc=t,this.schedulerSvc=s,this.notiSvc=a,this.systemAgentSvc=A,this.registrySvc=c,this.eventCount=0,this.readingCount=0,this.deviceSvcCount=0,this.deviceSvcStatusLockedCount=0,this.deviceCount=0,this.deviceStatusLockedCount=0,this.deviceProfileCount=0,this.schedulerCount=0,this.notificationCount=0,this.registeredServiceCount=0}ngOnInit(){this.dataService.ping().subscribe(()=>{this.getEventAndReadingCount()}),this.metadataSvc.ping().subscribe(()=>{this.getDeviceServiceCount(),this.getDeviceCount(),this.getDeviceProfileCount()}),this.schedulerSvc.ping().subscribe(()=>{this.getIntervalCount()}),this.notiSvc.ping().subscribe(()=>{this.getNotificationCount()}),this.systemAgentSvc.ping().subscribe(()=>{this.registrySvc.ping().subscribe(()=>{this.getRegisteredServiceCount()})})}getEventAndReadingCount(){this.dataService.eventCount().subscribe(_=>this.eventCount=_.Count),this.dataService.readingCount().subscribe(_=>this.readingCount=_.Count)}getDeviceServiceCount(){this.metadataSvc.allDeviceServices().subscribe(_=>{this.deviceSvcCount=_.services.length,_.services.forEach((t,s)=>{"LOCKED"===t.adminState&&this.deviceSvcStatusLockedCount++})})}getDeviceCount(){this.metadataSvc.allDevices().subscribe(_=>{this.deviceCount=_.devices.length,_.devices.forEach((t,s)=>{"LOCKED"===t.adminState&&this.deviceStatusLockedCount++})})}getDeviceProfileCount(){this.metadataSvc.allDeviceProfolesPagination(0,-1).subscribe(_=>{this.deviceProfileCount=_.profiles.length})}getIntervalCount(){this.schedulerSvc.findAllIntervalsPagination(0,-1).subscribe(_=>{this.schedulerCount=_.intervals.length})}getNotificationCount(){this.notiSvc.findNotificationsByStatusPagination(0,-1,"NEW").subscribe(_=>{this.notificationCount=_.notifications.length})}getRegisteredServiceCount(){this.systemAgentSvc.getRegisteredServiceAll().subscribe(_=>{this.registeredServiceCount=_.length?_.length:0})}}return i.\u0275fac=function(_){return new(_||i)(e.Y36(S.D),e.Y36(v.D),e.Y36(l.G),e.Y36(C.T),e.Y36(D.J),e.Y36(h.r))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-dashboard"]],decls:67,vars:11,consts:function(){let o,_,t,s,a,A,c;return o=" Device Services ",_="\u8BBE\u5907",t="\u8BBE\u5907\u5143\u4FE1\u606F",s="\u4EFB\u52A1\u8C03\u5EA6\u4E2D\u5FC3",a="\u901A\u77E5\u670D\u52A1",A="\u4E8B\u4EF6\u603B\u6570",c="\u8BFB\u503C\u603B\u6570",[[1,"row"],[1,"col-lg-4"],["role","button","routerLink","/metadata",1,"card"],[1,"card-body"],[1,"card-title"],o,[1,"d-inline"],[1,"badge","badge-info"],[1,"float-right","badge","badge-danger"],[1,"float-right","badge","badge-success","mr-2"],["role","button","routerLink","/metadata/device-center",1,"card"],_,["role","button","routerLink","/metadata/device-profile-center",1,"card"],t,[1,"row","mt-3"],[1,"col-lg-6"],["role","button","routerLink","/scheduler",1,"card"],s,["href","#",1,"card-link","font-weight-bolder","badge","badge-info"],["role","button","routerLink","/notifications",1,"card"],a,["role","button","routerLink","/core-data",1,"card"],A,c]},template:function(_,t){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"h5",4),e.SDv(5,5),e.qZA(),e.TgZ(6,"h5",6),e.TgZ(7,"span",7),e._uU(8),e.qZA(),e.TgZ(9,"span",8),e._uU(10),e.qZA(),e.TgZ(11,"span",9),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"div",10),e.TgZ(15,"div",3),e.TgZ(16,"h5",4),e.SDv(17,11),e.qZA(),e.TgZ(18,"h5",6),e.TgZ(19,"span",7),e._uU(20),e.qZA(),e.TgZ(21,"span",8),e._uU(22),e.qZA(),e.TgZ(23,"span",9),e._uU(24),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",1),e.TgZ(26,"div",12),e.TgZ(27,"div",3),e.TgZ(28,"h5",4),e.SDv(29,13),e.qZA(),e.TgZ(30,"h5",6),e.TgZ(31,"span",7),e._uU(32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"div",15),e.TgZ(35,"div",16),e.TgZ(36,"div",3),e.TgZ(37,"h5",4),e.SDv(38,17),e.qZA(),e.TgZ(39,"h5"),e.TgZ(40,"a",18),e._uU(41),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",15),e.TgZ(43,"div",19),e.TgZ(44,"div",3),e.TgZ(45,"h5",4),e.SDv(46,20),e.qZA(),e.TgZ(47,"h5"),e.TgZ(48,"a",18),e._uU(49),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"div",15),e.TgZ(52,"div",21),e.TgZ(53,"div",3),e.TgZ(54,"h5",4),e.SDv(55,22),e.qZA(),e.TgZ(56,"h5"),e.TgZ(57,"a",18),e._uU(58),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",15),e.TgZ(60,"div",21),e.TgZ(61,"div",3),e.TgZ(62,"h5",4),e.SDv(63,23),e.qZA(),e.TgZ(64,"h5"),e.TgZ(65,"a",18),e._uU(66),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.hij(" ",t.deviceSvcCount>100?"100+":t.deviceSvcCount," "),e.xp6(2),e.hij("Locked ",t.deviceSvcStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",t.deviceSvcCount-t.deviceSvcStatusLockedCount,""),e.xp6(8),e.hij(" ",t.deviceCount>100?"100+":t.deviceCount," "),e.xp6(2),e.hij("Locked ",t.deviceStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",t.deviceCount-t.deviceStatusLockedCount,""),e.xp6(8),e.Oqu(t.deviceProfileCount>100?"100+":t.deviceProfileCount),e.xp6(9),e.Oqu(t.schedulerCount>100?"100+":t.schedulerCount),e.xp6(8),e.Oqu(t.notificationCount>100?"100+":t.notificationCount),e.xp6(9),e.Oqu(t.eventCount),e.xp6(8),e.Oqu(t.readingCount))},directives:[r.rH],styles:[".shadow[_ngcontent-%COMP%]{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}.card[_ngcontent-%COMP%]:hover{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}"]}),i})();const T=[{path:"",canActivate:[n(8253).a],component:E}];let f=(()=>{class i{}return i.\u0275fac=function(_){return new(_||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[r.Bz.forChild(T)],r.Bz]}),i})(),b=(()=>{class i{}return i.\u0275fac=function(_){return new(_||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[g.ez,f]]}),i})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/849.788edd22071d3b7246e9.js b/cmd/edgex-ui-server/static/web/zh/849.788edd22071d3b7246e9.js deleted file mode 100644 index 1b897c91..00000000 --- a/cmd/edgex-ui-server/static/web/zh/849.788edd22071d3b7246e9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[849],{8849:(O,u,n)=>{n.r(u),n.d(u,{DashboardModule:()=>b});var g=n(8583),r=n(9502),e=n(476),S=n(2468),v=n(2437),l=n(8391),C=n(9744),D=n(9386),h=n(3692);let E=(()=>{class i{constructor(_,t,s,a,A,c){this.dataService=_,this.metadataSvc=t,this.schedulerSvc=s,this.notiSvc=a,this.systemAgentSvc=A,this.registrySvc=c,this.eventCount=0,this.readingCount=0,this.deviceSvcCount=0,this.deviceSvcStatusLockedCount=0,this.deviceCount=0,this.deviceStatusLockedCount=0,this.deviceProfileCount=0,this.schedulerCount=0,this.notificationCount=0,this.registeredServiceCount=0}ngOnInit(){this.dataService.ping().subscribe(()=>{this.getEventAndReadingCount()}),this.metadataSvc.ping().subscribe(()=>{this.getDeviceServiceCount(),this.getDeviceCount(),this.getDeviceProfileCount()}),this.schedulerSvc.ping().subscribe(()=>{this.getIntervalCount()}),this.notiSvc.ping().subscribe(()=>{this.getNotificationCount()}),this.systemAgentSvc.ping().subscribe(()=>{this.registrySvc.ping().subscribe(()=>{this.getRegisteredServiceCount()})})}getEventAndReadingCount(){this.dataService.eventCount().subscribe(_=>this.eventCount=_.Count),this.dataService.readingCount().subscribe(_=>this.readingCount=_.Count)}getDeviceServiceCount(){this.metadataSvc.allDeviceServices().subscribe(_=>{this.deviceSvcCount=_.services.length,_.services.forEach((t,s)=>{"LOCKED"===t.adminState&&this.deviceSvcStatusLockedCount++})})}getDeviceCount(){this.metadataSvc.allDevices().subscribe(_=>{this.deviceCount=_.devices.length,_.devices.forEach((t,s)=>{"LOCKED"===t.adminState&&this.deviceStatusLockedCount++})})}getDeviceProfileCount(){this.metadataSvc.allDeviceProfolesPagination(0,-1).subscribe(_=>{this.deviceProfileCount=_.profiles.length})}getIntervalCount(){this.schedulerSvc.findAllIntervalsPagination(0,-1).subscribe(_=>{this.schedulerCount=_.intervals.length})}getNotificationCount(){this.notiSvc.findNotificationsByStatusPagination(0,-1,"NEW").subscribe(_=>{this.notificationCount=_.notifications.length})}getRegisteredServiceCount(){this.systemAgentSvc.getRegisteredServiceAll().subscribe(_=>{this.registeredServiceCount=_.length?_.length:0})}}return i.\u0275fac=function(_){return new(_||i)(e.Y36(S.D),e.Y36(v.D),e.Y36(l.G),e.Y36(C.T),e.Y36(D.J),e.Y36(h.r))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-dashboard"]],decls:67,vars:11,consts:function(){let o,_,t,s,a,A,c;return o=" Device Services ",_="\u8BBE\u5907",t="\u8BBE\u5907\u5143\u4FE1\u606F",s="\u4EFB\u52A1\u8C03\u5EA6\u4E2D\u5FC3",a="\u901A\u77E5\u670D\u52A1",A="\u4E8B\u4EF6\u603B\u6570",c="\u8BFB\u503C\u603B\u6570",[[1,"row"],[1,"col-lg-4"],["role","button","routerLink","/metadata",1,"card"],[1,"card-body"],[1,"card-title"],o,[1,"d-inline"],[1,"badge","badge-info"],[1,"float-right","badge","badge-danger"],[1,"float-right","badge","badge-success","mr-2"],["role","button","routerLink","/metadata/device-center",1,"card"],_,["role","button","routerLink","/metadata/device-profile-center",1,"card"],t,[1,"row","mt-3"],[1,"col-lg-6"],["role","button","routerLink","/scheduler",1,"card"],s,["href","#",1,"card-link","font-weight-bolder","badge","badge-info"],["role","button","routerLink","/notifications",1,"card"],a,["role","button","routerLink","/core-data",1,"card"],A,c]},template:function(_,t){1&_&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"h5",4),e.SDv(5,5),e.qZA(),e.TgZ(6,"h5",6),e.TgZ(7,"span",7),e._uU(8),e.qZA(),e.TgZ(9,"span",8),e._uU(10),e.qZA(),e.TgZ(11,"span",9),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"div",10),e.TgZ(15,"div",3),e.TgZ(16,"h5",4),e.SDv(17,11),e.qZA(),e.TgZ(18,"h5",6),e.TgZ(19,"span",7),e._uU(20),e.qZA(),e.TgZ(21,"span",8),e._uU(22),e.qZA(),e.TgZ(23,"span",9),e._uU(24),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",1),e.TgZ(26,"div",12),e.TgZ(27,"div",3),e.TgZ(28,"h5",4),e.SDv(29,13),e.qZA(),e.TgZ(30,"h5",6),e.TgZ(31,"span",7),e._uU(32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"div",15),e.TgZ(35,"div",16),e.TgZ(36,"div",3),e.TgZ(37,"h5",4),e.SDv(38,17),e.qZA(),e.TgZ(39,"h5"),e.TgZ(40,"a",18),e._uU(41),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",15),e.TgZ(43,"div",19),e.TgZ(44,"div",3),e.TgZ(45,"h5",4),e.SDv(46,20),e.qZA(),e.TgZ(47,"h5"),e.TgZ(48,"a",18),e._uU(49),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"div",15),e.TgZ(52,"div",21),e.TgZ(53,"div",3),e.TgZ(54,"h5",4),e.SDv(55,22),e.qZA(),e.TgZ(56,"h5"),e.TgZ(57,"a",18),e._uU(58),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",15),e.TgZ(60,"div",21),e.TgZ(61,"div",3),e.TgZ(62,"h5",4),e.SDv(63,23),e.qZA(),e.TgZ(64,"h5"),e.TgZ(65,"a",18),e._uU(66),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_&&(e.xp6(8),e.hij(" ",t.deviceSvcCount>100?"100+":t.deviceSvcCount," "),e.xp6(2),e.hij("Locked ",t.deviceSvcStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",t.deviceSvcCount-t.deviceSvcStatusLockedCount,""),e.xp6(8),e.hij(" ",t.deviceCount>100?"100+":t.deviceCount," "),e.xp6(2),e.hij("Locked ",t.deviceStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",t.deviceCount-t.deviceStatusLockedCount,""),e.xp6(8),e.Oqu(t.deviceProfileCount>100?"100+":t.deviceProfileCount),e.xp6(9),e.Oqu(t.schedulerCount>100?"100+":t.schedulerCount),e.xp6(8),e.Oqu(t.notificationCount>100?"100+":t.notificationCount),e.xp6(9),e.Oqu(t.eventCount),e.xp6(8),e.Oqu(t.readingCount))},directives:[r.rH],styles:[".shadow[_ngcontent-%COMP%]{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}.card[_ngcontent-%COMP%]:hover{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}"]}),i})();const T=[{path:"",canActivate:[n(8253).a],component:E}];let f=(()=>{class i{}return i.\u0275fac=function(_){return new(_||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[r.Bz.forChild(T)],r.Bz]}),i})(),b=(()=>{class i{}return i.\u0275fac=function(_){return new(_||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[g.ez,f]]}),i})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/849.c2ff0f8f788ceb65b645.js b/cmd/edgex-ui-server/static/web/zh/849.c2ff0f8f788ceb65b645.js new file mode 100644 index 00000000..274de56d --- /dev/null +++ b/cmd/edgex-ui-server/static/web/zh/849.c2ff0f8f788ceb65b645.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[849],{8849:(R,v,o)=>{o.r(v),o.d(v,{DashboardModule:()=>O});var A=o(8583),g=o(9502),e=o(476),S=o(2468),l=o(2437),h=o(8391),C=o(9744),Z=o(9386),_=o(3692);let D=(()=>{class n{constructor(t,i,d,c,r,u){this.dataService=t,this.metadataSvc=i,this.schedulerSvc=d,this.notiSvc=c,this.systemAgentSvc=r,this.registrySvc=u,this.eventCount=0,this.readingCount=0,this.deviceSvcCount=0,this.deviceSvcStatusLockedCount=0,this.deviceCount=0,this.deviceStatusLockedCount=0,this.deviceProfileCount=0,this.schedulerCount=0,this.notificationCount=0,this.registeredServiceCount=0}ngOnInit(){this.dataService.ping().subscribe(()=>{this.getEventAndReadingCount()}),this.metadataSvc.ping().subscribe(()=>{this.getDeviceServiceCount(),this.getDeviceCount(),this.getDeviceProfileCount()}),this.schedulerSvc.ping().subscribe(()=>{this.getIntervalCount()}),this.notiSvc.ping().subscribe(()=>{this.getNotificationCount()}),this.systemAgentSvc.ping().subscribe(()=>{this.registrySvc.ping().subscribe(()=>{this.getRegisteredServiceCount()})})}getEventAndReadingCount(){this.dataService.eventCount().subscribe(t=>this.eventCount=t.Count),this.dataService.readingCount().subscribe(t=>this.readingCount=t.Count)}getDeviceServiceCount(){this.metadataSvc.allDeviceServices().subscribe(t=>{this.deviceSvcCount=t.services.length,t.services.forEach((i,d)=>{"LOCKED"===i.adminState&&this.deviceSvcStatusLockedCount++})})}getDeviceCount(){this.metadataSvc.allDevices().subscribe(t=>{this.deviceCount=t.devices.length,t.devices.forEach((i,d)=>{"LOCKED"===i.adminState&&this.deviceStatusLockedCount++})})}getDeviceProfileCount(){this.metadataSvc.allDeviceProfolesPagination(0,-1).subscribe(t=>{this.deviceProfileCount=t.profiles.length})}getIntervalCount(){this.schedulerSvc.findAllIntervalsPagination(0,-1).subscribe(t=>{this.schedulerCount=t.intervals.length})}getNotificationCount(){this.notiSvc.findNotificationsByStatusPagination(0,-1,"NEW").subscribe(t=>{this.notificationCount=t.notifications.length})}getRegisteredServiceCount(){this.systemAgentSvc.getRegisteredServiceAll().subscribe(t=>{this.registeredServiceCount=t.length?t.length:0})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(S.D),e.Y36(l.D),e.Y36(h.G),e.Y36(C.T),e.Y36(Z.J),e.Y36(_.r))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-dashboard"]],decls:67,vars:11,consts:function(){let s,t,i,d,c,r,u;return s=" Device Services ",t="\u8BBE\u5907",i="\u8BBE\u5907\u5143\u4FE1\u606F",d="\u4EFB\u52A1\u8C03\u5EA6\u4E2D\u5FC3",c="\u901A\u77E5\u670D\u52A1",r="\u4E8B\u4EF6\u603B\u6570",u="\u8BFB\u503C\u603B\u6570",[[1,"row"],[1,"col-lg-4"],["role","button","routerLink","/metadata",1,"card"],[1,"card-body"],[1,"card-title"],s,[1,"d-inline"],[1,"badge","badge-info"],[1,"float-right","badge","badge-danger"],[1,"float-right","badge","badge-success","mr-2"],["role","button","routerLink","/metadata/device-center",1,"card"],t,["role","button","routerLink","/metadata/device-profile-center",1,"card"],i,[1,"row","mt-3"],[1,"col-lg-6"],["role","button","routerLink","/scheduler",1,"card"],d,["href","#",1,"card-link","font-weight-bolder","badge","badge-info"],["role","button","routerLink","/notifications",1,"card"],c,["role","button","routerLink","/core-data",1,"card"],r,u]},template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"h5",4),e.SDv(5,5),e.qZA(),e.TgZ(6,"h5",6),e.TgZ(7,"span",7),e._uU(8),e.qZA(),e.TgZ(9,"span",8),e._uU(10),e.qZA(),e.TgZ(11,"span",9),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"div",10),e.TgZ(15,"div",3),e.TgZ(16,"h5",4),e.SDv(17,11),e.qZA(),e.TgZ(18,"h5",6),e.TgZ(19,"span",7),e._uU(20),e.qZA(),e.TgZ(21,"span",8),e._uU(22),e.qZA(),e.TgZ(23,"span",9),e._uU(24),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",1),e.TgZ(26,"div",12),e.TgZ(27,"div",3),e.TgZ(28,"h5",4),e.SDv(29,13),e.qZA(),e.TgZ(30,"h5",6),e.TgZ(31,"span",7),e._uU(32),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"div",15),e.TgZ(35,"div",16),e.TgZ(36,"div",3),e.TgZ(37,"h5",4),e.SDv(38,17),e.qZA(),e.TgZ(39,"h5"),e.TgZ(40,"a",18),e._uU(41),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(42,"div",15),e.TgZ(43,"div",19),e.TgZ(44,"div",3),e.TgZ(45,"h5",4),e.SDv(46,20),e.qZA(),e.TgZ(47,"h5"),e.TgZ(48,"a",18),e._uU(49),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"div",15),e.TgZ(52,"div",21),e.TgZ(53,"div",3),e.TgZ(54,"h5",4),e.SDv(55,22),e.qZA(),e.TgZ(56,"h5"),e.TgZ(57,"a",18),e._uU(58),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"div",15),e.TgZ(60,"div",21),e.TgZ(61,"div",3),e.TgZ(62,"h5",4),e.SDv(63,23),e.qZA(),e.TgZ(64,"h5"),e.TgZ(65,"a",18),e._uU(66),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.hij(" ",i.deviceSvcCount>100?"100+":i.deviceSvcCount," "),e.xp6(2),e.hij("Locked ",i.deviceSvcStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",i.deviceSvcCount-i.deviceSvcStatusLockedCount,""),e.xp6(8),e.hij(" ",i.deviceCount>100?"100+":i.deviceCount," "),e.xp6(2),e.hij("Locked ",i.deviceStatusLockedCount,""),e.xp6(2),e.hij("Unlocked ",i.deviceCount-i.deviceStatusLockedCount,""),e.xp6(8),e.Oqu(i.deviceProfileCount>100?"100+":i.deviceProfileCount),e.xp6(9),e.Oqu(i.schedulerCount>100?"100+":i.schedulerCount),e.xp6(8),e.Oqu(i.notificationCount>100?"100+":i.notificationCount),e.xp6(9),e.Oqu(i.eventCount),e.xp6(8),e.Oqu(i.readingCount))},directives:[g.rH],styles:[".shadow[_ngcontent-%COMP%]{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}.card[_ngcontent-%COMP%]:hover{box-shadow:0 .5rem 1rem #00000026!important;border-radius:.25rem!important}"]}),n})();const f=[{path:"",canActivate:[o(8253).a],component:D}];let b=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[g.Bz.forChild(f)],g.Bz]}),n})(),O=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[A.ez,b]]}),n})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/894.58b03acb8877946712cc.js b/cmd/edgex-ui-server/static/web/zh/894.58b03acb8877946712cc.js deleted file mode 100644 index 336d7179..00000000 --- a/cmd/edgex-ui-server/static/web/zh/894.58b03acb8877946712cc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[894],{894:(Qe,E,l)=>{l.r(E),l.d(E,{AppServiceModule:()=>Xe});var c=l(8583),r=l(3092),p=l(9502),e=l(476);let I=(()=>{class _{constructor(){}ngOnInit(){}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[p.lC],styles:[""]}),_})();var m=l(3692);const M=function(_){return{appSvcKey:_}};function R(_,a){if(1&_&&(e.TgZ(0,"li",8),e.TgZ(1,"div",9),e.TgZ(2,"div",10),e._UZ(3,"i",11),e.qZA(),e.TgZ(4,"div",12),e.TgZ(5,"div",13),e.TgZ(6,"h5",14),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",15),e._uU(10),e.qZA(),e.TgZ(11,"span",16),e._UZ(12,"i",17),e.TgZ(13,"span"),e.SDv(14,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_){const t=a.$implicit;e.xp6(7),e.hij(" ",t.ServiceId," "),e.xp6(3),e.hij("port ",t.Port,""),e.xp6(1),e.Q6J("queryParams",e.VKq(3,M,t.ServiceId))}}let q=(()=>{class _{constructor(t){this.registrySvc=t,this.appServiceList=[]}ngOnInit(){this.getAllAppSvc()}getAllAppSvc(){this.registrySvc.getAllAppSvc().subscribe(t=>{this.appServiceList=[],t.forEach(n=>{n.ServiceId.startsWith("app-")&&this.appServiceList.push(n)})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(m.r))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service-list"]],decls:8,vars:1,consts:function(){let a,t;return a="\u5E94\u7528\u670D\u52A1\u5217\u8868",t="\u914D\u7F6E",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],[1,"font-weight-bold"],a,[1,"card-body"],[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-3"],[1,"d-inline","mr-3","align-middle","text-dark"],["role","button",1,"badge","badge-info","mr-3"],["role","button","routerLink","../app-service-configurable",1,"badge","badge-secondary","float-right",3,"queryParams"],[1,"fa","fa-cog","mr-1"],t]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"ul",6),e.YNc(7,R,15,5,"li",7),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngForOf",n.appServiceList))},directives:[c.sg,p.rH],styles:[""]}),_})();function b(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,18),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e.TgZ(9,"span"),e.SDv(10,20),e.qZA(),e._UZ(11,"span",21),e.qZA(),e.TgZ(12,"div",7),e.TgZ(13,"select",8),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Type=i}),e.TgZ(14,"option",22),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",23),e._uU(17,"mqtt"),e.qZA(),e.TgZ(18,"option",24),e._uU(19,"zero"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",25),e.TgZ(21,"div",26),e.TgZ(22,"div",14),e.TgZ(23,"div",27),e._UZ(24,"i",28),e.TgZ(25,"span"),e.SDv(26,29),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.TgZ(28,"form"),e.TgZ(29,"div",3),e.TgZ(30,"label",30),e.SDv(31,31),e.qZA(),e.TgZ(32,"div",32),e.TgZ(33,"input",33),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",3),e.TgZ(35,"label",30),e.SDv(36,34),e.qZA(),e.TgZ(37,"div",32),e.TgZ(38,"input",35),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",3),e.TgZ(40,"label",30),e.SDv(41,36),e.qZA(),e.TgZ(42,"div",32),e.TgZ(43,"input",37),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",3),e.TgZ(45,"label",38),e.SDv(46,39),e.qZA(),e.TgZ(47,"div",40),e.TgZ(48,"input",41),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",26),e.TgZ(50,"div",14),e.TgZ(51,"div",27),e._UZ(52,"i",28),e.TgZ(53,"span"),e._uU(54,"Publish Host"),e.qZA(),e.qZA(),e.TgZ(55,"div",19),e.TgZ(56,"form"),e.TgZ(57,"div",3),e.TgZ(58,"label",30),e.SDv(59,42),e.qZA(),e.TgZ(60,"div",32),e.TgZ(61,"input",33),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",3),e.TgZ(63,"label",30),e.SDv(64,43),e.qZA(),e.TgZ(65,"div",32),e.TgZ(66,"input",35),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",3),e.TgZ(68,"label",30),e.SDv(69,44),e.qZA(),e.TgZ(70,"div",32),e.TgZ(71,"input",37),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",3),e.TgZ(73,"label",30),e.SDv(74,45),e.qZA(),e.TgZ(75,"div",32),e.TgZ(76,"input",46),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.PublishTopic=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",25),e.TgZ(78,"div",47),e.TgZ(79,"div",48),e.TgZ(80,"div",27),e._UZ(81,"i",28),e.TgZ(82,"span"),e.SDv(83,49),e.qZA(),e.qZA(),e.TgZ(84,"div",19),e.TgZ(85,"form"),e.TgZ(86,"div",3),e.TgZ(87,"label",4),e._uU(88,"ClientId"),e.qZA(),e.TgZ(89,"div",7),e.TgZ(90,"input",50),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(91,"div",3),e.TgZ(92,"label",4),e._uU(93,"Qos"),e.qZA(),e.TgZ(94,"div",7),e.TgZ(95,"input",51),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Qos=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(96,"div",3),e.TgZ(97,"label",4),e._uU(98,"KeepAlive"),e.qZA(),e.TgZ(99,"div",7),e.TgZ(100,"input",52),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(101,"div",3),e.TgZ(102,"label",4),e._uU(103,"Retained"),e.qZA(),e.TgZ(104,"div",7),e.TgZ(105,"select",53),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Retained=i}),e.TgZ(106,"option",54),e._uU(107,"false"),e.qZA(),e.TgZ(108,"option",55),e._uU(109,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(110,"div",3),e.TgZ(111,"label",4),e._uU(112,"AutoReconnect"),e.qZA(),e.TgZ(113,"div",7),e.TgZ(114,"select",56),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.AutoReconnect=i}),e.TgZ(115,"option",54),e._uU(116,"false"),e.qZA(),e.TgZ(117,"option",55),e._uU(118,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(119,"div",3),e.TgZ(120,"label",4),e._uU(121,"ConnectTimeout"),e.qZA(),e.TgZ(122,"div",7),e.TgZ(123,"input",57),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(124,"div",3),e.TgZ(125,"label",4),e._uU(126,"authmode"),e.qZA(),e.TgZ(127,"div",7),e.TgZ(128,"select",58),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.authmode=i}),e.TgZ(129,"option",59),e._uU(130,"none"),e.qZA(),e.TgZ(131,"option",60),e._uU(132,"usernamepassword"),e.qZA(),e.TgZ(133,"option",61),e._uU(134,"clientcert"),e.qZA(),e.TgZ(135,"option",62),e._uU(136,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(137,"div",3),e.TgZ(138,"label",4),e._uU(139,"SkipCertVerify"),e.qZA(),e.TgZ(140,"div",7),e.TgZ(141,"select",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.SkipCertVerify=i}),e.TgZ(142,"option",54),e._uU(143,"false"),e.qZA(),e.TgZ(144,"option",55),e._uU(145,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(146,"div",3),e.TgZ(147,"label",4),e._uU(148,"secretname"),e.qZA(),e.TgZ(149,"div",7),e.TgZ(150,"input",64),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.secretname=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Type),e.xp6(20),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.PublishTopic),e.xp6(14),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Qos),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Retained),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.authmode),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.secretname)}}function U(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e._uU(4,"External MQTT Trigger"),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e._uU(9,"Url"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",65),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Url=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",3),e.TgZ(13,"label",4),e._uU(14,"SubscribeTopics"),e.qZA(),e.TgZ(15,"div",7),e.TgZ(16,"input",41),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SubscribeTopics=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",3),e.TgZ(18,"label",4),e._uU(19,"PublishTopic"),e.qZA(),e.TgZ(20,"div",7),e.TgZ(21,"input",46),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.PublishTopic=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",3),e.TgZ(23,"label",4),e._uU(24,"ClientId"),e.qZA(),e.TgZ(25,"div",7),e.TgZ(26,"input",50),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",3),e.TgZ(28,"label",4),e._uU(29,"ConnectTimeout"),e.qZA(),e.TgZ(30,"div",7),e.TgZ(31,"input",57),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"div",3),e.TgZ(33,"label",4),e._uU(34,"AutoReconnect"),e.qZA(),e.TgZ(35,"div",7),e.TgZ(36,"select",56),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AutoReconnect=i}),e.TgZ(37,"option",54),e._uU(38,"false"),e.qZA(),e.TgZ(39,"option",55),e._uU(40,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",3),e.TgZ(42,"label",4),e._uU(43,"KeepAlive"),e.qZA(),e.TgZ(44,"div",7),e.TgZ(45,"input",52),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",3),e.TgZ(47,"label",4),e._uU(48,"QoS"),e.qZA(),e.TgZ(49,"div",7),e.TgZ(50,"input",66),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.QoS=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",3),e.TgZ(52,"label",4),e._uU(53,"Retain"),e.qZA(),e.TgZ(54,"div",7),e.TgZ(55,"select",53),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Retain=i}),e.TgZ(56,"option",54),e._uU(57,"false"),e.qZA(),e.TgZ(58,"option",55),e._uU(59,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(60,"div",3),e.TgZ(61,"label",4),e._uU(62,"SkipCertVerify"),e.qZA(),e.TgZ(63,"div",7),e.TgZ(64,"select",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SkipCertVerify=i}),e.TgZ(65,"option",54),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",55),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",3),e.TgZ(70,"label",4),e._uU(71,"SecretPath"),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"input",67),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SecretPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(74,"div",3),e.TgZ(75,"label",4),e._uU(76,"AuthMode"),e.qZA(),e.TgZ(77,"div",7),e.TgZ(78,"select",68),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AuthMode=i}),e.TgZ(79,"option",59),e._uU(80,"none"),e.qZA(),e.TgZ(81,"option",60),e._uU(82,"usernamepassword"),e.qZA(),e.TgZ(83,"option",61),e._uU(84,"clientcert"),e.qZA(),e.TgZ(85,"option",62),e._uU(86,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(11),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Url),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SubscribeTopics),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.PublishTopic),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.QoS),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Retain),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SecretPath),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AuthMode)}}function G(_,a){1&_&&(e.TgZ(0,"div",48),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,69),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"div",0),e.TgZ(7,"small"),e._UZ(8,"i",1),e.TgZ(9,"span"),e.SDv(10,70),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA())}let O=(()=>{class _{constructor(){this._configTrigger={},this.configTriggerChange=new e.vpe,this.configTrigger={},this.configTrigger.EdgexMessageBus={Optional:{},SubscribeHost:{},PublishHost:{}},this.configTrigger.EdgexMessageBus.Optional={},this.configTrigger.ExternalMqtt={},this.configTrigger.HTTP={}}get configTrigger(){return this._configTrigger}set configTrigger(t){Object.assign(this._configTrigger,t)}ngOnInit(){this.renderPopoverComponent()}ngOnChanges(){this.configTriggerChange.emit(this.configTrigger)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}onTriggerSelected(){this.renderPopoverComponent()}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-trigger"]],inputs:{configTrigger:"configTrigger"},outputs:{configTriggerChange:"configTriggerChange"},features:[e.TTD],decls:24,vars:4,consts:function(){let a,t,n,i,o,s,d,u,T,C,Z,h,P,v,S,N;return a="\u5F53\u524D\u7248\u672C\u4E2D\uFF0C\u6539\u53D8\u89E6\u53D1\u5668Trigger\u9700\u8981\u91CD\u542F\u5F53\u524D\u5E94\u7528\u670D\u52A1\uFF0C\u56E0\u6B64\u76EE\u524D\u53EA\u652F\u6301\u9884\u89C8\u5F53\u524D\u5E94\u7528\u670D\u52A1\u4F7F\u7528\u7684\u89E6\u53D1\u5668\u4FE1\u606F\uFF0C\u4E0B\u4E00\u4E2A\u7248\u672CGUI\u5C06\u4F1A\u652F\u6301\u52A8\u6001\u4FEE\u6539\u89E6\u53D1\u5668",t="\u7C7B\u578B",n="Edgex\u6D88\u606F\u603B\u7EBF\u89E6\u53D1\u5668",i="\u7C7B\u578B",o="\u8BA2\u9605\u4E3B\u673A\u4FE1\u606F",s="Host",d="Port",u="Protocol",T="SubscribeTopics",C="Host",Z="Port",h="Protocol",P="PublishTopic",v="\u914D\u7F6E\u9009\u9879",S="HTTP\u89E6\u53D1\u5668",N="no optional fields needs to setup for http trigger",[["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],a,[1,"form-group","row"],[1,"col-sm-2","col-form-label"],t,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Trigger type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","edgex-messagebus"],["value","external-mqtt"],["value","http"],["class","card mb-3",4,"ngIf"],["class","card",4,"ngIf"],[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],n,[1,"card-body"],i,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","EdgeX Message Bus type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["value","redis"],["value","mqtt"],["value","zero"],[1,"row"],[1,"col-sm-6","col-md-6"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tag","mr-2","text-danger"],o,[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],s,[1,"col-sm-9"],["type","text","name","Host",1,"form-control",3,"ngModel","ngModelChange"],d,["type","text","name","Port",1,"form-control",3,"ngModel","ngModelChange"],u,["type","text","name","Protocol",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-3","col-md-3","col-form-label","text-nowrap","text-truncate"],T,[1,"col-sm-9","col-md-9"],["type","text","name","SubscribeTopics",1,"form-control",3,"ngModel","ngModelChange"],C,Z,h,P,["type","text","name","PublishTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-12","col-md-12"],[1,"card"],v,["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Qos",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","authmode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","secretname",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","QoS",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],S,N]},template:function(t,n){1&t&&(e.TgZ(0,"div"),e.TgZ(1,"div",0),e.TgZ(2,"small"),e._UZ(3,"i",1),e.TgZ(4,"span"),e.tHW(5,2),e._UZ(6,"br"),e.N_p(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"form"),e.TgZ(8,"div",3),e.TgZ(9,"label",4),e.TgZ(10,"span"),e.SDv(11,5),e.qZA(),e._UZ(12,"span",6),e.qZA(),e.TgZ(13,"div",7),e.TgZ(14,"select",8),e.NdJ("ngModelChange",function(o){return n.configTrigger.Type=o})("ngModelChange",function(){return n.onTriggerSelected()}),e.TgZ(15,"option",9),e._uU(16,"edgex-messagebus"),e.qZA(),e.TgZ(17,"option",10),e._uU(18,"external-mqtt"),e.qZA(),e.TgZ(19,"option",11),e._uU(20,"http"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(21,b,151,18,"div",12),e.YNc(22,U,87,12,"div",12),e.YNc(23,G,11,0,"div",13),e.qZA()),2&t&&(e.xp6(14),e.Q6J("ngModel",n.configTrigger.Type),e.xp6(7),e.Q6J("ngIf","edgex-messagebus"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","external-mqtt"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","http"===n.configTrigger.Type))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,c.O5,r.Fj],styles:[""]}),_})();var A=l(7822);let x=(()=>{class _{constructor(t){this.el=t,this.classes="border border-info shadow-lg bg-white rounded"}ondragover(t){t.preventDefault(),this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.add(i)})}ondragenter(t){}ondragend(t){}ondragleave(t){this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.remove(i)})}ondragexit(t){}ondrop(t){this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.remove(i)})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(e.SBq))},_.\u0275dir=e.lG2({type:_,selectors:[["","appDragHighlight",""]],hostBindings:function(t,n){1&t&&e.NdJ("dragover",function(o){return n.ondragover(o)})("dragenter",function(o){return n.ondragenter(o)})("dragend",function(o){return n.ondragend(o)})("dragleave",function(o){return n.ondragleave(o)})("dragexit",function(o){return n.ondragexit(o)})("drop",function(o){return n.ondrop(o)})}}),_})(),F=(()=>{class _{constructor(){this.addTagsChange=new e.vpe,this.addTags={Parameters:{Tags:""}}}ngOnInit(){}ngOnChanges(){this.addTagsChange.emit(this.addTags)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-add-tags"]],inputs:{addTags:"addTags"},outputs:{addTagsChange:"addTagsChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","String containing comma separated list of tag key/value pairs. The tag key/value pairs are colon seperated,\n for example: \n GatewayId:HoustonStore000123,Latitude:29.630771,Longitude:-95.377603",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","Tags",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Tags"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(o){return n.addTags.Parameters.Tags=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.addTags.Parameters.Tags))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function y(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"BatchThreshold"),e.qZA(),e._UZ(4,"span",12),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",13),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().batch.Parameters.BatchThreshold=i}),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.BatchThreshold)}}function J(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"TimeInterval"),e.qZA(),e._UZ(4,"span",14),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",15),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().batch.Parameters.TimeInterval=i}),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.TimeInterval)}}let B=(()=>{class _{constructor(){this.batchChange=new e.vpe,this.batch={Parameters:{Mode:"bycount",IsEventData:"true"}}}ngOnInit(){}ngOnChanges(){this.batchChange.emit(this.batch)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-batch"]],inputs:{batch:"batch"},outputs:{batchChange:"batchChange"},features:[e.TTD],decls:26,vars:4,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Mode",1,"custom-select",3,"ngModel","ngModelChange"],["value","bycount"],["value","bytime"],["value","bytimecount"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","If true, specifies that the data being batch is Events and to un-marshal the batched data to []Event prior to returning the batched data. By default the batched data returned is [][]byte",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","IsEventData",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Number of items to batch before sending batched items to the next function in the pipeline.
\n Used with "bycount" and "bytimecount" modes',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","BatchThreshold",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Amount of time to batch before sending batched items to the next function in the pipeline.
\n Used with "bytime" and "bytimecount" modes,
\n
\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","TimeInterval",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Mode"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"select",3),e.NdJ("ngModelChange",function(o){return n.batch.Parameters.Mode=o}),e.TgZ(7,"option",4),e._uU(8,"bycount"),e.qZA(),e.TgZ(9,"option",5),e._uU(10,"bytime"),e.qZA(),e.TgZ(11,"option",6),e._uU(12,"bytimecount"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(13,y,7,1,"div",7),e.YNc(14,J,7,1,"div",7),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"IsEventData"),e.qZA(),e._UZ(19,"span",8),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"select",9),e.NdJ("ngModelChange",function(o){return n.batch.Parameters.IsEventData=o}),e.TgZ(22,"option",10),e._uU(23,"false"),e.qZA(),e.TgZ(24,"option",11),e._uU(25,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngIf","bycount"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(1),e.Q6J("ngIf","bytime"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngModel",n.batch.Parameters.IsEventData))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,c.O5,r.Fj],styles:[""]}),_})(),D=(()=>{class _{constructor(){this.compressChange=new e.vpe,this.compress={Parameters:{Algorithm:"gzip"}}}ngOnInit(){}ngOnChanges(){this.compressChange.emit(this.compress)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-compress"]],inputs:{compress:"compress"},outputs:{compressChange:"compressChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","gzip"],["value","zlib"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.compress.Parameters.Algorithm=o}),e.TgZ(6,"option",4),e._uU(7,"gzip"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"zlib"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.compress.Parameters.Algorithm))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),w=(()=>{class _{constructor(){this.encryptChange=new e.vpe,this.encrypt={Parameters:{Algorithm:"aes256"}}}ngOnInit(){}ngOnChanges(){this.encryptChange.emit(this.encrypt)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-encrypt"]],inputs:{encrypt:"encrypt"},outputs:{encryptChange:"encryptChange"},features:[e.TTD],decls:22,vars:3,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","aes256"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Path in the Secret Store where the encryption key is located.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Name of the secret for the encryption key in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.Algorithm=o}),e.TgZ(6,"option",4),e._uU(7,"aes256"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e.TgZ(9,"label",1),e.TgZ(10,"span"),e._uU(11,"SecretPath"),e.qZA(),e._UZ(12,"span",5),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.SecretPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"SecretName"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.SecretName=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.encrypt.Parameters.Algorithm),e.xp6(9),e.Q6J("ngModel",n.encrypt.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.encrypt.Parameters.SecretName))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();var L=l(1302);let H=(()=>{class _{constructor(){this.filterByDeviceNameChange=new e.vpe,this.deviceNames=[],this.filterByDeviceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.deviceNames=this.filterByDeviceName.Parameters.DeviceNames.split(","),this.filterByDeviceNameChange.emit(this.filterByDeviceName)}onDeviceNamesChange(){this.filterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-device-name"]],inputs:{filterByDeviceName:"filterByDeviceName"},outputs:{filterByDeviceNameChange:"filterByDeviceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"deviceSelected","deviceSelectedChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the device names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"DeviceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-combo-list",3),e.NdJ("deviceSelectedChange",function(o){return n.deviceNames=o})("deviceSelectedChange",function(){return n.onDeviceNamesChange()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByDeviceName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("deviceSelected",n.deviceNames),e.xp6(7),e.Q6J("ngModel",n.filterByDeviceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,L.h,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})();var V=l(6322);let X=(()=>{class _{constructor(){this.filterByProfileNameChange=new e.vpe,this.profileNames=[],this.filterByProfileName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.profileNames=this.filterByProfileName.Parameters.ProfileNames.split(","),this.filterByProfileNameChange.emit(this.filterByProfileName)}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.filterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-profile-name"]],inputs:{filterByProfileName:"filterByProfileName"},outputs:{filterByProfileNameChange:"filterByProfileNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"selectedProfiles","deviceProfileSelectedEvent"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the profile names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ProfileNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-profile-combo-list",3),e.NdJ("deviceProfileSelectedEvent",function(o){return n.onDeviceProfileSelectedEvent(o)}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByProfileName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("selectedProfiles",n.profileNames),e.xp6(7),e.Q6J("ngModel",n.filterByProfileName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,V.o,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),Q=(()=>{class _{constructor(){this.filterByResourceNameChange=new e.vpe,this.filterByResourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterByResourceNameChange.emit(this.filterByResourceName)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-resource-name"]],inputs:{filterByResourceName:"filterByResourceName"},outputs:{filterByResourceNameChange:"filterByResourceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ResourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the resource names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ResourceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(o){return n.filterByResourceName.Parameters.ResourceNames=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByResourceName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.filterByResourceName.Parameters.ResourceNames),e.xp6(7),e.Q6J("ngModel",n.filterByResourceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr],styles:[""]}),_})(),W=(()=>{class _{constructor(){this.filterBySourceNameChange=new e.vpe,this.filterBySourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterBySourceNameChange.emit(this.filterBySourceName)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-source-name"]],inputs:{filterBySourceName:"filterBySourceName"},outputs:{filterBySourceNameChange:"filterBySourceNameChange"},features:[e.TTD],decls:18,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","SourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the source names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"SourceNames"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",3),e.NdJ("ngModelChange",function(o){return n.filterBySourceName.Parameters.SourceNames=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",0),e.TgZ(8,"label",1),e.TgZ(9,"span"),e._uU(10,"FilterOut"),e.qZA(),e._UZ(11,"span",4),e.qZA(),e.TgZ(12,"div",2),e.TgZ(13,"select",5),e.NdJ("ngModelChange",function(o){return n.filterBySourceName.Parameters.FilterOut=o}),e.TgZ(14,"option",6),e._uU(15,"false"),e.qZA(),e.TgZ(16,"option",7),e._uU(17,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.filterBySourceName.Parameters.SourceNames),e.xp6(7),e.Q6J("ngModel",n.filterBySourceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr],styles:[""]}),_})(),Y=(()=>{class _{constructor(){this.transformChange=new e.vpe,this.transform={Parameters:{Type:"json"}}}ngOnInit(){}ngOnChanges(){this.transformChange.emit(this.transform)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-transform"]],inputs:{transform:"transform"},outputs:{transformChange:"transformChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","json"],["value","xml"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Type"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.transform.Parameters.Type=o}),e.TgZ(6,"option",4),e._uU(7,"json"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"xml"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.transform.Parameters.Type))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),k=(()=>{class _{constructor(){this.httpExportChange=new e.vpe,this.httpExport={Parameters:{Method:"post",MimeType:"application/json",PersistOnError:"false",ContinueOnSendError:"true",ReturnInputData:"false"}}}ngOnInit(){}ngOnChanges(){this.httpExportChange.emit(this.httpExport)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-httpexport"]],inputs:{httpExport:"httpExport"},outputs:{httpExportChange:"httpExportChange"},features:[e.TTD],decls:76,vars:9,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Method",1,"custom-select",3,"ngModel","ngModelChange"],["value","post"],["value","put"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Optional mime type for the data. Defaults to application/json if not set.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MimeType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports, if true continues after send error so next export function executes.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["name","ContinueOnSendError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports if true, passes the input data to next export function.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ReturnInputData",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the header key to add to the HTTP header",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","HeaderName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Path in the secret in the Secret Store where to header value is stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the secret for the header value in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Method"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.Method=o}),e.TgZ(6,"option",4),e._uU(7,"post"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"put"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",0),e.TgZ(11,"label",1),e._uU(12,"Url"),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.Url=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"MimeType"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.MimeType=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",0),e.TgZ(23,"label",1),e.TgZ(24,"span"),e._uU(25,"PersistOnError"),e.qZA(),e._UZ(26,"span",9),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"select",10),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.PersistOnError=o}),e.TgZ(29,"option",11),e._uU(30,"false"),e.qZA(),e.TgZ(31,"option",12),e._uU(32,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",0),e.TgZ(34,"label",13),e.TgZ(35,"span"),e._uU(36,"ContinueOnSendError"),e.qZA(),e._UZ(37,"span",14),e.qZA(),e.TgZ(38,"div",15),e.TgZ(39,"select",16),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.ContinueOnSendError=o}),e.TgZ(40,"option",11),e._uU(41,"false"),e.qZA(),e.TgZ(42,"option",12),e._uU(43,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",0),e.TgZ(45,"label",1),e.TgZ(46,"span"),e._uU(47,"ReturnInputData"),e.qZA(),e._UZ(48,"span",17),e.qZA(),e.TgZ(49,"div",2),e.TgZ(50,"select",18),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.ReturnInputData=o}),e.TgZ(51,"option",11),e._uU(52,"false"),e.qZA(),e.TgZ(53,"option",12),e._uU(54,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",0),e.TgZ(56,"label",1),e.TgZ(57,"span"),e._uU(58,"HeaderName"),e.qZA(),e._UZ(59,"span",19),e.qZA(),e.TgZ(60,"div",2),e.TgZ(61,"input",20),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.HeaderName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",0),e.TgZ(63,"label",1),e.TgZ(64,"span"),e._uU(65,"SecretPath"),e.qZA(),e._UZ(66,"span",21),e.qZA(),e.TgZ(67,"div",2),e.TgZ(68,"input",22),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.SecretPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",0),e.TgZ(70,"label",1),e.TgZ(71,"span"),e._uU(72,"SecretName"),e.qZA(),e._UZ(73,"span",23),e.qZA(),e.TgZ(74,"div",2),e.TgZ(75,"input",24),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.SecretName=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.httpExport.Parameters.Method),e.xp6(9),e.Q6J("ngModel",n.httpExport.Parameters.Url),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.MimeType),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ContinueOnSendError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ReturnInputData),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.HeaderName),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretName))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();function j(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"SecretPath"),e.qZA(),e._UZ(4,"span",27),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"input",28),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().mqttExport.Parameters.SecretPath=i}),e.qZA(),e.TgZ(7,"div",29),e.TgZ(8,"small"),e.SDv(9,30),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.mqttExport.Parameters.SecretPath),e.Q6J("ngModel",t.mqttExport.Parameters.SecretPath)}}let z=(()=>{class _{constructor(){this.mqttExportChange=new e.vpe,this.mqttExport={Parameters:{Qos:"0",AutoReconnect:"true",Retain:"true",SkipVerify:"true",PersistOnError:"false",AuthMode:"none"}}}ngOnInit(){}ngOnChanges(){this.mqttExportChange.emit(this.mqttExport)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}authModeIsNotNone(){return this.renderPopoverComponent(),"none"!==this.mqttExport.Parameters.AuthMode}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-mqttexport"]],inputs:{mqttExport:"mqttExport"},outputs:{mqttExportChange:"mqttExportChange"},features:[e.TTD],decls:85,vars:10,consts:function(){let a;return a="the SecretPath can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","tcp://broker-host:1883",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","BrokerAddress",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Topic",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],["value","0"],["value","1"],["value","2"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the certificate verification should be skipped.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","SkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Mode of authentication to use when connecting to the MQTT Broker.
\n
\n none - No authentication required.
\n
\n usernamepassword - Use username and password authentication. The Secret Store (Vault or InsecureSecrets) must contain the username and password secrets.
\n
\n clientcert - Use Client Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the clientkey and clientcert secrets.
\n
\n cacert - Use CA Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the cacert secret.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Path in the secret store where to authorization secrets are stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],a]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e.TgZ(3,"span"),e._uU(4,"BrokerAddress"),e.qZA(),e._UZ(5,"span",3),e.qZA(),e.TgZ(6,"div",4),e.TgZ(7,"input",5),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.BrokerAddress=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",1),e.TgZ(9,"label",2),e._uU(10,"Topic"),e.qZA(),e.TgZ(11,"div",4),e.TgZ(12,"input",6),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Topic=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"label",2),e._uU(15,"ClientId"),e.qZA(),e.TgZ(16,"div",4),e.TgZ(17,"input",7),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.ClientId=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",1),e.TgZ(19,"label",2),e._uU(20,"Qos"),e.qZA(),e.TgZ(21,"div",4),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Qos=o}),e.TgZ(23,"option",9),e._uU(24,"0"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"1"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"div",1),e.TgZ(30,"label",2),e._uU(31,"AutoReconnect"),e.qZA(),e.TgZ(32,"div",4),e.TgZ(33,"select",12),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.AutoReconnect=o}),e.TgZ(34,"option",13),e._uU(35,"false"),e.qZA(),e.TgZ(36,"option",14),e._uU(37,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",1),e.TgZ(39,"label",2),e._uU(40,"Retain"),e.qZA(),e.TgZ(41,"div",4),e.TgZ(42,"select",15),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Retain=o}),e.TgZ(43,"option",13),e._uU(44,"false"),e.qZA(),e.TgZ(45,"option",14),e._uU(46,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(47,"div",1),e.TgZ(48,"label",2),e.TgZ(49,"span"),e._uU(50,"SkipVerify"),e.qZA(),e._UZ(51,"span",16),e.qZA(),e.TgZ(52,"div",4),e.TgZ(53,"select",17),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.SkipVerify=o}),e.TgZ(54,"option",13),e._uU(55,"false"),e.qZA(),e.TgZ(56,"option",14),e._uU(57,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",1),e.TgZ(59,"label",2),e.TgZ(60,"span"),e._uU(61,"PersistOnError"),e.qZA(),e._UZ(62,"span",18),e.qZA(),e.TgZ(63,"div",4),e.TgZ(64,"select",19),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.PersistOnError=o}),e.TgZ(65,"option",13),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",14),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",1),e.TgZ(70,"label",2),e.TgZ(71,"span"),e._uU(72,"AuthMode"),e.qZA(),e._UZ(73,"span",20),e.qZA(),e.TgZ(74,"div",4),e.TgZ(75,"select",21),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.AuthMode=o}),e.TgZ(76,"option",22),e._uU(77,"none"),e.qZA(),e.TgZ(78,"option",23),e._uU(79,"usernamepassword"),e.qZA(),e.TgZ(80,"option",24),e._uU(81,"clientcert"),e.qZA(),e.TgZ(82,"option",25),e._uU(83,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(84,j,10,3,"div",26),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.mqttExport.Parameters.BrokerAddress),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Topic),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.ClientId),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Qos),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AutoReconnect),e.xp6(9),e.Q6J("ngModel",n.mqttExport.Parameters.Retain),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.SkipVerify),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AuthMode),e.xp6(9),e.Q6J("ngIf",n.authModeIsNotNone()))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,c.O5],styles:[""]}),_})(),K=(()=>{class _{constructor(){this.jsonLogicChange=new e.vpe,this.jsonLogic={Parameters:{Rule:""}}}ngOnInit(){}ngOnChanges(){this.jsonLogicChange.emit(this.jsonLogic)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-jsonlogic"]],inputs:{jsonLogic:"jsonLogic"},outputs:{jsonLogicChange:"jsonLogicChange"},features:[e.TTD],decls:6,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","Rule",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Rule"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(o){return n.jsonLogic.Parameters.Rule=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.jsonLogic.Parameters.Rule))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function ee(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"MediaType"),e.qZA(),e._UZ(4,"span",22),e.qZA(),e.TgZ(5,"div",3),e.TgZ(6,"input",23),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().pushToCore.Parameters.MediaType=i}),e.qZA(),e.TgZ(7,"div",24),e.TgZ(8,"small"),e.SDv(9,25),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.pushToCore.Parameters.MediaType),e.Q6J("ngModel",t.pushToCore.Parameters.MediaType)}}let te=(()=>{class _{constructor(){this.pushToCoreChange=new e.vpe,this.pushToCore={Parameters:{ValueType:"String"}}}ngOnInit(){}ngOnChanges(){this.pushToCoreChange.emit(this.pushToCore)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}valueTypeIsBinary(){return this.renderPopoverComponent(),"Binary"===this.pushToCore.Parameters.ValueType}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-push-to-core"]],inputs:{pushToCore:"pushToCore"},outputs:{pushToCoreChange:"pushToCoreChange"},features:[e.TTD],decls:48,vars:5,consts:function(){let a;return a="the MediaType can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ProfileName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","DeviceName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ResourceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Value type to use the new Event Reading's value type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ValueType",1,"custom-select",3,"ngModel","ngModelChange"],["value","Bool"],["value","Int8"],["value","Int64"],["value","Uint8"],["value","Uint64"],["value","Float32"],["value","Float64"],["value","String"],["value","Binary"],["value","Object"],["value","Float32Array"],["value","BoolArray"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Media type to use the new Event Reading's value type. Required when the value type is Binary",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MediaType",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],a]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e._uU(3,"ProfileName"),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"input",4),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ProfileName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",1),e.TgZ(7,"label",2),e._uU(8,"DeviceName"),e.qZA(),e.TgZ(9,"div",3),e.TgZ(10,"input",5),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.DeviceName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",1),e.TgZ(12,"label",2),e._uU(13,"ResourceName"),e.qZA(),e.TgZ(14,"div",3),e.TgZ(15,"input",6),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ResourceName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"div",1),e.TgZ(17,"label",2),e.TgZ(18,"span"),e._uU(19,"ValueType"),e.qZA(),e._UZ(20,"span",7),e.qZA(),e.TgZ(21,"div",3),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ValueType=o}),e.TgZ(23,"option",9),e._uU(24,"Bool"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"Int8"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"Int64"),e.qZA(),e.TgZ(29,"option",12),e._uU(30,"Uint8"),e.qZA(),e.TgZ(31,"option",13),e._uU(32,"Uint64"),e.qZA(),e.TgZ(33,"option",14),e._uU(34,"Float32"),e.qZA(),e.TgZ(35,"option",15),e._uU(36,"Float64"),e.qZA(),e.TgZ(37,"option",16),e._uU(38,"String"),e.qZA(),e.TgZ(39,"option",17),e._uU(40,"Binary"),e.qZA(),e.TgZ(41,"option",18),e._uU(42,"Object"),e.qZA(),e.TgZ(43,"option",19),e._uU(44,"Float32Array"),e.qZA(),e.TgZ(45,"option",20),e._uU(46,"BoolArray"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(47,ee,10,3,"div",21),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ProfileName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.DeviceName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ResourceName),e.xp6(7),e.Q6J("ngModel",n.pushToCore.Parameters.ValueType),e.xp6(25),e.Q6J("ngIf",n.valueTypeIsBinary()))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,c.O5],styles:[""]}),_})(),ne=(()=>{class _{constructor(){this.setResponseDataChange=new e.vpe,this.setResponseData={Parameters:{ResponseContentType:""}}}ngOnInit(){}ngOnChanges(){this.setResponseDataChange.emit(this.setResponseData)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-set-response-data"]],inputs:{setResponseData:"setResponseData"},outputs:{setResponseDataChange:"setResponseDataChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Used to specify content-type header for response, for example, application/json",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["type","text","name","ResponseContentType",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"ResponseContentType"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(o){return n.setResponseData.Parameters.ResponseContentType=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.setResponseData.Parameters.ResponseContentType))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function _e(_,a){1&_&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,24),e.qZA(),e.qZA(),e.qZA())}function oe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"span",25),e.NdJ("dragstart",function(i){const s=e.CHM(t).$implicit;return e.oxw().ondragstartBuiltinFunction(i,s)}),e.TgZ(1,"span",26),e._uU(2),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.ekj("d-table",!n.isSelected(t))("d-none",n.isSelected(t)),e.hYB("id","",n.builtinFuncZoneIdentifier,"",t,""),e.xp6(2),e.Oqu(t)}}function ie(_,a){1&_&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,27),e.qZA(),e.qZA(),e.qZA())}function re(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",28),e.NdJ("dragstart",function(i){const s=e.CHM(t).$implicit;return e.oxw().ondragstartFuncExecutionOrder(i,s)}),e._uU(2),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.xp6(1),e.hYB("id","",n.funcExecOrderZoneIdentifier,"",t,""),e.xp6(1),e.Oqu(t)}}function ae(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-add-tags",43),e.NdJ("addTagsChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("addTags",n.availableFunctions[t])}}function se(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-batch",44),e.NdJ("batchChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("batch",n.availableFunctions[t])}}function le(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-compress",45),e.NdJ("compressChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("compress",n.availableFunctions[t])}}function ge(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-encrypt",46),e.NdJ("encryptChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("encrypt",n.availableFunctions[t])}}function ce(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-device-name",47),e.NdJ("filterByDeviceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByDeviceName",n.availableFunctions[t])}}function pe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-profile-name",48),e.NdJ("filterByProfileNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByProfileName",n.availableFunctions[t])}}function de(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-resource-name",49),e.NdJ("filterByResourceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByResourceName",n.availableFunctions[t])}}function ue(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-source-name",50),e.NdJ("filterBySourceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterBySourceName",n.availableFunctions[t])}}function Te(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-transform",51),e.NdJ("transformChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("transform",n.availableFunctions[t])}}function me(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-httpexport",52),e.NdJ("httpExportChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("httpExport",n.availableFunctions[t])}}function Ae(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-mqttexport",53),e.NdJ("mqttExportChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("mqttExport",n.availableFunctions[t])}}function Ee(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-jsonlogic",54),e.NdJ("jsonLogicChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("jsonLogic",n.availableFunctions[t])}}function fe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-push-to-core",55),e.NdJ("pushToCoreChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("pushToCore",n.availableFunctions[t])}}function Ce(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-set-response-data",56),e.NdJ("setResponseDataChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("setResponseData",n.availableFunctions[t])}}function Ze(_,a){1&_&&(e.TgZ(0,"div"),e.TgZ(1,"div",57),e.TgZ(2,"small"),e._UZ(3,"i",17),e.TgZ(4,"span"),e.SDv(5,58),e.qZA(),e.qZA(),e.qZA(),e.qZA())}function he(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",32),e.TgZ(1,"div",33),e._UZ(2,"i",34),e.TgZ(3,"span",35),e._uU(4,"Function"),e.qZA(),e.TgZ(5,"span",36),e._uU(6),e.qZA(),e.TgZ(7,"span"),e._uU(8,"Parameters"),e.qZA(),e.TgZ(9,"span",37),e.NdJ("click",function(){const o=e.CHM(t).$implicit;return e.oxw(2).unselectFunc(o)}),e._UZ(10,"i",38),e.qZA(),e.qZA(),e.TgZ(11,"div",39),e.TgZ(12,"div",40),e.YNc(13,ae,2,1,"div",41),e.YNc(14,se,2,1,"div",41),e.YNc(15,le,2,1,"div",41),e.YNc(16,ge,2,1,"div",41),e.YNc(17,ce,2,1,"div",41),e.YNc(18,pe,2,1,"div",41),e.YNc(19,de,2,1,"div",41),e.YNc(20,ue,2,1,"div",41),e.YNc(21,Te,2,1,"div",41),e.YNc(22,me,2,1,"div",41),e.YNc(23,Ae,2,1,"div",41),e.YNc(24,Ee,2,1,"div",41),e.YNc(25,fe,2,1,"div",41),e.YNc(26,Ce,2,1,"div",41),e.YNc(27,Ze,6,0,"div",42),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw(2);e.xp6(6),e.Oqu(t),e.xp6(6),e.Q6J("ngSwitch",n.startWith(t)),e.xp6(1),e.Q6J("ngSwitchCase","AddTags"),e.xp6(1),e.Q6J("ngSwitchCase","Batch"),e.xp6(1),e.Q6J("ngSwitchCase","Compress"),e.xp6(1),e.Q6J("ngSwitchCase","Encrypt"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByDeviceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByProfileName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByResourceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterBySourceName"),e.xp6(1),e.Q6J("ngSwitchCase","Transform"),e.xp6(1),e.Q6J("ngSwitchCase","HTTPExport"),e.xp6(1),e.Q6J("ngSwitchCase","MQTTExport"),e.xp6(1),e.Q6J("ngSwitchCase","JSONLogic"),e.xp6(1),e.Q6J("ngSwitchCase","PushToCore"),e.xp6(1),e.Q6J("ngSwitchCase","SetResponseData")}}function Pe(_,a){if(1&_&&(e.TgZ(0,"div",10),e.TgZ(1,"div",11),e._UZ(2,"i",29),e.TgZ(3,"span"),e.SDv(4,30),e.qZA(),e.qZA(),e.TgZ(5,"div",13),e.YNc(6,he,28,16,"div",31),e.qZA(),e.qZA()),2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngForOf",t.selectedFunctionsName)}}let ve=(()=>{class _{constructor(){this.funcExecOrderZoneIdentifier="funcExecOrder-",this.builtinFuncZoneIdentifier="builtinFunc-",this.objectKeys=Object.keys,this.profileNames=[],this.deviceNames=[],this.availableFunctionsChange=new e.vpe,this._selectedFunctionsName=[],this.selectedFunctionsNameChange=new e.vpe,this._availableFunctions={},this.builtinFunctions={},this.initBuiltinFunctions()}get availableFunctions(){return this._availableFunctions}set availableFunctions(t){Object.assign(this._availableFunctions,t)}get selectedFunctionsName(){return this._selectedFunctionsName}set selectedFunctionsName(t){t.forEach((n,i)=>{t[i]=n.trim()}),this._selectedFunctionsName=t}ngOnInit(){}ngOnChanges(){this.setSelectedDevices(),this.setSelectedProfiles(),this.availableFunctionsChange.emit(this.availableFunctions)}startWith(t){let n="Unknown";return Object.keys(this.builtinFunctions).forEach(i=>{t.startsWith(i)&&(n=i)}),n}setSelectedDevices(){var t;(null===(t=this.availableFunctions.FilterByDeviceName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames&&(this.deviceNames=this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames.split(","))}setSelectedProfiles(){var t;(null===(t=this.availableFunctions.FilterByProfileName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByProfileName.Parameters.ProfileNames&&(this.profileNames=this.availableFunctions.FilterByProfileName.Parameters.ProfileNames.split(","))}initBuiltinFunctions(){this.builtinFunctions.AddTags={Parameters:{Tags:""}},this.builtinFunctions.Batch={Parameters:{}},this.builtinFunctions.FilterByDeviceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByProfileName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterBySourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByResourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.Transform={Parameters:{Type:"json"}},this.builtinFunctions.Compress={Parameters:{Algorithm:"gzip"}},this.builtinFunctions.Encrypt={Parameters:{Algorithm:"aes"}},this.builtinFunctions.HTTPExport={Parameters:{}},this.builtinFunctions.MQTTExport={Parameters:{}},this.builtinFunctions.PushToCore={Parameters:{}},this.builtinFunctions.SetResponseData={Parameters:{}},this.builtinFunctions.JSONLogic={Parameters:{}}}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.availableFunctions.FilterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}onDeviceNamesChange(){this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}selectOnefunc(t){this.selectedFunctionsName.push(t),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}unselectFunc(t){-1!==this.selectedFunctionsName.indexOf(t)&&(this.selectedFunctionsName.splice(this.selectedFunctionsName.indexOf(t),1),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName))}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}isSelected(t){let n=!1;return this.selectedFunctionsName.forEach(i=>{t!==i.trim()||(n=!0)}),n}ondropBuiltinFunction(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");!n||this.unselectFunc(n)}ondragstartBuiltinFunction(t,n){t.dataTransfer.setData("funcName",n)}sortSelectedFuncsExecuterOrder(t,n){let i=this.selectedFunctionsName.slice(0);i.splice(i.indexOf(t),1),i.splice(i.indexOf(n),0,t),this.selectedFunctionsName=i,this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}ondropFuncExecutionOrder(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");if(!n)return;let i=`${this.funcExecOrderZoneIdentifier}${n}`,o=t.target.id;if(i===o)return;let s=document.getElementById(i);if(s&&0===o.indexOf(this.funcExecOrderZoneIdentifier)){let d=o.replace(this.funcExecOrderZoneIdentifier,"");this.sortSelectedFuncsExecuterOrder(n,d)}else s||this.selectOnefunc(n);this.renderPopoverComponent()}ondragstartFuncExecutionOrder(t,n){t.dataTransfer.setData("funcName",n)}ondragoverFuncExecutionOrder(t){$(t.target).addClass("ml-3")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-pipeline-function"]],inputs:{availableFunctions:"availableFunctions",selectedFunctionsName:"selectedFunctionsName"},outputs:{availableFunctionsChange:"availableFunctionsChange",selectedFunctionsNameChange:"selectedFunctionsNameChange"},features:[e.TTD],decls:31,vars:5,consts:function(){let a,t,n,i,o,s,d,u;return a="\u5185\u7F6E\u7BA1\u9053\u51FD\u6570",t="\u9009\u4E2D\u7684\u7BA1\u9053\u51FD\u6570",n="\u7BA1\u9053\u51FD\u6570\u6267\u884C\u987A\u5E8F",i="\u62D6\u62FD\u6539\u53D8\u6267\u884C\u987A\u5E8F",o="\u62D6\u62FD\u533A\u57DF",s="\u62D6\u62FD\u533A\u57DF",d="\u7BA1\u9053\u51FD\u6570\u53C2\u6570\u8BBE\u7F6E",u=" Unknown pipeline function ",[[1,"row"],[1,"col-sm-4","col-md-3"],["appDragHighlight","",1,"card","mb-3",3,"drop"],[1,"card-header","font-weight-bold","text-nowrap","text-truncate"],[1,"fa","fa-file-text","mr-2","text-info"],a,[1,"card-body","overflow-auto"],["class","border-secondary rounded w-100 text-center","style","height: 70px; border: 1px; border-style: dashed;",4,"ngIf"],["draggable","true","class","mb-3","role","button",3,"id","d-table","d-none","dragstart",4,"ngFor","ngForOf"],[1,"col-sm-8","col-md-9"],[1,"card"],[1,"card-header","font-weight-bold"],t,[1,"card-body"],[1,"fa","fa-sort-amount-asc","fa-rotate-270","mr-2","text-info"],n,[1,"text-info","ml-2"],[1,"fa","fa-info-circle","mr-1"],i,["id","funcExecOrderSelectedBody",1,"card-body"],[4,"ngFor","ngForOf"],["class","card",4,"ngIf"],[1,"border-secondary","rounded","w-100","text-center",2,"height","70px","border","1px","border-style","dashed"],[1,"text-muted"],o,["draggable","true","role","button",1,"mb-3",3,"id","dragstart"],[1,"badge","badge-secondary"],s,["draggable","true","role","button",1,"badge","badge-secondary","text-nowrap","text-truncate","mr-2",3,"id","dragstart"],[1,"fa","fa-cog","mr-2","text-info"],d,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"card-header","text-nowrap","text-truncate"],[1,"fa","fa-tag","mr-2","text-info"],[1,"mr-2"],[1,"badge","badge-secondary","mr-2"],["role","button",1,"float-right","text-danger",3,"click"],[1,"fa","fa-trash"],[1,"card-body","text-nowrap"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"addTags","addTagsChange"],[3,"batch","batchChange"],[3,"compress","compressChange"],[3,"encrypt","encryptChange"],[3,"filterByDeviceName","filterByDeviceNameChange"],[3,"filterByProfileName","filterByProfileNameChange"],[3,"filterByResourceName","filterByResourceNameChange"],[3,"filterBySourceName","filterBySourceNameChange"],[3,"transform","transformChange"],[3,"httpExport","httpExportChange"],[3,"mqttExport","mqttExportChange"],[3,"jsonLogic","jsonLogicChange"],[3,"pushToCore","pushToCoreChange"],[3,"setResponseData","setResponseDataChange"],["role","alert",1,"alert","alert-warning","mb-3"],u]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("drop",function(o){return n.ondropBuiltinFunction(o)}),e.TgZ(3,"div",3),e._UZ(4,"i",4),e.TgZ(5,"span"),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.YNc(8,_e,4,0,"table",7),e.YNc(9,oe,3,7,"span",8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"div",10),e.TgZ(12,"div",11),e._UZ(13,"i",4),e.TgZ(14,"span"),e.SDv(15,12),e.qZA(),e.qZA(),e.TgZ(16,"div",13),e.TgZ(17,"div",2),e.NdJ("drop",function(o){return n.ondropFuncExecutionOrder(o)}),e.TgZ(18,"div",3),e._UZ(19,"i",14),e.TgZ(20,"span"),e.SDv(21,15),e.qZA(),e.TgZ(22,"span",16),e.TgZ(23,"small"),e._UZ(24,"i",17),e.TgZ(25,"span"),e.SDv(26,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.YNc(28,ie,4,0,"table",7),e.YNc(29,re,3,3,"span",20),e.qZA(),e.qZA(),e.YNc(30,Pe,7,1,"div",21),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("ngIf",n.selectedFunctionsName.length===n.objectKeys(n.availableFunctions).length),e.xp6(1),e.Q6J("ngForOf",n.objectKeys(n.availableFunctions)),e.xp6(19),e.Q6J("ngIf",0===n.selectedFunctionsName.length),e.xp6(1),e.Q6J("ngForOf",n.selectedFunctionsName),e.xp6(1),e.Q6J("ngIf",0!==n.selectedFunctionsName.length))},directives:[x,c.O5,c.sg,c.RF,c.n9,c.ED,F,B,D,w,H,X,Q,W,Y,k,z,K,te,ne],styles:[""]}),_})();function Se(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"li",3),e.TgZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"div",7),e.TgZ(5,"h5",16),e._uU(6),e.qZA(),e.TgZ(7,"p",9),e.TgZ(8,"span",10),e._uU(9,"ExecutionOrder:"),e.qZA(),e._uU(10),e.qZA(),e.TgZ(11,"span",10),e._uU(12,"Topics:"),e.qZA(),e._uU(13),e.TgZ(14,"span",11),e.NdJ("click",function(){const o=e.CHM(t).$implicit;return e.oxw(3).edit(o.Id)}),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit;e.xp6(6),e.Oqu(t.Id),e.xp6(4),e.hij(" ",t.ExecutionOrder," "),e.xp6(3),e.hij(" ",t.Topics," ")}}function Ne(_,a){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,Se,18,3,"li",15),e.qZA()),2&_){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.perTopicPipelines)}}function Ie(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"ul",2),e.TgZ(1,"li",3),e.TgZ(2,"div",4),e.TgZ(3,"div",5),e._UZ(4,"i",6),e.qZA(),e.TgZ(5,"div",7),e.TgZ(6,"h5",8),e._uU(7),e.qZA(),e.TgZ(8,"p",9),e.TgZ(9,"span",10),e._uU(10,"ExecutionOrder:"),e.qZA(),e._uU(11),e.qZA(),e.TgZ(12,"span",11),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return i.edit(i.defaultPipelineIdentifier)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e.SDv(15,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(16,Ne,2,1,"div",14),e.qZA()}if(2&_){const t=e.oxw();e.xp6(7),e.Oqu(t.defaultPipelineIdentifier),e.xp6(4),e.Oqu(t.pipeline.ExecutionOrder),e.xp6(5),e.Q6J("ngIf",t.perTopicPipelines)}}function Me(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",30),e.TgZ(1,"label",31),e.TgZ(2,"span"),e._uU(3,"Pipeline Topic"),e.qZA(),e.qZA(),e.TgZ(4,"div",32),e.TgZ(5,"input",38),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).pipelineTopic=i}),e.qZA(),e.TgZ(6,"div",39),e.TgZ(7,"small"),e.SDv(8,40),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(5),e.ekj("is-invalid",!t.pipelineTopic),e.Q6J("ngModel",t.pipelineTopic)}}function Re(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",18),e.TgZ(1,"div",19),e._UZ(2,"i",20),e.TgZ(3,"span"),e.SDv(4,21),e.qZA(),e.TgZ(5,"span",22),e._uU(6),e.qZA(),e.TgZ(7,"span",23),e.TgZ(8,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().save()}),e.SDv(9,25),e.qZA(),e.TgZ(10,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e.SDv(11,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",28),e.TgZ(13,"div"),e.TgZ(14,"form",29),e.TgZ(15,"div",30),e.TgZ(16,"label",31),e.TgZ(17,"span"),e._uU(18,"Pipeline ID"),e.qZA(),e.qZA(),e.TgZ(19,"div",32),e._UZ(20,"input",33),e.qZA(),e.qZA(),e.YNc(21,Me,9,3,"div",34),e.qZA(),e.qZA(),e.TgZ(22,"div",18),e.TgZ(23,"div",19),e._UZ(24,"i",35),e.TgZ(25,"span"),e.SDv(26,36),e.qZA(),e.qZA(),e.TgZ(27,"div",28),e.TgZ(28,"app-pipeline-function",37),e.NdJ("selectedFunctionsNameChange",function(i){return e.CHM(t),e.oxw().selectedFunctionsName=i})("availableFunctionsChange",function(i){return e.CHM(t),e.oxw().availableFunctions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Oqu(t.selectedPipelineID),e.xp6(2),e.Q6J("disabled",!t.pipelineTopic||!t.validate()),e.xp6(12),e.Q6J("ngModel",t.selectedPipelineID),e.xp6(1),e.Q6J("ngIf",!t.isDefaultPipelineIndetifier(t.selectedPipelineID)),e.xp6(7),e.Q6J("selectedFunctionsName",t.selectedFunctionsName)("availableFunctions",t.availableFunctions)}}let qe=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.defaultPipelineIdentifier="default-pipeline",this.isEditStatus=!1,this.selectedFunctionsName=[],this.pipelineTopic="#",this.selectedPipelineID="",this.appServiceKey="",this.perTopicPipelines=[],this.pipeline={},this.availableFunctions={}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}ngOnChanges(){this.pipeline&&(this.pipeline.PerTopicPipelines&&(this.perTopicPipelines=Object.values(this.pipeline.PerTopicPipelines)),this.availableFunctions=this.pipeline.Functions,this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","))}pipelineIDIsUnique(t){if(t===this.selectedPipelineID)return!0;if(t===this.defaultPipelineIdentifier)return!1;let n=!0;return this.perTopicPipelines.forEach(i=>{t!==i.Id||(n=!1)}),n}isDefaultPipelineIndetifier(t){return t===this.defaultPipelineIdentifier}edit(t){this.selectedPipelineID=t,this.isDefaultPipelineIndetifier(t)?this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","):this.perTopicPipelines.forEach(n=>{t===n.Id&&(this.selectedFunctionsName=n.ExecutionOrder.split(","),this.pipelineTopic=n.Topics)}),this.isEditStatus=!0,this.renderPopoverComponent()}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}validate(){let t=!0;return this.selectedFunctionsName.forEach(n=>{(n.startsWith("PushToCore")&&"Binary"===this.availableFunctions[n].Parameters.ValueType&&""===this.availableFunctions[n].Parameters.MediaType||n.startsWith("MQTTExport")&&"none"!==this.availableFunctions[n].Parameters.AuthMode&&""===this.availableFunctions[n].Parameters.SecretPath)&&(t=!1)}),t}save(){let t={},n={PerTopicPipelines:{}},i={};if(this.selectedFunctionsName.forEach(o=>{i[o]=this.availableFunctions[o]}),n.Functions=i,this.isDefaultPipelineIndetifier(this.selectedPipelineID))n.ExecutionOrder=this.getFuncExecutionOrder();else for(const[o,s]of Object.entries(this.pipeline.PerTopicPipelines))if(this.selectedPipelineID===s.Id){s.ExecutionOrder=this.getFuncExecutionOrder(),s.Topics=this.pipelineTopic,n.PerTopicPipelines[o]=s;break}t.Pipeline=n,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy Pipeline configuration",`service: ${this.appServiceKey}`),this.isEditStatus=!1,this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}cancel(){this.isEditStatus=!1}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-pipeline"]],inputs:{appServiceKey:"appServiceKey",pipeline:"pipeline"},features:[e.TTD],decls:2,vars:2,consts:function(){let a,t,n,i,o,s,d;return a="\u7F16\u8F91",t="\u7F16\u8F91",n="Edit Pipeline",i="\u4FDD\u5B58",o="\u53D6\u6D88",s="Pipline Functions Setting",d="the pipeline topic can't be empty!",[["class","list-unstyled",4,"ngIf"],["class","card",4,"ngIf"],[1,"list-unstyled"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"text-dark","mt-0"],[1,"mb-0"],[1,"badge","badge-secondary","mr-1"],["role","button",1,"badge","badge-info","float-right",3,"click"],[1,"fa","fa-edit","mr-1"],a,[4,"ngIf"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"text-dark","mt-0","mb-1"],t,[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],n,[1,"ml-1","text-info"],[1,"float-right"],[1,"btn","btn-sm","btn-success","mr-1",3,"disabled","click"],i,[1,"btn","btn-sm","btn-secondary",3,"click"],o,[1,"card-body"],[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","disabled","","name","PipelineID",1,"form-control",3,"ngModel"],["class","form-group row",4,"ngIf"],[1,"fa","fa-tag","text-info","mr-1"],s,[3,"selectedFunctionsName","availableFunctions","selectedFunctionsNameChange","availableFunctionsChange"],["type","text","name","PipelineTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],d]},template:function(t,n){1&t&&(e.YNc(0,Ie,17,3,"ul",0),e.YNc(1,Re,29,6,"div",1)),2&t&&(e.Q6J("ngIf",n.pipeline&&!n.isEditStatus),e.xp6(1),e.Q6J("ngIf",n.isEditStatus))},directives:[c.O5,c.sg,r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,ve],styles:["input[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}"]}),_})(),be=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.appServiceKey="",this._insecureSecrets={},this.insecureSecretsChange=new e.vpe,this.insecureSecrets={DB:{Secrets:{}},mqtt:{Secrets:{}},http:{Secrets:{}},AES:{Secrets:{}}}}get insecureSecrets(){return this._insecureSecrets}set insecureSecrets(t){Object.assign(this._insecureSecrets,t)}ngOnInit(){}ngOnChanges(){this.insecureSecretsChange.emit(this.insecureSecrets)}save(){let t={};t.InsecureSecrets=this.insecureSecrets,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy InsecureSecrets configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-insecure-secrets"]],inputs:{appServiceKey:"appServiceKey",insecureSecrets:"insecureSecrets"},outputs:{insecureSecretsChange:"insecureSecretsChange"},features:[e.TTD],decls:107,vars:13,consts:function(){let a,t,n;return a="Edit InsecureSecrets",t="\u4FDD\u5B58",n="\u975E\u5B89\u5168\u6A21\u5F0F\u79D8\u94A5\u5B58\u50A8\u7528\u4E8E\u975E\u5B89\u5168\u6A21\u5F0F\u542F\u52A8EdgeX\uFF0C\u6BD4\u5982\u975E\u5B89\u5168\u6A21\u5F0F\u4E0B\u6CA1\u6709Vault\u5B58\u50A8\u7CFB\u7EDF\uFF0C\u4EC5\u4EC5\u7528\u4E8E\u5728\u975E\u5B89\u5168\u6A21\u5F0F\u4E0B\u66FF\u4EE3Vault",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],a,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],n,[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","path",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","cacert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientcert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientkey",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","headervalue",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","key",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"div",8),e.TgZ(10,"small"),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e._UZ(16,"i",13),e.TgZ(17,"span",14),e._uU(18,"DB"),e.qZA(),e.qZA(),e.TgZ(19,"div",7),e.TgZ(20,"form"),e.TgZ(21,"div",15),e.TgZ(22,"label",16),e._uU(23,"path"),e.qZA(),e.TgZ(24,"div",17),e.TgZ(25,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"label",16),e._uU(28,"username"),e.qZA(),e.TgZ(29,"div",17),e.TgZ(30,"input",19),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Secrets.username=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",15),e.TgZ(32,"label",16),e._uU(33,"password"),e.qZA(),e.TgZ(34,"div",17),e.TgZ(35,"input",20),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Secrets.password=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",11),e.TgZ(37,"div",12),e._UZ(38,"i",13),e.TgZ(39,"span",14),e._uU(40,"mqtt"),e.qZA(),e.qZA(),e.TgZ(41,"div",7),e.TgZ(42,"form"),e.TgZ(43,"div",15),e.TgZ(44,"label",16),e._uU(45,"path"),e.qZA(),e.TgZ(46,"div",17),e.TgZ(47,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",15),e.TgZ(49,"label",16),e._uU(50,"username"),e.qZA(),e.TgZ(51,"div",17),e.TgZ(52,"input",19),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.username=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",15),e.TgZ(54,"label",16),e._uU(55,"password"),e.qZA(),e.TgZ(56,"div",17),e.TgZ(57,"input",20),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.password=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",15),e.TgZ(59,"label",16),e._uU(60,"cacert"),e.qZA(),e.TgZ(61,"div",17),e.TgZ(62,"input",21),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.cacert=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",15),e.TgZ(64,"label",16),e._uU(65,"clientcert"),e.qZA(),e.TgZ(66,"div",17),e.TgZ(67,"input",22),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.clientcert=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"div",15),e.TgZ(69,"label",16),e._uU(70,"clientkey"),e.qZA(),e.TgZ(71,"div",17),e.TgZ(72,"input",23),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.clientkey=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",11),e.TgZ(74,"div",12),e._UZ(75,"i",13),e.TgZ(76,"span",14),e._uU(77,"http"),e.qZA(),e.qZA(),e.TgZ(78,"div",7),e.TgZ(79,"form"),e.TgZ(80,"div",15),e.TgZ(81,"label",16),e._uU(82,"path"),e.qZA(),e.TgZ(83,"div",17),e.TgZ(84,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.http.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",15),e.TgZ(86,"label",16),e._uU(87,"headervalue"),e.qZA(),e.TgZ(88,"div",17),e.TgZ(89,"input",24),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.http.Secrets.headervalue=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(90,"div",11),e.TgZ(91,"div",12),e._UZ(92,"i",13),e.TgZ(93,"span",14),e._uU(94,"AES"),e.qZA(),e.qZA(),e.TgZ(95,"div",7),e.TgZ(96,"form"),e.TgZ(97,"div",15),e.TgZ(98,"label",16),e._uU(99,"path"),e.qZA(),e.TgZ(100,"div",17),e.TgZ(101,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.AES.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",15),e.TgZ(103,"label",16),e._uU(104,"key"),e.qZA(),e.TgZ(105,"div",17),e.TgZ(106,"input",25),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.AES.Secrets.key=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(25),e.Q6J("ngModel",n.insecureSecrets.DB.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.password),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.mqtt.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.password),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.cacert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientcert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientkey),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.http.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.http.Secrets.headervalue),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.AES.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.AES.Secrets.key))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})(),Ue=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.appServiceKey="",this.storeAndForwardChange=new e.vpe,this.storeAndForward={Enabled:"false"}}ngOnInit(){}ngOnChanges(){this.storeAndForwardChange.emit(this.storeAndForward)}save(){let t={};t.StoreAndForward=this.storeAndForward,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy StoreAndForward configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-store-and-forward"]],inputs:{appServiceKey:"appServiceKey",storeAndForward:"storeAndForward"},outputs:{storeAndForwardChange:"storeAndForwardChange"},features:[e.TTD],decls:35,vars:3,consts:function(){let a,t;return a="Edit StoreAndForward",t="\u4FDD\u5B58",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],a,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","capability allows for export functions to persist data on failure and for the export of the data to be retried at a later time.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Enabled",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","pure number",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MaxRetryCount",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","RetryInterval",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span"),e._uU(13,"Enabled"),e.qZA(),e._UZ(14,"span",10),e.qZA(),e.TgZ(15,"div",11),e.TgZ(16,"select",12),e.NdJ("ngModelChange",function(o){return n.storeAndForward.Enabled=o}),e.TgZ(17,"option",13),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span"),e._uU(24,"MaxRetryCount"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",11),e.TgZ(27,"input",16),e.NdJ("ngModelChange",function(o){return n.storeAndForward.MaxRetryCount=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",8),e.TgZ(29,"label",9),e.TgZ(30,"span"),e._uU(31,"RetryInterval"),e.qZA(),e._UZ(32,"span",17),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"input",18),e.NdJ("ngModelChange",function(o){return n.storeAndForward.RetryInterval=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(16),e.Q6J("ngModel",n.storeAndForward.Enabled),e.xp6(11),e.Q6J("ngModel",n.storeAndForward.MaxRetryCount),e.xp6(7),e.Q6J("ngModel",n.storeAndForward.RetryInterval))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();function Ge(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-trigger",15),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("configTrigger",t.configTrigger)}}function Oe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-pipeline",16),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("pipeline",t.configWritable.Pipeline)}}function xe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-insecure-secrets",17),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("insecureSecrets",t.configWritable.InsecureSecrets)}}function Fe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-store-and-forward",18),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("storeAndForward",t.configWritable.StoreAndForward)}}let ye=(()=>{class _{constructor(t,n){this.registrySvc=t,this.route=n,this.TirggerIdentifier="Trigger",this.writableIdentifier="Writable",this.configurableSection="PipelineFunc",this.appServiceKey="",this.configTrigger={},this.configWritable={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.appSvcKey&&(this.appServiceKey=t.appSvcKey,this.loadAppSvcConfig())}),this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}loadAppSvcConfig(){this.registrySvc.getAppSvcConfigBySvcKey(this.appServiceKey).subscribe(t=>{Object.assign(this.configTrigger,t[this.TirggerIdentifier]),Object.assign(this.configWritable,t[this.writableIdentifier])})}configurableSectionChange(t){this.configurableSection=t,this.renderPopoverComponent()}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(m.r),e.Y36(p.gz))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service-configurable"]],decls:29,vars:13,consts:function(){let a,t,n,i,o;return a="\u914D\u7F6E\u8BBE\u7F6E",t="\u89E6\u53D1\u5668",n="Pipelines",i="\u975E\u5B89\u5168\u79D8\u94A5\u5B58\u50A8",o="\u7F13\u5B58\u548C\u8F6C\u53D1",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],[1,"mr-2","text-info"],a,[1,"card-body"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item",3,"click"],["role","button",1,"nav-link"],t,n,i,o,[4,"ngIf"],[3,"configTrigger"],[3,"appServiceKey","pipeline"],[3,"appServiceKey","insecureSecrets"],[3,"appServiceKey","storeAndForward"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e.TgZ(9,"div",0),e.TgZ(10,"div",1),e.TgZ(11,"ul",7),e.TgZ(12,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("Trigger")}),e.TgZ(13,"a",9),e.SDv(14,10),e.qZA(),e.qZA(),e.TgZ(15,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("PipelineFunc")}),e.TgZ(16,"a",9),e.SDv(17,11),e.qZA(),e.qZA(),e.TgZ(18,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("InsecureSecrets")}),e.TgZ(19,"a",9),e.SDv(20,12),e.qZA(),e.qZA(),e.TgZ(21,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("StoreAndForward")}),e.TgZ(22,"a",9),e.SDv(23,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",6),e.YNc(25,Ge,2,1,"div",14),e.YNc(26,Oe,2,2,"div",14),e.YNc(27,xe,2,2,"div",14),e.YNc(28,Fe,2,2,"div",14),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(n.appServiceKey),e.xp6(8),e.ekj("active","Trigger"===n.configurableSection),e.xp6(3),e.ekj("active","PipelineFunc"===n.configurableSection),e.xp6(3),e.ekj("active","InsecureSecrets"===n.configurableSection),e.xp6(3),e.ekj("active","StoreAndForward"===n.configurableSection),e.xp6(3),e.Q6J("ngIf","Trigger"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","PipelineFunc"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","InsecureSecrets"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","StoreAndForward"===n.configurableSection))},directives:[c.O5,O,qe,be,Ue],styles:[".appservice_wrap[_ngcontent-%COMP%]{width:100%;margin:0 auto;overflow:hidden}#appservice_left[_ngcontent-%COMP%]{width:70%;min-height:800px;float:left}#appservice_service_select[_ngcontent-%COMP%]{margin-top:1%;width:40%}#appservice_right[_ngcontent-%COMP%]{width:30%;min-height:800px;border-left:1px solid #d6e9c6;float:right}.app_left_body[_ngcontent-%COMP%]{min-height:800px}.appservice_drop_card[_ngcontent-%COMP%]{margin-top:3%;margin-bottom:3%;height:80px;width:100%;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;text-align:center}.appservice_transform[_ngcontent-%COMP%]{font-weight:bold;font-size:.5rem}.appservice_description[_ngcontent-%COMP%]{position:relative;top:25%;left:20%;font-size:smaller;float:left;text-align:center}.appservice_paramButton[_ngcontent-%COMP%]{width:30%;outline-style:none;border:1px solid #ccc;border-radius:3px;margin-top:25px;margin-right:100px;float:right}.appservice_button_group[_ngcontent-%COMP%]{float:right;margin-top:-25px}.appservice_triggers_group[_ngcontent-%COMP%]{padding:10px}.appservice_select_lable[_ngcontent-%COMP%]{text-align:right;padding-top:1%}#appservice_model[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{position:fixed;top:20%;right:0;left:0;bottom:20%;margin:auto}#appservice_model[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:79%;overflow-y:auto;position:absolute;top:55px;bottom:65px;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-right:15px}#appservice_model[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0}.modal-backdrop[_ngcontent-%COMP%]{z-index:-1!important;opacity:0!important;filter:alpha(opacity=0)!important}"]}),_})();var Je=l(8253),Be=l(1964),De=l(4294),we=l(5894),Le=l(7216);let f=(()=>{class _{constructor(t,n){this.router=t,this.registrySvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.registrySvc.ping().pipe((0,De.q)(1),(0,we.K)(i=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"registry center",routerPath:`/${n.url.split("/")[1]}`}})),(0,Le.z)(()=>(0,Be.of)(!0)))}}return _.\u0275fac=function(t){return new(t||_)(e.LFG(p.F0),e.LFG(m.r))},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const $e=[{path:"",component:I,canActivate:[Je.a,f],canActivateChild:[f],children:[{path:"",redirectTo:"app-service-list",pathMatch:"full"},{path:"app-service-list",component:q},{path:"app-service-configurable",component:ye}]}];let He=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[p.Bz.forChild($e)],p.Bz]}),_})();var Ve=l(4010);let Xe=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[c.ez,r.u5,He,Ve.MetadataModule]]}),_})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/894.407bd7f3a95dc5bc38a8.js b/cmd/edgex-ui-server/static/web/zh/894.dc385c7f0166f0128c32.js similarity index 69% rename from cmd/edgex-ui-server/static/web/zh/894.407bd7f3a95dc5bc38a8.js rename to cmd/edgex-ui-server/static/web/zh/894.dc385c7f0166f0128c32.js index 336d7179..9515f265 100644 --- a/cmd/edgex-ui-server/static/web/zh/894.407bd7f3a95dc5bc38a8.js +++ b/cmd/edgex-ui-server/static/web/zh/894.dc385c7f0166f0128c32.js @@ -1 +1 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[894],{894:(Qe,E,l)=>{l.r(E),l.d(E,{AppServiceModule:()=>Xe});var c=l(8583),r=l(3092),p=l(9502),e=l(476);let I=(()=>{class _{constructor(){}ngOnInit(){}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[p.lC],styles:[""]}),_})();var m=l(3692);const M=function(_){return{appSvcKey:_}};function R(_,a){if(1&_&&(e.TgZ(0,"li",8),e.TgZ(1,"div",9),e.TgZ(2,"div",10),e._UZ(3,"i",11),e.qZA(),e.TgZ(4,"div",12),e.TgZ(5,"div",13),e.TgZ(6,"h5",14),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",15),e._uU(10),e.qZA(),e.TgZ(11,"span",16),e._UZ(12,"i",17),e.TgZ(13,"span"),e.SDv(14,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&_){const t=a.$implicit;e.xp6(7),e.hij(" ",t.ServiceId," "),e.xp6(3),e.hij("port ",t.Port,""),e.xp6(1),e.Q6J("queryParams",e.VKq(3,M,t.ServiceId))}}let q=(()=>{class _{constructor(t){this.registrySvc=t,this.appServiceList=[]}ngOnInit(){this.getAllAppSvc()}getAllAppSvc(){this.registrySvc.getAllAppSvc().subscribe(t=>{this.appServiceList=[],t.forEach(n=>{n.ServiceId.startsWith("app-")&&this.appServiceList.push(n)})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(m.r))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service-list"]],decls:8,vars:1,consts:function(){let a,t;return a="\u5E94\u7528\u670D\u52A1\u5217\u8868",t="\u914D\u7F6E",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],[1,"font-weight-bold"],a,[1,"card-body"],[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-3"],[1,"d-inline","mr-3","align-middle","text-dark"],["role","button",1,"badge","badge-info","mr-3"],["role","button","routerLink","../app-service-configurable",1,"badge","badge-secondary","float-right",3,"queryParams"],[1,"fa","fa-cog","mr-1"],t]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"ul",6),e.YNc(7,R,15,5,"li",7),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngForOf",n.appServiceList))},directives:[c.sg,p.rH],styles:[""]}),_})();function b(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,18),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e.TgZ(9,"span"),e.SDv(10,20),e.qZA(),e._UZ(11,"span",21),e.qZA(),e.TgZ(12,"div",7),e.TgZ(13,"select",8),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Type=i}),e.TgZ(14,"option",22),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",23),e._uU(17,"mqtt"),e.qZA(),e.TgZ(18,"option",24),e._uU(19,"zero"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",25),e.TgZ(21,"div",26),e.TgZ(22,"div",14),e.TgZ(23,"div",27),e._UZ(24,"i",28),e.TgZ(25,"span"),e.SDv(26,29),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.TgZ(28,"form"),e.TgZ(29,"div",3),e.TgZ(30,"label",30),e.SDv(31,31),e.qZA(),e.TgZ(32,"div",32),e.TgZ(33,"input",33),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",3),e.TgZ(35,"label",30),e.SDv(36,34),e.qZA(),e.TgZ(37,"div",32),e.TgZ(38,"input",35),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",3),e.TgZ(40,"label",30),e.SDv(41,36),e.qZA(),e.TgZ(42,"div",32),e.TgZ(43,"input",37),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",3),e.TgZ(45,"label",38),e.SDv(46,39),e.qZA(),e.TgZ(47,"div",40),e.TgZ(48,"input",41),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",26),e.TgZ(50,"div",14),e.TgZ(51,"div",27),e._UZ(52,"i",28),e.TgZ(53,"span"),e._uU(54,"Publish Host"),e.qZA(),e.qZA(),e.TgZ(55,"div",19),e.TgZ(56,"form"),e.TgZ(57,"div",3),e.TgZ(58,"label",30),e.SDv(59,42),e.qZA(),e.TgZ(60,"div",32),e.TgZ(61,"input",33),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Host=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",3),e.TgZ(63,"label",30),e.SDv(64,43),e.qZA(),e.TgZ(65,"div",32),e.TgZ(66,"input",35),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Port=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",3),e.TgZ(68,"label",30),e.SDv(69,44),e.qZA(),e.TgZ(70,"div",32),e.TgZ(71,"input",37),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Protocol=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",3),e.TgZ(73,"label",30),e.SDv(74,45),e.qZA(),e.TgZ(75,"div",32),e.TgZ(76,"input",46),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.PublishTopic=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",25),e.TgZ(78,"div",47),e.TgZ(79,"div",48),e.TgZ(80,"div",27),e._UZ(81,"i",28),e.TgZ(82,"span"),e.SDv(83,49),e.qZA(),e.qZA(),e.TgZ(84,"div",19),e.TgZ(85,"form"),e.TgZ(86,"div",3),e.TgZ(87,"label",4),e._uU(88,"ClientId"),e.qZA(),e.TgZ(89,"div",7),e.TgZ(90,"input",50),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(91,"div",3),e.TgZ(92,"label",4),e._uU(93,"Qos"),e.qZA(),e.TgZ(94,"div",7),e.TgZ(95,"input",51),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Qos=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(96,"div",3),e.TgZ(97,"label",4),e._uU(98,"KeepAlive"),e.qZA(),e.TgZ(99,"div",7),e.TgZ(100,"input",52),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(101,"div",3),e.TgZ(102,"label",4),e._uU(103,"Retained"),e.qZA(),e.TgZ(104,"div",7),e.TgZ(105,"select",53),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Retained=i}),e.TgZ(106,"option",54),e._uU(107,"false"),e.qZA(),e.TgZ(108,"option",55),e._uU(109,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(110,"div",3),e.TgZ(111,"label",4),e._uU(112,"AutoReconnect"),e.qZA(),e.TgZ(113,"div",7),e.TgZ(114,"select",56),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.AutoReconnect=i}),e.TgZ(115,"option",54),e._uU(116,"false"),e.qZA(),e.TgZ(117,"option",55),e._uU(118,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(119,"div",3),e.TgZ(120,"label",4),e._uU(121,"ConnectTimeout"),e.qZA(),e.TgZ(122,"div",7),e.TgZ(123,"input",57),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(124,"div",3),e.TgZ(125,"label",4),e._uU(126,"authmode"),e.qZA(),e.TgZ(127,"div",7),e.TgZ(128,"select",58),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.authmode=i}),e.TgZ(129,"option",59),e._uU(130,"none"),e.qZA(),e.TgZ(131,"option",60),e._uU(132,"usernamepassword"),e.qZA(),e.TgZ(133,"option",61),e._uU(134,"clientcert"),e.qZA(),e.TgZ(135,"option",62),e._uU(136,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(137,"div",3),e.TgZ(138,"label",4),e._uU(139,"SkipCertVerify"),e.qZA(),e.TgZ(140,"div",7),e.TgZ(141,"select",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.SkipCertVerify=i}),e.TgZ(142,"option",54),e._uU(143,"false"),e.qZA(),e.TgZ(144,"option",55),e._uU(145,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(146,"div",3),e.TgZ(147,"label",4),e._uU(148,"secretname"),e.qZA(),e.TgZ(149,"div",7),e.TgZ(150,"input",64),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.secretname=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Type),e.xp6(20),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.PublishTopic),e.xp6(14),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Qos),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Retained),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.authmode),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.secretname)}}function U(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e._uU(4,"External MQTT Trigger"),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e._uU(9,"Url"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",65),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Url=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",3),e.TgZ(13,"label",4),e._uU(14,"SubscribeTopics"),e.qZA(),e.TgZ(15,"div",7),e.TgZ(16,"input",41),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SubscribeTopics=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",3),e.TgZ(18,"label",4),e._uU(19,"PublishTopic"),e.qZA(),e.TgZ(20,"div",7),e.TgZ(21,"input",46),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.PublishTopic=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",3),e.TgZ(23,"label",4),e._uU(24,"ClientId"),e.qZA(),e.TgZ(25,"div",7),e.TgZ(26,"input",50),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",3),e.TgZ(28,"label",4),e._uU(29,"ConnectTimeout"),e.qZA(),e.TgZ(30,"div",7),e.TgZ(31,"input",57),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ConnectTimeout=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"div",3),e.TgZ(33,"label",4),e._uU(34,"AutoReconnect"),e.qZA(),e.TgZ(35,"div",7),e.TgZ(36,"select",56),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AutoReconnect=i}),e.TgZ(37,"option",54),e._uU(38,"false"),e.qZA(),e.TgZ(39,"option",55),e._uU(40,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",3),e.TgZ(42,"label",4),e._uU(43,"KeepAlive"),e.qZA(),e.TgZ(44,"div",7),e.TgZ(45,"input",52),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.KeepAlive=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",3),e.TgZ(47,"label",4),e._uU(48,"QoS"),e.qZA(),e.TgZ(49,"div",7),e.TgZ(50,"input",66),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.QoS=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",3),e.TgZ(52,"label",4),e._uU(53,"Retain"),e.qZA(),e.TgZ(54,"div",7),e.TgZ(55,"select",53),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Retain=i}),e.TgZ(56,"option",54),e._uU(57,"false"),e.qZA(),e.TgZ(58,"option",55),e._uU(59,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(60,"div",3),e.TgZ(61,"label",4),e._uU(62,"SkipCertVerify"),e.qZA(),e.TgZ(63,"div",7),e.TgZ(64,"select",63),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SkipCertVerify=i}),e.TgZ(65,"option",54),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",55),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",3),e.TgZ(70,"label",4),e._uU(71,"SecretPath"),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"input",67),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SecretPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(74,"div",3),e.TgZ(75,"label",4),e._uU(76,"AuthMode"),e.qZA(),e.TgZ(77,"div",7),e.TgZ(78,"select",68),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AuthMode=i}),e.TgZ(79,"option",59),e._uU(80,"none"),e.qZA(),e.TgZ(81,"option",60),e._uU(82,"usernamepassword"),e.qZA(),e.TgZ(83,"option",61),e._uU(84,"clientcert"),e.qZA(),e.TgZ(85,"option",62),e._uU(86,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(11),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Url),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SubscribeTopics),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.PublishTopic),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.QoS),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Retain),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SecretPath),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AuthMode)}}function G(_,a){1&_&&(e.TgZ(0,"div",48),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,69),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"div",0),e.TgZ(7,"small"),e._UZ(8,"i",1),e.TgZ(9,"span"),e.SDv(10,70),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA())}let O=(()=>{class _{constructor(){this._configTrigger={},this.configTriggerChange=new e.vpe,this.configTrigger={},this.configTrigger.EdgexMessageBus={Optional:{},SubscribeHost:{},PublishHost:{}},this.configTrigger.EdgexMessageBus.Optional={},this.configTrigger.ExternalMqtt={},this.configTrigger.HTTP={}}get configTrigger(){return this._configTrigger}set configTrigger(t){Object.assign(this._configTrigger,t)}ngOnInit(){this.renderPopoverComponent()}ngOnChanges(){this.configTriggerChange.emit(this.configTrigger)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}onTriggerSelected(){this.renderPopoverComponent()}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-trigger"]],inputs:{configTrigger:"configTrigger"},outputs:{configTriggerChange:"configTriggerChange"},features:[e.TTD],decls:24,vars:4,consts:function(){let a,t,n,i,o,s,d,u,T,C,Z,h,P,v,S,N;return a="\u5F53\u524D\u7248\u672C\u4E2D\uFF0C\u6539\u53D8\u89E6\u53D1\u5668Trigger\u9700\u8981\u91CD\u542F\u5F53\u524D\u5E94\u7528\u670D\u52A1\uFF0C\u56E0\u6B64\u76EE\u524D\u53EA\u652F\u6301\u9884\u89C8\u5F53\u524D\u5E94\u7528\u670D\u52A1\u4F7F\u7528\u7684\u89E6\u53D1\u5668\u4FE1\u606F\uFF0C\u4E0B\u4E00\u4E2A\u7248\u672CGUI\u5C06\u4F1A\u652F\u6301\u52A8\u6001\u4FEE\u6539\u89E6\u53D1\u5668",t="\u7C7B\u578B",n="Edgex\u6D88\u606F\u603B\u7EBF\u89E6\u53D1\u5668",i="\u7C7B\u578B",o="\u8BA2\u9605\u4E3B\u673A\u4FE1\u606F",s="Host",d="Port",u="Protocol",T="SubscribeTopics",C="Host",Z="Port",h="Protocol",P="PublishTopic",v="\u914D\u7F6E\u9009\u9879",S="HTTP\u89E6\u53D1\u5668",N="no optional fields needs to setup for http trigger",[["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],a,[1,"form-group","row"],[1,"col-sm-2","col-form-label"],t,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Trigger type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","edgex-messagebus"],["value","external-mqtt"],["value","http"],["class","card mb-3",4,"ngIf"],["class","card",4,"ngIf"],[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],n,[1,"card-body"],i,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","EdgeX Message Bus type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["value","redis"],["value","mqtt"],["value","zero"],[1,"row"],[1,"col-sm-6","col-md-6"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tag","mr-2","text-danger"],o,[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],s,[1,"col-sm-9"],["type","text","name","Host",1,"form-control",3,"ngModel","ngModelChange"],d,["type","text","name","Port",1,"form-control",3,"ngModel","ngModelChange"],u,["type","text","name","Protocol",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-3","col-md-3","col-form-label","text-nowrap","text-truncate"],T,[1,"col-sm-9","col-md-9"],["type","text","name","SubscribeTopics",1,"form-control",3,"ngModel","ngModelChange"],C,Z,h,P,["type","text","name","PublishTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-12","col-md-12"],[1,"card"],v,["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Qos",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","authmode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","secretname",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","QoS",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],S,N]},template:function(t,n){1&t&&(e.TgZ(0,"div"),e.TgZ(1,"div",0),e.TgZ(2,"small"),e._UZ(3,"i",1),e.TgZ(4,"span"),e.tHW(5,2),e._UZ(6,"br"),e.N_p(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"form"),e.TgZ(8,"div",3),e.TgZ(9,"label",4),e.TgZ(10,"span"),e.SDv(11,5),e.qZA(),e._UZ(12,"span",6),e.qZA(),e.TgZ(13,"div",7),e.TgZ(14,"select",8),e.NdJ("ngModelChange",function(o){return n.configTrigger.Type=o})("ngModelChange",function(){return n.onTriggerSelected()}),e.TgZ(15,"option",9),e._uU(16,"edgex-messagebus"),e.qZA(),e.TgZ(17,"option",10),e._uU(18,"external-mqtt"),e.qZA(),e.TgZ(19,"option",11),e._uU(20,"http"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(21,b,151,18,"div",12),e.YNc(22,U,87,12,"div",12),e.YNc(23,G,11,0,"div",13),e.qZA()),2&t&&(e.xp6(14),e.Q6J("ngModel",n.configTrigger.Type),e.xp6(7),e.Q6J("ngIf","edgex-messagebus"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","external-mqtt"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","http"===n.configTrigger.Type))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,c.O5,r.Fj],styles:[""]}),_})();var A=l(7822);let x=(()=>{class _{constructor(t){this.el=t,this.classes="border border-info shadow-lg bg-white rounded"}ondragover(t){t.preventDefault(),this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.add(i)})}ondragenter(t){}ondragend(t){}ondragleave(t){this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.remove(i)})}ondragexit(t){}ondrop(t){this.classes.split(" ").forEach(i=>{this.el.nativeElement.classList.remove(i)})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(e.SBq))},_.\u0275dir=e.lG2({type:_,selectors:[["","appDragHighlight",""]],hostBindings:function(t,n){1&t&&e.NdJ("dragover",function(o){return n.ondragover(o)})("dragenter",function(o){return n.ondragenter(o)})("dragend",function(o){return n.ondragend(o)})("dragleave",function(o){return n.ondragleave(o)})("dragexit",function(o){return n.ondragexit(o)})("drop",function(o){return n.ondrop(o)})}}),_})(),F=(()=>{class _{constructor(){this.addTagsChange=new e.vpe,this.addTags={Parameters:{Tags:""}}}ngOnInit(){}ngOnChanges(){this.addTagsChange.emit(this.addTags)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-add-tags"]],inputs:{addTags:"addTags"},outputs:{addTagsChange:"addTagsChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","String containing comma separated list of tag key/value pairs. The tag key/value pairs are colon seperated,\n for example: \n GatewayId:HoustonStore000123,Latitude:29.630771,Longitude:-95.377603",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","Tags",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Tags"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(o){return n.addTags.Parameters.Tags=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.addTags.Parameters.Tags))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function y(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"BatchThreshold"),e.qZA(),e._UZ(4,"span",12),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",13),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().batch.Parameters.BatchThreshold=i}),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.BatchThreshold)}}function J(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"TimeInterval"),e.qZA(),e._UZ(4,"span",14),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",15),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().batch.Parameters.TimeInterval=i}),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.TimeInterval)}}let B=(()=>{class _{constructor(){this.batchChange=new e.vpe,this.batch={Parameters:{Mode:"bycount",IsEventData:"true"}}}ngOnInit(){}ngOnChanges(){this.batchChange.emit(this.batch)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-batch"]],inputs:{batch:"batch"},outputs:{batchChange:"batchChange"},features:[e.TTD],decls:26,vars:4,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Mode",1,"custom-select",3,"ngModel","ngModelChange"],["value","bycount"],["value","bytime"],["value","bytimecount"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","If true, specifies that the data being batch is Events and to un-marshal the batched data to []Event prior to returning the batched data. By default the batched data returned is [][]byte",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","IsEventData",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Number of items to batch before sending batched items to the next function in the pipeline.
\n Used with "bycount" and "bytimecount" modes',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","BatchThreshold",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Amount of time to batch before sending batched items to the next function in the pipeline.
\n Used with "bytime" and "bytimecount" modes,
\n
\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","TimeInterval",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Mode"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"select",3),e.NdJ("ngModelChange",function(o){return n.batch.Parameters.Mode=o}),e.TgZ(7,"option",4),e._uU(8,"bycount"),e.qZA(),e.TgZ(9,"option",5),e._uU(10,"bytime"),e.qZA(),e.TgZ(11,"option",6),e._uU(12,"bytimecount"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(13,y,7,1,"div",7),e.YNc(14,J,7,1,"div",7),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"IsEventData"),e.qZA(),e._UZ(19,"span",8),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"select",9),e.NdJ("ngModelChange",function(o){return n.batch.Parameters.IsEventData=o}),e.TgZ(22,"option",10),e._uU(23,"false"),e.qZA(),e.TgZ(24,"option",11),e._uU(25,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngIf","bycount"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(1),e.Q6J("ngIf","bytime"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngModel",n.batch.Parameters.IsEventData))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,c.O5,r.Fj],styles:[""]}),_})(),D=(()=>{class _{constructor(){this.compressChange=new e.vpe,this.compress={Parameters:{Algorithm:"gzip"}}}ngOnInit(){}ngOnChanges(){this.compressChange.emit(this.compress)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-compress"]],inputs:{compress:"compress"},outputs:{compressChange:"compressChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","gzip"],["value","zlib"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.compress.Parameters.Algorithm=o}),e.TgZ(6,"option",4),e._uU(7,"gzip"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"zlib"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.compress.Parameters.Algorithm))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),w=(()=>{class _{constructor(){this.encryptChange=new e.vpe,this.encrypt={Parameters:{Algorithm:"aes256"}}}ngOnInit(){}ngOnChanges(){this.encryptChange.emit(this.encrypt)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-encrypt"]],inputs:{encrypt:"encrypt"},outputs:{encryptChange:"encryptChange"},features:[e.TTD],decls:22,vars:3,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","aes256"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Path in the Secret Store where the encryption key is located.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Name of the secret for the encryption key in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.Algorithm=o}),e.TgZ(6,"option",4),e._uU(7,"aes256"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e.TgZ(9,"label",1),e.TgZ(10,"span"),e._uU(11,"SecretPath"),e.qZA(),e._UZ(12,"span",5),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.SecretPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"SecretName"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(o){return n.encrypt.Parameters.SecretName=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.encrypt.Parameters.Algorithm),e.xp6(9),e.Q6J("ngModel",n.encrypt.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.encrypt.Parameters.SecretName))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();var L=l(1302);let H=(()=>{class _{constructor(){this.filterByDeviceNameChange=new e.vpe,this.deviceNames=[],this.filterByDeviceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.deviceNames=this.filterByDeviceName.Parameters.DeviceNames.split(","),this.filterByDeviceNameChange.emit(this.filterByDeviceName)}onDeviceNamesChange(){this.filterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-device-name"]],inputs:{filterByDeviceName:"filterByDeviceName"},outputs:{filterByDeviceNameChange:"filterByDeviceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"deviceSelected","deviceSelectedChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the device names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"DeviceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-combo-list",3),e.NdJ("deviceSelectedChange",function(o){return n.deviceNames=o})("deviceSelectedChange",function(){return n.onDeviceNamesChange()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByDeviceName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("deviceSelected",n.deviceNames),e.xp6(7),e.Q6J("ngModel",n.filterByDeviceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,L.h,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})();var V=l(6322);let X=(()=>{class _{constructor(){this.filterByProfileNameChange=new e.vpe,this.profileNames=[],this.filterByProfileName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.profileNames=this.filterByProfileName.Parameters.ProfileNames.split(","),this.filterByProfileNameChange.emit(this.filterByProfileName)}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.filterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-profile-name"]],inputs:{filterByProfileName:"filterByProfileName"},outputs:{filterByProfileNameChange:"filterByProfileNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"selectedProfiles","deviceProfileSelectedEvent"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the profile names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ProfileNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-profile-combo-list",3),e.NdJ("deviceProfileSelectedEvent",function(o){return n.onDeviceProfileSelectedEvent(o)}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByProfileName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("selectedProfiles",n.profileNames),e.xp6(7),e.Q6J("ngModel",n.filterByProfileName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,V.o,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),Q=(()=>{class _{constructor(){this.filterByResourceNameChange=new e.vpe,this.filterByResourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterByResourceNameChange.emit(this.filterByResourceName)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-resource-name"]],inputs:{filterByResourceName:"filterByResourceName"},outputs:{filterByResourceNameChange:"filterByResourceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ResourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the resource names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ResourceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(o){return n.filterByResourceName.Parameters.ResourceNames=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(o){return n.filterByResourceName.Parameters.FilterOut=o}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.filterByResourceName.Parameters.ResourceNames),e.xp6(7),e.Q6J("ngModel",n.filterByResourceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr],styles:[""]}),_})(),W=(()=>{class _{constructor(){this.filterBySourceNameChange=new e.vpe,this.filterBySourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterBySourceNameChange.emit(this.filterBySourceName)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-filter-by-source-name"]],inputs:{filterBySourceName:"filterBySourceName"},outputs:{filterBySourceNameChange:"filterBySourceNameChange"},features:[e.TTD],decls:18,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","SourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the source names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"SourceNames"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",3),e.NdJ("ngModelChange",function(o){return n.filterBySourceName.Parameters.SourceNames=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",0),e.TgZ(8,"label",1),e.TgZ(9,"span"),e._uU(10,"FilterOut"),e.qZA(),e._UZ(11,"span",4),e.qZA(),e.TgZ(12,"div",2),e.TgZ(13,"select",5),e.NdJ("ngModelChange",function(o){return n.filterBySourceName.Parameters.FilterOut=o}),e.TgZ(14,"option",6),e._uU(15,"false"),e.qZA(),e.TgZ(16,"option",7),e._uU(17,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.filterBySourceName.Parameters.SourceNames),e.xp6(7),e.Q6J("ngModel",n.filterBySourceName.Parameters.FilterOut))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr],styles:[""]}),_})(),Y=(()=>{class _{constructor(){this.transformChange=new e.vpe,this.transform={Parameters:{Type:"json"}}}ngOnInit(){}ngOnChanges(){this.transformChange.emit(this.transform)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-transform"]],inputs:{transform:"transform"},outputs:{transformChange:"transformChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","json"],["value","xml"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Type"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.transform.Parameters.Type=o}),e.TgZ(6,"option",4),e._uU(7,"json"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"xml"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.transform.Parameters.Type))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr],styles:[""]}),_})(),k=(()=>{class _{constructor(){this.httpExportChange=new e.vpe,this.httpExport={Parameters:{Method:"post",MimeType:"application/json",PersistOnError:"false",ContinueOnSendError:"true",ReturnInputData:"false"}}}ngOnInit(){}ngOnChanges(){this.httpExportChange.emit(this.httpExport)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-httpexport"]],inputs:{httpExport:"httpExport"},outputs:{httpExportChange:"httpExportChange"},features:[e.TTD],decls:76,vars:9,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Method",1,"custom-select",3,"ngModel","ngModelChange"],["value","post"],["value","put"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Optional mime type for the data. Defaults to application/json if not set.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MimeType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports, if true continues after send error so next export function executes.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["name","ContinueOnSendError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports if true, passes the input data to next export function.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ReturnInputData",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the header key to add to the HTTP header",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","HeaderName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Path in the secret in the Secret Store where to header value is stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the secret for the header value in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Method"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.Method=o}),e.TgZ(6,"option",4),e._uU(7,"post"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"put"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",0),e.TgZ(11,"label",1),e._uU(12,"Url"),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.Url=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"MimeType"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.MimeType=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",0),e.TgZ(23,"label",1),e.TgZ(24,"span"),e._uU(25,"PersistOnError"),e.qZA(),e._UZ(26,"span",9),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"select",10),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.PersistOnError=o}),e.TgZ(29,"option",11),e._uU(30,"false"),e.qZA(),e.TgZ(31,"option",12),e._uU(32,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",0),e.TgZ(34,"label",13),e.TgZ(35,"span"),e._uU(36,"ContinueOnSendError"),e.qZA(),e._UZ(37,"span",14),e.qZA(),e.TgZ(38,"div",15),e.TgZ(39,"select",16),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.ContinueOnSendError=o}),e.TgZ(40,"option",11),e._uU(41,"false"),e.qZA(),e.TgZ(42,"option",12),e._uU(43,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",0),e.TgZ(45,"label",1),e.TgZ(46,"span"),e._uU(47,"ReturnInputData"),e.qZA(),e._UZ(48,"span",17),e.qZA(),e.TgZ(49,"div",2),e.TgZ(50,"select",18),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.ReturnInputData=o}),e.TgZ(51,"option",11),e._uU(52,"false"),e.qZA(),e.TgZ(53,"option",12),e._uU(54,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",0),e.TgZ(56,"label",1),e.TgZ(57,"span"),e._uU(58,"HeaderName"),e.qZA(),e._UZ(59,"span",19),e.qZA(),e.TgZ(60,"div",2),e.TgZ(61,"input",20),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.HeaderName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",0),e.TgZ(63,"label",1),e.TgZ(64,"span"),e._uU(65,"SecretPath"),e.qZA(),e._UZ(66,"span",21),e.qZA(),e.TgZ(67,"div",2),e.TgZ(68,"input",22),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.SecretPath=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",0),e.TgZ(70,"label",1),e.TgZ(71,"span"),e._uU(72,"SecretName"),e.qZA(),e._UZ(73,"span",23),e.qZA(),e.TgZ(74,"div",2),e.TgZ(75,"input",24),e.NdJ("ngModelChange",function(o){return n.httpExport.Parameters.SecretName=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.httpExport.Parameters.Method),e.xp6(9),e.Q6J("ngModel",n.httpExport.Parameters.Url),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.MimeType),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ContinueOnSendError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ReturnInputData),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.HeaderName),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretName))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();function j(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"SecretPath"),e.qZA(),e._UZ(4,"span",27),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"input",28),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().mqttExport.Parameters.SecretPath=i}),e.qZA(),e.TgZ(7,"div",29),e.TgZ(8,"small"),e.SDv(9,30),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.mqttExport.Parameters.SecretPath),e.Q6J("ngModel",t.mqttExport.Parameters.SecretPath)}}let z=(()=>{class _{constructor(){this.mqttExportChange=new e.vpe,this.mqttExport={Parameters:{Qos:"0",AutoReconnect:"true",Retain:"true",SkipVerify:"true",PersistOnError:"false",AuthMode:"none"}}}ngOnInit(){}ngOnChanges(){this.mqttExportChange.emit(this.mqttExport)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}authModeIsNotNone(){return this.renderPopoverComponent(),"none"!==this.mqttExport.Parameters.AuthMode}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-mqttexport"]],inputs:{mqttExport:"mqttExport"},outputs:{mqttExportChange:"mqttExportChange"},features:[e.TTD],decls:85,vars:10,consts:function(){let a;return a="the SecretPath can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","tcp://broker-host:1883",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","BrokerAddress",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Topic",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],["value","0"],["value","1"],["value","2"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the certificate verification should be skipped.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","SkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Mode of authentication to use when connecting to the MQTT Broker.
\n
\n none - No authentication required.
\n
\n usernamepassword - Use username and password authentication. The Secret Store (Vault or InsecureSecrets) must contain the username and password secrets.
\n
\n clientcert - Use Client Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the clientkey and clientcert secrets.
\n
\n cacert - Use CA Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the cacert secret.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Path in the secret store where to authorization secrets are stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],a]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e.TgZ(3,"span"),e._uU(4,"BrokerAddress"),e.qZA(),e._UZ(5,"span",3),e.qZA(),e.TgZ(6,"div",4),e.TgZ(7,"input",5),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.BrokerAddress=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",1),e.TgZ(9,"label",2),e._uU(10,"Topic"),e.qZA(),e.TgZ(11,"div",4),e.TgZ(12,"input",6),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Topic=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"label",2),e._uU(15,"ClientId"),e.qZA(),e.TgZ(16,"div",4),e.TgZ(17,"input",7),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.ClientId=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",1),e.TgZ(19,"label",2),e._uU(20,"Qos"),e.qZA(),e.TgZ(21,"div",4),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Qos=o}),e.TgZ(23,"option",9),e._uU(24,"0"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"1"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"div",1),e.TgZ(30,"label",2),e._uU(31,"AutoReconnect"),e.qZA(),e.TgZ(32,"div",4),e.TgZ(33,"select",12),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.AutoReconnect=o}),e.TgZ(34,"option",13),e._uU(35,"false"),e.qZA(),e.TgZ(36,"option",14),e._uU(37,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",1),e.TgZ(39,"label",2),e._uU(40,"Retain"),e.qZA(),e.TgZ(41,"div",4),e.TgZ(42,"select",15),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.Retain=o}),e.TgZ(43,"option",13),e._uU(44,"false"),e.qZA(),e.TgZ(45,"option",14),e._uU(46,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(47,"div",1),e.TgZ(48,"label",2),e.TgZ(49,"span"),e._uU(50,"SkipVerify"),e.qZA(),e._UZ(51,"span",16),e.qZA(),e.TgZ(52,"div",4),e.TgZ(53,"select",17),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.SkipVerify=o}),e.TgZ(54,"option",13),e._uU(55,"false"),e.qZA(),e.TgZ(56,"option",14),e._uU(57,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",1),e.TgZ(59,"label",2),e.TgZ(60,"span"),e._uU(61,"PersistOnError"),e.qZA(),e._UZ(62,"span",18),e.qZA(),e.TgZ(63,"div",4),e.TgZ(64,"select",19),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.PersistOnError=o}),e.TgZ(65,"option",13),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",14),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",1),e.TgZ(70,"label",2),e.TgZ(71,"span"),e._uU(72,"AuthMode"),e.qZA(),e._UZ(73,"span",20),e.qZA(),e.TgZ(74,"div",4),e.TgZ(75,"select",21),e.NdJ("ngModelChange",function(o){return n.mqttExport.Parameters.AuthMode=o}),e.TgZ(76,"option",22),e._uU(77,"none"),e.qZA(),e.TgZ(78,"option",23),e._uU(79,"usernamepassword"),e.qZA(),e.TgZ(80,"option",24),e._uU(81,"clientcert"),e.qZA(),e.TgZ(82,"option",25),e._uU(83,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(84,j,10,3,"div",26),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.mqttExport.Parameters.BrokerAddress),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Topic),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.ClientId),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Qos),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AutoReconnect),e.xp6(9),e.Q6J("ngModel",n.mqttExport.Parameters.Retain),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.SkipVerify),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AuthMode),e.xp6(9),e.Q6J("ngIf",n.authModeIsNotNone()))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,c.O5],styles:[""]}),_})(),K=(()=>{class _{constructor(){this.jsonLogicChange=new e.vpe,this.jsonLogic={Parameters:{Rule:""}}}ngOnInit(){}ngOnChanges(){this.jsonLogicChange.emit(this.jsonLogic)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-jsonlogic"]],inputs:{jsonLogic:"jsonLogic"},outputs:{jsonLogicChange:"jsonLogicChange"},features:[e.TTD],decls:6,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","Rule",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Rule"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(o){return n.jsonLogic.Parameters.Rule=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.jsonLogic.Parameters.Rule))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function ee(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"MediaType"),e.qZA(),e._UZ(4,"span",22),e.qZA(),e.TgZ(5,"div",3),e.TgZ(6,"input",23),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw().pushToCore.Parameters.MediaType=i}),e.qZA(),e.TgZ(7,"div",24),e.TgZ(8,"small"),e.SDv(9,25),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.pushToCore.Parameters.MediaType),e.Q6J("ngModel",t.pushToCore.Parameters.MediaType)}}let te=(()=>{class _{constructor(){this.pushToCoreChange=new e.vpe,this.pushToCore={Parameters:{ValueType:"String"}}}ngOnInit(){}ngOnChanges(){this.pushToCoreChange.emit(this.pushToCore)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}valueTypeIsBinary(){return this.renderPopoverComponent(),"Binary"===this.pushToCore.Parameters.ValueType}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-push-to-core"]],inputs:{pushToCore:"pushToCore"},outputs:{pushToCoreChange:"pushToCoreChange"},features:[e.TTD],decls:48,vars:5,consts:function(){let a;return a="the MediaType can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ProfileName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","DeviceName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ResourceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Value type to use the new Event Reading's value type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ValueType",1,"custom-select",3,"ngModel","ngModelChange"],["value","Bool"],["value","Int8"],["value","Int64"],["value","Uint8"],["value","Uint64"],["value","Float32"],["value","Float64"],["value","String"],["value","Binary"],["value","Object"],["value","Float32Array"],["value","BoolArray"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Media type to use the new Event Reading's value type. Required when the value type is Binary",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MediaType",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],a]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e._uU(3,"ProfileName"),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"input",4),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ProfileName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",1),e.TgZ(7,"label",2),e._uU(8,"DeviceName"),e.qZA(),e.TgZ(9,"div",3),e.TgZ(10,"input",5),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.DeviceName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",1),e.TgZ(12,"label",2),e._uU(13,"ResourceName"),e.qZA(),e.TgZ(14,"div",3),e.TgZ(15,"input",6),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ResourceName=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"div",1),e.TgZ(17,"label",2),e.TgZ(18,"span"),e._uU(19,"ValueType"),e.qZA(),e._UZ(20,"span",7),e.qZA(),e.TgZ(21,"div",3),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(o){return n.pushToCore.Parameters.ValueType=o}),e.TgZ(23,"option",9),e._uU(24,"Bool"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"Int8"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"Int64"),e.qZA(),e.TgZ(29,"option",12),e._uU(30,"Uint8"),e.qZA(),e.TgZ(31,"option",13),e._uU(32,"Uint64"),e.qZA(),e.TgZ(33,"option",14),e._uU(34,"Float32"),e.qZA(),e.TgZ(35,"option",15),e._uU(36,"Float64"),e.qZA(),e.TgZ(37,"option",16),e._uU(38,"String"),e.qZA(),e.TgZ(39,"option",17),e._uU(40,"Binary"),e.qZA(),e.TgZ(41,"option",18),e._uU(42,"Object"),e.qZA(),e.TgZ(43,"option",19),e._uU(44,"Float32Array"),e.qZA(),e.TgZ(45,"option",20),e._uU(46,"BoolArray"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(47,ee,10,3,"div",21),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ProfileName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.DeviceName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ResourceName),e.xp6(7),e.Q6J("ngModel",n.pushToCore.Parameters.ValueType),e.xp6(25),e.Q6J("ngIf",n.valueTypeIsBinary()))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,r.EJ,r.YN,r.Kr,c.O5],styles:[""]}),_})(),ne=(()=>{class _{constructor(){this.setResponseDataChange=new e.vpe,this.setResponseData={Parameters:{ResponseContentType:""}}}ngOnInit(){}ngOnChanges(){this.setResponseDataChange.emit(this.setResponseData)}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-function-set-response-data"]],inputs:{setResponseData:"setResponseData"},outputs:{setResponseDataChange:"setResponseDataChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Used to specify content-type header for response, for example, application/json",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["type","text","name","ResponseContentType",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"ResponseContentType"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(o){return n.setResponseData.Parameters.ResponseContentType=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.setResponseData.Parameters.ResponseContentType))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})();function _e(_,a){1&_&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,24),e.qZA(),e.qZA(),e.qZA())}function oe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"span",25),e.NdJ("dragstart",function(i){const s=e.CHM(t).$implicit;return e.oxw().ondragstartBuiltinFunction(i,s)}),e.TgZ(1,"span",26),e._uU(2),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.ekj("d-table",!n.isSelected(t))("d-none",n.isSelected(t)),e.hYB("id","",n.builtinFuncZoneIdentifier,"",t,""),e.xp6(2),e.Oqu(t)}}function ie(_,a){1&_&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,27),e.qZA(),e.qZA(),e.qZA())}function re(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",28),e.NdJ("dragstart",function(i){const s=e.CHM(t).$implicit;return e.oxw().ondragstartFuncExecutionOrder(i,s)}),e._uU(2),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw();e.xp6(1),e.hYB("id","",n.funcExecOrderZoneIdentifier,"",t,""),e.xp6(1),e.Oqu(t)}}function ae(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-add-tags",43),e.NdJ("addTagsChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("addTags",n.availableFunctions[t])}}function se(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-batch",44),e.NdJ("batchChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("batch",n.availableFunctions[t])}}function le(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-compress",45),e.NdJ("compressChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("compress",n.availableFunctions[t])}}function ge(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-encrypt",46),e.NdJ("encryptChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("encrypt",n.availableFunctions[t])}}function ce(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-device-name",47),e.NdJ("filterByDeviceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByDeviceName",n.availableFunctions[t])}}function pe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-profile-name",48),e.NdJ("filterByProfileNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByProfileName",n.availableFunctions[t])}}function de(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-resource-name",49),e.NdJ("filterByResourceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByResourceName",n.availableFunctions[t])}}function ue(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-source-name",50),e.NdJ("filterBySourceNameChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterBySourceName",n.availableFunctions[t])}}function Te(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-transform",51),e.NdJ("transformChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("transform",n.availableFunctions[t])}}function me(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-httpexport",52),e.NdJ("httpExportChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("httpExport",n.availableFunctions[t])}}function Ae(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-mqttexport",53),e.NdJ("mqttExportChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("mqttExport",n.availableFunctions[t])}}function Ee(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-jsonlogic",54),e.NdJ("jsonLogicChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("jsonLogic",n.availableFunctions[t])}}function fe(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-push-to-core",55),e.NdJ("pushToCoreChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("pushToCore",n.availableFunctions[t])}}function Ce(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-set-response-data",56),e.NdJ("setResponseDataChange",function(i){e.CHM(t);const o=e.oxw().$implicit;return e.oxw(2).availableFunctions[o]=i}),e.qZA(),e.qZA()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("setResponseData",n.availableFunctions[t])}}function Ze(_,a){1&_&&(e.TgZ(0,"div"),e.TgZ(1,"div",57),e.TgZ(2,"small"),e._UZ(3,"i",17),e.TgZ(4,"span"),e.SDv(5,58),e.qZA(),e.qZA(),e.qZA(),e.qZA())}function he(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",32),e.TgZ(1,"div",33),e._UZ(2,"i",34),e.TgZ(3,"span",35),e._uU(4,"Function"),e.qZA(),e.TgZ(5,"span",36),e._uU(6),e.qZA(),e.TgZ(7,"span"),e._uU(8,"Parameters"),e.qZA(),e.TgZ(9,"span",37),e.NdJ("click",function(){const o=e.CHM(t).$implicit;return e.oxw(2).unselectFunc(o)}),e._UZ(10,"i",38),e.qZA(),e.qZA(),e.TgZ(11,"div",39),e.TgZ(12,"div",40),e.YNc(13,ae,2,1,"div",41),e.YNc(14,se,2,1,"div",41),e.YNc(15,le,2,1,"div",41),e.YNc(16,ge,2,1,"div",41),e.YNc(17,ce,2,1,"div",41),e.YNc(18,pe,2,1,"div",41),e.YNc(19,de,2,1,"div",41),e.YNc(20,ue,2,1,"div",41),e.YNc(21,Te,2,1,"div",41),e.YNc(22,me,2,1,"div",41),e.YNc(23,Ae,2,1,"div",41),e.YNc(24,Ee,2,1,"div",41),e.YNc(25,fe,2,1,"div",41),e.YNc(26,Ce,2,1,"div",41),e.YNc(27,Ze,6,0,"div",42),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit,n=e.oxw(2);e.xp6(6),e.Oqu(t),e.xp6(6),e.Q6J("ngSwitch",n.startWith(t)),e.xp6(1),e.Q6J("ngSwitchCase","AddTags"),e.xp6(1),e.Q6J("ngSwitchCase","Batch"),e.xp6(1),e.Q6J("ngSwitchCase","Compress"),e.xp6(1),e.Q6J("ngSwitchCase","Encrypt"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByDeviceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByProfileName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByResourceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterBySourceName"),e.xp6(1),e.Q6J("ngSwitchCase","Transform"),e.xp6(1),e.Q6J("ngSwitchCase","HTTPExport"),e.xp6(1),e.Q6J("ngSwitchCase","MQTTExport"),e.xp6(1),e.Q6J("ngSwitchCase","JSONLogic"),e.xp6(1),e.Q6J("ngSwitchCase","PushToCore"),e.xp6(1),e.Q6J("ngSwitchCase","SetResponseData")}}function Pe(_,a){if(1&_&&(e.TgZ(0,"div",10),e.TgZ(1,"div",11),e._UZ(2,"i",29),e.TgZ(3,"span"),e.SDv(4,30),e.qZA(),e.qZA(),e.TgZ(5,"div",13),e.YNc(6,he,28,16,"div",31),e.qZA(),e.qZA()),2&_){const t=e.oxw();e.xp6(6),e.Q6J("ngForOf",t.selectedFunctionsName)}}let ve=(()=>{class _{constructor(){this.funcExecOrderZoneIdentifier="funcExecOrder-",this.builtinFuncZoneIdentifier="builtinFunc-",this.objectKeys=Object.keys,this.profileNames=[],this.deviceNames=[],this.availableFunctionsChange=new e.vpe,this._selectedFunctionsName=[],this.selectedFunctionsNameChange=new e.vpe,this._availableFunctions={},this.builtinFunctions={},this.initBuiltinFunctions()}get availableFunctions(){return this._availableFunctions}set availableFunctions(t){Object.assign(this._availableFunctions,t)}get selectedFunctionsName(){return this._selectedFunctionsName}set selectedFunctionsName(t){t.forEach((n,i)=>{t[i]=n.trim()}),this._selectedFunctionsName=t}ngOnInit(){}ngOnChanges(){this.setSelectedDevices(),this.setSelectedProfiles(),this.availableFunctionsChange.emit(this.availableFunctions)}startWith(t){let n="Unknown";return Object.keys(this.builtinFunctions).forEach(i=>{t.startsWith(i)&&(n=i)}),n}setSelectedDevices(){var t;(null===(t=this.availableFunctions.FilterByDeviceName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames&&(this.deviceNames=this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames.split(","))}setSelectedProfiles(){var t;(null===(t=this.availableFunctions.FilterByProfileName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByProfileName.Parameters.ProfileNames&&(this.profileNames=this.availableFunctions.FilterByProfileName.Parameters.ProfileNames.split(","))}initBuiltinFunctions(){this.builtinFunctions.AddTags={Parameters:{Tags:""}},this.builtinFunctions.Batch={Parameters:{}},this.builtinFunctions.FilterByDeviceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByProfileName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterBySourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByResourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.Transform={Parameters:{Type:"json"}},this.builtinFunctions.Compress={Parameters:{Algorithm:"gzip"}},this.builtinFunctions.Encrypt={Parameters:{Algorithm:"aes"}},this.builtinFunctions.HTTPExport={Parameters:{}},this.builtinFunctions.MQTTExport={Parameters:{}},this.builtinFunctions.PushToCore={Parameters:{}},this.builtinFunctions.SetResponseData={Parameters:{}},this.builtinFunctions.JSONLogic={Parameters:{}}}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.availableFunctions.FilterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}onDeviceNamesChange(){this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}selectOnefunc(t){this.selectedFunctionsName.push(t),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}unselectFunc(t){-1!==this.selectedFunctionsName.indexOf(t)&&(this.selectedFunctionsName.splice(this.selectedFunctionsName.indexOf(t),1),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName))}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}isSelected(t){let n=!1;return this.selectedFunctionsName.forEach(i=>{t!==i.trim()||(n=!0)}),n}ondropBuiltinFunction(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");!n||this.unselectFunc(n)}ondragstartBuiltinFunction(t,n){t.dataTransfer.setData("funcName",n)}sortSelectedFuncsExecuterOrder(t,n){let i=this.selectedFunctionsName.slice(0);i.splice(i.indexOf(t),1),i.splice(i.indexOf(n),0,t),this.selectedFunctionsName=i,this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}ondropFuncExecutionOrder(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");if(!n)return;let i=`${this.funcExecOrderZoneIdentifier}${n}`,o=t.target.id;if(i===o)return;let s=document.getElementById(i);if(s&&0===o.indexOf(this.funcExecOrderZoneIdentifier)){let d=o.replace(this.funcExecOrderZoneIdentifier,"");this.sortSelectedFuncsExecuterOrder(n,d)}else s||this.selectOnefunc(n);this.renderPopoverComponent()}ondragstartFuncExecutionOrder(t,n){t.dataTransfer.setData("funcName",n)}ondragoverFuncExecutionOrder(t){$(t.target).addClass("ml-3")}}return _.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-pipeline-function"]],inputs:{availableFunctions:"availableFunctions",selectedFunctionsName:"selectedFunctionsName"},outputs:{availableFunctionsChange:"availableFunctionsChange",selectedFunctionsNameChange:"selectedFunctionsNameChange"},features:[e.TTD],decls:31,vars:5,consts:function(){let a,t,n,i,o,s,d,u;return a="\u5185\u7F6E\u7BA1\u9053\u51FD\u6570",t="\u9009\u4E2D\u7684\u7BA1\u9053\u51FD\u6570",n="\u7BA1\u9053\u51FD\u6570\u6267\u884C\u987A\u5E8F",i="\u62D6\u62FD\u6539\u53D8\u6267\u884C\u987A\u5E8F",o="\u62D6\u62FD\u533A\u57DF",s="\u62D6\u62FD\u533A\u57DF",d="\u7BA1\u9053\u51FD\u6570\u53C2\u6570\u8BBE\u7F6E",u=" Unknown pipeline function ",[[1,"row"],[1,"col-sm-4","col-md-3"],["appDragHighlight","",1,"card","mb-3",3,"drop"],[1,"card-header","font-weight-bold","text-nowrap","text-truncate"],[1,"fa","fa-file-text","mr-2","text-info"],a,[1,"card-body","overflow-auto"],["class","border-secondary rounded w-100 text-center","style","height: 70px; border: 1px; border-style: dashed;",4,"ngIf"],["draggable","true","class","mb-3","role","button",3,"id","d-table","d-none","dragstart",4,"ngFor","ngForOf"],[1,"col-sm-8","col-md-9"],[1,"card"],[1,"card-header","font-weight-bold"],t,[1,"card-body"],[1,"fa","fa-sort-amount-asc","fa-rotate-270","mr-2","text-info"],n,[1,"text-info","ml-2"],[1,"fa","fa-info-circle","mr-1"],i,["id","funcExecOrderSelectedBody",1,"card-body"],[4,"ngFor","ngForOf"],["class","card",4,"ngIf"],[1,"border-secondary","rounded","w-100","text-center",2,"height","70px","border","1px","border-style","dashed"],[1,"text-muted"],o,["draggable","true","role","button",1,"mb-3",3,"id","dragstart"],[1,"badge","badge-secondary"],s,["draggable","true","role","button",1,"badge","badge-secondary","text-nowrap","text-truncate","mr-2",3,"id","dragstart"],[1,"fa","fa-cog","mr-2","text-info"],d,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"card-header","text-nowrap","text-truncate"],[1,"fa","fa-tag","mr-2","text-info"],[1,"mr-2"],[1,"badge","badge-secondary","mr-2"],["role","button",1,"float-right","text-danger",3,"click"],[1,"fa","fa-trash"],[1,"card-body","text-nowrap"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"addTags","addTagsChange"],[3,"batch","batchChange"],[3,"compress","compressChange"],[3,"encrypt","encryptChange"],[3,"filterByDeviceName","filterByDeviceNameChange"],[3,"filterByProfileName","filterByProfileNameChange"],[3,"filterByResourceName","filterByResourceNameChange"],[3,"filterBySourceName","filterBySourceNameChange"],[3,"transform","transformChange"],[3,"httpExport","httpExportChange"],[3,"mqttExport","mqttExportChange"],[3,"jsonLogic","jsonLogicChange"],[3,"pushToCore","pushToCoreChange"],[3,"setResponseData","setResponseDataChange"],["role","alert",1,"alert","alert-warning","mb-3"],u]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("drop",function(o){return n.ondropBuiltinFunction(o)}),e.TgZ(3,"div",3),e._UZ(4,"i",4),e.TgZ(5,"span"),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.YNc(8,_e,4,0,"table",7),e.YNc(9,oe,3,7,"span",8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"div",10),e.TgZ(12,"div",11),e._UZ(13,"i",4),e.TgZ(14,"span"),e.SDv(15,12),e.qZA(),e.qZA(),e.TgZ(16,"div",13),e.TgZ(17,"div",2),e.NdJ("drop",function(o){return n.ondropFuncExecutionOrder(o)}),e.TgZ(18,"div",3),e._UZ(19,"i",14),e.TgZ(20,"span"),e.SDv(21,15),e.qZA(),e.TgZ(22,"span",16),e.TgZ(23,"small"),e._UZ(24,"i",17),e.TgZ(25,"span"),e.SDv(26,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.YNc(28,ie,4,0,"table",7),e.YNc(29,re,3,3,"span",20),e.qZA(),e.qZA(),e.YNc(30,Pe,7,1,"div",21),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("ngIf",n.selectedFunctionsName.length===n.objectKeys(n.availableFunctions).length),e.xp6(1),e.Q6J("ngForOf",n.objectKeys(n.availableFunctions)),e.xp6(19),e.Q6J("ngIf",0===n.selectedFunctionsName.length),e.xp6(1),e.Q6J("ngForOf",n.selectedFunctionsName),e.xp6(1),e.Q6J("ngIf",0!==n.selectedFunctionsName.length))},directives:[x,c.O5,c.sg,c.RF,c.n9,c.ED,F,B,D,w,H,X,Q,W,Y,k,z,K,te,ne],styles:[""]}),_})();function Se(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"li",3),e.TgZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"div",7),e.TgZ(5,"h5",16),e._uU(6),e.qZA(),e.TgZ(7,"p",9),e.TgZ(8,"span",10),e._uU(9,"ExecutionOrder:"),e.qZA(),e._uU(10),e.qZA(),e.TgZ(11,"span",10),e._uU(12,"Topics:"),e.qZA(),e._uU(13),e.TgZ(14,"span",11),e.NdJ("click",function(){const o=e.CHM(t).$implicit;return e.oxw(3).edit(o.Id)}),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=a.$implicit;e.xp6(6),e.Oqu(t.Id),e.xp6(4),e.hij(" ",t.ExecutionOrder," "),e.xp6(3),e.hij(" ",t.Topics," ")}}function Ne(_,a){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,Se,18,3,"li",15),e.qZA()),2&_){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.perTopicPipelines)}}function Ie(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"ul",2),e.TgZ(1,"li",3),e.TgZ(2,"div",4),e.TgZ(3,"div",5),e._UZ(4,"i",6),e.qZA(),e.TgZ(5,"div",7),e.TgZ(6,"h5",8),e._uU(7),e.qZA(),e.TgZ(8,"p",9),e.TgZ(9,"span",10),e._uU(10,"ExecutionOrder:"),e.qZA(),e._uU(11),e.qZA(),e.TgZ(12,"span",11),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return i.edit(i.defaultPipelineIdentifier)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e.SDv(15,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(16,Ne,2,1,"div",14),e.qZA()}if(2&_){const t=e.oxw();e.xp6(7),e.Oqu(t.defaultPipelineIdentifier),e.xp6(4),e.Oqu(t.pipeline.ExecutionOrder),e.xp6(5),e.Q6J("ngIf",t.perTopicPipelines)}}function Me(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",30),e.TgZ(1,"label",31),e.TgZ(2,"span"),e._uU(3,"Pipeline Topic"),e.qZA(),e.qZA(),e.TgZ(4,"div",32),e.TgZ(5,"input",38),e.NdJ("ngModelChange",function(i){return e.CHM(t),e.oxw(2).pipelineTopic=i}),e.qZA(),e.TgZ(6,"div",39),e.TgZ(7,"small"),e.SDv(8,40),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw(2);e.xp6(5),e.ekj("is-invalid",!t.pipelineTopic),e.Q6J("ngModel",t.pipelineTopic)}}function Re(_,a){if(1&_){const t=e.EpF();e.TgZ(0,"div",18),e.TgZ(1,"div",19),e._UZ(2,"i",20),e.TgZ(3,"span"),e.SDv(4,21),e.qZA(),e.TgZ(5,"span",22),e._uU(6),e.qZA(),e.TgZ(7,"span",23),e.TgZ(8,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().save()}),e.SDv(9,25),e.qZA(),e.TgZ(10,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e.SDv(11,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",28),e.TgZ(13,"div"),e.TgZ(14,"form",29),e.TgZ(15,"div",30),e.TgZ(16,"label",31),e.TgZ(17,"span"),e._uU(18,"Pipeline ID"),e.qZA(),e.qZA(),e.TgZ(19,"div",32),e._UZ(20,"input",33),e.qZA(),e.qZA(),e.YNc(21,Me,9,3,"div",34),e.qZA(),e.qZA(),e.TgZ(22,"div",18),e.TgZ(23,"div",19),e._UZ(24,"i",35),e.TgZ(25,"span"),e.SDv(26,36),e.qZA(),e.qZA(),e.TgZ(27,"div",28),e.TgZ(28,"app-pipeline-function",37),e.NdJ("selectedFunctionsNameChange",function(i){return e.CHM(t),e.oxw().selectedFunctionsName=i})("availableFunctionsChange",function(i){return e.CHM(t),e.oxw().availableFunctions=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&_){const t=e.oxw();e.xp6(6),e.Oqu(t.selectedPipelineID),e.xp6(2),e.Q6J("disabled",!t.pipelineTopic||!t.validate()),e.xp6(12),e.Q6J("ngModel",t.selectedPipelineID),e.xp6(1),e.Q6J("ngIf",!t.isDefaultPipelineIndetifier(t.selectedPipelineID)),e.xp6(7),e.Q6J("selectedFunctionsName",t.selectedFunctionsName)("availableFunctions",t.availableFunctions)}}let qe=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.defaultPipelineIdentifier="default-pipeline",this.isEditStatus=!1,this.selectedFunctionsName=[],this.pipelineTopic="#",this.selectedPipelineID="",this.appServiceKey="",this.perTopicPipelines=[],this.pipeline={},this.availableFunctions={}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}ngOnChanges(){this.pipeline&&(this.pipeline.PerTopicPipelines&&(this.perTopicPipelines=Object.values(this.pipeline.PerTopicPipelines)),this.availableFunctions=this.pipeline.Functions,this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","))}pipelineIDIsUnique(t){if(t===this.selectedPipelineID)return!0;if(t===this.defaultPipelineIdentifier)return!1;let n=!0;return this.perTopicPipelines.forEach(i=>{t!==i.Id||(n=!1)}),n}isDefaultPipelineIndetifier(t){return t===this.defaultPipelineIdentifier}edit(t){this.selectedPipelineID=t,this.isDefaultPipelineIndetifier(t)?this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","):this.perTopicPipelines.forEach(n=>{t===n.Id&&(this.selectedFunctionsName=n.ExecutionOrder.split(","),this.pipelineTopic=n.Topics)}),this.isEditStatus=!0,this.renderPopoverComponent()}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}validate(){let t=!0;return this.selectedFunctionsName.forEach(n=>{(n.startsWith("PushToCore")&&"Binary"===this.availableFunctions[n].Parameters.ValueType&&""===this.availableFunctions[n].Parameters.MediaType||n.startsWith("MQTTExport")&&"none"!==this.availableFunctions[n].Parameters.AuthMode&&""===this.availableFunctions[n].Parameters.SecretPath)&&(t=!1)}),t}save(){let t={},n={PerTopicPipelines:{}},i={};if(this.selectedFunctionsName.forEach(o=>{i[o]=this.availableFunctions[o]}),n.Functions=i,this.isDefaultPipelineIndetifier(this.selectedPipelineID))n.ExecutionOrder=this.getFuncExecutionOrder();else for(const[o,s]of Object.entries(this.pipeline.PerTopicPipelines))if(this.selectedPipelineID===s.Id){s.ExecutionOrder=this.getFuncExecutionOrder(),s.Topics=this.pipelineTopic,n.PerTopicPipelines[o]=s;break}t.Pipeline=n,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy Pipeline configuration",`service: ${this.appServiceKey}`),this.isEditStatus=!1,this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}cancel(){this.isEditStatus=!1}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-pipeline"]],inputs:{appServiceKey:"appServiceKey",pipeline:"pipeline"},features:[e.TTD],decls:2,vars:2,consts:function(){let a,t,n,i,o,s,d;return a="\u7F16\u8F91",t="\u7F16\u8F91",n="Edit Pipeline",i="\u4FDD\u5B58",o="\u53D6\u6D88",s="Pipline Functions Setting",d="the pipeline topic can't be empty!",[["class","list-unstyled",4,"ngIf"],["class","card",4,"ngIf"],[1,"list-unstyled"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"text-dark","mt-0"],[1,"mb-0"],[1,"badge","badge-secondary","mr-1"],["role","button",1,"badge","badge-info","float-right",3,"click"],[1,"fa","fa-edit","mr-1"],a,[4,"ngIf"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"text-dark","mt-0","mb-1"],t,[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],n,[1,"ml-1","text-info"],[1,"float-right"],[1,"btn","btn-sm","btn-success","mr-1",3,"disabled","click"],i,[1,"btn","btn-sm","btn-secondary",3,"click"],o,[1,"card-body"],[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","disabled","","name","PipelineID",1,"form-control",3,"ngModel"],["class","form-group row",4,"ngIf"],[1,"fa","fa-tag","text-info","mr-1"],s,[3,"selectedFunctionsName","availableFunctions","selectedFunctionsNameChange","availableFunctionsChange"],["type","text","name","PipelineTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],d]},template:function(t,n){1&t&&(e.YNc(0,Ie,17,3,"ul",0),e.YNc(1,Re,29,6,"div",1)),2&t&&(e.Q6J("ngIf",n.pipeline&&!n.isEditStatus),e.xp6(1),e.Q6J("ngIf",n.isEditStatus))},directives:[c.O5,c.sg,r._Y,r.JL,r.F,r.Fj,r.JJ,r.On,ve],styles:["input[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}"]}),_})(),be=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.appServiceKey="",this._insecureSecrets={},this.insecureSecretsChange=new e.vpe,this.insecureSecrets={DB:{Secrets:{}},mqtt:{Secrets:{}},http:{Secrets:{}},AES:{Secrets:{}}}}get insecureSecrets(){return this._insecureSecrets}set insecureSecrets(t){Object.assign(this._insecureSecrets,t)}ngOnInit(){}ngOnChanges(){this.insecureSecretsChange.emit(this.insecureSecrets)}save(){let t={};t.InsecureSecrets=this.insecureSecrets,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy InsecureSecrets configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-insecure-secrets"]],inputs:{appServiceKey:"appServiceKey",insecureSecrets:"insecureSecrets"},outputs:{insecureSecretsChange:"insecureSecretsChange"},features:[e.TTD],decls:107,vars:13,consts:function(){let a,t,n;return a="Edit InsecureSecrets",t="\u4FDD\u5B58",n="\u975E\u5B89\u5168\u6A21\u5F0F\u79D8\u94A5\u5B58\u50A8\u7528\u4E8E\u975E\u5B89\u5168\u6A21\u5F0F\u542F\u52A8EdgeX\uFF0C\u6BD4\u5982\u975E\u5B89\u5168\u6A21\u5F0F\u4E0B\u6CA1\u6709Vault\u5B58\u50A8\u7CFB\u7EDF\uFF0C\u4EC5\u4EC5\u7528\u4E8E\u5728\u975E\u5B89\u5168\u6A21\u5F0F\u4E0B\u66FF\u4EE3Vault",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],a,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],n,[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","path",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","cacert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientcert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientkey",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","headervalue",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","key",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"div",8),e.TgZ(10,"small"),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e._UZ(16,"i",13),e.TgZ(17,"span",14),e._uU(18,"DB"),e.qZA(),e.qZA(),e.TgZ(19,"div",7),e.TgZ(20,"form"),e.TgZ(21,"div",15),e.TgZ(22,"label",16),e._uU(23,"path"),e.qZA(),e.TgZ(24,"div",17),e.TgZ(25,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"label",16),e._uU(28,"username"),e.qZA(),e.TgZ(29,"div",17),e.TgZ(30,"input",19),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Secrets.username=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",15),e.TgZ(32,"label",16),e._uU(33,"password"),e.qZA(),e.TgZ(34,"div",17),e.TgZ(35,"input",20),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.DB.Secrets.password=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",11),e.TgZ(37,"div",12),e._UZ(38,"i",13),e.TgZ(39,"span",14),e._uU(40,"mqtt"),e.qZA(),e.qZA(),e.TgZ(41,"div",7),e.TgZ(42,"form"),e.TgZ(43,"div",15),e.TgZ(44,"label",16),e._uU(45,"path"),e.qZA(),e.TgZ(46,"div",17),e.TgZ(47,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",15),e.TgZ(49,"label",16),e._uU(50,"username"),e.qZA(),e.TgZ(51,"div",17),e.TgZ(52,"input",19),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.username=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",15),e.TgZ(54,"label",16),e._uU(55,"password"),e.qZA(),e.TgZ(56,"div",17),e.TgZ(57,"input",20),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.password=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",15),e.TgZ(59,"label",16),e._uU(60,"cacert"),e.qZA(),e.TgZ(61,"div",17),e.TgZ(62,"input",21),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.cacert=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",15),e.TgZ(64,"label",16),e._uU(65,"clientcert"),e.qZA(),e.TgZ(66,"div",17),e.TgZ(67,"input",22),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.clientcert=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"div",15),e.TgZ(69,"label",16),e._uU(70,"clientkey"),e.qZA(),e.TgZ(71,"div",17),e.TgZ(72,"input",23),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.mqtt.Secrets.clientkey=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",11),e.TgZ(74,"div",12),e._UZ(75,"i",13),e.TgZ(76,"span",14),e._uU(77,"http"),e.qZA(),e.qZA(),e.TgZ(78,"div",7),e.TgZ(79,"form"),e.TgZ(80,"div",15),e.TgZ(81,"label",16),e._uU(82,"path"),e.qZA(),e.TgZ(83,"div",17),e.TgZ(84,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.http.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",15),e.TgZ(86,"label",16),e._uU(87,"headervalue"),e.qZA(),e.TgZ(88,"div",17),e.TgZ(89,"input",24),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.http.Secrets.headervalue=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(90,"div",11),e.TgZ(91,"div",12),e._UZ(92,"i",13),e.TgZ(93,"span",14),e._uU(94,"AES"),e.qZA(),e.qZA(),e.TgZ(95,"div",7),e.TgZ(96,"form"),e.TgZ(97,"div",15),e.TgZ(98,"label",16),e._uU(99,"path"),e.qZA(),e.TgZ(100,"div",17),e.TgZ(101,"input",18),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.AES.Path=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",15),e.TgZ(103,"label",16),e._uU(104,"key"),e.qZA(),e.TgZ(105,"div",17),e.TgZ(106,"input",25),e.NdJ("ngModelChange",function(o){return n.insecureSecrets.AES.Secrets.key=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(25),e.Q6J("ngModel",n.insecureSecrets.DB.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.password),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.mqtt.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.password),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.cacert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientcert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientkey),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.http.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.http.Secrets.headervalue),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.AES.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.AES.Secrets.key))},directives:[r._Y,r.JL,r.F,r.Fj,r.JJ,r.On],styles:[""]}),_})(),Ue=(()=>{class _{constructor(t,n,i,o){this.route=t,this.router=n,this.registrySvc=i,this.msgSvc=o,this.appServiceKey="",this.storeAndForwardChange=new e.vpe,this.storeAndForward={Enabled:"false"}}ngOnInit(){}ngOnChanges(){this.storeAndForwardChange.emit(this.storeAndForward)}save(){let t={};t.StoreAndForward=this.storeAndForward,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy StoreAndForward configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(A.e))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-appsvc-store-and-forward"]],inputs:{appServiceKey:"appServiceKey",storeAndForward:"storeAndForward"},outputs:{storeAndForwardChange:"storeAndForwardChange"},features:[e.TTD],decls:35,vars:3,consts:function(){let a,t;return a="Edit StoreAndForward",t="\u4FDD\u5B58",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],a,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","capability allows for export functions to persist data on failure and for the export of the data to be retried at a later time.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Enabled",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","pure number",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MaxRetryCount",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","RetryInterval",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span"),e._uU(13,"Enabled"),e.qZA(),e._UZ(14,"span",10),e.qZA(),e.TgZ(15,"div",11),e.TgZ(16,"select",12),e.NdJ("ngModelChange",function(o){return n.storeAndForward.Enabled=o}),e.TgZ(17,"option",13),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span"),e._uU(24,"MaxRetryCount"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",11),e.TgZ(27,"input",16),e.NdJ("ngModelChange",function(o){return n.storeAndForward.MaxRetryCount=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",8),e.TgZ(29,"label",9),e.TgZ(30,"span"),e._uU(31,"RetryInterval"),e.qZA(),e._UZ(32,"span",17),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"input",18),e.NdJ("ngModelChange",function(o){return n.storeAndForward.RetryInterval=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(16),e.Q6J("ngModel",n.storeAndForward.Enabled),e.xp6(11),e.Q6J("ngModel",n.storeAndForward.MaxRetryCount),e.xp6(7),e.Q6J("ngModel",n.storeAndForward.RetryInterval))},directives:[r._Y,r.JL,r.F,r.EJ,r.JJ,r.On,r.YN,r.Kr,r.Fj],styles:[""]}),_})();function Ge(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-trigger",15),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("configTrigger",t.configTrigger)}}function Oe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-pipeline",16),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("pipeline",t.configWritable.Pipeline)}}function xe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-insecure-secrets",17),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("insecureSecrets",t.configWritable.InsecureSecrets)}}function Fe(_,a){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-store-and-forward",18),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("storeAndForward",t.configWritable.StoreAndForward)}}let ye=(()=>{class _{constructor(t,n){this.registrySvc=t,this.route=n,this.TirggerIdentifier="Trigger",this.writableIdentifier="Writable",this.configurableSection="PipelineFunc",this.appServiceKey="",this.configTrigger={},this.configWritable={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.appSvcKey&&(this.appServiceKey=t.appSvcKey,this.loadAppSvcConfig())}),this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}loadAppSvcConfig(){this.registrySvc.getAppSvcConfigBySvcKey(this.appServiceKey).subscribe(t=>{Object.assign(this.configTrigger,t[this.TirggerIdentifier]),Object.assign(this.configWritable,t[this.writableIdentifier])})}configurableSectionChange(t){this.configurableSection=t,this.renderPopoverComponent()}}return _.\u0275fac=function(t){return new(t||_)(e.Y36(m.r),e.Y36(p.gz))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-app-service-configurable"]],decls:29,vars:13,consts:function(){let a,t,n,i,o;return a="\u914D\u7F6E\u8BBE\u7F6E",t="\u89E6\u53D1\u5668",n="Pipelines",i="\u975E\u5B89\u5168\u79D8\u94A5\u5B58\u50A8",o="\u7F13\u5B58\u548C\u8F6C\u53D1",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],[1,"mr-2","text-info"],a,[1,"card-body"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item",3,"click"],["role","button",1,"nav-link"],t,n,i,o,[4,"ngIf"],[3,"configTrigger"],[3,"appServiceKey","pipeline"],[3,"appServiceKey","insecureSecrets"],[3,"appServiceKey","storeAndForward"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e.TgZ(9,"div",0),e.TgZ(10,"div",1),e.TgZ(11,"ul",7),e.TgZ(12,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("Trigger")}),e.TgZ(13,"a",9),e.SDv(14,10),e.qZA(),e.qZA(),e.TgZ(15,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("PipelineFunc")}),e.TgZ(16,"a",9),e.SDv(17,11),e.qZA(),e.qZA(),e.TgZ(18,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("InsecureSecrets")}),e.TgZ(19,"a",9),e.SDv(20,12),e.qZA(),e.qZA(),e.TgZ(21,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("StoreAndForward")}),e.TgZ(22,"a",9),e.SDv(23,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",6),e.YNc(25,Ge,2,1,"div",14),e.YNc(26,Oe,2,2,"div",14),e.YNc(27,xe,2,2,"div",14),e.YNc(28,Fe,2,2,"div",14),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(n.appServiceKey),e.xp6(8),e.ekj("active","Trigger"===n.configurableSection),e.xp6(3),e.ekj("active","PipelineFunc"===n.configurableSection),e.xp6(3),e.ekj("active","InsecureSecrets"===n.configurableSection),e.xp6(3),e.ekj("active","StoreAndForward"===n.configurableSection),e.xp6(3),e.Q6J("ngIf","Trigger"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","PipelineFunc"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","InsecureSecrets"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","StoreAndForward"===n.configurableSection))},directives:[c.O5,O,qe,be,Ue],styles:[".appservice_wrap[_ngcontent-%COMP%]{width:100%;margin:0 auto;overflow:hidden}#appservice_left[_ngcontent-%COMP%]{width:70%;min-height:800px;float:left}#appservice_service_select[_ngcontent-%COMP%]{margin-top:1%;width:40%}#appservice_right[_ngcontent-%COMP%]{width:30%;min-height:800px;border-left:1px solid #d6e9c6;float:right}.app_left_body[_ngcontent-%COMP%]{min-height:800px}.appservice_drop_card[_ngcontent-%COMP%]{margin-top:3%;margin-bottom:3%;height:80px;width:100%;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;text-align:center}.appservice_transform[_ngcontent-%COMP%]{font-weight:bold;font-size:.5rem}.appservice_description[_ngcontent-%COMP%]{position:relative;top:25%;left:20%;font-size:smaller;float:left;text-align:center}.appservice_paramButton[_ngcontent-%COMP%]{width:30%;outline-style:none;border:1px solid #ccc;border-radius:3px;margin-top:25px;margin-right:100px;float:right}.appservice_button_group[_ngcontent-%COMP%]{float:right;margin-top:-25px}.appservice_triggers_group[_ngcontent-%COMP%]{padding:10px}.appservice_select_lable[_ngcontent-%COMP%]{text-align:right;padding-top:1%}#appservice_model[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{position:fixed;top:20%;right:0;left:0;bottom:20%;margin:auto}#appservice_model[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:79%;overflow-y:auto;position:absolute;top:55px;bottom:65px;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-right:15px}#appservice_model[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0}.modal-backdrop[_ngcontent-%COMP%]{z-index:-1!important;opacity:0!important;filter:alpha(opacity=0)!important}"]}),_})();var Je=l(8253),Be=l(1964),De=l(4294),we=l(5894),Le=l(7216);let f=(()=>{class _{constructor(t,n){this.router=t,this.registrySvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.registrySvc.ping().pipe((0,De.q)(1),(0,we.K)(i=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"registry center",routerPath:`/${n.url.split("/")[1]}`}})),(0,Le.z)(()=>(0,Be.of)(!0)))}}return _.\u0275fac=function(t){return new(t||_)(e.LFG(p.F0),e.LFG(m.r))},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const $e=[{path:"",component:I,canActivate:[Je.a,f],canActivateChild:[f],children:[{path:"",redirectTo:"app-service-list",pathMatch:"full"},{path:"app-service-list",component:q},{path:"app-service-configurable",component:ye}]}];let He=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[p.Bz.forChild($e)],p.Bz]}),_})();var Ve=l(4010);let Xe=(()=>{class _{}return _.\u0275fac=function(t){return new(t||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[c.ez,r.u5,He,Ve.MetadataModule]]}),_})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[894],{894:(Xe,Z,g)=>{g.r(Z),g.d(Z,{AppServiceModule:()=>He});var _=g(8583),a=g(3092),p=g(9502),e=g(476);let M=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-app-service"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"router-outlet")},directives:[p.lC],styles:[""]}),o})();var m=g(3692);const q=function(o){return{appSvcKey:o}};function I(o,s){if(1&o&&(e.TgZ(0,"li",8),e.TgZ(1,"div",9),e.TgZ(2,"div",10),e._UZ(3,"i",11),e.qZA(),e.TgZ(4,"div",12),e.TgZ(5,"div",13),e.TgZ(6,"h5",14),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"span",15),e._uU(10),e.qZA(),e.TgZ(11,"span",16),e._UZ(12,"i",17),e.TgZ(13,"span"),e.SDv(14,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&o){const t=s.$implicit;e.xp6(7),e.hij(" ",t.ServiceId," "),e.xp6(3),e.hij("port ",t.Port,""),e.xp6(1),e.Q6J("queryParams",e.VKq(3,q,t.ServiceId))}}let R=(()=>{class o{constructor(t){this.registrySvc=t,this.appServiceList=[]}ngOnInit(){this.getAllAppSvc()}getAllAppSvc(){this.registrySvc.getAllAppSvc().subscribe(t=>{this.appServiceList=[],t.forEach(n=>{n.ServiceId.startsWith("app-")&&this.appServiceList.push(n)})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(m.r))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-app-service-list"]],decls:8,vars:1,consts:function(){let s,t;return s="\u5E94\u7528\u670D\u52A1\u5217\u8868",t="\u914D\u7F6E",[[1,"card"],[1,"card-header"],[1,"fa","fa-list","mr-2","text-danger"],[1,"font-weight-bold"],s,[1,"card-body"],[1,"list-group","p-0"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"mt-0","mb-3"],[1,"d-inline","mr-3","align-middle","text-dark"],["role","button",1,"badge","badge-info","mr-3"],["role","button","routerLink","../app-service-configurable",1,"badge","badge-secondary","float-right",3,"queryParams"],[1,"fa","fa-cog","mr-1"],t]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"ul",6),e.YNc(7,I,15,5,"li",7),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngForOf",n.appServiceList))},directives:[_.sg,p.rH],styles:[""]}),o})();function b(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,18),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e.TgZ(9,"span"),e.SDv(10,20),e.qZA(),e._UZ(11,"span",21),e.qZA(),e.TgZ(12,"div",7),e.TgZ(13,"select",8),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Type=r}),e.TgZ(14,"option",22),e._uU(15,"redis"),e.qZA(),e.TgZ(16,"option",23),e._uU(17,"mqtt"),e.qZA(),e.TgZ(18,"option",24),e._uU(19,"zero"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",25),e.TgZ(21,"div",26),e.TgZ(22,"div",14),e.TgZ(23,"div",27),e._UZ(24,"i",28),e.TgZ(25,"span"),e.SDv(26,29),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.TgZ(28,"form"),e.TgZ(29,"div",3),e.TgZ(30,"label",30),e.SDv(31,31),e.qZA(),e.TgZ(32,"div",32),e.TgZ(33,"input",33),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Host=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",3),e.TgZ(35,"label",30),e.SDv(36,34),e.qZA(),e.TgZ(37,"div",32),e.TgZ(38,"input",35),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Port=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",3),e.TgZ(40,"label",30),e.SDv(41,36),e.qZA(),e.TgZ(42,"div",32),e.TgZ(43,"input",37),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.Protocol=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",3),e.TgZ(45,"label",38),e.SDv(46,39),e.qZA(),e.TgZ(47,"div",40),e.TgZ(48,"input",41),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics=r}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"div",26),e.TgZ(50,"div",14),e.TgZ(51,"div",27),e._UZ(52,"i",28),e.TgZ(53,"span"),e._uU(54,"Publish Host"),e.qZA(),e.qZA(),e.TgZ(55,"div",19),e.TgZ(56,"form"),e.TgZ(57,"div",3),e.TgZ(58,"label",30),e.SDv(59,42),e.qZA(),e.TgZ(60,"div",32),e.TgZ(61,"input",33),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Host=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",3),e.TgZ(63,"label",30),e.SDv(64,43),e.qZA(),e.TgZ(65,"div",32),e.TgZ(66,"input",35),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Port=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(67,"div",3),e.TgZ(68,"label",30),e.SDv(69,44),e.qZA(),e.TgZ(70,"div",32),e.TgZ(71,"input",37),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.Protocol=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(72,"div",3),e.TgZ(73,"label",30),e.SDv(74,45),e.qZA(),e.TgZ(75,"div",32),e.TgZ(76,"input",46),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.PublishHost.PublishTopic=r}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"div",25),e.TgZ(78,"div",47),e.TgZ(79,"div",48),e.TgZ(80,"div",27),e._UZ(81,"i",28),e.TgZ(82,"span"),e.SDv(83,49),e.qZA(),e.qZA(),e.TgZ(84,"div",19),e.TgZ(85,"form"),e.TgZ(86,"div",3),e.TgZ(87,"label",4),e._uU(88,"ClientId"),e.qZA(),e.TgZ(89,"div",7),e.TgZ(90,"input",50),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ClientId=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(91,"div",3),e.TgZ(92,"label",4),e._uU(93,"Qos"),e.qZA(),e.TgZ(94,"div",7),e.TgZ(95,"input",51),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Qos=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(96,"div",3),e.TgZ(97,"label",4),e._uU(98,"KeepAlive"),e.qZA(),e.TgZ(99,"div",7),e.TgZ(100,"input",52),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.KeepAlive=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(101,"div",3),e.TgZ(102,"label",4),e._uU(103,"Retained"),e.qZA(),e.TgZ(104,"div",7),e.TgZ(105,"select",53),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.Retained=r}),e.TgZ(106,"option",54),e._uU(107,"false"),e.qZA(),e.TgZ(108,"option",55),e._uU(109,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(110,"div",3),e.TgZ(111,"label",4),e._uU(112,"AutoReconnect"),e.qZA(),e.TgZ(113,"div",7),e.TgZ(114,"select",56),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.AutoReconnect=r}),e.TgZ(115,"option",54),e._uU(116,"false"),e.qZA(),e.TgZ(117,"option",55),e._uU(118,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(119,"div",3),e.TgZ(120,"label",4),e._uU(121,"ConnectTimeout"),e.qZA(),e.TgZ(122,"div",7),e.TgZ(123,"input",57),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.ConnectTimeout=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(124,"div",3),e.TgZ(125,"label",4),e._uU(126,"authmode"),e.qZA(),e.TgZ(127,"div",7),e.TgZ(128,"select",58),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.authmode=r}),e.TgZ(129,"option",59),e._uU(130,"none"),e.qZA(),e.TgZ(131,"option",60),e._uU(132,"usernamepassword"),e.qZA(),e.TgZ(133,"option",61),e._uU(134,"clientcert"),e.qZA(),e.TgZ(135,"option",62),e._uU(136,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(137,"div",3),e.TgZ(138,"label",4),e._uU(139,"SkipCertVerify"),e.qZA(),e.TgZ(140,"div",7),e.TgZ(141,"select",63),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.SkipCertVerify=r}),e.TgZ(142,"option",54),e._uU(143,"false"),e.qZA(),e.TgZ(144,"option",55),e._uU(145,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(146,"div",3),e.TgZ(147,"label",4),e._uU(148,"secretname"),e.qZA(),e.TgZ(149,"div",7),e.TgZ(150,"input",64),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.EdgexMessageBus.Optional.secretname=r}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Type),e.xp6(20),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.SubscribeHost.SubscribeTopics),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Host),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Port),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.Protocol),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.PublishHost.PublishTopic),e.xp6(14),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Qos),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.Retained),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.authmode),e.xp6(13),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.EdgexMessageBus.Optional.secretname)}}function x(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e._uU(4,"External MQTT Trigger"),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"form"),e.TgZ(7,"div",3),e.TgZ(8,"label",4),e._uU(9,"Url"),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"input",65),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Url=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",3),e.TgZ(13,"label",4),e._uU(14,"SubscribeTopics"),e.qZA(),e.TgZ(15,"div",7),e.TgZ(16,"input",41),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SubscribeTopics=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",3),e.TgZ(18,"label",4),e._uU(19,"PublishTopic"),e.qZA(),e.TgZ(20,"div",7),e.TgZ(21,"input",46),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.PublishTopic=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",3),e.TgZ(23,"label",4),e._uU(24,"ClientId"),e.qZA(),e.TgZ(25,"div",7),e.TgZ(26,"input",50),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ClientId=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",3),e.TgZ(28,"label",4),e._uU(29,"ConnectTimeout"),e.qZA(),e.TgZ(30,"div",7),e.TgZ(31,"input",57),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.ConnectTimeout=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"div",3),e.TgZ(33,"label",4),e._uU(34,"AutoReconnect"),e.qZA(),e.TgZ(35,"div",7),e.TgZ(36,"select",56),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AutoReconnect=r}),e.TgZ(37,"option",54),e._uU(38,"false"),e.qZA(),e.TgZ(39,"option",55),e._uU(40,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(41,"div",3),e.TgZ(42,"label",4),e._uU(43,"KeepAlive"),e.qZA(),e.TgZ(44,"div",7),e.TgZ(45,"input",52),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.KeepAlive=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(46,"div",3),e.TgZ(47,"label",4),e._uU(48,"QoS"),e.qZA(),e.TgZ(49,"div",7),e.TgZ(50,"input",66),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.QoS=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",3),e.TgZ(52,"label",4),e._uU(53,"Retain"),e.qZA(),e.TgZ(54,"div",7),e.TgZ(55,"select",53),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.Retain=r}),e.TgZ(56,"option",54),e._uU(57,"false"),e.qZA(),e.TgZ(58,"option",55),e._uU(59,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(60,"div",3),e.TgZ(61,"label",4),e._uU(62,"SkipCertVerify"),e.qZA(),e.TgZ(63,"div",7),e.TgZ(64,"select",63),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SkipCertVerify=r}),e.TgZ(65,"option",54),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",55),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",3),e.TgZ(70,"label",4),e._uU(71,"SecretPath"),e.qZA(),e.TgZ(72,"div",7),e.TgZ(73,"input",67),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.SecretPath=r}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(74,"div",3),e.TgZ(75,"label",4),e._uU(76,"AuthMode"),e.qZA(),e.TgZ(77,"div",7),e.TgZ(78,"select",68),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().configTrigger.ExternalMqtt.AuthMode=r}),e.TgZ(79,"option",59),e._uU(80,"none"),e.qZA(),e.TgZ(81,"option",60),e._uU(82,"usernamepassword"),e.qZA(),e.TgZ(83,"option",61),e._uU(84,"clientcert"),e.qZA(),e.TgZ(85,"option",62),e._uU(86,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(11),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Url),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SubscribeTopics),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.PublishTopic),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ClientId),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.ConnectTimeout),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AutoReconnect),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.KeepAlive),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.QoS),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.Retain),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SkipCertVerify),e.xp6(9),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.SecretPath),e.xp6(5),e.Q6J("ngModel",t.configTrigger.ExternalMqtt.AuthMode)}}function F(o,s){1&o&&(e.TgZ(0,"div",48),e.TgZ(1,"div",15),e._UZ(2,"i",16),e.TgZ(3,"span",17),e.SDv(4,69),e.qZA(),e.qZA(),e.TgZ(5,"div",19),e.TgZ(6,"div",0),e.TgZ(7,"small"),e._UZ(8,"i",1),e.TgZ(9,"span"),e.SDv(10,70),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA())}let O=(()=>{class o{constructor(){this._configTrigger={},this.configTriggerChange=new e.vpe,this.configTrigger={},this.configTrigger.EdgexMessageBus={Optional:{},SubscribeHost:{},PublishHost:{}},this.configTrigger.EdgexMessageBus.Optional={},this.configTrigger.ExternalMqtt={},this.configTrigger.HTTP={}}get configTrigger(){return this._configTrigger}set configTrigger(t){Object.assign(this._configTrigger,t)}ngOnInit(){this.renderPopoverComponent()}ngOnChanges(){this.configTriggerChange.emit(this.configTrigger)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}onTriggerSelected(){this.renderPopoverComponent()}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-trigger"]],inputs:{configTrigger:"configTrigger"},outputs:{configTriggerChange:"configTriggerChange"},features:[e.TTD],decls:24,vars:4,consts:function(){let s,t,n,r,i,l,d,u,T,A,E,h,P,v,S,N;return s="\u5F53\u524D\u7248\u672C\u4E2D\uFF0C\u6539\u53D8\u89E6\u53D1\u5668Trigger\u9700\u8981\u91CD\u542F\u5F53\u524D\u5E94\u7528\u670D\u52A1\uFF0C\u56E0\u6B64\u76EE\u524D\u53EA\u652F\u6301\u9884\u89C8\u5F53\u524D\u5E94\u7528\u670D\u52A1\u4F7F\u7528\u7684\u89E6\u53D1\u5668\u4FE1\u606F\uFF0C\u4E0B\u4E00\u4E2A\u7248\u672CGUI\u5C06\u4F1A\u652F\u6301\u52A8\u6001\u4FEE\u6539\u89E6\u53D1\u5668",t="\u7C7B\u578B",n="Edgex\u6D88\u606F\u603B\u7EBF\u89E6\u53D1\u5668",r="\u7C7B\u578B",i="\u8BA2\u9605\u4E3B\u673A\u4FE1\u606F",l="Host",d="Port",u="Protocol",T="SubscribeTopics",A="Host",E="Port",h="Protocol",P="PublishTopic",v="\u914D\u7F6E\u9009\u9879",S="HTTP\u89E6\u53D1\u5668",N="no optional fields needs to setup for http trigger",[["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],s,[1,"form-group","row"],[1,"col-sm-2","col-form-label"],t,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Trigger type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","edgex-messagebus"],["value","external-mqtt"],["value","http"],["class","card mb-3",4,"ngIf"],["class","card",4,"ngIf"],[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],n,[1,"card-body"],r,["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","EdgeX Message Bus type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["value","redis"],["value","mqtt"],["value","zero"],[1,"row"],[1,"col-sm-6","col-md-6"],[1,"card-header","font-weight-bold"],[1,"fa","fa-tag","mr-2","text-danger"],i,[1,"col-sm-3","col-form-label","text-nowrap","text-truncate"],l,[1,"col-sm-9"],["type","text","name","Host",1,"form-control",3,"ngModel","ngModelChange"],d,["type","text","name","Port",1,"form-control",3,"ngModel","ngModelChange"],u,["type","text","name","Protocol",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-3","col-md-3","col-form-label","text-nowrap","text-truncate"],T,[1,"col-sm-9","col-md-9"],["type","text","name","SubscribeTopics",1,"form-control",3,"ngModel","ngModelChange"],A,E,h,P,["type","text","name","PublishTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-12","col-md-12"],[1,"card"],v,["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Qos",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","KeepAlive",1,"form-control",3,"ngModel","ngModelChange"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","ConnectTimeout",1,"form-control",3,"ngModel","ngModelChange"],["name","authmode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["name","SkipCertVerify",1,"custom-select",3,"ngModel","ngModelChange"],["type","text","name","secretname",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","QoS",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],S,N]},template:function(t,n){1&t&&(e.TgZ(0,"div"),e.TgZ(1,"div",0),e.TgZ(2,"small"),e._UZ(3,"i",1),e.TgZ(4,"span"),e.tHW(5,2),e._UZ(6,"br"),e.N_p(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"form"),e.TgZ(8,"div",3),e.TgZ(9,"label",4),e.TgZ(10,"span"),e.SDv(11,5),e.qZA(),e._UZ(12,"span",6),e.qZA(),e.TgZ(13,"div",7),e.TgZ(14,"select",8),e.NdJ("ngModelChange",function(i){return n.configTrigger.Type=i})("ngModelChange",function(){return n.onTriggerSelected()}),e.TgZ(15,"option",9),e._uU(16,"edgex-messagebus"),e.qZA(),e.TgZ(17,"option",10),e._uU(18,"external-mqtt"),e.qZA(),e.TgZ(19,"option",11),e._uU(20,"http"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(21,b,151,18,"div",12),e.YNc(22,x,87,12,"div",12),e.YNc(23,F,11,0,"div",13),e.qZA()),2&t&&(e.xp6(14),e.Q6J("ngModel",n.configTrigger.Type),e.xp6(7),e.Q6J("ngIf","edgex-messagebus"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","external-mqtt"===n.configTrigger.Type),e.xp6(1),e.Q6J("ngIf","http"===n.configTrigger.Type))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr,_.O5,a.Fj],styles:[""]}),o})();var f=g(7822);let y=(()=>{class o{constructor(t){this.el=t,this.classes="border border-info shadow-lg bg-white rounded"}ondragover(t){t.preventDefault(),this.classes.split(" ").forEach(r=>{this.el.nativeElement.classList.add(r)})}ondragenter(t){}ondragend(t){}ondragleave(t){this.classes.split(" ").forEach(r=>{this.el.nativeElement.classList.remove(r)})}ondragexit(t){}ondrop(t){this.classes.split(" ").forEach(r=>{this.el.nativeElement.classList.remove(r)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.SBq))},o.\u0275dir=e.lG2({type:o,selectors:[["","appDragHighlight",""]],hostBindings:function(t,n){1&t&&e.NdJ("dragover",function(i){return n.ondragover(i)})("dragenter",function(i){return n.ondragenter(i)})("dragend",function(i){return n.ondragend(i)})("dragleave",function(i){return n.ondragleave(i)})("dragexit",function(i){return n.ondragexit(i)})("drop",function(i){return n.ondrop(i)})}}),o})(),U=(()=>{class o{constructor(){this.addTagsChange=new e.vpe,this.addTags={Parameters:{Tags:""}}}ngOnInit(){}ngOnChanges(){this.addTagsChange.emit(this.addTags)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-add-tags"]],inputs:{addTags:"addTags"},outputs:{addTagsChange:"addTagsChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","String containing comma separated list of tag key/value pairs. The tag key/value pairs are colon seperated,\n for example: \n GatewayId:HoustonStore000123,Latitude:29.630771,Longitude:-95.377603",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","Tags",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Tags"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(i){return n.addTags.Parameters.Tags=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.addTags.Parameters.Tags))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On],styles:[""]}),o})();function J(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"BatchThreshold"),e.qZA(),e._UZ(4,"span",12),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",13),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().batch.Parameters.BatchThreshold=r}),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.BatchThreshold)}}function w(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"label",1),e.TgZ(2,"span"),e._uU(3,"TimeInterval"),e.qZA(),e._UZ(4,"span",14),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",15),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().batch.Parameters.TimeInterval=r}),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.batch.Parameters.TimeInterval)}}let B=(()=>{class o{constructor(){this.batchChange=new e.vpe,this.batch={Parameters:{Mode:"bycount",IsEventData:"true"}}}ngOnInit(){}ngOnChanges(){this.batchChange.emit(this.batch)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-batch"]],inputs:{batch:"batch"},outputs:{batchChange:"batchChange"},features:[e.TTD],decls:26,vars:4,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Mode",1,"custom-select",3,"ngModel","ngModelChange"],["value","bycount"],["value","bytime"],["value","bytimecount"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","If true, specifies that the data being batch is Events and to un-marshal the batched data to []Event prior to returning the batched data. By default the batched data returned is [][]byte",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","IsEventData",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Number of items to batch before sending batched items to the next function in the pipeline.
\n Used with "bycount" and "bytimecount" modes',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","BatchThreshold",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'Amount of time to batch before sending batched items to the next function in the pipeline.
\n Used with "bytime" and "bytimecount" modes,
\n
\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","TimeInterval",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"Mode"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"select",3),e.NdJ("ngModelChange",function(i){return n.batch.Parameters.Mode=i}),e.TgZ(7,"option",4),e._uU(8,"bycount"),e.qZA(),e.TgZ(9,"option",5),e._uU(10,"bytime"),e.qZA(),e.TgZ(11,"option",6),e._uU(12,"bytimecount"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(13,J,7,1,"div",7),e.YNc(14,w,7,1,"div",7),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"IsEventData"),e.qZA(),e._UZ(19,"span",8),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"select",9),e.NdJ("ngModelChange",function(i){return n.batch.Parameters.IsEventData=i}),e.TgZ(22,"option",10),e._uU(23,"false"),e.qZA(),e.TgZ(24,"option",11),e._uU(25,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngIf","bycount"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(1),e.Q6J("ngIf","bytime"===n.batch.Parameters.Mode||"bytimecount"===n.batch.Parameters.Mode),e.xp6(7),e.Q6J("ngModel",n.batch.Parameters.IsEventData))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr,_.O5,a.Fj],styles:[""]}),o})(),L=(()=>{class o{constructor(){this.compressChange=new e.vpe,this.compress={Parameters:{Algorithm:"gzip"}}}ngOnInit(){}ngOnChanges(){this.compressChange.emit(this.compress)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-compress"]],inputs:{compress:"compress"},outputs:{compressChange:"compressChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","gzip"],["value","zlib"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(i){return n.compress.Parameters.Algorithm=i}),e.TgZ(6,"option",4),e._uU(7,"gzip"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"zlib"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.compress.Parameters.Algorithm))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr],styles:[""]}),o})(),G=(()=>{class o{constructor(){this.encryptChange=new e.vpe,this.encrypt={Parameters:{Algorithm:"aes256"}}}ngOnInit(){}ngOnChanges(){this.encryptChange.emit(this.encrypt)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-encrypt"]],inputs:{encrypt:"encrypt"},outputs:{encryptChange:"encryptChange"},features:[e.TTD],decls:22,vars:3,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Algorithm",1,"custom-select",3,"ngModel","ngModelChange"],["value","aes256"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Path in the Secret Store where the encryption key is located.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(required for AES256) Name of the secret for the encryption key in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Algorithm"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(i){return n.encrypt.Parameters.Algorithm=i}),e.TgZ(6,"option",4),e._uU(7,"aes256"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e.TgZ(9,"label",1),e.TgZ(10,"span"),e._uU(11,"SecretPath"),e.qZA(),e._UZ(12,"span",5),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(i){return n.encrypt.Parameters.SecretPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"SecretName"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(i){return n.encrypt.Parameters.SecretName=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.encrypt.Parameters.Algorithm),e.xp6(9),e.Q6J("ngModel",n.encrypt.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.encrypt.Parameters.SecretName))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr,a.Fj],styles:[""]}),o})();var D=g(1302);let V=(()=>{class o{constructor(){this.filterByDeviceNameChange=new e.vpe,this.deviceNames=[],this.filterByDeviceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.deviceNames=this.filterByDeviceName.Parameters.DeviceNames.split(","),this.filterByDeviceNameChange.emit(this.filterByDeviceName)}onDeviceNamesChange(){this.filterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-filter-by-device-name"]],inputs:{filterByDeviceName:"filterByDeviceName"},outputs:{filterByDeviceNameChange:"filterByDeviceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"deviceSelected","deviceSelectedChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the device names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"DeviceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-combo-list",3),e.NdJ("deviceSelectedChange",function(i){return n.deviceNames=i})("deviceSelectedChange",function(){return n.onDeviceNamesChange()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(i){return n.filterByDeviceName.Parameters.FilterOut=i}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("deviceSelected",n.deviceNames),e.xp6(7),e.Q6J("ngModel",n.filterByDeviceName.Parameters.FilterOut))},directives:[a._Y,a.JL,a.F,D.h,a.EJ,a.JJ,a.On,a.YN,a.Kr],styles:[""]}),o})();var Q=g(6322);let H=(()=>{class o{constructor(){this.filterByProfileNameChange=new e.vpe,this.profileNames=[],this.filterByProfileName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.profileNames=this.filterByProfileName.Parameters.ProfileNames.split(","),this.filterByProfileNameChange.emit(this.filterByProfileName)}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.filterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-filter-by-profile-name"]],inputs:{filterByProfileName:"filterByProfileName"},outputs:{filterByProfileNameChange:"filterByProfileNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],[3,"selectedProfiles","deviceProfileSelectedEvent"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the data matching the profile names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ProfileNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"app-device-profile-combo-list",3),e.NdJ("deviceProfileSelectedEvent",function(i){return n.onDeviceProfileSelectedEvent(i)}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(i){return n.filterByProfileName.Parameters.FilterOut=i}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("selectedProfiles",n.profileNames),e.xp6(7),e.Q6J("ngModel",n.filterByProfileName.Parameters.FilterOut))},directives:[a._Y,a.JL,a.F,Q.o,a.EJ,a.JJ,a.On,a.YN,a.Kr],styles:[""]}),o})(),X=(()=>{class o{constructor(){this.filterByResourceNameChange=new e.vpe,this.filterByResourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterByResourceNameChange.emit(this.filterByResourceName)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-filter-by-resource-name"]],inputs:{filterByResourceName:"filterByResourceName"},outputs:{filterByResourceNameChange:"filterByResourceNameChange"},features:[e.TTD],decls:17,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ResourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the resource names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"ResourceNames"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(i){return n.filterByResourceName.Parameters.ResourceNames=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"label",1),e.TgZ(8,"span"),e._uU(9,"FilterOut"),e.qZA(),e._UZ(10,"span",4),e.qZA(),e.TgZ(11,"div",2),e.TgZ(12,"select",5),e.NdJ("ngModelChange",function(i){return n.filterByResourceName.Parameters.FilterOut=i}),e.TgZ(13,"option",6),e._uU(14,"false"),e.qZA(),e.TgZ(15,"option",7),e._uU(16,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.filterByResourceName.Parameters.ResourceNames),e.xp6(7),e.Q6J("ngModel",n.filterByResourceName.Parameters.FilterOut))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),o})(),Y=(()=>{class o{constructor(){this.filterBySourceNameChange=new e.vpe,this.filterBySourceName={Parameters:{FilterOut:"false"}}}ngOnInit(){}ngOnChanges(){this.filterBySourceNameChange.emit(this.filterBySourceName)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-filter-by-source-name"]],inputs:{filterBySourceName:"filterBySourceName"},outputs:{filterBySourceNameChange:"filterBySourceNameChange"},features:[e.TTD],decls:18,vars:2,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","SourceNames",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the readings matching the source names should be filtered out (true) or filtered for (false).",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","FilterOut",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"SourceNames"),e.qZA(),e.qZA(),e.TgZ(5,"div",2),e.TgZ(6,"input",3),e.NdJ("ngModelChange",function(i){return n.filterBySourceName.Parameters.SourceNames=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",0),e.TgZ(8,"label",1),e.TgZ(9,"span"),e._uU(10,"FilterOut"),e.qZA(),e._UZ(11,"span",4),e.qZA(),e.TgZ(12,"div",2),e.TgZ(13,"select",5),e.NdJ("ngModelChange",function(i){return n.filterBySourceName.Parameters.FilterOut=i}),e.TgZ(14,"option",6),e._uU(15,"false"),e.qZA(),e.TgZ(16,"option",7),e._uU(17,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.filterBySourceName.Parameters.SourceNames),e.xp6(7),e.Q6J("ngModel",n.filterBySourceName.Parameters.FilterOut))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr],styles:[""]}),o})(),k=(()=>{class o{constructor(){this.transformChange=new e.vpe,this.transform={Parameters:{Type:"json"}}}ngOnInit(){}ngOnChanges(){this.transformChange.emit(this.transform)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-transform"]],inputs:{transform:"transform"},outputs:{transformChange:"transformChange"},features:[e.TTD],decls:10,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Type",1,"custom-select",3,"ngModel","ngModelChange"],["value","json"],["value","xml"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Type"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(i){return n.transform.Parameters.Type=i}),e.TgZ(6,"option",4),e._uU(7,"json"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"xml"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.transform.Parameters.Type))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr],styles:[""]}),o})(),j=(()=>{class o{constructor(){this.httpExportChange=new e.vpe,this.httpExport={Parameters:{Method:"post",MimeType:"application/json",PersistOnError:"false",ContinueOnSendError:"true",ReturnInputData:"false"}}}ngOnInit(){}ngOnChanges(){this.httpExportChange.emit(this.httpExport)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-httpexport"]],inputs:{httpExport:"httpExport"},outputs:{httpExportChange:"httpExportChange"},features:[e.TTD],decls:76,vars:9,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["name","Method",1,"custom-select",3,"ngModel","ngModelChange"],["value","post"],["value","put"],["type","text","name","Url",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Optional mime type for the data. Defaults to application/json if not set.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MimeType",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports, if true continues after send error so next export function executes.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["name","ContinueOnSendError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","For chained multi destination exports if true, passes the input data to next export function.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ReturnInputData",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the header key to add to the HTTP header",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","HeaderName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Path in the secret in the Secret Store where to header value is stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Name of the secret for the header value in the Secret Store.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretName",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Method"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"select",3),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.Method=i}),e.TgZ(6,"option",4),e._uU(7,"post"),e.qZA(),e.TgZ(8,"option",5),e._uU(9,"put"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",0),e.TgZ(11,"label",1),e._uU(12,"Url"),e.qZA(),e.TgZ(13,"div",2),e.TgZ(14,"input",6),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.Url=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",0),e.TgZ(16,"label",1),e.TgZ(17,"span"),e._uU(18,"MimeType"),e.qZA(),e._UZ(19,"span",7),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"input",8),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.MimeType=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",0),e.TgZ(23,"label",1),e.TgZ(24,"span"),e._uU(25,"PersistOnError"),e.qZA(),e._UZ(26,"span",9),e.qZA(),e.TgZ(27,"div",2),e.TgZ(28,"select",10),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.PersistOnError=i}),e.TgZ(29,"option",11),e._uU(30,"false"),e.qZA(),e.TgZ(31,"option",12),e._uU(32,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"div",0),e.TgZ(34,"label",13),e.TgZ(35,"span"),e._uU(36,"ContinueOnSendError"),e.qZA(),e._UZ(37,"span",14),e.qZA(),e.TgZ(38,"div",15),e.TgZ(39,"select",16),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.ContinueOnSendError=i}),e.TgZ(40,"option",11),e._uU(41,"false"),e.qZA(),e.TgZ(42,"option",12),e._uU(43,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",0),e.TgZ(45,"label",1),e.TgZ(46,"span"),e._uU(47,"ReturnInputData"),e.qZA(),e._UZ(48,"span",17),e.qZA(),e.TgZ(49,"div",2),e.TgZ(50,"select",18),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.ReturnInputData=i}),e.TgZ(51,"option",11),e._uU(52,"false"),e.qZA(),e.TgZ(53,"option",12),e._uU(54,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(55,"div",0),e.TgZ(56,"label",1),e.TgZ(57,"span"),e._uU(58,"HeaderName"),e.qZA(),e._UZ(59,"span",19),e.qZA(),e.TgZ(60,"div",2),e.TgZ(61,"input",20),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.HeaderName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div",0),e.TgZ(63,"label",1),e.TgZ(64,"span"),e._uU(65,"SecretPath"),e.qZA(),e._UZ(66,"span",21),e.qZA(),e.TgZ(67,"div",2),e.TgZ(68,"input",22),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.SecretPath=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",0),e.TgZ(70,"label",1),e.TgZ(71,"span"),e._uU(72,"SecretName"),e.qZA(),e._UZ(73,"span",23),e.qZA(),e.TgZ(74,"div",2),e.TgZ(75,"input",24),e.NdJ("ngModelChange",function(i){return n.httpExport.Parameters.SecretName=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.httpExport.Parameters.Method),e.xp6(9),e.Q6J("ngModel",n.httpExport.Parameters.Url),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.MimeType),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ContinueOnSendError),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.ReturnInputData),e.xp6(11),e.Q6J("ngModel",n.httpExport.Parameters.HeaderName),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretPath),e.xp6(7),e.Q6J("ngModel",n.httpExport.Parameters.SecretName))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr,a.Fj],styles:[""]}),o})();function z(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"SecretPath"),e.qZA(),e._UZ(4,"span",27),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"input",28),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().mqttExport.Parameters.SecretPath=r}),e.qZA(),e.TgZ(7,"div",29),e.TgZ(8,"small"),e.SDv(9,30),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.mqttExport.Parameters.SecretPath),e.Q6J("ngModel",t.mqttExport.Parameters.SecretPath)}}let K=(()=>{class o{constructor(){this.mqttExportChange=new e.vpe,this.mqttExport={Parameters:{Qos:"0",AutoReconnect:"true",Retain:"true",SkipVerify:"true",PersistOnError:"false",AuthMode:"none"}}}ngOnInit(){}ngOnChanges(){this.mqttExportChange.emit(this.mqttExport)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}authModeIsNotNone(){return this.renderPopoverComponent(),"none"!==this.mqttExport.Parameters.AuthMode}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-mqttexport"]],inputs:{mqttExport:"mqttExport"},outputs:{mqttExportChange:"mqttExportChange"},features:[e.TTD],decls:85,vars:10,consts:function(){let s;return s="the SecretPath can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","tcp://broker-host:1883",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["type","text","name","BrokerAddress",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Topic",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ClientId",1,"form-control",3,"ngModel","ngModelChange"],["name","Qos",1,"custom-select",3,"ngModel","ngModelChange"],["value","0"],["value","1"],["value","2"],["name","AutoReconnect",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["name","Retain",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Boolean indicating if the certificate verification should be skipped.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","SkipVerify",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Indicates to persist the data if the POST fails. Store and Forward must also be enabled if this is set to 'true'.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","PersistOnError",1,"custom-select",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Mode of authentication to use when connecting to the MQTT Broker.
\n
\n none - No authentication required.
\n
\n usernamepassword - Use username and password authentication. The Secret Store (Vault or InsecureSecrets) must contain the username and password secrets.
\n
\n clientcert - Use Client Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the clientkey and clientcert secrets.
\n
\n cacert - Use CA Certificate authentication. The Secret Store (Vault or InsecureSecrets) must contain the cacert secret.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","AuthMode",1,"custom-select",3,"ngModel","ngModelChange"],["value","none"],["value","usernamepassword"],["value","clientcert"],["value","cacert"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Path in the secret store where to authorization secrets are stored.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","SecretPath",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],s]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e.TgZ(3,"span"),e._uU(4,"BrokerAddress"),e.qZA(),e._UZ(5,"span",3),e.qZA(),e.TgZ(6,"div",4),e.TgZ(7,"input",5),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.BrokerAddress=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",1),e.TgZ(9,"label",2),e._uU(10,"Topic"),e.qZA(),e.TgZ(11,"div",4),e.TgZ(12,"input",6),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.Topic=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",1),e.TgZ(14,"label",2),e._uU(15,"ClientId"),e.qZA(),e.TgZ(16,"div",4),e.TgZ(17,"input",7),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.ClientId=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",1),e.TgZ(19,"label",2),e._uU(20,"Qos"),e.qZA(),e.TgZ(21,"div",4),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.Qos=i}),e.TgZ(23,"option",9),e._uU(24,"0"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"1"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"2"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"div",1),e.TgZ(30,"label",2),e._uU(31,"AutoReconnect"),e.qZA(),e.TgZ(32,"div",4),e.TgZ(33,"select",12),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.AutoReconnect=i}),e.TgZ(34,"option",13),e._uU(35,"false"),e.qZA(),e.TgZ(36,"option",14),e._uU(37,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",1),e.TgZ(39,"label",2),e._uU(40,"Retain"),e.qZA(),e.TgZ(41,"div",4),e.TgZ(42,"select",15),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.Retain=i}),e.TgZ(43,"option",13),e._uU(44,"false"),e.qZA(),e.TgZ(45,"option",14),e._uU(46,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(47,"div",1),e.TgZ(48,"label",2),e.TgZ(49,"span"),e._uU(50,"SkipVerify"),e.qZA(),e._UZ(51,"span",16),e.qZA(),e.TgZ(52,"div",4),e.TgZ(53,"select",17),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.SkipVerify=i}),e.TgZ(54,"option",13),e._uU(55,"false"),e.qZA(),e.TgZ(56,"option",14),e._uU(57,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",1),e.TgZ(59,"label",2),e.TgZ(60,"span"),e._uU(61,"PersistOnError"),e.qZA(),e._UZ(62,"span",18),e.qZA(),e.TgZ(63,"div",4),e.TgZ(64,"select",19),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.PersistOnError=i}),e.TgZ(65,"option",13),e._uU(66,"false"),e.qZA(),e.TgZ(67,"option",14),e._uU(68,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",1),e.TgZ(70,"label",2),e.TgZ(71,"span"),e._uU(72,"AuthMode"),e.qZA(),e._UZ(73,"span",20),e.qZA(),e.TgZ(74,"div",4),e.TgZ(75,"select",21),e.NdJ("ngModelChange",function(i){return n.mqttExport.Parameters.AuthMode=i}),e.TgZ(76,"option",22),e._uU(77,"none"),e.qZA(),e.TgZ(78,"option",23),e._uU(79,"usernamepassword"),e.qZA(),e.TgZ(80,"option",24),e._uU(81,"clientcert"),e.qZA(),e.TgZ(82,"option",25),e._uU(83,"cacert"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(84,z,10,3,"div",26),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.mqttExport.Parameters.BrokerAddress),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Topic),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.ClientId),e.xp6(5),e.Q6J("ngModel",n.mqttExport.Parameters.Qos),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AutoReconnect),e.xp6(9),e.Q6J("ngModel",n.mqttExport.Parameters.Retain),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.SkipVerify),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.PersistOnError),e.xp6(11),e.Q6J("ngModel",n.mqttExport.Parameters.AuthMode),e.xp6(9),e.Q6J("ngIf",n.authModeIsNotNone()))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr,_.O5],styles:[""]}),o})(),W=(()=>{class o{constructor(){this.jsonLogicChange=new e.vpe,this.jsonLogic={Parameters:{Rule:""}}}ngOnInit(){}ngOnChanges(){this.jsonLogicChange.emit(this.jsonLogic)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-jsonlogic"]],inputs:{jsonLogic:"jsonLogic"},outputs:{jsonLogicChange:"jsonLogicChange"},features:[e.TTD],decls:6,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","Rule",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e._uU(3,"Rule"),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"input",3),e.NdJ("ngModelChange",function(i){return n.jsonLogic.Parameters.Rule=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.jsonLogic.Parameters.Rule))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On],styles:[""]}),o})();function ee(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"label",2),e.TgZ(2,"span"),e._uU(3,"MediaType"),e.qZA(),e._UZ(4,"span",22),e.qZA(),e.TgZ(5,"div",3),e.TgZ(6,"input",23),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().pushToCore.Parameters.MediaType=r}),e.qZA(),e.TgZ(7,"div",24),e.TgZ(8,"small"),e.SDv(9,25),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.ekj("is-invalid",!t.pushToCore.Parameters.MediaType),e.Q6J("ngModel",t.pushToCore.Parameters.MediaType)}}let te=(()=>{class o{constructor(){this.pushToCoreChange=new e.vpe,this.pushToCore={Parameters:{ValueType:"String"}}}ngOnInit(){}ngOnChanges(){this.pushToCoreChange.emit(this.pushToCore)}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}valueTypeIsBinary(){return this.renderPopoverComponent(),"Binary"===this.pushToCore.Parameters.ValueType}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-push-to-core"]],inputs:{pushToCore:"pushToCore"},outputs:{pushToCoreChange:"pushToCoreChange"},features:[e.TTD],decls:48,vars:5,consts:function(){let s;return s="the MediaType can't be empty!",[[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","ProfileName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","DeviceName",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","ResourceName",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Value type to use the new Event Reading's value type",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["name","ValueType",1,"custom-select",3,"ngModel","ngModelChange"],["value","Bool"],["value","Int8"],["value","Int64"],["value","Uint8"],["value","Uint64"],["value","Float32"],["value","Float64"],["value","String"],["value","Binary"],["value","Object"],["value","Float32Array"],["value","BoolArray"],["class","form-group row",4,"ngIf"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","Media type to use the new Event Reading's value type. Required when the value type is Binary",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MediaType",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],s]},template:function(t,n){1&t&&(e.TgZ(0,"form",0),e.TgZ(1,"div",1),e.TgZ(2,"label",2),e._uU(3,"ProfileName"),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"input",4),e.NdJ("ngModelChange",function(i){return n.pushToCore.Parameters.ProfileName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",1),e.TgZ(7,"label",2),e._uU(8,"DeviceName"),e.qZA(),e.TgZ(9,"div",3),e.TgZ(10,"input",5),e.NdJ("ngModelChange",function(i){return n.pushToCore.Parameters.DeviceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",1),e.TgZ(12,"label",2),e._uU(13,"ResourceName"),e.qZA(),e.TgZ(14,"div",3),e.TgZ(15,"input",6),e.NdJ("ngModelChange",function(i){return n.pushToCore.Parameters.ResourceName=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"div",1),e.TgZ(17,"label",2),e.TgZ(18,"span"),e._uU(19,"ValueType"),e.qZA(),e._UZ(20,"span",7),e.qZA(),e.TgZ(21,"div",3),e.TgZ(22,"select",8),e.NdJ("ngModelChange",function(i){return n.pushToCore.Parameters.ValueType=i}),e.TgZ(23,"option",9),e._uU(24,"Bool"),e.qZA(),e.TgZ(25,"option",10),e._uU(26,"Int8"),e.qZA(),e.TgZ(27,"option",11),e._uU(28,"Int64"),e.qZA(),e.TgZ(29,"option",12),e._uU(30,"Uint8"),e.qZA(),e.TgZ(31,"option",13),e._uU(32,"Uint64"),e.qZA(),e.TgZ(33,"option",14),e._uU(34,"Float32"),e.qZA(),e.TgZ(35,"option",15),e._uU(36,"Float64"),e.qZA(),e.TgZ(37,"option",16),e._uU(38,"String"),e.qZA(),e.TgZ(39,"option",17),e._uU(40,"Binary"),e.qZA(),e.TgZ(41,"option",18),e._uU(42,"Object"),e.qZA(),e.TgZ(43,"option",19),e._uU(44,"Float32Array"),e.qZA(),e.TgZ(45,"option",20),e._uU(46,"BoolArray"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(47,ee,10,3,"div",21),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ProfileName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.DeviceName),e.xp6(5),e.Q6J("ngModel",n.pushToCore.Parameters.ResourceName),e.xp6(7),e.Q6J("ngModel",n.pushToCore.Parameters.ValueType),e.xp6(25),e.Q6J("ngIf",n.valueTypeIsBinary()))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr,_.O5],styles:[""]}),o})(),ne=(()=>{class o{constructor(){this.setResponseDataChange=new e.vpe,this.setResponseData={Parameters:{ResponseContentType:""}}}ngOnInit(){}ngOnChanges(){this.setResponseDataChange.emit(this.setResponseData)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-function-set-response-data"]],inputs:{setResponseData:"setResponseData"},outputs:{setResponseDataChange:"setResponseDataChange"},features:[e.TTD],decls:8,vars:1,consts:[[1,"form-group","row"],[1,"col-sm-3","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","(Optional) Used to specify content-type header for response, for example, application/json",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-9"],["type","text","name","ResponseContentType",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"form"),e.TgZ(1,"div",0),e.TgZ(2,"label",1),e.TgZ(3,"span"),e._uU(4,"ResponseContentType"),e.qZA(),e._UZ(5,"span",2),e.qZA(),e.TgZ(6,"div",3),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(i){return n.setResponseData.Parameters.ResponseContentType=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",n.setResponseData.Parameters.ResponseContentType))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On],styles:[""]}),o})();function oe(o,s){1&o&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,24),e.qZA(),e.qZA(),e.qZA())}function ie(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"span",25),e.NdJ("dragstart",function(r){const l=e.CHM(t).$implicit;return e.oxw().ondragstartBuiltinFunction(r,l)}),e.TgZ(1,"span",26),e._uU(2),e.qZA(),e.qZA()}if(2&o){const t=s.$implicit,n=e.oxw();e.ekj("d-table",!n.isSelected(t))("d-none",n.isSelected(t)),e.hYB("id","",n.builtinFuncZoneIdentifier,"",t,""),e.xp6(2),e.Oqu(t)}}function re(o,s){1&o&&(e.TgZ(0,"table",22),e.TgZ(1,"tbody"),e.TgZ(2,"td",23),e.SDv(3,27),e.qZA(),e.qZA(),e.qZA())}function ae(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"span"),e.TgZ(1,"span",28),e.NdJ("dragstart",function(r){const l=e.CHM(t).$implicit;return e.oxw().ondragstartFuncExecutionOrder(r,l)}),e._uU(2),e.qZA(),e.qZA()}if(2&o){const t=s.$implicit,n=e.oxw();e.xp6(1),e.hYB("id","",n.funcExecOrderZoneIdentifier,"",t,""),e.xp6(1),e.Oqu(t)}}function se(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-add-tags",43),e.NdJ("addTagsChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("addTags",n.availableFunctions[t])}}function le(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-batch",44),e.NdJ("batchChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("batch",n.availableFunctions[t])}}function ge(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-compress",45),e.NdJ("compressChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("compress",n.availableFunctions[t])}}function ce(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-encrypt",46),e.NdJ("encryptChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("encrypt",n.availableFunctions[t])}}function _e(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-device-name",47),e.NdJ("filterByDeviceNameChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByDeviceName",n.availableFunctions[t])}}function pe(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-profile-name",48),e.NdJ("filterByProfileNameChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByProfileName",n.availableFunctions[t])}}function de(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-resource-name",49),e.NdJ("filterByResourceNameChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterByResourceName",n.availableFunctions[t])}}function ue(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-filter-by-source-name",50),e.NdJ("filterBySourceNameChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("filterBySourceName",n.availableFunctions[t])}}function Te(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-transform",51),e.NdJ("transformChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("transform",n.availableFunctions[t])}}function me(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-httpexport",52),e.NdJ("httpExportChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("httpExport",n.availableFunctions[t])}}function fe(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-mqttexport",53),e.NdJ("mqttExportChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("mqttExport",n.availableFunctions[t])}}function Ze(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-jsonlogic",54),e.NdJ("jsonLogicChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("jsonLogic",n.availableFunctions[t])}}function Ce(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-push-to-core",55),e.NdJ("pushToCoreChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("pushToCore",n.availableFunctions[t])}}function Ae(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"app-appsvc-function-set-response-data",56),e.NdJ("setResponseDataChange",function(r){e.CHM(t);const i=e.oxw().$implicit;return e.oxw(2).availableFunctions[i]=r}),e.qZA(),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("setResponseData",n.availableFunctions[t])}}function Ee(o,s){1&o&&(e.TgZ(0,"div"),e.TgZ(1,"div",57),e.TgZ(2,"small"),e._UZ(3,"i",17),e.TgZ(4,"span"),e.SDv(5,58),e.qZA(),e.qZA(),e.qZA(),e.qZA())}function he(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",32),e.TgZ(1,"div",33),e._UZ(2,"i",34),e.TgZ(3,"span",35),e._uU(4,"Function"),e.qZA(),e.TgZ(5,"span",36),e._uU(6),e.qZA(),e.TgZ(7,"span"),e._uU(8,"Parameters"),e.qZA(),e.TgZ(9,"span",37),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw(2).unselectFunc(i)}),e._UZ(10,"i",38),e.qZA(),e.qZA(),e.TgZ(11,"div",39),e.TgZ(12,"div",40),e.YNc(13,se,2,1,"div",41),e.YNc(14,le,2,1,"div",41),e.YNc(15,ge,2,1,"div",41),e.YNc(16,ce,2,1,"div",41),e.YNc(17,_e,2,1,"div",41),e.YNc(18,pe,2,1,"div",41),e.YNc(19,de,2,1,"div",41),e.YNc(20,ue,2,1,"div",41),e.YNc(21,Te,2,1,"div",41),e.YNc(22,me,2,1,"div",41),e.YNc(23,fe,2,1,"div",41),e.YNc(24,Ze,2,1,"div",41),e.YNc(25,Ce,2,1,"div",41),e.YNc(26,Ae,2,1,"div",41),e.YNc(27,Ee,6,0,"div",42),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=s.$implicit,n=e.oxw(2);e.xp6(6),e.Oqu(t),e.xp6(6),e.Q6J("ngSwitch",n.startWith(t)),e.xp6(1),e.Q6J("ngSwitchCase","AddTags"),e.xp6(1),e.Q6J("ngSwitchCase","Batch"),e.xp6(1),e.Q6J("ngSwitchCase","Compress"),e.xp6(1),e.Q6J("ngSwitchCase","Encrypt"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByDeviceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByProfileName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterByResourceName"),e.xp6(1),e.Q6J("ngSwitchCase","FilterBySourceName"),e.xp6(1),e.Q6J("ngSwitchCase","Transform"),e.xp6(1),e.Q6J("ngSwitchCase","HTTPExport"),e.xp6(1),e.Q6J("ngSwitchCase","MQTTExport"),e.xp6(1),e.Q6J("ngSwitchCase","JSONLogic"),e.xp6(1),e.Q6J("ngSwitchCase","PushToCore"),e.xp6(1),e.Q6J("ngSwitchCase","SetResponseData")}}function Pe(o,s){if(1&o&&(e.TgZ(0,"div",10),e.TgZ(1,"div",11),e._UZ(2,"i",29),e.TgZ(3,"span"),e.SDv(4,30),e.qZA(),e.qZA(),e.TgZ(5,"div",13),e.YNc(6,he,28,16,"div",31),e.qZA(),e.qZA()),2&o){const t=e.oxw();e.xp6(6),e.Q6J("ngForOf",t.selectedFunctionsName)}}let ve=(()=>{class o{constructor(){this.funcExecOrderZoneIdentifier="funcExecOrder-",this.builtinFuncZoneIdentifier="builtinFunc-",this.objectKeys=Object.keys,this.profileNames=[],this.deviceNames=[],this.availableFunctionsChange=new e.vpe,this._selectedFunctionsName=[],this.selectedFunctionsNameChange=new e.vpe,this._availableFunctions={},this.builtinFunctions={},this.initBuiltinFunctions()}get availableFunctions(){return this._availableFunctions}set availableFunctions(t){Object.assign(this._availableFunctions,t)}get selectedFunctionsName(){return this._selectedFunctionsName}set selectedFunctionsName(t){t.forEach((n,r)=>{t[r]=n.trim()}),this._selectedFunctionsName=t}ngOnInit(){}ngOnChanges(){this.setSelectedDevices(),this.setSelectedProfiles(),this.availableFunctionsChange.emit(this.availableFunctions)}startWith(t){let n="Unknown";return Object.keys(this.builtinFunctions).forEach(r=>{t.startsWith(r)&&(n=r)}),n}setSelectedDevices(){var t;(null===(t=this.availableFunctions.FilterByDeviceName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames&&(this.deviceNames=this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames.split(","))}setSelectedProfiles(){var t;(null===(t=this.availableFunctions.FilterByProfileName)||void 0===t?void 0:t.Parameters)&&this.availableFunctions.FilterByProfileName.Parameters.ProfileNames&&(this.profileNames=this.availableFunctions.FilterByProfileName.Parameters.ProfileNames.split(","))}initBuiltinFunctions(){this.builtinFunctions.AddTags={Parameters:{Tags:""}},this.builtinFunctions.Batch={Parameters:{}},this.builtinFunctions.FilterByDeviceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByProfileName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterBySourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.FilterByResourceName={Parameters:{FilterOut:"false"}},this.builtinFunctions.Transform={Parameters:{Type:"json"}},this.builtinFunctions.Compress={Parameters:{Algorithm:"gzip"}},this.builtinFunctions.Encrypt={Parameters:{Algorithm:"aes"}},this.builtinFunctions.HTTPExport={Parameters:{}},this.builtinFunctions.MQTTExport={Parameters:{}},this.builtinFunctions.PushToCore={Parameters:{}},this.builtinFunctions.SetResponseData={Parameters:{}},this.builtinFunctions.JSONLogic={Parameters:{}}}onDeviceProfileSelectedEvent(t){this.profileNames=t,this.availableFunctions.FilterByProfileName.Parameters.ProfileNames=this.profileNames.join(",")}onDeviceNamesChange(){this.availableFunctions.FilterByDeviceName.Parameters.DeviceNames=this.deviceNames.join(",")}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}selectOnefunc(t){this.selectedFunctionsName.push(t),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}unselectFunc(t){-1!==this.selectedFunctionsName.indexOf(t)&&(this.selectedFunctionsName.splice(this.selectedFunctionsName.indexOf(t),1),this.selectedFunctionsNameChange.emit(this.selectedFunctionsName))}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}isSelected(t){let n=!1;return this.selectedFunctionsName.forEach(r=>{t!==r.trim()||(n=!0)}),n}ondropBuiltinFunction(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");!n||this.unselectFunc(n)}ondragstartBuiltinFunction(t,n){t.dataTransfer.setData("funcName",n)}sortSelectedFuncsExecuterOrder(t,n){let r=this.selectedFunctionsName.slice(0);r.splice(r.indexOf(t),1),r.splice(r.indexOf(n),0,t),this.selectedFunctionsName=r,this.selectedFunctionsNameChange.emit(this.selectedFunctionsName)}ondropFuncExecutionOrder(t){t.preventDefault();let n=t.dataTransfer.getData("funcName");if(!n)return;let r=`${this.funcExecOrderZoneIdentifier}${n}`,i=t.target.id;if(r===i)return;let l=document.getElementById(r);if(l&&0===i.indexOf(this.funcExecOrderZoneIdentifier)){let d=i.replace(this.funcExecOrderZoneIdentifier,"");this.sortSelectedFuncsExecuterOrder(n,d)}else l||this.selectOnefunc(n);this.renderPopoverComponent()}ondragstartFuncExecutionOrder(t,n){t.dataTransfer.setData("funcName",n)}ondragoverFuncExecutionOrder(t){$(t.target).addClass("ml-3")}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-pipeline-function"]],inputs:{availableFunctions:"availableFunctions",selectedFunctionsName:"selectedFunctionsName"},outputs:{availableFunctionsChange:"availableFunctionsChange",selectedFunctionsNameChange:"selectedFunctionsNameChange"},features:[e.TTD],decls:31,vars:5,consts:function(){let s,t,n,r,i,l,d,u;return s="\u5185\u7F6E\u7BA1\u9053\u51FD\u6570",t="\u9009\u4E2D\u7684\u7BA1\u9053\u51FD\u6570",n="\u7BA1\u9053\u51FD\u6570\u6267\u884C\u987A\u5E8F",r="\u62D6\u62FD\u6539\u53D8\u6267\u884C\u987A\u5E8F",i="\u62D6\u62FD\u533A\u57DF",l="\u62D6\u62FD\u533A\u57DF",d="\u7BA1\u9053\u51FD\u6570\u53C2\u6570\u8BBE\u7F6E",u=" Unknown pipeline function ",[[1,"row"],[1,"col-sm-4","col-md-3"],["appDragHighlight","",1,"card","mb-3",3,"drop"],[1,"card-header","font-weight-bold","text-nowrap","text-truncate"],[1,"fa","fa-file-text","mr-2","text-info"],s,[1,"card-body","overflow-auto"],["class","border-secondary rounded w-100 text-center","style","height: 70px; border: 1px; border-style: dashed;",4,"ngIf"],["draggable","true","class","mb-3","role","button",3,"id","d-table","d-none","dragstart",4,"ngFor","ngForOf"],[1,"col-sm-8","col-md-9"],[1,"card"],[1,"card-header","font-weight-bold"],t,[1,"card-body"],[1,"fa","fa-sort-amount-asc","fa-rotate-270","mr-2","text-info"],n,[1,"text-info","ml-2"],[1,"fa","fa-info-circle","mr-1"],r,["id","funcExecOrderSelectedBody",1,"card-body"],[4,"ngFor","ngForOf"],["class","card",4,"ngIf"],[1,"border-secondary","rounded","w-100","text-center",2,"height","70px","border","1px","border-style","dashed"],[1,"text-muted"],i,["draggable","true","role","button",1,"mb-3",3,"id","dragstart"],[1,"badge","badge-secondary"],l,["draggable","true","role","button",1,"badge","badge-secondary","text-nowrap","text-truncate","mr-2",3,"id","dragstart"],[1,"fa","fa-cog","mr-2","text-info"],d,["class","card mb-3",4,"ngFor","ngForOf"],[1,"card","mb-3"],[1,"card-header","text-nowrap","text-truncate"],[1,"fa","fa-tag","mr-2","text-info"],[1,"mr-2"],[1,"badge","badge-secondary","mr-2"],["role","button",1,"float-right","text-danger",3,"click"],[1,"fa","fa-trash"],[1,"card-body","text-nowrap"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"addTags","addTagsChange"],[3,"batch","batchChange"],[3,"compress","compressChange"],[3,"encrypt","encryptChange"],[3,"filterByDeviceName","filterByDeviceNameChange"],[3,"filterByProfileName","filterByProfileNameChange"],[3,"filterByResourceName","filterByResourceNameChange"],[3,"filterBySourceName","filterBySourceNameChange"],[3,"transform","transformChange"],[3,"httpExport","httpExportChange"],[3,"mqttExport","mqttExportChange"],[3,"jsonLogic","jsonLogicChange"],[3,"pushToCore","pushToCoreChange"],[3,"setResponseData","setResponseDataChange"],["role","alert",1,"alert","alert-warning","mb-3"],u]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.NdJ("drop",function(i){return n.ondropBuiltinFunction(i)}),e.TgZ(3,"div",3),e._UZ(4,"i",4),e.TgZ(5,"span"),e.SDv(6,5),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.YNc(8,oe,4,0,"table",7),e.YNc(9,ie,3,7,"span",8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"div",10),e.TgZ(12,"div",11),e._UZ(13,"i",4),e.TgZ(14,"span"),e.SDv(15,12),e.qZA(),e.qZA(),e.TgZ(16,"div",13),e.TgZ(17,"div",2),e.NdJ("drop",function(i){return n.ondropFuncExecutionOrder(i)}),e.TgZ(18,"div",3),e._UZ(19,"i",14),e.TgZ(20,"span"),e.SDv(21,15),e.qZA(),e.TgZ(22,"span",16),e.TgZ(23,"small"),e._UZ(24,"i",17),e.TgZ(25,"span"),e.SDv(26,18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"div",19),e.YNc(28,re,4,0,"table",7),e.YNc(29,ae,3,3,"span",20),e.qZA(),e.qZA(),e.YNc(30,Pe,7,1,"div",21),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("ngIf",n.selectedFunctionsName.length===n.objectKeys(n.availableFunctions).length),e.xp6(1),e.Q6J("ngForOf",n.objectKeys(n.availableFunctions)),e.xp6(19),e.Q6J("ngIf",0===n.selectedFunctionsName.length),e.xp6(1),e.Q6J("ngForOf",n.selectedFunctionsName),e.xp6(1),e.Q6J("ngIf",0!==n.selectedFunctionsName.length))},directives:[y,_.O5,_.sg,_.RF,_.n9,_.ED,U,B,L,G,V,H,X,Y,k,j,K,W,te,ne],styles:[""]}),o})();function Se(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"li",3),e.TgZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"i",6),e.qZA(),e.TgZ(4,"div",7),e.TgZ(5,"h5",16),e._uU(6),e.qZA(),e.TgZ(7,"p",9),e.TgZ(8,"span",10),e._uU(9,"ExecutionOrder:"),e.qZA(),e._uU(10),e.qZA(),e.TgZ(11,"span",10),e._uU(12,"Topics:"),e.qZA(),e._uU(13),e.TgZ(14,"span",11),e.NdJ("click",function(){const i=e.CHM(t).$implicit;return e.oxw(3).edit(i.Id)}),e._UZ(15,"i",12),e.TgZ(16,"span"),e.SDv(17,17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=s.$implicit;e.xp6(6),e.Oqu(t.Id),e.xp6(4),e.hij(" ",t.ExecutionOrder," "),e.xp6(3),e.hij(" ",t.Topics," ")}}function Ne(o,s){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Se,18,3,"li",15),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.perTopicPipelines)}}function Me(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"ul",2),e.TgZ(1,"li",3),e.TgZ(2,"div",4),e.TgZ(3,"div",5),e._UZ(4,"i",6),e.qZA(),e.TgZ(5,"div",7),e.TgZ(6,"h5",8),e._uU(7),e.qZA(),e.TgZ(8,"p",9),e.TgZ(9,"span",10),e._uU(10,"ExecutionOrder:"),e.qZA(),e._uU(11),e.qZA(),e.TgZ(12,"span",11),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return r.edit(r.defaultPipelineIdentifier)}),e._UZ(13,"i",12),e.TgZ(14,"span"),e.SDv(15,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(16,Ne,2,1,"div",14),e.qZA()}if(2&o){const t=e.oxw();e.xp6(7),e.Oqu(t.defaultPipelineIdentifier),e.xp6(4),e.Oqu(t.pipeline.ExecutionOrder),e.xp6(5),e.Q6J("ngIf",t.perTopicPipelines)}}function qe(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",30),e.TgZ(1,"label",31),e.TgZ(2,"span"),e._uU(3,"Pipeline Topic"),e.qZA(),e.qZA(),e.TgZ(4,"div",32),e.TgZ(5,"input",38),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw(2).pipelineTopic=r}),e.qZA(),e.TgZ(6,"div",39),e.TgZ(7,"small"),e.SDv(8,40),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(5),e.ekj("is-invalid",!t.pipelineTopic),e.Q6J("ngModel",t.pipelineTopic)}}function Ie(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",18),e.TgZ(1,"div",19),e._UZ(2,"i",20),e.TgZ(3,"span"),e.SDv(4,21),e.qZA(),e.TgZ(5,"span",22),e._uU(6),e.qZA(),e.TgZ(7,"span",23),e.TgZ(8,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().save()}),e.SDv(9,25),e.qZA(),e.TgZ(10,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e.SDv(11,27),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",28),e.TgZ(13,"div"),e.TgZ(14,"form",29),e.TgZ(15,"div",30),e.TgZ(16,"label",31),e.TgZ(17,"span"),e._uU(18,"Pipeline ID"),e.qZA(),e.qZA(),e.TgZ(19,"div",32),e._UZ(20,"input",33),e.qZA(),e.qZA(),e.YNc(21,qe,9,3,"div",34),e.qZA(),e.qZA(),e.TgZ(22,"div",18),e.TgZ(23,"div",19),e._UZ(24,"i",35),e.TgZ(25,"span"),e.SDv(26,36),e.qZA(),e.qZA(),e.TgZ(27,"div",28),e.TgZ(28,"app-pipeline-function",37),e.NdJ("selectedFunctionsNameChange",function(r){return e.CHM(t),e.oxw().selectedFunctionsName=r})("availableFunctionsChange",function(r){return e.CHM(t),e.oxw().availableFunctions=r}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.Oqu(t.selectedPipelineID),e.xp6(2),e.Q6J("disabled",!t.pipelineTopic||!t.validate()),e.xp6(12),e.Q6J("ngModel",t.selectedPipelineID),e.xp6(1),e.Q6J("ngIf",!t.isDefaultPipelineIndetifier(t.selectedPipelineID)),e.xp6(7),e.Q6J("selectedFunctionsName",t.selectedFunctionsName)("availableFunctions",t.availableFunctions)}}let Re=(()=>{class o{constructor(t,n,r,i){this.route=t,this.router=n,this.registrySvc=r,this.msgSvc=i,this.defaultPipelineIdentifier="default-pipeline",this.isEditStatus=!1,this.selectedFunctionsName=[],this.pipelineTopic="#",this.selectedPipelineID="",this.appServiceKey="",this.perTopicPipelines=[],this.pipeline={},this.availableFunctions={}}ngOnInit(){this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}ngOnChanges(){this.pipeline&&(this.pipeline.PerTopicPipelines&&(this.perTopicPipelines=Object.values(this.pipeline.PerTopicPipelines)),this.availableFunctions=this.pipeline.Functions,this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","))}pipelineIDIsUnique(t){if(t===this.selectedPipelineID)return!0;if(t===this.defaultPipelineIdentifier)return!1;let n=!0;return this.perTopicPipelines.forEach(r=>{t!==r.Id||(n=!1)}),n}isDefaultPipelineIndetifier(t){return t===this.defaultPipelineIdentifier}edit(t){this.selectedPipelineID=t,this.isDefaultPipelineIndetifier(t)?this.selectedFunctionsName=this.pipeline.ExecutionOrder.split(","):this.perTopicPipelines.forEach(n=>{t===n.Id&&(this.selectedFunctionsName=n.ExecutionOrder.split(","),this.pipelineTopic=n.Topics)}),this.isEditStatus=!0,this.renderPopoverComponent()}getFuncExecutionOrder(){return this.selectedFunctionsName.join(",")}validate(){let t=!0;return this.selectedFunctionsName.forEach(n=>{(n.startsWith("PushToCore")&&"Binary"===this.availableFunctions[n].Parameters.ValueType&&""===this.availableFunctions[n].Parameters.MediaType||n.startsWith("MQTTExport")&&"none"!==this.availableFunctions[n].Parameters.AuthMode&&""===this.availableFunctions[n].Parameters.SecretPath)&&(t=!1)}),t}save(){let t={},n={PerTopicPipelines:{}},r={};if(this.selectedFunctionsName.forEach(i=>{r[i]=this.availableFunctions[i]}),n.Functions=r,this.isDefaultPipelineIndetifier(this.selectedPipelineID))n.ExecutionOrder=this.getFuncExecutionOrder();else for(const[i,l]of Object.entries(this.pipeline.PerTopicPipelines))if(this.selectedPipelineID===l.Id){l.ExecutionOrder=this.getFuncExecutionOrder(),l.Topics=this.pipelineTopic,n.PerTopicPipelines[i]=l;break}t.Pipeline=n,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy Pipeline configuration",`service: ${this.appServiceKey}`),this.isEditStatus=!1,this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}cancel(){this.isEditStatus=!1}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(f.e))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-pipeline"]],inputs:{appServiceKey:"appServiceKey",pipeline:"pipeline"},features:[e.TTD],decls:2,vars:2,consts:function(){let s,t,n,r,i,l,d;return s="\u7F16\u8F91",t="\u7F16\u8F91",n="Edit Pipeline",r="\u4FDD\u5B58",i="\u53D6\u6D88",l="Pipline Functions Setting",d="the pipeline topic can't be empty!",[["class","list-unstyled",4,"ngIf"],["class","card",4,"ngIf"],[1,"list-unstyled"],[1,"list-group-item","list-group-item-action","list-group-item-light"],[1,"media"],[1,"align-self-center","mr-3"],[1,"fa","fa-tags","fa-2x","text-secondary"],[1,"media-body"],[1,"text-dark","mt-0"],[1,"mb-0"],[1,"badge","badge-secondary","mr-1"],["role","button",1,"badge","badge-info","float-right",3,"click"],[1,"fa","fa-edit","mr-1"],s,[4,"ngIf"],["class","list-group-item list-group-item-action list-group-item-light",4,"ngFor","ngForOf"],[1,"text-dark","mt-0","mb-1"],t,[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],n,[1,"ml-1","text-info"],[1,"float-right"],[1,"btn","btn-sm","btn-success","mr-1",3,"disabled","click"],r,[1,"btn","btn-sm","btn-secondary",3,"click"],i,[1,"card-body"],[1,"has-validation"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","disabled","","name","PipelineID",1,"form-control",3,"ngModel"],["class","form-group row",4,"ngIf"],[1,"fa","fa-tag","text-info","mr-1"],l,[3,"selectedFunctionsName","availableFunctions","selectedFunctionsNameChange","availableFunctionsChange"],["type","text","name","PipelineTopic",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],d]},template:function(t,n){1&t&&(e.YNc(0,Me,17,3,"ul",0),e.YNc(1,Ie,29,6,"div",1)),2&t&&(e.Q6J("ngIf",n.pipeline&&!n.isEditStatus),e.xp6(1),e.Q6J("ngIf",n.isEditStatus))},directives:[_.O5,_.sg,a._Y,a.JL,a.F,a.Fj,a.JJ,a.On,ve],styles:["input[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}"]}),o})(),be=(()=>{class o{constructor(t,n,r,i){this.route=t,this.router=n,this.registrySvc=r,this.msgSvc=i,this.appServiceKey="",this._insecureSecrets={},this.insecureSecretsChange=new e.vpe,this.insecureSecrets={DB:{Secrets:{}},mqtt:{Secrets:{}},http:{Secrets:{}},AES:{Secrets:{}}}}get insecureSecrets(){return this._insecureSecrets}set insecureSecrets(t){Object.assign(this._insecureSecrets,t)}ngOnInit(){}ngOnChanges(){this.insecureSecretsChange.emit(this.insecureSecrets)}save(){let t={};t.InsecureSecrets=this.insecureSecrets,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy InsecureSecrets configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(f.e))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-insecure-secrets"]],inputs:{appServiceKey:"appServiceKey",insecureSecrets:"insecureSecrets"},outputs:{insecureSecretsChange:"insecureSecretsChange"},features:[e.TTD],decls:107,vars:13,consts:function(){let s,t,n;return s="Edit InsecureSecrets",t="\u4FDD\u5B58",n="\u975E\u5B89\u5168\u6A21\u5F0F\u79D8\u94A5\u5B58\u50A8\u7528\u4E8E\u975E\u5B89\u5168\u6A21\u5F0F\u542F\u52A8EdgeX\uFF0C\u6BD4\u5982\u975E\u5B89\u5168\u6A21\u5F0F\u4E0B\u6CA1\u6709Vault\u5B58\u50A8\u7CFB\u7EDF\uFF0C\u4EC5\u4EC5\u7528\u4E8E\u5728\u975E\u5B89\u5168\u6A21\u5F0F\u4E0B\u66FF\u4EE3Vault",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],s,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],["role","alert",1,"alert","alert-info","mb-3"],[1,"fa","fa-info-circle","mr-1"],n,[1,"card","mb-3"],[1,"card-header"],[1,"fa","fa-tags","text-danger","mr-2"],[1,"font-weight-bold"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],[1,"col-sm-10"],["type","text","name","path",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","username",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","password",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","cacert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientcert",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","clientkey",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","headervalue",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","key",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"div",8),e.TgZ(10,"small"),e._UZ(11,"i",9),e.TgZ(12,"span"),e.SDv(13,10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e._UZ(16,"i",13),e.TgZ(17,"span",14),e._uU(18,"DB"),e.qZA(),e.qZA(),e.TgZ(19,"div",7),e.TgZ(20,"form"),e.TgZ(21,"div",15),e.TgZ(22,"label",16),e._uU(23,"path"),e.qZA(),e.TgZ(24,"div",17),e.TgZ(25,"input",18),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.DB.Path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",15),e.TgZ(27,"label",16),e._uU(28,"username"),e.qZA(),e.TgZ(29,"div",17),e.TgZ(30,"input",19),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.DB.Secrets.username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",15),e.TgZ(32,"label",16),e._uU(33,"password"),e.qZA(),e.TgZ(34,"div",17),e.TgZ(35,"input",20),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.DB.Secrets.password=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",11),e.TgZ(37,"div",12),e._UZ(38,"i",13),e.TgZ(39,"span",14),e._uU(40,"mqtt"),e.qZA(),e.qZA(),e.TgZ(41,"div",7),e.TgZ(42,"form"),e.TgZ(43,"div",15),e.TgZ(44,"label",16),e._uU(45,"path"),e.qZA(),e.TgZ(46,"div",17),e.TgZ(47,"input",18),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"div",15),e.TgZ(49,"label",16),e._uU(50,"username"),e.qZA(),e.TgZ(51,"div",17),e.TgZ(52,"input",19),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Secrets.username=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",15),e.TgZ(54,"label",16),e._uU(55,"password"),e.qZA(),e.TgZ(56,"div",17),e.TgZ(57,"input",20),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Secrets.password=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",15),e.TgZ(59,"label",16),e._uU(60,"cacert"),e.qZA(),e.TgZ(61,"div",17),e.TgZ(62,"input",21),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Secrets.cacert=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",15),e.TgZ(64,"label",16),e._uU(65,"clientcert"),e.qZA(),e.TgZ(66,"div",17),e.TgZ(67,"input",22),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Secrets.clientcert=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(68,"div",15),e.TgZ(69,"label",16),e._uU(70,"clientkey"),e.qZA(),e.TgZ(71,"div",17),e.TgZ(72,"input",23),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.mqtt.Secrets.clientkey=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(73,"div",11),e.TgZ(74,"div",12),e._UZ(75,"i",13),e.TgZ(76,"span",14),e._uU(77,"http"),e.qZA(),e.qZA(),e.TgZ(78,"div",7),e.TgZ(79,"form"),e.TgZ(80,"div",15),e.TgZ(81,"label",16),e._uU(82,"path"),e.qZA(),e.TgZ(83,"div",17),e.TgZ(84,"input",18),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.http.Path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"div",15),e.TgZ(86,"label",16),e._uU(87,"headervalue"),e.qZA(),e.TgZ(88,"div",17),e.TgZ(89,"input",24),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.http.Secrets.headervalue=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(90,"div",11),e.TgZ(91,"div",12),e._UZ(92,"i",13),e.TgZ(93,"span",14),e._uU(94,"AES"),e.qZA(),e.qZA(),e.TgZ(95,"div",7),e.TgZ(96,"form"),e.TgZ(97,"div",15),e.TgZ(98,"label",16),e._uU(99,"path"),e.qZA(),e.TgZ(100,"div",17),e.TgZ(101,"input",18),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.AES.Path=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(102,"div",15),e.TgZ(103,"label",16),e._uU(104,"key"),e.qZA(),e.TgZ(105,"div",17),e.TgZ(106,"input",25),e.NdJ("ngModelChange",function(i){return n.insecureSecrets.AES.Secrets.key=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(25),e.Q6J("ngModel",n.insecureSecrets.DB.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.DB.Secrets.password),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.mqtt.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.username),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.password),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.cacert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientcert),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.mqtt.Secrets.clientkey),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.http.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.http.Secrets.headervalue),e.xp6(12),e.Q6J("ngModel",n.insecureSecrets.AES.Path),e.xp6(5),e.Q6J("ngModel",n.insecureSecrets.AES.Secrets.key))},directives:[a._Y,a.JL,a.F,a.Fj,a.JJ,a.On],styles:[""]}),o})(),xe=(()=>{class o{constructor(t,n,r,i){this.route=t,this.router=n,this.registrySvc=r,this.msgSvc=i,this.appServiceKey="",this.storeAndForwardChange=new e.vpe,this.storeAndForward={Enabled:"false"}}ngOnInit(){}ngOnChanges(){this.storeAndForwardChange.emit(this.storeAndForward)}save(){let t={};t.StoreAndForward=this.storeAndForward,this.registrySvc.deployToConsul({Writable:t},this.appServiceKey).subscribe(()=>{this.msgSvc.success("deploy StoreAndForward configuration",`service: ${this.appServiceKey}`),this.router.navigate(["../app-service-list"],{relativeTo:this.route})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(p.gz),e.Y36(p.F0),e.Y36(m.r),e.Y36(f.e))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-appsvc-store-and-forward"]],inputs:{appServiceKey:"appServiceKey",storeAndForward:"storeAndForward"},outputs:{storeAndForwardChange:"storeAndForwardChange"},features:[e.TTD],decls:35,vars:3,consts:function(){let s,t;return s="Edit StoreAndForward",t="\u4FDD\u5B58",[[1,"card"],[1,"card-header","font-weight-bold"],[1,"fa","fa-edit","font-weight-bolder","text-info","mr-1"],s,[1,"float-right"],[1,"btn","btn-sm","btn-success",3,"click"],t,[1,"card-body"],[1,"form-group","row"],[1,"col-sm-2","col-form-label"],["role","button","data-html","false","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","capability allows for export functions to persist data on failure and for the export of the data to be retried at a later time.",1,"fa","fa-question-circle-o","fa-lg","ml-2"],[1,"col-sm-10"],["name","Enabled",1,"custom-select",3,"ngModel","ngModelChange"],["value","false"],["value","true"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content","pure number",1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","MaxRetryCount",1,"form-control",3,"ngModel","ngModelChange"],["role","button","data-html","true","data-animation","true","data-trigger","focus","data-toggle","popover","title","tips","data-content",'\n The format of this field is to be an unsigned integer followed by a unit,
\n which may be "ns", "us" (or "\xb5s"), "ms", "s", "m", "h" representing nanoseconds, microseconds, milliseconds, seconds, minutes or hours. Eg, "100ms", "24h"',1,"fa","fa-question-circle-o","fa-lg","ml-2"],["type","text","name","RetryInterval",1,"form-control",3,"ngModel","ngModelChange"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"span",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return n.save()}),e.SDv(7,6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"form"),e.TgZ(10,"div",8),e.TgZ(11,"label",9),e.TgZ(12,"span"),e._uU(13,"Enabled"),e.qZA(),e._UZ(14,"span",10),e.qZA(),e.TgZ(15,"div",11),e.TgZ(16,"select",12),e.NdJ("ngModelChange",function(i){return n.storeAndForward.Enabled=i}),e.TgZ(17,"option",13),e._uU(18,"false"),e.qZA(),e.TgZ(19,"option",14),e._uU(20,"true"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"div",8),e.TgZ(22,"label",9),e.TgZ(23,"span"),e._uU(24,"MaxRetryCount"),e.qZA(),e._UZ(25,"span",15),e.qZA(),e.TgZ(26,"div",11),e.TgZ(27,"input",16),e.NdJ("ngModelChange",function(i){return n.storeAndForward.MaxRetryCount=i}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"div",8),e.TgZ(29,"label",9),e.TgZ(30,"span"),e._uU(31,"RetryInterval"),e.qZA(),e._UZ(32,"span",17),e.qZA(),e.TgZ(33,"div",11),e.TgZ(34,"input",18),e.NdJ("ngModelChange",function(i){return n.storeAndForward.RetryInterval=i}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(16),e.Q6J("ngModel",n.storeAndForward.Enabled),e.xp6(11),e.Q6J("ngModel",n.storeAndForward.MaxRetryCount),e.xp6(7),e.Q6J("ngModel",n.storeAndForward.RetryInterval))},directives:[a._Y,a.JL,a.F,a.EJ,a.JJ,a.On,a.YN,a.Kr,a.Fj],styles:[""]}),o})();function Fe(o,s){if(1&o&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-trigger",15),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("configTrigger",t.configTrigger)}}function Oe(o,s){if(1&o&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-pipeline",16),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("pipeline",t.configWritable.Pipeline)}}function ye(o,s){if(1&o&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-insecure-secrets",17),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("insecureSecrets",t.configWritable.InsecureSecrets)}}function Ue(o,s){if(1&o&&(e.TgZ(0,"div"),e._UZ(1,"app-appsvc-store-and-forward",18),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("appServiceKey",t.appServiceKey)("storeAndForward",t.configWritable.StoreAndForward)}}let Je=(()=>{class o{constructor(t,n){this.registrySvc=t,this.route=n,this.TirggerIdentifier="Trigger",this.writableIdentifier="Writable",this.configurableSection="PipelineFunc",this.appServiceKey="",this.configTrigger={},this.configWritable={}}ngOnInit(){this.route.queryParams.subscribe(t=>{t.appSvcKey&&(this.appServiceKey=t.appSvcKey,this.loadAppSvcConfig())}),this.renderPopoverComponent()}renderPopoverComponent(){window.setTimeout(()=>{$('[data-toggle="popover"]').popover({trigger:"hover"})},200)}loadAppSvcConfig(){this.registrySvc.getAppSvcConfigBySvcKey(this.appServiceKey).subscribe(t=>{Object.assign(this.configTrigger,t[this.TirggerIdentifier]),Object.assign(this.configWritable,t[this.writableIdentifier])})}configurableSectionChange(t){this.configurableSection=t,this.renderPopoverComponent()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(m.r),e.Y36(p.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-app-service-configurable"]],decls:29,vars:13,consts:function(){let s,t,n,r,i;return s="\u914D\u7F6E\u8BBE\u7F6E",t="\u89E6\u53D1\u5668",n="Pipelines",r="\u975E\u5B89\u5168\u79D8\u94A5\u5B58\u50A8",i="\u7F13\u5B58\u548C\u8F6C\u53D1",[[1,"card"],[1,"card-header"],[1,"fa","fa-tags","mr-2","text-danger"],[1,"font-weight-bold"],[1,"mr-2","text-info"],s,[1,"card-body"],[1,"nav","nav-tabs","card-header-tabs","font-weight-bold"],[1,"nav-item",3,"click"],["role","button",1,"nav-link"],t,n,r,i,[4,"ngIf"],[3,"configTrigger"],[3,"appServiceKey","pipeline"],[3,"appServiceKey","insecureSecrets"],[3,"appServiceKey","storeAndForward"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"i",2),e.TgZ(3,"span",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.TgZ(6,"span"),e.SDv(7,5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e.TgZ(9,"div",0),e.TgZ(10,"div",1),e.TgZ(11,"ul",7),e.TgZ(12,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("Trigger")}),e.TgZ(13,"a",9),e.SDv(14,10),e.qZA(),e.qZA(),e.TgZ(15,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("PipelineFunc")}),e.TgZ(16,"a",9),e.SDv(17,11),e.qZA(),e.qZA(),e.TgZ(18,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("InsecureSecrets")}),e.TgZ(19,"a",9),e.SDv(20,12),e.qZA(),e.qZA(),e.TgZ(21,"li",8),e.NdJ("click",function(){return n.configurableSectionChange("StoreAndForward")}),e.TgZ(22,"a",9),e.SDv(23,13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",6),e.YNc(25,Fe,2,1,"div",14),e.YNc(26,Oe,2,2,"div",14),e.YNc(27,ye,2,2,"div",14),e.YNc(28,Ue,2,2,"div",14),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(n.appServiceKey),e.xp6(8),e.ekj("active","Trigger"===n.configurableSection),e.xp6(3),e.ekj("active","PipelineFunc"===n.configurableSection),e.xp6(3),e.ekj("active","InsecureSecrets"===n.configurableSection),e.xp6(3),e.ekj("active","StoreAndForward"===n.configurableSection),e.xp6(3),e.Q6J("ngIf","Trigger"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","PipelineFunc"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","InsecureSecrets"===n.configurableSection),e.xp6(1),e.Q6J("ngIf","StoreAndForward"===n.configurableSection))},directives:[_.O5,O,Re,be,xe],styles:[".appservice_wrap[_ngcontent-%COMP%]{width:100%;margin:0 auto;overflow:hidden}#appservice_left[_ngcontent-%COMP%]{width:70%;min-height:800px;float:left}#appservice_service_select[_ngcontent-%COMP%]{margin-top:1%;width:40%}#appservice_right[_ngcontent-%COMP%]{width:30%;min-height:800px;border-left:1px solid #d6e9c6;float:right}.app_left_body[_ngcontent-%COMP%]{min-height:800px}.appservice_drop_card[_ngcontent-%COMP%]{margin-top:3%;margin-bottom:3%;height:80px;width:100%;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;text-align:center}.appservice_transform[_ngcontent-%COMP%]{font-weight:bold;font-size:.5rem}.appservice_description[_ngcontent-%COMP%]{position:relative;top:25%;left:20%;font-size:smaller;float:left;text-align:center}.appservice_paramButton[_ngcontent-%COMP%]{width:30%;outline-style:none;border:1px solid #ccc;border-radius:3px;margin-top:25px;margin-right:100px;float:right}.appservice_button_group[_ngcontent-%COMP%]{float:right;margin-top:-25px}.appservice_triggers_group[_ngcontent-%COMP%]{padding:10px}.appservice_select_lable[_ngcontent-%COMP%]{text-align:right;padding-top:1%}#appservice_model[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{position:fixed;top:20%;right:0;left:0;bottom:20%;margin:auto}#appservice_model[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:79%;overflow-y:auto;position:absolute;top:55px;bottom:65px;width:100%}#appservice_model[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-right:15px}#appservice_model[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0}.modal-backdrop[_ngcontent-%COMP%]{z-index:-1!important;opacity:0!important;filter:alpha(opacity=0)!important}"]}),o})();var we=g(8253),Be=g(1964),Le=g(4294),Ge=g(5894),$e=g(7216);let C=(()=>{class o{constructor(t,n){this.router=t,this.registrySvc=n}canActivate(t,n){return this.checkAvailable(t,n)}canActivateChild(t,n){return this.canActivate(t,n)}checkAvailable(t,n){return this.registrySvc.ping().pipe((0,Le.q)(1),(0,Ge.K)(r=>this.router.navigate(["/svc-unavailable"],{queryParams:{svcName:"registry center",routerPath:`/${n.url.split("/")[1]}`}})),(0,$e.z)(()=>(0,Be.of)(!0)))}}return o.\u0275fac=function(t){return new(t||o)(e.LFG(p.F0),e.LFG(m.r))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const De=[{path:"",component:M,canActivate:[we.a,C],canActivateChild:[C],children:[{path:"",redirectTo:"app-service-list",pathMatch:"full"},{path:"app-service-list",component:R},{path:"app-service-configurable",component:Je}]}];let Ve=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.Bz.forChild(De)],p.Bz]}),o})();var Qe=g(4010);let He=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[_.ez,a.u5,Ve,Qe.MetadataModule]]}),o})()}}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/index.html b/cmd/edgex-ui-server/static/web/zh/index.html index 5b6b36a9..c660d073 100644 --- a/cmd/edgex-ui-server/static/web/zh/index.html +++ b/cmd/edgex-ui-server/static/web/zh/index.html @@ -26,6 +26,6 @@ - + \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/main.1ee8a1b412e3fea92fe7.js b/cmd/edgex-ui-server/static/web/zh/main.22edd47639db2b2f5170.js similarity index 62% rename from cmd/edgex-ui-server/static/web/zh/main.1ee8a1b412e3fea92fe7.js rename to cmd/edgex-ui-server/static/web/zh/main.22edd47639db2b2f5170.js index 4a648a4e..a6aee1c8 100644 --- a/cmd/edgex-ui-server/static/web/zh/main.1ee8a1b412e3fea92fe7.js +++ b/cmd/edgex-ui-server/static/web/zh/main.22edd47639db2b2f5170.js @@ -1,3 +1,3 @@ var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"zh"}); "use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(n){return 5}global.ng.common.locales["zh"]=["zh",[["\u4E0A\u5348","\u4E0B\u5348"],u,u],u,[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"]],u,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]],u,[["\u516C\u5143\u524D","\u516C\u5143"],u,u],0,[6,0],["y/M/d","y\u5E74M\u6708d\u65E5",u,"y\u5E74M\u6708d\u65E5EEEE"],["ah:mm","ah:mm:ss","z ah:mm:ss","zzzz ah:mm:ss"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"CNY","\xA5","\u4EBA\u6C11\u5E01",{"AUD":["AU$","$"],"CNY":["\xA5"],"ILR":["ILS"],"JPY":["JP\xA5","\xA5"],"KRW":["\uFFE6","\u20A9"],"TWD":["NT$"],"USD":["US$","$"],"XXX":[]},"ltr",plural,[[["\u5348\u591C","\u65E9\u4E0A","\u4E0A\u5348","\u4E2D\u5348","\u4E0B\u5348","\u665A\u4E0A","\u51CC\u6668"],u,["\u5348\u591C","\u6E05\u6668","\u4E0A\u5348","\u4E2D\u5348","\u4E0B\u5348","\u665A\u4E0A","\u51CC\u6668"]],[["\u5348\u591C","\u65E9\u4E0A","\u4E0A\u5348","\u4E2D\u5348","\u4E0B\u5348","\u665A\u4E0A","\u51CC\u6668"],u,u],["00:00",["05:00","08:00"],["08:00","12:00"],["12:00","13:00"],["13:00","19:00"],["19:00","24:00"],["00:00","05:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);; -(self.webpackChunkweb=self.webpackChunkweb||[]).push([[179],{8255:Ye=>{function me(O){return Promise.resolve().then(()=>{var y=new Error("Cannot find module '"+O+"'");throw y.code="MODULE_NOT_FOUND",y})}me.keys=()=>[],me.resolve=me,me.id=8255,Ye.exports=me},8583:(Ye,me,O)=>{"use strict";O.d(me,{mr:()=>Ge,ez:()=>ne,K0:()=>K,uU:()=>Ir,Do:()=>Fe,V_:()=>U,Ye:()=>he,S$:()=>He,mk:()=>kn,sg:()=>Vn,O5:()=>Zn,RF:()=>Un,n9:()=>Bn,ED:()=>Gt,b0:()=>We,lw:()=>P,EM:()=>Li,JF:()=>vi,w_:()=>Q,bD:()=>Oe,q:()=>ce,Mx:()=>Bt,HT:()=>te});var y=O(476);let u=null;function ce(){return u}function te(_){u||(u=_)}class Q{}const K=new y.OlP("DocumentToken");let P=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=(0,y.Yz7)({factory:x,token:_,providedIn:"platform"}),_})();function x(){return(0,y.LFG)(Y)}const U=new y.OlP("Location Initialized");let Y=(()=>{class _ extends P{constructor(v){super(),this._doc=v,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ce().getBaseHref(this._doc)}onPopState(v){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("popstate",v,!1),()=>S.removeEventListener("popstate",v)}onHashChange(v){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("hashchange",v,!1),()=>S.removeEventListener("hashchange",v)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(v){this.location.pathname=v}pushState(v,S,B){ae()?this._history.pushState(v,S,B):this.location.hash=B}replaceState(v,S,B){ae()?this._history.replaceState(v,S,B):this.location.hash=B}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(K))},_.\u0275prov=(0,y.Yz7)({factory:Ee,token:_,providedIn:"platform"}),_})();function ae(){return!!window.history.pushState}function Ee(){return new Y((0,y.LFG)(K))}function De(_,w){if(0==_.length)return w;if(0==w.length)return _;let v=0;return _.endsWith("/")&&v++,w.startsWith("/")&&v++,2==v?_+w.substring(1):1==v?_+w:_+"/"+w}function Pe(_){const w=_.match(/#|\?|$/),v=w&&w.index||_.length;return _.slice(0,v-("/"===_[v-1]?1:0))+_.slice(v)}function ve(_){return _&&"?"!==_[0]?"?"+_:_}let He=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=(0,y.Yz7)({factory:Me,token:_,providedIn:"root"}),_})();function Me(_){const w=(0,y.LFG)(K).location;return new We((0,y.LFG)(P),w&&w.origin||"")}const Ge=new y.OlP("appBaseHref");let We=(()=>{class _ extends He{constructor(v,S){if(super(),this._platformLocation=v,this._removeListenerFns=[],null==S&&(S=this._platformLocation.getBaseHrefFromDOM()),null==S)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=S}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return De(this._baseHref,v)}path(v=!1){const S=this._platformLocation.pathname+ve(this._platformLocation.search),B=this._platformLocation.hash;return B&&v?`${S}${B}`:S}pushState(v,S,B,oe){const pe=this.prepareExternalUrl(B+ve(oe));this._platformLocation.pushState(v,S,pe)}replaceState(v,S,B,oe){const pe=this.prepareExternalUrl(B+ve(oe));this._platformLocation.replaceState(v,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,v)}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(P),y.LFG(Ge,8))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})(),Fe=(()=>{class _ extends He{constructor(v,S){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=S&&(this._baseHref=S)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){let S=this._platformLocation.hash;return null==S&&(S="#"),S.length>0?S.substring(1):S}prepareExternalUrl(v){const S=De(this._baseHref,v);return S.length>0?"#"+S:S}pushState(v,S,B,oe){let pe=this.prepareExternalUrl(B+ve(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.pushState(v,S,pe)}replaceState(v,S,B,oe){let pe=this.prepareExternalUrl(B+ve(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.replaceState(v,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,v)}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(P),y.LFG(Ge,8))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})(),he=(()=>{class _{constructor(v,S){this._subject=new y.vpe,this._urlChangeListeners=[],this._platformStrategy=v;const B=this._platformStrategy.getBaseHref();this._platformLocation=S,this._baseHref=Pe($e(B)),this._platformStrategy.onPopState(oe=>{this._subject.emit({url:this.path(!0),pop:!0,state:oe.state,type:oe.type})})}path(v=!1){return this.normalize(this._platformStrategy.path(v))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(v,S=""){return this.path()==this.normalize(v+ve(S))}normalize(v){return _.stripTrailingSlash(function(_,w){return _&&w.startsWith(_)?w.substring(_.length):w}(this._baseHref,$e(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._platformStrategy.prepareExternalUrl(v)}go(v,S="",B=null){this._platformStrategy.pushState(B,"",v,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ve(S)),B)}replaceState(v,S="",B=null){this._platformStrategy.replaceState(B,"",v,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ve(S)),B)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformStrategy).historyGo)||void 0===B||B.call(S,v)}onUrlChange(v){this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(S=>{this._notifyUrlChangeListeners(S.url,S.state)}))}_notifyUrlChangeListeners(v="",S){this._urlChangeListeners.forEach(B=>B(v,S))}subscribe(v,S,B){return this._subject.subscribe({next:v,error:S,complete:B})}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(He),y.LFG(P))},_.normalizeQueryParams=ve,_.joinWithSlash=De,_.stripTrailingSlash=Pe,_.\u0275prov=(0,y.Yz7)({factory:Ke,token:_,providedIn:"root"}),_})();function Ke(){return new he((0,y.LFG)(He),(0,y.LFG)(P))}function $e(_){return _.replace(/\/index.html$/,"")}var H=(()=>((H=H||{})[H.Zero=0]="Zero",H[H.One=1]="One",H[H.Two=2]="Two",H[H.Few=3]="Few",H[H.Many=4]="Many",H[H.Other=5]="Other",H))(),X=(()=>((X=X||{})[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X))(),ue=(()=>((ue=ue||{})[ue.Narrow=0]="Narrow",ue[ue.Abbreviated=1]="Abbreviated",ue[ue.Wide=2]="Wide",ue[ue.Short=3]="Short",ue))(),Ae=(()=>((Ae=Ae||{})[Ae.Short=0]="Short",Ae[Ae.Medium=1]="Medium",Ae[Ae.Long=2]="Long",Ae[Ae.Full=3]="Full",Ae))(),ie=(()=>((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",ie))();function jt(_,w){return gt((0,y.cg1)(_)[y.wAp.DateFormat],w)}function Kt(_,w){return gt((0,y.cg1)(_)[y.wAp.TimeFormat],w)}function It(_,w){return gt((0,y.cg1)(_)[y.wAp.DateTimeFormat],w)}function tn(_,w){const v=(0,y.cg1)(_),S=v[y.wAp.NumberSymbols][w];if(void 0===S){if(w===ie.CurrencyDecimal)return v[y.wAp.NumberSymbols][ie.Decimal];if(w===ie.CurrencyGroup)return v[y.wAp.NumberSymbols][ie.Group]}return S}const Cn=y.kL8;function Rn(_){if(!_[y.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${_[y.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function gt(_,w){for(let v=w;v>-1;v--)if(void 0!==_[v])return _[v];throw new Error("Locale data API: locale data undefined")}function tr(_){const[w,v]=_.split(":");return{hours:+w,minutes:+v}}const W=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ge={},ye=/((?:[^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]*)/;var Re=(()=>((Re=Re||{})[Re.Short=0]="Short",Re[Re.ShortGMT=1]="ShortGMT",Re[Re.Long=2]="Long",Re[Re.Extended=3]="Extended",Re))(),se=(()=>((se=se||{})[se.FullYear=0]="FullYear",se[se.Month=1]="Month",se[se.Date=2]="Date",se[se.Hours=3]="Hours",se[se.Minutes=4]="Minutes",se[se.Seconds=5]="Seconds",se[se.FractionalSeconds=6]="FractionalSeconds",se[se.Day=7]="Day",se))(),xe=(()=>((xe=xe||{})[xe.DayPeriods=0]="DayPeriods",xe[xe.Days=1]="Days",xe[xe.Months=2]="Months",xe[xe.Eras=3]="Eras",xe))();function Ne(_,w,v,S){let B=function(_){if(Fn(_))return _;if("number"==typeof _&&!isNaN(_))return new Date(_);if("string"==typeof _){if(_=_.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(_)){const[B,oe=1,pe=1]=_.split("-").map(Be=>+Be);return St(B,oe-1,pe)}const v=parseFloat(_);if(!isNaN(_-v))return new Date(v);let S;if(S=_.match(W))return function(_){const w=new Date(0);let v=0,S=0;const B=_[8]?w.setUTCFullYear:w.setFullYear,oe=_[8]?w.setUTCHours:w.setHours;_[9]&&(v=Number(_[9]+_[10]),S=Number(_[9]+_[11])),B.call(w,Number(_[1]),Number(_[2])-1,Number(_[3]));const pe=Number(_[4]||0)-v,Be=Number(_[5]||0)-S,Dt=Number(_[6]||0),E=Math.floor(1e3*parseFloat("0."+(_[7]||0)));return oe.call(w,pe,Be,Dt,E),w}(S)}const w=new Date(_);if(!Fn(w))throw new Error(`Unable to convert "${_}" into a date`);return w}(_);w=Lt(v,w)||w;let Be,pe=[];for(;w;){if(Be=ye.exec(w),!Be){pe.push(w);break}{pe=pe.concat(Be.slice(1));const m=pe.pop();if(!m)break;w=m}}let Dt=B.getTimezoneOffset();S&&(Dt=br(S,Dt),B=function(_,w,v){const B=_.getTimezoneOffset();return function(_,w){return(_=new Date(_.getTime())).setMinutes(_.getMinutes()+w),_}(_,-1*(br(w,B)-B))}(B,S));let E="";return pe.forEach(m=>{const h=function(_){if(mt[_])return mt[_];let w;switch(_){case"G":case"GG":case"GGG":w=Le(xe.Eras,ue.Abbreviated);break;case"GGGG":w=Le(xe.Eras,ue.Wide);break;case"GGGGG":w=Le(xe.Eras,ue.Narrow);break;case"y":w=ot(se.FullYear,1,0,!1,!0);break;case"yy":w=ot(se.FullYear,2,0,!0,!0);break;case"yyy":w=ot(se.FullYear,3,0,!1,!0);break;case"yyyy":w=ot(se.FullYear,4,0,!1,!0);break;case"Y":w=xn(1);break;case"YY":w=xn(2,!0);break;case"YYY":w=xn(3);break;case"YYYY":w=xn(4);break;case"M":case"L":w=ot(se.Month,1,1);break;case"MM":case"LL":w=ot(se.Month,2,1);break;case"MMM":w=Le(xe.Months,ue.Abbreviated);break;case"MMMM":w=Le(xe.Months,ue.Wide);break;case"MMMMM":w=Le(xe.Months,ue.Narrow);break;case"LLL":w=Le(xe.Months,ue.Abbreviated,X.Standalone);break;case"LLLL":w=Le(xe.Months,ue.Wide,X.Standalone);break;case"LLLLL":w=Le(xe.Months,ue.Narrow,X.Standalone);break;case"w":w=pi(1);break;case"ww":w=pi(2);break;case"W":w=pi(1,!0);break;case"d":w=ot(se.Date,1);break;case"dd":w=ot(se.Date,2);break;case"c":case"cc":w=ot(se.Day,1);break;case"ccc":w=Le(xe.Days,ue.Abbreviated,X.Standalone);break;case"cccc":w=Le(xe.Days,ue.Wide,X.Standalone);break;case"ccccc":w=Le(xe.Days,ue.Narrow,X.Standalone);break;case"cccccc":w=Le(xe.Days,ue.Short,X.Standalone);break;case"E":case"EE":case"EEE":w=Le(xe.Days,ue.Abbreviated);break;case"EEEE":w=Le(xe.Days,ue.Wide);break;case"EEEEE":w=Le(xe.Days,ue.Narrow);break;case"EEEEEE":w=Le(xe.Days,ue.Short);break;case"a":case"aa":case"aaa":w=Le(xe.DayPeriods,ue.Abbreviated);break;case"aaaa":w=Le(xe.DayPeriods,ue.Wide);break;case"aaaaa":w=Le(xe.DayPeriods,ue.Narrow);break;case"b":case"bb":case"bbb":w=Le(xe.DayPeriods,ue.Abbreviated,X.Standalone,!0);break;case"bbbb":w=Le(xe.DayPeriods,ue.Wide,X.Standalone,!0);break;case"bbbbb":w=Le(xe.DayPeriods,ue.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":w=Le(xe.DayPeriods,ue.Abbreviated,X.Format,!0);break;case"BBBB":w=Le(xe.DayPeriods,ue.Wide,X.Format,!0);break;case"BBBBB":w=Le(xe.DayPeriods,ue.Narrow,X.Format,!0);break;case"h":w=ot(se.Hours,1,-12);break;case"hh":w=ot(se.Hours,2,-12);break;case"H":w=ot(se.Hours,1);break;case"HH":w=ot(se.Hours,2);break;case"m":w=ot(se.Minutes,1);break;case"mm":w=ot(se.Minutes,2);break;case"s":w=ot(se.Seconds,1);break;case"ss":w=ot(se.Seconds,2);break;case"S":w=ot(se.FractionalSeconds,1);break;case"SS":w=ot(se.FractionalSeconds,2);break;case"SSS":w=ot(se.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":w=rn(Re.Short);break;case"ZZZZZ":w=rn(Re.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":w=rn(Re.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":w=rn(Re.Long);break;default:return null}return mt[_]=w,w}(m);E+=h?h(B,v,Dt):"''"===m?"'":m.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),E}function St(_,w,v){const S=new Date(0);return S.setFullYear(_,w,v),S.setHours(0,0,0),S}function Lt(_,w){const v=function(_){return(0,y.cg1)(_)[y.wAp.LocaleId]}(_);if(ge[v]=ge[v]||{},ge[v][w])return ge[v][w];let S="";switch(w){case"shortDate":S=jt(_,Ae.Short);break;case"mediumDate":S=jt(_,Ae.Medium);break;case"longDate":S=jt(_,Ae.Long);break;case"fullDate":S=jt(_,Ae.Full);break;case"shortTime":S=Kt(_,Ae.Short);break;case"mediumTime":S=Kt(_,Ae.Medium);break;case"longTime":S=Kt(_,Ae.Long);break;case"fullTime":S=Kt(_,Ae.Full);break;case"short":const B=Lt(_,"shortTime"),oe=Lt(_,"shortDate");S=zn(It(_,Ae.Short),[B,oe]);break;case"medium":const pe=Lt(_,"mediumTime"),Be=Lt(_,"mediumDate");S=zn(It(_,Ae.Medium),[pe,Be]);break;case"long":const Dt=Lt(_,"longTime"),E=Lt(_,"longDate");S=zn(It(_,Ae.Long),[Dt,E]);break;case"full":const m=Lt(_,"fullTime"),h=Lt(_,"fullDate");S=zn(It(_,Ae.Full),[m,h])}return S&&(ge[v][w]=S),S}function zn(_,w){return w&&(_=_.replace(/\{([^}]+)}/g,function(v,S){return null!=w&&S in w?w[S]:v})),_}function wt(_,w,v="-",S,B){let oe="";(_<0||B&&_<=0)&&(B?_=1-_:(_=-_,oe=v));let pe=String(_);for(;pe.length0||Be>-v)&&(Be+=v),_===se.Hours)0===Be&&-12===v&&(Be=12);else if(_===se.FractionalSeconds)return function(_,w){return wt(_,3).substr(0,w)}(Be,w);const Dt=tn(pe,ie.MinusSign);return wt(Be,w,Dt,S,B)}}function Le(_,w,v=X.Format,S=!1){return function(B,oe){return function(_,w,v,S,B,oe){switch(v){case xe.Months:return function(_,w,v){const S=(0,y.cg1)(_),oe=gt([S[y.wAp.MonthsFormat],S[y.wAp.MonthsStandalone]],w);return gt(oe,v)}(w,B,S)[_.getMonth()];case xe.Days:return function(_,w,v){const S=(0,y.cg1)(_),oe=gt([S[y.wAp.DaysFormat],S[y.wAp.DaysStandalone]],w);return gt(oe,v)}(w,B,S)[_.getDay()];case xe.DayPeriods:const pe=_.getHours(),Be=_.getMinutes();if(oe){const E=function(_){const w=(0,y.cg1)(_);return Rn(w),(w[y.wAp.ExtraData][2]||[]).map(S=>"string"==typeof S?tr(S):[tr(S[0]),tr(S[1])])}(w),m=function(_,w,v){const S=(0,y.cg1)(_);Rn(S);const oe=gt([S[y.wAp.ExtraData][0],S[y.wAp.ExtraData][1]],w)||[];return gt(oe,v)||[]}(w,B,S),h=E.findIndex(M=>{if(Array.isArray(M)){const[Z,we]=M,At=pe>=Z.hours&&Be>=Z.minutes,an=pe0?Math.floor(B/60):Math.ceil(B/60);switch(_){case Re.Short:return(B>=0?"+":"")+wt(pe,2,oe)+wt(Math.abs(B%60),2,oe);case Re.ShortGMT:return"GMT"+(B>=0?"+":"")+wt(pe,1,oe);case Re.Long:return"GMT"+(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);case Re.Extended:return 0===S?"Z":(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);default:throw new Error(`Unknown zone width "${_}"`)}}}function Mn(_){return St(_.getFullYear(),_.getMonth(),_.getDate()+(4-_.getDay()))}function pi(_,w=!1){return function(v,S){let B;if(w){const oe=new Date(v.getFullYear(),v.getMonth(),1).getDay()-1,pe=v.getDate();B=1+Math.floor((pe+oe)/7)}else{const oe=Mn(v),pe=function(_){const w=St(_,0,1).getDay();return St(_,0,1+(w<=4?4:11)-w)}(oe.getFullYear()),Be=oe.getTime()-pe.getTime();B=1+Math.round(Be/6048e5)}return wt(B,_,tn(S,ie.MinusSign))}}function xn(_,w=!1){return function(v,S){return wt(Mn(v).getFullYear(),_,tn(S,ie.MinusSign),w)}}const mt={};function br(_,w){_=_.replace(/:/g,"");const v=Date.parse("Jan 01, 1970 00:00:00 "+_)/6e4;return isNaN(v)?w:v}function Fn(_){return _ instanceof Date&&!isNaN(_.valueOf())}class tt{}let ut=(()=>{class _ extends tt{constructor(v){super(),this.locale=v}getPluralCategory(v,S){switch(Cn(S||this.locale)(v)){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(y.soG))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})();function Bt(_,w){w=encodeURIComponent(w);for(const v of _.split(";")){const S=v.indexOf("="),[B,oe]=-1==S?[v,""]:[v.slice(0,S),v.slice(S+1)];if(B.trim()===w)return decodeURIComponent(oe)}return null}let kn=(()=>{class _{constructor(v,S,B,oe){this._iterableDiffers=v,this._keyValueDiffers=S,this._ngEl=B,this._renderer=oe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(v){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof v?v.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(v){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof v?v.split(/\s+/):v,this._rawClass&&((0,y.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const v=this._iterableDiffer.diff(this._rawClass);v&&this._applyIterableChanges(v)}else if(this._keyValueDiffer){const v=this._keyValueDiffer.diff(this._rawClass);v&&this._applyKeyValueChanges(v)}}_applyKeyValueChanges(v){v.forEachAddedItem(S=>this._toggleClass(S.key,S.currentValue)),v.forEachChangedItem(S=>this._toggleClass(S.key,S.currentValue)),v.forEachRemovedItem(S=>{S.previousValue&&this._toggleClass(S.key,!1)})}_applyIterableChanges(v){v.forEachAddedItem(S=>{if("string"!=typeof S.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,y.AaK)(S.item)}`);this._toggleClass(S.item,!0)}),v.forEachRemovedItem(S=>this._toggleClass(S.item,!1))}_applyClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(S=>this._toggleClass(S,!0)):Object.keys(v).forEach(S=>this._toggleClass(S,!!v[S])))}_removeClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(S=>this._toggleClass(S,!1)):Object.keys(v).forEach(S=>this._toggleClass(S,!1)))}_toggleClass(v,S){(v=v.trim())&&v.split(/\s+/g).forEach(B=>{S?this._renderer.addClass(this._ngEl.nativeElement,B):this._renderer.removeClass(this._ngEl.nativeElement,B)})}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.ZZ4),y.Y36(y.aQg),y.Y36(y.SBq),y.Y36(y.Qsj))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),_})();class wr{constructor(w,v,S,B){this.$implicit=w,this.ngForOf=v,this.index=S,this.count=B}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Vn=(()=>{class _{constructor(v,S,B){this._viewContainer=v,this._template=S,this._differs=B,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;if(!this._differ&&v)try{this._differ=this._differs.find(v).create(this.ngForTrackBy)}catch(S){throw new Error(`Cannot find a differ supporting object '${v}' of type '${function(_){return _.name||typeof _}(v)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const S=[];v.forEachOperation((B,oe,pe)=>{if(null==B.previousIndex){const Be=this._viewContainer.createEmbeddedView(this._template,new wr(null,this._ngForOf,-1,-1),null===pe?void 0:pe),Dt=new Ze(B,Be);S.push(Dt)}else if(null==pe)this._viewContainer.remove(null===oe?void 0:oe);else if(null!==oe){const Be=this._viewContainer.get(oe);this._viewContainer.move(Be,pe);const Dt=new Ze(B,Be);S.push(Dt)}});for(let B=0;B{this._viewContainer.get(B.currentIndex).context.$implicit=B.item})}_perViewChange(v,S){v.context.$implicit=S.item}static ngTemplateContextGuard(v,S){return!0}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(y.ZZ4))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),_})();class Ze{constructor(w,v){this.record=w,this.view=v}}let Zn=(()=>{class _{constructor(v,S){this._viewContainer=v,this._context=new _n,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=S}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){hn("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){hn("ngIfElse",v),this._elseTemplateRef=v,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(v,S){return!0}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),_})();class _n{constructor(){this.$implicit=null,this.ngIf=null}}function hn(_,w){if(w&&!w.createEmbeddedView)throw new Error(`${_} must be a TemplateRef, but received '${(0,y.AaK)(w)}'.`)}class Ht{constructor(w,v){this._viewContainerRef=w,this._templateRef=v,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(w){w&&!this._created?this.create():!w&&this._created&&this.destroy()}}let Un=(()=>{class _{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(v){this._ngSwitch=v,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(v){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(v)}_matchCase(v){const S=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||S,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),S}_updateDefaultCases(v){if(this._defaultViews&&v!==this._defaultUsed){this._defaultUsed=v;for(let S=0;S{class _{constructor(v,S,B){this.ngSwitch=B,B._addCase(),this._view=new Ht(v,S)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),_})(),Gt=(()=>{class _{constructor(v,S,B){B._addDefault(new Ht(v,S))}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngSwitchDefault",""]]}),_})();let Ir=(()=>{class _{constructor(v){this.locale=v}transform(v,S="mediumDate",B,oe){if(null==v||""===v||v!=v)return null;try{return Ne(v,S,oe||this.locale,B)}catch(pe){throw function(_,w){return Error(`InvalidPipeArgument: '${w}' for pipe '${(0,y.AaK)(_)}'`)}(_,pe.message)}}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.soG,16))},_.\u0275pipe=y.Yjl({name:"date",type:_,pure:!0}),_})(),ne=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=y.oAB({type:_}),_.\u0275inj=y.cJS({providers:[{provide:tt,useClass:ut}]}),_})();const Oe="browser";let Li=(()=>{class _{}return _.\u0275prov=(0,y.Yz7)({token:_,providedIn:"root",factory:()=>new ki((0,y.LFG)(K),window)}),_})();class ki{constructor(w,v){this.document=w,this.window=v,this.offset=()=>[0,0]}setOffset(w){this.offset=Array.isArray(w)?()=>w:w}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(w){this.supportsScrolling()&&this.window.scrollTo(w[0],w[1])}scrollToAnchor(w){if(!this.supportsScrolling())return;const v=function(_,w){const v=_.getElementById(w)||_.getElementsByName(w)[0];if(v)return v;if("function"==typeof _.createTreeWalker&&_.body&&(_.body.createShadowRoot||_.body.attachShadow)){const S=_.createTreeWalker(_.body,NodeFilter.SHOW_ELEMENT);let B=S.currentNode;for(;B;){const oe=B.shadowRoot;if(oe){const pe=oe.getElementById(w)||oe.querySelector(`[name="${w}"]`);if(pe)return pe}B=S.nextNode()}}return null}(this.document,w);v&&(this.scrollToElement(v),this.attemptFocus(v))}setHistoryScrollRestoration(w){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=w)}}scrollToElement(w){const v=w.getBoundingClientRect(),S=v.left+this.window.pageXOffset,B=v.top+this.window.pageYOffset,oe=this.offset();this.window.scrollTo(S-oe[0],B-oe[1])}attemptFocus(w){return w.focus(),this.document.activeElement===w}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const w=Nr(this.window.history)||Nr(Object.getPrototypeOf(this.window.history));return!(!w||!w.writable&&!w.set)}catch(w){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(w){return!1}}}function Nr(_){return Object.getOwnPropertyDescriptor(_,"scrollRestoration")}class vi{}},1841:(Ye,me,O)=>{"use strict";O.d(me,{TP:()=>ee,eN:()=>ie,JF:()=>gt,WM:()=>U});var y=O(8583),u=O(476),ce=O(1964),re=O(1776),te=O(3766),Q=O(4689),K=O(5207);class P{}class x{}class U{constructor(G){this.normalizedNames=new Map,this.lazyUpdate=null,G?this.lazyInit="string"==typeof G?()=>{this.headers=new Map,G.split("\n").forEach(W=>{const ge=W.indexOf(":");if(ge>0){const ye=W.slice(0,ge),Re=ye.toLowerCase(),se=W.slice(ge+1).trim();this.maybeSetNormalizedName(ye,Re),this.headers.has(Re)?this.headers.get(Re).push(se):this.headers.set(Re,[se])}})}:()=>{this.headers=new Map,Object.keys(G).forEach(W=>{let ge=G[W];const ye=W.toLowerCase();"string"==typeof ge&&(ge=[ge]),ge.length>0&&(this.headers.set(ye,ge),this.maybeSetNormalizedName(W,ye))})}:this.headers=new Map}has(G){return this.init(),this.headers.has(G.toLowerCase())}get(G){this.init();const W=this.headers.get(G.toLowerCase());return W&&W.length>0?W[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(G){return this.init(),this.headers.get(G.toLowerCase())||null}append(G,W){return this.clone({name:G,value:W,op:"a"})}set(G,W){return this.clone({name:G,value:W,op:"s"})}delete(G,W){return this.clone({name:G,value:W,op:"d"})}maybeSetNormalizedName(G,W){this.normalizedNames.has(W)||this.normalizedNames.set(W,G)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(G=>this.applyUpdate(G)),this.lazyUpdate=null))}copyFrom(G){G.init(),Array.from(G.headers.keys()).forEach(W=>{this.headers.set(W,G.headers.get(W)),this.normalizedNames.set(W,G.normalizedNames.get(W))})}clone(G){const W=new U;return W.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,W.lazyUpdate=(this.lazyUpdate||[]).concat([G]),W}applyUpdate(G){const W=G.name.toLowerCase();switch(G.op){case"a":case"s":let ge=G.value;if("string"==typeof ge&&(ge=[ge]),0===ge.length)return;this.maybeSetNormalizedName(G.name,W);const ye=("a"===G.op?this.headers.get(W):void 0)||[];ye.push(...ge),this.headers.set(W,ye);break;case"d":const Re=G.value;if(Re){let se=this.headers.get(W);if(!se)return;se=se.filter(xe=>-1===Re.indexOf(xe)),0===se.length?(this.headers.delete(W),this.normalizedNames.delete(W)):this.headers.set(W,se)}else this.headers.delete(W),this.normalizedNames.delete(W)}}forEach(G){this.init(),Array.from(this.normalizedNames.keys()).forEach(W=>G(this.normalizedNames.get(W),this.headers.get(W)))}}class Y{encodeKey(G){return Pe(G)}encodeValue(G){return Pe(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}const Ee=/%(\d[a-f0-9])/gi,De={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Pe(fe){return encodeURIComponent(fe).replace(Ee,(G,W)=>{var ge;return null!==(ge=De[W])&&void 0!==ge?ge:G})}function ve(fe){return`${fe}`}class He{constructor(G={}){if(this.updates=null,this.cloneFrom=null,this.encoder=G.encoder||new Y,G.fromString){if(G.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(fe,G){const W=new Map;return fe.length>0&&fe.replace(/^\?/,"").split("&").forEach(ye=>{const Re=ye.indexOf("="),[se,xe]=-1==Re?[G.decodeKey(ye),""]:[G.decodeKey(ye.slice(0,Re)),G.decodeValue(ye.slice(Re+1))],Ne=W.get(se)||[];Ne.push(xe),W.set(se,Ne)}),W}(G.fromString,this.encoder)}else G.fromObject?(this.map=new Map,Object.keys(G.fromObject).forEach(W=>{const ge=G.fromObject[W];this.map.set(W,Array.isArray(ge)?ge:[ge])})):this.map=null}has(G){return this.init(),this.map.has(G)}get(G){this.init();const W=this.map.get(G);return W?W[0]:null}getAll(G){return this.init(),this.map.get(G)||null}keys(){return this.init(),Array.from(this.map.keys())}append(G,W){return this.clone({param:G,value:W,op:"a"})}appendAll(G){const W=[];return Object.keys(G).forEach(ge=>{const ye=G[ge];Array.isArray(ye)?ye.forEach(Re=>{W.push({param:ge,value:Re,op:"a"})}):W.push({param:ge,value:ye,op:"a"})}),this.clone(W)}set(G,W){return this.clone({param:G,value:W,op:"s"})}delete(G,W){return this.clone({param:G,value:W,op:"d"})}toString(){return this.init(),this.keys().map(G=>{const W=this.encoder.encodeKey(G);return this.map.get(G).map(ge=>W+"="+this.encoder.encodeValue(ge)).join("&")}).filter(G=>""!==G).join("&")}clone(G){const W=new He({encoder:this.encoder});return W.cloneFrom=this.cloneFrom||this,W.updates=(this.updates||[]).concat(G),W}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(G=>this.map.set(G,this.cloneFrom.map.get(G))),this.updates.forEach(G=>{switch(G.op){case"a":case"s":const W=("a"===G.op?this.map.get(G.param):void 0)||[];W.push(ve(G.value)),this.map.set(G.param,W);break;case"d":if(void 0===G.value){this.map.delete(G.param);break}{let ge=this.map.get(G.param)||[];const ye=ge.indexOf(ve(G.value));-1!==ye&&ge.splice(ye,1),ge.length>0?this.map.set(G.param,ge):this.map.delete(G.param)}}}),this.cloneFrom=this.updates=null)}}class Ge{constructor(){this.map=new Map}set(G,W){return this.map.set(G,W),this}get(G){return this.map.has(G)||this.map.set(G,G.defaultValue()),this.map.get(G)}delete(G){return this.map.delete(G),this}keys(){return this.map.keys()}}function Fe(fe){return"undefined"!=typeof ArrayBuffer&&fe instanceof ArrayBuffer}function he(fe){return"undefined"!=typeof Blob&&fe instanceof Blob}function Ke(fe){return"undefined"!=typeof FormData&&fe instanceof FormData}class $e{constructor(G,W,ge,ye){let Re;if(this.url=W,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=G.toUpperCase(),function(fe){switch(fe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ye?(this.body=void 0!==ge?ge:null,Re=ye):Re=ge,Re&&(this.reportProgress=!!Re.reportProgress,this.withCredentials=!!Re.withCredentials,Re.responseType&&(this.responseType=Re.responseType),Re.headers&&(this.headers=Re.headers),Re.context&&(this.context=Re.context),Re.params&&(this.params=Re.params)),this.headers||(this.headers=new U),this.context||(this.context=new Ge),this.params){const se=this.params.toString();if(0===se.length)this.urlWithParams=W;else{const xe=W.indexOf("?");this.urlWithParams=W+(-1===xe?"?":xewt.set(Qe,G.setHeaders[Qe]),St)),G.setParams&&(Lt=Object.keys(G.setParams).reduce((wt,Qe)=>wt.set(Qe,G.setParams[Qe]),Lt)),new $e(ge,ye,se,{params:Lt,headers:St,context:zn,reportProgress:Ne,responseType:Re,withCredentials:xe})}}var lt=(()=>((lt=lt||{})[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt))();class le{constructor(G,W=200,ge="OK"){this.headers=G.headers||new U,this.status=void 0!==G.status?G.status:W,this.statusText=G.statusText||ge,this.url=G.url||null,this.ok=this.status>=200&&this.status<300}}class H extends le{constructor(G={}){super(G),this.type=lt.ResponseHeader}clone(G={}){return new H({headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class X extends le{constructor(G={}){super(G),this.type=lt.Response,this.body=void 0!==G.body?G.body:null}clone(G={}){return new X({body:void 0!==G.body?G.body:this.body,headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class ue extends le{constructor(G){super(G,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${G.url||"(unknown url)"}`:`Http failure response for ${G.url||"(unknown url)"}: ${G.status} ${G.statusText}`,this.error=G.error||null}}function Ae(fe,G){return{body:G,headers:fe.headers,context:fe.context,observe:fe.observe,params:fe.params,reportProgress:fe.reportProgress,responseType:fe.responseType,withCredentials:fe.withCredentials}}let ie=(()=>{class fe{constructor(W){this.handler=W}request(W,ge,ye={}){let Re;if(W instanceof $e)Re=W;else{let Ne,St;Ne=ye.headers instanceof U?ye.headers:new U(ye.headers),ye.params&&(St=ye.params instanceof He?ye.params:new He({fromObject:ye.params})),Re=new $e(W,ge,void 0!==ye.body?ye.body:null,{headers:Ne,context:ye.context,params:St,reportProgress:ye.reportProgress,responseType:ye.responseType||"json",withCredentials:ye.withCredentials})}const se=(0,ce.of)(Re).pipe((0,te.b)(Ne=>this.handler.handle(Ne)));if(W instanceof $e||"events"===ye.observe)return se;const xe=se.pipe((0,Q.h)(Ne=>Ne instanceof X));switch(ye.observe||"body"){case"body":switch(Re.responseType){case"arraybuffer":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&!(Ne.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ne.body}));case"blob":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&!(Ne.body instanceof Blob))throw new Error("Response is not a Blob.");return Ne.body}));case"text":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&"string"!=typeof Ne.body)throw new Error("Response is not a string.");return Ne.body}));case"json":default:return xe.pipe((0,K.U)(Ne=>Ne.body))}case"response":return xe;default:throw new Error(`Unreachable: unhandled observe type ${ye.observe}}`)}}delete(W,ge={}){return this.request("DELETE",W,ge)}get(W,ge={}){return this.request("GET",W,ge)}head(W,ge={}){return this.request("HEAD",W,ge)}jsonp(W,ge){return this.request("JSONP",W,{params:(new He).append(ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(W,ge={}){return this.request("OPTIONS",W,ge)}patch(W,ge,ye={}){return this.request("PATCH",W,Ae(ye,ge))}post(W,ge,ye={}){return this.request("POST",W,Ae(ye,ge))}put(W,ge,ye={}){return this.request("PUT",W,Ae(ye,ge))}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(P))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();class ze{constructor(G,W){this.next=G,this.interceptor=W}handle(G){return this.interceptor.intercept(G,this.next)}}const ee=new u.OlP("HTTP_INTERCEPTORS");let Ie=(()=>{class fe{intercept(W,ge){return ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const It=/^\)\]\}',?\n/;let yt=(()=>{class fe{constructor(W){this.xhrFactory=W}handle(W){if("JSONP"===W.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new re.y(ge=>{const ye=this.xhrFactory.build();if(ye.open(W.method,W.urlWithParams),W.withCredentials&&(ye.withCredentials=!0),W.headers.forEach((Qe,ot)=>ye.setRequestHeader(Qe,ot.join(","))),W.headers.has("Accept")||ye.setRequestHeader("Accept","application/json, text/plain, */*"),!W.headers.has("Content-Type")){const Qe=W.detectContentTypeHeader();null!==Qe&&ye.setRequestHeader("Content-Type",Qe)}if(W.responseType){const Qe=W.responseType.toLowerCase();ye.responseType="json"!==Qe?Qe:"text"}const Re=W.serializeBody();let se=null;const xe=()=>{if(null!==se)return se;const Qe=1223===ye.status?204:ye.status,ot=ye.statusText||"OK",Sn=new U(ye.getAllResponseHeaders()),Le=function(fe){return"responseURL"in fe&&fe.responseURL?fe.responseURL:/^X-Request-URL:/m.test(fe.getAllResponseHeaders())?fe.getResponseHeader("X-Request-URL"):null}(ye)||W.url;return se=new H({headers:Sn,status:Qe,statusText:ot,url:Le}),se},Ne=()=>{let{headers:Qe,status:ot,statusText:Sn,url:Le}=xe(),Ut=null;204!==ot&&(Ut=void 0===ye.response?ye.responseText:ye.response),0===ot&&(ot=Ut?200:0);let rn=ot>=200&&ot<300;if("json"===W.responseType&&"string"==typeof Ut){const Dr=Ut;Ut=Ut.replace(It,"");try{Ut=""!==Ut?JSON.parse(Ut):null}catch(nr){Ut=Dr,rn&&(rn=!1,Ut={error:nr,text:Ut})}}rn?(ge.next(new X({body:Ut,headers:Qe,status:ot,statusText:Sn,url:Le||void 0})),ge.complete()):ge.error(new ue({error:Ut,headers:Qe,status:ot,statusText:Sn,url:Le||void 0}))},St=Qe=>{const{url:ot}=xe(),Sn=new ue({error:Qe,status:ye.status||0,statusText:ye.statusText||"Unknown Error",url:ot||void 0});ge.error(Sn)};let Lt=!1;const zn=Qe=>{Lt||(ge.next(xe()),Lt=!0);let ot={type:lt.DownloadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(ot.total=Qe.total),"text"===W.responseType&&!!ye.responseText&&(ot.partialText=ye.responseText),ge.next(ot)},wt=Qe=>{let ot={type:lt.UploadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(ot.total=Qe.total),ge.next(ot)};return ye.addEventListener("load",Ne),ye.addEventListener("error",St),ye.addEventListener("timeout",St),ye.addEventListener("abort",St),W.reportProgress&&(ye.addEventListener("progress",zn),null!==Re&&ye.upload&&ye.upload.addEventListener("progress",wt)),ye.send(Re),ge.next({type:lt.Sent}),()=>{ye.removeEventListener("error",St),ye.removeEventListener("abort",St),ye.removeEventListener("load",Ne),ye.removeEventListener("timeout",St),W.reportProgress&&(ye.removeEventListener("progress",zn),null!==Re&&ye.upload&&ye.upload.removeEventListener("progress",wt)),ye.readyState!==ye.DONE&&ye.abort()}})}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.JF))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const gn=new u.OlP("XSRF_COOKIE_NAME"),Tt=new u.OlP("XSRF_HEADER_NAME");class it{}let mn=(()=>{class fe{constructor(W,ge,ye){this.doc=W,this.platform=ge,this.cookieName=ye,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const W=this.doc.cookie||"";return W!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,y.Mx)(W,this.cookieName),this.lastCookieString=W),this.lastToken}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.K0),u.LFG(u.Lbi),u.LFG(gn))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Cn=(()=>{class fe{constructor(W,ge){this.tokenService=W,this.headerName=ge}intercept(W,ge){const ye=W.url.toLowerCase();if("GET"===W.method||"HEAD"===W.method||ye.startsWith("http://")||ye.startsWith("https://"))return ge.handle(W);const Re=this.tokenService.getToken();return null!==Re&&!W.headers.has(this.headerName)&&(W=W.clone({headers:W.headers.set(this.headerName,Re)})),ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(it),u.LFG(Tt))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Rn=(()=>{class fe{constructor(W,ge){this.backend=W,this.injector=ge,this.chain=null}handle(W){if(null===this.chain){const ge=this.injector.get(ee,[]);this.chain=ge.reduceRight((ye,Re)=>new ze(ye,Re),this.backend)}return this.chain.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(x),u.LFG(u.zs3))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Ft=(()=>{class fe{static disable(){return{ngModule:fe,providers:[{provide:Cn,useClass:Ie}]}}static withOptions(W={}){return{ngModule:fe,providers:[W.cookieName?{provide:gn,useValue:W.cookieName}:[],W.headerName?{provide:Tt,useValue:W.headerName}:[]]}}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[Cn,{provide:ee,useExisting:Cn,multi:!0},{provide:it,useClass:mn},{provide:gn,useValue:"XSRF-TOKEN"},{provide:Tt,useValue:"X-XSRF-TOKEN"}]}),fe})(),gt=(()=>{class fe{}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[ie,{provide:P,useClass:Rn},yt,{provide:x,useExisting:yt}],imports:[[Ft.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),fe})()},476:(Ye,me,O)=>{"use strict";O.d(me,{deG:()=>__,tb:()=>My,AFp:()=>wy,ip1:()=>Pd,CZH:()=>Os,hGG:()=>cS,z2F:()=>xa,sBO:()=>eb,Sil:()=>Ra,_Vd:()=>Do,EJc:()=>Ty,SBq:()=>Oi,qLn:()=>es,vpe:()=>Pi,gxx:()=>ss,tBr:()=>qo,XFs:()=>se,OlP:()=>ln,zs3:()=>Vt,ZZ4:()=>Rl,aQg:()=>xl,soG:()=>Wl,YKP:()=>pm,v3s:()=>HA,h0i:()=>bo,PXZ:()=>kA,R0b:()=>Er,FiY:()=>$i,Lbi:()=>Sy,g9A:()=>Ay,Qsj:()=>U0,FYo:()=>Nl,JOm:()=>Ai,Tiy:()=>od,q3G:()=>un,tp0:()=>to,EAV:()=>KA,Rgc:()=>Ea,dDg:()=>Ry,DyG:()=>el,GfV:()=>sm,s_b:()=>kl,ifc:()=>Le,eFA:()=>Uy,G48:()=>OA,Gpc:()=>Fe,_c5:()=>rS,VLi:()=>TA,c2e:()=>Iy,zSh:()=>ua,wAp:()=>qe,vHH:()=>$e,EiD:()=>Tf,mCW:()=>ta,qzn:()=>Xo,JVY:()=>K_,pB0:()=>J_,eBb:()=>Z_,L6k:()=>Y_,LAX:()=>q_,cg1:()=>Kc,Tjo:()=>tS,kL8:()=>Ig,yhl:()=>Ef,dqk:()=>nt,sIi:()=>fa,CqO:()=>Lc,QGY:()=>Fc,F4k:()=>Vp,RDi:()=>Be,AaK:()=>Me,z3N:()=>ji,qOj:()=>Ec,TTD:()=>Li,_Bn:()=>tm,xp6:()=>hh,uIk:()=>wc,Tol:()=>rg,ekj:()=>jc,Suo:()=>ty,Xpm:()=>et,lG2:()=>rr,Yz7:()=>xt,cJS:()=>Ft,oAB:()=>yn,Yjl:()=>Yn,Y36:()=>pa,_UZ:()=>Lp,BQk:()=>xc,ynx:()=>Rc,qZA:()=>Nc,TgZ:()=>Pc,EpF:()=>kp,n5z:()=>Ho,Ikx:()=>zc,SDv:()=>Jg,QtT:()=>Qg,N_p:()=>Qc,pQV:()=>Xc,Zx4:()=>Xg,tHW:()=>Jc,LFG:()=>vn,$8M:()=>vu,NdJ:()=>kc,CRH:()=>ny,oxw:()=>jp,ALo:()=>Zm,xi3:()=>qm,Q6J:()=>Tc,s9C:()=>Uc,MGl:()=>bl,hYB:()=>Bc,DdM:()=>jm,VKq:()=>Hm,iGM:()=>Xm,MAs:()=>wp,CHM:()=>$a,LSH:()=>Ru,kYT:()=>zr,Udp:()=>$c,YNc:()=>bp,W1O:()=>sy,_uU:()=>cg,Oqu:()=>Gc,hij:()=>Al,AsE:()=>Wc,Gf:()=>ey});var y=O(23),u=O(5994),ce=O(5929),re=O(6149),te=O(9528),K=O(6889),P=O(8839),x=O(1776),U=O(9162),Y=O(4294),ae=O(4111),Ee=O(4297);function Pe(e,t){for(var n=[],r=2;r ${n} ${r} ${t} <=Actual]`))}function xt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ft(e){return{providers:e.providers||[],imports:e.imports||[]}}function gt(e){return tr(e,W)||tr(e,ye)}function tr(e,t){return e.hasOwnProperty(t)?e[t]:null}function G(e){return e&&(e.hasOwnProperty(ge)||e.hasOwnProperty(Re))?e[ge]:null}const W=ve({\u0275prov:ve}),ge=ve({\u0275inj:ve}),ye=ve({ngInjectableDef:ve}),Re=ve({ngInjectorDef:ve});var se=(()=>((se=se||{})[se.Default=0]="Default",se[se.Host=1]="Host",se[se.Self=2]="Self",se[se.SkipSelf=4]="SkipSelf",se[se.Optional=8]="Optional",se))();let xe;function St(e){const t=xe;return xe=e,t}function Lt(e,t,n){const r=gt(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&se.Optional?null:void 0!==t?t:void ze(Me(e),"Injector")}function wt(e){return{toString:e}.toString()}var Qe=(()=>((Qe=Qe||{})[Qe.OnPush=0]="OnPush",Qe[Qe.Default=1]="Default",Qe))(),Le=(()=>((Le=Le||{})[Le.Emulated=0]="Emulated",Le[Le.None=2]="None",Le[Le.ShadowDom=3]="ShadowDom",Le))();const Ut="undefined"!=typeof globalThis&&globalThis,rn="undefined"!=typeof window&&window,Dr="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,nr="undefined"!=typeof global&&global,nt=Ut||nr||rn||Dr,xn={},mt=[],cr=ve({\u0275cmp:ve}),br=ve({\u0275dir:ve}),Gr=ve({\u0275pipe:ve}),gi=ve({\u0275mod:ve}),Wr=ve({\u0275loc:ve}),In=ve({\u0275fac:ve}),Fn=ve({__NG_ELEMENT_ID__:ve});let Kn=0;function et(e){return wt(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Qe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||mt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Le.Emulated,id:"c",styles:e.styles||mt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,s=e.pipes;return r.id+=Kn++,r.inputs=Kr(e.inputs,n),r.outputs=Kr(e.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Tn):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(En):null,r})}function Tn(e){return qt(e)||function(e){return e[br]||null}(e)}function En(e){return function(e){return e[Gr]||null}(e)}const Ln={};function yn(e){return wt(()=>{const t={type:e.type,bootstrap:e.bootstrap||mt,declarations:e.declarations||mt,imports:e.imports||mt,exports:e.exports||mt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Ln[e.id]=e.type),t})}function zr(e,t){return wt(()=>{const n=Yt(e,!0);n.declarations=t.declarations||mt,n.imports=t.imports||mt,n.exports=t.exports||mt})}function Kr(e,t){if(null==e)return xn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const rr=et;function Yn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function qt(e){return e[cr]||null}function Yt(e,t){const n=e[gi]||null;if(!n&&!0===t)throw new Error(`Type ${Me(e)} does not have '\u0275mod' property.`);return n}function sn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Dn(e){return Array.isArray(e)&&!0===e[1]}function pr(e){return 0!=(8&e.flags)}function Mr(e){return 2==(2&e.flags)}function jn(e){return 1==(1&e.flags)}function Pt(e){return null!==e.template}function Ir(e){return 0!=(512&e[2])}function Pr(e,t){return e.hasOwnProperty(In)?e[In]:null}class Yi{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Li(){return ki}function ki(e){return e.type.prototype.ngOnChanges&&(e.setInput=gr),Nr}function Nr(){const e=vi(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===xn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function gr(e,t,n,r){const i=vi(e)||function(e,t){return e[Zi]=t}(e,{previous:xn,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],d=s[a];o[a]=new Yi(d&&d.currentValue,t,s===xn),e[r]=t}Li.ngInherit=!0;const Zi="__ngSimpleChanges__";function vi(e){return e[Zi]||null}let pe;function Be(e){pe=e}function Dt(){return void 0!==pe?pe:"undefined"!=typeof document?document:void 0}function m(e){return!!e.listen}const M={createRenderer:(e,t)=>Dt()};function we(e){for(;Array.isArray(e);)e=e[0];return e}function Qt(e,t){return we(t[e])}function zt(e,t){return we(t[e.index])}function Rr(e,t){return e.data[t]}function mr(e,t){return e[t]}function bn(e,t){const n=t[e];return sn(n)?n:n[0]}function so(e){return 4==(4&e[2])}function Qr(e){return 128==(128&e[2])}function Xr(e,t){return null==t?null:e[t]}function ao(e){e[18]=0}function ks(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const st={lFrame:Hs(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ba(){return st.bindingsEnabled}function _e(){return st.lFrame.lView}function vt(){return st.lFrame.tView}function $a(e){return st.lFrame.contextLView=e,e[8]}function pn(){let e=ja();for(;null!==e&&64===e.type;)e=e.parent;return e}function ja(){return st.lFrame.currentTNode}function co(){const e=st.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function xr(e,t){const n=st.lFrame;n.currentTNode=e,n.isParent=t}function Us(){return st.lFrame.isParent}function To(){st.lFrame.isParent=!1}function Oo(){return st.isInCheckNoChangesMode}function Po(e){st.isInCheckNoChangesMode=e}function Hn(){const e=st.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yr(){return st.lFrame.bindingIndex}function Vi(){return st.lFrame.bindingIndex++}function Fr(e){const t=st.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Bs(e){st.lFrame.inI18n=e}function au(e,t){const n=st.lFrame;n.bindingIndex=n.bindingRootIndex=e,$s(t)}function $s(e){st.lFrame.currentDirectiveIndex=e}function Ga(){return st.lFrame.currentQueryIndex}function fo(e){st.lFrame.currentQueryIndex=e}function uu(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wa(e,t,n){if(n&se.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&se.Host||(i=uu(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=st.lFrame=Ro();return r.currentTNode=t,r.lView=e,!0}function No(e){const t=Ro(),n=e[1];st.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ro(){const e=st.lFrame,t=null===e?null:e.child;return null===t?Hs(e):t}function Hs(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function za(){const e=st.lFrame;return st.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ui=za;function xo(){const e=za();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Gn(){return st.lFrame.selectedIndex}function ei(e){st.lFrame.selectedIndex=e}function Xt(){const e=st.lFrame;return Rr(e.tView,e.selectedIndex)}function ti(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[d]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Ji{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Bo(e,t,n){const r=m(e);let i=0;for(;it){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Ks=!0;function jo(e){const t=Ks;return Ks=e,t}let f=0;function l(e,t){const n=C(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,p(r.data,e),p(t,null),p(r.blueprint,null));const i=b(e,t),o=e.injectorIndex;if(Qa(i)){const s=Qi(i),a=Ei(i,t),d=a[1].data;for(let g=0;g<8;g++)t[o+g]=a[s+g]|d[s+g]}return t[o+8]=i,o}function p(e,t){e.push(0,0,0,0,0,0,0,0,t)}function C(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function b(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function R(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Fn)&&(r=n[Fn]),null==r&&(r=n[Fn]=f++);const i=255&r;t.data[e+(i>>5)]|=1<=0?255&t:kt:t}(n);if("function"==typeof o){if(!Wa(t,e,r))return r&se.Host?q(i,n,r):Se(t,n,r,i);try{const s=o(r);if(null!=s||r&se.Optional)return s;ze(n)}finally{Ui()}}else if("number"==typeof o){let s=null,a=C(e,t),d=-1,g=r&se.Host?t[16][6]:null;for((-1===a||r&se.SkipSelf)&&(d=-1===a?b(e,t):t[a+8],-1!==d&&Bi(r,!1)?(s=t[1],a=Qi(d),t=Ei(d,t)):a=-1);-1!==a;){const D=t[1];if(Xi(o,a,D.data)){const I=Ct(a,t,n,s,r,g);if(I!==at)return I}d=t[a+8],-1!==d&&Bi(r,t[1].data[a+8]===g)&&Xi(o,a,t)?(s=D,a=Qi(d),t=Ei(d,t)):a=-1}}}return Se(t,n,r,i)}const at={};function kt(){return new sr(pn(),_e())}function Ct(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],D=_r(a,s,n,null==r?Mr(a)&&Ks:r!=s&&0!=(3&a.type),i&se.Host&&o===a);return null!==D?or(t,s,D,a):at}function _r(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,d=e.directiveStart,D=o>>20,T=i?a+D:e.directiveEnd;for(let k=r?a:a+D;k=d&&j.type===n)return k}if(i){const k=s[d];if(k&&Pt(k)&&k.type===n)return d}return null}function or(e,t,n,r){let i=e[n];const o=t.data;if(function(e){return e instanceof Ji}(i)){const s=i;s.resolving&&function(e,t){throw new $e("200",`Circular dependency in DI detected for ${e}`)}(X(o[n]));const a=jo(s.canSeeViewProviders);s.resolving=!0;const d=s.injectImpl?St(s.injectImpl):null;Wa(e,r,se.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=ki(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==d&&St(d),jo(a),s.resolving=!1,Ui()}}return i}function Xi(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[In]||_u(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[In]||_u(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function _u(e){return Ke(e)?()=>{const t=_u(he(e));return t&&t()}:Pr(e)}function vu(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{const r=function(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(d,g,D){const I=d.hasOwnProperty(Wo)?d[Wo]:Object.defineProperty(d,Wo,{value:[]})[Wo];for(;I.length<=D;)I.push(null);return(I[D]=I[D]||[]).push(s),d}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class ln{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=xt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const __=new ln("AnalyzeForEntryComponents"),el=Function;function kr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Di(n,t):t(n))}function nl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function mo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vr(e,t,n){let r=Ko(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Eu(e,t){const n=Ko(e,t);if(n>=0)return e[1|n]}function Ko(e,t){return function(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i< ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Me(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(I_,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Yo]=null,e}const qo=Xs(go("Inject",e=>({token:e})),-1),$i=Xs(go("Optional"),8),to=Xs(go("SkipSelf"),4);let sl;function Qo(e){var t;return(null===(t=function(){if(void 0===sl&&(sl=null,nt.trustedTypes))try{sl=nt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sl}())||void 0===t?void 0:t.createHTML(e))||e}class _o{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class j_ extends _o{getTypeName(){return"HTML"}}class H_ extends _o{getTypeName(){return"Style"}}class G_ extends _o{getTypeName(){return"Script"}}class W_ extends _o{getTypeName(){return"URL"}}class z_ extends _o{getTypeName(){return"ResourceURL"}}function ji(e){return e instanceof _o?e.changingThisBreaksApplicationSecurity:e}function Xo(e,t){const n=Ef(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Ef(e){return e instanceof _o&&e.getTypeName()||null}function K_(e){return new j_(e)}function Y_(e){return new H_(e)}function Z_(e){return new G_(e)}function q_(e){return new W_(e)}function J_(e){return new z_(e)}function Df(e){const t=new X_(e);return function(){try{return!!(new window.DOMParser).parseFromString(Qo(""),"text/html")}catch(e){return!1}}()?new Q_(t):t}class Q_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Qo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class X_{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Qo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Qo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0ta(t.trim())).join(", ")}function bi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function na(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const wf=bi("area,br,col,hr,img,wbr"),Af=bi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sf=bi("rp,rt"),Tu=na(wf,na(Af,bi("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")),na(Sf,bi("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")),na(Sf,Af)),Ou=bi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pu=bi("srcset"),Mf=na(Ou,Pu,bi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bi("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")),rv=bi("script,style,template");class iv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Tu.hasOwnProperty(n))return this.sanitizedSomething=!0,!rv.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i"),!0}endElement(t){const n=t.nodeName.toLowerCase();Tu.hasOwnProperty(n)&&!wf.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(If(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const ov=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sv=/([^\#-~ |!])/g;function If(e){return e.replace(/&/g,"&").replace(ov,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(sv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ll;function Tf(e,t){let n=null;try{ll=ll||Df(e);let r=t?String(t):"";n=ll.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ll.getInertBodyElement(r)}while(r!==o);return Qo((new iv).sanitizeChildren(Nu(n)||n))}finally{if(n){const r=Nu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Nu(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var un=(()=>((un=un||{})[un.NONE=0]="NONE",un[un.HTML=1]="HTML",un[un.STYLE=2]="STYLE",un[un.SCRIPT=3]="SCRIPT",un[un.URL=4]="URL",un[un.RESOURCE_URL=5]="RESOURCE_URL",un))();function Ru(e){const t=function(){const e=_e();return e&&e[12]}();return t?t.sanitize(un.URL,e)||"":Xo(e,"URL")?ji(e):ta(H(e))}const Nf="__ngContext__";function Jn(e,t){e[Nf]=t}function Fu(e){const t=function(e){return e[Nf]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ul(e){return e.ngOriginalError}function wv(e,...t){e.error(...t)}class es{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=this._findContext(t),i=(e=t)&&e.ngErrorLogger||wv;var e;i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n),r&&i(this._console,"ERROR CONTEXT",r)}_findContext(t){return t?t.ngDebugContext||this._findContext(ul(t)):null}_findOriginalError(t){let n=t&&ul(t);for(;n&&ul(n);)n=ul(n);return n||null}}const Mv=/^>|^->||--!>|)/;const $f=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(nt))();function wi(e){return e instanceof Function?e():e}var Ai=(()=>((Ai=Ai||{})[Ai.Important=1]="Important",Ai[Ai.DashCase=2]="DashCase",Ai))();let ku;function Vu(e,t){return ku(e,t)}function oa(e){const t=e[3];return Dn(t)?t[3]:t}function Uu(e){return zf(e[13])}function Bu(e){return zf(e[4])}function zf(e){for(;null!==e&&!Dn(e);)e=e[4];return e}function ns(e,t,n,r,i){if(null!=r){let o,s=!1;Dn(r)?o=r:sn(r)&&(s=!0,r=r[0]);const a=we(r);0===e&&null!==n?null==i?Qf(t,n,a):vo(t,n,a,i||null,!0):1===e&&null!==n?vo(t,n,a,i||null,!0):2===e?oh(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,r,i){const o=n[7];o!==we(n)&&ns(t,e,r,o,i);for(let a=10;at.replace(Iv,"\u200b$1\u200b"))}(t))}function ju(e,t,n){return m(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Yf(e,t){const n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,ks(i,-1)),n.splice(r,1)}function Hu(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&Yf(i,r),t>0&&(e[n-1][4]=r[4]);const o=mo(e,10+t);!function(e,t){sa(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Zf(e,t){if(!(256&t[2])){const n=t[11];m(n)&&n.destroyNode&&sa(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Gu(e[1],e);for(;t;){let n=null;if(sn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)sn(t)&&Gu(t[1],t),t=t[3];null===t&&(t=e),sn(t)&&Gu(t[1],t),n=t&&t[4]}t=n}}(t)}}function Gu(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[i=g]():r[i=-g].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;oo?"":i[I+1].toLowerCase();const k=8&r?T:null;if(k&&-1!==lh(k,g,0)||2&r&&g!==T){if(ri(r))return!1;s=!0}}}}else{if(!s&&!ri(r)&&!ri(d))return!1;if(s&&ri(d))continue;s=!1,r=d|1&r}}return ri(r)||s}function ri(e){return 0==(1&e)}function Xv(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!ri(s)&&(t+=fh(o,i),i=""),r=s,o=o||!ri(r);n++}return""!==i&&(t+=fh(o,i)),t}const dt={};function hh(e){ph(vt(),_e(),Gn()+e,Oo())}function ph(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&ho(t,o,n)}else{const o=e.preOrderHooks;null!==o&&Vo(t,o,0,n)}ei(n)}function pl(e,t){return e<<17|t<<2}function ii(e){return e>>17&32767}function Zu(e){return 2|e}function Hi(e){return(131068&e)>>2}function qu(e,t){return-131069&e|t<<2}function Ju(e){return 1|e}function wh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&ph(e,t,20,Oo()),n(r,i)}finally{ei(o)}}function Sh(e,t,n){if(pr(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=d&&a.push(d),a.push(r,i,s)}}function xh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function OC(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&uc(n)}}function uc(e){for(let r=Uu(e);null!==r;r=Bu(r))for(let i=10;i0&&uc(o)}const n=e[1].components;if(null!==n)for(let r=0;r0&&uc(i)}}function kC(e,t){const n=bn(t,e),r=n[1];(function(e,t){for(let n=t.length;nPromise.resolve(null))();function Bh(e){return e[7]||(e[7]=[])}function $h(e){return e.cleanup||(e.cleanup=[])}function Hh(e,t){const n=e[9],r=n?n.get(es,null):null;r&&r.handleError(t)}function Gh(e,t,n,r,i){for(let o=0;othis.processProvider(a,t,n)),Di([t],a=>this.processInjectorType(a,[],o)),this.records.set(ss,as(void 0,this));const s=this.records.get(ua);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:Me(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Js,r=se.Default){this.assertNotDestroyed();const i=Zo(this),o=St(void 0);try{if(!(r&se.SkipSelf)){let a=this.records.get(t);if(void 0===a){const d=("function"==typeof(e=t)||"object"==typeof e&&e instanceof ln)&>(t);a=d&&this.injectableDefInScope(d)?as(gc(t),ca):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&se.Self?zh():this.parent).get(t,n=r&se.Optional&&n===Js?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Yo]=s[Yo]||[]).unshift(Me(t)),i)throw s;return hf(s,t,"R3InjectorError",this.source)}throw s}finally{St(o),Zo(i)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(Me(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=he(t)))return!1;let i=G(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=G(o)),null==i)return!1;if(null!=i.imports&&!a){let D;r.push(s);try{Di(i.imports,I=>{this.processInjectorType(I,n,r)&&(void 0===D&&(D=[]),D.push(I))})}finally{}if(void 0!==D)for(let I=0;Ithis.processProvider(j,T,k||mt))}}this.injectorDefTypes.add(s);const d=Pr(s)||(()=>new s);this.records.set(s,as(d,ca));const g=i.providers;if(null!=g&&!a){const D=t;Di(g,I=>this.processProvider(I,D,g))}return void 0!==o&&void 0!==t.providers}processProvider(t,n,r){let i=ls(t=he(t))?t:he(t&&t.provide);const o=Zh(e=t)?as(void 0,e.useValue):as(Yh(e),ca);var e;if(ls(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=as(void 0,ca,!0),s.factory=()=>yo(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,n){return n.value===ca&&(n.value=WC,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=he(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function gc(e){const t=gt(e),n=null!==t?t.factory:Pr(e);if(null!==n)return n;if(e instanceof ln)throw new Error(`Token ${Me(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=function(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new Error("unreachable")}function Yh(e,t,n){let r;if(ls(e)){const i=he(e);return Pr(i)||gc(i)}if(Zh(e))r=()=>he(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...yo(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>vn(he(e.useExisting));else{const i=he(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Pr(i)||gc(i);r=()=>new i(...yo(e.deps))}return r}function as(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zh(e){return null!==e&&"object"==typeof e&&Au in e}function ls(e){return"function"==typeof e}const qh=function(e,t,n){return function(e,t=null,n=null,r){const i=Kh(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};class Vt{static create(t,n){return Array.isArray(t)?qh(t,n,""):qh(t.providers,t.parent,t.name||"")}}function pE(e,t){ti(Fu(e)[1],pn())}function Ec(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Pt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const s=e;s.inputs=Dc(e.inputs),s.declaredInputs=Dc(e.declaredInputs),s.outputs=Dc(e.outputs);const a=i.hostBindings;a&&_E(e,a);const d=i.viewQuery,g=i.contentQueries;if(d&&mE(e,d),g&&yE(e,g),He(e.inputs,i.inputs),He(e.declaredInputs,i.declaredInputs),He(e.outputs,i.outputs),Pt(i)&&i.data.animation){const D=e.data;D.animation=(D.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=$o(i.hostAttrs,n=$o(n,i.hostAttrs))}}(r)}function Dc(e){return e===xn?{}:e===mt?[]:e}function mE(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function yE(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,o)=>{t(r,i,o),n(r,i,o)}:t}function _E(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}Vt.THROW_IF_NOT_FOUND=Js,Vt.NULL=new Wh,Vt.\u0275prov=xt({token:Vt,providedIn:"any",factory:()=>vn(ss)}),Vt.__NG_ELEMENT_ID__=-1;let Cl=null;function us(){if(!Cl){const e=nt.Symbol;if(e&&e.iterator)Cl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(we(Je[r.index])):r.index;if(m(n)){let Je=null;if(!a&&d&&(Je=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;od?a[d]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==Je)(Je.__ngLastListenerFn__||Je).__ngNextListenerFn__=o,Je.__ngLastListenerFn__=o,k=!1;else{o=Vc(r,t,I,o,!1);const pt=n.listen(Ce,i,o);T.push(o,pt),D&&D.push(i,ke,de,de+1)}}else o=Vc(r,t,I,o,!0),Ce.addEventListener(i,o,s),T.push(o),D&&D.push(i,ke,de,s)}else o=Vc(r,t,I,o,!1);const j=r.outputs;let J;if(k&&null!==j&&(J=j[i])){const z=J.length;if(z)for(let Ce=0;Ce0;)t=t[15],e--;return t}(e,st.lFrame.contextLView))[8]}(e)}function Uc(e,t,n){return bl(e,"",t,"",n),Uc}function bl(e,t,n,r,i){const o=_e(),s=ds(o,t,n,r);return s!==dt&&Cr(vt(),Xt(),o,e,s,o[11],i,!1),bl}function Bc(e,t,n,r,i,o,s){const a=_e(),d=fs(a,t,n,r,i,o);return d!==dt&&Cr(vt(),Xt(),a,e,d,a[11],s,!1),Bc}function qp(e,t,n,r,i){const o=e[n+1],s=null===t;let a=r?ii(o):Hi(o),d=!1;for(;0!==a&&(!1===d||s);){const D=e[a+1];iD(e[a],t)&&(d=!0,e[a+1]=r?Ju(D):Zu(D)),a=r?ii(D):Hi(D)}d&&(e[n+1]=r?Zu(o):Ju(o))}function iD(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ko(e,t)>=0}const An={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jp(e){return e.substring(An.key,An.keyEnd)}function Qp(e,t){const n=An.textEnd;return n===t?-1:(t=An.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,An.key=t,n),Cs(e,t,n))}function Cs(e,t,n){for(;t=0;n=Qp(t,n))vr(e,Jp(t),!0)}function ai(e,t,n,r){const i=_e(),o=vt(),s=Fr(2);o.firstUpdatePass&&og(o,e,s,r),t!==dt&&Qn(i,s,t)&&ag(o,o.data[Gn()],i,i[11],e,i[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Me(ji(e)))),e}(t,n),r,s)}function ig(e,t){return t>=e.expandoStartIndex}function og(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[Gn()],s=ig(e,n);ug(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const i=function(e){const t=st.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=ga(n=Hc(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Hc(i,e,t,n,r),null===o){let d=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Hi(r))return e[ii(r)]}(e,t,r);void 0!==d&&Array.isArray(d)&&(d=Hc(null,e,t,d[1],r),d=ga(d,t.attrs,r),function(e,t,n,r){e[ii(n?t.classBindings:t.styleBindings)]=r}(e,t,r,d))}else o=function(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(g=!0)}else D=n;if(i)if(0!==d){const T=ii(e[a+1]);e[r+1]=pl(T,a),0!==T&&(e[T+1]=qu(e[T+1],r)),e[a+1]=function(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=pl(a,0),0!==a&&(e[a+1]=qu(e[a+1],r)),a=r;else e[r+1]=pl(d,0),0===a?a=r:e[d+1]=qu(e[d+1],r),d=r;g&&(e[r+1]=Zu(e[r+1])),qp(e,D,r,!0),qp(e,D,r,!1),function(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ko(o,t)>=0&&(n[r+1]=Ju(n[r+1]))}(t,D,e,r,o),s=pl(a,d),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function Hc(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const d=e[i],g=Array.isArray(d),D=g?d[1]:d,I=null===D;let T=n[i+1];T===dt&&(T=I?mt:void 0);let k=I?Eu(T,r):D===r?T:void 0;if(g&&!wl(k)&&(k=Eu(d,r)),wl(k)&&(a=k,s))return a;const j=e[i+1];i=s?ii(j):Hi(j)}if(null!==t){let d=o?t.residualClasses:t.residualStyles;null!=d&&(a=Eu(d,r))}return a}function wl(e){return void 0!==e}function ug(e,t){return 0!=(e.flags&(t?16:32))}function cg(e,t=""){const n=_e(),r=vt(),i=e+20,o=r.firstCreatePass?rs(r,i,1,t,null):r.data[i],s=n[i]=$u(n[11],t);fl(r,n,s,o),xr(o,!1)}function Gc(e){return Al("",e,""),Gc}function Al(e,t,n){const r=_e(),i=ds(r,e,t,n);return i!==dt&&Wi(r,Gn(),i),Al}function Wc(e,t,n,r,i){const o=_e(),s=fs(o,e,t,n,r,i);return s!==dt&&Wi(o,Gn(),s),Wc}function zc(e,t,n){const r=_e();return Qn(r,Vi(),t)&&Cr(vt(),Xt(),r,e,t,r[11],n,!0),zc}const Eo=void 0;var VD=["en",[["a","p"],["AM","PM"],Eo],[["AM","PM"],Eo,Eo],[["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"]],Eo,[["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"]],Eo,[["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}",Eo,"{1} 'at' {0}",Eo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Es={};function Kc(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Tg(t);if(n)return n;const r=t.split("-")[0];if(n=Tg(r),n)return n;if("en"===r)return VD;throw new Error(`Missing locale data for the locale "${e}".`)}function Ig(e){return Kc(e)[qe.PluralCase]}function Tg(e){return e in Es||(Es[e]=nt.ng&&nt.ng.common&&nt.ng.common.locales&&nt.ng.common.locales[e]),Es[e]}var qe=(()=>((qe=qe||{})[qe.LocaleId=0]="LocaleId",qe[qe.DayPeriodsFormat=1]="DayPeriodsFormat",qe[qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",qe[qe.DaysFormat=3]="DaysFormat",qe[qe.DaysStandalone=4]="DaysStandalone",qe[qe.MonthsFormat=5]="MonthsFormat",qe[qe.MonthsStandalone=6]="MonthsStandalone",qe[qe.Eras=7]="Eras",qe[qe.FirstDayOfWeek=8]="FirstDayOfWeek",qe[qe.WeekendRange=9]="WeekendRange",qe[qe.DateFormat=10]="DateFormat",qe[qe.TimeFormat=11]="TimeFormat",qe[qe.DateTimeFormat=12]="DateTimeFormat",qe[qe.NumberSymbols=13]="NumberSymbols",qe[qe.NumberFormats=14]="NumberFormats",qe[qe.CurrencyCode=15]="CurrencyCode",qe[qe.CurrencySymbol=16]="CurrencySymbol",qe[qe.CurrencyName=17]="CurrencyName",qe[qe.Currencies=18]="Currencies",qe[qe.Directionality=19]="Directionality",qe[qe.PluralCase=20]="PluralCase",qe[qe.ExtraData=21]="ExtraData",qe))();const BD=["zero","one","two","few","many"],Sl="en-US",Ml={marker:"element"},Il={marker:"ICU"};var cn=(()=>((cn=cn||{})[cn.SHIFT=2]="SHIFT",cn[cn.APPEND_EAGERLY=1]="APPEND_EAGERLY",cn[cn.COMMENT=2]="COMMENT",cn))();let Og=Sl;function Yc(e){(function(e,t){null==e&&it(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Og=e.toLowerCase().replace(/_/g,"-"))}function Pg(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?th(e,0,n):we(n[i])}function Ng(e,t,n,r,i){const o=t.insertBeforeIndex;if(Array.isArray(o)){let s=r,a=null;if(3&t.type||(a=s,s=i),null!==s&&0==(2&t.flags))for(let d=1;d1)for(let n=e.length-2;n>=0;n--){const r=e[n];xg(r)||GD(r,t)&&null===WD(r)&&zD(r,t.index)}}function xg(e){return!(64&e.type)}function GD(e,t){return xg(t)||e.index>t.index}function WD(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function zD(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(rh(Pg,Ng),e.insertBeforeIndex=t)}function ma(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function ZD(e,t,n){const r=ic(e,n,64,null,null);return Rg(t,r),r}function Tl(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Fg(e){return e>>>17}function Lg(e){return(131070&e)>>>1}let ya=0,_a=0;function Vg(e,t,n,r){const i=n[11];let s,o=null;for(let a=0;a>>1,n),null,null,k,j,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${d}"`)}else switch(d){case Il:const g=t[++a],D=t[++a];null===n[D]&&Jn(n[D]=Lv(i,g),n);break;case Ml:const I=t[++a],T=t[++a];null===n[T]&&Jn(n[T]=ju(i,I,null),n)}}}function Ug(e,t,n,r,i){for(let o=0;o>>2;switch(3&D){case 1:const T=n[++g],k=n[++g],j=e.data[I];"string"==typeof j?lc(t[11],t[I],null,j,T,d,k):Cr(e,j,t,T,d,t[11],k,!1);break;case 0:const J=t[I];null!==J&&Kf(t[11],J,d);break;case 2:e0(e,ma(e,I),t,d);break;case 3:Bg(e,ma(e,I),r,t)}}}}else{const d=n[o+1];if(d>0&&3==(3&d)){const D=ma(e,d>>>2);t[D.currentCaseLViewIndex]<0&&Bg(e,D,r,t)}}o+=a}}function Bg(e,t,n,r){let i=r[t.currentCaseLViewIndex];if(null!==i){let o=ya;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),Ug(e,r,t.update[i],n,o)}}function e0(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=Ig(t)(parseInt(e,10)),r=BD[n];return void 0!==r?r:"other"}(t,Og);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(Tl(t,n)!==i&&($g(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const s=n[t.anchorIdx];s&&Vg(e,t.create[i],n,s)}}function $g(e,t,n){let r=Tl(t,n);if(null!==r){const i=t.remove[r];for(let o=0;o0){const a=Qt(s,n);null!==a&&oh(n[11],a)}else $g(e,ma(e,~s),n)}}}function n0(){const e=[];let n,r,t=-1;function o(a,d){t=0;const g=Tl(a,d);r=null!==g?a.remove[g]:mt}function s(){if(t0?n[a]:(e.push(t,r),o(n[1].data[~a],n),s())}return 0===e.length?null:(r=e.pop(),t=e.pop(),s())}return function(a,d){for(n=d;e.length;)e.pop();return o(a.value,d),s}}const Ol=/\ufffd(\d+):?\d*\ufffd/gi,i0=/\ufffd(\d+)\ufffd/,Hg=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,o0=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,s0=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,a0=/\uE500/g;function Gg(e,t,n,r,i,o,s){const a=is(e,r,1,null);let d=a<n.length&&n.push(d)}return{type:r,mainBinding:i,cases:t,values:n}}function Zc(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(e);){const a=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const d=e.substring(t,a);Hg.test(d)?r.push(g0(d)):r.push(d),t=a+1}}else{if(0==n.length){const d=e.substring(t,a);r.push(d),t=a+1}n.push("{")}}const s=e.substring(t);return r.push(s),r}function m0(e,t,n,r,i,o,s,a){const d=[],g=[],D=[];t.cases.push(o),t.create.push(d),t.remove.push(g),t.update.push(D);const T=Df(Dt()).getInertBodyElement(s),k=Nu(T)||T;return k?Yg(e,t,n,r,d,g,D,k,i,a,0):0}function Yg(e,t,n,r,i,o,s,a,d,g,D){let I=0,T=a.firstChild;for(;T;){const k=is(e,n,1,null);switch(T.nodeType){case Node.ELEMENT_NODE:const j=T,J=j.tagName.toLowerCase();if(Tu.hasOwnProperty(J)){qc(i,Ml,J,d,k),e.data[k]=J;const ke=j.attributes;for(let Je=0;Je>>cn.SHIFT;let I=e[D];null===I&&(I=e[D]=d?i.createComment(a):$u(i,a)),g&&null!==n&&vo(i,n,I,r,!1)}})(i,d.create,D,a&&8&a.type?i[a.index]:null),Bs(!0)}function Qc(){Bs(!1)}function Jg(e,t,n){Jc(e,t,n),Qc()}function Xc(e){return function(e){e&&(ya|=1<0){const r=e.data[n];Ug(e,t,Array.isArray(r)?r:r.update,yr()-_a-1,ya)}ya=0,_a=0}(vt(),_e(),e+20)}function Xg(e,t={}){return function(e,t={}){let n=e;if(E0.test(e)){const r={},i=[0];n=n.replace(D0,(o,s,a)=>{const d=s||a,g=r[d]||[];if(g.length||(d.split("|").forEach(J=>{const z=J.match(M0),Ce=z?parseInt(z[1],10):0,de=S0.test(J);g.push([Ce,de,J])}),r[d]=g),!g.length)throw new Error(`i18n postprocess: unmatched placeholder - ${d}`);const D=i[i.length-1];let I=0;for(let J=0;Jt.hasOwnProperty(o)?`${i}${t[o]}${d}`:r),n=n.replace(w0,(r,i)=>t.hasOwnProperty(i)?t[i]:r),n=n.replace(A0,(r,i)=>{if(t.hasOwnProperty(i)){const o=t[i];if(!o.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${i}`);return o.shift()}return r})),n}(e,t)}function ed(e,t,n,r,i){if(e=he(e),Array.isArray(e))for(let o=0;o>20;if(ls(e)||!e.multi){const k=new Ji(d,i,pa),j=nd(a,t,i?D:D+T,I);-1===j?(R(l(g,s),o,a),td(o,e,t.length),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(k),s.push(k)):(n[j]=k,s[j]=k)}else{const k=nd(a,t,D+T,I),j=nd(a,t,D,D+T),J=k>=0&&n[k],z=j>=0&&n[j];if(i&&!z||!i&&!J){R(l(g,s),o,a);const Ce=function(e,t,n,r,i){const o=new Ji(e,n,pa);return o.multi=[],o.index=t,o.componentProviders=0,em(o,i,r&&!n),o}(i?N0:P0,n.length,i,r,d);!i&&z&&(n[j].providerFactory=Ce),td(o,e,t.length,0),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(Ce),s.push(Ce)}else td(o,e,k>-1?k:j,em(n[i?j:k],d,!i&&r));!i&&r&&z&&n[j].componentProviders++}}}function td(e,t,n,r){const i=ls(t);if(i||function(e){return!!e.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const d=a.indexOf(n);-1===d?a.push(n,[r,s]):a[d+1].push(r,s)}else a.push(n,s)}}}function em(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function nd(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>function(e,t,n){const r=vt();if(r.firstCreatePass){const i=Pt(e);ed(n,r.data,r.blueprint,i,!0),ed(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class nm{}const im="ngComponent";class F0{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${Me(e)}. Did you add it to @NgModule.entryComponents?`);return t[im]=e,t}(t)}}class Do{}function Pl(...e){}function bs(e,t){return new Oi(zt(e,t))}Do.NULL=new F0;const V0=function(){return bs(pn(),_e())};let Oi=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=V0,e})();function om(e){return e instanceof Oi?e.nativeElement:e}class Nl{}let U0=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>$0(),e})();const $0=function(){const e=_e(),n=bn(pn().index,e);return function(e){return e[11]}(sn(n)?n:e)};let od=(()=>{class e{}return e.\u0275prov=xt({token:e,providedIn:"root",factory:()=>null}),e})();class sm{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const am=new sm("12.2.4");class lm{constructor(){}supports(t){return fa(t)}create(t){return new W0(t)}}const G0=(e,t)=>t;class W0{constructor(t){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=t||G0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new z0(n,r),o,i),t}_verifyReinsertion(t,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new um),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new um),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class z0{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class K0{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class um{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new K0,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cm(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new Z0(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class Z0{constructor(t){this.key=t,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 fm(){return new Rl([new lm])}let Rl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||fm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:fm}),e})();function hm(){return new xl([new dm])}let xl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||hm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:hm}),e})();function Fl(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(we(o)),Dn(o))for(let a=10;a-1&&(Hu(t,r),mo(n,r))}this._attachedToViewContainer=!1}Zf(this._lView[1],this._lView)}onDestroy(t){Oh(this._lView[1],this._lView,null,t)}markForCheck(){cc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){fc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Po(!0);try{fc(e,t,n)}finally{Po(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,sa(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class J0 extends Ca{constructor(t){super(t),this._view=t}detectChanges(){Uh(this._view)}checkNoChanges(){!function(e){Po(!0);try{Uh(e)}finally{Po(!1)}}(this._view)}get context(){return null}}const X0=function(e){return function(e,t,n){if(Mr(e)&&!n){const r=bn(e.index,t);return new Ca(r,r)}return 47&e.type?new Ca(t[16],t):null}(pn(),_e(),16==(16&e))};let eb=(()=>{class e{}return e.__NG_ELEMENT_ID__=X0,e})();const rb=[new dm],ob=new Rl([new lm]),sb=new xl(rb),lb=function(){return Ll(pn(),_e())};let Ea=(()=>{class e{}return e.__NG_ELEMENT_ID__=lb,e})();const ub=Ea,cb=class extends ub{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=aa(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(n)),la(n,r,t),new Ca(r)}};function Ll(e,t){return 4&e.type?new cb(t,e,bs(e,t)):null}class bo{}class pm{}const hb=function(){return ym(pn(),_e())};let kl=(()=>{class e{}return e.__NG_ELEMENT_ID__=hb,e})();const gb=kl,gm=class extends gb{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return bs(this._hostTNode,this._hostLView)}get injector(){return new sr(this._hostTNode,this._hostLView)}get parentInjector(){const t=b(this._hostTNode,this._hostLView);if(Qa(t)){const n=Ei(t,this._hostLView),r=Qi(t);return new sr(n[1].data[r+8],n)}return new sr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=mm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const i=t.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(t,n,r,i,o){const s=r||this.parentInjector;if(!o&&null==t.ngModule&&s){const d=s.get(bo,null);d&&(o=d)}const a=t.create(s,i,void 0,o);return this.insert(a.hostView,n),a}insert(t,n){const r=t._lView,i=r[1];if(Dn(r[3])){const D=this.indexOf(t);if(-1!==D)this.detach(D);else{const I=r[3],T=new gm(I,I[6],I[3]);T.detach(T.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;!function(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r$f});class Um extends nm{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(iC).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Vm(this.componentDef.inputs)}get outputs(){return Vm(this.componentDef.outputs)}create(t,n,r,i){const o=(i=i||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const o=e.get(n,Ms,i);return o!==Ms||r===Ms?o:t.get(n,r,i)}}}(t,i.injector):t,s=o.get(Nl,M),a=o.get(od,null),d=s.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",D=r?function(e,t,n){if(m(e))return e.selectRootElement(t,n===Le.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(d,r,this.componentDef.encapsulation):ju(s.createRenderer(null,this.componentDef),g,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(g)),I=this.componentDef.onPush?576:528,T=function(e,t){return{components:[],scheduler:e||$f,clean:jC,playerHandler:t||null,flags:0}}(),k=yl(0,null,null,1,0,null,null,null,null,null),j=aa(null,k,T,I,null,null,s,d,a,o);let J,z;No(j);try{const Ce=function(e,t,n,r,i,o){const s=n[1];n[20]=e;const d=rs(s,20,2,"#host",null),g=d.mergedAttrs=t.hostAttrs;null!==g&&(vl(d,g,!0),null!==e&&(Bo(i,e,g),null!==d.classes&&Yu(i,e,d.classes),null!==d.styles&&ah(i,e,d.styles)));const D=r.createRenderer(e,t),I=aa(n,Mh(t),null,t.onPush?64:16,n[20],d,r,D,o||null,null);return s.firstCreatePass&&(R(l(d,n),s,t.type),Fh(s,d),Lh(d,n.length,1)),_l(n,I),n[20]=I}(D,this.componentDef,j,s,d);if(D)if(r)Bo(d,D,["ng-version",am.full]);else{const{attrs:de,classes:ke}=function(e){const t=[],n=[];let r=1,i=2;for(;r0&&Yu(d,D,ke.join(" "))}if(z=Rr(k,20),void 0!==n){const de=z.projection=[];for(let ke=0;ked(s,t)),t.contentQueries){const d=pn();t.contentQueries(1,s,d.directiveStart)}const a=pn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ei(a.index),Rh(n[1],a,0,a.directiveStart,a.directiveEnd,t),xh(t,s)),s}(Ce,this.componentDef,j,T,[pE]),la(k,j,null)}finally{xo()}return new pw(this.componentType,J,bs(z,j),j,z)}}class pw extends class{}{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new J0(i),this.componentType=t}get injector(){return new sr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Is=new Map;class yw extends bo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new km(this);const r=Yt(t),i=t[Wr]||null;i&&Yc(i),this._bootstrapComponents=wi(r.bootstrap),this._r3Injector=Kh(t,n,[{provide:bo,useValue:this},{provide:Do,useValue:this.componentFactoryResolver}],Me(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Vt.THROW_IF_NOT_FOUND,r=se.Default){return t===Vt||t===bo||t===ss?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class vd extends pm{constructor(t){super(),this.moduleType=t,null!==Yt(t)&&function(e){const t=new Set;!function n(r){const i=Yt(r,!0),o=i.id;null!==o&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${Me(t)} vs ${Me(t.name)}`)}(o,Is.get(o),r),Is.set(o,r));const s=wi(i.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new yw(this.moduleType,t)}}function jm(e,t,n){const r=Hn()+e,i=_e();return i[r]===dt?Mi(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function Hm(e,t,n,r){return function(e,t,n,r,i,o){const s=t+n;return Qn(e,s,i)?Mi(e,s+1,o?r.call(o,i):r(i)):Ta(e,s+1)}(_e(),Hn(),e,t,n,r)}function Ta(e,t){const n=e[t];return n===dt?void 0:n}function Zm(e,t){const n=vt();let r;const i=e+20;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new $e("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Pr(r.type)),s=St(pa);try{const a=jo(!1),d=o();return jo(a),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_e(),i,d),d}finally{St(s)}}function qm(e,t,n,r){const i=e+20,o=_e(),s=mr(o,i);return function(e,t){si.isWrapped(t)&&(t=si.unwrap(t),e[yr()]=dt);return t}(o,function(e,t){return e[1].data[t].pure}(o,i)?function(e,t,n,r,i,o,s){const a=t+n;return Co(e,a,i,o)?Mi(e,a+2,s?r.call(s,i,o):r(i,o)):Ta(e,a+2)}(o,Hn(),t,s.transform,n,r,s):s.transform(n,r))}function Cd(e){return t=>{setTimeout(e,void 0,t)}}const Pi=class extends K.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,o,s;let a=t,d=n||(()=>null),g=r;if(t&&"object"==typeof t){const I=t;a=null===(i=I.next)||void 0===i?void 0:i.bind(I),d=null===(o=I.error)||void 0===o?void 0:o.bind(I),g=null===(s=I.complete)||void 0===s?void 0:s.bind(I)}this.__isAsync&&(d=Cd(d),a&&(a=Cd(a)),g&&(g=Cd(g)));const D=super.subscribe({next:a,error:d,complete:g});return t instanceof P.w0&&t.add(D),D}};function Nw(){return this._results[us()]()}class jl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=us(),r=jl.prototype;r[n]||(r[n]=Nw)}get changes(){return this._changes||(this._changes=new Pi)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=kr(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0)r.push(s[a/2]);else{const g=o[a+1],D=t[-d];for(let I=10;I{class e{constructor(n){this.appInits=n,this.resolve=Pl,this.reject=Pl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:d})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(vn(Pd,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const wy=new ln("AppId"),hA={provide:wy,useFactory:function(){return`${Nd()}${Nd()}${Nd()}`},deps:[]};function Nd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ay=new ln("Platform Initializer"),Sy=new ln("Platform ID"),My=new ln("appBootstrapListener");let Iy=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const Wl=new ln("LocaleId"),Ty=new ln("DefaultCurrencyCode");class gA{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Rd=function(e){return new vd(e)},mA=Rd,yA=function(e){return Promise.resolve(Rd(e))},Oy=function(e){const t=Rd(e),r=wi(Yt(e).declarations).reduce((i,o)=>{const s=qt(o);return s&&i.push(new Um(s)),i},[]);return new gA(t,r)},_A=Oy,vA=function(e){return Promise.resolve(Oy(e))};let Ra=(()=>{class e{constructor(){this.compileModuleSync=mA,this.compileModuleAsync=yA,this.compileModuleAndAllComponentsSync=_A,this.compileModuleAndAllComponentsAsync=vA}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const DA=(()=>Promise.resolve(0))();function xd(e){"undefined"==typeof Zone?DA.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Er{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pi(!1),this.onMicrotaskEmpty=new Pi(!1),this.onStable=new Pi(!1),this.onError=new Pi(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let e=nt.requestAnimationFrame,t=nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(nt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ld(e),e.isCheckStableRunning=!0,Fd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ld(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return Py(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Ny(e)}},onInvoke:(n,r,i,o,s,a,d)=>{try{return Py(e),n.invoke(i,o,s,a,d)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ny(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Ld(e),Fd(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Er.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Er.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,wA,Pl,Pl);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const wA={};function Fd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ld(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Py(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ny(e){e._nesting--,Fd(e)}class MA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pi,this.onMicrotaskEmpty=new Pi,this.onStable=new Pi,this.onError=new Pi}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}let Ry=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Er.assertNotInAngularZone(),xd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())xd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(vn(Er))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})(),xy=(()=>{class e{constructor(){this._applications=new Map,kd.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return kd.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();class IA{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function TA(e){kd=e}let kd=new IA,Fy=!0,Ly=!1;function OA(){if(Ly)throw new Error("Cannot enable prod mode after platform setup.");Fy=!1}let di;const Vy=new ln("AllowMultipleToken");class kA{constructor(t,n){this.name=t,this.token=n}}function Uy(e,t,n=[]){const r=`Platform: ${t}`,i=new ln(r);return(o=[])=>{let s=By();if(!s||s.injector.get(Vy,!1))if(e)e(n.concat(o).concat({provide:i,useValue:!0}));else{const a=n.concat(o).concat({provide:i,useValue:!0},{provide:ua,useValue:"platform"});!function(e){if(di&&!di.destroyed&&!di.injector.get(Vy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");di=e.get($y);const t=e.get(Ay,null);t&&t.forEach(n=>n())}(Vt.create({providers:a,name:r}))}return function(e){const t=By();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function By(){return di&&!di.destroyed?di:null}let $y=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(e,t){let n;return n="noop"===e?new MA:("zone.js"===e?void 0:e)||new Er({enableLongStackTrace:(Ly=!0,Fy),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),d=[{provide:Er,useValue:a}];return a.run(()=>{const g=Vt.create({providers:d,parent:this.injector,name:n.moduleType.name}),D=n.create(g),I=D.injector.get(es,null);if(!I)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const T=a.onError.subscribe({next:k=>{I.handleError(k)}});D.onDestroy(()=>{Vd(this._modules,D),T.unsubscribe()})}),function(e,t,n){try{const r=n();return Fc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(I,a,()=>{const T=D.injector.get(Os);return T.runInitializers(),T.donePromise.then(()=>(Yc(D.injector.get(Wl,Sl)||Sl),this._moduleDoBootstrap(D),D))})})}bootstrapModule(n,r=[]){const i=jy({},r);return function(e,t,n){const r=new vd(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(xa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${Me(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(vn(Vt))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function jy(e,t){return Array.isArray(t)?t.reduce(jy,e):Object.assign(Object.assign({},e),t)}let xa=(()=>{class e{constructor(n,r,i,o,s){this._zone=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new x.y(g=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{g.next(this._stable),g.complete()})}),d=new x.y(g=>{let D;this._zone.runOutsideAngular(()=>{D=this._zone.onStable.subscribe(()=>{Er.assertNotInAngularZone(),xd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,g.next(!0))})})});const I=this._zone.onUnstable.subscribe(()=>{Er.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{g.next(!1)}))});return()=>{D.unsubscribe(),I.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t{this.detachView(a.hostView),Vd(this.components,a),D&&D.unregisterApplication(d)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Vd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(My,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(vn(Er),vn(Vt),vn(es),vn(Do),vn(Os))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function Vd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class HA{}class WA{}const zA={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let KA=(()=>{class e{constructor(n,r){this._compiler=n,this._config=r||zA}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,i]=n.split("#");return void 0===i&&(i="default"),O(8255)(r).then(o=>o[i]).then(o=>zy(o,r,i)).then(o=>this._compiler.compileModuleAsync(o))}loadFactory(n){let[r,i]=n.split("#"),o="NgFactory";return void 0===i&&(i="default",o=""),O(8255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(s=>s[i+o]).then(s=>zy(s,r,i))}}return e.\u0275fac=function(n){return new(n||e)(vn(Ra),vn(WA,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function zy(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const tS=function(e){return null},rS=Uy(null,"core",[{provide:Sy,useValue:"unknown"},{provide:$y,deps:[Vt]},{provide:xy,deps:[]},{provide:Iy,deps:[]}]),lS=[{provide:xa,useClass:xa,deps:[Er,Vt,es,Do,Os]},{provide:dw,deps:[Er],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Os,useClass:Os,deps:[[new $i,Pd]]},{provide:Ra,useClass:Ra,deps:[]},hA,{provide:Rl,useFactory:function(){return ob},deps:[]},{provide:xl,useFactory:function(){return sb},deps:[]},{provide:Wl,useFactory:function(e){return Yc(e=e||"undefined"!=typeof $localize&&$localize.locale||Sl),e},deps:[[new qo(Wl),new $i,new to]]},{provide:Ty,useValue:"USD"}];let cS=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(vn(xa))},e.\u0275mod=yn({type:e}),e.\u0275inj=Ft({providers:lS}),e})()},3092:(Ye,me,O)=>{"use strict";O.d(me,{Fj:()=>We,NI:()=>Yt,u:()=>Zr,cw:()=>dr,sg:()=>sn,u5:()=>B,nD:()=>gr,JJ:()=>G,JL:()=>W,F:()=>ut,On:()=>hn,YN:()=>xi,wV:()=>Bn,_:()=>ir,UX:()=>oe,Q7:()=>Tr,EJ:()=>qr,_Y:()=>Ht,Kr:()=>F});var y=O(476),u=O(8583),ce=O(1776),re=O(1260),te=O(5929),Q=O(9528),K=O(5076),P=O(9607),x=O(5526),Y=O(5207);let ae=(()=>{class E{constructor(h,M){this._renderer=h,this._elementRef=M,this.onChange=Z=>{},this.onTouched=()=>{}}setProperty(h,M){this._renderer.setProperty(this._elementRef.nativeElement,h,M)}registerOnTouched(h){this.onTouched=h}registerOnChange(h){this.onChange=h}setDisabledState(h){this.setProperty("disabled",h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq))},E.\u0275dir=y.lG2({type:E}),E})(),Ee=(()=>{class E extends ae{}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();const De=new y.OlP("NgValueAccessor"),He={provide:De,useExisting:(0,y.Gpc)(()=>We),multi:!0},Ge=new y.OlP("CompositionEventMode");let We=(()=>{class E extends ae{constructor(h,M,Z){super(h,M),this._compositionMode=Z,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const E=(0,u.q)()?(0,u.q)().getUserAgent():"";return/android (\d+)/.test(E.toLowerCase())}())}writeValue(h){this.setProperty("value",null==h?"":h)}_handleInput(h){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(h)}_compositionStart(){this._composing=!0}_compositionEnd(h){this._composing=!1,this._compositionMode&&this.onChange(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ge,8))},E.\u0275dir=y.lG2({type:E,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M._handleInput(we.target.value)})("blur",function(){return M.onTouched()})("compositionstart",function(){return M._compositionStart()})("compositionend",function(we){return M._compositionEnd(we.target.value)})},features:[y._Bn([He]),y.qOj]}),E})();const Ke=new y.OlP("NgValidators"),bt=new y.OlP("NgAsyncValidators");function Ie(E){return null}function be(E){return null!=E}function Ve(E){const m=(0,y.QGY)(E)?(0,te.Dp)(E):E;return(0,y.CqO)(m),m}function Xe(E){let m={};return E.forEach(h=>{m=null!=h?Object.assign(Object.assign({},m),h):m}),0===Object.keys(m).length?null:m}function rt(E,m){return m.map(h=>h(E))}function jt(E){return E.map(m=>function(E){return!E.validate}(m)?m:h=>m.validate(h))}function It(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return Xe(rt(h,m))}}(jt(E)):null}function yt(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return function(){for(var E=[],m=0;m{Cn(h,Z)||h.push(Z)}),h}function xt(E,m){return mn(m).filter(h=>!Cn(E,h))}let Hr=(()=>{class E{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(h){this._rawValidators=h||[],this._composedValidatorFn=It(this._rawValidators)}_setAsyncValidators(h){this._rawAsyncValidators=h||[],this._composedAsyncValidatorFn=yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(h){this._onDestroyCallbacks.push(h)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(h=>h()),this._onDestroyCallbacks=[]}reset(h){this.control&&this.control.reset(h)}hasError(h,M){return!!this.control&&this.control.hasError(h,M)}getError(h,M){return this.control?this.control.getError(h,M):null}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E}),E})(),Ft=(()=>{class E extends Hr{get formDirective(){return null}get path(){return null}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();class gt extends Hr{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class tr{constructor(m){this._cd=m}is(m){var h,M,Z;return"submitted"===m?!!(null===(h=this._cd)||void 0===h?void 0:h.submitted):!!(null===(Z=null===(M=this._cd)||void 0===M?void 0:M.control)||void 0===Z?void 0:Z[m])}}let G=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(gt,2))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))},features:[y.qOj]}),E})(),W=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))("ng-submitted",M.is("submitted"))},features:[y.qOj]}),E})();function Sn(E,m){return[...m.path,E]}function Le(E,m){nr(E,m),m.valueAccessor.writeValue(E.value),function(E,m){m.valueAccessor.registerOnChange(h=>{E._pendingValue=h,E._pendingChange=!0,E._pendingDirty=!0,"change"===E.updateOn&&xn(E,m)})}(E,m),function(E,m){const h=(M,Z)=>{m.valueAccessor.writeValue(M),Z&&m.viewToModelUpdate(M)};E.registerOnChange(h),m._registerOnDestroy(()=>{E._unregisterOnChange(h)})}(E,m),function(E,m){m.valueAccessor.registerOnTouched(()=>{E._pendingTouched=!0,"blur"===E.updateOn&&E._pendingChange&&xn(E,m),"submit"!==E.updateOn&&E.markAsTouched()})}(E,m),function(E,m){if(m.valueAccessor.setDisabledState){const h=M=>{m.valueAccessor.setDisabledState(M)};E.registerOnDisabledChange(h),m._registerOnDestroy(()=>{E._unregisterOnDisabledChange(h)})}}(E,m)}function Ut(E,m,h=!0){const M=()=>{};m.valueAccessor&&(m.valueAccessor.registerOnChange(M),m.valueAccessor.registerOnTouched(M)),nt(E,m),E&&(m._invokeOnDestroyCallbacks(),E._registerOnCollectionChange(()=>{}))}function rn(E,m){E.forEach(h=>{h.registerOnValidatorChange&&h.registerOnValidatorChange(m)})}function nr(E,m){const h=Tt(E);null!==m.validator?E.setValidators(gn(h,m.validator)):"function"==typeof h&&E.setValidators([h]);const M=it(E);null!==m.asyncValidator?E.setAsyncValidators(gn(M,m.asyncValidator)):"function"==typeof M&&E.setAsyncValidators([M]);const Z=()=>E.updateValueAndValidity();rn(m._rawValidators,Z),rn(m._rawAsyncValidators,Z)}function nt(E,m){let h=!1;if(null!==E){if(null!==m.validator){const Z=Tt(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.validator);we.length!==Z.length&&(h=!0,E.setValidators(we))}}if(null!==m.asyncValidator){const Z=it(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.asyncValidator);we.length!==Z.length&&(h=!0,E.setAsyncValidators(we))}}}const M=()=>{};return rn(m._rawValidators,M),rn(m._rawAsyncValidators,M),h}function xn(E,m){E._pendingDirty&&E.markAsDirty(),E.setValue(E._pendingValue,{emitModelToViewChange:!1}),m.viewToModelUpdate(E._pendingValue),E._pendingChange=!1}function cr(E,m){nr(E,m)}function Wr(E,m){if(!E.hasOwnProperty("model"))return!1;const h=E.model;return!!h.isFirstChange()||!Object.is(m,h.currentValue)}function Fn(E,m){E._syncPendingControls(),m.forEach(h=>{const M=h.control;"submit"===M.updateOn&&M._pendingChange&&(h.viewToModelUpdate(M._pendingValue),M._pendingChange=!1)})}function Kn(E,m){if(!m)return null;let h,M,Z;return Array.isArray(m),m.forEach(we=>{we.constructor===We?h=we:function(E){return Object.getPrototypeOf(E.constructor)===Ee}(we)?M=we:Z=we}),Z||M||h||null}function et(E,m){const h=E.indexOf(m);h>-1&&E.splice(h,1)}const Tn="VALID",En="INVALID",Ln="PENDING",yn="DISABLED";function Kr(E){return(dn(E)?E.validators:E)||null}function rr(E){return Array.isArray(E)?It(E):E||null}function Yn(E,m){return(dn(m)?m.asyncValidators:E)||null}function qt(E){return Array.isArray(E)?yt(E):E||null}function dn(E){return null!=E&&!Array.isArray(E)&&"object"==typeof E}class On{constructor(m,h){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=m,this._rawAsyncValidators=h,this._composedValidatorFn=rr(this._rawValidators),this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(m){this._rawValidators=this._composedValidatorFn=m}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(m){this._rawAsyncValidators=this._composedAsyncValidatorFn=m}get parent(){return this._parent}get valid(){return this.status===Tn}get invalid(){return this.status===En}get pending(){return this.status==Ln}get disabled(){return this.status===yn}get enabled(){return this.status!==yn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(m){this._rawValidators=m,this._composedValidatorFn=rr(m)}setAsyncValidators(m){this._rawAsyncValidators=m,this._composedAsyncValidatorFn=qt(m)}addValidators(m){this.setValidators(Rn(m,this._rawValidators))}addAsyncValidators(m){this.setAsyncValidators(Rn(m,this._rawAsyncValidators))}removeValidators(m){this.setValidators(xt(m,this._rawValidators))}removeAsyncValidators(m){this.setAsyncValidators(xt(m,this._rawAsyncValidators))}hasValidator(m){return Cn(this._rawValidators,m)}hasAsyncValidator(m){return Cn(this._rawAsyncValidators,m)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(m={}){this.touched=!0,this._parent&&!m.onlySelf&&this._parent.markAsTouched(m)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(m=>m.markAllAsTouched())}markAsUntouched(m={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(h=>{h.markAsUntouched({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}markAsDirty(m={}){this.pristine=!1,this._parent&&!m.onlySelf&&this._parent.markAsDirty(m)}markAsPristine(m={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(h=>{h.markAsPristine({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}markAsPending(m={}){this.status=Ln,!1!==m.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!m.onlySelf&&this._parent.markAsPending(m)}disable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=yn,this.errors=null,this._forEachChild(M=>{M.disable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this._updateValue(),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!0))}enable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=Tn,this._forEachChild(M=>{M.enable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!1))}_updateAncestors(m){this._parent&&!m.onlySelf&&(this._parent.updateValueAndValidity(m),m.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(m){this._parent=m}updateValueAndValidity(m={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tn||this.status===Ln)&&this._runAsyncValidator(m.emitEvent)),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!m.onlySelf&&this._parent.updateValueAndValidity(m)}_updateTreeValidity(m={emitEvent:!0}){this._forEachChild(h=>h._updateTreeValidity(m)),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yn:Tn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(m){if(this.asyncValidator){this.status=Ln,this._hasOwnPendingAsyncValidator=!0;const h=Ve(this.asyncValidator(this));this._asyncValidationSubscription=h.subscribe(M=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(M,{emitEvent:m})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(m,h={}){this.errors=m,this._updateControlsErrors(!1!==h.emitEvent)}get(m){return function(E,m,h){if(null==m||(Array.isArray(m)||(m=m.split(".")),Array.isArray(m)&&0===m.length))return null;let M=E;return m.forEach(Z=>{M=M instanceof dr?M.controls.hasOwnProperty(Z)?M.controls[Z]:null:M instanceof fn&&M.at(Z)||null}),M}(this,m)}getError(m,h){const M=h?this.get(h):this;return M&&M.errors?M.errors[m]:null}hasError(m,h){return!!this.getError(m,h)}get root(){let m=this;for(;m._parent;)m=m._parent;return m}_updateControlsErrors(m){this.status=this._calculateStatus(),m&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(m)}_initObservables(){this.valueChanges=new y.vpe,this.statusChanges=new y.vpe}_calculateStatus(){return this._allControlsDisabled()?yn:this.errors?En:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ln)?Ln:this._anyControlsHaveStatus(En)?En:Tn}_anyControlsHaveStatus(m){return this._anyControls(h=>h.status===m)}_anyControlsDirty(){return this._anyControls(m=>m.dirty)}_anyControlsTouched(){return this._anyControls(m=>m.touched)}_updatePristine(m={}){this.pristine=!this._anyControlsDirty(),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}_updateTouched(m={}){this.touched=this._anyControlsTouched(),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}_isBoxedValue(m){return"object"==typeof m&&null!==m&&2===Object.keys(m).length&&"value"in m&&"disabled"in m}_registerOnCollectionChange(m){this._onCollectionChange=m}_setUpdateStrategy(m){dn(m)&&null!=m.updateOn&&(this._updateOn=m.updateOn)}_parentMarkedDirty(m){return!m&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Yt extends On{constructor(m=null,h,M){super(Kr(h),Yn(M,h)),this._onChange=[],this._applyFormState(m),this._setUpdateStrategy(h),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(m,h={}){this.value=this._pendingValue=m,this._onChange.length&&!1!==h.emitModelToViewChange&&this._onChange.forEach(M=>M(this.value,!1!==h.emitViewToModelChange)),this.updateValueAndValidity(h)}patchValue(m,h={}){this.setValue(m,h)}reset(m=null,h={}){this._applyFormState(m),this.markAsPristine(h),this.markAsUntouched(h),this.setValue(this.value,h),this._pendingChange=!1}_updateValue(){}_anyControls(m){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(m){this._onChange.push(m)}_unregisterOnChange(m){et(this._onChange,m)}registerOnDisabledChange(m){this._onDisabledChange.push(m)}_unregisterOnDisabledChange(m){et(this._onDisabledChange,m)}_forEachChild(m){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(m){this._isBoxedValue(m)?(this.value=this._pendingValue=m.value,m.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=m}}class dr extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(m,h){return this.controls[m]?this.controls[m]:(this.controls[m]=h,h.setParent(this),h._registerOnCollectionChange(this._onCollectionChange),h)}addControl(m,h,M={}){this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}removeControl(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],h&&this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}contains(m){return this.controls.hasOwnProperty(m)&&this.controls[m].enabled}setValue(m,h={}){this._checkAllValuesPresent(m),Object.keys(m).forEach(M=>{this._throwIfControlMissing(M),this.controls[M].setValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(Object.keys(m).forEach(M=>{this.controls[M]&&this.controls[M].patchValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m={},h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this._reduceChildren({},(m,h,M)=>(m[M]=h instanceof Yt?h.value:h.getRawValue(),m))}_syncPendingControls(){let m=this._reduceChildren(!1,(h,M)=>!!M._syncPendingControls()||h);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[m])throw new Error(`Cannot find form control with name: ${m}.`)}_forEachChild(m){Object.keys(this.controls).forEach(h=>{const M=this.controls[h];M&&m(M,h)})}_setUpControls(){this._forEachChild(m=>{m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(m){for(const h of Object.keys(this.controls)){const M=this.controls[h];if(this.contains(h)&&m(M))return!0}return!1}_reduceValue(){return this._reduceChildren({},(m,h,M)=>((h.enabled||this.disabled)&&(m[M]=h.value),m))}_reduceChildren(m,h){let M=m;return this._forEachChild((Z,we)=>{M=h(M,Z,we)}),M}_allControlsDisabled(){for(const m of Object.keys(this.controls))if(this.controls[m].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control with name: '${M}'.`)})}}class fn extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(m){return this.controls[m]}push(m,h={}){this.controls.push(m),this._registerControl(m),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}insert(m,h,M={}){this.controls.splice(m,0,h),this._registerControl(h),this.updateValueAndValidity({emitEvent:M.emitEvent})}removeAt(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),this.updateValueAndValidity({emitEvent:h.emitEvent})}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),h&&(this.controls.splice(m,0,h),this._registerControl(h)),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(m,h={}){this._checkAllValuesPresent(m),m.forEach((M,Z)=>{this._throwIfControlMissing(Z),this.at(Z).setValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(m.forEach((M,Z)=>{this.at(Z)&&this.at(Z).patchValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m=[],h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this.controls.map(m=>m instanceof Yt?m.value:m.getRawValue())}clear(m={}){this.controls.length<1||(this._forEachChild(h=>h._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:m.emitEvent}))}_syncPendingControls(){let m=this.controls.reduce((h,M)=>!!M._syncPendingControls()||h,!1);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(m))throw new Error(`Cannot find form control at index ${m}`)}_forEachChild(m){this.controls.forEach((h,M)=>{m(h,M)})}_updateValue(){this.value=this.controls.filter(m=>m.enabled||this.disabled).map(m=>m.value)}_anyControls(m){return this.controls.some(h=>h.enabled&&m(h))}_setUpControls(){this._forEachChild(m=>this._registerControl(m))}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control at index: ${M}.`)})}_allControlsDisabled(){for(const m of this.controls)if(m.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(m){m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)}}const Te={provide:Ft,useExisting:(0,y.Gpc)(()=>ut)},ht=(()=>Promise.resolve(null))();let ut=(()=>{class E extends Ft{constructor(h,M){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new y.vpe,this.form=new dr({},It(h),yt(M))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(h){ht.then(()=>{const M=this._findContainer(h.path);h.control=M.registerControl(h.name,h.control),Le(h.control,h),h.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(h)})}getControl(h){return this.form.get(h.path)}removeControl(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name),et(this._directives,h)})}addFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path),Z=new dr({});cr(Z,h),M.registerControl(h.name,Z),Z.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name)})}getFormGroup(h){return this.form.get(h.path)}updateModel(h,M){ht.then(()=>{this.form.get(h.path).setValue(M)})}setValue(h){this.control.setValue(h)}onSubmit(h){return this.submitted=!0,Fn(this.form,this._directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(h){return h.pop(),h.length?this.form.get(h):this.form}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Te]),y.qOj]}),E})();const fr={provide:gt,useExisting:(0,y.Gpc)(()=>hn)},_n=(()=>Promise.resolve(null))();let hn=(()=>{class E extends gt{constructor(h,M,Z,we){super(),this.control=new Yt,this._registered=!1,this.update=new y.vpe,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}ngOnChanges(h){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in h&&this._updateDisabled(h),Wr(h,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Sn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Le(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(h){_n.then(()=>{this.control.setValue(h,{emitViewToModelChange:!1})})}_updateDisabled(h){const M=h.isDisabled.currentValue,Z=""===M||M&&"false"!==M;_n.then(()=>{Z&&!this.control.disabled?this.control.disable():!Z&&this.control.disabled&&this.control.enable()})}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,9),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[y._Bn([fr]),y.qOj,y.TTD]}),E})(),Ht=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),E})();const Un={provide:De,useExisting:(0,y.Gpc)(()=>Bn),multi:!0};let Bn=(()=>{class E extends Ee{writeValue(h){this.setProperty("value",null==h?"":h)}registerOnChange(h){this.onChange=M=>{h(""==M?null:parseFloat(M))}}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},features:[y._Bn([Un]),y.qOj]}),E})();const Gt={provide:De,useExisting:(0,y.Gpc)(()=>ir),multi:!0};let Yr=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({}),E})(),Ar=(()=>{class E{constructor(){this._accessors=[]}add(h,M){this._accessors.push([h,M])}remove(h){for(let M=this._accessors.length-1;M>=0;--M)if(this._accessors[M][1]===h)return void this._accessors.splice(M,1)}select(h){this._accessors.forEach(M=>{this._isSameGroup(M,h)&&M[1]!==h&&M[1].fireUncheck(h.value)})}_isSameGroup(h,M){return!!h[0].control&&h[0]._parent===M._control._parent&&h[1].name===M.name}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275prov=(0,y.Yz7)({factory:function(){return new E},token:E,providedIn:Yr}),E})(),ir=(()=>{class E extends Ee{constructor(h,M,Z,we){super(h,M),this._registry=Z,this._injector=we,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(gt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(h){this._state=h===this.value,this.setProperty("checked",this._state)}registerOnChange(h){this._fn=h,this.onChange=()=>{h(this.value),this._registry.select(this)}}fireUncheck(h){this.writeValue(h)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ar),y.Y36(y.zs3))},E.\u0275dir=y.lG2({type:E,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(){return M.onChange()})("blur",function(){return M.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[y._Bn([Gt]),y.qOj]}),E})();const Wt=new y.OlP("NgModelWithFormControlWarning"),Sr={provide:Ft,useExisting:(0,y.Gpc)(()=>sn)};let sn=(()=>{class E extends Ft{constructor(h,M){super(),this.validators=h,this.asyncValidators=M,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new y.vpe,this._setValidators(h),this._setAsyncValidators(M)}ngOnChanges(h){this._checkFormPresent(),h.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(h){const M=this.form.get(h.path);return Le(M,h),M.updateValueAndValidity({emitEvent:!1}),this.directives.push(h),M}getControl(h){return this.form.get(h.path)}removeControl(h){Ut(h.control||null,h,!1),et(this.directives,h)}addFormGroup(h){this._setUpFormContainer(h)}removeFormGroup(h){this._cleanUpFormContainer(h)}getFormGroup(h){return this.form.get(h.path)}addFormArray(h){this._setUpFormContainer(h)}removeFormArray(h){this._cleanUpFormContainer(h)}getFormArray(h){return this.form.get(h.path)}updateModel(h,M){this.form.get(h.path).setValue(M)}onSubmit(h){return this.submitted=!0,Fn(this.form,this.directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_updateDomValue(){this.directives.forEach(h=>{const M=h.control,Z=this.form.get(h.path);M!==Z&&(Ut(M||null,h),Z instanceof Yt&&(Le(Z,h),h.control=Z))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(h){const M=this.form.get(h.path);cr(M,h),M.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(h){if(this.form){const M=this.form.get(h.path);M&&function(E,m){return nt(E,m)}(M,h)&&M.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){nr(this.form,this),this._oldForm&&nt(this._oldForm,this)}_checkFormPresent(){}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroup",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Sr]),y.qOj,y.TTD]}),E})();const Ir={provide:gt,useExisting:(0,y.Gpc)(()=>Zr)};let Zr=(()=>{class E extends gt{constructor(h,M,Z,we,At){super(),this._ngModelWarningConfig=At,this._added=!1,this.update=new y.vpe,this._ngModelWarningSent=!1,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}set isDisabled(h){}ngOnChanges(h){this._added||this._setUpControl(),Wr(h,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}get path(){return Sn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,13),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10),y.Y36(Wt,8))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[y._Bn([Ir]),y.qOj,y.TTD]}),E._ngModelWarningSentOnce=!1,E})();const mi={provide:De,useExisting:(0,y.Gpc)(()=>qr),multi:!0};function Ri(E,m){return null==E?`${m}`:(m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let qr=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){this.value=h;const M=this._getOptionId(h);null==M&&this.setProperty("selectedIndex",-1);const Z=Ri(M,h);this.setProperty("value",Z)}registerOnChange(h){this.onChange=M=>{this.value=this._getOptionValue(M),h(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(h){for(const M of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(M),h))return M;return null}_getOptionValue(h){const M=function(E){return E.split(":")[0]}(h);return this._optionMap.has(M)?this._optionMap.get(M):h}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},inputs:{compareWith:"compareWith"},features:[y._Bn([mi]),y.qOj]}),E})(),xi=(()=>{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption())}set ngValue(h){null!=this._select&&(this._select._optionMap.set(this.id,h),this._setElementValue(Ri(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._setElementValue(h),this._select&&this._select.writeValue(this._select.value)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(qr,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Fi={provide:De,useExisting:(0,y.Gpc)(()=>N),multi:!0};function _i(E,m){return null==E?`${m}`:("string"==typeof m&&(m=`'${m}'`),m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let N=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){let M;if(this.value=h,Array.isArray(h)){const Z=h.map(we=>this._getOptionId(we));M=(we,At)=>{we._setSelected(Z.indexOf(At.toString())>-1)}}else M=(Z,we)=>{Z._setSelected(!1)};this._optionMap.forEach(M)}registerOnChange(h){this.onChange=M=>{const Z=[];if(void 0!==M.selectedOptions){const we=M.selectedOptions;for(let At=0;At{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption(this))}set ngValue(h){null!=this._select&&(this._value=h,this._setElementValue(_i(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._select?(this._value=h,this._setElementValue(_i(this.id,h)),this._select.writeValue(this._select.value)):this._setElementValue(h)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}_setSelected(h){this._renderer.setProperty(this._element.nativeElement,"selected",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(N,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Nt={provide:Ke,useExisting:(0,y.Gpc)(()=>Tr),multi:!0};let Tr=(()=>{class E{constructor(){this._required=!1}get required(){return this._required}set required(h){this._required=null!=h&&!1!==h&&"false"!=`${h}`,this._onChange&&this._onChange()}validate(h){return this.required?function(E){return function(E){return null==E||0===E.length}(E.value)?{required:!0}:null}(h):null}registerOnValidatorChange(h){this._onChange=h}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("required",M.required?"":null)},inputs:{required:"required"},features:[y._Bn([Nt])]}),E})();const Nr={provide:Ke,useExisting:(0,y.Gpc)(()=>gr),multi:!0};let gr=(()=>{class E{constructor(){this._validator=Ie}ngOnChanges(h){"maxlength"in h&&(this._createValidator(),this._onChange&&this._onChange())}validate(h){return this.enabled()?this._validator(h):null}registerOnValidatorChange(h){this._onChange=h}_createValidator(){this._validator=this.enabled()?function(E){return m=>function(E){return null!=E&&"number"==typeof E.length}(m.value)&&m.value.length>E?{maxlength:{requiredLength:E,actualLength:m.value.length}}:null}(function(E){return"number"==typeof E?E:parseInt(E,10)}(this.maxlength)):Ie}enabled(){return null!=this.maxlength}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("maxlength",M.enabled()?M.maxlength:null)},inputs:{maxlength:"maxlength"},features:[y._Bn([Nr]),y.TTD]}),E})(),S=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[[Yr]]}),E})(),B=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})(),oe=(()=>{class E{static withConfig(h){return{ngModule:E,providers:[{provide:Wt,useValue:h.warnOnNgModelWithFormControl}]}}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})()},9502:(Ye,me,O)=>{"use strict";O.d(me,{gz:()=>Gt,Eb:()=>ge,gk:()=>xt,m2:()=>Rn,Q3:()=>Hr,OD:()=>Cn,F0:()=>Wn,rH:()=>Lo,Od:()=>ho,yS:()=>ko,Bz:()=>Bo,lC:()=>po,R9:()=>Ft});var y=O(8583),u=O(476),ce=O(9162),re=O(6889),te=function(f){function c(l){var p=f.call(this)||this;return p._value=l,p}return(0,ce.ZT)(c,f),Object.defineProperty(c.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),c.prototype._subscribe=function(l){var p=f.prototype._subscribe.call(this,l);return!p.closed&&l.next(this._value),p},c.prototype.getValue=function(){var l=this,b=l._value;if(l.hasError)throw l.thrownError;return this._throwIfClosed(),b},c.prototype.next=function(l){f.prototype.next.call(this,this._value=l)},c}(re.x),Q=O(1776),K=O(1260),P=O(5929),x=O(2738),U=O(9607),Y=O(9528),ae=O(5526),Ee=O(5076);function Pe(f,c,l){return void 0===l&&(l=x.y),function(p){ve(c,function(){for(var C=f.length,b=new Array(C),R=C,V=C,q=function(Ue){ve(c,function(){var at=(0,P.Dp)(f[Ue],c),kt=!1;at.subscribe(new Ee.Q(p,function(Ct){b[Ue]=Ct,kt||(kt=!0,V--),V||p.next(l(b.slice()))},function(){--R||p.complete()}))},p)},Se=0;Se=2,!0))}var ee=O(4689);function Ie(f){return f<=0?function(){return X.E}:(0,$e.e)(function(c,l){var p=[];c.subscribe(new Ee.Q(l,function(C){p.push(C),f=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,(0,_t.q)(1),l?Xe(c):be(function(){return new Me}))}}var Kt=O(8853);function It(f,c,l){var p=(0,Kt.m)(f)||c||l?{next:f,error:c,complete:l}:f;return p?(0,$e.e)(function(C,b){var R;null===(R=p.subscribe)||void 0===R||R.call(p);var V=!0;C.subscribe(new Ee.Q(b,function(q){var Se;null===(Se=p.next)||void 0===Se||Se.call(p,q),b.next(q)},function(){var q;V=!1,null===(q=p.complete)||void 0===q||q.call(p),b.complete()},function(q){var Se;V=!1,null===(Se=p.error)||void 0===Se||Se.call(p,q),b.error(q)},function(){var q,Se;V&&(null===(q=p.unsubscribe)||void 0===q||q.call(p)),null===(Se=p.finalize)||void 0===Se||Se.call(p)}))}):x.y}var yt=O(5207),gn=O(5894),Tt=O(3766),it=O(7216);class mn{constructor(c,l){this.id=c,this.url=l}}class Cn extends mn{constructor(c,l,p="imperative",C=null){super(c,l),this.navigationTrigger=p,this.restoredState=C}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Rn extends mn{constructor(c,l,p){super(c,l),this.urlAfterRedirects=p}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class xt extends mn{constructor(c,l,p){super(c,l),this.reason=p}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Hr extends mn{constructor(c,l,p){super(c,l),this.error=p}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ft extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gt extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tr extends mn{constructor(c,l,p,C,b){super(c,l),this.urlAfterRedirects=p,this.state=C,this.shouldActivate=b}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ni extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fe extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G{constructor(c){this.route=c}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class W{constructor(c){this.route=c}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ge{constructor(c){this.snapshot=c}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ye{constructor(c){this.snapshot=c}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Re{constructor(c){this.snapshot=c}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class se{constructor(c){this.snapshot=c}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xe{constructor(c,l,p){this.routerEvent=c,this.position=l,this.anchor=p}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ne="primary";class St{constructor(c){this.params=c||{}}has(c){return Object.prototype.hasOwnProperty.call(this.params,c)}get(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l[0]:l}return null}getAll(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l:[l]}return[]}get keys(){return Object.keys(this.params)}}function Lt(f){return new St(f)}const zn="ngNavigationCancelingError";function wt(f){const c=Error("NavigationCancelingError: "+f);return c[zn]=!0,c}function ot(f,c,l){const p=l.path.split("/");if(p.length>f.length||"full"===l.pathMatch&&(c.hasChildren()||p.lengthp[b]===C)}return f===c}function rn(f){return Array.prototype.concat.apply([],f)}function Dr(f){return f.length>0?f[f.length-1]:null}function nt(f,c){for(const l in f)f.hasOwnProperty(l)&&c(f[l],l)}function Mn(f){return(0,u.CqO)(f)?f:(0,u.QGY)(f)?(0,P.Dp)(Promise.resolve(f)):(0,H.of)(f)}const xn={exact:function Gr(f,c,l){if(!En(f.segments,c.segments)||!Fn(f.segments,c.segments,l)||f.numberOfChildren!==c.numberOfChildren)return!1;for(const p in c.children)if(!f.children[p]||!Gr(f.children[p],c.children[p],l))return!1;return!0},subset:Wr},mt={exact:function(f,c){return Le(f,c)},subset:function(f,c){return Object.keys(c).length<=Object.keys(f).length&&Object.keys(c).every(l=>Ut(f[l],c[l]))},ignored:()=>!0};function cr(f,c,l){return xn[l.paths](f.root,c.root,l.matrixParams)&&mt[l.queryParams](f.queryParams,c.queryParams)&&!("exact"===l.fragment&&f.fragment!==c.fragment)}function Wr(f,c,l){return In(f,c,c.segments,l)}function In(f,c,l,p){if(f.segments.length>l.length){const C=f.segments.slice(0,l.length);return!(!En(C,l)||c.hasChildren()||!Fn(C,l,p))}if(f.segments.length===l.length){if(!En(f.segments,l)||!Fn(f.segments,l,p))return!1;for(const C in c.children)if(!f.children[C]||!Wr(f.children[C],c.children[C],p))return!1;return!0}{const C=l.slice(0,f.segments.length),b=l.slice(f.segments.length);return!!(En(f.segments,C)&&Fn(f.segments,C,p)&&f.children[Ne])&&In(f.children[Ne],c,b,p)}}function Fn(f,c,l){return c.every((p,C)=>mt[l](f[C].parameters,p.parameters))}class Kn{constructor(c,l,p){this.root=c,this.queryParams=l,this.fragment=p}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return Kr.serialize(this)}}class et{constructor(c,l){this.segments=c,this.children=l,this.parent=null,nt(l,(p,C)=>p.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rr(this)}}class on{constructor(c,l){this.path=c,this.parameters=l}get parameterMap(){return this._parameterMap||(this._parameterMap=Lt(this.parameters)),this._parameterMap}toString(){return Te(this)}}function En(f,c){return f.length===c.length&&f.every((l,p)=>l.path===c[p].path)}class yn{}class zr{parse(c){const l=new Vn(c);return new Kn(l.parseRootSegment(),l.parseQueryParams(),l.parseFragment())}serialize(c){var f;return`${`/${Yn(c.root,!0)}`}${function(f){const c=Object.keys(f).map(l=>{const p=f[l];return Array.isArray(p)?p.map(C=>`${dn(l)}=${dn(C)}`).join("&"):`${dn(l)}=${dn(p)}`}).filter(l=>!!l);return c.length?`?${c.join("&")}`:""}(c.queryParams)}${"string"==typeof c.fragment?`#${f=c.fragment,encodeURI(f)}`:""}`}}const Kr=new zr;function rr(f){return f.segments.map(c=>Te(c)).join("/")}function Yn(f,c){if(!f.hasChildren())return rr(f);if(c){const l=f.children[Ne]?Yn(f.children[Ne],!1):"",p=[];return nt(f.children,(C,b)=>{b!==Ne&&p.push(`${b}:${Yn(C,!1)}`)}),p.length>0?`${l}(${p.join("//")})`:l}{const l=function(f,c){let l=[];return nt(f.children,(p,C)=>{C===Ne&&(l=l.concat(c(p,C)))}),nt(f.children,(p,C)=>{C!==Ne&&(l=l.concat(c(p,C)))}),l}(f,(p,C)=>C===Ne?[Yn(f.children[Ne],!1)]:[`${C}:${Yn(p,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[Ne]?`${rr(f)}/${l[0]}`:`${rr(f)}/(${l.join("//")})`}}function qt(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dn(f){return qt(f).replace(/%3B/gi,";")}function Yt(f){return qt(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dr(f){return decodeURIComponent(f)}function fn(f){return dr(f.replace(/\+/g,"%20"))}function Te(f){return`${Yt(f.path)}${function(f){return Object.keys(f).map(c=>`;${Yt(c)}=${Yt(f[c])}`).join("")}(f.parameters)}`}const ut=/^[^\/()?;=#]+/;function Jt(f){const c=f.match(ut);return c?c[0]:""}const Bt=/^[^=?&#]+/,Ot=/^[^?&#]+/;class Vn{constructor(c){this.url=c,this.remaining=c}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new et([],{}):new et([],this.parseChildren())}parseQueryParams(){const c={};if(this.consumeOptional("?"))do{this.parseQueryParam(c)}while(this.consumeOptional("&"));return c}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const c=[];for(this.peekStartsWith("(")||c.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),c.push(this.parseSegment());let l={};this.peekStartsWith("/(")&&(this.capture("/"),l=this.parseParens(!0));let p={};return this.peekStartsWith("(")&&(p=this.parseParens(!1)),(c.length>0||Object.keys(l).length>0)&&(p[Ne]=new et(c,l)),p}parseSegment(){const c=Jt(this.remaining);if(""===c&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(c),new on(dr(c),this.parseMatrixParams())}parseMatrixParams(){const c={};for(;this.consumeOptional(";");)this.parseParam(c);return c}parseParam(c){const l=Jt(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const C=Jt(this.remaining);C&&(p=C,this.capture(p))}c[dr(l)]=dr(p)}parseQueryParam(c){const l=function(f){const c=f.match(Bt);return c?c[0]:""}(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const R=function(f){const c=f.match(Ot);return c?c[0]:""}(this.remaining);R&&(p=R,this.capture(p))}const C=fn(l),b=fn(p);if(c.hasOwnProperty(C)){let R=c[C];Array.isArray(R)||(R=[R],c[C]=R),R.push(b)}else c[C]=b}parseParens(c){const l={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const p=Jt(this.remaining),C=this.remaining[p.length];if("/"!==C&&")"!==C&&";"!==C)throw new Error(`Cannot parse url '${this.url}'`);let b;p.indexOf(":")>-1?(b=p.substr(0,p.indexOf(":")),this.capture(b),this.capture(":")):c&&(b=Ne);const R=this.parseChildren();l[b]=1===Object.keys(R).length?R[Ne]:new et([],R),this.consumeOptional("//")}return l}peekStartsWith(c){return this.remaining.startsWith(c)}consumeOptional(c){return!!this.peekStartsWith(c)&&(this.remaining=this.remaining.substring(c.length),!0)}capture(c){if(!this.consumeOptional(c))throw new Error(`Expected "${c}".`)}}class Ze{constructor(c){this._root=c}get root(){return this._root.value}parent(c){const l=this.pathFromRoot(c);return l.length>1?l[l.length-2]:null}children(c){const l=fr(c,this._root);return l?l.children.map(p=>p.value):[]}firstChild(c){const l=fr(c,this._root);return l&&l.children.length>0?l.children[0].value:null}siblings(c){const l=Zn(c,this._root);return l.length<2?[]:l[l.length-2].children.map(C=>C.value).filter(C=>C!==c)}pathFromRoot(c){return Zn(c,this._root).map(l=>l.value)}}function fr(f,c){if(f===c.value)return c;for(const l of c.children){const p=fr(f,l);if(p)return p}return null}function Zn(f,c){if(f===c.value)return[c];for(const l of c.children){const p=Zn(f,l);if(p.length)return p.unshift(c),p}return[]}class _n{constructor(c,l){this.value=c,this.children=l}toString(){return`TreeNode(${this.value})`}}function hn(f){const c={};return f&&f.children.forEach(l=>c[l.value.outlet]=l),c}class Ht extends Ze{constructor(c,l){super(c),this.snapshot=l,qn(this,c)}toString(){return this.snapshot.toString()}}function Un(f,c){const l=function(f,c){const R=new Ar([],{},{},"",{},Ne,c,null,f.root,-1,{});return new ir("",new _n(R,[]))}(f,c),p=new te([new on("",{})]),C=new te({}),b=new te({}),R=new te({}),V=new te(""),q=new Gt(p,C,R,V,b,Ne,c,l.root);return q.snapshot=l.root,new Ht(new _n(q,[]),l)}class Gt{constructor(c,l,p,C,b,R,V,q){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=R,this.component=V,this._futureSnapshot=q}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,yt.U)(c=>Lt(c)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,yt.U)(c=>Lt(c)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Mt(f,c="emptyOnly"){const l=f.pathFromRoot;let p=0;if("always"!==c)for(p=l.length-1;p>=1;){const C=l[p],b=l[p-1];if(C.routeConfig&&""===C.routeConfig.path)p--;else{if(b.component)break;p--}}return function(f){return f.reduce((c,l)=>({params:Object.assign(Object.assign({},c.params),l.params),data:Object.assign(Object.assign({},c.data),l.data),resolve:Object.assign(Object.assign({},c.resolve),l._resolvedData)}),{params:{},data:{},resolve:{}})}(l.slice(p))}class Ar{constructor(c,l,p,C,b,R,V,q,Se,Ue,at){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=R,this.component=V,this.routeConfig=q,this._urlSegment=Se,this._lastPathIndex=Ue,this._resolve=at}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(p=>p.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ir extends Ze{constructor(c,l){super(l),this.url=c,qn(this,l)}toString(){return hr(this._root)}}function qn(f,c){c.value._routerState=f,c.children.forEach(l=>qn(f,l))}function hr(f){const c=f.children.length>0?` { ${f.children.map(hr).join(", ")} } `:"";return`${f.value}${c}`}function Wt(f){if(f.snapshot){const c=f.snapshot,l=f._futureSnapshot;f.snapshot=l,Le(c.queryParams,l.queryParams)||f.queryParams.next(l.queryParams),c.fragment!==l.fragment&&f.fragment.next(l.fragment),Le(c.params,l.params)||f.params.next(l.params),function(f,c){if(f.length!==c.length)return!1;for(let l=0;lLe(l.parameters,c[p].parameters))}(f.url,c.url)&&!(!f.parent!=!c.parent)&&(!f.parent||$n(f.parent,c.parent))}function Sr(f,c,l){if(l&&f.shouldReuseRoute(c.value,l.value.snapshot)){const p=l.value;p._futureSnapshot=c.value;const C=function(f,c,l){return c.children.map(p=>{for(const C of l.children)if(f.shouldReuseRoute(p.value,C.value.snapshot))return Sr(f,p,C);return Sr(f,p)})}(f,c,l);return new _n(p,C)}{if(f.shouldAttach(c.value)){const b=f.retrieve(c.value);if(null!==b){const R=b.route;return sn(c,R),R}}const p=function(f){return new Gt(new te(f.url),new te(f.params),new te(f.queryParams),new te(f.fragment),new te(f.data),f.outlet,f.component,f)}(c.value),C=c.children.map(b=>Sr(f,b));return new _n(p,C)}}function sn(f,c){if(f.value.routeConfig!==c.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(f.children.length!==c.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");c.value._futureSnapshot=f.value;for(let l=0;l{b[V]=Array.isArray(R)?R.map(q=>`${q}`):`${R}`}),new Kn(l.root===f?c:Zr(l.root,f,c),b,C)}function Zr(f,c,l){const p={};return nt(f.children,(C,b)=>{p[b]=C===c?l:Zr(C,c,l)}),new et(f.segments,p)}class mi{constructor(c,l,p){if(this.isAbsolute=c,this.numberOfDoubleDots=l,this.commands=p,c&&p.length>0&&jn(p[0]))throw new Error("Root segment cannot have matrix parameters");const C=p.find(Pt);if(C&&C!==Dr(p))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yi{constructor(c,l,p){this.segmentGroup=c,this.processChildren=l,this.index=p}}function _i(f,c,l){if(f||(f=new et([],{})),0===f.segments.length&&f.hasChildren())return Jr(f,c,l);const p=function(f,c,l){let p=0,C=c;const b={match:!1,pathIndex:0,commandIndex:0};for(;C=l.length)return b;const R=f.segments[C],V=l[p];if(Pt(V))break;const q=`${V}`,Se=p0&&void 0===q)break;if(q&&Se&&"object"==typeof Se&&void 0===Se.outlets){if(!L(q,Se,R))return b;p+=2}else{if(!L(q,{},R))return b;p++}C++}return{match:!0,pathIndex:C,commandIndex:p}}(f,c,l),C=l.slice(p.commandIndex);if(p.match&&p.pathIndex{"string"==typeof b&&(b=[b]),null!==b&&(C[R]=_i(f.children[R],c,b))}),nt(f.children,(b,R)=>{void 0===p[R]&&(C[R]=b)}),new et(f.segments,C)}}function N(f,c,l){const p=f.segments.slice(0,c);let C=0;for(;C{"string"==typeof l&&(l=[l]),null!==l&&(c[p]=N(new et([],{}),0,l))}),c}function A(f){const c={};return nt(f,(l,p)=>c[p]=`${l}`),c}function L(f,c,l){return f==l.path&&Le(c,l.parameters)}class Oe{constructor(c,l,p,C){this.routeReuseStrategy=c,this.futureState=l,this.currState=p,this.forwardEvent=C}activate(c){const l=this.futureState._root,p=this.currState?this.currState._root:null;this.deactivateChildRoutes(l,p,c),Wt(this.futureState.root),this.activateChildRoutes(l,p,c)}deactivateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{const R=b.value.outlet;this.deactivateRoutes(b,C[R],p),delete C[R]}),nt(C,(b,R)=>{this.deactivateRouteAndItsChildren(b,p)})}deactivateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(C===b)if(C.component){const R=p.getContext(C.outlet);R&&this.deactivateChildRoutes(c,l,R.children)}else this.deactivateChildRoutes(c,l,p);else b&&this.deactivateRouteAndItsChildren(l,p)}deactivateRouteAndItsChildren(c,l){this.routeReuseStrategy.shouldDetach(c.value.snapshot)?this.detachAndStoreRouteSubtree(c,l):this.deactivateRouteAndOutlet(c,l)}detachAndStoreRouteSubtree(c,l){const p=l.getContext(c.value.outlet);if(p&&p.outlet){const C=p.outlet.detach(),b=p.children.onOutletDeactivated();this.routeReuseStrategy.store(c.value.snapshot,{componentRef:C,route:c,contexts:b})}}deactivateRouteAndOutlet(c,l){const p=l.getContext(c.value.outlet),C=p&&c.value.component?p.children:l,b=hn(c);for(const R of Object.keys(b))this.deactivateRouteAndItsChildren(b[R],C);p&&p.outlet&&(p.outlet.deactivate(),p.children.onOutletDeactivated(),p.attachRef=null,p.resolver=null,p.route=null)}activateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{this.activateRoutes(b,C[b.value.outlet],p),this.forwardEvent(new se(b.value.snapshot))}),c.children.length&&this.forwardEvent(new ye(c.value.snapshot))}activateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(Wt(C),C===b)if(C.component){const R=p.getOrCreateContext(C.outlet);this.activateChildRoutes(c,l,R.children)}else this.activateChildRoutes(c,l,p);else if(C.component){const R=p.getOrCreateContext(C.outlet);if(this.routeReuseStrategy.shouldAttach(C.snapshot)){const V=this.routeReuseStrategy.retrieve(C.snapshot);this.routeReuseStrategy.store(C.snapshot,null),R.children.onOutletReAttached(V.contexts),R.attachRef=V.componentRef,R.route=V.route.value,R.outlet&&R.outlet.attach(V.componentRef,V.route.value),je(V.route)}else{const V=function(f){for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig;if(l&&l.component)return null}return null}(C.snapshot),q=V?V.module.componentFactoryResolver:null;R.attachRef=null,R.route=C,R.resolver=q,R.outlet&&R.outlet.activateWith(C,q),this.activateChildRoutes(c,null,R.children)}}else this.activateChildRoutes(c,null,p)}}function je(f){Wt(f.value),f.children.forEach(je)}class Nt{constructor(c,l){this.routes=c,this.module=l}}function $t(f){return"function"==typeof f}function Or(f){return f instanceof Kn}const Nr=Symbol("INITIAL_VALUE");function gr(){return ue(f=>function(){for(var f=[],c=0;cc.pipe((0,_t.q)(1),function(){for(var f=[],c=0;c{let p=!1;return l.reduce((C,b,R)=>C!==Nr?C:(b===Nr&&(p=!0),p||!1!==b&&R!==l.length-1&&!Or(b)?C:b),c)},Nr),(0,ee.h)(c=>c!==Nr),(0,yt.U)(c=>Or(c)?c:!0===c),(0,_t.q)(1)))}let Zi=(()=>{class f{}return f.\u0275fac=function(l){return new(l||f)},f.\u0275cmp=u.Xpm({type:f,selectors:[["ng-component"]],decls:1,vars:0,template:function(l,p){1&l&&u._UZ(0,"router-outlet")},directives:function(){return[po]},encapsulation:2}),f})();function vi(f,c=""){for(let l=0;lS(p)===c);return l.push(...f.filter(p=>S(p)!==c)),l}const oe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function pe(f,c,l){var p;if(""===c.path)return"full"===c.pathMatch&&(f.hasChildren()||l.length>0)?Object.assign({},oe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const b=(c.matcher||ot)(l,f,c);if(!b)return Object.assign({},oe);const R={};nt(b.posParams,(q,Se)=>{R[Se]=q.path});const V=b.consumed.length>0?Object.assign(Object.assign({},R),b.consumed[b.consumed.length-1].parameters):R;return{matched:!0,consumedSegments:b.consumed,lastChild:b.consumed.length,parameters:V,positionalParamSegments:null!==(p=b.posParams)&&void 0!==p?p:{}}}function Be(f,c,l,p,C="corrected"){if(l.length>0&&function(f,c,l){return l.some(p=>M(f,c,p)&&S(p)!==Ne)}(f,l,p)){const R=new et(c,function(f,c,l,p){const C={};C[Ne]=p,p._sourceSegment=f,p._segmentIndexShift=c.length;for(const b of l)if(""===b.path&&S(b)!==Ne){const R=new et([],{});R._sourceSegment=f,R._segmentIndexShift=c.length,C[S(b)]=R}return C}(f,c,p,new et(l,f.children)));return R._sourceSegment=f,R._segmentIndexShift=c.length,{segmentGroup:R,slicedSegments:[]}}if(0===l.length&&function(f,c,l){return l.some(p=>M(f,c,p))}(f,l,p)){const R=new et(f.segments,function(f,c,l,p,C,b){const R={};for(const V of p)if(M(f,l,V)&&!C[S(V)]){const q=new et([],{});q._sourceSegment=f,q._segmentIndexShift="legacy"===b?f.segments.length:c.length,R[S(V)]=q}return Object.assign(Object.assign({},C),R)}(f,c,l,p,f.children,C));return R._sourceSegment=f,R._segmentIndexShift=c.length,{segmentGroup:R,slicedSegments:l}}const b=new et(f.segments,f.children);return b._sourceSegment=f,b._segmentIndexShift=c.length,{segmentGroup:b,slicedSegments:l}}function M(f,c,l){return(!(f.hasChildren()||c.length>0)||"full"!==l.pathMatch)&&""===l.path}function Z(f,c,l,p){return!!(S(f)===p||p!==Ne&&M(c,l,f))&&("**"===f.path||pe(c,f,l).matched)}function we(f,c,l){return 0===c.length&&!f.children[l]}class At{constructor(c){this.segmentGroup=c||null}}class an{constructor(c){this.urlTree=c}}function Qt(f){return new Q.y(c=>c.error(new At(f)))}function zt(f){return new Q.y(c=>c.error(new an(f)))}function qi(f){return new Q.y(c=>c.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f}'`)))}class bn{constructor(c,l,p,C,b){this.configLoader=l,this.urlSerializer=p,this.urlTree=C,this.config=b,this.allowRedirects=!0,this.ngModule=c.get(u.h0i)}apply(){const c=Be(this.urlTree.root,[],[],this.config).segmentGroup,l=new et(c.segments,c.children);return this.expandSegmentGroup(this.ngModule,this.config,l,Ne).pipe((0,yt.U)(b=>this.createUrlTree(Qr(b),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,gn.K)(b=>{if(b instanceof an)return this.allowRedirects=!1,this.match(b.urlTree);throw b instanceof At?this.noMatchError(b):b}))}match(c){return this.expandSegmentGroup(this.ngModule,this.config,c.root,Ne).pipe((0,yt.U)(C=>this.createUrlTree(Qr(C),c.queryParams,c.fragment))).pipe((0,gn.K)(C=>{throw C instanceof At?this.noMatchError(C):C}))}noMatchError(c){return new Error(`Cannot match any routes. URL Segment: '${c.segmentGroup}'`)}createUrlTree(c,l,p){const C=c.segments.length>0?new et([],{[Ne]:c}):c;return new Kn(C,l,p)}expandSegmentGroup(c,l,p,C){return 0===p.segments.length&&p.hasChildren()?this.expandChildren(c,l,p).pipe((0,yt.U)(b=>new et([],b))):this.expandSegment(c,p,l,p.segments,C,!0)}expandChildren(c,l,p){const C=[];for(const b of Object.keys(p.children))"primary"===b?C.unshift(b):C.push(b);return(0,P.Dp)(C).pipe((0,Tt.b)(b=>{const R=p.children[b],V=B(l,b);return this.expandSegmentGroup(c,V,R,b).pipe((0,yt.U)(q=>({segment:q,outlet:b})))}),ze((b,R)=>(b[R.outlet]=R.segment,b),{}),function(f,c){var l=arguments.length>=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,Ie(1),l?Xe(c):be(function(){return new Me}))}}())}expandSegment(c,l,p,C,b,R){return(0,P.Dp)(p).pipe((0,Tt.b)(V=>this.expandSegmentAgainstRoute(c,l,p,V,C,b,R).pipe((0,gn.K)(Se=>{if(Se instanceof At)return(0,H.of)(null);throw Se}))),jt(V=>!!V),(0,gn.K)((V,q)=>{if(V instanceof Me||"EmptyError"===V.name){if(we(l,C,b))return(0,H.of)(new et([],{}));throw new At(l)}throw V}))}expandSegmentAgainstRoute(c,l,p,C,b,R,V){return Z(C,l,b,R)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(c,l,C,b,R):V&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R):Qt(l):Qt(l)}expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R){return"**"===C.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(c,p,C,R):this.expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R)}expandWildCardWithParamsAgainstRouteUsingRedirect(c,l,p,C){const b=this.applyRedirectCommands([],p.redirectTo,{});return p.redirectTo.startsWith("/")?zt(b):this.lineralizeSegments(p,b).pipe((0,it.z)(R=>{const V=new et(R,{});return this.expandSegment(c,V,l,R,C,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R){const{matched:V,consumedSegments:q,lastChild:Se,positionalParamSegments:Ue}=pe(l,C,b);if(!V)return Qt(l);const at=this.applyRedirectCommands(q,C.redirectTo,Ue);return C.redirectTo.startsWith("/")?zt(at):this.lineralizeSegments(C,at).pipe((0,it.z)(kt=>this.expandSegment(c,l,p,kt.concat(b.slice(Se)),R,!1)))}matchSegmentAgainstRoute(c,l,p,C,b){if("**"===p.path)return p.loadChildren?(p._loadedConfig?(0,H.of)(p._loadedConfig):this.configLoader.load(c.injector,p)).pipe((0,yt.U)(kt=>(p._loadedConfig=kt,new et(C,{})))):(0,H.of)(new et(C,{}));const{matched:R,consumedSegments:V,lastChild:q}=pe(l,p,C);if(!R)return Qt(l);const Se=C.slice(q);return this.getChildConfig(c,p,C).pipe((0,it.z)(at=>{const kt=at.module,Ct=at.routes,{segmentGroup:_r,slicedSegments:or}=Be(l,V,Se,Ct),Lr=new et(_r.segments,_r.children);if(0===or.length&&Lr.hasChildren())return this.expandChildren(kt,Ct,Lr).pipe((0,yt.U)(Ho=>new et(V,Ho)));if(0===Ct.length&&0===or.length)return(0,H.of)(new et(V,{}));const Xi=S(p)===b;return this.expandSegment(kt,Lr,Ct,or,Xi?Ne:b,!0).pipe((0,yt.U)(sr=>new et(V.concat(sr.segments),sr.children)))}))}getChildConfig(c,l,p){return l.children?(0,H.of)(new Nt(l.children,c)):l.loadChildren?void 0!==l._loadedConfig?(0,H.of)(l._loadedConfig):this.runCanLoadGuards(c.injector,l,p).pipe((0,it.z)(C=>{return C?this.configLoader.load(c.injector,l).pipe((0,yt.U)(b=>(l._loadedConfig=b,b))):(f=l,new Q.y(c=>c.error(wt(`Cannot load children because the guard of the route "path: '${f.path}'" returned false`))));var f})):(0,H.of)(new Nt([],c))}runCanLoadGuards(c,l,p){const C=l.canLoad;if(!C||0===C.length)return(0,H.of)(!0);const b=C.map(R=>{const V=c.get(R);let q;if((f=V)&&$t(f.canLoad))q=V.canLoad(l,p);else{if(!$t(V))throw new Error("Invalid CanLoad guard");q=V(l,p)}var f;return Mn(q)});return(0,H.of)(b).pipe(gr(),It(R=>{if(!Or(R))return;const V=wt(`Redirecting to "${this.urlSerializer.serialize(R)}"`);throw V.url=R,V}),(0,yt.U)(R=>!0===R))}lineralizeSegments(c,l){let p=[],C=l.root;for(;;){if(p=p.concat(C.segments),0===C.numberOfChildren)return(0,H.of)(p);if(C.numberOfChildren>1||!C.children[Ne])return qi(c.redirectTo);C=C.children[Ne]}}applyRedirectCommands(c,l,p){return this.applyRedirectCreatreUrlTree(l,this.urlSerializer.parse(l),c,p)}applyRedirectCreatreUrlTree(c,l,p,C){const b=this.createSegmentGroup(c,l.root,p,C);return new Kn(b,this.createQueryParams(l.queryParams,this.urlTree.queryParams),l.fragment)}createQueryParams(c,l){const p={};return nt(c,(C,b)=>{if("string"==typeof C&&C.startsWith(":")){const V=C.substring(1);p[b]=l[V]}else p[b]=C}),p}createSegmentGroup(c,l,p,C){const b=this.createSegments(c,l.segments,p,C);let R={};return nt(l.children,(V,q)=>{R[q]=this.createSegmentGroup(c,V,p,C)}),new et(b,R)}createSegments(c,l,p,C){return l.map(b=>b.path.startsWith(":")?this.findPosParam(c,b,C):this.findOrReturn(b,p))}findPosParam(c,l,p){const C=p[l.path.substring(1)];if(!C)throw new Error(`Cannot redirect to '${c}'. Cannot find '${l.path}'.`);return C}findOrReturn(c,l){let p=0;for(const C of l){if(C.path===c.path)return l.splice(p),C;p++}return c}}function Qr(f){const c={};for(const p of Object.keys(f.children)){const b=Qr(f.children[p]);(b.segments.length>0||b.hasChildren())&&(c[p]=b)}return function(f){if(1===f.numberOfChildren&&f.children[Ne]){const c=f.children[Ne];return new et(f.segments.concat(c.segments),c.children)}return f}(new et(f.segments,c))}class Xr{constructor(c){this.path=c,this.route=this.path[this.path.length-1]}}class ao{constructor(c,l){this.component=c,this.route=l}}function ks(f,c,l){const p=f._root;return lo(p,c?c._root:null,l,[p.value])}function Vs(f,c,l){const p=function(f){if(!f)return null;for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig}return null}(c);return(p?p.module.injector:l).get(f)}function lo(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=hn(c);return f.children.forEach(R=>{(function(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=f.value,R=c?c.value:null,V=l?l.getContext(f.value.outlet):null;if(R&&b.routeConfig===R.routeConfig){const q=function(f,c,l){if("function"==typeof l)return l(f,c);switch(l){case"pathParamsChange":return!En(f.url,c.url);case"pathParamsOrQueryParamsChange":return!En(f.url,c.url)||!Le(f.queryParams,c.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$n(f,c)||!Le(f.queryParams,c.queryParams);case"paramsChange":default:return!$n(f,c)}}(R,b,b.routeConfig.runGuardsAndResolvers);q?C.canActivateChecks.push(new Xr(p)):(b.data=R.data,b._resolvedData=R._resolvedData),lo(f,c,b.component?V?V.children:null:l,p,C),q&&V&&V.outlet&&V.outlet.isActivated&&C.canDeactivateChecks.push(new ao(V.outlet.component,R))}else R&&uo(c,V,C),C.canActivateChecks.push(new Xr(p)),lo(f,null,b.component?V?V.children:null:l,p,C)})(R,b[R.value.outlet],l,p.concat([R.value]),C),delete b[R.value.outlet]}),nt(b,(R,V)=>uo(R,l.getContext(V),C)),C}function uo(f,c,l){const p=hn(f),C=f.value;nt(p,(b,R)=>{uo(b,C.component?c?c.children.getContext(R):null:c,l)}),l.canDeactivateChecks.push(new ao(C.component&&c&&c.outlet&&c.outlet.isActivated?c.outlet.component:null,C))}class Us{}function To(f){return new Q.y(c=>c.error(f))}class ou{constructor(c,l,p,C,b,R){this.rootComponentType=c,this.config=l,this.urlTree=p,this.url=C,this.paramsInheritanceStrategy=b,this.relativeLinkResolution=R}recognize(){const c=Be(this.urlTree.root,[],[],this.config.filter(R=>void 0===R.redirectTo),this.relativeLinkResolution).segmentGroup,l=this.processSegmentGroup(this.config,c,Ne);if(null===l)return null;const p=new Ar([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),C=new _n(p,l),b=new ir(this.url,C);return this.inheritParamsAndData(b._root),b}inheritParamsAndData(c){const l=c.value,p=Mt(l,this.paramsInheritanceStrategy);l.params=Object.freeze(p.params),l.data=Object.freeze(p.data),c.children.forEach(C=>this.inheritParamsAndData(C))}processSegmentGroup(c,l,p){return 0===l.segments.length&&l.hasChildren()?this.processChildren(c,l):this.processSegment(c,l,l.segments,p)}processChildren(c,l){const p=[];for(const b of Object.keys(l.children)){const R=l.children[b],V=B(c,b),q=this.processSegmentGroup(V,R,b);if(null===q)return null;p.push(...q)}const C=yr(p);return C.sort((c,l)=>c.value.outlet===Ne?-1:l.value.outlet===Ne?1:c.value.outlet.localeCompare(l.value.outlet)),C}processSegment(c,l,p,C){for(const b of c){const R=this.processSegmentAgainstRoute(b,l,p,C);if(null!==R)return R}return we(l,p,C)?[]:null}processSegmentAgainstRoute(c,l,p,C){if(c.redirectTo||!Z(c,l,p,C))return null;let b,R=[],V=[];if("**"===c.path){const Ct=p.length>0?Dr(p).parameters:{};b=new Ar(p,Ct,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+p.length,Bs(c))}else{const Ct=pe(l,c,p);if(!Ct.matched)return null;R=Ct.consumedSegments,V=p.slice(Ct.lastChild),b=new Ar(R,Ct.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+R.length,Bs(c))}const q=(f=c).children?f.children:f.loadChildren?f._loadedConfig.routes:[],{segmentGroup:Se,slicedSegments:Ue}=Be(l,R,V,q.filter(Ct=>void 0===Ct.redirectTo),this.relativeLinkResolution);var f;if(0===Ue.length&&Se.hasChildren()){const Ct=this.processChildren(q,Se);return null===Ct?null:[new _n(b,Ct)]}if(0===q.length&&0===Ue.length)return[new _n(b,[])];const at=S(c)===C,kt=this.processSegment(q,Se,Ue,at?Ne:C);return null===kt?null:[new _n(b,kt)]}}function Hn(f){const c=f.value.routeConfig;return c&&""===c.path&&void 0===c.redirectTo}function yr(f){const c=[],l=new Set;for(const p of f){if(!Hn(p)){c.push(p);continue}const C=c.find(b=>p.value.routeConfig===b.value.routeConfig);void 0!==C?(C.children.push(...p.children),l.add(C)):c.push(p)}for(const p of l){const C=yr(p.children);c.push(new _n(p.value,C))}return c.filter(p=>!l.has(p))}function Vi(f){let c=f;for(;c._sourceSegment;)c=c._sourceSegment;return c}function Fr(f){let c=f,l=c._segmentIndexShift?c._segmentIndexShift:0;for(;c._sourceSegment;)c=c._sourceSegment,l+=c._segmentIndexShift?c._segmentIndexShift:0;return l-1}function Ha(f){return f.data||{}}function Bs(f){return f.resolve||{}}function fo(f){return ue(c=>{const l=f(c);return l?(0,P.Dp)(l).pipe((0,yt.U)(()=>c)):(0,H.of)(c)})}class No extends class{shouldDetach(c){return!1}store(c,l){}shouldAttach(c){return!1}retrieve(c){return null}shouldReuseRoute(c,l){return c.routeConfig===l.routeConfig}}{}const Ro=new u.OlP("ROUTES");class Hs{constructor(c,l,p,C){this.loader=c,this.compiler=l,this.onLoadStartListener=p,this.onLoadEndListener=C}load(c,l){if(l._loader$)return l._loader$;this.onLoadStartListener&&this.onLoadStartListener(l);const C=this.loadModuleFactory(l.loadChildren).pipe((0,yt.U)(b=>{this.onLoadEndListener&&this.onLoadEndListener(l);const R=b.create(c);return new Nt(rn(R.injector.get(Ro,void 0,u.XFs.Self|u.XFs.Optional)).map(v),R)}),(0,gn.K)(b=>{throw l._loader$=void 0,b}));return l._loader$=new le(C,()=>new re.x).pipe(lt()),l._loader$}loadModuleFactory(c){return"string"==typeof c?(0,P.Dp)(this.loader.load(c)):Mn(c()).pipe((0,it.z)(l=>l instanceof u.YKP?(0,H.of)(l):(0,P.Dp)(this.compiler.compileModuleAsync(l))))}}class za{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ui,this.attachRef=null}}class Ui{constructor(){this.contexts=new Map}onChildOutletCreated(c,l){const p=this.getOrCreateContext(c);p.outlet=l,this.contexts.set(c,p)}onChildOutletDestroyed(c){const l=this.getContext(c);l&&(l.outlet=null)}onOutletDeactivated(){const c=this.contexts;return this.contexts=new Map,c}onOutletReAttached(c){this.contexts=c}getOrCreateContext(c){let l=this.getContext(c);return l||(l=new za,this.contexts.set(c,l)),l}getContext(c){return this.contexts.get(c)||null}}class cu{shouldProcessUrl(c){return!0}extract(c){return c}merge(c,l){return c}}function du(f){throw f}function Gn(f,c,l){return c.parse("/")}function ei(f,c){return(0,H.of)(null)}const Xt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fu={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wn=(()=>{class f{constructor(l,p,C,b,R,V,q,Se){this.rootComponentType=l,this.urlSerializer=p,this.rootContexts=C,this.location=b,this.config=Se,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new re.x,this.errorHandler=du,this.malformedUriErrorHandler=Gn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ei,afterPreactivation:ei},this.urlHandlingStrategy=new cu,this.routeReuseStrategy=new No,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=R.get(u.h0i),this.console=R.get(u.c2e);const kt=R.get(u.R0b);this.isNgZoneEnabled=kt instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(Se),this.currentUrlTree=new Kn(new et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Hs(V,q,Ct=>this.triggerEvent(new G(Ct)),Ct=>this.triggerEvent(new W(Ct))),this.routerState=Un(this.currentUrlTree,this.rootComponentType),this.transitions=new te({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()}get browserPageId(){var l;return null===(l=this.location.getState())||void 0===l?void 0:l.\u0275routerPageId}setupNavigations(l){const p=this.events;return l.pipe((0,ee.h)(C=>0!==C.id),(0,yt.U)(C=>Object.assign(Object.assign({},C),{extractedUrl:this.urlHandlingStrategy.extract(C.rawUrl)})),ue(C=>{let b=!1,R=!1;return(0,H.of)(C).pipe(It(V=>{this.currentNavigation={id:V.id,initialUrl:V.currentRawUrl,extractedUrl:V.extractedUrl,trigger:V.source,extras:V.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ue(V=>{const q=!this.navigated||V.extractedUrl.toString()!==this.browserUrlTree.toString(),Se=("reload"===this.onSameUrlNavigation||q)&&this.urlHandlingStrategy.shouldProcessUrl(V.rawUrl);if(Fo(V.source)&&(this.browserUrlTree=V.rawUrl),Se)return(0,H.of)(V).pipe(ue(Ue=>{const at=this.transitions.getValue();return p.next(new Cn(Ue.id,this.serializeUrl(Ue.extractedUrl),Ue.source,Ue.restoredState)),at!==this.transitions.getValue()?X.E:Promise.resolve(Ue)}),function(f,c,l,p){return ue(C=>function(f,c,l,p,C){return new bn(f,c,l,p,C).apply()}(f,c,l,C.extractedUrl,p).pipe((0,yt.U)(b=>Object.assign(Object.assign({},C),{urlAfterRedirects:b}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),It(Ue=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Ue.urlAfterRedirects})}),function(f,c,l,p,C){return(0,it.z)(b=>function(f,c,l,p,C="emptyOnly",b="legacy"){try{const R=new ou(f,c,l,p,C,b).recognize();return null===R?To(new Us):(0,H.of)(R)}catch(R){return To(R)}}(f,c,b.urlAfterRedirects,l(b.urlAfterRedirects),p,C).pipe((0,yt.U)(R=>Object.assign(Object.assign({},b),{targetSnapshot:R}))))}(this.rootComponentType,this.config,Ue=>this.serializeUrl(Ue),this.paramsInheritanceStrategy,this.relativeLinkResolution),It(Ue=>{"eager"===this.urlUpdateStrategy&&(Ue.extras.skipLocationChange||this.setBrowserUrl(Ue.urlAfterRedirects,Ue),this.browserUrlTree=Ue.urlAfterRedirects);const at=new Ft(Ue.id,this.serializeUrl(Ue.extractedUrl),this.serializeUrl(Ue.urlAfterRedirects),Ue.targetSnapshot);p.next(at)}));if(q&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:at,extractedUrl:kt,source:Ct,restoredState:_r,extras:or}=V,Lr=new Cn(at,this.serializeUrl(kt),Ct,_r);p.next(Lr);const Xi=Un(kt,this.rootComponentType).snapshot;return(0,H.of)(Object.assign(Object.assign({},V),{targetSnapshot:Xi,urlAfterRedirects:kt,extras:Object.assign(Object.assign({},or),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=V.rawUrl,this.browserUrlTree=V.urlAfterRedirects,V.resolve(null),X.E}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.beforePreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),It(V=>{const q=new gt(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot);this.triggerEvent(q)}),(0,yt.U)(V=>Object.assign(Object.assign({},V),{guards:ks(V.targetSnapshot,V.currentSnapshot,this.rootContexts)})),function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,currentSnapshot:C,guards:{canActivateChecks:b,canDeactivateChecks:R}}=l;return 0===R.length&&0===b.length?(0,H.of)(Object.assign(Object.assign({},l),{guardsResult:!0})):function(f,c,l,p){return(0,P.Dp)(f).pipe((0,it.z)(C=>function(f,c,l,p,C){const b=c&&c.routeConfig?c.routeConfig.canDeactivate:null;if(!b||0===b.length)return(0,H.of)(!0);const R=b.map(V=>{const q=Vs(V,c,C);let Se;if(function(f){return f&&$t(f.canDeactivate)}(q))Se=Mn(q.canDeactivate(f,c,l,p));else{if(!$t(q))throw new Error("Invalid CanDeactivate guard");Se=Mn(q(f,c,l,p))}return Se.pipe(jt())});return(0,H.of)(R).pipe(gr())}(C.component,C.route,l,c,p)),jt(C=>!0!==C,!0))}(R,p,C,f).pipe((0,it.z)(V=>V&&function(f){return"boolean"==typeof f}(V)?function(f,c,l,p){return(0,P.Dp)(c).pipe((0,Tt.b)(C=>he(function(f,c){return null!==f&&c&&c(new ge(f)),(0,H.of)(!0)}(C.route.parent,p),function(f,c){return null!==f&&c&&c(new Re(f)),(0,H.of)(!0)}(C.route,p),function(f,c,l){const p=c[c.length-1],b=c.slice(0,c.length-1).reverse().map(R=>function(f){const c=f.routeConfig?f.routeConfig.canActivateChild:null;return c&&0!==c.length?{node:f,guards:c}:null}(R)).filter(R=>null!==R).map(R=>Ke(()=>{const V=R.guards.map(q=>{const Se=Vs(q,R.node,l);let Ue;if(function(f){return f&&$t(f.canActivateChild)}(Se))Ue=Mn(Se.canActivateChild(p,f));else{if(!$t(Se))throw new Error("Invalid CanActivateChild guard");Ue=Mn(Se(p,f))}return Ue.pipe(jt())});return(0,H.of)(V).pipe(gr())}));return(0,H.of)(b).pipe(gr())}(f,C.path,l),function(f,c,l){const p=c.routeConfig?c.routeConfig.canActivate:null;if(!p||0===p.length)return(0,H.of)(!0);const C=p.map(b=>Ke(()=>{const R=Vs(b,c,l);let V;if(function(f){return f&&$t(f.canActivate)}(R))V=Mn(R.canActivate(c,f));else{if(!$t(R))throw new Error("Invalid CanActivate guard");V=Mn(R(c,f))}return V.pipe(jt())}));return(0,H.of)(C).pipe(gr())}(f,C.route,l))),jt(C=>!0!==C,!0))}(p,b,f,c):(0,H.of)(V)),(0,yt.U)(V=>Object.assign(Object.assign({},l),{guardsResult:V})))})}(this.ngModule.injector,V=>this.triggerEvent(V)),It(V=>{if(Or(V.guardsResult)){const Se=wt(`Redirecting to "${this.serializeUrl(V.guardsResult)}"`);throw Se.url=V.guardsResult,Se}const q=new tr(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot,!!V.guardsResult);this.triggerEvent(q)}),(0,ee.h)(V=>!!V.guardsResult||(this.restoreHistory(V),this.cancelNavigationTransition(V,""),!1)),fo(V=>{if(V.guards.canActivateChecks.length)return(0,H.of)(V).pipe(It(q=>{const Se=new Ni(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}),ue(q=>{let Se=!1;return(0,H.of)(q).pipe(function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,guards:{canActivateChecks:C}}=l;if(!C.length)return(0,H.of)(l);let b=0;return(0,P.Dp)(C).pipe((0,Tt.b)(R=>function(f,c,l,p){return function(f,c,l,p){const C=Object.keys(f);if(0===C.length)return(0,H.of)({});const b={};return(0,P.Dp)(C).pipe((0,it.z)(R=>function(f,c,l,p){const C=Vs(f,c,p);return Mn(C.resolve?C.resolve(c,l):C(c,l))}(f[R],c,l,p).pipe(It(V=>{b[R]=V}))),Ie(1),(0,it.z)(()=>Object.keys(b).length===C.length?(0,H.of)(b):X.E))}(f._resolve,f,c,p).pipe((0,yt.U)(b=>(f._resolvedData=b,f.data=Object.assign(Object.assign({},f.data),Mt(f,l).resolve),null)))}(R.route,p,f,c)),It(()=>b++),Ie(1),(0,it.z)(R=>b===C.length?(0,H.of)(l):X.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),It({next:()=>Se=!0,complete:()=>{Se||(this.restoreHistory(q),this.cancelNavigationTransition(q,"At least one route resolver didn't emit any value."))}}))}),It(q=>{const Se=new fe(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}))}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.afterPreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),(0,yt.U)(V=>{const q=function(f,c,l){const p=Sr(f,c._root,l?l._root:void 0);return new Ht(p,c)}(this.routeReuseStrategy,V.targetSnapshot,V.currentRouterState);return Object.assign(Object.assign({},V),{targetRouterState:q})}),It(V=>{this.currentUrlTree=V.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,V.rawUrl),this.routerState=V.targetRouterState,"deferred"===this.urlUpdateStrategy&&(V.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,V),this.browserUrlTree=V.urlAfterRedirects)}),((f,c,l)=>(0,yt.U)(p=>(new Oe(c,p.targetRouterState,p.currentRouterState,l).activate(f),p)))(this.rootContexts,this.routeReuseStrategy,V=>this.triggerEvent(V)),It({next(){b=!0},complete(){b=!0}}),function(f){return(0,$e.e)(function(c,l){try{c.subscribe(l)}finally{l.add(f)}})}(()=>{if(!b&&!R){const V=`Navigation ID ${C.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(C),this.cancelNavigationTransition(C,V)):this.cancelNavigationTransition(C,V)}this.currentNavigation=null}),(0,gn.K)(V=>{if(R=!0,function(f){return f&&f[zn]}(V)){const q=Or(V.url);q||(this.navigated=!0,this.restoreHistory(C,!0));const Se=new xt(C.id,this.serializeUrl(C.extractedUrl),V.message);p.next(Se),q?setTimeout(()=>{const Ue=this.urlHandlingStrategy.merge(V.url,this.rawUrlTree),at={skipLocationChange:C.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Fo(C.source)};this.scheduleNavigation(Ue,"imperative",null,at,{resolve:C.resolve,reject:C.reject,promise:C.promise})},0):C.resolve(!1)}else{this.restoreHistory(C,!0);const q=new Hr(C.id,this.serializeUrl(C.extractedUrl),V);p.next(q);try{C.resolve(this.errorHandler(V))}catch(Se){C.reject(Se)}}return X.E}))}))}resetRootComponentType(l){this.rootComponentType=l,this.routerState.root.component=this.rootComponentType}getTransition(){const l=this.transitions.value;return l.urlAfterRedirects=this.browserUrlTree,l}setTransition(l){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),l))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(l=>{const p=this.extractLocationChangeInfoFromEvent(l);this.shouldScheduleNavigation(this.lastLocationChangeInfo,p)&&setTimeout(()=>{const{source:C,state:b,urlTree:R}=p,V={replaceUrl:!0};if(b){const q=Object.assign({},b);delete q.navigationId,delete q.\u0275routerPageId,0!==Object.keys(q).length&&(V.state=q)}this.scheduleNavigation(R,C,b,V)},0),this.lastLocationChangeInfo=p}))}extractLocationChangeInfoFromEvent(l){var p;return{source:"popstate"===l.type?"popstate":"hashchange",urlTree:this.parseUrl(l.url),state:(null===(p=l.state)||void 0===p?void 0:p.navigationId)?l.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(l,p){if(!l)return!0;const C=p.urlTree.toString()===l.urlTree.toString();return p.transitionId!==l.transitionId||!C||!("hashchange"===p.source&&"popstate"===l.source||"popstate"===p.source&&"hashchange"===l.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(l){this.events.next(l)}resetConfig(l){vi(l),this.config=l.map(v),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(l,p={}){const{relativeTo:C,queryParams:b,fragment:R,queryParamsHandling:V,preserveFragment:q}=p,Se=C||this.routerState.root,Ue=q?this.currentUrlTree.fragment:R;let at=null;switch(V){case"merge":at=Object.assign(Object.assign({},this.currentUrlTree.queryParams),b);break;case"preserve":at=this.currentUrlTree.queryParams;break;default:at=b||null}return null!==at&&(at=this.removeEmptyProps(at)),function(f,c,l,p,C){if(0===l.length)return Ir(c.root,c.root,c,p,C);const b=function(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new mi(!0,0,f);let c=0,l=!1;const p=f.reduce((C,b,R)=>{if("object"==typeof b&&null!=b){if(b.outlets){const V={};return nt(b.outlets,(q,Se)=>{V[Se]="string"==typeof q?q.split("/"):q}),[...C,{outlets:V}]}if(b.segmentPath)return[...C,b.segmentPath]}return"string"!=typeof b?[...C,b]:0===R?(b.split("/").forEach((V,q)=>{0==q&&"."===V||(0==q&&""===V?l=!0:".."===V?c++:""!=V&&C.push(V))}),C):[...C,b]},[]);return new mi(l,c,p)}(l);if(b.toRoot())return Ir(c.root,new et([],{}),c,p,C);const R=function(f,c,l){if(f.isAbsolute)return new yi(c.root,!0,0);if(-1===l.snapshot._lastPathIndex){const b=l.snapshot._urlSegment;return new yi(b,b===c.root,0)}const p=jn(f.commands[0])?0:1;return function(f,c,l){let p=f,C=c,b=l;for(;b>C;){if(b-=C,p=p.parent,!p)throw new Error("Invalid number of '../'");C=p.segments.length}return new yi(p,!1,C-b)}(l.snapshot._urlSegment,l.snapshot._lastPathIndex+p,f.numberOfDoubleDots)}(b,c,f),V=R.processChildren?Jr(R.segmentGroup,R.index,b.commands):_i(R.segmentGroup,R.index,b.commands);return Ir(R.segmentGroup,V,c,p,C)}(Se,this.currentUrlTree,l,at,null!=Ue?Ue:null)}navigateByUrl(l,p={skipLocationChange:!1}){const C=Or(l)?l:this.parseUrl(l),b=this.urlHandlingStrategy.merge(C,this.rawUrlTree);return this.scheduleNavigation(b,"imperative",null,p)}navigate(l,p={skipLocationChange:!1}){return function(f){for(let c=0;c{const b=l[C];return null!=b&&(p[C]=b),p},{})}processNavigations(){this.navigations.subscribe(l=>{this.navigated=!0,this.lastSuccessfulId=l.id,this.currentPageId=l.targetPageId,this.events.next(new Rn(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,l.resolve(!0)},l=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(l,p,C,b,R){var V,q;if(this.disposed)return Promise.resolve(!1);const Se=this.getTransition(),Ue=Fo(p)&&Se&&!Fo(Se.source),Ct=(this.lastSuccessfulId===Se.id||this.currentNavigation?Se.rawUrl:Se.urlAfterRedirects).toString()===l.toString();if(Ue&&Ct)return Promise.resolve(!0);let _r,or,Lr;R?(_r=R.resolve,or=R.reject,Lr=R.promise):Lr=new Promise((sr,Ho)=>{_r=sr,or=Ho});const Xi=++this.navigationId;let Bi;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(C=this.location.getState()),Bi=C&&C.\u0275routerPageId?C.\u0275routerPageId:b.replaceUrl||b.skipLocationChange?null!==(V=this.browserPageId)&&void 0!==V?V:0:(null!==(q=this.browserPageId)&&void 0!==q?q:0)+1):Bi=0,this.setTransition({id:Xi,targetPageId:Bi,source:p,restoredState:C,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:l,extras:b,resolve:_r,reject:or,promise:Lr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Lr.catch(sr=>Promise.reject(sr))}setBrowserUrl(l,p){const C=this.urlSerializer.serialize(l),b=Object.assign(Object.assign({},p.extras.state),this.generateNgRouterState(p.id,p.targetPageId));this.location.isCurrentPathEqualTo(C)||p.extras.replaceUrl?this.location.replaceState(C,"",b):this.location.go(C,"",b)}restoreHistory(l,p=!1){var C,b;if("computed"===this.canceledNavigationResolution){const R=this.currentPageId-l.targetPageId;"popstate"!==l.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(C=this.currentNavigation)||void 0===C?void 0:C.finalUrl)||0===R?this.currentUrlTree===(null===(b=this.currentNavigation)||void 0===b?void 0:b.finalUrl)&&0===R&&(this.resetState(l),this.browserUrlTree=l.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(R)}else"replace"===this.canceledNavigationResolution&&(p&&this.resetState(l),this.resetUrlToCurrentUrlTree())}resetState(l){this.routerState=l.currentRouterState,this.currentUrlTree=l.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,l.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(l,p){const C=new xt(l.id,this.serializeUrl(l.extractedUrl),p);this.triggerEvent(C),l.resolve(!1)}generateNgRouterState(l,p){return"computed"===this.canceledNavigationResolution?{navigationId:l,\u0275routerPageId:p}:{navigationId:l}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.DyG),u.LFG(yn),u.LFG(Ui),u.LFG(y.Ye),u.LFG(u.zs3),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Fo(f){return"imperative"!==f}let Lo=(()=>{class f{constructor(l,p,C,b,R){this.router=l,this.route=p,this.commands=[],this.onChanges=new re.x,null==C&&b.setAttribute(R.nativeElement,"tabindex","0")}ngOnChanges(l){this.onChanges.next(this)}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}onClick(){const l={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(l,p){1&l&&u.NdJ("click",function(){return p.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})(),ko=(()=>{class f{constructor(l,p,C){this.router=l,this.route=p,this.locationStrategy=C,this.commands=[],this.onChanges=new re.x,this.subscription=l.events.subscribe(b=>{b instanceof Rn&&this.updateTargetUrlAndHref()})}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}ngOnChanges(l){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(l,p,C,b,R){if(0!==l||p||C||b||R||"string"==typeof this.target&&"_self"!=this.target)return!0;const V={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,V),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.Y36(y.S$))},f.\u0275dir=u.lG2({type:f,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(l,p){1&l&&u.NdJ("click",function(b){return p.onClick(b.button,b.ctrlKey,b.shiftKey,b.altKey,b.metaKey)}),2&l&&(u.Ikx("href",p.href,u.LSH),u.uIk("target",p.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})();function ti(f){return""===f||!!f}let ho=(()=>{class f{constructor(l,p,C,b,R,V){this.router=l,this.element=p,this.renderer=C,this.cdr=b,this.link=R,this.linkWithHref=V,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=l.events.subscribe(q=>{q instanceof Rn&&this.update()})}ngAfterContentInit(){(0,H.of)(this.links.changes,this.linksWithHrefs.changes,(0,H.of)(null)).pipe((0,Ge.J)()).subscribe(l=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var l;null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe();const p=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(C=>!!C).map(C=>C.onChanges);this.linkInputChangesSubscription=(0,P.Dp)(p).pipe((0,Ge.J)()).subscribe(C=>{this.isActive!==this.isLinkActive(this.router)(C)&&this.update()})}set routerLinkActive(l){const p=Array.isArray(l)?l:l.split(" ");this.classes=p.filter(C=>!!C)}ngOnChanges(l){this.update()}ngOnDestroy(){var l;this.routerEventsSubscription.unsubscribe(),null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const l=this.hasActiveLinks();this.isActive!==l&&(this.isActive=l,this.cdr.markForCheck(),this.classes.forEach(p=>{l?this.renderer.addClass(this.element.nativeElement,p):this.renderer.removeClass(this.element.nativeElement,p)}))})}isLinkActive(l){const p=function(f){return!!f.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return C=>l.isActive(C.urlTree,p)}hasActiveLinks(){const l=this.isLinkActive(this.router);return this.link&&l(this.link)||this.linkWithHref&&l(this.linkWithHref)||this.links.some(l)||this.linksWithHrefs.some(l)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(u.sBO),u.Y36(Lo,8),u.Y36(ko,8))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLinkActive",""]],contentQueries:function(l,p,C){if(1&l&&(u.Suo(C,Lo,5),u.Suo(C,ko,5)),2&l){let b;u.iGM(b=u.CRH())&&(p.links=b),u.iGM(b=u.CRH())&&(p.linksWithHrefs=b)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[u.TTD]}),f})(),po=(()=>{class f{constructor(l,p,C,b,R){this.parentContexts=l,this.location=p,this.resolver=C,this.changeDetector=R,this.activated=null,this._activatedRoute=null,this.activateEvents=new u.vpe,this.deactivateEvents=new u.vpe,this.name=b||Ne,l.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const l=this.parentContexts.getContext(this.name);l&&l.route&&(l.attachRef?this.attach(l.attachRef,l.route):this.activateWith(l.route,l.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const l=this.activated;return this.activated=null,this._activatedRoute=null,l}attach(l,p){this.activated=l,this._activatedRoute=p,this.location.insert(l.hostView)}deactivate(){if(this.activated){const l=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(l)}}activateWith(l,p){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=l;const R=(p=p||this.resolver).resolveComponentFactory(l._futureSnapshot.routeConfig.component),V=this.parentContexts.getOrCreateContext(this.name).children,q=new Ka(l,V,this.location.injector);this.activated=this.location.createComponent(R,this.location.length,q),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Ui),u.Y36(u.s_b),u.Y36(u._Vd),u.$8M("name"),u.Y36(u.sBO))},f.\u0275dir=u.lG2({type:f,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),f})();class Ka{constructor(c,l,p){this.route=c,this.childContexts=l,this.parent=p}get(c,l){return c===Gt?this.route:c===Ui?this.childContexts:this.parent.get(c,l)}}class Ya{}class Ji{preload(c,l){return(0,H.of)(null)}}let Za=(()=>{class f{constructor(l,p,C,b,R){this.router=l,this.injector=b,this.preloadingStrategy=R,this.loader=new Hs(p,C,Se=>l.triggerEvent(new G(Se)),Se=>l.triggerEvent(new W(Se)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,ee.h)(l=>l instanceof Rn),(0,Tt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const l=this.injector.get(u.h0i);return this.processRoutes(l,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(l,p){const C=[];for(const b of p)if(b.loadChildren&&!b.canLoad&&b._loadedConfig){const R=b._loadedConfig;C.push(this.processRoutes(R.module,R.routes))}else b.loadChildren&&!b.canLoad?C.push(this.preloadConfig(l,b)):b.children&&C.push(this.processRoutes(l,b.children));return(0,P.Dp)(C).pipe((0,Ge.J)(),(0,yt.U)(b=>{}))}preloadConfig(l,p){return this.preloadingStrategy.preload(p,()=>(p._loadedConfig?(0,H.of)(p._loadedConfig):this.loader.load(l.injector,p)).pipe((0,it.z)(b=>(p._loadedConfig=b,this.processRoutes(b.module,b.routes)))))}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(u.zs3),u.LFG(Ya))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})(),Gs=(()=>{class f{constructor(l,p,C={}){this.router=l,this.viewportScroller=p,this.options=C,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},C.scrollPositionRestoration=C.scrollPositionRestoration||"disabled",C.anchorScrolling=C.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(l=>{l instanceof Cn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=l.navigationTrigger,this.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof Rn&&(this.lastId=l.id,this.scheduleScrollEvent(l,this.router.parseUrl(l.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(l=>{l instanceof xe&&(l.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(l,p){this.router.triggerEvent(new xe(l,"popstate"===this.lastSource?this.store[this.restoredId]:null,p))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(y.EM),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();const ni=new u.OlP("ROUTER_CONFIGURATION"),qa=new u.OlP("ROUTER_FORROOT_GUARD"),sf=[y.Ye,{provide:yn,useClass:zr},{provide:Wn,useFactory:function(f,c,l,p,C,b,R,V={},q,Se){const Ue=new Wn(null,f,c,l,p,C,b,rn(R));return q&&(Ue.urlHandlingStrategy=q),Se&&(Ue.routeReuseStrategy=Se),function(f,c){f.errorHandler&&(c.errorHandler=f.errorHandler),f.malformedUriErrorHandler&&(c.malformedUriErrorHandler=f.malformedUriErrorHandler),f.onSameUrlNavigation&&(c.onSameUrlNavigation=f.onSameUrlNavigation),f.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=f.paramsInheritanceStrategy),f.relativeLinkResolution&&(c.relativeLinkResolution=f.relativeLinkResolution),f.urlUpdateStrategy&&(c.urlUpdateStrategy=f.urlUpdateStrategy)}(V,Ue),V.enableTracing&&Ue.events.subscribe(at=>{var kt,Ct;null===(kt=console.group)||void 0===kt||kt.call(console,`Router Event: ${at.constructor.name}`),console.log(at.toString()),console.log(at),null===(Ct=console.groupEnd)||void 0===Ct||Ct.call(console)}),Ue},deps:[yn,Ui,y.Ye,u.zs3,u.v3s,u.Sil,Ro,ni,[class{},new u.FiY],[class{},new u.FiY]]},Ui,{provide:Gt,useFactory:function(f){return f.routerState.root},deps:[Wn]},{provide:u.v3s,useClass:u.EAV},Za,Ji,class{preload(c,l){return l().pipe((0,gn.K)(()=>(0,H.of)(null)))}},{provide:ni,useValue:{enableTracing:!1}}];function af(){return new u.PXZ("Router",Wn)}let Bo=(()=>{class f{constructor(l,p){}static forRoot(l,p){return{ngModule:f,providers:[sf,zs(l),{provide:qa,useFactory:$o,deps:[[Wn,new u.FiY,new u.tp0]]},{provide:ni,useValue:p||{}},{provide:y.S$,useFactory:Ws,deps:[y.lw,[new u.tBr(y.mr),new u.FiY],ni]},{provide:Gs,useFactory:Ja,deps:[Wn,y.EM,ni]},{provide:Ya,useExisting:p&&p.preloadingStrategy?p.preloadingStrategy:Ji},{provide:u.PXZ,multi:!0,useFactory:af},[Ei,{provide:u.ip1,multi:!0,useFactory:Ks,deps:[Ei]},{provide:mu,useFactory:jo,deps:[Ei]},{provide:u.tb,multi:!0,useExisting:mu}]]}}static forChild(l){return{ngModule:f,providers:[zs(l)]}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(qa,8),u.LFG(Wn,8))},f.\u0275mod=u.oAB({type:f}),f.\u0275inj=u.cJS({}),f})();function Ja(f,c,l){return l.scrollOffset&&c.setOffset(l.scrollOffset),new Gs(f,c,l)}function Ws(f,c,l={}){return l.useHash?new y.Do(f,c):new y.b0(f,c)}function $o(f){return"guarded"}function zs(f){return[{provide:u.deG,multi:!0,useValue:f},{provide:Ro,multi:!0,useValue:f}]}let Ei=(()=>{class f{constructor(l){this.injector=l,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new re.x}appInitializer(){return this.injector.get(y.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let p=null;const C=new Promise(V=>p=V),b=this.injector.get(Wn),R=this.injector.get(ni);return"disabled"===R.initialNavigation?(b.setUpLocationChangeListener(),p(!0)):"enabled"===R.initialNavigation||"enabledBlocking"===R.initialNavigation?(b.hooks.afterPreactivation=()=>this.initNavigation?(0,H.of)(null):(this.initNavigation=!0,p(!0),this.resultOfPreactivationDone),b.initialNavigation()):p(!0),C})}bootstrapListener(l){const p=this.injector.get(ni),C=this.injector.get(Za),b=this.injector.get(Gs),R=this.injector.get(Wn),V=this.injector.get(u.z2F);l===V.components[0]&&(("enabledNonBlocking"===p.initialNavigation||void 0===p.initialNavigation)&&R.initialNavigation(),C.setUpPreloading(),b.init(),R.resetRootComponentType(V.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.zs3))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Ks(f){return f.appInitializer.bind(f)}function jo(f){return f.bootstrapListener.bind(f)}const mu=new u.OlP("Router Initializer")},1776:(Ye,me,O)=>{"use strict";O.d(me,{y:()=>U});var y=O(4111),u=O(8839),ce=O(8794),re=O(2738);function Q(De){return 0===De.length?re.y:1===De.length?De[0]:function(ve){return De.reduce(function(He,Me){return Me(He)},ve)}}var K=O(6806),P=O(8853),x=O(4112),U=function(){function De(Pe){Pe&&(this._subscribe=Pe)}return De.prototype.lift=function(Pe){var ve=new De;return ve.source=this,ve.operator=Pe,ve},De.prototype.subscribe=function(Pe,ve,He){var Me=this,Ge=function(De){return De&&De instanceof y.Lv||function(De){return De&&(0,P.m)(De.next)&&(0,P.m)(De.error)&&(0,P.m)(De.complete)}(De)&&(0,u.Nn)(De)}(Pe)?Pe:new y.Hp(Pe,ve,He);return(0,x.x)(function(){var Fe=Me.operator,he=Me.source;Ge.add(Fe?Fe.call(Ge,he):he?Me._subscribe(Ge):Me._trySubscribe(Ge))}),Ge},De.prototype._trySubscribe=function(Pe){try{return this._subscribe(Pe)}catch(ve){Pe.error(ve)}},De.prototype.forEach=function(Pe,ve){var He=this;return new(ve=Y(ve))(function(Me,Ge){var We;We=He.subscribe(function(Fe){try{Pe(Fe)}catch(he){Ge(he),null==We||We.unsubscribe()}},Ge,Me)})},De.prototype._subscribe=function(Pe){var ve;return null===(ve=this.source)||void 0===ve?void 0:ve.subscribe(Pe)},De.prototype[ce.L]=function(){return this},De.prototype.pipe=function(){for(var Pe=[],ve=0;ve{"use strict";O.d(me,{x:()=>P});var y=O(9162),u=O(1776),ce=O(8839),te=(0,O(3864).d)(function(U){return function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Q=O(5850),K=O(4112),P=function(U){function Y(){var ae=U.call(this)||this;return ae.closed=!1,ae.observers=[],ae.isStopped=!1,ae.hasError=!1,ae.thrownError=null,ae}return(0,y.ZT)(Y,U),Y.prototype.lift=function(ae){var Ee=new x(this,this);return Ee.operator=ae,Ee},Y.prototype._throwIfClosed=function(){if(this.closed)throw new te},Y.prototype.next=function(ae){var Ee=this;(0,K.x)(function(){var De,Pe;if(Ee._throwIfClosed(),!Ee.isStopped){var ve=Ee.observers.slice();try{for(var He=(0,y.XA)(ve),Me=He.next();!Me.done;Me=He.next())Me.value.next(ae)}catch(We){De={error:We}}finally{try{Me&&!Me.done&&(Pe=He.return)&&Pe.call(He)}finally{if(De)throw De.error}}}})},Y.prototype.error=function(ae){var Ee=this;(0,K.x)(function(){if(Ee._throwIfClosed(),!Ee.isStopped){Ee.hasError=Ee.isStopped=!0,Ee.thrownError=ae;for(var De=Ee.observers;De.length;)De.shift().error(ae)}})},Y.prototype.complete=function(){var ae=this;(0,K.x)(function(){if(ae._throwIfClosed(),!ae.isStopped){ae.isStopped=!0;for(var Ee=ae.observers;Ee.length;)Ee.shift().complete()}})},Y.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Y.prototype,"observed",{get:function(){var ae;return(null===(ae=this.observers)||void 0===ae?void 0:ae.length)>0},enumerable:!1,configurable:!0}),Y.prototype._trySubscribe=function(ae){return this._throwIfClosed(),U.prototype._trySubscribe.call(this,ae)},Y.prototype._subscribe=function(ae){return this._throwIfClosed(),this._checkFinalizedStatuses(ae),this._innerSubscribe(ae)},Y.prototype._innerSubscribe=function(ae){var ve=this.observers;return this.hasError||this.isStopped?ce.Lc:(ve.push(ae),new ce.w0(function(){return(0,Q.P)(ve,ae)}))},Y.prototype._checkFinalizedStatuses=function(ae){var ve=this.isStopped;this.hasError?ae.error(this.thrownError):ve&&ae.complete()},Y.prototype.asObservable=function(){var ae=new u.y;return ae.source=this,ae},Y.create=function(ae,Ee){return new x(ae,Ee)},Y}(u.y),x=function(U){function Y(ae,Ee){var De=U.call(this)||this;return De.destination=ae,De.source=Ee,De}return(0,y.ZT)(Y,U),Y.prototype.next=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.next)||void 0===De||De.call(Ee,ae)},Y.prototype.error=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.error)||void 0===De||De.call(Ee,ae)},Y.prototype.complete=function(){var ae,Ee;null===(Ee=null===(ae=this.destination)||void 0===ae?void 0:ae.complete)||void 0===Ee||Ee.call(ae)},Y.prototype._subscribe=function(ae){var Ee,De;return null!==(De=null===(Ee=this.source)||void 0===Ee?void 0:Ee.subscribe(ae))&&void 0!==De?De:ce.Lc},Y}(P)},4111:(Ye,me,O)=>{"use strict";O.d(me,{Hp:()=>De,Lv:()=>Ee});var y=O(9162),u=O(8853),ce=O(8839),re=O(6806),te=O(8550);function Q(){}var K=U("C",void 0,void 0);function U(Ge,We,Fe){return{kind:Ge,value:We,error:Fe}}var Y=O(9385),ae=O(4112),Ee=function(Ge){function We(Fe){var he=Ge.call(this)||this;return he.isStopped=!1,Fe?(he.destination=Fe,(0,ce.Nn)(Fe)&&Fe.add(he)):he.destination=Me,he}return(0,y.ZT)(We,Ge),We.create=function(Fe,he,Ke){return new De(Fe,he,Ke)},We.prototype.next=function(Fe){this.isStopped?He(function(Ge){return U("N",Ge,void 0)}(Fe),this):this._next(Fe)},We.prototype.error=function(Fe){this.isStopped?He(function(Ge){return U("E",void 0,Ge)}(Fe),this):(this.isStopped=!0,this._error(Fe))},We.prototype.complete=function(){this.isStopped?He(K,this):(this.isStopped=!0,this._complete())},We.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ge.prototype.unsubscribe.call(this),this.destination=null)},We.prototype._next=function(Fe){this.destination.next(Fe)},We.prototype._error=function(Fe){try{this.destination.error(Fe)}finally{this.unsubscribe()}},We.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},We}(ce.w0),De=function(Ge){function We(Fe,he,Ke){var $e,bt=Ge.call(this)||this;if((0,u.m)(Fe))$e=Fe;else if(Fe){var lt;$e=Fe.next,he=Fe.error,Ke=Fe.complete,bt&&re.v.useDeprecatedNextContext?(lt=Object.create(Fe)).unsubscribe=function(){return bt.unsubscribe()}:lt=Fe,$e=null==$e?void 0:$e.bind(lt),he=null==he?void 0:he.bind(lt),Ke=null==Ke?void 0:Ke.bind(lt)}return bt.destination={next:$e?Pe($e):Q,error:Pe(null!=he?he:ve),complete:Ke?Pe(Ke):Q},bt}return(0,y.ZT)(We,Ge),We}(Ee);function Pe(Ge,We){return function(){for(var Fe=[],he=0;he{"use strict";O.d(me,{Lc:()=>K,w0:()=>Q,Nn:()=>P});var y=O(9162),u=O(8853),re=(0,O(3864).d)(function(U){return function(ae){U(this),this.message=ae?ae.length+" errors occurred during unsubscription:\n"+ae.map(function(Ee,De){return De+1+") "+Ee.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=ae}}),te=O(5850),Q=function(){function U(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._teardowns=null}return U.prototype.unsubscribe=function(){var Y,ae,Ee,De,Pe;if(!this.closed){this.closed=!0;var ve=this._parentage;if(ve)if(this._parentage=null,Array.isArray(ve))try{for(var He=(0,y.XA)(ve),Me=He.next();!Me.done;Me=He.next())Me.value.remove(this)}catch($e){Y={error:$e}}finally{try{Me&&!Me.done&&(ae=He.return)&&ae.call(He)}finally{if(Y)throw Y.error}}else ve.remove(this);var We=this.initialTeardown;if((0,u.m)(We))try{We()}catch($e){Pe=$e instanceof re?$e.errors:[$e]}var Fe=this._teardowns;if(Fe){this._teardowns=null;try{for(var he=(0,y.XA)(Fe),Ke=he.next();!Ke.done;Ke=he.next()){var bt=Ke.value;try{x(bt)}catch($e){Pe=null!=Pe?Pe:[],$e instanceof re?Pe=(0,y.ev)((0,y.ev)([],(0,y.CR)(Pe)),(0,y.CR)($e.errors)):Pe.push($e)}}}catch($e){Ee={error:$e}}finally{try{Ke&&!Ke.done&&(De=he.return)&&De.call(he)}finally{if(Ee)throw Ee.error}}}if(Pe)throw new re(Pe)}},U.prototype.add=function(Y){var ae;if(Y&&Y!==this)if(this.closed)x(Y);else{if(Y instanceof U){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._teardowns=null!==(ae=this._teardowns)&&void 0!==ae?ae:[]).push(Y)}},U.prototype._hasParent=function(Y){var ae=this._parentage;return ae===Y||Array.isArray(ae)&&ae.includes(Y)},U.prototype._addParent=function(Y){var ae=this._parentage;this._parentage=Array.isArray(ae)?(ae.push(Y),ae):ae?[ae,Y]:Y},U.prototype._removeParent=function(Y){var ae=this._parentage;ae===Y?this._parentage=null:Array.isArray(ae)&&(0,te.P)(ae,Y)},U.prototype.remove=function(Y){var ae=this._teardowns;ae&&(0,te.P)(ae,Y),Y instanceof U&&Y._removeParent(this)},U.EMPTY=((Y=new U).closed=!0,Y),U;var Y}(),K=Q.EMPTY;function P(U){return U instanceof Q||U&&"closed"in U&&(0,u.m)(U.remove)&&(0,u.m)(U.add)&&(0,u.m)(U.unsubscribe)}function x(U){(0,u.m)(U)?U():U.unsubscribe()}},6806:(Ye,me,O)=>{"use strict";O.d(me,{v:()=>y});var y={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},6149:(Ye,me,O)=>{"use strict";O.d(me,{E:()=>u});var u=new(O(1776).y)(function(te){return te.complete()})},5929:(Ye,me,O)=>{"use strict";O.d(me,{Dp:()=>$e,OO:()=>H,Xf:()=>lt});var y=O(9162),u=function(ee){return ee&&"number"==typeof ee.length&&"function"!=typeof ee},ce=O(8853);function re(ee){return(0,ce.m)(null==ee?void 0:ee.then)}var te=O(8794),Q=O(1776),K=O(8839),U=O(2504),ae="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Pe(ee,Ie){if(!ee)throw new Error("Iterable cannot be null");return new Q.y(function(be){var Ve=new K.w0;return Ve.add(Ie.schedule(function(){var Xe=ee[Symbol.asyncIterator]();Ve.add(Ie.schedule(function(){var rt=this;Xe.next().then(function(_t){_t.done?be.complete():(be.next(_t.value),rt.schedule())})}))})),Ve})}function ve(ee){return(0,ce.m)(ee[te.L])}function He(ee){return(0,ce.m)(null==ee?void 0:ee[ae])}function Me(ee){return Symbol.asyncIterator&&(0,ce.m)(null==ee?void 0:ee[Symbol.asyncIterator])}function Ge(ee){return new TypeError("You provided "+(null!==ee&&"object"==typeof ee?"an invalid object":"'"+ee+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function We(ee){return(0,y.FC)(this,arguments,function(){var be,Ve,Xe;return(0,y.Jh)(this,function(_t){switch(_t.label){case 0:be=ee.getReader(),_t.label=1;case 1:_t.trys.push([1,,9,10]),_t.label=2;case 2:return[4,(0,y.qq)(be.read())];case 3:return Ve=_t.sent(),Xe=Ve.value,Ve.done?[4,(0,y.qq)(void 0)]:[3,5];case 4:return[2,_t.sent()];case 5:return[4,(0,y.qq)(Xe)];case 6:return[4,_t.sent()];case 7:return _t.sent(),[3,2];case 8:return[3,10];case 9:return be.releaseLock(),[7];case 10:return[2]}})})}function Fe(ee){return(0,ce.m)(null==ee?void 0:ee.getReader)}var bt=O(8550);function $e(ee,Ie){return Ie?function(ee,Ie){if(null!=ee){if(ve(ee))return function(ee,Ie){return new Q.y(function(be){var Ve=new K.w0;return Ve.add(Ie.schedule(function(){var Xe=ee[te.L]();Ve.add(Xe.subscribe({next:function(rt){Ve.add(Ie.schedule(function(){return be.next(rt)}))},error:function(rt){Ve.add(Ie.schedule(function(){return be.error(rt)}))},complete:function(){Ve.add(Ie.schedule(function(){return be.complete()}))}}))})),Ve})}(ee,Ie);if(u(ee))return(0,U.r)(ee,Ie);if(re(ee))return function(ee,Ie){return new Q.y(function(be){return Ie.schedule(function(){return ee.then(function(Ve){be.add(Ie.schedule(function(){be.next(Ve),be.add(Ie.schedule(function(){return be.complete()}))}))},function(Ve){be.add(Ie.schedule(function(){return be.error(Ve)}))})})})}(ee,Ie);if(Me(ee))return Pe(ee,Ie);if(He(ee))return function(ee,Ie){return new Q.y(function(be){var Ve;return be.add(Ie.schedule(function(){Ve=ee[ae](),function(ee,Ie,be,Ve){void 0===Ve&&(Ve=0);var Xe=Ie.schedule(function(){try{be.call(this)}catch(rt){ee.error(rt)}},Ve);ee.add(Xe)}(be,Ie,function(){var Xe=Ve.next(),rt=Xe.value;Xe.done?be.complete():(be.next(rt),this.schedule())})})),function(){return(0,ce.m)(null==Ve?void 0:Ve.return)&&Ve.return()}})}(ee,Ie);if(Fe(ee))return function(ee,Ie){return Pe(We(ee),Ie)}(ee,Ie)}throw Ge(ee)}(ee,Ie):lt(ee)}function lt(ee){if(ee instanceof Q.y)return ee;if(null!=ee){if(ve(ee))return function(ee){return new Q.y(function(Ie){var be=ee[te.L]();if((0,ce.m)(be.subscribe))return be.subscribe(Ie);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ee);if(u(ee))return H(ee);if(re(ee))return function(ee){return new Q.y(function(Ie){ee.then(function(be){Ie.closed||(Ie.next(be),Ie.complete())},function(be){return Ie.error(be)}).then(null,bt.h)})}(ee);if(Me(ee))return Ae(ee);if(He(ee))return function(ee){return new Q.y(function(Ie){var be,Ve;try{for(var Xe=(0,y.XA)(ee),rt=Xe.next();!rt.done;rt=Xe.next())if(Ie.next(rt.value),Ie.closed)return}catch(jt){be={error:jt}}finally{try{rt&&!rt.done&&(Ve=Xe.return)&&Ve.call(Xe)}finally{if(be)throw be.error}}Ie.complete()})}(ee);if(Fe(ee))return function(ee){return Ae(We(ee))}(ee)}throw Ge(ee)}function H(ee){return new Q.y(function(Ie){for(var be=0;be{"use strict";O.d(me,{h:()=>ce});var y=O(2504),u=O(5929);function ce(re,te){return te?(0,y.r)(re,te):(0,u.OO)(re)}},1964:(Ye,me,O)=>{"use strict";O.d(me,{of:()=>re});var y=O(5994),u=O(2504),ce=O(9528);function re(){for(var te=[],Q=0;Q{"use strict";O.d(me,{_:()=>ce});var y=O(1776),u=O(8853);function ce(re,te){var Q=(0,u.m)(re)?re:function(){return re},K=function(P){return P.error(Q())};return new y.y(te?function(P){return te.schedule(K,0,P)}:K)}},5076:(Ye,me,O)=>{"use strict";O.d(me,{Q:()=>ce});var y=O(9162),ce=function(re){function te(Q,K,P,x,U){var Y=re.call(this,Q)||this;return Y.onFinalize=U,Y._next=K?function(ae){try{K(ae)}catch(Ee){Q.error(Ee)}}:re.prototype._next,Y._error=x?function(ae){try{x(ae)}catch(Ee){Q.error(Ee)}finally{this.unsubscribe()}}:re.prototype._error,Y._complete=P?function(){try{P()}catch(ae){Q.error(ae)}finally{this.unsubscribe()}}:re.prototype._complete,Y}return(0,y.ZT)(te,re),te.prototype.unsubscribe=function(){var Q,K=this.closed;re.prototype.unsubscribe.call(this),!K&&(null===(Q=this.onFinalize)||void 0===Q||Q.call(this))},te}(O(4111).Lv)},5894:(Ye,me,O)=>{"use strict";O.d(me,{K:()=>re});var y=O(5929),u=O(5076),ce=O(4297);function re(te){return(0,ce.e)(function(Q,K){var U,P=null,x=!1;P=Q.subscribe(new u.Q(K,void 0,void 0,function(Y){U=(0,y.Xf)(te(Y,re(te)(Q))),P?(P.unsubscribe(),P=null,U.subscribe(K)):x=!0})),x&&(P.unsubscribe(),P=null,U.subscribe(K))})}},3766:(Ye,me,O)=>{"use strict";O.d(me,{b:()=>ce});var y=O(7216),u=O(8853);function ce(re,te){return(0,u.m)(te)?(0,y.z)(re,te,1):(0,y.z)(re,1)}},4689:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(Q,K){var P=0;Q.subscribe(new u.Q(K,function(x){return re.call(te,x,P++)&&K.next(x)}))})}},5207:(Ye,me,O)=>{"use strict";O.d(me,{U:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(Q,K){var P=0;Q.subscribe(new u.Q(K,function(x){K.next(re.call(te,x,P++))}))})}},23:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>ce});var y=O(7216),u=O(2738);function ce(re){return void 0===re&&(re=1/0),(0,y.z)(u.y,re)}},7216:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>K});var y=O(5207),u=O(5929),ce=O(4297),re=O(5076),Q=O(8853);function K(P,x,U){return void 0===U&&(U=1/0),(0,Q.m)(x)?K(function(Y,ae){return(0,y.U)(function(Ee,De){return x(Y,Ee,ae,De)})((0,u.Xf)(P(Y,ae)))},U):("number"==typeof x&&(U=x),(0,ce.e)(function(Y,ae){return function(P,x,U,Y,ae,Ee,De,Pe){var ve=[],He=0,Me=0,Ge=!1,We=function(){Ge&&!ve.length&&!He&&x.complete()},Fe=function(Ke){return He{"use strict";O.d(me,{q:()=>re});var y=O(6149),u=O(4297),ce=O(5076);function re(te){return te<=0?function(){return y.E}:(0,u.e)(function(Q,K){var P=0;Q.subscribe(new ce.Q(K,function(x){++P<=te&&(K.next(x),te<=P&&K.complete())}))})}},2504:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>u});var y=O(1776);function u(ce,re){return new y.y(function(te){var Q=0;return re.schedule(function(){Q===ce.length?te.complete():(te.next(ce[Q++]),te.closed||this.schedule())})})}},9385:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>u});var y=O(9162),u={setTimeout:function(){for(var ce=[],re=0;re{"use strict";O.d(me,{L:()=>y});var y="function"==typeof Symbol&&Symbol.observable||"@@observable"},9528:(Ye,me,O)=>{"use strict";O.d(me,{_6:()=>Q,jO:()=>re,yG:()=>te});var y=O(8853);function ce(K){return K[K.length-1]}function re(K){return(0,y.m)(ce(K))?K.pop():void 0}function te(K){return function(K){return K&&(0,y.m)(K.schedule)}(ce(K))?K.pop():void 0}function Q(K,P){return"number"==typeof ce(K)?K.pop():P}},1260:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=Array.isArray,u=Object.getPrototypeOf,ce=Object.prototype,re=Object.keys;function te(K){if(1===K.length){var P=K[0];if(y(P))return{args:P,keys:null};if(function(K){return K&&"object"==typeof K&&u(K)===ce}(P)){var x=re(P);return{args:x.map(function(U){return P[U]}),keys:x}}}return{args:K,keys:null}}},5850:(Ye,me,O)=>{"use strict";function y(u,ce){if(u){var re=u.indexOf(ce);0<=re&&u.splice(re,1)}}O.d(me,{P:()=>y})},3864:(Ye,me,O)=>{"use strict";function y(u){var re=u(function(te){Error.call(te),te.stack=(new Error).stack});return re.prototype=Object.create(Error.prototype),re.prototype.constructor=re,re}O.d(me,{d:()=>y})},5526:(Ye,me,O)=>{"use strict";function y(u,ce){return u.reduce(function(re,te,Q){return re[te]=ce[Q],re},{})}O.d(me,{n:()=>y})},4112:(Ye,me,O)=>{"use strict";O.d(me,{x:()=>ce,O:()=>re});var y=O(6806),u=null;function ce(te){if(y.v.useDeprecatedSynchronousErrorHandling){var Q=!u;if(Q&&(u={errorThrown:!1,error:null}),te(),Q){var K=u;if(u=null,K.errorThrown)throw K.error}}else te()}function re(te){y.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=te)}},2738:(Ye,me,O)=>{"use strict";function y(u){return u}O.d(me,{y:()=>y})},8853:(Ye,me,O)=>{"use strict";function y(u){return"function"==typeof u}O.d(me,{m:()=>y})},4297:(Ye,me,O)=>{"use strict";O.d(me,{A:()=>u,e:()=>ce});var y=O(8853);function u(re){return(0,y.m)(null==re?void 0:re.lift)}function ce(re){return function(te){if(u(te))return te.lift(function(Q){try{return re(Q,this)}catch(K){this.error(K)}});throw new TypeError("Unable to lift unknown Observable type")}}},9607:(Ye,me,O)=>{"use strict";O.d(me,{Z:()=>te});var y=O(9162),u=O(5207),ce=Array.isArray;function te(Q){return(0,u.U)(function(K){return function(Q,K){return ce(K)?Q.apply(void 0,(0,y.ev)([],(0,y.CR)(K))):Q(K)}(Q,K)})}},8550:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(6806),u=O(9385);function ce(re){u.z.setTimeout(function(){var te=y.v.onUnhandledError;if(!te)throw re;te(re)})}},8253:(Ye,me,O)=>{"use strict";O.d(me,{a:()=>re});var y=O(476),u=O(9502),ce=O(7556);let re=(()=>{class te{constructor(K,P){this.router=K,this.authSvc=P}canActivate(K,P){return this.checkLogin(P.url)}canActivateChild(K,P){return this.canActivate(K,P)}canLoad(K){return this.checkLogin(`/${K.path}`)}checkLogin(K){return!(this.authSvc.isSecureMode&&!this.authSvc.isLoggedIn)||this.router.parseUrl("/login")}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.F0),y.LFG(ce.e))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},7822:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>ce});var y=O(476);let ce=(()=>{class re{constructor(){this.messages=[]}success(Q="operation",K){this.messages.push({class:"alert alert-success shadow rounded alert-dismissible fade show",content:`${Q} success! ${K||""}`})}errors(Q){this.messages.push({class:"alert alert-danger shadow rounded alert-dismissible fade show",content:Q})}clear(){this.messages.shift()}}return re.\u0275fac=function(Q){return new(Q||re)},re.\u0275prov=y.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})()},7556:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>re});var y=O(476),u=O(1841),ce=O(4889);let re=(()=>{class te{constructor(K,P){this.http=K,this.errorSvc=P,this.accessToken=null,this.isLoggedIn=!1,this.redirectUrl=null,this.isSecureMode=!1}login(){return this.tokenValidate()}tokenValidate(){return this.http.get("/core-metadata/api/v3/ping")}setAccessToken(K){this.accessToken=K,window.sessionStorage.setItem("EdgeX_Access_Token",this.accessToken)}getAccessToken(){if(this.accessToken)return this.accessToken;let K=window.sessionStorage.getItem("EdgeX_Access_Token");return K&&(this.accessToken=K),this.accessToken}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.eN),y.LFG(ce.T))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2468:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(5894),u=O(476),ce=O(1841),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-data",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.endpointHealthUrl=`${this.urlPrefix}/ping`,this.eventCountUrl=`${this.urlPrefix}/event/count`,this.readingCountUrl=`${this.urlPrefix}/reading/count`,this.allEventsUrl=`${this.urlPrefix}/event/all`,this.allReadingsUrl=`${this.urlPrefix}/reading/all`,this.associatedEventsByDeviceNameUrl=`${this.urlPrefix}/event/device/name/`,this.associatedReadinsByDeviceNameUrl=`${this.urlPrefix}/reading/device/name/`}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}endpointHealth(){return this.http.get(`${this.endpointHealthUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}eventCount(){return this.http.get(`${this.eventCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}readingCount(){return this.http.get(`${this.readingCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}allEventsPagination(P,x){return this.http.get(`${this.allEventsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allReadingsPagination(P,x){return this.http.get(`${this.allReadingsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedReadingsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedEventsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedEventsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedReadinsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}}return Q.\u0275fac=function(P){return new(P||Q)(u.LFG(ce.eN),u.LFG(re.T))},Q.\u0275prov=u.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},4889:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>re});var y=O(8567),u=O(476),ce=O(7822);let re=(()=>{class te{constructor(K){this.msgSvc=K}handleErrorForAPI(K){let P=Object.prototype.toString.call(K);if("[object Array]"===P){if(!K[0].statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K[0].statusCode}, message: ${K[0].message}`),!0}else if("[object Object]"===P&&!K.statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K.statusCode}, message: ${K.message}`),!0;return!1}handleError(K){return K.error instanceof ErrorEvent?this.msgSvc.errors(`'An error occurred:', ${K.error.message}`):"[object Object]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.error.statusCode} , message: ${K.error.message}`):"[object String]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.status} , message: ${K.error}`):this.msgSvc.errors(`code: ${K.status} , message: ${K.message}`),(0,y._)(`Backend returned code ${K.status}, body was: ${K.error.message}`)}}return te.\u0275fac=function(K){return new(K||te)(u.LFG(ce.e))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2437:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-metadata",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.devicesListUrl=`${this.urlPrefix}/device/all`,this.addOneDeviceUrl=`${this.urlPrefix}/device`,this.updateOneDeviceUrl=`${this.urlPrefix}/device`,this.deleteOneDeviceByIdUrl=`${this.urlPrefix}/device/Id`,this.deleteOneDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByIdUrl=`${this.urlPrefix}/device/id`,this.findDevicesByServiceIdUrl=`${this.urlPrefix}/device/service/id`,this.findDevicesByServiceNameUrl=`${this.urlPrefix}/device/service/name`,this.findDevicesByProfileIdUrl=`${this.urlPrefix}/device/profile/id`,this.findDevicesByProfileNameUrl=`${this.urlPrefix}/device/profile/name`,this.deviceServicesListUrl=`${this.urlPrefix}/deviceservice/all`,this.updateDeviceServiceUrl=`${this.urlPrefix}/deviceservice`,this.findDeviceServiceByIdUrl=`${this.urlPrefix}/deviceservice/id`,this.findDeviceServiceByNameUrl=`${this.urlPrefix}/deviceservice/name`,this.deviceProfilesListUrl=`${this.urlPrefix}/deviceprofile/all`,this.findProfilesByIdUrl=`${this.urlPrefix}/deviceprofile`,this.findProfilesByNameUrl=`${this.urlPrefix}/deviceprofile/name`,this.updateDeviceProfileUrl=`${this.urlPrefix}/deviceprofile`,this.uploadProfileYamlFileUrl=`${this.urlPrefix}/deviceprofile/uploadfile`,this.uploadProfileYamlContentUrl=`${this.urlPrefix}/deviceprofile/upload`,this.deviceProfileYamlUrl=`${this.urlPrefix}/deviceprofile/yaml`,this.deleteProfileByIdUrl=`${this.urlPrefix}/deviceprofile/id`,this.deleteProfileByNamedUrl=`${this.urlPrefix}/deviceprofile/name`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevices(){return this.http.get(`${this.devicesListUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevicesPagination(P,x){return this.http.get(`${this.devicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addDevice(P){let x=`${this.addOneDeviceUrl}`;return P.apiVersion="v3",this.http.post(x,JSON.stringify([{apiVersion:"v3",device:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneDeviceByName(P){return this.http.delete(`${this.deleteOneDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneDeviceById(P){return this.http.delete(`${this.deleteOneDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDevice(P){return this.http.patch(`${this.updateOneDeviceUrl}`,JSON.stringify([{apiVersion:"v3",device:P}]),{headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDeviceByName(P){return this.http.get(`${this.findDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDeviceById(P){return this.http.get(`${this.findDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceId(P){return this.http.get(`${this.findDevicesByServiceIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceName(P,x,U){return this.http.get(`${this.findDevicesByServiceNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findDevicesByProfileId(P){return this.http.get(`${this.findDevicesByProfileIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByProfileName(P,x,U){return this.http.get(`${this.findDevicesByProfileNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}allDeviceServices(){return this.http.get(`${this.deviceServicesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllDeviceServicesPagination(P,x){return this.http.get(`${this.deviceServicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateDeviceService(P){return this.http.patch(`${this.updateDeviceServiceUrl}`,JSON.stringify([{apiVersion:"v3",service:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDevcieServiceById(P){return this.http.get(`${this.findDeviceServiceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevcieServiceByName(P){return this.http.get(`${this.findDeviceServiceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allDeviceProfoles(){return this.http.get(`${this.deviceProfilesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDeviceProfolesPagination(P,x){return this.http.get(`${this.deviceProfilesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addProfileYamlByNameViaUIBackend(P){return this.http.request("POST","/api/v3/profile/yaml",{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileById(P){return this.http.get(`${this.findProfilesByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileByName(P){return this.http.get(`${this.findProfilesByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlByNameViaUIBackend(P){return this.http.request("GET","/api/v3/profile/yaml/name/"+P,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlFile(P){return this.http.request("POST",`${this.uploadProfileYamlFileUrl}`,{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDeviceProfile(P){return this.http.put(`${this.updateDeviceProfileUrl}`,P,this.httpPostOrPutJSONOptions).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateProfileYamlContentViaUIBackend(P){return this.http.put("/api/v3/profile/yaml",P,{headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlContent(P){return this.http.request("POST",`${this.uploadProfileYamlContentUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlById(P){return this.http.request("GET",`${this.deviceProfileYamlUrl}/${P}`,{responseType:"text"})}deleteProfileById(P){return this.http.delete(`${this.deleteProfileByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteProfileByName(P){return this.http.delete(`${this.deleteProfileByNamedUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},9744:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-notifications",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.findNotificationByCategoryUrl=`${this.urlPrefix}/notification/category/`,this.findNotificationByLabelUrl=`${this.urlPrefix}/notification/label/`,this.findNotificationByStatusUrl=`${this.urlPrefix}/notification/status/`,this.findNotificationByStartEndUrl=`${this.urlPrefix}/notification/start/`,this.deleteNotificationByIdUrl=`${this.urlPrefix}/notification/id/`,this.deleteNotificationByAgeAndStatusUrl=`${this.urlPrefix}/notification/age/`,this.cleanupNotificationByAgeUrl=`${this.urlPrefix}/cleanup/age/`,this.cleanupNotificationAllUrl=`${this.urlPrefix}/cleanup`,this.findAllSubscriptionsPaginationUrl=`${this.urlPrefix}/subscription/all`,this.findAllSubscriptionsByCategoryPaginationUrl=`${this.urlPrefix}/subscription/category/`,this.findAllSubscriptionsByLabelPaginationUrl=`${this.urlPrefix}/subscription/label/`,this.findAllSubscriptionsByReceiverPaginationUrl=`${this.urlPrefix}/subscription/receiver/`,this.findOneSubscriptionsByNameUrl=`${this.urlPrefix}/subscription/name/`,this.addOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.updateOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.deleteOneSubscriptionByNameUrl=`${this.urlPrefix}/subscription/name/`,this.httpPostOrPutOrPatchJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findNotificationsByCategoryPagination(P,x,U){return this.http.get(`${this.findNotificationByCategoryUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByLabelPagination(P,x,U){return this.http.get(`${this.findNotificationByLabelUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStatusPagination(P,x,U){return this.http.get(`${this.findNotificationByStatusUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStartEndPagination(P,x,U,Y){return this.http.get(`${this.findNotificationByStartEndUrl}${U}/end/${Y}?offset=${P}&limit=${x}`).pipe((0,u.K)(Ee=>this.errorSvc.handleError(Ee)))}deleteNotificationByAgeAndStatus(P){return this.http.delete(`${this.deleteNotificationByAgeAndStatusUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteNotificationById(P){return this.http.delete(`${this.deleteNotificationByIdUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationByAge(P){return this.http.delete(`${this.cleanupNotificationByAgeUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationAll(){return this.http.delete(`${this.cleanupNotificationAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllSubscriptionPagination(P,x){return this.http.get(`${this.findAllSubscriptionsPaginationUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findOneSubscriptionByName(P){return this.http.get(`${this.findOneSubscriptionsByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}addOneSubscription(P){return this.http.post(`${this.addOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateOneSubscription(P){return this.http.patch(`${this.updateOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneSubscriptionByName(P){return this.http.delete(`${this.deleteOneSubscriptionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},3692:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.version="/api/v3",this.pingUrl=`${this.version}/registrycenter/ping`,this.appSvcDeployConfigUrl=`${this.version}/registrycenter/deploy`,this.appSvcGetConfigUrl=`${this.version}/registrycenter/config`,this.appSvcAllUrl=`${this.version}/registrycenter/service/all`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}getAppSvcConfigBySvcKey(P){return this.http.get(`${this.appSvcGetConfigUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deployToConsul(P,x){return this.http.post(`${this.appSvcDeployConfigUrl}/${x}`,JSON.stringify(P),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllAppSvc(){return this.http.get(`${this.appSvcAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},4791:(Ye,me,O)=>{"use strict";O.d(me,{n:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/rules-engine",this.version="",this.pingUrl=`${this.endpoint}${this.version}/ping`,this.streamUrl=`${this.endpoint}${this.version}/streams`,this.ruleUrl=`${this.endpoint}${this.version}/rules`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}addStream(P){return this.http.request("POST",`${this.streamUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneStreamById(P){return this.http.delete(`${this.streamUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateStream(P,x){return this.http.request("PUT",`${this.streamUrl}/${x}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findStreamByName(P){return this.http.get(`${this.streamUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allStreams(){return this.http.get(`${this.streamUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}addRule(P){return this.http.request("POST",`${this.ruleUrl}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneRuleById(P){return this.http.delete(`${this.ruleUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateRule(P){return this.http.request("PUT",`${this.ruleUrl}/${P.id}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findRuleById(P){return this.http.get(`${this.ruleUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allRules(){return this.http.get(`${this.ruleUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}getRuleStatusMetricsById(P){return this.http.get(`${this.ruleUrl}/${P}/status`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}getRuleTopoById(P){return this.http.get(`${this.ruleUrl}/${P}/topo`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}executeRuleCommand(P,x){return this.http.post(`${this.ruleUrl}/${P}/${x}`,null,{responseType:"text"}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},8391:(Ye,me,O)=>{"use strict";O.d(me,{G:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-scheduler",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.intervalListUrl=`${this.urlPrefix}/interval/all`,this.addOneIntervalUrl=`${this.urlPrefix}/interval`,this.updateOneIntervalUrl=`${this.urlPrefix}/interval`,this.findOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.deleteOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.intervalActionListUrl=`${this.urlPrefix}/intervalaction/all`,this.addOneIntervalActionUrl=`${this.urlPrefix}/intervalaction`,this.updateOneIntervaActionlUrl=`${this.urlPrefix}/intervalaction`,this.findOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.deleteOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllIntervalsPagination(P,x){return this.http.get(`${this.intervalListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addInterval(P){return this.http.post(`${this.addOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateInterval(P){return this.http.patch(`${this.updateOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalByName(P){return this.http.get(`${this.findOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalByName(P){return this.http.delete(`${this.deleteOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findAllIntervalActionsPagination(P,x){return this.http.get(`${this.intervalActionListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addIntervalAction(P){return this.http.post(`${this.addOneIntervalActionUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateIntervalAction(P){return this.http.patch(`${this.updateOneIntervaActionlUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalActionByName(P){return this.http.get(`${this.findOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalActionByName(P){return this.http.delete(`${this.deleteOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},9386:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>Q});var y=O(1841),u=O(5894),ce=O(476),re=O(4889),te=O(3692);let Q=(()=>{class K{constructor(x,U,Y){this.http=x,this.errorSvc=U,this.registrySvc=Y,this.endpoint="/sys-mgmt-agent",this.version2="/api/v3",this.urlPrefix=`${this.endpoint}${this.version2}`,this.pingUrl="/ping",this.allRegisteredSvcUrl="/api/v3/registrycenter/service/all",this.configUrl=`${this.urlPrefix}/system/config`,this.metricsUrl=`${this.urlPrefix}/system/metrics`,this.healthUrl=`${this.urlPrefix}/system/health`,this.operationUrl=`${this.urlPrefix}/system/operation`,this.httpPostOrPutOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getRegisteredServiceAll(){return this.registrySvc.getAllAppSvc()}getConfigBySvcName(x){return this.http.get(`${this.configUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getMetricsBySvcName(x){return this.http.get(`${this.metricsUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllSvcHealth(x){return this.http.get(`${this.healthUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}operate(x){return this.http.post(`${this.operationUrl}`,JSON.stringify(x),this.httpPostOrPutOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}startV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"start"}])}stopV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"stop"}])}restartV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"restart"}])}}return K.\u0275fac=function(x){return new(x||K)(ce.LFG(y.eN),ce.LFG(re.T),ce.LFG(te.r))},K.\u0275prov=ce.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},4705:(Ye,me,O)=>{"use strict";var y=O(8583),u=O(476);class ce extends y.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class re extends ce{static makeCurrent(){(0,y.HT)(new re)}onAndCancel(F,A,L){return F.addEventListener(A,L,!1),()=>{F.removeEventListener(A,L,!1)}}dispatchEvent(F,A){F.dispatchEvent(A)}remove(F){F.parentNode&&F.parentNode.removeChild(F)}createElement(F,A){return(A=A||this.getDefaultDocument()).createElement(F)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(F){return F.nodeType===Node.ELEMENT_NODE}isShadowRoot(F){return F instanceof DocumentFragment}getGlobalEventTarget(F,A){return"window"===A?window:"document"===A?F:"body"===A?F.body:null}getBaseHref(F){const A=(te=te||document.querySelector("base"),te?te.getAttribute("href"):null);return null==A?null:function(N){K=K||document.createElement("a"),K.setAttribute("href",N);const F=K.pathname;return"/"===F.charAt(0)?F:`/${F}`}(A)}resetBaseElement(){te=null}getUserAgent(){return window.navigator.userAgent}getCookie(F){return(0,y.Mx)(document.cookie,F)}}let K,te=null;const x=new u.OlP("TRANSITION_ID"),Y=[{provide:u.ip1,useFactory:function(N,F,A){return()=>{A.get(u.CZH).donePromise.then(()=>{const L=(0,y.q)(),ne=F.querySelectorAll(`style[ng-transition="${N}"]`);for(let Oe=0;Oe{const Oe=F.findTestabilityInTree(L,ne);if(null==Oe)throw new Error("Could not find testability for element.");return Oe},u.dqk.getAllAngularTestabilities=()=>F.getAllTestabilities(),u.dqk.getAllAngularRootElements=()=>F.getAllRootElements(),u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(L=>{const ne=u.dqk.getAllAngularTestabilities();let Oe=ne.length,je=!1;const Et=function(Nt){je=je||Nt,Oe--,0==Oe&&L(je)};ne.forEach(function(Nt){Nt.whenStable(Et)})})}findTestabilityInTree(F,A,L){if(null==A)return null;const ne=F.getTestability(A);return null!=ne?ne:L?(0,y.q)().isShadowRoot(A)?this.findTestabilityInTree(F,A.host,!0):this.findTestabilityInTree(F,A.parentElement,!0):null}}let Ee=(()=>{class N{build(){return new XMLHttpRequest}}return N.\u0275fac=function(A){return new(A||N)},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const X=new u.OlP("EventManagerPlugins");let ue=(()=>{class N{constructor(A,L){this._zone=L,this._eventNameToPlugin=new Map,A.forEach(ne=>ne.manager=this),this._plugins=A.slice().reverse()}addEventListener(A,L,ne){return this._findPluginFor(L).addEventListener(A,L,ne)}addGlobalEventListener(A,L,ne){return this._findPluginFor(L).addGlobalEventListener(A,L,ne)}getZone(){return this._zone}_findPluginFor(A){const L=this._eventNameToPlugin.get(A);if(L)return L;const ne=this._plugins;for(let Oe=0;Oe{class N{constructor(){this._stylesSet=new Set}addStyles(A){const L=new Set;A.forEach(ne=>{this._stylesSet.has(ne)||(this._stylesSet.add(ne),L.add(ne))}),this.onStylesAdded(L)}onStylesAdded(A){}getAllStyles(){return Array.from(this._stylesSet)}}return N.\u0275fac=function(A){return new(A||N)},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})(),ze=(()=>{class N extends ie{constructor(A){super(),this._doc=A,this._hostNodes=new Map,this._hostNodes.set(A.head,[])}_addStylesToHost(A,L,ne){A.forEach(Oe=>{const je=this._doc.createElement("style");je.textContent=Oe,ne.push(L.appendChild(je))})}addHost(A){const L=[];this._addStylesToHost(this._stylesSet,A,L),this._hostNodes.set(A,L)}removeHost(A){const L=this._hostNodes.get(A);L&&L.forEach(ee),this._hostNodes.delete(A)}onStylesAdded(A){this._hostNodes.forEach((L,ne)=>{this._addStylesToHost(A,ne,L)})}ngOnDestroy(){this._hostNodes.forEach(A=>A.forEach(ee))}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();function ee(N){(0,y.q)().remove(N)}const Ie={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/"},be=/%COMP%/g;function It(N,F,A){for(let L=0;L{if("__ngUnwrap__"===F)return N;!1===N(F)&&(F.preventDefault(),F.returnValue=!1)}}let gn=(()=>{class N{constructor(A,L,ne){this.eventManager=A,this.sharedStylesHost=L,this.appId=ne,this.rendererByCompId=new Map,this.defaultRenderer=new Tt(A)}createRenderer(A,L){if(!A||!L)return this.defaultRenderer;switch(L.encapsulation){case u.ifc.Emulated:{let ne=this.rendererByCompId.get(L.id);return ne||(ne=new Rn(this.eventManager,this.sharedStylesHost,L,this.appId),this.rendererByCompId.set(L.id,ne)),ne.applyToHost(A),ne}case 1:case u.ifc.ShadowDom:return new xt(this.eventManager,this.sharedStylesHost,A,L);default:if(!this.rendererByCompId.has(L.id)){const ne=It(L.id,L.styles,[]);this.sharedStylesHost.addStyles(ne),this.rendererByCompId.set(L.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(ue),u.LFG(ze),u.LFG(u.AFp))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();class Tt{constructor(F){this.eventManager=F,this.data=Object.create(null)}destroy(){}createElement(F,A){return A?document.createElementNS(Ie[A]||A,F):document.createElement(F)}createComment(F){return document.createComment(F)}createText(F){return document.createTextNode(F)}appendChild(F,A){F.appendChild(A)}insertBefore(F,A,L){F&&F.insertBefore(A,L)}removeChild(F,A){F&&F.removeChild(A)}selectRootElement(F,A){let L="string"==typeof F?document.querySelector(F):F;if(!L)throw new Error(`The selector "${F}" did not match any elements`);return A||(L.textContent=""),L}parentNode(F){return F.parentNode}nextSibling(F){return F.nextSibling}setAttribute(F,A,L,ne){if(ne){A=ne+":"+A;const Oe=Ie[ne];Oe?F.setAttributeNS(Oe,A,L):F.setAttribute(A,L)}else F.setAttribute(A,L)}removeAttribute(F,A,L){if(L){const ne=Ie[L];ne?F.removeAttributeNS(ne,A):F.removeAttribute(`${L}:${A}`)}else F.removeAttribute(A)}addClass(F,A){F.classList.add(A)}removeClass(F,A){F.classList.remove(A)}setStyle(F,A,L,ne){ne&(u.JOm.DashCase|u.JOm.Important)?F.style.setProperty(A,L,ne&u.JOm.Important?"important":""):F.style[A]=L}removeStyle(F,A,L){L&u.JOm.DashCase?F.style.removeProperty(A):F.style[A]=""}setProperty(F,A,L){F[A]=L}setValue(F,A){F.nodeValue=A}listen(F,A,L){return"string"==typeof F?this.eventManager.addGlobalEventListener(F,A,tn(L)):this.eventManager.addEventListener(F,A,tn(L))}}class Rn extends Tt{constructor(F,A,L,ne){super(F),this.component=L;const Oe=It(ne+"-"+L.id,L.styles,[]);A.addStyles(Oe),this.contentAttr="_ngcontent-%COMP%".replace(be,ne+"-"+L.id),this.hostAttr="_nghost-%COMP%".replace(be,ne+"-"+L.id)}applyToHost(F){super.setAttribute(F,this.hostAttr,"")}createElement(F,A){const L=super.createElement(F,A);return super.setAttribute(L,this.contentAttr,""),L}}class xt extends Tt{constructor(F,A,L,ne){super(F),this.sharedStylesHost=A,this.hostEl=L,this.shadowRoot=L.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Oe=It(ne.id,ne.styles,[]);for(let je=0;je{class N extends Ae{constructor(A){super(A)}supports(A){return!0}addEventListener(A,L,ne){return A.addEventListener(L,ne,!1),()=>this.removeEventListener(A,L,ne)}removeEventListener(A,L,ne){return A.removeEventListener(L,ne)}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const Re=["alt","control","meta","shift"],xe={"\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"},Ne={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Qe={alt:N=>N.altKey,control:N=>N.ctrlKey,meta:N=>N.metaKey,shift:N=>N.shiftKey};let ot=(()=>{class N extends Ae{constructor(A){super(A)}supports(A){return null!=N.parseEventName(A)}addEventListener(A,L,ne){const Oe=N.parseEventName(L),je=N.eventCallback(Oe.fullKey,ne,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,y.q)().onAndCancel(A,Oe.domEventName,je))}static parseEventName(A){const L=A.toLowerCase().split("."),ne=L.shift();if(0===L.length||"keydown"!==ne&&"keyup"!==ne)return null;const Oe=N._normalizeKey(L.pop());let je="";if(Re.forEach(Nt=>{const $t=L.indexOf(Nt);$t>-1&&(L.splice($t,1),je+=Nt+".")}),je+=Oe,0!=L.length||0===Oe.length)return null;const Et={};return Et.domEventName=ne,Et.fullKey=je,Et}static getEventFullKey(A){let L="",ne=function(N){let F=N.key;if(null==F){if(F=N.keyIdentifier,null==F)return"Unidentified";F.startsWith("U+")&&(F=String.fromCharCode(parseInt(F.substring(2),16)),3===N.location&&Ne.hasOwnProperty(F)&&(F=Ne[F]))}return xe[F]||F}(A);return ne=ne.toLowerCase()," "===ne?ne="space":"."===ne&&(ne="dot"),Re.forEach(Oe=>{Oe!=ne&&Qe[Oe](A)&&(L+=Oe+".")}),L+=ne,L}static eventCallback(A,L,ne){return Oe=>{N.getEventFullKey(Oe)===A&&ne.runGuarded(()=>L(Oe))}}static _normalizeKey(A){switch(A){case"esc":return"escape";default:return A}}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const br=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:y.bD},{provide:u.g9A,useValue:function(){re.makeCurrent(),ae.init()},multi:!0},{provide:y.K0,useFactory:function(){return(0,u.RDi)(document),document},deps:[]}]),Gr=[[],{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function(){return new u.qLn},deps:[]},{provide:X,useClass:Hr,multi:!0,deps:[y.K0,u.R0b,u.Lbi]},{provide:X,useClass:ot,multi:!0,deps:[y.K0]},[],{provide:gn,useClass:gn,deps:[ue,ze,u.AFp]},{provide:u.FYo,useExisting:gn},{provide:ie,useExisting:ze},{provide:ze,useClass:ze,deps:[y.K0]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b]},{provide:ue,useClass:ue,deps:[X,u.R0b]},{provide:y.JF,useClass:Ee,deps:[]},[]];let gi=(()=>{class N{constructor(A){if(A)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(A){return{ngModule:N,providers:[{provide:u.AFp,useValue:A.appId},{provide:x,useExisting:u.AFp},Y]}}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(N,12))},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({providers:Gr,imports:[y.ez,u.hGG]}),N})();"undefined"!=typeof window&&window;var tt=O(1841),ht=O(3092),ut=O(9502),Jt=O(8253),Bt=O(5894),kn=O(8567),Ot=O(4889);let wr=(()=>{class N{constructor(A,L){this.http=A,this.errorSvc=L,this.endpoint="",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.secureModeUrl=`${this.urlPrefix}/auth/securemode`}getSecureMode(){return this.http.get(`${this.secureModeUrl}`,{responseType:"text"}).pipe((0,Bt.K)(L=>this.errorSvc.handleError(L)))}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(tt.eN),u.LFG(Ot.T))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();var Vn=O(7556);let Ze=(()=>{class N{constructor(A,L,ne,Oe,je){this.initSvc=A,this.errorSvc=L,this.authSvc=ne,this.router=Oe,this.route=je}ngOnInit(){this.initializor()}initializor(){this.environmentCheck()}environmentCheck(){this.progressMsg="environment checking",this.initSvc.getSecureMode().subscribe(A=>{"secure"===A?(this.authSvc.isSecureMode=!0,this.tokenValidate()):(this.authSvc.isSecureMode=!1,this.navigateToHome())})}tokenValidate(){this.progressMsg="access token validating",this.authSvc.tokenValidate().pipe((0,Bt.K)(A=>(this.authSvc.isLoggedIn=!1,this.router.navigate(["/login"],{relativeTo:this.route}),(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.navigateToHome()})}navigateToHome(){this.router.navigate(["/dashboard"],{relativeTo:this.route})}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(wr),u.Y36(Ot.T),u.Y36(Vn.e),u.Y36(ut.F0),u.Y36(ut.gz))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-initializer"]],decls:16,vars:1,consts:[[1,"init","text-center","bg-dark"],[1,"init-progress"],["role","status",1,"spinner-grow","text-success"],[1,"sr-only"],["role","status",1,"spinner-grow","text-danger"],["role","status",1,"spinner-grow","text-warning"],["role","status",1,"spinner-grow","text-info"],[1,"text-light"]],template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span",3),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"span",3),u._uU(7,"Loading..."),u.qZA(),u.qZA(),u.TgZ(8,"div",5),u.TgZ(9,"span",3),u._uU(10,"Loading..."),u.qZA(),u.qZA(),u.TgZ(11,"div",6),u.TgZ(12,"span",3),u._uU(13,"Loading..."),u.qZA(),u.qZA(),u.TgZ(14,"p",7),u._uU(15),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(15),u.hij("",L.progressMsg,"..."))},styles:[".init[_ngcontent-%COMP%]{position:fixed;top:0;bottom:-100px;left:0;right:0;z-index:999}.init-progress[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:45%}"]}),N})();var fr=O(1964),Zn=O(2468),_n=O(2437),hn=O(9744),Ht=O(8391),Un=O(4791),Bn=O(9386),Gt=O(3692);function Mt(N,F){if(1&N&&(u.TgZ(0,"p",6),u._UZ(1,"span",7),u._uU(2),u.qZA()),2&N){const A=u.oxw();u.xp6(2),u.hij(" The ",A.svcName," service is inaccessible!!! please try again later! ")}}const Ar=[{path:"dashboard",canLoad:[Jt.a],loadChildren:()=>O.e(849).then(O.bind(O,8849)).then(N=>N.DashboardModule)},{path:"metadata",canLoad:[Jt.a],loadChildren:()=>O.e(10).then(O.bind(O,4010)).then(N=>N.MetadataModule)},{path:"core-data",canLoad:[Jt.a],loadChildren:()=>O.e(489).then(O.bind(O,3489)).then(N=>N.CoreDataModule)},{path:"notifications",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(827),O.e(634)]).then(O.bind(O,2634)).then(N=>N.NotificationsModule)},{path:"scheduler",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(827),O.e(707),O.e(536)]).then(O.bind(O,5886)).then(N=>N.SchedulerModule)},{path:"rule-engine",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(10),O.e(753),O.e(707),O.e(155)]).then(O.bind(O,4155)).then(N=>N.RuleEngineModule)},{path:"app-service",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(10),O.e(753),O.e(894)]).then(O.bind(O,894)).then(N=>N.AppServiceModule)},{path:"initializer",component:Ze},{path:"svc-unavailable",component:(()=>{class N{constructor(A,L,ne,Oe,je,Et,Nt,$t,Tr){this.router=A,this.route=L,this.coredataSvc=ne,this.metadataSvc=Oe,this.notiSvc=je,this.schedulerSvc=Et,this.ruleSvc=Nt,this.systemSvc=$t,this.registrySvc=Tr,this.refresgMsg=!1,this.refreshBtnDisable=!1}ngOnInit(){this.route.queryParams.subscribe(A=>{this.svcName=A.svcName,this.routerPath=A.routerPath})}refresh(){this.refreshBtnDisable=!0,this.ping().pipe((0,Bt.K)(A=>(this.refresgMsg=!0,window.setTimeout(()=>{this.refresgMsg=!1,this.refreshBtnDisable=!1},3e3),(0,kn._)(()=>"Something bad happened; please try again later.")))).subscribe(()=>this.router.navigate([`${this.routerPath}`]))}ping(){switch(this.svcName){case"core data":return this.coredataSvc.ping();case"metadata":return this.metadataSvc.ping();case"scheduler":return this.schedulerSvc.ping();case"notification":return this.notiSvc.ping();case"rule engine":return this.ruleSvc.ping();case"system agent":return this.systemSvc.ping();case"registry center":return this.registrySvc.ping();default:return(0,fr.of)()}}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(ut.F0),u.Y36(ut.gz),u.Y36(Zn.D),u.Y36(_n.D),u.Y36(hn.T),u.Y36(Ht.G),u.Y36(Un.n),u.Y36(Bn.J),u.Y36(Gt.r))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-service-unavailable"]],decls:11,vars:5,consts:[["class","alert alert-danger","role","alert",4,"ngIf"],[1,"jumbotron"],[1,"display-5"],[1,"lead"],[1,"my-4"],["role","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"]],template:function(A,L){1&A&&(u.YNc(0,Mt,3,1,"p",0),u.TgZ(1,"div",1),u.TgZ(2,"h2",2),u._uU(3),u.qZA(),u.TgZ(4,"p",3),u._uU(5),u.qZA(),u._UZ(6,"hr",4),u.TgZ(7,"p"),u._uU(8,"EdgeXFoundry uses a microservices architecture, each service is running independently, please make sure that the current service is already running, if you have manually started the service, click the Refresh button."),u.qZA(),u.TgZ(9,"button",5),u.NdJ("click",function(){return L.refresh()}),u._uU(10,"Refresh"),u.qZA(),u.qZA()),2&A&&(u.Q6J("ngIf",L.refresgMsg),u.xp6(3),u.hij("Oops!!! ",L.svcName," service is unavailable!"),u.xp6(2),u.AsE("This could be a network reason, or it could be that the ",L.svcName," microservice is not running, make sure there is no network problem or that the ",L.svcName," service is already running!"),u.xp6(4),u.Q6J("disabled",L.refreshBtnDisable))},directives:[y.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),N})()}];let ir=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[ut.Bz.forRoot(Ar,{useHash:!0})],ut.Bz]}),N})();var qn=O(4689),hr=O(7822);function Wt(N,F){if(1&N){const A=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",3),u.TgZ(2,"span",4),u.NdJ("click",function(){const Oe=u.CHM(A).$implicit;return u.oxw(2).close(Oe)}),u.TgZ(3,"span",5),u._uU(4,"\xd7"),u.qZA(),u.qZA(),u.TgZ(5,"div"),u._uU(6),u.qZA(),u.qZA(),u.qZA()}if(2&N){const A=F.$implicit;u.xp6(1),u.Tol(A.class),u.xp6(5),u.hij(" ",A.content," ")}}function $n(N,F){if(1&N&&(u.TgZ(0,"div",1),u.YNc(1,Wt,7,3,"div",2),u.qZA()),2&N){const A=u.oxw();u.xp6(1),u.Q6J("ngForOf",A.messageService.messages)}}let Zt=(()=>{class N{constructor(A){this.messageService=A}ngOnInit(){}close(A){this.messageService.messages.splice(this.messageService.messages.indexOf(A),1)}ngOnDestroy(){this.timer&&clearInterval(this.timer)}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(hr.e))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-message"]],decls:1,vars:1,consts:[["class","position-fixed overflow-hidden text-break","style","top: 10px; right: 0;min-width: 300px; max-width: 300px;z-index: 999;",4,"ngIf"],[1,"position-fixed","overflow-hidden","text-break",2,"top","10px","right","0","min-width","300px","max-width","300px","z-index","999"],[4,"ngFor","ngForOf"],["role","alert"],["type","button","aria-label","Close",1,"btn","btn-lg","close",3,"click"],["aria-hidden","true"]],template:function(A,L){1&A&&u.YNc(0,$n,2,1,"div",0),2&A&&u.Q6J("ngIf",L.messageService.messages.length)},directives:[y.O5,y.sg],styles:[""]}),N})();function Sr(N,F){if(1&N&&(u.TgZ(0,"a",49),u._uU(1),u.qZA()),2&N){const A=u.oxw().$implicit,L=u.oxw();u.s9C("routerLink",L.navChainMap.get(A)),u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function sn(N,F){if(1&N&&(u.TgZ(0,"span",50),u._uU(1),u.qZA()),2&N){const A=u.oxw().$implicit,L=u.oxw();u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function Dn(N,F){1&N&&(u.TgZ(0,"span"),u._uU(1,">"),u.qZA())}function pr(N,F){if(1&N&&(u.TgZ(0,"h6",35),u.YNc(1,Sr,2,2,"a",47),u.YNc(2,sn,2,1,"span",48),u.YNc(3,Dn,2,0,"span",46),u.qZA()),2&N){const A=F.index,L=u.oxw();u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1)}}function Mr(N,F){1&N&&(u.TgZ(0,"div",51),u.TgZ(1,"div"),u._UZ(2,"span",52),u.TgZ(3,"span"),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.qZA())}function jn(N,F){1&N&&u._UZ(0,"router-outlet")}const Pt=function(){return{exact:!1}};let Ir=(()=>{class N{constructor(A,L){this.activatedRoute=A,this.router=L,this.title="EdgeX Console",this.isSelected=!1,this.toggleClass="",this.shrink=!1,this.shrinkSidebarOnly=!1,this.shrinkCenterNo=!1,this.navChainMap=new Map,this.navChainCache=[],this.navChain=[],this.currentNav="",this.loading=!1,this.navRecognized=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.R9)),this.navStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.OD)),this.navEnd=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.m2)),this.childStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.Eb))}ngOnInit(){this.router.events.subscribe(A=>{A instanceof ut.OD&&(this.loading=!0),(A instanceof ut.m2||A instanceof ut.gk||A instanceof ut.Q3)&&(this.loading=!1)}),this.navEnd.subscribe(A=>{this.navChainCache=[],this.navChainMap=new Map,this.currentNav=A.urlAfterRedirects.split("?")[0].split("/").pop(),this.navChain=A.urlAfterRedirects.split("?")[0].split("/"),this.navChain.shift();let L=this;this.navChain.map(Oe=>Oe).reverse().forEach(function(Oe,je){let $t=L.navChain.map(Tr=>Tr).reverse().slice(je).reverse().join("/");L.navChainCache.push("/"+$t),L.navChainMap.set(Oe,"/"+$t)}),this.navChainCache.reverse()}),$(window).resize(()=>{this.shrinkCenterNo=!1,this.shrink=document.body.clientWidth<1340}),this.router.navigate(["/initializer"],{relativeTo:this.activatedRoute})}pathFormat(A){let L=A.split("-");return L.forEach((ne,Oe)=>{L[Oe]=ne.charAt(0).toUpperCase()+ne.substring(1)}),L.join(" ")}sideBarToggle(){this.shrink?(document.body.clientWidth<1340&&(this.shrinkCenterNo=!0),this.shrink=!1):(document.body.clientWidth<1340&&(this.shrinkCenterNo=!1),this.shrink=!0)}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(ut.gz),u.Y36(ut.F0))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-root"]],decls:60,vars:44,consts:function(){let F,A,L,ne,Oe,je,Et,Nt;return F="\u4EEA\u8868\u76D8",A="\u8BBE\u5907\u7BA1\u7406",L="\u6570\u636E\u4E2D\u5FC3",ne="\u4EFB\u52A1\u8C03\u5EA6",Oe="\u901A\u77E5\u670D\u52A1",je="\u89C4\u5219\u5F15\u64CE",Et="\u5E94\u7528\u670D\u52A1",Nt="\u4E2D\u6587\u7B80\u4F53",[[1,"container-fluid"],[1,"row"],[1,"px-0"],[1,"sidebar-center","font-weight-bold","text-white","vh-100"],[1,"sidebar-header","p-2"],["src","assets/img/bg_x.png","width","35","height","34","alt","","loading","lazy",1,"mt-2"],[1,"float-right","mt-3","mr-2"],["role","button",1,"fa","fa-navicon","fa-lg","text-light",3,"click"],[1,"overflow-hidden"],[1,"nav","flex-column"],["data-testid","menu-item-dashboard","routerLink","/dashboard","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-tachometer","fa-fw","mr-5"],["data-testid","menu-item-dashboard-text"],F,["routerLink","/metadata","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cubes","fa-fw","mr-5"],A,["routerLink","/core-data","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-database","fa-fw","mr-5"],L,["routerLink","/scheduler","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-clock-o","fa-fw","mr-5"],ne,["routerLink","/notifications","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-envelope","fa-fw","mr-5"],Oe,["routerLink","/rule-engine","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-sliders","fa-fw","mr-5"],je,["routerLink","/app-service","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cloud-upload","fa-fw","mr-5"],Et,[1,"col-12"],[1,"bg-light","center-header","px-3","pt-2","font-weight-bold"],[1,"nav-router","mw-100","align-middle"],[1,"d-inline"],[1,"dropdown","float-right"],["id","dropdownLangLink","type","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","btn-sm","dropdown-toggle"],Nt,["aria-labelledby","dropdownLangLink",1,"dropdown-menu","dropdown-menu-sm","dropdown-menu-right"],["href","/",1,"dropdown-item"],["href","/zh",1,"dropdown-item"],[1,"mw-100","align-middle","mt-1"],["class","d-inline",4,"ngFor","ngForOf"],[1,"center-center","p-3"],["class","text-center","style","margin-top: 20%;",4,"ngIf"],[4,"ngIf"],["class","text-decoration-none d-inline",3,"routerLink",4,"ngIf"],["class","text-decoration-none d-inline",4,"ngIf"],[1,"text-decoration-none","d-inline",3,"routerLink"],[1,"text-decoration-none","d-inline"],[1,"text-center",2,"margin-top","20%"],["role","status","aria-hidden","true",1,"spinner-border","mr-2"]]},template:function(A,L){1&A&&(u._UZ(0,"app-message"),u.TgZ(1,"div",0),u.TgZ(2,"div",1),u.TgZ(3,"div",2),u.TgZ(4,"div",3),u.TgZ(5,"div",4),u._UZ(6,"img",5),u.TgZ(7,"p",6),u.TgZ(8,"i",7),u.NdJ("click",function(){return L.sideBarToggle()}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(9,"div",8),u.TgZ(10,"nav",9),u.TgZ(11,"a",10),u._UZ(12,"i",11),u.TgZ(13,"span",12),u.SDv(14,13),u.qZA(),u.qZA(),u.TgZ(15,"a",14),u._UZ(16,"i",15),u.TgZ(17,"span"),u.SDv(18,16),u.qZA(),u.qZA(),u.TgZ(19,"a",17),u._UZ(20,"i",18),u.TgZ(21,"span"),u.SDv(22,19),u.qZA(),u.qZA(),u.TgZ(23,"a",20),u._UZ(24,"i",21),u.TgZ(25,"span"),u.SDv(26,22),u.qZA(),u.qZA(),u.TgZ(27,"a",23),u._UZ(28,"i",24),u.TgZ(29,"span"),u.SDv(30,25),u.qZA(),u.qZA(),u.TgZ(31,"a",26),u._UZ(32,"i",27),u.TgZ(33,"span"),u.SDv(34,28),u.qZA(),u.qZA(),u.TgZ(35,"a",29),u._UZ(36,"i",30),u.TgZ(37,"span"),u.SDv(38,31),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(39,"div",32),u.TgZ(40,"div"),u.TgZ(41,"nav",33),u.TgZ(42,"div",34),u.TgZ(43,"h4",35),u._uU(44),u.qZA(),u.TgZ(45,"div",36),u.TgZ(46,"button",37),u.TgZ(47,"span"),u.SDv(48,38),u.qZA(),u.qZA(),u.TgZ(49,"div",39),u.TgZ(50,"a",40),u._uU(51,"English"),u.qZA(),u.TgZ(52,"a",41),u._uU(53,"\u4e2d\u6587\u7b80\u4f53"),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(54,"div",42),u.TgZ(55,"div",35),u.YNc(56,pr,4,3,"h6",43),u.qZA(),u.qZA(),u.qZA(),u.TgZ(57,"div",44),u.YNc(58,Mr,5,0,"div",45),u.YNc(59,jn,1,0,"router-outlet",46),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(3),u.ekj("sidebar-shrink",L.shrink)("sidebar",!L.shrink),u.xp6(3),u.ekj("d-none",L.shrink),u.xp6(5),u.Q6J("routerLinkActiveOptions",u.DdM(37,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(38,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(39,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(40,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(41,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(42,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(43,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(3),u.ekj("center-shrink",L.shrink)("center-no-shrink",L.shrinkCenterNo)("center",!L.shrink),u.xp6(4),u.Oqu(L.pathFormat(L.currentNav)),u.xp6(12),u.Q6J("ngForOf",L.navChain),u.xp6(2),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[Zt,ut.yS,ut.Od,y.sg,y.O5,ut.lC],styles:[".sidebar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:250px;z-index:10}.sidebar-shrink[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:45px;z-index:10}.sidebar-center[_ngcontent-%COMP%]{background-color:#2d2848e6!important}.sidebar-header[_ngcontent-%COMP%]{background-color:#2d2848!important;height:65px}.active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}.sidebar-center[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#922c48;background-color:#922c4866!important}.center[_ngcontent-%COMP%]{position:absolute;left:250px;right:0}.center-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-no-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-header[_ngcontent-%COMP%]{height:65px}"]}),N})();function Zr(N,F){1&N&&(u.TgZ(0,"button",18),u._UZ(1,"span",19),u.TgZ(2,"span"),u._uU(3,"Loading..."),u.qZA(),u.qZA())}function mi(N,F){if(1&N){const A=u.EpF();u.TgZ(0,"button",20),u.NdJ("click",function(){return u.CHM(A),u.oxw().login()}),u.TgZ(1,"span"),u.SDv(2,21),u.qZA(),u.qZA()}}const yi=[{path:"login",component:(()=>{class N{constructor(A,L,ne,Oe){this.authSvc=A,this.errorSvc=L,this.router=ne,this.route=Oe,this.loading=!1,this.accessToken=null,this.tokenIsValid=!0}ngOnInit(){}login(){this.loading=!0,this.authSvc.setAccessToken(this.accessToken),this.authSvc.login().pipe((0,Bt.K)(A=>(this.loading=!1,this.authSvc.isLoggedIn=!1,this.accessToken=null,this.tokenIsValid=!1,(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.loading=!1,this.tokenIsValid=!0,this.router.navigate(["/dashboard"],{relativeTo:this.route})})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onInput(){this.tokenIsValid=!0}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(Vn.e),u.Y36(Ot.T),u.Y36(ut.F0),u.Y36(ut.gz))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-login"]],decls:22,vars:5,consts:function(){let F,A,L,ne,Oe;return F="\u4F7F\u7528token\u4EE4\u724C\u767B\u5F55EdgeXFoundry",A="Token \u4EE4\u724C",L="\u65E0\u6548\u7684token\u4EE4\u724C\uFF01",ne="\u5982\u4F55\u83B7\u53D6access token\uFF1F",Oe="\u767B\u5F55",[[1,"login","bg-dark"],[1,"card","login-form"],[1,"card-header"],F,[1,"card-body","bg-light","shadow"],[1,""],[1,"form-group"],["for","accessToken",1,"col-form-label"],[1,"mr-1"],A,["type","password","id","accessToken","name","accessToken",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],L,["class","btn btn-success btn-sm w-100","type","button","disabled","",4,"ngIf"],["type","button","class","btn btn-success btn-sm w-100",3,"click",4,"ngIf"],[1,"mt-2"],["href","https://docs.edgexfoundry.org/3.0/security/Ch-Authenticating/#how-to-make-authenticated-edgex-calls","target","_blank",1,"text-decoration-none"],ne,["type","button","disabled","",1,"btn","btn-success","btn-sm","w-100"],["role","status","aria-hidden","true",1,"spinner-grow","spinner-grow-sm"],["type","button",1,"btn","btn-success","btn-sm","w-100",3,"click"],Oe]},template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span"),u.SDv(4,3),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"form",5),u.TgZ(7,"div",6),u.TgZ(8,"label",7),u.TgZ(9,"span",8),u.SDv(10,9),u.qZA(),u.qZA(),u.TgZ(11,"div",5),u.TgZ(12,"input",10),u.NdJ("ngModelChange",function(Oe){return L.accessToken=Oe})("ngModelChange",function(){return L.onInput()}),u.qZA(),u.TgZ(13,"div",11),u.TgZ(14,"small"),u.SDv(15,12),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.YNc(16,Zr,4,0,"button",13),u.YNc(17,mi,3,0,"button",14),u.TgZ(18,"div",15),u.TgZ(19,"a",16),u.TgZ(20,"small"),u.SDv(21,17),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(12),u.ekj("is-invalid",!L.tokenIsValid),u.Q6J("ngModel",L.accessToken),u.xp6(4),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[ht._Y,ht.JL,ht.F,ht.Fj,ht.JJ,ht.On,y.O5],styles:[".login[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;left:0;right:0;z-index:999}.login-form[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:40%;width:350px;margin:auto}"]}),N})()}];let qr=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[ut.Bz.forChild(yi)],ut.Bz]}),N})(),xi=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[y.ez,ht.u5,qr]]}),N})();const _i=[{provide:tt.TP,useClass:(()=>{class N{constructor(A){this.authSvc=A}intercept(A,L){let ne=A.headers.set("X-Requested-With","XMLHttpRequest");if(this.authSvc.isSecureMode){let je=`Bearer ${this.authSvc.getAccessToken()}`;ne=A.headers.set("X-Requested-With","XMLHttpRequest").set("Authorization",je)}const Oe=A.clone({headers:ne});return L.handle(Oe)}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(Vn.e))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),multi:!0}];let Jr=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N,bootstrap:[Ir]}),N.\u0275inj=u.cJS({providers:[_i],imports:[[gi,y.ez,ht.u5,tt.JF,ir,xi]]}),N})();(0,u.G48)(),br().bootstrapModule(Jr).catch(N=>console.error(N))},9162:(Ye,me,O)=>{"use strict";O.d(me,{ZT:()=>u,mG:()=>P,Jh:()=>x,XA:()=>ae,CR:()=>Ee,ev:()=>ve,qq:()=>He,FC:()=>Me,KL:()=>We});var y=function(le,H){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,ue){X.__proto__=ue}||function(X,ue){for(var Ae in ue)Object.prototype.hasOwnProperty.call(ue,Ae)&&(X[Ae]=ue[Ae])})(le,H)};function u(le,H){if("function"!=typeof H&&null!==H)throw new TypeError("Class extends value "+String(H)+" is not a constructor or null");function X(){this.constructor=le}y(le,H),le.prototype=null===H?Object.create(H):(X.prototype=H.prototype,new X)}function P(le,H,X,ue){return new(X||(X=Promise))(function(ie,ze){function ee(Ve){try{be(ue.next(Ve))}catch(Xe){ze(Xe)}}function Ie(Ve){try{be(ue.throw(Ve))}catch(Xe){ze(Xe)}}function be(Ve){Ve.done?ie(Ve.value):function(ie){return ie instanceof X?ie:new X(function(ze){ze(ie)})}(Ve.value).then(ee,Ie)}be((ue=ue.apply(le,H||[])).next())})}function x(le,H){var ue,Ae,ie,ze,X={label:0,sent:function(){if(1&ie[0])throw ie[1];return ie[1]},trys:[],ops:[]};return ze={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(ze[Symbol.iterator]=function(){return this}),ze;function ee(be){return function(Ve){return function(be){if(ue)throw new TypeError("Generator is already executing.");for(;X;)try{if(ue=1,Ae&&(ie=2&be[0]?Ae.return:be[0]?Ae.throw||((ie=Ae.return)&&ie.call(Ae),0):Ae.next)&&!(ie=ie.call(Ae,be[1])).done)return ie;switch(Ae=0,ie&&(be=[2&be[0],ie.value]),be[0]){case 0:case 1:ie=be;break;case 4:return X.label++,{value:be[1],done:!1};case 5:X.label++,Ae=be[1],be=[0];continue;case 7:be=X.ops.pop(),X.trys.pop();continue;default:if(!(ie=(ie=X.trys).length>0&&ie[ie.length-1])&&(6===be[0]||2===be[0])){X=0;continue}if(3===be[0]&&(!ie||be[1]>ie[0]&&be[1]=le.length&&(le=void 0),{value:le&&le[ue++],done:!le}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ee(le,H){var X="function"==typeof Symbol&&le[Symbol.iterator];if(!X)return le;var Ae,ze,ue=X.call(le),ie=[];try{for(;(void 0===H||H-- >0)&&!(Ae=ue.next()).done;)ie.push(Ae.value)}catch(ee){ze={error:ee}}finally{try{Ae&&!Ae.done&&(X=ue.return)&&X.call(ue)}finally{if(ze)throw ze.error}}return ie}function ve(le,H){for(var X=0,ue=H.length,Ae=le.length;X1||ee(rt,_t)})})}function ee(rt,_t){try{!function(rt){rt.value instanceof He?Promise.resolve(rt.value.v).then(be,Ve):Xe(ie[0][2],rt)}(ue[rt](_t))}catch(jt){Xe(ie[0][3],jt)}}function be(rt){ee("next",rt)}function Ve(rt){ee("throw",rt)}function Xe(rt,_t){rt(_t),ie.shift(),ie.length&&ee(ie[0][0],ie[0][1])}}function We(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,H=le[Symbol.asyncIterator];return H?H.call(le):(le=ae(le),X={},ue("next"),ue("throw"),ue("return"),X[Symbol.asyncIterator]=function(){return this},X);function ue(ie){X[ie]=le[ie]&&function(ze){return new Promise(function(ee,Ie){!function(ie,ze,ee,Ie){Promise.resolve(Ie).then(function(be){ie({value:be,done:ee})},ze)}(ee,Ie,(ze=le[ie](ze)).done,ze.value)})}}}}},Ye=>{Ye(Ye.s=4705)}]); \ No newline at end of file +(self.webpackChunkweb=self.webpackChunkweb||[]).push([[179],{8255:Ye=>{function me(O){return Promise.resolve().then(()=>{var y=new Error("Cannot find module '"+O+"'");throw y.code="MODULE_NOT_FOUND",y})}me.keys=()=>[],me.resolve=me,me.id=8255,Ye.exports=me},8583:(Ye,me,O)=>{"use strict";O.d(me,{mr:()=>Ge,ez:()=>ne,K0:()=>K,uU:()=>Tr,Do:()=>Fe,V_:()=>U,Ye:()=>he,S$:()=>He,mk:()=>kn,sg:()=>Vn,O5:()=>Zn,RF:()=>Un,n9:()=>Bn,ED:()=>Gt,b0:()=>We,lw:()=>P,EM:()=>Li,JF:()=>_i,w_:()=>J,bD:()=>Oe,q:()=>ce,Mx:()=>Bt,HT:()=>te});var y=O(476);let u=null;function ce(){return u}function te(v){u||(u=v)}class J{}const K=new y.OlP("DocumentToken");let P=(()=>{class v{historyGo(_){throw new Error("Not implemented")}}return v.\u0275fac=function(_){return new(_||v)},v.\u0275prov=(0,y.Yz7)({factory:x,token:v,providedIn:"platform"}),v})();function x(){return(0,y.LFG)(Y)}const U=new y.OlP("Location Initialized");let Y=(()=>{class v extends P{constructor(_){super(),this._doc=_,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ce().getBaseHref(this._doc)}onPopState(_){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("popstate",_,!1),()=>S.removeEventListener("popstate",_)}onHashChange(_){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("hashchange",_,!1),()=>S.removeEventListener("hashchange",_)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(_){this.location.pathname=_}pushState(_,S,B){ae()?this._history.pushState(_,S,B):this.location.hash=B}replaceState(_,S,B){ae()?this._history.replaceState(_,S,B):this.location.hash=B}forward(){this._history.forward()}back(){this._history.back()}historyGo(_=0){this._history.go(_)}getState(){return this._history.state}}return v.\u0275fac=function(_){return new(_||v)(y.LFG(K))},v.\u0275prov=(0,y.Yz7)({factory:Ee,token:v,providedIn:"platform"}),v})();function ae(){return!!window.history.pushState}function Ee(){return new Y((0,y.LFG)(K))}function De(v,w){if(0==v.length)return w;if(0==w.length)return v;let _=0;return v.endsWith("/")&&_++,w.startsWith("/")&&_++,2==_?v+w.substring(1):1==_?v+w:v+"/"+w}function Pe(v){const w=v.match(/#|\?|$/),_=w&&w.index||v.length;return v.slice(0,_-("/"===v[_-1]?1:0))+v.slice(_)}function _e(v){return v&&"?"!==v[0]?"?"+v:v}let He=(()=>{class v{historyGo(_){throw new Error("Not implemented")}}return v.\u0275fac=function(_){return new(_||v)},v.\u0275prov=(0,y.Yz7)({factory:Me,token:v,providedIn:"root"}),v})();function Me(v){const w=(0,y.LFG)(K).location;return new We((0,y.LFG)(P),w&&w.origin||"")}const Ge=new y.OlP("appBaseHref");let We=(()=>{class v extends He{constructor(_,S){if(super(),this._platformLocation=_,this._removeListenerFns=[],null==S&&(S=this._platformLocation.getBaseHrefFromDOM()),null==S)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=S}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(_){this._removeListenerFns.push(this._platformLocation.onPopState(_),this._platformLocation.onHashChange(_))}getBaseHref(){return this._baseHref}prepareExternalUrl(_){return De(this._baseHref,_)}path(_=!1){const S=this._platformLocation.pathname+_e(this._platformLocation.search),B=this._platformLocation.hash;return B&&_?`${S}${B}`:S}pushState(_,S,B,oe){const pe=this.prepareExternalUrl(B+_e(oe));this._platformLocation.pushState(_,S,pe)}replaceState(_,S,B,oe){const pe=this.prepareExternalUrl(B+_e(oe));this._platformLocation.replaceState(_,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(_=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,_)}}return v.\u0275fac=function(_){return new(_||v)(y.LFG(P),y.LFG(Ge,8))},v.\u0275prov=y.Yz7({token:v,factory:v.\u0275fac}),v})(),Fe=(()=>{class v extends He{constructor(_,S){super(),this._platformLocation=_,this._baseHref="",this._removeListenerFns=[],null!=S&&(this._baseHref=S)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(_){this._removeListenerFns.push(this._platformLocation.onPopState(_),this._platformLocation.onHashChange(_))}getBaseHref(){return this._baseHref}path(_=!1){let S=this._platformLocation.hash;return null==S&&(S="#"),S.length>0?S.substring(1):S}prepareExternalUrl(_){const S=De(this._baseHref,_);return S.length>0?"#"+S:S}pushState(_,S,B,oe){let pe=this.prepareExternalUrl(B+_e(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.pushState(_,S,pe)}replaceState(_,S,B,oe){let pe=this.prepareExternalUrl(B+_e(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.replaceState(_,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(_=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,_)}}return v.\u0275fac=function(_){return new(_||v)(y.LFG(P),y.LFG(Ge,8))},v.\u0275prov=y.Yz7({token:v,factory:v.\u0275fac}),v})(),he=(()=>{class v{constructor(_,S){this._subject=new y.vpe,this._urlChangeListeners=[],this._platformStrategy=_;const B=this._platformStrategy.getBaseHref();this._platformLocation=S,this._baseHref=Pe($e(B)),this._platformStrategy.onPopState(oe=>{this._subject.emit({url:this.path(!0),pop:!0,state:oe.state,type:oe.type})})}path(_=!1){return this.normalize(this._platformStrategy.path(_))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(_,S=""){return this.path()==this.normalize(_+_e(S))}normalize(_){return v.stripTrailingSlash(function(v,w){return v&&w.startsWith(v)?w.substring(v.length):w}(this._baseHref,$e(_)))}prepareExternalUrl(_){return _&&"/"!==_[0]&&(_="/"+_),this._platformStrategy.prepareExternalUrl(_)}go(_,S="",B=null){this._platformStrategy.pushState(B,"",_,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(_+_e(S)),B)}replaceState(_,S="",B=null){this._platformStrategy.replaceState(B,"",_,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(_+_e(S)),B)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(_=0){var S,B;null===(B=(S=this._platformStrategy).historyGo)||void 0===B||B.call(S,_)}onUrlChange(_){this._urlChangeListeners.push(_),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(S=>{this._notifyUrlChangeListeners(S.url,S.state)}))}_notifyUrlChangeListeners(_="",S){this._urlChangeListeners.forEach(B=>B(_,S))}subscribe(_,S,B){return this._subject.subscribe({next:_,error:S,complete:B})}}return v.\u0275fac=function(_){return new(_||v)(y.LFG(He),y.LFG(P))},v.normalizeQueryParams=_e,v.joinWithSlash=De,v.stripTrailingSlash=Pe,v.\u0275prov=(0,y.Yz7)({factory:Ke,token:v,providedIn:"root"}),v})();function Ke(){return new he((0,y.LFG)(He),(0,y.LFG)(P))}function $e(v){return v.replace(/\/index.html$/,"")}var H=(()=>((H=H||{})[H.Zero=0]="Zero",H[H.One=1]="One",H[H.Two=2]="Two",H[H.Few=3]="Few",H[H.Many=4]="Many",H[H.Other=5]="Other",H))(),X=(()=>((X=X||{})[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X))(),ue=(()=>((ue=ue||{})[ue.Narrow=0]="Narrow",ue[ue.Abbreviated=1]="Abbreviated",ue[ue.Wide=2]="Wide",ue[ue.Short=3]="Short",ue))(),Ae=(()=>((Ae=Ae||{})[Ae.Short=0]="Short",Ae[Ae.Medium=1]="Medium",Ae[Ae.Long=2]="Long",Ae[Ae.Full=3]="Full",Ae))(),ie=(()=>((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",ie))();function jt(v,w){return gt((0,y.cg1)(v)[y.wAp.DateFormat],w)}function Kt(v,w){return gt((0,y.cg1)(v)[y.wAp.TimeFormat],w)}function Tt(v,w){return gt((0,y.cg1)(v)[y.wAp.DateTimeFormat],w)}function tn(v,w){const _=(0,y.cg1)(v),S=_[y.wAp.NumberSymbols][w];if(void 0===S){if(w===ie.CurrencyDecimal)return _[y.wAp.NumberSymbols][ie.Decimal];if(w===ie.CurrencyGroup)return _[y.wAp.NumberSymbols][ie.Group]}return S}const Cn=y.kL8;function Nn(v){if(!v[y.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${v[y.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function gt(v,w){for(let _=w;_>-1;_--)if(void 0!==v[_])return v[_];throw new Error("Locale data API: locale data undefined")}function tr(v){const[w,_]=v.split(":");return{hours:+w,minutes:+_}}const W=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ge={},ye=/((?:[^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]*)/;var Ne=(()=>((Ne=Ne||{})[Ne.Short=0]="Short",Ne[Ne.ShortGMT=1]="ShortGMT",Ne[Ne.Long=2]="Long",Ne[Ne.Extended=3]="Extended",Ne))(),se=(()=>((se=se||{})[se.FullYear=0]="FullYear",se[se.Month=1]="Month",se[se.Date=2]="Date",se[se.Hours=3]="Hours",se[se.Minutes=4]="Minutes",se[se.Seconds=5]="Seconds",se[se.FractionalSeconds=6]="FractionalSeconds",se[se.Day=7]="Day",se))(),xe=(()=>((xe=xe||{})[xe.DayPeriods=0]="DayPeriods",xe[xe.Days=1]="Days",xe[xe.Months=2]="Months",xe[xe.Eras=3]="Eras",xe))();function Re(v,w,_,S){let B=function(v){if(Fn(v))return v;if("number"==typeof v&&!isNaN(v))return new Date(v);if("string"==typeof v){if(v=v.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(v)){const[B,oe=1,pe=1]=v.split("-").map(Be=>+Be);return St(B,oe-1,pe)}const _=parseFloat(v);if(!isNaN(v-_))return new Date(_);let S;if(S=v.match(W))return function(v){const w=new Date(0);let _=0,S=0;const B=v[8]?w.setUTCFullYear:w.setFullYear,oe=v[8]?w.setUTCHours:w.setHours;v[9]&&(_=Number(v[9]+v[10]),S=Number(v[9]+v[11])),B.call(w,Number(v[1]),Number(v[2])-1,Number(v[3]));const pe=Number(v[4]||0)-_,Be=Number(v[5]||0)-S,Dt=Number(v[6]||0),E=Math.floor(1e3*parseFloat("0."+(v[7]||0)));return oe.call(w,pe,Be,Dt,E),w}(S)}const w=new Date(v);if(!Fn(w))throw new Error(`Unable to convert "${v}" into a date`);return w}(v);w=Lt(_,w)||w;let Be,pe=[];for(;w;){if(Be=ye.exec(w),!Be){pe.push(w);break}{pe=pe.concat(Be.slice(1));const m=pe.pop();if(!m)break;w=m}}let Dt=B.getTimezoneOffset();S&&(Dt=br(S,Dt),B=function(v,w,_){const B=v.getTimezoneOffset();return function(v,w){return(v=new Date(v.getTime())).setMinutes(v.getMinutes()+w),v}(v,-1*(br(w,B)-B))}(B,S));let E="";return pe.forEach(m=>{const h=function(v){if(mt[v])return mt[v];let w;switch(v){case"G":case"GG":case"GGG":w=Le(xe.Eras,ue.Abbreviated);break;case"GGGG":w=Le(xe.Eras,ue.Wide);break;case"GGGGG":w=Le(xe.Eras,ue.Narrow);break;case"y":w=ot(se.FullYear,1,0,!1,!0);break;case"yy":w=ot(se.FullYear,2,0,!0,!0);break;case"yyy":w=ot(se.FullYear,3,0,!1,!0);break;case"yyyy":w=ot(se.FullYear,4,0,!1,!0);break;case"Y":w=xn(1);break;case"YY":w=xn(2,!0);break;case"YYY":w=xn(3);break;case"YYYY":w=xn(4);break;case"M":case"L":w=ot(se.Month,1,1);break;case"MM":case"LL":w=ot(se.Month,2,1);break;case"MMM":w=Le(xe.Months,ue.Abbreviated);break;case"MMMM":w=Le(xe.Months,ue.Wide);break;case"MMMMM":w=Le(xe.Months,ue.Narrow);break;case"LLL":w=Le(xe.Months,ue.Abbreviated,X.Standalone);break;case"LLLL":w=Le(xe.Months,ue.Wide,X.Standalone);break;case"LLLLL":w=Le(xe.Months,ue.Narrow,X.Standalone);break;case"w":w=pi(1);break;case"ww":w=pi(2);break;case"W":w=pi(1,!0);break;case"d":w=ot(se.Date,1);break;case"dd":w=ot(se.Date,2);break;case"c":case"cc":w=ot(se.Day,1);break;case"ccc":w=Le(xe.Days,ue.Abbreviated,X.Standalone);break;case"cccc":w=Le(xe.Days,ue.Wide,X.Standalone);break;case"ccccc":w=Le(xe.Days,ue.Narrow,X.Standalone);break;case"cccccc":w=Le(xe.Days,ue.Short,X.Standalone);break;case"E":case"EE":case"EEE":w=Le(xe.Days,ue.Abbreviated);break;case"EEEE":w=Le(xe.Days,ue.Wide);break;case"EEEEE":w=Le(xe.Days,ue.Narrow);break;case"EEEEEE":w=Le(xe.Days,ue.Short);break;case"a":case"aa":case"aaa":w=Le(xe.DayPeriods,ue.Abbreviated);break;case"aaaa":w=Le(xe.DayPeriods,ue.Wide);break;case"aaaaa":w=Le(xe.DayPeriods,ue.Narrow);break;case"b":case"bb":case"bbb":w=Le(xe.DayPeriods,ue.Abbreviated,X.Standalone,!0);break;case"bbbb":w=Le(xe.DayPeriods,ue.Wide,X.Standalone,!0);break;case"bbbbb":w=Le(xe.DayPeriods,ue.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":w=Le(xe.DayPeriods,ue.Abbreviated,X.Format,!0);break;case"BBBB":w=Le(xe.DayPeriods,ue.Wide,X.Format,!0);break;case"BBBBB":w=Le(xe.DayPeriods,ue.Narrow,X.Format,!0);break;case"h":w=ot(se.Hours,1,-12);break;case"hh":w=ot(se.Hours,2,-12);break;case"H":w=ot(se.Hours,1);break;case"HH":w=ot(se.Hours,2);break;case"m":w=ot(se.Minutes,1);break;case"mm":w=ot(se.Minutes,2);break;case"s":w=ot(se.Seconds,1);break;case"ss":w=ot(se.Seconds,2);break;case"S":w=ot(se.FractionalSeconds,1);break;case"SS":w=ot(se.FractionalSeconds,2);break;case"SSS":w=ot(se.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":w=rn(Ne.Short);break;case"ZZZZZ":w=rn(Ne.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":w=rn(Ne.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":w=rn(Ne.Long);break;default:return null}return mt[v]=w,w}(m);E+=h?h(B,_,Dt):"''"===m?"'":m.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),E}function St(v,w,_){const S=new Date(0);return S.setFullYear(v,w,_),S.setHours(0,0,0),S}function Lt(v,w){const _=function(v){return(0,y.cg1)(v)[y.wAp.LocaleId]}(v);if(ge[_]=ge[_]||{},ge[_][w])return ge[_][w];let S="";switch(w){case"shortDate":S=jt(v,Ae.Short);break;case"mediumDate":S=jt(v,Ae.Medium);break;case"longDate":S=jt(v,Ae.Long);break;case"fullDate":S=jt(v,Ae.Full);break;case"shortTime":S=Kt(v,Ae.Short);break;case"mediumTime":S=Kt(v,Ae.Medium);break;case"longTime":S=Kt(v,Ae.Long);break;case"fullTime":S=Kt(v,Ae.Full);break;case"short":const B=Lt(v,"shortTime"),oe=Lt(v,"shortDate");S=zn(Tt(v,Ae.Short),[B,oe]);break;case"medium":const pe=Lt(v,"mediumTime"),Be=Lt(v,"mediumDate");S=zn(Tt(v,Ae.Medium),[pe,Be]);break;case"long":const Dt=Lt(v,"longTime"),E=Lt(v,"longDate");S=zn(Tt(v,Ae.Long),[Dt,E]);break;case"full":const m=Lt(v,"fullTime"),h=Lt(v,"fullDate");S=zn(Tt(v,Ae.Full),[m,h])}return S&&(ge[_][w]=S),S}function zn(v,w){return w&&(v=v.replace(/\{([^}]+)}/g,function(_,S){return null!=w&&S in w?w[S]:_})),v}function wt(v,w,_="-",S,B){let oe="";(v<0||B&&v<=0)&&(B?v=1-v:(v=-v,oe=_));let pe=String(v);for(;pe.length0||Be>-_)&&(Be+=_),v===se.Hours)0===Be&&-12===_&&(Be=12);else if(v===se.FractionalSeconds)return function(v,w){return wt(v,3).substr(0,w)}(Be,w);const Dt=tn(pe,ie.MinusSign);return wt(Be,w,Dt,S,B)}}function Le(v,w,_=X.Format,S=!1){return function(B,oe){return function(v,w,_,S,B,oe){switch(_){case xe.Months:return function(v,w,_){const S=(0,y.cg1)(v),oe=gt([S[y.wAp.MonthsFormat],S[y.wAp.MonthsStandalone]],w);return gt(oe,_)}(w,B,S)[v.getMonth()];case xe.Days:return function(v,w,_){const S=(0,y.cg1)(v),oe=gt([S[y.wAp.DaysFormat],S[y.wAp.DaysStandalone]],w);return gt(oe,_)}(w,B,S)[v.getDay()];case xe.DayPeriods:const pe=v.getHours(),Be=v.getMinutes();if(oe){const E=function(v){const w=(0,y.cg1)(v);return Nn(w),(w[y.wAp.ExtraData][2]||[]).map(S=>"string"==typeof S?tr(S):[tr(S[0]),tr(S[1])])}(w),m=function(v,w,_){const S=(0,y.cg1)(v);Nn(S);const oe=gt([S[y.wAp.ExtraData][0],S[y.wAp.ExtraData][1]],w)||[];return gt(oe,_)||[]}(w,B,S),h=E.findIndex(M=>{if(Array.isArray(M)){const[Z,we]=M,At=pe>=Z.hours&&Be>=Z.minutes,an=pe0?Math.floor(B/60):Math.ceil(B/60);switch(v){case Ne.Short:return(B>=0?"+":"")+wt(pe,2,oe)+wt(Math.abs(B%60),2,oe);case Ne.ShortGMT:return"GMT"+(B>=0?"+":"")+wt(pe,1,oe);case Ne.Long:return"GMT"+(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);case Ne.Extended:return 0===S?"Z":(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);default:throw new Error(`Unknown zone width "${v}"`)}}}function Mn(v){return St(v.getFullYear(),v.getMonth(),v.getDate()+(4-v.getDay()))}function pi(v,w=!1){return function(_,S){let B;if(w){const oe=new Date(_.getFullYear(),_.getMonth(),1).getDay()-1,pe=_.getDate();B=1+Math.floor((pe+oe)/7)}else{const oe=Mn(_),pe=function(v){const w=St(v,0,1).getDay();return St(v,0,1+(w<=4?4:11)-w)}(oe.getFullYear()),Be=oe.getTime()-pe.getTime();B=1+Math.round(Be/6048e5)}return wt(B,v,tn(S,ie.MinusSign))}}function xn(v,w=!1){return function(_,S){return wt(Mn(_).getFullYear(),v,tn(S,ie.MinusSign),w)}}const mt={};function br(v,w){v=v.replace(/:/g,"");const _=Date.parse("Jan 01, 1970 00:00:00 "+v)/6e4;return isNaN(_)?w:_}function Fn(v){return v instanceof Date&&!isNaN(v.valueOf())}class tt{}let ut=(()=>{class v extends tt{constructor(_){super(),this.locale=_}getPluralCategory(_,S){switch(Cn(S||this.locale)(_)){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}}}return v.\u0275fac=function(_){return new(_||v)(y.LFG(y.soG))},v.\u0275prov=y.Yz7({token:v,factory:v.\u0275fac}),v})();function Bt(v,w){w=encodeURIComponent(w);for(const _ of v.split(";")){const S=_.indexOf("="),[B,oe]=-1==S?[_,""]:[_.slice(0,S),_.slice(S+1)];if(B.trim()===w)return decodeURIComponent(oe)}return null}let kn=(()=>{class v{constructor(_,S,B,oe){this._iterableDiffers=_,this._keyValueDiffers=S,this._ngEl=B,this._renderer=oe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(_){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof _?_.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(_){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof _?_.split(/\s+/):_,this._rawClass&&((0,y.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const _=this._iterableDiffer.diff(this._rawClass);_&&this._applyIterableChanges(_)}else if(this._keyValueDiffer){const _=this._keyValueDiffer.diff(this._rawClass);_&&this._applyKeyValueChanges(_)}}_applyKeyValueChanges(_){_.forEachAddedItem(S=>this._toggleClass(S.key,S.currentValue)),_.forEachChangedItem(S=>this._toggleClass(S.key,S.currentValue)),_.forEachRemovedItem(S=>{S.previousValue&&this._toggleClass(S.key,!1)})}_applyIterableChanges(_){_.forEachAddedItem(S=>{if("string"!=typeof S.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,y.AaK)(S.item)}`);this._toggleClass(S.item,!0)}),_.forEachRemovedItem(S=>this._toggleClass(S.item,!1))}_applyClasses(_){_&&(Array.isArray(_)||_ instanceof Set?_.forEach(S=>this._toggleClass(S,!0)):Object.keys(_).forEach(S=>this._toggleClass(S,!!_[S])))}_removeClasses(_){_&&(Array.isArray(_)||_ instanceof Set?_.forEach(S=>this._toggleClass(S,!1)):Object.keys(_).forEach(S=>this._toggleClass(S,!1)))}_toggleClass(_,S){(_=_.trim())&&_.split(/\s+/g).forEach(B=>{S?this._renderer.addClass(this._ngEl.nativeElement,B):this._renderer.removeClass(this._ngEl.nativeElement,B)})}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.ZZ4),y.Y36(y.aQg),y.Y36(y.SBq),y.Y36(y.Qsj))},v.\u0275dir=y.lG2({type:v,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),v})();class wr{constructor(w,_,S,B){this.$implicit=w,this.ngForOf=_,this.index=S,this.count=B}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Vn=(()=>{class v{constructor(_,S,B){this._viewContainer=_,this._template=S,this._differs=B,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(_){this._ngForOf=_,this._ngForOfDirty=!0}set ngForTrackBy(_){this._trackByFn=_}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(_){_&&(this._template=_)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const _=this._ngForOf;if(!this._differ&&_)try{this._differ=this._differs.find(_).create(this.ngForTrackBy)}catch(S){throw new Error(`Cannot find a differ supporting object '${_}' of type '${function(v){return v.name||typeof v}(_)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const _=this._differ.diff(this._ngForOf);_&&this._applyChanges(_)}}_applyChanges(_){const S=[];_.forEachOperation((B,oe,pe)=>{if(null==B.previousIndex){const Be=this._viewContainer.createEmbeddedView(this._template,new wr(null,this._ngForOf,-1,-1),null===pe?void 0:pe),Dt=new Ze(B,Be);S.push(Dt)}else if(null==pe)this._viewContainer.remove(null===oe?void 0:oe);else if(null!==oe){const Be=this._viewContainer.get(oe);this._viewContainer.move(Be,pe);const Dt=new Ze(B,Be);S.push(Dt)}});for(let B=0;B{this._viewContainer.get(B.currentIndex).context.$implicit=B.item})}_perViewChange(_,S){_.context.$implicit=S.item}static ngTemplateContextGuard(_,S){return!0}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(y.ZZ4))},v.\u0275dir=y.lG2({type:v,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),v})();class Ze{constructor(w,_){this.record=w,this.view=_}}let Zn=(()=>{class v{constructor(_,S){this._viewContainer=_,this._context=new vn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=S}set ngIf(_){this._context.$implicit=this._context.ngIf=_,this._updateView()}set ngIfThen(_){hn("ngIfThen",_),this._thenTemplateRef=_,this._thenViewRef=null,this._updateView()}set ngIfElse(_){hn("ngIfElse",_),this._elseTemplateRef=_,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(_,S){return!0}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.s_b),y.Y36(y.Rgc))},v.\u0275dir=y.lG2({type:v,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),v})();class vn{constructor(){this.$implicit=null,this.ngIf=null}}function hn(v,w){if(w&&!w.createEmbeddedView)throw new Error(`${v} must be a TemplateRef, but received '${(0,y.AaK)(w)}'.`)}class Ht{constructor(w,_){this._viewContainerRef=w,this._templateRef=_,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(w){w&&!this._created?this.create():!w&&this._created&&this.destroy()}}let Un=(()=>{class v{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(_){this._ngSwitch=_,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(_){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(_)}_matchCase(_){const S=_==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||S,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),S}_updateDefaultCases(_){if(this._defaultViews&&_!==this._defaultUsed){this._defaultUsed=_;for(let S=0;S{class v{constructor(_,S,B){this.ngSwitch=B,B._addCase(),this._view=new Ht(_,S)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},v.\u0275dir=y.lG2({type:v,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),v})(),Gt=(()=>{class v{constructor(_,S,B){B._addDefault(new Ht(_,S))}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},v.\u0275dir=y.lG2({type:v,selectors:[["","ngSwitchDefault",""]]}),v})();let Tr=(()=>{class v{constructor(_){this.locale=_}transform(_,S="mediumDate",B,oe){if(null==_||""===_||_!=_)return null;try{return Re(_,S,oe||this.locale,B)}catch(pe){throw function(v,w){return Error(`InvalidPipeArgument: '${w}' for pipe '${(0,y.AaK)(v)}'`)}(v,pe.message)}}}return v.\u0275fac=function(_){return new(_||v)(y.Y36(y.soG,16))},v.\u0275pipe=y.Yjl({name:"date",type:v,pure:!0}),v})(),ne=(()=>{class v{}return v.\u0275fac=function(_){return new(_||v)},v.\u0275mod=y.oAB({type:v}),v.\u0275inj=y.cJS({providers:[{provide:tt,useClass:ut}]}),v})();const Oe="browser";let Li=(()=>{class v{}return v.\u0275prov=(0,y.Yz7)({token:v,providedIn:"root",factory:()=>new ki((0,y.LFG)(K),window)}),v})();class ki{constructor(w,_){this.document=w,this.window=_,this.offset=()=>[0,0]}setOffset(w){this.offset=Array.isArray(w)?()=>w:w}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(w){this.supportsScrolling()&&this.window.scrollTo(w[0],w[1])}scrollToAnchor(w){if(!this.supportsScrolling())return;const _=function(v,w){const _=v.getElementById(w)||v.getElementsByName(w)[0];if(_)return _;if("function"==typeof v.createTreeWalker&&v.body&&(v.body.createShadowRoot||v.body.attachShadow)){const S=v.createTreeWalker(v.body,NodeFilter.SHOW_ELEMENT);let B=S.currentNode;for(;B;){const oe=B.shadowRoot;if(oe){const pe=oe.getElementById(w)||oe.querySelector(`[name="${w}"]`);if(pe)return pe}B=S.nextNode()}}return null}(this.document,w);_&&(this.scrollToElement(_),this.attemptFocus(_))}setHistoryScrollRestoration(w){if(this.supportScrollRestoration()){const _=this.window.history;_&&_.scrollRestoration&&(_.scrollRestoration=w)}}scrollToElement(w){const _=w.getBoundingClientRect(),S=_.left+this.window.pageXOffset,B=_.top+this.window.pageYOffset,oe=this.offset();this.window.scrollTo(S-oe[0],B-oe[1])}attemptFocus(w){return w.focus(),this.document.activeElement===w}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const w=Rr(this.window.history)||Rr(Object.getPrototypeOf(this.window.history));return!(!w||!w.writable&&!w.set)}catch(w){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(w){return!1}}}function Rr(v){return Object.getOwnPropertyDescriptor(v,"scrollRestoration")}class _i{}},1841:(Ye,me,O)=>{"use strict";O.d(me,{TP:()=>ee,eN:()=>ie,JF:()=>gt,WM:()=>U});var y=O(8583),u=O(476),ce=O(1964),re=O(1776),te=O(3766),J=O(4689),K=O(5207);class P{}class x{}class U{constructor(G){this.normalizedNames=new Map,this.lazyUpdate=null,G?this.lazyInit="string"==typeof G?()=>{this.headers=new Map,G.split("\n").forEach(W=>{const ge=W.indexOf(":");if(ge>0){const ye=W.slice(0,ge),Ne=ye.toLowerCase(),se=W.slice(ge+1).trim();this.maybeSetNormalizedName(ye,Ne),this.headers.has(Ne)?this.headers.get(Ne).push(se):this.headers.set(Ne,[se])}})}:()=>{this.headers=new Map,Object.keys(G).forEach(W=>{let ge=G[W];const ye=W.toLowerCase();"string"==typeof ge&&(ge=[ge]),ge.length>0&&(this.headers.set(ye,ge),this.maybeSetNormalizedName(W,ye))})}:this.headers=new Map}has(G){return this.init(),this.headers.has(G.toLowerCase())}get(G){this.init();const W=this.headers.get(G.toLowerCase());return W&&W.length>0?W[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(G){return this.init(),this.headers.get(G.toLowerCase())||null}append(G,W){return this.clone({name:G,value:W,op:"a"})}set(G,W){return this.clone({name:G,value:W,op:"s"})}delete(G,W){return this.clone({name:G,value:W,op:"d"})}maybeSetNormalizedName(G,W){this.normalizedNames.has(W)||this.normalizedNames.set(W,G)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(G=>this.applyUpdate(G)),this.lazyUpdate=null))}copyFrom(G){G.init(),Array.from(G.headers.keys()).forEach(W=>{this.headers.set(W,G.headers.get(W)),this.normalizedNames.set(W,G.normalizedNames.get(W))})}clone(G){const W=new U;return W.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,W.lazyUpdate=(this.lazyUpdate||[]).concat([G]),W}applyUpdate(G){const W=G.name.toLowerCase();switch(G.op){case"a":case"s":let ge=G.value;if("string"==typeof ge&&(ge=[ge]),0===ge.length)return;this.maybeSetNormalizedName(G.name,W);const ye=("a"===G.op?this.headers.get(W):void 0)||[];ye.push(...ge),this.headers.set(W,ye);break;case"d":const Ne=G.value;if(Ne){let se=this.headers.get(W);if(!se)return;se=se.filter(xe=>-1===Ne.indexOf(xe)),0===se.length?(this.headers.delete(W),this.normalizedNames.delete(W)):this.headers.set(W,se)}else this.headers.delete(W),this.normalizedNames.delete(W)}}forEach(G){this.init(),Array.from(this.normalizedNames.keys()).forEach(W=>G(this.normalizedNames.get(W),this.headers.get(W)))}}class Y{encodeKey(G){return Pe(G)}encodeValue(G){return Pe(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}const Ee=/%(\d[a-f0-9])/gi,De={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Pe(fe){return encodeURIComponent(fe).replace(Ee,(G,W)=>{var ge;return null!==(ge=De[W])&&void 0!==ge?ge:G})}function _e(fe){return`${fe}`}class He{constructor(G={}){if(this.updates=null,this.cloneFrom=null,this.encoder=G.encoder||new Y,G.fromString){if(G.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(fe,G){const W=new Map;return fe.length>0&&fe.replace(/^\?/,"").split("&").forEach(ye=>{const Ne=ye.indexOf("="),[se,xe]=-1==Ne?[G.decodeKey(ye),""]:[G.decodeKey(ye.slice(0,Ne)),G.decodeValue(ye.slice(Ne+1))],Re=W.get(se)||[];Re.push(xe),W.set(se,Re)}),W}(G.fromString,this.encoder)}else G.fromObject?(this.map=new Map,Object.keys(G.fromObject).forEach(W=>{const ge=G.fromObject[W];this.map.set(W,Array.isArray(ge)?ge:[ge])})):this.map=null}has(G){return this.init(),this.map.has(G)}get(G){this.init();const W=this.map.get(G);return W?W[0]:null}getAll(G){return this.init(),this.map.get(G)||null}keys(){return this.init(),Array.from(this.map.keys())}append(G,W){return this.clone({param:G,value:W,op:"a"})}appendAll(G){const W=[];return Object.keys(G).forEach(ge=>{const ye=G[ge];Array.isArray(ye)?ye.forEach(Ne=>{W.push({param:ge,value:Ne,op:"a"})}):W.push({param:ge,value:ye,op:"a"})}),this.clone(W)}set(G,W){return this.clone({param:G,value:W,op:"s"})}delete(G,W){return this.clone({param:G,value:W,op:"d"})}toString(){return this.init(),this.keys().map(G=>{const W=this.encoder.encodeKey(G);return this.map.get(G).map(ge=>W+"="+this.encoder.encodeValue(ge)).join("&")}).filter(G=>""!==G).join("&")}clone(G){const W=new He({encoder:this.encoder});return W.cloneFrom=this.cloneFrom||this,W.updates=(this.updates||[]).concat(G),W}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(G=>this.map.set(G,this.cloneFrom.map.get(G))),this.updates.forEach(G=>{switch(G.op){case"a":case"s":const W=("a"===G.op?this.map.get(G.param):void 0)||[];W.push(_e(G.value)),this.map.set(G.param,W);break;case"d":if(void 0===G.value){this.map.delete(G.param);break}{let ge=this.map.get(G.param)||[];const ye=ge.indexOf(_e(G.value));-1!==ye&&ge.splice(ye,1),ge.length>0?this.map.set(G.param,ge):this.map.delete(G.param)}}}),this.cloneFrom=this.updates=null)}}class Ge{constructor(){this.map=new Map}set(G,W){return this.map.set(G,W),this}get(G){return this.map.has(G)||this.map.set(G,G.defaultValue()),this.map.get(G)}delete(G){return this.map.delete(G),this}keys(){return this.map.keys()}}function Fe(fe){return"undefined"!=typeof ArrayBuffer&&fe instanceof ArrayBuffer}function he(fe){return"undefined"!=typeof Blob&&fe instanceof Blob}function Ke(fe){return"undefined"!=typeof FormData&&fe instanceof FormData}class $e{constructor(G,W,ge,ye){let Ne;if(this.url=W,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=G.toUpperCase(),function(fe){switch(fe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ye?(this.body=void 0!==ge?ge:null,Ne=ye):Ne=ge,Ne&&(this.reportProgress=!!Ne.reportProgress,this.withCredentials=!!Ne.withCredentials,Ne.responseType&&(this.responseType=Ne.responseType),Ne.headers&&(this.headers=Ne.headers),Ne.context&&(this.context=Ne.context),Ne.params&&(this.params=Ne.params)),this.headers||(this.headers=new U),this.context||(this.context=new Ge),this.params){const se=this.params.toString();if(0===se.length)this.urlWithParams=W;else{const xe=W.indexOf("?");this.urlWithParams=W+(-1===xe?"?":xewt.set(Je,G.setHeaders[Je]),St)),G.setParams&&(Lt=Object.keys(G.setParams).reduce((wt,Je)=>wt.set(Je,G.setParams[Je]),Lt)),new $e(ge,ye,se,{params:Lt,headers:St,context:zn,reportProgress:Re,responseType:Ne,withCredentials:xe})}}var lt=(()=>((lt=lt||{})[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt))();class le{constructor(G,W=200,ge="OK"){this.headers=G.headers||new U,this.status=void 0!==G.status?G.status:W,this.statusText=G.statusText||ge,this.url=G.url||null,this.ok=this.status>=200&&this.status<300}}class H extends le{constructor(G={}){super(G),this.type=lt.ResponseHeader}clone(G={}){return new H({headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class X extends le{constructor(G={}){super(G),this.type=lt.Response,this.body=void 0!==G.body?G.body:null}clone(G={}){return new X({body:void 0!==G.body?G.body:this.body,headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class ue extends le{constructor(G){super(G,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${G.url||"(unknown url)"}`:`Http failure response for ${G.url||"(unknown url)"}: ${G.status} ${G.statusText}`,this.error=G.error||null}}function Ae(fe,G){return{body:G,headers:fe.headers,context:fe.context,observe:fe.observe,params:fe.params,reportProgress:fe.reportProgress,responseType:fe.responseType,withCredentials:fe.withCredentials}}let ie=(()=>{class fe{constructor(W){this.handler=W}request(W,ge,ye={}){let Ne;if(W instanceof $e)Ne=W;else{let Re,St;Re=ye.headers instanceof U?ye.headers:new U(ye.headers),ye.params&&(St=ye.params instanceof He?ye.params:new He({fromObject:ye.params})),Ne=new $e(W,ge,void 0!==ye.body?ye.body:null,{headers:Re,context:ye.context,params:St,reportProgress:ye.reportProgress,responseType:ye.responseType||"json",withCredentials:ye.withCredentials})}const se=(0,ce.of)(Ne).pipe((0,te.b)(Re=>this.handler.handle(Re)));if(W instanceof $e||"events"===ye.observe)return se;const xe=se.pipe((0,J.h)(Re=>Re instanceof X));switch(ye.observe||"body"){case"body":switch(Ne.responseType){case"arraybuffer":return xe.pipe((0,K.U)(Re=>{if(null!==Re.body&&!(Re.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Re.body}));case"blob":return xe.pipe((0,K.U)(Re=>{if(null!==Re.body&&!(Re.body instanceof Blob))throw new Error("Response is not a Blob.");return Re.body}));case"text":return xe.pipe((0,K.U)(Re=>{if(null!==Re.body&&"string"!=typeof Re.body)throw new Error("Response is not a string.");return Re.body}));case"json":default:return xe.pipe((0,K.U)(Re=>Re.body))}case"response":return xe;default:throw new Error(`Unreachable: unhandled observe type ${ye.observe}}`)}}delete(W,ge={}){return this.request("DELETE",W,ge)}get(W,ge={}){return this.request("GET",W,ge)}head(W,ge={}){return this.request("HEAD",W,ge)}jsonp(W,ge){return this.request("JSONP",W,{params:(new He).append(ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(W,ge={}){return this.request("OPTIONS",W,ge)}patch(W,ge,ye={}){return this.request("PATCH",W,Ae(ye,ge))}post(W,ge,ye={}){return this.request("POST",W,Ae(ye,ge))}put(W,ge,ye={}){return this.request("PUT",W,Ae(ye,ge))}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(P))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();class ze{constructor(G,W){this.next=G,this.interceptor=W}handle(G){return this.interceptor.intercept(G,this.next)}}const ee=new u.OlP("HTTP_INTERCEPTORS");let Te=(()=>{class fe{intercept(W,ge){return ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const Tt=/^\)\]\}',?\n/;let yt=(()=>{class fe{constructor(W){this.xhrFactory=W}handle(W){if("JSONP"===W.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new re.y(ge=>{const ye=this.xhrFactory.build();if(ye.open(W.method,W.urlWithParams),W.withCredentials&&(ye.withCredentials=!0),W.headers.forEach((Je,ot)=>ye.setRequestHeader(Je,ot.join(","))),W.headers.has("Accept")||ye.setRequestHeader("Accept","application/json, text/plain, */*"),!W.headers.has("Content-Type")){const Je=W.detectContentTypeHeader();null!==Je&&ye.setRequestHeader("Content-Type",Je)}if(W.responseType){const Je=W.responseType.toLowerCase();ye.responseType="json"!==Je?Je:"text"}const Ne=W.serializeBody();let se=null;const xe=()=>{if(null!==se)return se;const Je=1223===ye.status?204:ye.status,ot=ye.statusText||"OK",Sn=new U(ye.getAllResponseHeaders()),Le=function(fe){return"responseURL"in fe&&fe.responseURL?fe.responseURL:/^X-Request-URL:/m.test(fe.getAllResponseHeaders())?fe.getResponseHeader("X-Request-URL"):null}(ye)||W.url;return se=new H({headers:Sn,status:Je,statusText:ot,url:Le}),se},Re=()=>{let{headers:Je,status:ot,statusText:Sn,url:Le}=xe(),Ut=null;204!==ot&&(Ut=void 0===ye.response?ye.responseText:ye.response),0===ot&&(ot=Ut?200:0);let rn=ot>=200&&ot<300;if("json"===W.responseType&&"string"==typeof Ut){const Dr=Ut;Ut=Ut.replace(Tt,"");try{Ut=""!==Ut?JSON.parse(Ut):null}catch(nr){Ut=Dr,rn&&(rn=!1,Ut={error:nr,text:Ut})}}rn?(ge.next(new X({body:Ut,headers:Je,status:ot,statusText:Sn,url:Le||void 0})),ge.complete()):ge.error(new ue({error:Ut,headers:Je,status:ot,statusText:Sn,url:Le||void 0}))},St=Je=>{const{url:ot}=xe(),Sn=new ue({error:Je,status:ye.status||0,statusText:ye.statusText||"Unknown Error",url:ot||void 0});ge.error(Sn)};let Lt=!1;const zn=Je=>{Lt||(ge.next(xe()),Lt=!0);let ot={type:lt.DownloadProgress,loaded:Je.loaded};Je.lengthComputable&&(ot.total=Je.total),"text"===W.responseType&&!!ye.responseText&&(ot.partialText=ye.responseText),ge.next(ot)},wt=Je=>{let ot={type:lt.UploadProgress,loaded:Je.loaded};Je.lengthComputable&&(ot.total=Je.total),ge.next(ot)};return ye.addEventListener("load",Re),ye.addEventListener("error",St),ye.addEventListener("timeout",St),ye.addEventListener("abort",St),W.reportProgress&&(ye.addEventListener("progress",zn),null!==Ne&&ye.upload&&ye.upload.addEventListener("progress",wt)),ye.send(Ne),ge.next({type:lt.Sent}),()=>{ye.removeEventListener("error",St),ye.removeEventListener("abort",St),ye.removeEventListener("load",Re),ye.removeEventListener("timeout",St),W.reportProgress&&(ye.removeEventListener("progress",zn),null!==Ne&&ye.upload&&ye.upload.removeEventListener("progress",wt)),ye.readyState!==ye.DONE&&ye.abort()}})}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.JF))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const gn=new u.OlP("XSRF_COOKIE_NAME"),It=new u.OlP("XSRF_HEADER_NAME");class it{}let mn=(()=>{class fe{constructor(W,ge,ye){this.doc=W,this.platform=ge,this.cookieName=ye,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const W=this.doc.cookie||"";return W!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,y.Mx)(W,this.cookieName),this.lastCookieString=W),this.lastToken}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.K0),u.LFG(u.Lbi),u.LFG(gn))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Cn=(()=>{class fe{constructor(W,ge){this.tokenService=W,this.headerName=ge}intercept(W,ge){const ye=W.url.toLowerCase();if("GET"===W.method||"HEAD"===W.method||ye.startsWith("http://")||ye.startsWith("https://"))return ge.handle(W);const Ne=this.tokenService.getToken();return null!==Ne&&!W.headers.has(this.headerName)&&(W=W.clone({headers:W.headers.set(this.headerName,Ne)})),ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(it),u.LFG(It))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Nn=(()=>{class fe{constructor(W,ge){this.backend=W,this.injector=ge,this.chain=null}handle(W){if(null===this.chain){const ge=this.injector.get(ee,[]);this.chain=ge.reduceRight((ye,Ne)=>new ze(ye,Ne),this.backend)}return this.chain.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(x),u.LFG(u.zs3))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Ft=(()=>{class fe{static disable(){return{ngModule:fe,providers:[{provide:Cn,useClass:Te}]}}static withOptions(W={}){return{ngModule:fe,providers:[W.cookieName?{provide:gn,useValue:W.cookieName}:[],W.headerName?{provide:It,useValue:W.headerName}:[]]}}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[Cn,{provide:ee,useExisting:Cn,multi:!0},{provide:it,useClass:mn},{provide:gn,useValue:"XSRF-TOKEN"},{provide:It,useValue:"X-XSRF-TOKEN"}]}),fe})(),gt=(()=>{class fe{}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[ie,{provide:P,useClass:Nn},yt,{provide:x,useExisting:yt}],imports:[[Ft.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),fe})()},476:(Ye,me,O)=>{"use strict";O.d(me,{deG:()=>vv,tb:()=>My,AFp:()=>wy,ip1:()=>Pd,CZH:()=>Os,hGG:()=>cS,z2F:()=>xa,sBO:()=>eb,Sil:()=>Na,_Vd:()=>Do,EJc:()=>Iy,SBq:()=>Oi,qLn:()=>es,vpe:()=>Pi,gxx:()=>ss,tBr:()=>qo,XFs:()=>se,OlP:()=>ln,zs3:()=>Vt,ZZ4:()=>Nl,aQg:()=>xl,soG:()=>Wl,YKP:()=>pm,v3s:()=>HA,h0i:()=>bo,PXZ:()=>kA,R0b:()=>Er,FiY:()=>$i,Lbi:()=>Sy,g9A:()=>Ay,Qsj:()=>U0,FYo:()=>Rl,JOm:()=>Ai,Tiy:()=>od,q3G:()=>un,tp0:()=>to,EAV:()=>KA,Rgc:()=>Ea,dDg:()=>Ny,DyG:()=>el,GfV:()=>sm,s_b:()=>kl,ifc:()=>Le,eFA:()=>Uy,G48:()=>OA,Gpc:()=>Fe,_c5:()=>rS,VLi:()=>IA,c2e:()=>Ty,zSh:()=>ua,wAp:()=>qe,vHH:()=>$e,EiD:()=>If,mCW:()=>ta,qzn:()=>Xo,JVY:()=>Kv,pB0:()=>Qv,eBb:()=>Zv,L6k:()=>Yv,LAX:()=>qv,cg1:()=>Kc,Tjo:()=>tS,kL8:()=>Tg,yhl:()=>Ef,dqk:()=>nt,sIi:()=>fa,CqO:()=>Lc,QGY:()=>Fc,F4k:()=>Vp,RDi:()=>Be,AaK:()=>Me,z3N:()=>ji,qOj:()=>Ec,TTD:()=>Li,_Bn:()=>tm,xp6:()=>hh,uIk:()=>wc,Tol:()=>rg,ekj:()=>jc,Suo:()=>ty,Xpm:()=>et,lG2:()=>rr,Yz7:()=>xt,cJS:()=>Ft,oAB:()=>yn,Yjl:()=>Yn,Y36:()=>pa,_UZ:()=>Lp,BQk:()=>xc,ynx:()=>Nc,qZA:()=>Rc,TgZ:()=>Pc,EpF:()=>kp,n5z:()=>Ho,Ikx:()=>zc,SDv:()=>Qg,QtT:()=>Jg,N_p:()=>Jc,pQV:()=>Xc,Zx4:()=>Xg,tHW:()=>Qc,LFG:()=>_n,$8M:()=>_u,NdJ:()=>kc,CRH:()=>ny,oxw:()=>jp,ALo:()=>Zm,xi3:()=>qm,Q6J:()=>Ic,s9C:()=>Uc,MGl:()=>bl,hYB:()=>Bc,DdM:()=>jm,VKq:()=>Hm,iGM:()=>Xm,MAs:()=>wp,CHM:()=>$a,LSH:()=>Nu,kYT:()=>zr,Udp:()=>$c,YNc:()=>bp,W1O:()=>sy,_uU:()=>cg,Oqu:()=>Gc,hij:()=>Al,AsE:()=>Wc,Gf:()=>ey});var y=O(23),u=O(5994),ce=O(5929),re=O(6149),te=O(9528),K=O(6889),P=O(8839),x=O(1776),U=O(9162),Y=O(4294),ae=O(4111),Ee=O(4297);function Pe(e,t){for(var n=[],r=2;r ${n} ${r} ${t} <=Actual]`))}function xt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ft(e){return{providers:e.providers||[],imports:e.imports||[]}}function gt(e){return tr(e,W)||tr(e,ye)}function tr(e,t){return e.hasOwnProperty(t)?e[t]:null}function G(e){return e&&(e.hasOwnProperty(ge)||e.hasOwnProperty(Ne))?e[ge]:null}const W=_e({\u0275prov:_e}),ge=_e({\u0275inj:_e}),ye=_e({ngInjectableDef:_e}),Ne=_e({ngInjectorDef:_e});var se=(()=>((se=se||{})[se.Default=0]="Default",se[se.Host=1]="Host",se[se.Self=2]="Self",se[se.SkipSelf=4]="SkipSelf",se[se.Optional=8]="Optional",se))();let xe;function St(e){const t=xe;return xe=e,t}function Lt(e,t,n){const r=gt(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&se.Optional?null:void 0!==t?t:void ze(Me(e),"Injector")}function wt(e){return{toString:e}.toString()}var Je=(()=>((Je=Je||{})[Je.OnPush=0]="OnPush",Je[Je.Default=1]="Default",Je))(),Le=(()=>((Le=Le||{})[Le.Emulated=0]="Emulated",Le[Le.None=2]="None",Le[Le.ShadowDom=3]="ShadowDom",Le))();const Ut="undefined"!=typeof globalThis&&globalThis,rn="undefined"!=typeof window&&window,Dr="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,nr="undefined"!=typeof global&&global,nt=Ut||nr||rn||Dr,xn={},mt=[],cr=_e({\u0275cmp:_e}),br=_e({\u0275dir:_e}),Gr=_e({\u0275pipe:_e}),gi=_e({\u0275mod:_e}),Wr=_e({\u0275loc:_e}),Tn=_e({\u0275fac:_e}),Fn=_e({__NG_ELEMENT_ID__:_e});let Kn=0;function et(e){return wt(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Je.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||mt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Le.Emulated,id:"c",styles:e.styles||mt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,s=e.pipes;return r.id+=Kn++,r.inputs=Kr(e.inputs,n),r.outputs=Kr(e.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(In):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(En):null,r})}function In(e){return qt(e)||function(e){return e[br]||null}(e)}function En(e){return function(e){return e[Gr]||null}(e)}const Ln={};function yn(e){return wt(()=>{const t={type:e.type,bootstrap:e.bootstrap||mt,declarations:e.declarations||mt,imports:e.imports||mt,exports:e.exports||mt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Ln[e.id]=e.type),t})}function zr(e,t){return wt(()=>{const n=Yt(e,!0);n.declarations=t.declarations||mt,n.imports=t.imports||mt,n.exports=t.exports||mt})}function Kr(e,t){if(null==e)return xn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const rr=et;function Yn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function qt(e){return e[cr]||null}function Yt(e,t){const n=e[gi]||null;if(!n&&!0===t)throw new Error(`Type ${Me(e)} does not have '\u0275mod' property.`);return n}function sn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Dn(e){return Array.isArray(e)&&!0===e[1]}function pr(e){return 0!=(8&e.flags)}function Mr(e){return 2==(2&e.flags)}function jn(e){return 1==(1&e.flags)}function Pt(e){return null!==e.template}function Tr(e){return 0!=(512&e[2])}function Pr(e,t){return e.hasOwnProperty(Tn)?e[Tn]:null}class Yi{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Li(){return ki}function ki(e){return e.type.prototype.ngOnChanges&&(e.setInput=gr),Rr}function Rr(){const e=_i(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===xn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function gr(e,t,n,r){const i=_i(e)||function(e,t){return e[Zi]=t}(e,{previous:xn,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],d=s[a];o[a]=new Yi(d&&d.currentValue,t,s===xn),e[r]=t}Li.ngInherit=!0;const Zi="__ngSimpleChanges__";function _i(e){return e[Zi]||null}let pe;function Be(e){pe=e}function Dt(){return void 0!==pe?pe:"undefined"!=typeof document?document:void 0}function m(e){return!!e.listen}const M={createRenderer:(e,t)=>Dt()};function we(e){for(;Array.isArray(e);)e=e[0];return e}function Jt(e,t){return we(t[e])}function zt(e,t){return we(t[e.index])}function Nr(e,t){return e.data[t]}function mr(e,t){return e[t]}function bn(e,t){const n=t[e];return sn(n)?n:n[0]}function so(e){return 4==(4&e[2])}function Jr(e){return 128==(128&e[2])}function Xr(e,t){return null==t?null:e[t]}function ao(e){e[18]=0}function ks(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const st={lFrame:Hs(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ba(){return st.bindingsEnabled}function ve(){return st.lFrame.lView}function _t(){return st.lFrame.tView}function $a(e){return st.lFrame.contextLView=e,e[8]}function pn(){let e=ja();for(;null!==e&&64===e.type;)e=e.parent;return e}function ja(){return st.lFrame.currentTNode}function co(){const e=st.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function xr(e,t){const n=st.lFrame;n.currentTNode=e,n.isParent=t}function Us(){return st.lFrame.isParent}function Io(){st.lFrame.isParent=!1}function Oo(){return st.isInCheckNoChangesMode}function Po(e){st.isInCheckNoChangesMode=e}function Hn(){const e=st.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yr(){return st.lFrame.bindingIndex}function Vi(){return st.lFrame.bindingIndex++}function Fr(e){const t=st.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Bs(e){st.lFrame.inI18n=e}function au(e,t){const n=st.lFrame;n.bindingIndex=n.bindingRootIndex=e,$s(t)}function $s(e){st.lFrame.currentDirectiveIndex=e}function Ga(){return st.lFrame.currentQueryIndex}function fo(e){st.lFrame.currentQueryIndex=e}function uu(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wa(e,t,n){if(n&se.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&se.Host||(i=uu(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=st.lFrame=No();return r.currentTNode=t,r.lView=e,!0}function Ro(e){const t=No(),n=e[1];st.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function No(){const e=st.lFrame,t=null===e?null:e.child;return null===t?Hs(e):t}function Hs(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function za(){const e=st.lFrame;return st.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ui=za;function xo(){const e=za();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Gn(){return st.lFrame.selectedIndex}function ei(e){st.lFrame.selectedIndex=e}function Xt(){const e=st.lFrame;return Nr(e.tView,e.selectedIndex)}function ti(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[d]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Qi{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Bo(e,t,n){const r=m(e);let i=0;for(;it){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Ks=!0;function jo(e){const t=Ks;return Ks=e,t}let f=0;function l(e,t){const n=C(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,p(r.data,e),p(t,null),p(r.blueprint,null));const i=b(e,t),o=e.injectorIndex;if(Ja(i)){const s=Ji(i),a=Ei(i,t),d=a[1].data;for(let g=0;g<8;g++)t[o+g]=a[s+g]|d[s+g]}return t[o+8]=i,o}function p(e,t){e.push(0,0,0,0,0,0,0,0,t)}function C(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function b(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function N(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Fn)&&(r=n[Fn]),null==r&&(r=n[Fn]=f++);const i=255&r;t.data[e+(i>>5)]|=1<=0?255&t:kt:t}(n);if("function"==typeof o){if(!Wa(t,e,r))return r&se.Host?q(i,n,r):Se(t,n,r,i);try{const s=o(r);if(null!=s||r&se.Optional)return s;ze(n)}finally{Ui()}}else if("number"==typeof o){let s=null,a=C(e,t),d=-1,g=r&se.Host?t[16][6]:null;for((-1===a||r&se.SkipSelf)&&(d=-1===a?b(e,t):t[a+8],-1!==d&&Bi(r,!1)?(s=t[1],a=Ji(d),t=Ei(d,t)):a=-1);-1!==a;){const D=t[1];if(Xi(o,a,D.data)){const T=Ct(a,t,n,s,r,g);if(T!==at)return T}d=t[a+8],-1!==d&&Bi(r,t[1].data[a+8]===g)&&Xi(o,a,t)?(s=D,a=Ji(d),t=Ei(d,t)):a=-1}}}return Se(t,n,r,i)}const at={};function kt(){return new sr(pn(),ve())}function Ct(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],D=vr(a,s,n,null==r?Mr(a)&&Ks:r!=s&&0!=(3&a.type),i&se.Host&&o===a);return null!==D?or(t,s,D,a):at}function vr(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,d=e.directiveStart,D=o>>20,I=i?a+D:e.directiveEnd;for(let k=r?a:a+D;k=d&&j.type===n)return k}if(i){const k=s[d];if(k&&Pt(k)&&k.type===n)return d}return null}function or(e,t,n,r){let i=e[n];const o=t.data;if(function(e){return e instanceof Qi}(i)){const s=i;s.resolving&&function(e,t){throw new $e("200",`Circular dependency in DI detected for ${e}`)}(X(o[n]));const a=jo(s.canSeeViewProviders);s.resolving=!0;const d=s.injectImpl?St(s.injectImpl):null;Wa(e,r,se.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=ki(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==d&&St(d),jo(a),s.resolving=!1,Ui()}}return i}function Xi(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Tn]||vu(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[Tn]||vu(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function vu(e){return Ke(e)?()=>{const t=vu(he(e));return t&&t()}:Pr(e)}function _u(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{const r=function(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(d,g,D){const T=d.hasOwnProperty(Wo)?d[Wo]:Object.defineProperty(d,Wo,{value:[]})[Wo];for(;T.length<=D;)T.push(null);return(T[D]=T[D]||[]).push(s),d}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class ln{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=xt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const vv=new ln("AnalyzeForEntryComponents"),el=Function;function kr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Di(n,t):t(n))}function nl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function mo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function _r(e,t,n){let r=Ko(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Eu(e,t){const n=Ko(e,t);if(n>=0)return e[1|n]}function Ko(e,t){return function(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i< ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Me(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Tv,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Yo]=null,e}const qo=Xs(go("Inject",e=>({token:e})),-1),$i=Xs(go("Optional"),8),to=Xs(go("SkipSelf"),4);let sl;function Jo(e){var t;return(null===(t=function(){if(void 0===sl&&(sl=null,nt.trustedTypes))try{sl=nt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sl}())||void 0===t?void 0:t.createHTML(e))||e}class vo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class jv extends vo{getTypeName(){return"HTML"}}class Hv extends vo{getTypeName(){return"Style"}}class Gv extends vo{getTypeName(){return"Script"}}class Wv extends vo{getTypeName(){return"URL"}}class zv extends vo{getTypeName(){return"ResourceURL"}}function ji(e){return e instanceof vo?e.changingThisBreaksApplicationSecurity:e}function Xo(e,t){const n=Ef(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Ef(e){return e instanceof vo&&e.getTypeName()||null}function Kv(e){return new jv(e)}function Yv(e){return new Hv(e)}function Zv(e){return new Gv(e)}function qv(e){return new Wv(e)}function Qv(e){return new zv(e)}function Df(e){const t=new Xv(e);return function(){try{return!!(new window.DOMParser).parseFromString(Jo(""),"text/html")}catch(e){return!1}}()?new Jv(t):t}class Jv{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Jo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class Xv{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Jo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Jo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0ta(t.trim())).join(", ")}function bi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function na(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const wf=bi("area,br,col,hr,img,wbr"),Af=bi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sf=bi("rp,rt"),Iu=na(wf,na(Af,bi("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")),na(Sf,bi("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")),na(Sf,Af)),Ou=bi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pu=bi("srcset"),Mf=na(Ou,Pu,bi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bi("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")),r_=bi("script,style,template");class i_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Iu.hasOwnProperty(n))return this.sanitizedSomething=!0,!r_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i"),!0}endElement(t){const n=t.nodeName.toLowerCase();Iu.hasOwnProperty(n)&&!wf.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Tf(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const o_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s_=/([^\#-~ |!])/g;function Tf(e){return e.replace(/&/g,"&").replace(o_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(s_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ll;function If(e,t){let n=null;try{ll=ll||Df(e);let r=t?String(t):"";n=ll.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ll.getInertBodyElement(r)}while(r!==o);return Jo((new i_).sanitizeChildren(Ru(n)||n))}finally{if(n){const r=Ru(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ru(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var un=(()=>((un=un||{})[un.NONE=0]="NONE",un[un.HTML=1]="HTML",un[un.STYLE=2]="STYLE",un[un.SCRIPT=3]="SCRIPT",un[un.URL=4]="URL",un[un.RESOURCE_URL=5]="RESOURCE_URL",un))();function Nu(e){const t=function(){const e=ve();return e&&e[12]}();return t?t.sanitize(un.URL,e)||"":Xo(e,"URL")?ji(e):ta(H(e))}const Rf="__ngContext__";function Qn(e,t){e[Rf]=t}function Fu(e){const t=function(e){return e[Rf]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ul(e){return e.ngOriginalError}function w_(e,...t){e.error(...t)}class es{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=this._findContext(t),i=(e=t)&&e.ngErrorLogger||w_;var e;i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n),r&&i(this._console,"ERROR CONTEXT",r)}_findContext(t){return t?t.ngDebugContext||this._findContext(ul(t)):null}_findOriginalError(t){let n=t&&ul(t);for(;n&&ul(n);)n=ul(n);return n||null}}const M_=/^>|^->||--!>|)/;const $f=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(nt))();function wi(e){return e instanceof Function?e():e}var Ai=(()=>((Ai=Ai||{})[Ai.Important=1]="Important",Ai[Ai.DashCase=2]="DashCase",Ai))();let ku;function Vu(e,t){return ku(e,t)}function oa(e){const t=e[3];return Dn(t)?t[3]:t}function Uu(e){return zf(e[13])}function Bu(e){return zf(e[4])}function zf(e){for(;null!==e&&!Dn(e);)e=e[4];return e}function ns(e,t,n,r,i){if(null!=r){let o,s=!1;Dn(r)?o=r:sn(r)&&(s=!0,r=r[0]);const a=we(r);0===e&&null!==n?null==i?Jf(t,n,a):_o(t,n,a,i||null,!0):1===e&&null!==n?_o(t,n,a,i||null,!0):2===e?oh(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,r,i){const o=n[7];o!==we(n)&&ns(t,e,r,o,i);for(let a=10;at.replace(T_,"\u200b$1\u200b"))}(t))}function ju(e,t,n){return m(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Yf(e,t){const n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,ks(i,-1)),n.splice(r,1)}function Hu(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&Yf(i,r),t>0&&(e[n-1][4]=r[4]);const o=mo(e,10+t);!function(e,t){sa(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Zf(e,t){if(!(256&t[2])){const n=t[11];m(n)&&n.destroyNode&&sa(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Gu(e[1],e);for(;t;){let n=null;if(sn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)sn(t)&&Gu(t[1],t),t=t[3];null===t&&(t=e),sn(t)&&Gu(t[1],t),n=t&&t[4]}t=n}}(t)}}function Gu(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[i=g]():r[i=-g].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;oo?"":i[T+1].toLowerCase();const k=8&r?I:null;if(k&&-1!==lh(k,g,0)||2&r&&g!==I){if(ri(r))return!1;s=!0}}}}else{if(!s&&!ri(r)&&!ri(d))return!1;if(s&&ri(d))continue;s=!1,r=d|1&r}}return ri(r)||s}function ri(e){return 0==(1&e)}function X_(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!ri(s)&&(t+=fh(o,i),i=""),r=s,o=o||!ri(r);n++}return""!==i&&(t+=fh(o,i)),t}const dt={};function hh(e){ph(_t(),ve(),Gn()+e,Oo())}function ph(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&ho(t,o,n)}else{const o=e.preOrderHooks;null!==o&&Vo(t,o,0,n)}ei(n)}function pl(e,t){return e<<17|t<<2}function ii(e){return e>>17&32767}function Zu(e){return 2|e}function Hi(e){return(131068&e)>>2}function qu(e,t){return-131069&e|t<<2}function Qu(e){return 1|e}function wh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&ph(e,t,20,Oo()),n(r,i)}finally{ei(o)}}function Sh(e,t,n){if(pr(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=d&&a.push(d),a.push(r,i,s)}}function xh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function OC(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&uc(n)}}function uc(e){for(let r=Uu(e);null!==r;r=Bu(r))for(let i=10;i0&&uc(o)}const n=e[1].components;if(null!==n)for(let r=0;r0&&uc(i)}}function kC(e,t){const n=bn(t,e),r=n[1];(function(e,t){for(let n=t.length;nPromise.resolve(null))();function Bh(e){return e[7]||(e[7]=[])}function $h(e){return e.cleanup||(e.cleanup=[])}function Hh(e,t){const n=e[9],r=n?n.get(es,null):null;r&&r.handleError(t)}function Gh(e,t,n,r,i){for(let o=0;othis.processProvider(a,t,n)),Di([t],a=>this.processInjectorType(a,[],o)),this.records.set(ss,as(void 0,this));const s=this.records.get(ua);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:Me(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Qs,r=se.Default){this.assertNotDestroyed();const i=Zo(this),o=St(void 0);try{if(!(r&se.SkipSelf)){let a=this.records.get(t);if(void 0===a){const d=("function"==typeof(e=t)||"object"==typeof e&&e instanceof ln)&>(t);a=d&&this.injectableDefInScope(d)?as(gc(t),ca):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&se.Self?zh():this.parent).get(t,n=r&se.Optional&&n===Qs?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Yo]=s[Yo]||[]).unshift(Me(t)),i)throw s;return hf(s,t,"R3InjectorError",this.source)}throw s}finally{St(o),Zo(i)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(Me(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=he(t)))return!1;let i=G(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=G(o)),null==i)return!1;if(null!=i.imports&&!a){let D;r.push(s);try{Di(i.imports,T=>{this.processInjectorType(T,n,r)&&(void 0===D&&(D=[]),D.push(T))})}finally{}if(void 0!==D)for(let T=0;Tthis.processProvider(j,I,k||mt))}}this.injectorDefTypes.add(s);const d=Pr(s)||(()=>new s);this.records.set(s,as(d,ca));const g=i.providers;if(null!=g&&!a){const D=t;Di(g,T=>this.processProvider(T,D,g))}return void 0!==o&&void 0!==t.providers}processProvider(t,n,r){let i=ls(t=he(t))?t:he(t&&t.provide);const o=Zh(e=t)?as(void 0,e.useValue):as(Yh(e),ca);var e;if(ls(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=as(void 0,ca,!0),s.factory=()=>yo(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,n){return n.value===ca&&(n.value=WC,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=he(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function gc(e){const t=gt(e),n=null!==t?t.factory:Pr(e);if(null!==n)return n;if(e instanceof ln)throw new Error(`Token ${Me(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=function(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new Error("unreachable")}function Yh(e,t,n){let r;if(ls(e)){const i=he(e);return Pr(i)||gc(i)}if(Zh(e))r=()=>he(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...yo(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>_n(he(e.useExisting));else{const i=he(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Pr(i)||gc(i);r=()=>new i(...yo(e.deps))}return r}function as(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zh(e){return null!==e&&"object"==typeof e&&Au in e}function ls(e){return"function"==typeof e}const qh=function(e,t,n){return function(e,t=null,n=null,r){const i=Kh(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};class Vt{static create(t,n){return Array.isArray(t)?qh(t,n,""):qh(t.providers,t.parent,t.name||"")}}function pE(e,t){ti(Fu(e)[1],pn())}function Ec(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Pt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const s=e;s.inputs=Dc(e.inputs),s.declaredInputs=Dc(e.declaredInputs),s.outputs=Dc(e.outputs);const a=i.hostBindings;a&&vE(e,a);const d=i.viewQuery,g=i.contentQueries;if(d&&mE(e,d),g&&yE(e,g),He(e.inputs,i.inputs),He(e.declaredInputs,i.declaredInputs),He(e.outputs,i.outputs),Pt(i)&&i.data.animation){const D=e.data;D.animation=(D.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=$o(i.hostAttrs,n=$o(n,i.hostAttrs))}}(r)}function Dc(e){return e===xn?{}:e===mt?[]:e}function mE(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function yE(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,o)=>{t(r,i,o),n(r,i,o)}:t}function vE(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}Vt.THROW_IF_NOT_FOUND=Qs,Vt.NULL=new Wh,Vt.\u0275prov=xt({token:Vt,providedIn:"any",factory:()=>_n(ss)}),Vt.__NG_ELEMENT_ID__=-1;let Cl=null;function us(){if(!Cl){const e=nt.Symbol;if(e&&e.iterator)Cl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(we(Qe[r.index])):r.index;if(m(n)){let Qe=null;if(!a&&d&&(Qe=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;od?a[d]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==Qe)(Qe.__ngLastListenerFn__||Qe).__ngNextListenerFn__=o,Qe.__ngLastListenerFn__=o,k=!1;else{o=Vc(r,t,T,o,!1);const pt=n.listen(Ce,i,o);I.push(o,pt),D&&D.push(i,ke,de,de+1)}}else o=Vc(r,t,T,o,!0),Ce.addEventListener(i,o,s),I.push(o),D&&D.push(i,ke,de,s)}else o=Vc(r,t,T,o,!1);const j=r.outputs;let Q;if(k&&null!==j&&(Q=j[i])){const z=Q.length;if(z)for(let Ce=0;Ce0;)t=t[15],e--;return t}(e,st.lFrame.contextLView))[8]}(e)}function Uc(e,t,n){return bl(e,"",t,"",n),Uc}function bl(e,t,n,r,i){const o=ve(),s=ds(o,t,n,r);return s!==dt&&Cr(_t(),Xt(),o,e,s,o[11],i,!1),bl}function Bc(e,t,n,r,i,o,s){const a=ve(),d=fs(a,t,n,r,i,o);return d!==dt&&Cr(_t(),Xt(),a,e,d,a[11],s,!1),Bc}function qp(e,t,n,r,i){const o=e[n+1],s=null===t;let a=r?ii(o):Hi(o),d=!1;for(;0!==a&&(!1===d||s);){const D=e[a+1];iD(e[a],t)&&(d=!0,e[a+1]=r?Qu(D):Zu(D)),a=r?ii(D):Hi(D)}d&&(e[n+1]=r?Zu(o):Qu(o))}function iD(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ko(e,t)>=0}const An={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Qp(e){return e.substring(An.key,An.keyEnd)}function Jp(e,t){const n=An.textEnd;return n===t?-1:(t=An.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,An.key=t,n),Cs(e,t,n))}function Cs(e,t,n){for(;t=0;n=Jp(t,n))_r(e,Qp(t),!0)}function ai(e,t,n,r){const i=ve(),o=_t(),s=Fr(2);o.firstUpdatePass&&og(o,e,s,r),t!==dt&&Jn(i,s,t)&&ag(o,o.data[Gn()],i,i[11],e,i[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Me(ji(e)))),e}(t,n),r,s)}function ig(e,t){return t>=e.expandoStartIndex}function og(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[Gn()],s=ig(e,n);ug(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const i=function(e){const t=st.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=ga(n=Hc(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Hc(i,e,t,n,r),null===o){let d=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Hi(r))return e[ii(r)]}(e,t,r);void 0!==d&&Array.isArray(d)&&(d=Hc(null,e,t,d[1],r),d=ga(d,t.attrs,r),function(e,t,n,r){e[ii(n?t.classBindings:t.styleBindings)]=r}(e,t,r,d))}else o=function(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(g=!0)}else D=n;if(i)if(0!==d){const I=ii(e[a+1]);e[r+1]=pl(I,a),0!==I&&(e[I+1]=qu(e[I+1],r)),e[a+1]=function(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=pl(a,0),0!==a&&(e[a+1]=qu(e[a+1],r)),a=r;else e[r+1]=pl(d,0),0===a?a=r:e[d+1]=qu(e[d+1],r),d=r;g&&(e[r+1]=Zu(e[r+1])),qp(e,D,r,!0),qp(e,D,r,!1),function(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ko(o,t)>=0&&(n[r+1]=Qu(n[r+1]))}(t,D,e,r,o),s=pl(a,d),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function Hc(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const d=e[i],g=Array.isArray(d),D=g?d[1]:d,T=null===D;let I=n[i+1];I===dt&&(I=T?mt:void 0);let k=T?Eu(I,r):D===r?I:void 0;if(g&&!wl(k)&&(k=Eu(d,r)),wl(k)&&(a=k,s))return a;const j=e[i+1];i=s?ii(j):Hi(j)}if(null!==t){let d=o?t.residualClasses:t.residualStyles;null!=d&&(a=Eu(d,r))}return a}function wl(e){return void 0!==e}function ug(e,t){return 0!=(e.flags&(t?16:32))}function cg(e,t=""){const n=ve(),r=_t(),i=e+20,o=r.firstCreatePass?rs(r,i,1,t,null):r.data[i],s=n[i]=$u(n[11],t);fl(r,n,s,o),xr(o,!1)}function Gc(e){return Al("",e,""),Gc}function Al(e,t,n){const r=ve(),i=ds(r,e,t,n);return i!==dt&&Wi(r,Gn(),i),Al}function Wc(e,t,n,r,i){const o=ve(),s=fs(o,e,t,n,r,i);return s!==dt&&Wi(o,Gn(),s),Wc}function zc(e,t,n){const r=ve();return Jn(r,Vi(),t)&&Cr(_t(),Xt(),r,e,t,r[11],n,!0),zc}const Eo=void 0;var VD=["en",[["a","p"],["AM","PM"],Eo],[["AM","PM"],Eo,Eo],[["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"]],Eo,[["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"]],Eo,[["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}",Eo,"{1} 'at' {0}",Eo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Es={};function Kc(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Ig(t);if(n)return n;const r=t.split("-")[0];if(n=Ig(r),n)return n;if("en"===r)return VD;throw new Error(`Missing locale data for the locale "${e}".`)}function Tg(e){return Kc(e)[qe.PluralCase]}function Ig(e){return e in Es||(Es[e]=nt.ng&&nt.ng.common&&nt.ng.common.locales&&nt.ng.common.locales[e]),Es[e]}var qe=(()=>((qe=qe||{})[qe.LocaleId=0]="LocaleId",qe[qe.DayPeriodsFormat=1]="DayPeriodsFormat",qe[qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",qe[qe.DaysFormat=3]="DaysFormat",qe[qe.DaysStandalone=4]="DaysStandalone",qe[qe.MonthsFormat=5]="MonthsFormat",qe[qe.MonthsStandalone=6]="MonthsStandalone",qe[qe.Eras=7]="Eras",qe[qe.FirstDayOfWeek=8]="FirstDayOfWeek",qe[qe.WeekendRange=9]="WeekendRange",qe[qe.DateFormat=10]="DateFormat",qe[qe.TimeFormat=11]="TimeFormat",qe[qe.DateTimeFormat=12]="DateTimeFormat",qe[qe.NumberSymbols=13]="NumberSymbols",qe[qe.NumberFormats=14]="NumberFormats",qe[qe.CurrencyCode=15]="CurrencyCode",qe[qe.CurrencySymbol=16]="CurrencySymbol",qe[qe.CurrencyName=17]="CurrencyName",qe[qe.Currencies=18]="Currencies",qe[qe.Directionality=19]="Directionality",qe[qe.PluralCase=20]="PluralCase",qe[qe.ExtraData=21]="ExtraData",qe))();const BD=["zero","one","two","few","many"],Sl="en-US",Ml={marker:"element"},Tl={marker:"ICU"};var cn=(()=>((cn=cn||{})[cn.SHIFT=2]="SHIFT",cn[cn.APPEND_EAGERLY=1]="APPEND_EAGERLY",cn[cn.COMMENT=2]="COMMENT",cn))();let Og=Sl;function Yc(e){(function(e,t){null==e&&it(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Og=e.toLowerCase().replace(/_/g,"-"))}function Pg(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?th(e,0,n):we(n[i])}function Rg(e,t,n,r,i){const o=t.insertBeforeIndex;if(Array.isArray(o)){let s=r,a=null;if(3&t.type||(a=s,s=i),null!==s&&0==(2&t.flags))for(let d=1;d1)for(let n=e.length-2;n>=0;n--){const r=e[n];xg(r)||GD(r,t)&&null===WD(r)&&zD(r,t.index)}}function xg(e){return!(64&e.type)}function GD(e,t){return xg(t)||e.index>t.index}function WD(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function zD(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(rh(Pg,Rg),e.insertBeforeIndex=t)}function ma(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function ZD(e,t,n){const r=ic(e,n,64,null,null);return Ng(t,r),r}function Il(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Fg(e){return e>>>17}function Lg(e){return(131070&e)>>>1}let ya=0,va=0;function Vg(e,t,n,r){const i=n[11];let s,o=null;for(let a=0;a>>1,n),null,null,k,j,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${d}"`)}else switch(d){case Tl:const g=t[++a],D=t[++a];null===n[D]&&Qn(n[D]=L_(i,g),n);break;case Ml:const T=t[++a],I=t[++a];null===n[I]&&Qn(n[I]=ju(i,T,null),n)}}}function Ug(e,t,n,r,i){for(let o=0;o>>2;switch(3&D){case 1:const I=n[++g],k=n[++g],j=e.data[T];"string"==typeof j?lc(t[11],t[T],null,j,I,d,k):Cr(e,j,t,I,d,t[11],k,!1);break;case 0:const Q=t[T];null!==Q&&Kf(t[11],Q,d);break;case 2:e0(e,ma(e,T),t,d);break;case 3:Bg(e,ma(e,T),r,t)}}}}else{const d=n[o+1];if(d>0&&3==(3&d)){const D=ma(e,d>>>2);t[D.currentCaseLViewIndex]<0&&Bg(e,D,r,t)}}o+=a}}function Bg(e,t,n,r){let i=r[t.currentCaseLViewIndex];if(null!==i){let o=ya;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),Ug(e,r,t.update[i],n,o)}}function e0(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=Tg(t)(parseInt(e,10)),r=BD[n];return void 0!==r?r:"other"}(t,Og);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(Il(t,n)!==i&&($g(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const s=n[t.anchorIdx];s&&Vg(e,t.create[i],n,s)}}function $g(e,t,n){let r=Il(t,n);if(null!==r){const i=t.remove[r];for(let o=0;o0){const a=Jt(s,n);null!==a&&oh(n[11],a)}else $g(e,ma(e,~s),n)}}}function n0(){const e=[];let n,r,t=-1;function o(a,d){t=0;const g=Il(a,d);r=null!==g?a.remove[g]:mt}function s(){if(t0?n[a]:(e.push(t,r),o(n[1].data[~a],n),s())}return 0===e.length?null:(r=e.pop(),t=e.pop(),s())}return function(a,d){for(n=d;e.length;)e.pop();return o(a.value,d),s}}const Ol=/\ufffd(\d+):?\d*\ufffd/gi,i0=/\ufffd(\d+)\ufffd/,Hg=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,o0=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,s0=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,a0=/\uE500/g;function Gg(e,t,n,r,i,o,s){const a=is(e,r,1,null);let d=a<n.length&&n.push(d)}return{type:r,mainBinding:i,cases:t,values:n}}function Zc(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(e);){const a=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const d=e.substring(t,a);Hg.test(d)?r.push(g0(d)):r.push(d),t=a+1}}else{if(0==n.length){const d=e.substring(t,a);r.push(d),t=a+1}n.push("{")}}const s=e.substring(t);return r.push(s),r}function m0(e,t,n,r,i,o,s,a){const d=[],g=[],D=[];t.cases.push(o),t.create.push(d),t.remove.push(g),t.update.push(D);const I=Df(Dt()).getInertBodyElement(s),k=Ru(I)||I;return k?Yg(e,t,n,r,d,g,D,k,i,a,0):0}function Yg(e,t,n,r,i,o,s,a,d,g,D){let T=0,I=a.firstChild;for(;I;){const k=is(e,n,1,null);switch(I.nodeType){case Node.ELEMENT_NODE:const j=I,Q=j.tagName.toLowerCase();if(Iu.hasOwnProperty(Q)){qc(i,Ml,Q,d,k),e.data[k]=Q;const ke=j.attributes;for(let Qe=0;Qe>>cn.SHIFT;let T=e[D];null===T&&(T=e[D]=d?i.createComment(a):$u(i,a)),g&&null!==n&&_o(i,n,T,r,!1)}})(i,d.create,D,a&&8&a.type?i[a.index]:null),Bs(!0)}function Jc(){Bs(!1)}function Qg(e,t,n){Qc(e,t,n),Jc()}function Xc(e){return function(e){e&&(ya|=1<0){const r=e.data[n];Ug(e,t,Array.isArray(r)?r:r.update,yr()-va-1,ya)}ya=0,va=0}(_t(),ve(),e+20)}function Xg(e,t={}){return function(e,t={}){let n=e;if(E0.test(e)){const r={},i=[0];n=n.replace(D0,(o,s,a)=>{const d=s||a,g=r[d]||[];if(g.length||(d.split("|").forEach(Q=>{const z=Q.match(M0),Ce=z?parseInt(z[1],10):0,de=S0.test(Q);g.push([Ce,de,Q])}),r[d]=g),!g.length)throw new Error(`i18n postprocess: unmatched placeholder - ${d}`);const D=i[i.length-1];let T=0;for(let Q=0;Qt.hasOwnProperty(o)?`${i}${t[o]}${d}`:r),n=n.replace(w0,(r,i)=>t.hasOwnProperty(i)?t[i]:r),n=n.replace(A0,(r,i)=>{if(t.hasOwnProperty(i)){const o=t[i];if(!o.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${i}`);return o.shift()}return r})),n}(e,t)}function ed(e,t,n,r,i){if(e=he(e),Array.isArray(e))for(let o=0;o>20;if(ls(e)||!e.multi){const k=new Qi(d,i,pa),j=nd(a,t,i?D:D+I,T);-1===j?(N(l(g,s),o,a),td(o,e,t.length),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(k),s.push(k)):(n[j]=k,s[j]=k)}else{const k=nd(a,t,D+I,T),j=nd(a,t,D,D+I),Q=k>=0&&n[k],z=j>=0&&n[j];if(i&&!z||!i&&!Q){N(l(g,s),o,a);const Ce=function(e,t,n,r,i){const o=new Qi(e,n,pa);return o.multi=[],o.index=t,o.componentProviders=0,em(o,i,r&&!n),o}(i?R0:P0,n.length,i,r,d);!i&&z&&(n[j].providerFactory=Ce),td(o,e,t.length,0),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(Ce),s.push(Ce)}else td(o,e,k>-1?k:j,em(n[i?j:k],d,!i&&r));!i&&r&&z&&n[j].componentProviders++}}}function td(e,t,n,r){const i=ls(t);if(i||function(e){return!!e.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const d=a.indexOf(n);-1===d?a.push(n,[r,s]):a[d+1].push(r,s)}else a.push(n,s)}}}function em(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function nd(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>function(e,t,n){const r=_t();if(r.firstCreatePass){const i=Pt(e);ed(n,r.data,r.blueprint,i,!0),ed(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class nm{}const im="ngComponent";class F0{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${Me(e)}. Did you add it to @NgModule.entryComponents?`);return t[im]=e,t}(t)}}class Do{}function Pl(...e){}function bs(e,t){return new Oi(zt(e,t))}Do.NULL=new F0;const V0=function(){return bs(pn(),ve())};let Oi=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=V0,e})();function om(e){return e instanceof Oi?e.nativeElement:e}class Rl{}let U0=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>$0(),e})();const $0=function(){const e=ve(),n=bn(pn().index,e);return function(e){return e[11]}(sn(n)?n:e)};let od=(()=>{class e{}return e.\u0275prov=xt({token:e,providedIn:"root",factory:()=>null}),e})();class sm{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const am=new sm("12.2.4");class lm{constructor(){}supports(t){return fa(t)}create(t){return new W0(t)}}const G0=(e,t)=>t;class W0{constructor(t){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=t||G0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new z0(n,r),o,i),t}_verifyReinsertion(t,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new um),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new um),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class z0{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class K0{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class um{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new K0,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cm(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new Z0(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class Z0{constructor(t){this.key=t,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 fm(){return new Nl([new lm])}let Nl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||fm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:fm}),e})();function hm(){return new xl([new dm])}let xl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||hm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:hm}),e})();function Fl(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(we(o)),Dn(o))for(let a=10;a-1&&(Hu(t,r),mo(n,r))}this._attachedToViewContainer=!1}Zf(this._lView[1],this._lView)}onDestroy(t){Oh(this._lView[1],this._lView,null,t)}markForCheck(){cc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){fc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Po(!0);try{fc(e,t,n)}finally{Po(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,sa(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Q0 extends Ca{constructor(t){super(t),this._view=t}detectChanges(){Uh(this._view)}checkNoChanges(){!function(e){Po(!0);try{Uh(e)}finally{Po(!1)}}(this._view)}get context(){return null}}const X0=function(e){return function(e,t,n){if(Mr(e)&&!n){const r=bn(e.index,t);return new Ca(r,r)}return 47&e.type?new Ca(t[16],t):null}(pn(),ve(),16==(16&e))};let eb=(()=>{class e{}return e.__NG_ELEMENT_ID__=X0,e})();const rb=[new dm],ob=new Nl([new lm]),sb=new xl(rb),lb=function(){return Ll(pn(),ve())};let Ea=(()=>{class e{}return e.__NG_ELEMENT_ID__=lb,e})();const ub=Ea,cb=class extends ub{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=aa(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(n)),la(n,r,t),new Ca(r)}};function Ll(e,t){return 4&e.type?new cb(t,e,bs(e,t)):null}class bo{}class pm{}const hb=function(){return ym(pn(),ve())};let kl=(()=>{class e{}return e.__NG_ELEMENT_ID__=hb,e})();const gb=kl,gm=class extends gb{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return bs(this._hostTNode,this._hostLView)}get injector(){return new sr(this._hostTNode,this._hostLView)}get parentInjector(){const t=b(this._hostTNode,this._hostLView);if(Ja(t)){const n=Ei(t,this._hostLView),r=Ji(t);return new sr(n[1].data[r+8],n)}return new sr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=mm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const i=t.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(t,n,r,i,o){const s=r||this.parentInjector;if(!o&&null==t.ngModule&&s){const d=s.get(bo,null);d&&(o=d)}const a=t.create(s,i,void 0,o);return this.insert(a.hostView,n),a}insert(t,n){const r=t._lView,i=r[1];if(Dn(r[3])){const D=this.indexOf(t);if(-1!==D)this.detach(D);else{const T=r[3],I=new gm(T,T[6],T[3]);I.detach(I.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;!function(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r$f});class Um extends nm{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(iC).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Vm(this.componentDef.inputs)}get outputs(){return Vm(this.componentDef.outputs)}create(t,n,r,i){const o=(i=i||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const o=e.get(n,Ms,i);return o!==Ms||r===Ms?o:t.get(n,r,i)}}}(t,i.injector):t,s=o.get(Rl,M),a=o.get(od,null),d=s.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",D=r?function(e,t,n){if(m(e))return e.selectRootElement(t,n===Le.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(d,r,this.componentDef.encapsulation):ju(s.createRenderer(null,this.componentDef),g,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(g)),T=this.componentDef.onPush?576:528,I=function(e,t){return{components:[],scheduler:e||$f,clean:jC,playerHandler:t||null,flags:0}}(),k=yl(0,null,null,1,0,null,null,null,null,null),j=aa(null,k,I,T,null,null,s,d,a,o);let Q,z;Ro(j);try{const Ce=function(e,t,n,r,i,o){const s=n[1];n[20]=e;const d=rs(s,20,2,"#host",null),g=d.mergedAttrs=t.hostAttrs;null!==g&&(_l(d,g,!0),null!==e&&(Bo(i,e,g),null!==d.classes&&Yu(i,e,d.classes),null!==d.styles&&ah(i,e,d.styles)));const D=r.createRenderer(e,t),T=aa(n,Mh(t),null,t.onPush?64:16,n[20],d,r,D,o||null,null);return s.firstCreatePass&&(N(l(d,n),s,t.type),Fh(s,d),Lh(d,n.length,1)),vl(n,T),n[20]=T}(D,this.componentDef,j,s,d);if(D)if(r)Bo(d,D,["ng-version",am.full]);else{const{attrs:de,classes:ke}=function(e){const t=[],n=[];let r=1,i=2;for(;r0&&Yu(d,D,ke.join(" "))}if(z=Nr(k,20),void 0!==n){const de=z.projection=[];for(let ke=0;ked(s,t)),t.contentQueries){const d=pn();t.contentQueries(1,s,d.directiveStart)}const a=pn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ei(a.index),Nh(n[1],a,0,a.directiveStart,a.directiveEnd,t),xh(t,s)),s}(Ce,this.componentDef,j,I,[pE]),la(k,j,null)}finally{xo()}return new pw(this.componentType,Q,bs(z,j),j,z)}}class pw extends class{}{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new Q0(i),this.componentType=t}get injector(){return new sr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Ts=new Map;class yw extends bo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new km(this);const r=Yt(t),i=t[Wr]||null;i&&Yc(i),this._bootstrapComponents=wi(r.bootstrap),this._r3Injector=Kh(t,n,[{provide:bo,useValue:this},{provide:Do,useValue:this.componentFactoryResolver}],Me(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Vt.THROW_IF_NOT_FOUND,r=se.Default){return t===Vt||t===bo||t===ss?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class _d extends pm{constructor(t){super(),this.moduleType=t,null!==Yt(t)&&function(e){const t=new Set;!function n(r){const i=Yt(r,!0),o=i.id;null!==o&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${Me(t)} vs ${Me(t.name)}`)}(o,Ts.get(o),r),Ts.set(o,r));const s=wi(i.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new yw(this.moduleType,t)}}function jm(e,t,n){const r=Hn()+e,i=ve();return i[r]===dt?Mi(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function Hm(e,t,n,r){return function(e,t,n,r,i,o){const s=t+n;return Jn(e,s,i)?Mi(e,s+1,o?r.call(o,i):r(i)):Ia(e,s+1)}(ve(),Hn(),e,t,n,r)}function Ia(e,t){const n=e[t];return n===dt?void 0:n}function Zm(e,t){const n=_t();let r;const i=e+20;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new $e("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Pr(r.type)),s=St(pa);try{const a=jo(!1),d=o();return jo(a),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,ve(),i,d),d}finally{St(s)}}function qm(e,t,n,r){const i=e+20,o=ve(),s=mr(o,i);return function(e,t){si.isWrapped(t)&&(t=si.unwrap(t),e[yr()]=dt);return t}(o,function(e,t){return e[1].data[t].pure}(o,i)?function(e,t,n,r,i,o,s){const a=t+n;return Co(e,a,i,o)?Mi(e,a+2,s?r.call(s,i,o):r(i,o)):Ia(e,a+2)}(o,Hn(),t,s.transform,n,r,s):s.transform(n,r))}function Cd(e){return t=>{setTimeout(e,void 0,t)}}const Pi=class extends K.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,o,s;let a=t,d=n||(()=>null),g=r;if(t&&"object"==typeof t){const T=t;a=null===(i=T.next)||void 0===i?void 0:i.bind(T),d=null===(o=T.error)||void 0===o?void 0:o.bind(T),g=null===(s=T.complete)||void 0===s?void 0:s.bind(T)}this.__isAsync&&(d=Cd(d),a&&(a=Cd(a)),g&&(g=Cd(g)));const D=super.subscribe({next:a,error:d,complete:g});return t instanceof P.w0&&t.add(D),D}};function Rw(){return this._results[us()]()}class jl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=us(),r=jl.prototype;r[n]||(r[n]=Rw)}get changes(){return this._changes||(this._changes=new Pi)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=kr(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0)r.push(s[a/2]);else{const g=o[a+1],D=t[-d];for(let T=10;T{class e{constructor(n){this.appInits=n,this.resolve=Pl,this.reject=Pl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:d})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(_n(Pd,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const wy=new ln("AppId"),hA={provide:wy,useFactory:function(){return`${Rd()}${Rd()}${Rd()}`},deps:[]};function Rd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ay=new ln("Platform Initializer"),Sy=new ln("Platform ID"),My=new ln("appBootstrapListener");let Ty=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const Wl=new ln("LocaleId"),Iy=new ln("DefaultCurrencyCode");class gA{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Nd=function(e){return new _d(e)},mA=Nd,yA=function(e){return Promise.resolve(Nd(e))},Oy=function(e){const t=Nd(e),r=wi(Yt(e).declarations).reduce((i,o)=>{const s=qt(o);return s&&i.push(new Um(s)),i},[]);return new gA(t,r)},vA=Oy,_A=function(e){return Promise.resolve(Oy(e))};let Na=(()=>{class e{constructor(){this.compileModuleSync=mA,this.compileModuleAsync=yA,this.compileModuleAndAllComponentsSync=vA,this.compileModuleAndAllComponentsAsync=_A}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const DA=(()=>Promise.resolve(0))();function xd(e){"undefined"==typeof Zone?DA.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Er{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pi(!1),this.onMicrotaskEmpty=new Pi(!1),this.onStable=new Pi(!1),this.onError=new Pi(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let e=nt.requestAnimationFrame,t=nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(nt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ld(e),e.isCheckStableRunning=!0,Fd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ld(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return Py(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Ry(e)}},onInvoke:(n,r,i,o,s,a,d)=>{try{return Py(e),n.invoke(i,o,s,a,d)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ry(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Ld(e),Fd(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Er.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Er.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,wA,Pl,Pl);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const wA={};function Fd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ld(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Py(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ry(e){e._nesting--,Fd(e)}class MA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pi,this.onMicrotaskEmpty=new Pi,this.onStable=new Pi,this.onError=new Pi}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}let Ny=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Er.assertNotInAngularZone(),xd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())xd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(_n(Er))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})(),xy=(()=>{class e{constructor(){this._applications=new Map,kd.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return kd.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();class TA{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function IA(e){kd=e}let kd=new TA,Fy=!0,Ly=!1;function OA(){if(Ly)throw new Error("Cannot enable prod mode after platform setup.");Fy=!1}let di;const Vy=new ln("AllowMultipleToken");class kA{constructor(t,n){this.name=t,this.token=n}}function Uy(e,t,n=[]){const r=`Platform: ${t}`,i=new ln(r);return(o=[])=>{let s=By();if(!s||s.injector.get(Vy,!1))if(e)e(n.concat(o).concat({provide:i,useValue:!0}));else{const a=n.concat(o).concat({provide:i,useValue:!0},{provide:ua,useValue:"platform"});!function(e){if(di&&!di.destroyed&&!di.injector.get(Vy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");di=e.get($y);const t=e.get(Ay,null);t&&t.forEach(n=>n())}(Vt.create({providers:a,name:r}))}return function(e){const t=By();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function By(){return di&&!di.destroyed?di:null}let $y=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(e,t){let n;return n="noop"===e?new MA:("zone.js"===e?void 0:e)||new Er({enableLongStackTrace:(Ly=!0,Fy),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),d=[{provide:Er,useValue:a}];return a.run(()=>{const g=Vt.create({providers:d,parent:this.injector,name:n.moduleType.name}),D=n.create(g),T=D.injector.get(es,null);if(!T)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const I=a.onError.subscribe({next:k=>{T.handleError(k)}});D.onDestroy(()=>{Vd(this._modules,D),I.unsubscribe()})}),function(e,t,n){try{const r=n();return Fc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(T,a,()=>{const I=D.injector.get(Os);return I.runInitializers(),I.donePromise.then(()=>(Yc(D.injector.get(Wl,Sl)||Sl),this._moduleDoBootstrap(D),D))})})}bootstrapModule(n,r=[]){const i=jy({},r);return function(e,t,n){const r=new _d(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(xa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${Me(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(_n(Vt))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function jy(e,t){return Array.isArray(t)?t.reduce(jy,e):Object.assign(Object.assign({},e),t)}let xa=(()=>{class e{constructor(n,r,i,o,s){this._zone=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new x.y(g=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{g.next(this._stable),g.complete()})}),d=new x.y(g=>{let D;this._zone.runOutsideAngular(()=>{D=this._zone.onStable.subscribe(()=>{Er.assertNotInAngularZone(),xd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,g.next(!0))})})});const T=this._zone.onUnstable.subscribe(()=>{Er.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{g.next(!1)}))});return()=>{D.unsubscribe(),T.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t{this.detachView(a.hostView),Vd(this.components,a),D&&D.unregisterApplication(d)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Vd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(My,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(_n(Er),_n(Vt),_n(es),_n(Do),_n(Os))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function Vd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class HA{}class WA{}const zA={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let KA=(()=>{class e{constructor(n,r){this._compiler=n,this._config=r||zA}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,i]=n.split("#");return void 0===i&&(i="default"),O(8255)(r).then(o=>o[i]).then(o=>zy(o,r,i)).then(o=>this._compiler.compileModuleAsync(o))}loadFactory(n){let[r,i]=n.split("#"),o="NgFactory";return void 0===i&&(i="default",o=""),O(8255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(s=>s[i+o]).then(s=>zy(s,r,i))}}return e.\u0275fac=function(n){return new(n||e)(_n(Na),_n(WA,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function zy(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const tS=function(e){return null},rS=Uy(null,"core",[{provide:Sy,useValue:"unknown"},{provide:$y,deps:[Vt]},{provide:xy,deps:[]},{provide:Ty,deps:[]}]),lS=[{provide:xa,useClass:xa,deps:[Er,Vt,es,Do,Os]},{provide:dw,deps:[Er],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Os,useClass:Os,deps:[[new $i,Pd]]},{provide:Na,useClass:Na,deps:[]},hA,{provide:Nl,useFactory:function(){return ob},deps:[]},{provide:xl,useFactory:function(){return sb},deps:[]},{provide:Wl,useFactory:function(e){return Yc(e=e||"undefined"!=typeof $localize&&$localize.locale||Sl),e},deps:[[new qo(Wl),new $i,new to]]},{provide:Iy,useValue:"USD"}];let cS=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(_n(xa))},e.\u0275mod=yn({type:e}),e.\u0275inj=Ft({providers:lS}),e})()},3092:(Ye,me,O)=>{"use strict";O.d(me,{Fj:()=>We,NI:()=>Yt,u:()=>Zr,cw:()=>dr,sg:()=>sn,u5:()=>B,nD:()=>gr,JJ:()=>G,JL:()=>W,F:()=>ut,On:()=>hn,YN:()=>xi,wV:()=>Bn,_:()=>ir,UX:()=>oe,Q7:()=>Ir,EJ:()=>qr,_Y:()=>Ht,Kr:()=>F});var y=O(476),u=O(8583),ce=O(1776),re=O(1260),te=O(5929),J=O(9528),K=O(5076),P=O(9607),x=O(5526),Y=O(5207);let ae=(()=>{class E{constructor(h,M){this._renderer=h,this._elementRef=M,this.onChange=Z=>{},this.onTouched=()=>{}}setProperty(h,M){this._renderer.setProperty(this._elementRef.nativeElement,h,M)}registerOnTouched(h){this.onTouched=h}registerOnChange(h){this.onChange=h}setDisabledState(h){this.setProperty("disabled",h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq))},E.\u0275dir=y.lG2({type:E}),E})(),Ee=(()=>{class E extends ae{}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();const De=new y.OlP("NgValueAccessor"),He={provide:De,useExisting:(0,y.Gpc)(()=>We),multi:!0},Ge=new y.OlP("CompositionEventMode");let We=(()=>{class E extends ae{constructor(h,M,Z){super(h,M),this._compositionMode=Z,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const E=(0,u.q)()?(0,u.q)().getUserAgent():"";return/android (\d+)/.test(E.toLowerCase())}())}writeValue(h){this.setProperty("value",null==h?"":h)}_handleInput(h){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(h)}_compositionStart(){this._composing=!0}_compositionEnd(h){this._composing=!1,this._compositionMode&&this.onChange(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ge,8))},E.\u0275dir=y.lG2({type:E,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M._handleInput(we.target.value)})("blur",function(){return M.onTouched()})("compositionstart",function(){return M._compositionStart()})("compositionend",function(we){return M._compositionEnd(we.target.value)})},features:[y._Bn([He]),y.qOj]}),E})();const Ke=new y.OlP("NgValidators"),bt=new y.OlP("NgAsyncValidators");function Te(E){return null}function be(E){return null!=E}function Ve(E){const m=(0,y.QGY)(E)?(0,te.Dp)(E):E;return(0,y.CqO)(m),m}function Xe(E){let m={};return E.forEach(h=>{m=null!=h?Object.assign(Object.assign({},m),h):m}),0===Object.keys(m).length?null:m}function rt(E,m){return m.map(h=>h(E))}function jt(E){return E.map(m=>function(E){return!E.validate}(m)?m:h=>m.validate(h))}function Tt(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return Xe(rt(h,m))}}(jt(E)):null}function yt(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return function(){for(var E=[],m=0;m{Cn(h,Z)||h.push(Z)}),h}function xt(E,m){return mn(m).filter(h=>!Cn(E,h))}let Hr=(()=>{class E{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(h){this._rawValidators=h||[],this._composedValidatorFn=Tt(this._rawValidators)}_setAsyncValidators(h){this._rawAsyncValidators=h||[],this._composedAsyncValidatorFn=yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(h){this._onDestroyCallbacks.push(h)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(h=>h()),this._onDestroyCallbacks=[]}reset(h){this.control&&this.control.reset(h)}hasError(h,M){return!!this.control&&this.control.hasError(h,M)}getError(h,M){return this.control?this.control.getError(h,M):null}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E}),E})(),Ft=(()=>{class E extends Hr{get formDirective(){return null}get path(){return null}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();class gt extends Hr{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class tr{constructor(m){this._cd=m}is(m){var h,M,Z;return"submitted"===m?!!(null===(h=this._cd)||void 0===h?void 0:h.submitted):!!(null===(Z=null===(M=this._cd)||void 0===M?void 0:M.control)||void 0===Z?void 0:Z[m])}}let G=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(gt,2))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))},features:[y.qOj]}),E})(),W=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))("ng-submitted",M.is("submitted"))},features:[y.qOj]}),E})();function Sn(E,m){return[...m.path,E]}function Le(E,m){nr(E,m),m.valueAccessor.writeValue(E.value),function(E,m){m.valueAccessor.registerOnChange(h=>{E._pendingValue=h,E._pendingChange=!0,E._pendingDirty=!0,"change"===E.updateOn&&xn(E,m)})}(E,m),function(E,m){const h=(M,Z)=>{m.valueAccessor.writeValue(M),Z&&m.viewToModelUpdate(M)};E.registerOnChange(h),m._registerOnDestroy(()=>{E._unregisterOnChange(h)})}(E,m),function(E,m){m.valueAccessor.registerOnTouched(()=>{E._pendingTouched=!0,"blur"===E.updateOn&&E._pendingChange&&xn(E,m),"submit"!==E.updateOn&&E.markAsTouched()})}(E,m),function(E,m){if(m.valueAccessor.setDisabledState){const h=M=>{m.valueAccessor.setDisabledState(M)};E.registerOnDisabledChange(h),m._registerOnDestroy(()=>{E._unregisterOnDisabledChange(h)})}}(E,m)}function Ut(E,m,h=!0){const M=()=>{};m.valueAccessor&&(m.valueAccessor.registerOnChange(M),m.valueAccessor.registerOnTouched(M)),nt(E,m),E&&(m._invokeOnDestroyCallbacks(),E._registerOnCollectionChange(()=>{}))}function rn(E,m){E.forEach(h=>{h.registerOnValidatorChange&&h.registerOnValidatorChange(m)})}function nr(E,m){const h=It(E);null!==m.validator?E.setValidators(gn(h,m.validator)):"function"==typeof h&&E.setValidators([h]);const M=it(E);null!==m.asyncValidator?E.setAsyncValidators(gn(M,m.asyncValidator)):"function"==typeof M&&E.setAsyncValidators([M]);const Z=()=>E.updateValueAndValidity();rn(m._rawValidators,Z),rn(m._rawAsyncValidators,Z)}function nt(E,m){let h=!1;if(null!==E){if(null!==m.validator){const Z=It(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.validator);we.length!==Z.length&&(h=!0,E.setValidators(we))}}if(null!==m.asyncValidator){const Z=it(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.asyncValidator);we.length!==Z.length&&(h=!0,E.setAsyncValidators(we))}}}const M=()=>{};return rn(m._rawValidators,M),rn(m._rawAsyncValidators,M),h}function xn(E,m){E._pendingDirty&&E.markAsDirty(),E.setValue(E._pendingValue,{emitModelToViewChange:!1}),m.viewToModelUpdate(E._pendingValue),E._pendingChange=!1}function cr(E,m){nr(E,m)}function Wr(E,m){if(!E.hasOwnProperty("model"))return!1;const h=E.model;return!!h.isFirstChange()||!Object.is(m,h.currentValue)}function Fn(E,m){E._syncPendingControls(),m.forEach(h=>{const M=h.control;"submit"===M.updateOn&&M._pendingChange&&(h.viewToModelUpdate(M._pendingValue),M._pendingChange=!1)})}function Kn(E,m){if(!m)return null;let h,M,Z;return Array.isArray(m),m.forEach(we=>{we.constructor===We?h=we:function(E){return Object.getPrototypeOf(E.constructor)===Ee}(we)?M=we:Z=we}),Z||M||h||null}function et(E,m){const h=E.indexOf(m);h>-1&&E.splice(h,1)}const In="VALID",En="INVALID",Ln="PENDING",yn="DISABLED";function Kr(E){return(dn(E)?E.validators:E)||null}function rr(E){return Array.isArray(E)?Tt(E):E||null}function Yn(E,m){return(dn(m)?m.asyncValidators:E)||null}function qt(E){return Array.isArray(E)?yt(E):E||null}function dn(E){return null!=E&&!Array.isArray(E)&&"object"==typeof E}class On{constructor(m,h){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=m,this._rawAsyncValidators=h,this._composedValidatorFn=rr(this._rawValidators),this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(m){this._rawValidators=this._composedValidatorFn=m}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(m){this._rawAsyncValidators=this._composedAsyncValidatorFn=m}get parent(){return this._parent}get valid(){return this.status===In}get invalid(){return this.status===En}get pending(){return this.status==Ln}get disabled(){return this.status===yn}get enabled(){return this.status!==yn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(m){this._rawValidators=m,this._composedValidatorFn=rr(m)}setAsyncValidators(m){this._rawAsyncValidators=m,this._composedAsyncValidatorFn=qt(m)}addValidators(m){this.setValidators(Nn(m,this._rawValidators))}addAsyncValidators(m){this.setAsyncValidators(Nn(m,this._rawAsyncValidators))}removeValidators(m){this.setValidators(xt(m,this._rawValidators))}removeAsyncValidators(m){this.setAsyncValidators(xt(m,this._rawAsyncValidators))}hasValidator(m){return Cn(this._rawValidators,m)}hasAsyncValidator(m){return Cn(this._rawAsyncValidators,m)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(m={}){this.touched=!0,this._parent&&!m.onlySelf&&this._parent.markAsTouched(m)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(m=>m.markAllAsTouched())}markAsUntouched(m={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(h=>{h.markAsUntouched({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}markAsDirty(m={}){this.pristine=!1,this._parent&&!m.onlySelf&&this._parent.markAsDirty(m)}markAsPristine(m={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(h=>{h.markAsPristine({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}markAsPending(m={}){this.status=Ln,!1!==m.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!m.onlySelf&&this._parent.markAsPending(m)}disable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=yn,this.errors=null,this._forEachChild(M=>{M.disable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this._updateValue(),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!0))}enable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=In,this._forEachChild(M=>{M.enable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!1))}_updateAncestors(m){this._parent&&!m.onlySelf&&(this._parent.updateValueAndValidity(m),m.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(m){this._parent=m}updateValueAndValidity(m={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===In||this.status===Ln)&&this._runAsyncValidator(m.emitEvent)),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!m.onlySelf&&this._parent.updateValueAndValidity(m)}_updateTreeValidity(m={emitEvent:!0}){this._forEachChild(h=>h._updateTreeValidity(m)),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yn:In}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(m){if(this.asyncValidator){this.status=Ln,this._hasOwnPendingAsyncValidator=!0;const h=Ve(this.asyncValidator(this));this._asyncValidationSubscription=h.subscribe(M=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(M,{emitEvent:m})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(m,h={}){this.errors=m,this._updateControlsErrors(!1!==h.emitEvent)}get(m){return function(E,m,h){if(null==m||(Array.isArray(m)||(m=m.split(".")),Array.isArray(m)&&0===m.length))return null;let M=E;return m.forEach(Z=>{M=M instanceof dr?M.controls.hasOwnProperty(Z)?M.controls[Z]:null:M instanceof fn&&M.at(Z)||null}),M}(this,m)}getError(m,h){const M=h?this.get(h):this;return M&&M.errors?M.errors[m]:null}hasError(m,h){return!!this.getError(m,h)}get root(){let m=this;for(;m._parent;)m=m._parent;return m}_updateControlsErrors(m){this.status=this._calculateStatus(),m&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(m)}_initObservables(){this.valueChanges=new y.vpe,this.statusChanges=new y.vpe}_calculateStatus(){return this._allControlsDisabled()?yn:this.errors?En:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ln)?Ln:this._anyControlsHaveStatus(En)?En:In}_anyControlsHaveStatus(m){return this._anyControls(h=>h.status===m)}_anyControlsDirty(){return this._anyControls(m=>m.dirty)}_anyControlsTouched(){return this._anyControls(m=>m.touched)}_updatePristine(m={}){this.pristine=!this._anyControlsDirty(),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}_updateTouched(m={}){this.touched=this._anyControlsTouched(),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}_isBoxedValue(m){return"object"==typeof m&&null!==m&&2===Object.keys(m).length&&"value"in m&&"disabled"in m}_registerOnCollectionChange(m){this._onCollectionChange=m}_setUpdateStrategy(m){dn(m)&&null!=m.updateOn&&(this._updateOn=m.updateOn)}_parentMarkedDirty(m){return!m&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Yt extends On{constructor(m=null,h,M){super(Kr(h),Yn(M,h)),this._onChange=[],this._applyFormState(m),this._setUpdateStrategy(h),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(m,h={}){this.value=this._pendingValue=m,this._onChange.length&&!1!==h.emitModelToViewChange&&this._onChange.forEach(M=>M(this.value,!1!==h.emitViewToModelChange)),this.updateValueAndValidity(h)}patchValue(m,h={}){this.setValue(m,h)}reset(m=null,h={}){this._applyFormState(m),this.markAsPristine(h),this.markAsUntouched(h),this.setValue(this.value,h),this._pendingChange=!1}_updateValue(){}_anyControls(m){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(m){this._onChange.push(m)}_unregisterOnChange(m){et(this._onChange,m)}registerOnDisabledChange(m){this._onDisabledChange.push(m)}_unregisterOnDisabledChange(m){et(this._onDisabledChange,m)}_forEachChild(m){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(m){this._isBoxedValue(m)?(this.value=this._pendingValue=m.value,m.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=m}}class dr extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(m,h){return this.controls[m]?this.controls[m]:(this.controls[m]=h,h.setParent(this),h._registerOnCollectionChange(this._onCollectionChange),h)}addControl(m,h,M={}){this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}removeControl(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],h&&this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}contains(m){return this.controls.hasOwnProperty(m)&&this.controls[m].enabled}setValue(m,h={}){this._checkAllValuesPresent(m),Object.keys(m).forEach(M=>{this._throwIfControlMissing(M),this.controls[M].setValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(Object.keys(m).forEach(M=>{this.controls[M]&&this.controls[M].patchValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m={},h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this._reduceChildren({},(m,h,M)=>(m[M]=h instanceof Yt?h.value:h.getRawValue(),m))}_syncPendingControls(){let m=this._reduceChildren(!1,(h,M)=>!!M._syncPendingControls()||h);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[m])throw new Error(`Cannot find form control with name: ${m}.`)}_forEachChild(m){Object.keys(this.controls).forEach(h=>{const M=this.controls[h];M&&m(M,h)})}_setUpControls(){this._forEachChild(m=>{m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(m){for(const h of Object.keys(this.controls)){const M=this.controls[h];if(this.contains(h)&&m(M))return!0}return!1}_reduceValue(){return this._reduceChildren({},(m,h,M)=>((h.enabled||this.disabled)&&(m[M]=h.value),m))}_reduceChildren(m,h){let M=m;return this._forEachChild((Z,we)=>{M=h(M,Z,we)}),M}_allControlsDisabled(){for(const m of Object.keys(this.controls))if(this.controls[m].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control with name: '${M}'.`)})}}class fn extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(m){return this.controls[m]}push(m,h={}){this.controls.push(m),this._registerControl(m),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}insert(m,h,M={}){this.controls.splice(m,0,h),this._registerControl(h),this.updateValueAndValidity({emitEvent:M.emitEvent})}removeAt(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),this.updateValueAndValidity({emitEvent:h.emitEvent})}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),h&&(this.controls.splice(m,0,h),this._registerControl(h)),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(m,h={}){this._checkAllValuesPresent(m),m.forEach((M,Z)=>{this._throwIfControlMissing(Z),this.at(Z).setValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(m.forEach((M,Z)=>{this.at(Z)&&this.at(Z).patchValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m=[],h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this.controls.map(m=>m instanceof Yt?m.value:m.getRawValue())}clear(m={}){this.controls.length<1||(this._forEachChild(h=>h._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:m.emitEvent}))}_syncPendingControls(){let m=this.controls.reduce((h,M)=>!!M._syncPendingControls()||h,!1);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(m))throw new Error(`Cannot find form control at index ${m}`)}_forEachChild(m){this.controls.forEach((h,M)=>{m(h,M)})}_updateValue(){this.value=this.controls.filter(m=>m.enabled||this.disabled).map(m=>m.value)}_anyControls(m){return this.controls.some(h=>h.enabled&&m(h))}_setUpControls(){this._forEachChild(m=>this._registerControl(m))}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control at index: ${M}.`)})}_allControlsDisabled(){for(const m of this.controls)if(m.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(m){m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)}}const Ie={provide:Ft,useExisting:(0,y.Gpc)(()=>ut)},ht=(()=>Promise.resolve(null))();let ut=(()=>{class E extends Ft{constructor(h,M){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new y.vpe,this.form=new dr({},Tt(h),yt(M))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(h){ht.then(()=>{const M=this._findContainer(h.path);h.control=M.registerControl(h.name,h.control),Le(h.control,h),h.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(h)})}getControl(h){return this.form.get(h.path)}removeControl(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name),et(this._directives,h)})}addFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path),Z=new dr({});cr(Z,h),M.registerControl(h.name,Z),Z.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name)})}getFormGroup(h){return this.form.get(h.path)}updateModel(h,M){ht.then(()=>{this.form.get(h.path).setValue(M)})}setValue(h){this.control.setValue(h)}onSubmit(h){return this.submitted=!0,Fn(this.form,this._directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(h){return h.pop(),h.length?this.form.get(h):this.form}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Ie]),y.qOj]}),E})();const fr={provide:gt,useExisting:(0,y.Gpc)(()=>hn)},vn=(()=>Promise.resolve(null))();let hn=(()=>{class E extends gt{constructor(h,M,Z,we){super(),this.control=new Yt,this._registered=!1,this.update=new y.vpe,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}ngOnChanges(h){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in h&&this._updateDisabled(h),Wr(h,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Sn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Le(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(h){vn.then(()=>{this.control.setValue(h,{emitViewToModelChange:!1})})}_updateDisabled(h){const M=h.isDisabled.currentValue,Z=""===M||M&&"false"!==M;vn.then(()=>{Z&&!this.control.disabled?this.control.disable():!Z&&this.control.disabled&&this.control.enable()})}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,9),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[y._Bn([fr]),y.qOj,y.TTD]}),E})(),Ht=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),E})();const Un={provide:De,useExisting:(0,y.Gpc)(()=>Bn),multi:!0};let Bn=(()=>{class E extends Ee{writeValue(h){this.setProperty("value",null==h?"":h)}registerOnChange(h){this.onChange=M=>{h(""==M?null:parseFloat(M))}}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},features:[y._Bn([Un]),y.qOj]}),E})();const Gt={provide:De,useExisting:(0,y.Gpc)(()=>ir),multi:!0};let Yr=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({}),E})(),Ar=(()=>{class E{constructor(){this._accessors=[]}add(h,M){this._accessors.push([h,M])}remove(h){for(let M=this._accessors.length-1;M>=0;--M)if(this._accessors[M][1]===h)return void this._accessors.splice(M,1)}select(h){this._accessors.forEach(M=>{this._isSameGroup(M,h)&&M[1]!==h&&M[1].fireUncheck(h.value)})}_isSameGroup(h,M){return!!h[0].control&&h[0]._parent===M._control._parent&&h[1].name===M.name}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275prov=(0,y.Yz7)({factory:function(){return new E},token:E,providedIn:Yr}),E})(),ir=(()=>{class E extends Ee{constructor(h,M,Z,we){super(h,M),this._registry=Z,this._injector=we,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(gt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(h){this._state=h===this.value,this.setProperty("checked",this._state)}registerOnChange(h){this._fn=h,this.onChange=()=>{h(this.value),this._registry.select(this)}}fireUncheck(h){this.writeValue(h)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ar),y.Y36(y.zs3))},E.\u0275dir=y.lG2({type:E,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(){return M.onChange()})("blur",function(){return M.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[y._Bn([Gt]),y.qOj]}),E})();const Wt=new y.OlP("NgModelWithFormControlWarning"),Sr={provide:Ft,useExisting:(0,y.Gpc)(()=>sn)};let sn=(()=>{class E extends Ft{constructor(h,M){super(),this.validators=h,this.asyncValidators=M,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new y.vpe,this._setValidators(h),this._setAsyncValidators(M)}ngOnChanges(h){this._checkFormPresent(),h.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(h){const M=this.form.get(h.path);return Le(M,h),M.updateValueAndValidity({emitEvent:!1}),this.directives.push(h),M}getControl(h){return this.form.get(h.path)}removeControl(h){Ut(h.control||null,h,!1),et(this.directives,h)}addFormGroup(h){this._setUpFormContainer(h)}removeFormGroup(h){this._cleanUpFormContainer(h)}getFormGroup(h){return this.form.get(h.path)}addFormArray(h){this._setUpFormContainer(h)}removeFormArray(h){this._cleanUpFormContainer(h)}getFormArray(h){return this.form.get(h.path)}updateModel(h,M){this.form.get(h.path).setValue(M)}onSubmit(h){return this.submitted=!0,Fn(this.form,this.directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_updateDomValue(){this.directives.forEach(h=>{const M=h.control,Z=this.form.get(h.path);M!==Z&&(Ut(M||null,h),Z instanceof Yt&&(Le(Z,h),h.control=Z))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(h){const M=this.form.get(h.path);cr(M,h),M.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(h){if(this.form){const M=this.form.get(h.path);M&&function(E,m){return nt(E,m)}(M,h)&&M.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){nr(this.form,this),this._oldForm&&nt(this._oldForm,this)}_checkFormPresent(){}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroup",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Sr]),y.qOj,y.TTD]}),E})();const Tr={provide:gt,useExisting:(0,y.Gpc)(()=>Zr)};let Zr=(()=>{class E extends gt{constructor(h,M,Z,we,At){super(),this._ngModelWarningConfig=At,this._added=!1,this.update=new y.vpe,this._ngModelWarningSent=!1,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}set isDisabled(h){}ngOnChanges(h){this._added||this._setUpControl(),Wr(h,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}get path(){return Sn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,13),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10),y.Y36(Wt,8))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[y._Bn([Tr]),y.qOj,y.TTD]}),E._ngModelWarningSentOnce=!1,E})();const mi={provide:De,useExisting:(0,y.Gpc)(()=>qr),multi:!0};function Ni(E,m){return null==E?`${m}`:(m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let qr=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){this.value=h;const M=this._getOptionId(h);null==M&&this.setProperty("selectedIndex",-1);const Z=Ni(M,h);this.setProperty("value",Z)}registerOnChange(h){this.onChange=M=>{this.value=this._getOptionValue(M),h(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(h){for(const M of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(M),h))return M;return null}_getOptionValue(h){const M=function(E){return E.split(":")[0]}(h);return this._optionMap.has(M)?this._optionMap.get(M):h}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},inputs:{compareWith:"compareWith"},features:[y._Bn([mi]),y.qOj]}),E})(),xi=(()=>{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption())}set ngValue(h){null!=this._select&&(this._select._optionMap.set(this.id,h),this._setElementValue(Ni(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._setElementValue(h),this._select&&this._select.writeValue(this._select.value)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(qr,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Fi={provide:De,useExisting:(0,y.Gpc)(()=>R),multi:!0};function vi(E,m){return null==E?`${m}`:("string"==typeof m&&(m=`'${m}'`),m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let R=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){let M;if(this.value=h,Array.isArray(h)){const Z=h.map(we=>this._getOptionId(we));M=(we,At)=>{we._setSelected(Z.indexOf(At.toString())>-1)}}else M=(Z,we)=>{Z._setSelected(!1)};this._optionMap.forEach(M)}registerOnChange(h){this.onChange=M=>{const Z=[];if(void 0!==M.selectedOptions){const we=M.selectedOptions;for(let At=0;At{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption(this))}set ngValue(h){null!=this._select&&(this._value=h,this._setElementValue(vi(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._select?(this._value=h,this._setElementValue(vi(this.id,h)),this._select.writeValue(this._select.value)):this._setElementValue(h)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}_setSelected(h){this._renderer.setProperty(this._element.nativeElement,"selected",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(R,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Rt={provide:Ke,useExisting:(0,y.Gpc)(()=>Ir),multi:!0};let Ir=(()=>{class E{constructor(){this._required=!1}get required(){return this._required}set required(h){this._required=null!=h&&!1!==h&&"false"!=`${h}`,this._onChange&&this._onChange()}validate(h){return this.required?function(E){return function(E){return null==E||0===E.length}(E.value)?{required:!0}:null}(h):null}registerOnValidatorChange(h){this._onChange=h}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("required",M.required?"":null)},inputs:{required:"required"},features:[y._Bn([Rt])]}),E})();const Rr={provide:Ke,useExisting:(0,y.Gpc)(()=>gr),multi:!0};let gr=(()=>{class E{constructor(){this._validator=Te}ngOnChanges(h){"maxlength"in h&&(this._createValidator(),this._onChange&&this._onChange())}validate(h){return this.enabled()?this._validator(h):null}registerOnValidatorChange(h){this._onChange=h}_createValidator(){this._validator=this.enabled()?function(E){return m=>function(E){return null!=E&&"number"==typeof E.length}(m.value)&&m.value.length>E?{maxlength:{requiredLength:E,actualLength:m.value.length}}:null}(function(E){return"number"==typeof E?E:parseInt(E,10)}(this.maxlength)):Te}enabled(){return null!=this.maxlength}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("maxlength",M.enabled()?M.maxlength:null)},inputs:{maxlength:"maxlength"},features:[y._Bn([Rr]),y.TTD]}),E})(),S=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[[Yr]]}),E})(),B=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})(),oe=(()=>{class E{static withConfig(h){return{ngModule:E,providers:[{provide:Wt,useValue:h.warnOnNgModelWithFormControl}]}}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})()},9502:(Ye,me,O)=>{"use strict";O.d(me,{gz:()=>Gt,Eb:()=>ge,gk:()=>xt,m2:()=>Nn,Q3:()=>Hr,OD:()=>Cn,F0:()=>Wn,rH:()=>Lo,Od:()=>ho,yS:()=>ko,Bz:()=>Bo,lC:()=>po,R9:()=>Ft});var y=O(8583),u=O(476),ce=O(9162),re=O(6889),te=function(f){function c(l){var p=f.call(this)||this;return p._value=l,p}return(0,ce.ZT)(c,f),Object.defineProperty(c.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),c.prototype._subscribe=function(l){var p=f.prototype._subscribe.call(this,l);return!p.closed&&l.next(this._value),p},c.prototype.getValue=function(){var l=this,b=l._value;if(l.hasError)throw l.thrownError;return this._throwIfClosed(),b},c.prototype.next=function(l){f.prototype.next.call(this,this._value=l)},c}(re.x),J=O(1776),K=O(1260),P=O(5929),x=O(2738),U=O(9607),Y=O(9528),ae=O(5526),Ee=O(5076);function Pe(f,c,l){return void 0===l&&(l=x.y),function(p){_e(c,function(){for(var C=f.length,b=new Array(C),N=C,V=C,q=function(Ue){_e(c,function(){var at=(0,P.Dp)(f[Ue],c),kt=!1;at.subscribe(new Ee.Q(p,function(Ct){b[Ue]=Ct,kt||(kt=!0,V--),V||p.next(l(b.slice()))},function(){--N||p.complete()}))},p)},Se=0;Se=2,!0))}var ee=O(4689);function Te(f){return f<=0?function(){return X.E}:(0,$e.e)(function(c,l){var p=[];c.subscribe(new Ee.Q(l,function(C){p.push(C),f=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,(0,vt.q)(1),l?Xe(c):be(function(){return new Me}))}}var Kt=O(8853);function Tt(f,c,l){var p=(0,Kt.m)(f)||c||l?{next:f,error:c,complete:l}:f;return p?(0,$e.e)(function(C,b){var N;null===(N=p.subscribe)||void 0===N||N.call(p);var V=!0;C.subscribe(new Ee.Q(b,function(q){var Se;null===(Se=p.next)||void 0===Se||Se.call(p,q),b.next(q)},function(){var q;V=!1,null===(q=p.complete)||void 0===q||q.call(p),b.complete()},function(q){var Se;V=!1,null===(Se=p.error)||void 0===Se||Se.call(p,q),b.error(q)},function(){var q,Se;V&&(null===(q=p.unsubscribe)||void 0===q||q.call(p)),null===(Se=p.finalize)||void 0===Se||Se.call(p)}))}):x.y}var yt=O(5207),gn=O(5894),It=O(3766),it=O(7216);class mn{constructor(c,l){this.id=c,this.url=l}}class Cn extends mn{constructor(c,l,p="imperative",C=null){super(c,l),this.navigationTrigger=p,this.restoredState=C}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nn extends mn{constructor(c,l,p){super(c,l),this.urlAfterRedirects=p}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class xt extends mn{constructor(c,l,p){super(c,l),this.reason=p}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Hr extends mn{constructor(c,l,p){super(c,l),this.error=p}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ft extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gt extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tr extends mn{constructor(c,l,p,C,b){super(c,l),this.urlAfterRedirects=p,this.state=C,this.shouldActivate=b}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ri extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fe extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G{constructor(c){this.route=c}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class W{constructor(c){this.route=c}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ge{constructor(c){this.snapshot=c}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ye{constructor(c){this.snapshot=c}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ne{constructor(c){this.snapshot=c}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class se{constructor(c){this.snapshot=c}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xe{constructor(c,l,p){this.routerEvent=c,this.position=l,this.anchor=p}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Re="primary";class St{constructor(c){this.params=c||{}}has(c){return Object.prototype.hasOwnProperty.call(this.params,c)}get(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l[0]:l}return null}getAll(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l:[l]}return[]}get keys(){return Object.keys(this.params)}}function Lt(f){return new St(f)}const zn="ngNavigationCancelingError";function wt(f){const c=Error("NavigationCancelingError: "+f);return c[zn]=!0,c}function ot(f,c,l){const p=l.path.split("/");if(p.length>f.length||"full"===l.pathMatch&&(c.hasChildren()||p.lengthp[b]===C)}return f===c}function rn(f){return Array.prototype.concat.apply([],f)}function Dr(f){return f.length>0?f[f.length-1]:null}function nt(f,c){for(const l in f)f.hasOwnProperty(l)&&c(f[l],l)}function Mn(f){return(0,u.CqO)(f)?f:(0,u.QGY)(f)?(0,P.Dp)(Promise.resolve(f)):(0,H.of)(f)}const xn={exact:function Gr(f,c,l){if(!En(f.segments,c.segments)||!Fn(f.segments,c.segments,l)||f.numberOfChildren!==c.numberOfChildren)return!1;for(const p in c.children)if(!f.children[p]||!Gr(f.children[p],c.children[p],l))return!1;return!0},subset:Wr},mt={exact:function(f,c){return Le(f,c)},subset:function(f,c){return Object.keys(c).length<=Object.keys(f).length&&Object.keys(c).every(l=>Ut(f[l],c[l]))},ignored:()=>!0};function cr(f,c,l){return xn[l.paths](f.root,c.root,l.matrixParams)&&mt[l.queryParams](f.queryParams,c.queryParams)&&!("exact"===l.fragment&&f.fragment!==c.fragment)}function Wr(f,c,l){return Tn(f,c,c.segments,l)}function Tn(f,c,l,p){if(f.segments.length>l.length){const C=f.segments.slice(0,l.length);return!(!En(C,l)||c.hasChildren()||!Fn(C,l,p))}if(f.segments.length===l.length){if(!En(f.segments,l)||!Fn(f.segments,l,p))return!1;for(const C in c.children)if(!f.children[C]||!Wr(f.children[C],c.children[C],p))return!1;return!0}{const C=l.slice(0,f.segments.length),b=l.slice(f.segments.length);return!!(En(f.segments,C)&&Fn(f.segments,C,p)&&f.children[Re])&&Tn(f.children[Re],c,b,p)}}function Fn(f,c,l){return c.every((p,C)=>mt[l](f[C].parameters,p.parameters))}class Kn{constructor(c,l,p){this.root=c,this.queryParams=l,this.fragment=p}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return Kr.serialize(this)}}class et{constructor(c,l){this.segments=c,this.children=l,this.parent=null,nt(l,(p,C)=>p.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rr(this)}}class on{constructor(c,l){this.path=c,this.parameters=l}get parameterMap(){return this._parameterMap||(this._parameterMap=Lt(this.parameters)),this._parameterMap}toString(){return Ie(this)}}function En(f,c){return f.length===c.length&&f.every((l,p)=>l.path===c[p].path)}class yn{}class zr{parse(c){const l=new Vn(c);return new Kn(l.parseRootSegment(),l.parseQueryParams(),l.parseFragment())}serialize(c){var f;return`${`/${Yn(c.root,!0)}`}${function(f){const c=Object.keys(f).map(l=>{const p=f[l];return Array.isArray(p)?p.map(C=>`${dn(l)}=${dn(C)}`).join("&"):`${dn(l)}=${dn(p)}`}).filter(l=>!!l);return c.length?`?${c.join("&")}`:""}(c.queryParams)}${"string"==typeof c.fragment?`#${f=c.fragment,encodeURI(f)}`:""}`}}const Kr=new zr;function rr(f){return f.segments.map(c=>Ie(c)).join("/")}function Yn(f,c){if(!f.hasChildren())return rr(f);if(c){const l=f.children[Re]?Yn(f.children[Re],!1):"",p=[];return nt(f.children,(C,b)=>{b!==Re&&p.push(`${b}:${Yn(C,!1)}`)}),p.length>0?`${l}(${p.join("//")})`:l}{const l=function(f,c){let l=[];return nt(f.children,(p,C)=>{C===Re&&(l=l.concat(c(p,C)))}),nt(f.children,(p,C)=>{C!==Re&&(l=l.concat(c(p,C)))}),l}(f,(p,C)=>C===Re?[Yn(f.children[Re],!1)]:[`${C}:${Yn(p,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[Re]?`${rr(f)}/${l[0]}`:`${rr(f)}/(${l.join("//")})`}}function qt(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dn(f){return qt(f).replace(/%3B/gi,";")}function Yt(f){return qt(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dr(f){return decodeURIComponent(f)}function fn(f){return dr(f.replace(/\+/g,"%20"))}function Ie(f){return`${Yt(f.path)}${function(f){return Object.keys(f).map(c=>`;${Yt(c)}=${Yt(f[c])}`).join("")}(f.parameters)}`}const ut=/^[^\/()?;=#]+/;function Qt(f){const c=f.match(ut);return c?c[0]:""}const Bt=/^[^=?&#]+/,Ot=/^[^?&#]+/;class Vn{constructor(c){this.url=c,this.remaining=c}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new et([],{}):new et([],this.parseChildren())}parseQueryParams(){const c={};if(this.consumeOptional("?"))do{this.parseQueryParam(c)}while(this.consumeOptional("&"));return c}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const c=[];for(this.peekStartsWith("(")||c.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),c.push(this.parseSegment());let l={};this.peekStartsWith("/(")&&(this.capture("/"),l=this.parseParens(!0));let p={};return this.peekStartsWith("(")&&(p=this.parseParens(!1)),(c.length>0||Object.keys(l).length>0)&&(p[Re]=new et(c,l)),p}parseSegment(){const c=Qt(this.remaining);if(""===c&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(c),new on(dr(c),this.parseMatrixParams())}parseMatrixParams(){const c={};for(;this.consumeOptional(";");)this.parseParam(c);return c}parseParam(c){const l=Qt(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const C=Qt(this.remaining);C&&(p=C,this.capture(p))}c[dr(l)]=dr(p)}parseQueryParam(c){const l=function(f){const c=f.match(Bt);return c?c[0]:""}(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const N=function(f){const c=f.match(Ot);return c?c[0]:""}(this.remaining);N&&(p=N,this.capture(p))}const C=fn(l),b=fn(p);if(c.hasOwnProperty(C)){let N=c[C];Array.isArray(N)||(N=[N],c[C]=N),N.push(b)}else c[C]=b}parseParens(c){const l={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const p=Qt(this.remaining),C=this.remaining[p.length];if("/"!==C&&")"!==C&&";"!==C)throw new Error(`Cannot parse url '${this.url}'`);let b;p.indexOf(":")>-1?(b=p.substr(0,p.indexOf(":")),this.capture(b),this.capture(":")):c&&(b=Re);const N=this.parseChildren();l[b]=1===Object.keys(N).length?N[Re]:new et([],N),this.consumeOptional("//")}return l}peekStartsWith(c){return this.remaining.startsWith(c)}consumeOptional(c){return!!this.peekStartsWith(c)&&(this.remaining=this.remaining.substring(c.length),!0)}capture(c){if(!this.consumeOptional(c))throw new Error(`Expected "${c}".`)}}class Ze{constructor(c){this._root=c}get root(){return this._root.value}parent(c){const l=this.pathFromRoot(c);return l.length>1?l[l.length-2]:null}children(c){const l=fr(c,this._root);return l?l.children.map(p=>p.value):[]}firstChild(c){const l=fr(c,this._root);return l&&l.children.length>0?l.children[0].value:null}siblings(c){const l=Zn(c,this._root);return l.length<2?[]:l[l.length-2].children.map(C=>C.value).filter(C=>C!==c)}pathFromRoot(c){return Zn(c,this._root).map(l=>l.value)}}function fr(f,c){if(f===c.value)return c;for(const l of c.children){const p=fr(f,l);if(p)return p}return null}function Zn(f,c){if(f===c.value)return[c];for(const l of c.children){const p=Zn(f,l);if(p.length)return p.unshift(c),p}return[]}class vn{constructor(c,l){this.value=c,this.children=l}toString(){return`TreeNode(${this.value})`}}function hn(f){const c={};return f&&f.children.forEach(l=>c[l.value.outlet]=l),c}class Ht extends Ze{constructor(c,l){super(c),this.snapshot=l,qn(this,c)}toString(){return this.snapshot.toString()}}function Un(f,c){const l=function(f,c){const N=new Ar([],{},{},"",{},Re,c,null,f.root,-1,{});return new ir("",new vn(N,[]))}(f,c),p=new te([new on("",{})]),C=new te({}),b=new te({}),N=new te({}),V=new te(""),q=new Gt(p,C,N,V,b,Re,c,l.root);return q.snapshot=l.root,new Ht(new vn(q,[]),l)}class Gt{constructor(c,l,p,C,b,N,V,q){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=N,this.component=V,this._futureSnapshot=q}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,yt.U)(c=>Lt(c)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,yt.U)(c=>Lt(c)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Mt(f,c="emptyOnly"){const l=f.pathFromRoot;let p=0;if("always"!==c)for(p=l.length-1;p>=1;){const C=l[p],b=l[p-1];if(C.routeConfig&&""===C.routeConfig.path)p--;else{if(b.component)break;p--}}return function(f){return f.reduce((c,l)=>({params:Object.assign(Object.assign({},c.params),l.params),data:Object.assign(Object.assign({},c.data),l.data),resolve:Object.assign(Object.assign({},c.resolve),l._resolvedData)}),{params:{},data:{},resolve:{}})}(l.slice(p))}class Ar{constructor(c,l,p,C,b,N,V,q,Se,Ue,at){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=N,this.component=V,this.routeConfig=q,this._urlSegment=Se,this._lastPathIndex=Ue,this._resolve=at}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(p=>p.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ir extends Ze{constructor(c,l){super(l),this.url=c,qn(this,l)}toString(){return hr(this._root)}}function qn(f,c){c.value._routerState=f,c.children.forEach(l=>qn(f,l))}function hr(f){const c=f.children.length>0?` { ${f.children.map(hr).join(", ")} } `:"";return`${f.value}${c}`}function Wt(f){if(f.snapshot){const c=f.snapshot,l=f._futureSnapshot;f.snapshot=l,Le(c.queryParams,l.queryParams)||f.queryParams.next(l.queryParams),c.fragment!==l.fragment&&f.fragment.next(l.fragment),Le(c.params,l.params)||f.params.next(l.params),function(f,c){if(f.length!==c.length)return!1;for(let l=0;lLe(l.parameters,c[p].parameters))}(f.url,c.url)&&!(!f.parent!=!c.parent)&&(!f.parent||$n(f.parent,c.parent))}function Sr(f,c,l){if(l&&f.shouldReuseRoute(c.value,l.value.snapshot)){const p=l.value;p._futureSnapshot=c.value;const C=function(f,c,l){return c.children.map(p=>{for(const C of l.children)if(f.shouldReuseRoute(p.value,C.value.snapshot))return Sr(f,p,C);return Sr(f,p)})}(f,c,l);return new vn(p,C)}{if(f.shouldAttach(c.value)){const b=f.retrieve(c.value);if(null!==b){const N=b.route;return sn(c,N),N}}const p=function(f){return new Gt(new te(f.url),new te(f.params),new te(f.queryParams),new te(f.fragment),new te(f.data),f.outlet,f.component,f)}(c.value),C=c.children.map(b=>Sr(f,b));return new vn(p,C)}}function sn(f,c){if(f.value.routeConfig!==c.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(f.children.length!==c.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");c.value._futureSnapshot=f.value;for(let l=0;l{b[V]=Array.isArray(N)?N.map(q=>`${q}`):`${N}`}),new Kn(l.root===f?c:Zr(l.root,f,c),b,C)}function Zr(f,c,l){const p={};return nt(f.children,(C,b)=>{p[b]=C===c?l:Zr(C,c,l)}),new et(f.segments,p)}class mi{constructor(c,l,p){if(this.isAbsolute=c,this.numberOfDoubleDots=l,this.commands=p,c&&p.length>0&&jn(p[0]))throw new Error("Root segment cannot have matrix parameters");const C=p.find(Pt);if(C&&C!==Dr(p))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yi{constructor(c,l,p){this.segmentGroup=c,this.processChildren=l,this.index=p}}function vi(f,c,l){if(f||(f=new et([],{})),0===f.segments.length&&f.hasChildren())return Qr(f,c,l);const p=function(f,c,l){let p=0,C=c;const b={match:!1,pathIndex:0,commandIndex:0};for(;C=l.length)return b;const N=f.segments[C],V=l[p];if(Pt(V))break;const q=`${V}`,Se=p0&&void 0===q)break;if(q&&Se&&"object"==typeof Se&&void 0===Se.outlets){if(!L(q,Se,N))return b;p+=2}else{if(!L(q,{},N))return b;p++}C++}return{match:!0,pathIndex:C,commandIndex:p}}(f,c,l),C=l.slice(p.commandIndex);if(p.match&&p.pathIndex{"string"==typeof b&&(b=[b]),null!==b&&(C[N]=vi(f.children[N],c,b))}),nt(f.children,(b,N)=>{void 0===p[N]&&(C[N]=b)}),new et(f.segments,C)}}function R(f,c,l){const p=f.segments.slice(0,c);let C=0;for(;C{"string"==typeof l&&(l=[l]),null!==l&&(c[p]=R(new et([],{}),0,l))}),c}function A(f){const c={};return nt(f,(l,p)=>c[p]=`${l}`),c}function L(f,c,l){return f==l.path&&Le(c,l.parameters)}class Oe{constructor(c,l,p,C){this.routeReuseStrategy=c,this.futureState=l,this.currState=p,this.forwardEvent=C}activate(c){const l=this.futureState._root,p=this.currState?this.currState._root:null;this.deactivateChildRoutes(l,p,c),Wt(this.futureState.root),this.activateChildRoutes(l,p,c)}deactivateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{const N=b.value.outlet;this.deactivateRoutes(b,C[N],p),delete C[N]}),nt(C,(b,N)=>{this.deactivateRouteAndItsChildren(b,p)})}deactivateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(C===b)if(C.component){const N=p.getContext(C.outlet);N&&this.deactivateChildRoutes(c,l,N.children)}else this.deactivateChildRoutes(c,l,p);else b&&this.deactivateRouteAndItsChildren(l,p)}deactivateRouteAndItsChildren(c,l){this.routeReuseStrategy.shouldDetach(c.value.snapshot)?this.detachAndStoreRouteSubtree(c,l):this.deactivateRouteAndOutlet(c,l)}detachAndStoreRouteSubtree(c,l){const p=l.getContext(c.value.outlet);if(p&&p.outlet){const C=p.outlet.detach(),b=p.children.onOutletDeactivated();this.routeReuseStrategy.store(c.value.snapshot,{componentRef:C,route:c,contexts:b})}}deactivateRouteAndOutlet(c,l){const p=l.getContext(c.value.outlet),C=p&&c.value.component?p.children:l,b=hn(c);for(const N of Object.keys(b))this.deactivateRouteAndItsChildren(b[N],C);p&&p.outlet&&(p.outlet.deactivate(),p.children.onOutletDeactivated(),p.attachRef=null,p.resolver=null,p.route=null)}activateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{this.activateRoutes(b,C[b.value.outlet],p),this.forwardEvent(new se(b.value.snapshot))}),c.children.length&&this.forwardEvent(new ye(c.value.snapshot))}activateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(Wt(C),C===b)if(C.component){const N=p.getOrCreateContext(C.outlet);this.activateChildRoutes(c,l,N.children)}else this.activateChildRoutes(c,l,p);else if(C.component){const N=p.getOrCreateContext(C.outlet);if(this.routeReuseStrategy.shouldAttach(C.snapshot)){const V=this.routeReuseStrategy.retrieve(C.snapshot);this.routeReuseStrategy.store(C.snapshot,null),N.children.onOutletReAttached(V.contexts),N.attachRef=V.componentRef,N.route=V.route.value,N.outlet&&N.outlet.attach(V.componentRef,V.route.value),je(V.route)}else{const V=function(f){for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig;if(l&&l.component)return null}return null}(C.snapshot),q=V?V.module.componentFactoryResolver:null;N.attachRef=null,N.route=C,N.resolver=q,N.outlet&&N.outlet.activateWith(C,q),this.activateChildRoutes(c,null,N.children)}}else this.activateChildRoutes(c,null,p)}}function je(f){Wt(f.value),f.children.forEach(je)}class Rt{constructor(c,l){this.routes=c,this.module=l}}function $t(f){return"function"==typeof f}function Or(f){return f instanceof Kn}const Rr=Symbol("INITIAL_VALUE");function gr(){return ue(f=>function(){for(var f=[],c=0;cc.pipe((0,vt.q)(1),function(){for(var f=[],c=0;c{let p=!1;return l.reduce((C,b,N)=>C!==Rr?C:(b===Rr&&(p=!0),p||!1!==b&&N!==l.length-1&&!Or(b)?C:b),c)},Rr),(0,ee.h)(c=>c!==Rr),(0,yt.U)(c=>Or(c)?c:!0===c),(0,vt.q)(1)))}let Zi=(()=>{class f{}return f.\u0275fac=function(l){return new(l||f)},f.\u0275cmp=u.Xpm({type:f,selectors:[["ng-component"]],decls:1,vars:0,template:function(l,p){1&l&&u._UZ(0,"router-outlet")},directives:function(){return[po]},encapsulation:2}),f})();function _i(f,c=""){for(let l=0;lS(p)===c);return l.push(...f.filter(p=>S(p)!==c)),l}const oe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function pe(f,c,l){var p;if(""===c.path)return"full"===c.pathMatch&&(f.hasChildren()||l.length>0)?Object.assign({},oe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const b=(c.matcher||ot)(l,f,c);if(!b)return Object.assign({},oe);const N={};nt(b.posParams,(q,Se)=>{N[Se]=q.path});const V=b.consumed.length>0?Object.assign(Object.assign({},N),b.consumed[b.consumed.length-1].parameters):N;return{matched:!0,consumedSegments:b.consumed,lastChild:b.consumed.length,parameters:V,positionalParamSegments:null!==(p=b.posParams)&&void 0!==p?p:{}}}function Be(f,c,l,p,C="corrected"){if(l.length>0&&function(f,c,l){return l.some(p=>M(f,c,p)&&S(p)!==Re)}(f,l,p)){const N=new et(c,function(f,c,l,p){const C={};C[Re]=p,p._sourceSegment=f,p._segmentIndexShift=c.length;for(const b of l)if(""===b.path&&S(b)!==Re){const N=new et([],{});N._sourceSegment=f,N._segmentIndexShift=c.length,C[S(b)]=N}return C}(f,c,p,new et(l,f.children)));return N._sourceSegment=f,N._segmentIndexShift=c.length,{segmentGroup:N,slicedSegments:[]}}if(0===l.length&&function(f,c,l){return l.some(p=>M(f,c,p))}(f,l,p)){const N=new et(f.segments,function(f,c,l,p,C,b){const N={};for(const V of p)if(M(f,l,V)&&!C[S(V)]){const q=new et([],{});q._sourceSegment=f,q._segmentIndexShift="legacy"===b?f.segments.length:c.length,N[S(V)]=q}return Object.assign(Object.assign({},C),N)}(f,c,l,p,f.children,C));return N._sourceSegment=f,N._segmentIndexShift=c.length,{segmentGroup:N,slicedSegments:l}}const b=new et(f.segments,f.children);return b._sourceSegment=f,b._segmentIndexShift=c.length,{segmentGroup:b,slicedSegments:l}}function M(f,c,l){return(!(f.hasChildren()||c.length>0)||"full"!==l.pathMatch)&&""===l.path}function Z(f,c,l,p){return!!(S(f)===p||p!==Re&&M(c,l,f))&&("**"===f.path||pe(c,f,l).matched)}function we(f,c,l){return 0===c.length&&!f.children[l]}class At{constructor(c){this.segmentGroup=c||null}}class an{constructor(c){this.urlTree=c}}function Jt(f){return new J.y(c=>c.error(new At(f)))}function zt(f){return new J.y(c=>c.error(new an(f)))}function qi(f){return new J.y(c=>c.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f}'`)))}class bn{constructor(c,l,p,C,b){this.configLoader=l,this.urlSerializer=p,this.urlTree=C,this.config=b,this.allowRedirects=!0,this.ngModule=c.get(u.h0i)}apply(){const c=Be(this.urlTree.root,[],[],this.config).segmentGroup,l=new et(c.segments,c.children);return this.expandSegmentGroup(this.ngModule,this.config,l,Re).pipe((0,yt.U)(b=>this.createUrlTree(Jr(b),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,gn.K)(b=>{if(b instanceof an)return this.allowRedirects=!1,this.match(b.urlTree);throw b instanceof At?this.noMatchError(b):b}))}match(c){return this.expandSegmentGroup(this.ngModule,this.config,c.root,Re).pipe((0,yt.U)(C=>this.createUrlTree(Jr(C),c.queryParams,c.fragment))).pipe((0,gn.K)(C=>{throw C instanceof At?this.noMatchError(C):C}))}noMatchError(c){return new Error(`Cannot match any routes. URL Segment: '${c.segmentGroup}'`)}createUrlTree(c,l,p){const C=c.segments.length>0?new et([],{[Re]:c}):c;return new Kn(C,l,p)}expandSegmentGroup(c,l,p,C){return 0===p.segments.length&&p.hasChildren()?this.expandChildren(c,l,p).pipe((0,yt.U)(b=>new et([],b))):this.expandSegment(c,p,l,p.segments,C,!0)}expandChildren(c,l,p){const C=[];for(const b of Object.keys(p.children))"primary"===b?C.unshift(b):C.push(b);return(0,P.Dp)(C).pipe((0,It.b)(b=>{const N=p.children[b],V=B(l,b);return this.expandSegmentGroup(c,V,N,b).pipe((0,yt.U)(q=>({segment:q,outlet:b})))}),ze((b,N)=>(b[N.outlet]=N.segment,b),{}),function(f,c){var l=arguments.length>=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,Te(1),l?Xe(c):be(function(){return new Me}))}}())}expandSegment(c,l,p,C,b,N){return(0,P.Dp)(p).pipe((0,It.b)(V=>this.expandSegmentAgainstRoute(c,l,p,V,C,b,N).pipe((0,gn.K)(Se=>{if(Se instanceof At)return(0,H.of)(null);throw Se}))),jt(V=>!!V),(0,gn.K)((V,q)=>{if(V instanceof Me||"EmptyError"===V.name){if(we(l,C,b))return(0,H.of)(new et([],{}));throw new At(l)}throw V}))}expandSegmentAgainstRoute(c,l,p,C,b,N,V){return Z(C,l,b,N)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(c,l,C,b,N):V&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,N):Jt(l):Jt(l)}expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,N){return"**"===C.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(c,p,C,N):this.expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,N)}expandWildCardWithParamsAgainstRouteUsingRedirect(c,l,p,C){const b=this.applyRedirectCommands([],p.redirectTo,{});return p.redirectTo.startsWith("/")?zt(b):this.lineralizeSegments(p,b).pipe((0,it.z)(N=>{const V=new et(N,{});return this.expandSegment(c,V,l,N,C,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,N){const{matched:V,consumedSegments:q,lastChild:Se,positionalParamSegments:Ue}=pe(l,C,b);if(!V)return Jt(l);const at=this.applyRedirectCommands(q,C.redirectTo,Ue);return C.redirectTo.startsWith("/")?zt(at):this.lineralizeSegments(C,at).pipe((0,it.z)(kt=>this.expandSegment(c,l,p,kt.concat(b.slice(Se)),N,!1)))}matchSegmentAgainstRoute(c,l,p,C,b){if("**"===p.path)return p.loadChildren?(p._loadedConfig?(0,H.of)(p._loadedConfig):this.configLoader.load(c.injector,p)).pipe((0,yt.U)(kt=>(p._loadedConfig=kt,new et(C,{})))):(0,H.of)(new et(C,{}));const{matched:N,consumedSegments:V,lastChild:q}=pe(l,p,C);if(!N)return Jt(l);const Se=C.slice(q);return this.getChildConfig(c,p,C).pipe((0,it.z)(at=>{const kt=at.module,Ct=at.routes,{segmentGroup:vr,slicedSegments:or}=Be(l,V,Se,Ct),Lr=new et(vr.segments,vr.children);if(0===or.length&&Lr.hasChildren())return this.expandChildren(kt,Ct,Lr).pipe((0,yt.U)(Ho=>new et(V,Ho)));if(0===Ct.length&&0===or.length)return(0,H.of)(new et(V,{}));const Xi=S(p)===b;return this.expandSegment(kt,Lr,Ct,or,Xi?Re:b,!0).pipe((0,yt.U)(sr=>new et(V.concat(sr.segments),sr.children)))}))}getChildConfig(c,l,p){return l.children?(0,H.of)(new Rt(l.children,c)):l.loadChildren?void 0!==l._loadedConfig?(0,H.of)(l._loadedConfig):this.runCanLoadGuards(c.injector,l,p).pipe((0,it.z)(C=>{return C?this.configLoader.load(c.injector,l).pipe((0,yt.U)(b=>(l._loadedConfig=b,b))):(f=l,new J.y(c=>c.error(wt(`Cannot load children because the guard of the route "path: '${f.path}'" returned false`))));var f})):(0,H.of)(new Rt([],c))}runCanLoadGuards(c,l,p){const C=l.canLoad;if(!C||0===C.length)return(0,H.of)(!0);const b=C.map(N=>{const V=c.get(N);let q;if((f=V)&&$t(f.canLoad))q=V.canLoad(l,p);else{if(!$t(V))throw new Error("Invalid CanLoad guard");q=V(l,p)}var f;return Mn(q)});return(0,H.of)(b).pipe(gr(),Tt(N=>{if(!Or(N))return;const V=wt(`Redirecting to "${this.urlSerializer.serialize(N)}"`);throw V.url=N,V}),(0,yt.U)(N=>!0===N))}lineralizeSegments(c,l){let p=[],C=l.root;for(;;){if(p=p.concat(C.segments),0===C.numberOfChildren)return(0,H.of)(p);if(C.numberOfChildren>1||!C.children[Re])return qi(c.redirectTo);C=C.children[Re]}}applyRedirectCommands(c,l,p){return this.applyRedirectCreatreUrlTree(l,this.urlSerializer.parse(l),c,p)}applyRedirectCreatreUrlTree(c,l,p,C){const b=this.createSegmentGroup(c,l.root,p,C);return new Kn(b,this.createQueryParams(l.queryParams,this.urlTree.queryParams),l.fragment)}createQueryParams(c,l){const p={};return nt(c,(C,b)=>{if("string"==typeof C&&C.startsWith(":")){const V=C.substring(1);p[b]=l[V]}else p[b]=C}),p}createSegmentGroup(c,l,p,C){const b=this.createSegments(c,l.segments,p,C);let N={};return nt(l.children,(V,q)=>{N[q]=this.createSegmentGroup(c,V,p,C)}),new et(b,N)}createSegments(c,l,p,C){return l.map(b=>b.path.startsWith(":")?this.findPosParam(c,b,C):this.findOrReturn(b,p))}findPosParam(c,l,p){const C=p[l.path.substring(1)];if(!C)throw new Error(`Cannot redirect to '${c}'. Cannot find '${l.path}'.`);return C}findOrReturn(c,l){let p=0;for(const C of l){if(C.path===c.path)return l.splice(p),C;p++}return c}}function Jr(f){const c={};for(const p of Object.keys(f.children)){const b=Jr(f.children[p]);(b.segments.length>0||b.hasChildren())&&(c[p]=b)}return function(f){if(1===f.numberOfChildren&&f.children[Re]){const c=f.children[Re];return new et(f.segments.concat(c.segments),c.children)}return f}(new et(f.segments,c))}class Xr{constructor(c){this.path=c,this.route=this.path[this.path.length-1]}}class ao{constructor(c,l){this.component=c,this.route=l}}function ks(f,c,l){const p=f._root;return lo(p,c?c._root:null,l,[p.value])}function Vs(f,c,l){const p=function(f){if(!f)return null;for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig}return null}(c);return(p?p.module.injector:l).get(f)}function lo(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=hn(c);return f.children.forEach(N=>{(function(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=f.value,N=c?c.value:null,V=l?l.getContext(f.value.outlet):null;if(N&&b.routeConfig===N.routeConfig){const q=function(f,c,l){if("function"==typeof l)return l(f,c);switch(l){case"pathParamsChange":return!En(f.url,c.url);case"pathParamsOrQueryParamsChange":return!En(f.url,c.url)||!Le(f.queryParams,c.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$n(f,c)||!Le(f.queryParams,c.queryParams);case"paramsChange":default:return!$n(f,c)}}(N,b,b.routeConfig.runGuardsAndResolvers);q?C.canActivateChecks.push(new Xr(p)):(b.data=N.data,b._resolvedData=N._resolvedData),lo(f,c,b.component?V?V.children:null:l,p,C),q&&V&&V.outlet&&V.outlet.isActivated&&C.canDeactivateChecks.push(new ao(V.outlet.component,N))}else N&&uo(c,V,C),C.canActivateChecks.push(new Xr(p)),lo(f,null,b.component?V?V.children:null:l,p,C)})(N,b[N.value.outlet],l,p.concat([N.value]),C),delete b[N.value.outlet]}),nt(b,(N,V)=>uo(N,l.getContext(V),C)),C}function uo(f,c,l){const p=hn(f),C=f.value;nt(p,(b,N)=>{uo(b,C.component?c?c.children.getContext(N):null:c,l)}),l.canDeactivateChecks.push(new ao(C.component&&c&&c.outlet&&c.outlet.isActivated?c.outlet.component:null,C))}class Us{}function Io(f){return new J.y(c=>c.error(f))}class ou{constructor(c,l,p,C,b,N){this.rootComponentType=c,this.config=l,this.urlTree=p,this.url=C,this.paramsInheritanceStrategy=b,this.relativeLinkResolution=N}recognize(){const c=Be(this.urlTree.root,[],[],this.config.filter(N=>void 0===N.redirectTo),this.relativeLinkResolution).segmentGroup,l=this.processSegmentGroup(this.config,c,Re);if(null===l)return null;const p=new Ar([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Re,this.rootComponentType,null,this.urlTree.root,-1,{}),C=new vn(p,l),b=new ir(this.url,C);return this.inheritParamsAndData(b._root),b}inheritParamsAndData(c){const l=c.value,p=Mt(l,this.paramsInheritanceStrategy);l.params=Object.freeze(p.params),l.data=Object.freeze(p.data),c.children.forEach(C=>this.inheritParamsAndData(C))}processSegmentGroup(c,l,p){return 0===l.segments.length&&l.hasChildren()?this.processChildren(c,l):this.processSegment(c,l,l.segments,p)}processChildren(c,l){const p=[];for(const b of Object.keys(l.children)){const N=l.children[b],V=B(c,b),q=this.processSegmentGroup(V,N,b);if(null===q)return null;p.push(...q)}const C=yr(p);return C.sort((c,l)=>c.value.outlet===Re?-1:l.value.outlet===Re?1:c.value.outlet.localeCompare(l.value.outlet)),C}processSegment(c,l,p,C){for(const b of c){const N=this.processSegmentAgainstRoute(b,l,p,C);if(null!==N)return N}return we(l,p,C)?[]:null}processSegmentAgainstRoute(c,l,p,C){if(c.redirectTo||!Z(c,l,p,C))return null;let b,N=[],V=[];if("**"===c.path){const Ct=p.length>0?Dr(p).parameters:{};b=new Ar(p,Ct,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+p.length,Bs(c))}else{const Ct=pe(l,c,p);if(!Ct.matched)return null;N=Ct.consumedSegments,V=p.slice(Ct.lastChild),b=new Ar(N,Ct.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+N.length,Bs(c))}const q=(f=c).children?f.children:f.loadChildren?f._loadedConfig.routes:[],{segmentGroup:Se,slicedSegments:Ue}=Be(l,N,V,q.filter(Ct=>void 0===Ct.redirectTo),this.relativeLinkResolution);var f;if(0===Ue.length&&Se.hasChildren()){const Ct=this.processChildren(q,Se);return null===Ct?null:[new vn(b,Ct)]}if(0===q.length&&0===Ue.length)return[new vn(b,[])];const at=S(c)===C,kt=this.processSegment(q,Se,Ue,at?Re:C);return null===kt?null:[new vn(b,kt)]}}function Hn(f){const c=f.value.routeConfig;return c&&""===c.path&&void 0===c.redirectTo}function yr(f){const c=[],l=new Set;for(const p of f){if(!Hn(p)){c.push(p);continue}const C=c.find(b=>p.value.routeConfig===b.value.routeConfig);void 0!==C?(C.children.push(...p.children),l.add(C)):c.push(p)}for(const p of l){const C=yr(p.children);c.push(new vn(p.value,C))}return c.filter(p=>!l.has(p))}function Vi(f){let c=f;for(;c._sourceSegment;)c=c._sourceSegment;return c}function Fr(f){let c=f,l=c._segmentIndexShift?c._segmentIndexShift:0;for(;c._sourceSegment;)c=c._sourceSegment,l+=c._segmentIndexShift?c._segmentIndexShift:0;return l-1}function Ha(f){return f.data||{}}function Bs(f){return f.resolve||{}}function fo(f){return ue(c=>{const l=f(c);return l?(0,P.Dp)(l).pipe((0,yt.U)(()=>c)):(0,H.of)(c)})}class Ro extends class{shouldDetach(c){return!1}store(c,l){}shouldAttach(c){return!1}retrieve(c){return null}shouldReuseRoute(c,l){return c.routeConfig===l.routeConfig}}{}const No=new u.OlP("ROUTES");class Hs{constructor(c,l,p,C){this.loader=c,this.compiler=l,this.onLoadStartListener=p,this.onLoadEndListener=C}load(c,l){if(l._loader$)return l._loader$;this.onLoadStartListener&&this.onLoadStartListener(l);const C=this.loadModuleFactory(l.loadChildren).pipe((0,yt.U)(b=>{this.onLoadEndListener&&this.onLoadEndListener(l);const N=b.create(c);return new Rt(rn(N.injector.get(No,void 0,u.XFs.Self|u.XFs.Optional)).map(_),N)}),(0,gn.K)(b=>{throw l._loader$=void 0,b}));return l._loader$=new le(C,()=>new re.x).pipe(lt()),l._loader$}loadModuleFactory(c){return"string"==typeof c?(0,P.Dp)(this.loader.load(c)):Mn(c()).pipe((0,it.z)(l=>l instanceof u.YKP?(0,H.of)(l):(0,P.Dp)(this.compiler.compileModuleAsync(l))))}}class za{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ui,this.attachRef=null}}class Ui{constructor(){this.contexts=new Map}onChildOutletCreated(c,l){const p=this.getOrCreateContext(c);p.outlet=l,this.contexts.set(c,p)}onChildOutletDestroyed(c){const l=this.getContext(c);l&&(l.outlet=null)}onOutletDeactivated(){const c=this.contexts;return this.contexts=new Map,c}onOutletReAttached(c){this.contexts=c}getOrCreateContext(c){let l=this.getContext(c);return l||(l=new za,this.contexts.set(c,l)),l}getContext(c){return this.contexts.get(c)||null}}class cu{shouldProcessUrl(c){return!0}extract(c){return c}merge(c,l){return c}}function du(f){throw f}function Gn(f,c,l){return c.parse("/")}function ei(f,c){return(0,H.of)(null)}const Xt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fu={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wn=(()=>{class f{constructor(l,p,C,b,N,V,q,Se){this.rootComponentType=l,this.urlSerializer=p,this.rootContexts=C,this.location=b,this.config=Se,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new re.x,this.errorHandler=du,this.malformedUriErrorHandler=Gn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ei,afterPreactivation:ei},this.urlHandlingStrategy=new cu,this.routeReuseStrategy=new Ro,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=N.get(u.h0i),this.console=N.get(u.c2e);const kt=N.get(u.R0b);this.isNgZoneEnabled=kt instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(Se),this.currentUrlTree=new Kn(new et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Hs(V,q,Ct=>this.triggerEvent(new G(Ct)),Ct=>this.triggerEvent(new W(Ct))),this.routerState=Un(this.currentUrlTree,this.rootComponentType),this.transitions=new te({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()}get browserPageId(){var l;return null===(l=this.location.getState())||void 0===l?void 0:l.\u0275routerPageId}setupNavigations(l){const p=this.events;return l.pipe((0,ee.h)(C=>0!==C.id),(0,yt.U)(C=>Object.assign(Object.assign({},C),{extractedUrl:this.urlHandlingStrategy.extract(C.rawUrl)})),ue(C=>{let b=!1,N=!1;return(0,H.of)(C).pipe(Tt(V=>{this.currentNavigation={id:V.id,initialUrl:V.currentRawUrl,extractedUrl:V.extractedUrl,trigger:V.source,extras:V.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ue(V=>{const q=!this.navigated||V.extractedUrl.toString()!==this.browserUrlTree.toString(),Se=("reload"===this.onSameUrlNavigation||q)&&this.urlHandlingStrategy.shouldProcessUrl(V.rawUrl);if(Fo(V.source)&&(this.browserUrlTree=V.rawUrl),Se)return(0,H.of)(V).pipe(ue(Ue=>{const at=this.transitions.getValue();return p.next(new Cn(Ue.id,this.serializeUrl(Ue.extractedUrl),Ue.source,Ue.restoredState)),at!==this.transitions.getValue()?X.E:Promise.resolve(Ue)}),function(f,c,l,p){return ue(C=>function(f,c,l,p,C){return new bn(f,c,l,p,C).apply()}(f,c,l,C.extractedUrl,p).pipe((0,yt.U)(b=>Object.assign(Object.assign({},C),{urlAfterRedirects:b}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Tt(Ue=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Ue.urlAfterRedirects})}),function(f,c,l,p,C){return(0,it.z)(b=>function(f,c,l,p,C="emptyOnly",b="legacy"){try{const N=new ou(f,c,l,p,C,b).recognize();return null===N?Io(new Us):(0,H.of)(N)}catch(N){return Io(N)}}(f,c,b.urlAfterRedirects,l(b.urlAfterRedirects),p,C).pipe((0,yt.U)(N=>Object.assign(Object.assign({},b),{targetSnapshot:N}))))}(this.rootComponentType,this.config,Ue=>this.serializeUrl(Ue),this.paramsInheritanceStrategy,this.relativeLinkResolution),Tt(Ue=>{"eager"===this.urlUpdateStrategy&&(Ue.extras.skipLocationChange||this.setBrowserUrl(Ue.urlAfterRedirects,Ue),this.browserUrlTree=Ue.urlAfterRedirects);const at=new Ft(Ue.id,this.serializeUrl(Ue.extractedUrl),this.serializeUrl(Ue.urlAfterRedirects),Ue.targetSnapshot);p.next(at)}));if(q&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:at,extractedUrl:kt,source:Ct,restoredState:vr,extras:or}=V,Lr=new Cn(at,this.serializeUrl(kt),Ct,vr);p.next(Lr);const Xi=Un(kt,this.rootComponentType).snapshot;return(0,H.of)(Object.assign(Object.assign({},V),{targetSnapshot:Xi,urlAfterRedirects:kt,extras:Object.assign(Object.assign({},or),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=V.rawUrl,this.browserUrlTree=V.urlAfterRedirects,V.resolve(null),X.E}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.beforePreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),Tt(V=>{const q=new gt(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot);this.triggerEvent(q)}),(0,yt.U)(V=>Object.assign(Object.assign({},V),{guards:ks(V.targetSnapshot,V.currentSnapshot,this.rootContexts)})),function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,currentSnapshot:C,guards:{canActivateChecks:b,canDeactivateChecks:N}}=l;return 0===N.length&&0===b.length?(0,H.of)(Object.assign(Object.assign({},l),{guardsResult:!0})):function(f,c,l,p){return(0,P.Dp)(f).pipe((0,it.z)(C=>function(f,c,l,p,C){const b=c&&c.routeConfig?c.routeConfig.canDeactivate:null;if(!b||0===b.length)return(0,H.of)(!0);const N=b.map(V=>{const q=Vs(V,c,C);let Se;if(function(f){return f&&$t(f.canDeactivate)}(q))Se=Mn(q.canDeactivate(f,c,l,p));else{if(!$t(q))throw new Error("Invalid CanDeactivate guard");Se=Mn(q(f,c,l,p))}return Se.pipe(jt())});return(0,H.of)(N).pipe(gr())}(C.component,C.route,l,c,p)),jt(C=>!0!==C,!0))}(N,p,C,f).pipe((0,it.z)(V=>V&&function(f){return"boolean"==typeof f}(V)?function(f,c,l,p){return(0,P.Dp)(c).pipe((0,It.b)(C=>he(function(f,c){return null!==f&&c&&c(new ge(f)),(0,H.of)(!0)}(C.route.parent,p),function(f,c){return null!==f&&c&&c(new Ne(f)),(0,H.of)(!0)}(C.route,p),function(f,c,l){const p=c[c.length-1],b=c.slice(0,c.length-1).reverse().map(N=>function(f){const c=f.routeConfig?f.routeConfig.canActivateChild:null;return c&&0!==c.length?{node:f,guards:c}:null}(N)).filter(N=>null!==N).map(N=>Ke(()=>{const V=N.guards.map(q=>{const Se=Vs(q,N.node,l);let Ue;if(function(f){return f&&$t(f.canActivateChild)}(Se))Ue=Mn(Se.canActivateChild(p,f));else{if(!$t(Se))throw new Error("Invalid CanActivateChild guard");Ue=Mn(Se(p,f))}return Ue.pipe(jt())});return(0,H.of)(V).pipe(gr())}));return(0,H.of)(b).pipe(gr())}(f,C.path,l),function(f,c,l){const p=c.routeConfig?c.routeConfig.canActivate:null;if(!p||0===p.length)return(0,H.of)(!0);const C=p.map(b=>Ke(()=>{const N=Vs(b,c,l);let V;if(function(f){return f&&$t(f.canActivate)}(N))V=Mn(N.canActivate(c,f));else{if(!$t(N))throw new Error("Invalid CanActivate guard");V=Mn(N(c,f))}return V.pipe(jt())}));return(0,H.of)(C).pipe(gr())}(f,C.route,l))),jt(C=>!0!==C,!0))}(p,b,f,c):(0,H.of)(V)),(0,yt.U)(V=>Object.assign(Object.assign({},l),{guardsResult:V})))})}(this.ngModule.injector,V=>this.triggerEvent(V)),Tt(V=>{if(Or(V.guardsResult)){const Se=wt(`Redirecting to "${this.serializeUrl(V.guardsResult)}"`);throw Se.url=V.guardsResult,Se}const q=new tr(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot,!!V.guardsResult);this.triggerEvent(q)}),(0,ee.h)(V=>!!V.guardsResult||(this.restoreHistory(V),this.cancelNavigationTransition(V,""),!1)),fo(V=>{if(V.guards.canActivateChecks.length)return(0,H.of)(V).pipe(Tt(q=>{const Se=new Ri(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}),ue(q=>{let Se=!1;return(0,H.of)(q).pipe(function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,guards:{canActivateChecks:C}}=l;if(!C.length)return(0,H.of)(l);let b=0;return(0,P.Dp)(C).pipe((0,It.b)(N=>function(f,c,l,p){return function(f,c,l,p){const C=Object.keys(f);if(0===C.length)return(0,H.of)({});const b={};return(0,P.Dp)(C).pipe((0,it.z)(N=>function(f,c,l,p){const C=Vs(f,c,p);return Mn(C.resolve?C.resolve(c,l):C(c,l))}(f[N],c,l,p).pipe(Tt(V=>{b[N]=V}))),Te(1),(0,it.z)(()=>Object.keys(b).length===C.length?(0,H.of)(b):X.E))}(f._resolve,f,c,p).pipe((0,yt.U)(b=>(f._resolvedData=b,f.data=Object.assign(Object.assign({},f.data),Mt(f,l).resolve),null)))}(N.route,p,f,c)),Tt(()=>b++),Te(1),(0,it.z)(N=>b===C.length?(0,H.of)(l):X.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Tt({next:()=>Se=!0,complete:()=>{Se||(this.restoreHistory(q),this.cancelNavigationTransition(q,"At least one route resolver didn't emit any value."))}}))}),Tt(q=>{const Se=new fe(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}))}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.afterPreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),(0,yt.U)(V=>{const q=function(f,c,l){const p=Sr(f,c._root,l?l._root:void 0);return new Ht(p,c)}(this.routeReuseStrategy,V.targetSnapshot,V.currentRouterState);return Object.assign(Object.assign({},V),{targetRouterState:q})}),Tt(V=>{this.currentUrlTree=V.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,V.rawUrl),this.routerState=V.targetRouterState,"deferred"===this.urlUpdateStrategy&&(V.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,V),this.browserUrlTree=V.urlAfterRedirects)}),((f,c,l)=>(0,yt.U)(p=>(new Oe(c,p.targetRouterState,p.currentRouterState,l).activate(f),p)))(this.rootContexts,this.routeReuseStrategy,V=>this.triggerEvent(V)),Tt({next(){b=!0},complete(){b=!0}}),function(f){return(0,$e.e)(function(c,l){try{c.subscribe(l)}finally{l.add(f)}})}(()=>{if(!b&&!N){const V=`Navigation ID ${C.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(C),this.cancelNavigationTransition(C,V)):this.cancelNavigationTransition(C,V)}this.currentNavigation=null}),(0,gn.K)(V=>{if(N=!0,function(f){return f&&f[zn]}(V)){const q=Or(V.url);q||(this.navigated=!0,this.restoreHistory(C,!0));const Se=new xt(C.id,this.serializeUrl(C.extractedUrl),V.message);p.next(Se),q?setTimeout(()=>{const Ue=this.urlHandlingStrategy.merge(V.url,this.rawUrlTree),at={skipLocationChange:C.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Fo(C.source)};this.scheduleNavigation(Ue,"imperative",null,at,{resolve:C.resolve,reject:C.reject,promise:C.promise})},0):C.resolve(!1)}else{this.restoreHistory(C,!0);const q=new Hr(C.id,this.serializeUrl(C.extractedUrl),V);p.next(q);try{C.resolve(this.errorHandler(V))}catch(Se){C.reject(Se)}}return X.E}))}))}resetRootComponentType(l){this.rootComponentType=l,this.routerState.root.component=this.rootComponentType}getTransition(){const l=this.transitions.value;return l.urlAfterRedirects=this.browserUrlTree,l}setTransition(l){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),l))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(l=>{const p=this.extractLocationChangeInfoFromEvent(l);this.shouldScheduleNavigation(this.lastLocationChangeInfo,p)&&setTimeout(()=>{const{source:C,state:b,urlTree:N}=p,V={replaceUrl:!0};if(b){const q=Object.assign({},b);delete q.navigationId,delete q.\u0275routerPageId,0!==Object.keys(q).length&&(V.state=q)}this.scheduleNavigation(N,C,b,V)},0),this.lastLocationChangeInfo=p}))}extractLocationChangeInfoFromEvent(l){var p;return{source:"popstate"===l.type?"popstate":"hashchange",urlTree:this.parseUrl(l.url),state:(null===(p=l.state)||void 0===p?void 0:p.navigationId)?l.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(l,p){if(!l)return!0;const C=p.urlTree.toString()===l.urlTree.toString();return p.transitionId!==l.transitionId||!C||!("hashchange"===p.source&&"popstate"===l.source||"popstate"===p.source&&"hashchange"===l.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(l){this.events.next(l)}resetConfig(l){_i(l),this.config=l.map(_),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(l,p={}){const{relativeTo:C,queryParams:b,fragment:N,queryParamsHandling:V,preserveFragment:q}=p,Se=C||this.routerState.root,Ue=q?this.currentUrlTree.fragment:N;let at=null;switch(V){case"merge":at=Object.assign(Object.assign({},this.currentUrlTree.queryParams),b);break;case"preserve":at=this.currentUrlTree.queryParams;break;default:at=b||null}return null!==at&&(at=this.removeEmptyProps(at)),function(f,c,l,p,C){if(0===l.length)return Tr(c.root,c.root,c,p,C);const b=function(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new mi(!0,0,f);let c=0,l=!1;const p=f.reduce((C,b,N)=>{if("object"==typeof b&&null!=b){if(b.outlets){const V={};return nt(b.outlets,(q,Se)=>{V[Se]="string"==typeof q?q.split("/"):q}),[...C,{outlets:V}]}if(b.segmentPath)return[...C,b.segmentPath]}return"string"!=typeof b?[...C,b]:0===N?(b.split("/").forEach((V,q)=>{0==q&&"."===V||(0==q&&""===V?l=!0:".."===V?c++:""!=V&&C.push(V))}),C):[...C,b]},[]);return new mi(l,c,p)}(l);if(b.toRoot())return Tr(c.root,new et([],{}),c,p,C);const N=function(f,c,l){if(f.isAbsolute)return new yi(c.root,!0,0);if(-1===l.snapshot._lastPathIndex){const b=l.snapshot._urlSegment;return new yi(b,b===c.root,0)}const p=jn(f.commands[0])?0:1;return function(f,c,l){let p=f,C=c,b=l;for(;b>C;){if(b-=C,p=p.parent,!p)throw new Error("Invalid number of '../'");C=p.segments.length}return new yi(p,!1,C-b)}(l.snapshot._urlSegment,l.snapshot._lastPathIndex+p,f.numberOfDoubleDots)}(b,c,f),V=N.processChildren?Qr(N.segmentGroup,N.index,b.commands):vi(N.segmentGroup,N.index,b.commands);return Tr(N.segmentGroup,V,c,p,C)}(Se,this.currentUrlTree,l,at,null!=Ue?Ue:null)}navigateByUrl(l,p={skipLocationChange:!1}){const C=Or(l)?l:this.parseUrl(l),b=this.urlHandlingStrategy.merge(C,this.rawUrlTree);return this.scheduleNavigation(b,"imperative",null,p)}navigate(l,p={skipLocationChange:!1}){return function(f){for(let c=0;c{const b=l[C];return null!=b&&(p[C]=b),p},{})}processNavigations(){this.navigations.subscribe(l=>{this.navigated=!0,this.lastSuccessfulId=l.id,this.currentPageId=l.targetPageId,this.events.next(new Nn(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,l.resolve(!0)},l=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(l,p,C,b,N){var V,q;if(this.disposed)return Promise.resolve(!1);const Se=this.getTransition(),Ue=Fo(p)&&Se&&!Fo(Se.source),Ct=(this.lastSuccessfulId===Se.id||this.currentNavigation?Se.rawUrl:Se.urlAfterRedirects).toString()===l.toString();if(Ue&&Ct)return Promise.resolve(!0);let vr,or,Lr;N?(vr=N.resolve,or=N.reject,Lr=N.promise):Lr=new Promise((sr,Ho)=>{vr=sr,or=Ho});const Xi=++this.navigationId;let Bi;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(C=this.location.getState()),Bi=C&&C.\u0275routerPageId?C.\u0275routerPageId:b.replaceUrl||b.skipLocationChange?null!==(V=this.browserPageId)&&void 0!==V?V:0:(null!==(q=this.browserPageId)&&void 0!==q?q:0)+1):Bi=0,this.setTransition({id:Xi,targetPageId:Bi,source:p,restoredState:C,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:l,extras:b,resolve:vr,reject:or,promise:Lr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Lr.catch(sr=>Promise.reject(sr))}setBrowserUrl(l,p){const C=this.urlSerializer.serialize(l),b=Object.assign(Object.assign({},p.extras.state),this.generateNgRouterState(p.id,p.targetPageId));this.location.isCurrentPathEqualTo(C)||p.extras.replaceUrl?this.location.replaceState(C,"",b):this.location.go(C,"",b)}restoreHistory(l,p=!1){var C,b;if("computed"===this.canceledNavigationResolution){const N=this.currentPageId-l.targetPageId;"popstate"!==l.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(C=this.currentNavigation)||void 0===C?void 0:C.finalUrl)||0===N?this.currentUrlTree===(null===(b=this.currentNavigation)||void 0===b?void 0:b.finalUrl)&&0===N&&(this.resetState(l),this.browserUrlTree=l.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(N)}else"replace"===this.canceledNavigationResolution&&(p&&this.resetState(l),this.resetUrlToCurrentUrlTree())}resetState(l){this.routerState=l.currentRouterState,this.currentUrlTree=l.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,l.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(l,p){const C=new xt(l.id,this.serializeUrl(l.extractedUrl),p);this.triggerEvent(C),l.resolve(!1)}generateNgRouterState(l,p){return"computed"===this.canceledNavigationResolution?{navigationId:l,\u0275routerPageId:p}:{navigationId:l}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.DyG),u.LFG(yn),u.LFG(Ui),u.LFG(y.Ye),u.LFG(u.zs3),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Fo(f){return"imperative"!==f}let Lo=(()=>{class f{constructor(l,p,C,b,N){this.router=l,this.route=p,this.commands=[],this.onChanges=new re.x,null==C&&b.setAttribute(N.nativeElement,"tabindex","0")}ngOnChanges(l){this.onChanges.next(this)}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}onClick(){const l={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(l,p){1&l&&u.NdJ("click",function(){return p.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})(),ko=(()=>{class f{constructor(l,p,C){this.router=l,this.route=p,this.locationStrategy=C,this.commands=[],this.onChanges=new re.x,this.subscription=l.events.subscribe(b=>{b instanceof Nn&&this.updateTargetUrlAndHref()})}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}ngOnChanges(l){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(l,p,C,b,N){if(0!==l||p||C||b||N||"string"==typeof this.target&&"_self"!=this.target)return!0;const V={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,V),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.Y36(y.S$))},f.\u0275dir=u.lG2({type:f,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(l,p){1&l&&u.NdJ("click",function(b){return p.onClick(b.button,b.ctrlKey,b.shiftKey,b.altKey,b.metaKey)}),2&l&&(u.Ikx("href",p.href,u.LSH),u.uIk("target",p.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})();function ti(f){return""===f||!!f}let ho=(()=>{class f{constructor(l,p,C,b,N,V){this.router=l,this.element=p,this.renderer=C,this.cdr=b,this.link=N,this.linkWithHref=V,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=l.events.subscribe(q=>{q instanceof Nn&&this.update()})}ngAfterContentInit(){(0,H.of)(this.links.changes,this.linksWithHrefs.changes,(0,H.of)(null)).pipe((0,Ge.J)()).subscribe(l=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var l;null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe();const p=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(C=>!!C).map(C=>C.onChanges);this.linkInputChangesSubscription=(0,P.Dp)(p).pipe((0,Ge.J)()).subscribe(C=>{this.isActive!==this.isLinkActive(this.router)(C)&&this.update()})}set routerLinkActive(l){const p=Array.isArray(l)?l:l.split(" ");this.classes=p.filter(C=>!!C)}ngOnChanges(l){this.update()}ngOnDestroy(){var l;this.routerEventsSubscription.unsubscribe(),null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const l=this.hasActiveLinks();this.isActive!==l&&(this.isActive=l,this.cdr.markForCheck(),this.classes.forEach(p=>{l?this.renderer.addClass(this.element.nativeElement,p):this.renderer.removeClass(this.element.nativeElement,p)}))})}isLinkActive(l){const p=function(f){return!!f.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return C=>l.isActive(C.urlTree,p)}hasActiveLinks(){const l=this.isLinkActive(this.router);return this.link&&l(this.link)||this.linkWithHref&&l(this.linkWithHref)||this.links.some(l)||this.linksWithHrefs.some(l)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(u.sBO),u.Y36(Lo,8),u.Y36(ko,8))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLinkActive",""]],contentQueries:function(l,p,C){if(1&l&&(u.Suo(C,Lo,5),u.Suo(C,ko,5)),2&l){let b;u.iGM(b=u.CRH())&&(p.links=b),u.iGM(b=u.CRH())&&(p.linksWithHrefs=b)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[u.TTD]}),f})(),po=(()=>{class f{constructor(l,p,C,b,N){this.parentContexts=l,this.location=p,this.resolver=C,this.changeDetector=N,this.activated=null,this._activatedRoute=null,this.activateEvents=new u.vpe,this.deactivateEvents=new u.vpe,this.name=b||Re,l.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const l=this.parentContexts.getContext(this.name);l&&l.route&&(l.attachRef?this.attach(l.attachRef,l.route):this.activateWith(l.route,l.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const l=this.activated;return this.activated=null,this._activatedRoute=null,l}attach(l,p){this.activated=l,this._activatedRoute=p,this.location.insert(l.hostView)}deactivate(){if(this.activated){const l=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(l)}}activateWith(l,p){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=l;const N=(p=p||this.resolver).resolveComponentFactory(l._futureSnapshot.routeConfig.component),V=this.parentContexts.getOrCreateContext(this.name).children,q=new Ka(l,V,this.location.injector);this.activated=this.location.createComponent(N,this.location.length,q),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Ui),u.Y36(u.s_b),u.Y36(u._Vd),u.$8M("name"),u.Y36(u.sBO))},f.\u0275dir=u.lG2({type:f,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),f})();class Ka{constructor(c,l,p){this.route=c,this.childContexts=l,this.parent=p}get(c,l){return c===Gt?this.route:c===Ui?this.childContexts:this.parent.get(c,l)}}class Ya{}class Qi{preload(c,l){return(0,H.of)(null)}}let Za=(()=>{class f{constructor(l,p,C,b,N){this.router=l,this.injector=b,this.preloadingStrategy=N,this.loader=new Hs(p,C,Se=>l.triggerEvent(new G(Se)),Se=>l.triggerEvent(new W(Se)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,ee.h)(l=>l instanceof Nn),(0,It.b)(()=>this.preload())).subscribe(()=>{})}preload(){const l=this.injector.get(u.h0i);return this.processRoutes(l,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(l,p){const C=[];for(const b of p)if(b.loadChildren&&!b.canLoad&&b._loadedConfig){const N=b._loadedConfig;C.push(this.processRoutes(N.module,N.routes))}else b.loadChildren&&!b.canLoad?C.push(this.preloadConfig(l,b)):b.children&&C.push(this.processRoutes(l,b.children));return(0,P.Dp)(C).pipe((0,Ge.J)(),(0,yt.U)(b=>{}))}preloadConfig(l,p){return this.preloadingStrategy.preload(p,()=>(p._loadedConfig?(0,H.of)(p._loadedConfig):this.loader.load(l.injector,p)).pipe((0,it.z)(b=>(p._loadedConfig=b,this.processRoutes(b.module,b.routes)))))}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(u.zs3),u.LFG(Ya))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})(),Gs=(()=>{class f{constructor(l,p,C={}){this.router=l,this.viewportScroller=p,this.options=C,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},C.scrollPositionRestoration=C.scrollPositionRestoration||"disabled",C.anchorScrolling=C.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(l=>{l instanceof Cn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=l.navigationTrigger,this.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof Nn&&(this.lastId=l.id,this.scheduleScrollEvent(l,this.router.parseUrl(l.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(l=>{l instanceof xe&&(l.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(l,p){this.router.triggerEvent(new xe(l,"popstate"===this.lastSource?this.store[this.restoredId]:null,p))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(y.EM),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();const ni=new u.OlP("ROUTER_CONFIGURATION"),qa=new u.OlP("ROUTER_FORROOT_GUARD"),sf=[y.Ye,{provide:yn,useClass:zr},{provide:Wn,useFactory:function(f,c,l,p,C,b,N,V={},q,Se){const Ue=new Wn(null,f,c,l,p,C,b,rn(N));return q&&(Ue.urlHandlingStrategy=q),Se&&(Ue.routeReuseStrategy=Se),function(f,c){f.errorHandler&&(c.errorHandler=f.errorHandler),f.malformedUriErrorHandler&&(c.malformedUriErrorHandler=f.malformedUriErrorHandler),f.onSameUrlNavigation&&(c.onSameUrlNavigation=f.onSameUrlNavigation),f.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=f.paramsInheritanceStrategy),f.relativeLinkResolution&&(c.relativeLinkResolution=f.relativeLinkResolution),f.urlUpdateStrategy&&(c.urlUpdateStrategy=f.urlUpdateStrategy)}(V,Ue),V.enableTracing&&Ue.events.subscribe(at=>{var kt,Ct;null===(kt=console.group)||void 0===kt||kt.call(console,`Router Event: ${at.constructor.name}`),console.log(at.toString()),console.log(at),null===(Ct=console.groupEnd)||void 0===Ct||Ct.call(console)}),Ue},deps:[yn,Ui,y.Ye,u.zs3,u.v3s,u.Sil,No,ni,[class{},new u.FiY],[class{},new u.FiY]]},Ui,{provide:Gt,useFactory:function(f){return f.routerState.root},deps:[Wn]},{provide:u.v3s,useClass:u.EAV},Za,Qi,class{preload(c,l){return l().pipe((0,gn.K)(()=>(0,H.of)(null)))}},{provide:ni,useValue:{enableTracing:!1}}];function af(){return new u.PXZ("Router",Wn)}let Bo=(()=>{class f{constructor(l,p){}static forRoot(l,p){return{ngModule:f,providers:[sf,zs(l),{provide:qa,useFactory:$o,deps:[[Wn,new u.FiY,new u.tp0]]},{provide:ni,useValue:p||{}},{provide:y.S$,useFactory:Ws,deps:[y.lw,[new u.tBr(y.mr),new u.FiY],ni]},{provide:Gs,useFactory:Qa,deps:[Wn,y.EM,ni]},{provide:Ya,useExisting:p&&p.preloadingStrategy?p.preloadingStrategy:Qi},{provide:u.PXZ,multi:!0,useFactory:af},[Ei,{provide:u.ip1,multi:!0,useFactory:Ks,deps:[Ei]},{provide:mu,useFactory:jo,deps:[Ei]},{provide:u.tb,multi:!0,useExisting:mu}]]}}static forChild(l){return{ngModule:f,providers:[zs(l)]}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(qa,8),u.LFG(Wn,8))},f.\u0275mod=u.oAB({type:f}),f.\u0275inj=u.cJS({}),f})();function Qa(f,c,l){return l.scrollOffset&&c.setOffset(l.scrollOffset),new Gs(f,c,l)}function Ws(f,c,l={}){return l.useHash?new y.Do(f,c):new y.b0(f,c)}function $o(f){return"guarded"}function zs(f){return[{provide:u.deG,multi:!0,useValue:f},{provide:No,multi:!0,useValue:f}]}let Ei=(()=>{class f{constructor(l){this.injector=l,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new re.x}appInitializer(){return this.injector.get(y.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let p=null;const C=new Promise(V=>p=V),b=this.injector.get(Wn),N=this.injector.get(ni);return"disabled"===N.initialNavigation?(b.setUpLocationChangeListener(),p(!0)):"enabled"===N.initialNavigation||"enabledBlocking"===N.initialNavigation?(b.hooks.afterPreactivation=()=>this.initNavigation?(0,H.of)(null):(this.initNavigation=!0,p(!0),this.resultOfPreactivationDone),b.initialNavigation()):p(!0),C})}bootstrapListener(l){const p=this.injector.get(ni),C=this.injector.get(Za),b=this.injector.get(Gs),N=this.injector.get(Wn),V=this.injector.get(u.z2F);l===V.components[0]&&(("enabledNonBlocking"===p.initialNavigation||void 0===p.initialNavigation)&&N.initialNavigation(),C.setUpPreloading(),b.init(),N.resetRootComponentType(V.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.zs3))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Ks(f){return f.appInitializer.bind(f)}function jo(f){return f.bootstrapListener.bind(f)}const mu=new u.OlP("Router Initializer")},1776:(Ye,me,O)=>{"use strict";O.d(me,{y:()=>U});var y=O(4111),u=O(8839),ce=O(8794),re=O(2738);function J(De){return 0===De.length?re.y:1===De.length?De[0]:function(_e){return De.reduce(function(He,Me){return Me(He)},_e)}}var K=O(6806),P=O(8853),x=O(4112),U=function(){function De(Pe){Pe&&(this._subscribe=Pe)}return De.prototype.lift=function(Pe){var _e=new De;return _e.source=this,_e.operator=Pe,_e},De.prototype.subscribe=function(Pe,_e,He){var Me=this,Ge=function(De){return De&&De instanceof y.Lv||function(De){return De&&(0,P.m)(De.next)&&(0,P.m)(De.error)&&(0,P.m)(De.complete)}(De)&&(0,u.Nn)(De)}(Pe)?Pe:new y.Hp(Pe,_e,He);return(0,x.x)(function(){var Fe=Me.operator,he=Me.source;Ge.add(Fe?Fe.call(Ge,he):he?Me._subscribe(Ge):Me._trySubscribe(Ge))}),Ge},De.prototype._trySubscribe=function(Pe){try{return this._subscribe(Pe)}catch(_e){Pe.error(_e)}},De.prototype.forEach=function(Pe,_e){var He=this;return new(_e=Y(_e))(function(Me,Ge){var We;We=He.subscribe(function(Fe){try{Pe(Fe)}catch(he){Ge(he),null==We||We.unsubscribe()}},Ge,Me)})},De.prototype._subscribe=function(Pe){var _e;return null===(_e=this.source)||void 0===_e?void 0:_e.subscribe(Pe)},De.prototype[ce.L]=function(){return this},De.prototype.pipe=function(){for(var Pe=[],_e=0;_e{"use strict";O.d(me,{x:()=>P});var y=O(9162),u=O(1776),ce=O(8839),te=(0,O(3864).d)(function(U){return function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),J=O(5850),K=O(4112),P=function(U){function Y(){var ae=U.call(this)||this;return ae.closed=!1,ae.observers=[],ae.isStopped=!1,ae.hasError=!1,ae.thrownError=null,ae}return(0,y.ZT)(Y,U),Y.prototype.lift=function(ae){var Ee=new x(this,this);return Ee.operator=ae,Ee},Y.prototype._throwIfClosed=function(){if(this.closed)throw new te},Y.prototype.next=function(ae){var Ee=this;(0,K.x)(function(){var De,Pe;if(Ee._throwIfClosed(),!Ee.isStopped){var _e=Ee.observers.slice();try{for(var He=(0,y.XA)(_e),Me=He.next();!Me.done;Me=He.next())Me.value.next(ae)}catch(We){De={error:We}}finally{try{Me&&!Me.done&&(Pe=He.return)&&Pe.call(He)}finally{if(De)throw De.error}}}})},Y.prototype.error=function(ae){var Ee=this;(0,K.x)(function(){if(Ee._throwIfClosed(),!Ee.isStopped){Ee.hasError=Ee.isStopped=!0,Ee.thrownError=ae;for(var De=Ee.observers;De.length;)De.shift().error(ae)}})},Y.prototype.complete=function(){var ae=this;(0,K.x)(function(){if(ae._throwIfClosed(),!ae.isStopped){ae.isStopped=!0;for(var Ee=ae.observers;Ee.length;)Ee.shift().complete()}})},Y.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Y.prototype,"observed",{get:function(){var ae;return(null===(ae=this.observers)||void 0===ae?void 0:ae.length)>0},enumerable:!1,configurable:!0}),Y.prototype._trySubscribe=function(ae){return this._throwIfClosed(),U.prototype._trySubscribe.call(this,ae)},Y.prototype._subscribe=function(ae){return this._throwIfClosed(),this._checkFinalizedStatuses(ae),this._innerSubscribe(ae)},Y.prototype._innerSubscribe=function(ae){var _e=this.observers;return this.hasError||this.isStopped?ce.Lc:(_e.push(ae),new ce.w0(function(){return(0,J.P)(_e,ae)}))},Y.prototype._checkFinalizedStatuses=function(ae){var _e=this.isStopped;this.hasError?ae.error(this.thrownError):_e&&ae.complete()},Y.prototype.asObservable=function(){var ae=new u.y;return ae.source=this,ae},Y.create=function(ae,Ee){return new x(ae,Ee)},Y}(u.y),x=function(U){function Y(ae,Ee){var De=U.call(this)||this;return De.destination=ae,De.source=Ee,De}return(0,y.ZT)(Y,U),Y.prototype.next=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.next)||void 0===De||De.call(Ee,ae)},Y.prototype.error=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.error)||void 0===De||De.call(Ee,ae)},Y.prototype.complete=function(){var ae,Ee;null===(Ee=null===(ae=this.destination)||void 0===ae?void 0:ae.complete)||void 0===Ee||Ee.call(ae)},Y.prototype._subscribe=function(ae){var Ee,De;return null!==(De=null===(Ee=this.source)||void 0===Ee?void 0:Ee.subscribe(ae))&&void 0!==De?De:ce.Lc},Y}(P)},4111:(Ye,me,O)=>{"use strict";O.d(me,{Hp:()=>De,Lv:()=>Ee});var y=O(9162),u=O(8853),ce=O(8839),re=O(6806),te=O(8550);function J(){}var K=U("C",void 0,void 0);function U(Ge,We,Fe){return{kind:Ge,value:We,error:Fe}}var Y=O(9385),ae=O(4112),Ee=function(Ge){function We(Fe){var he=Ge.call(this)||this;return he.isStopped=!1,Fe?(he.destination=Fe,(0,ce.Nn)(Fe)&&Fe.add(he)):he.destination=Me,he}return(0,y.ZT)(We,Ge),We.create=function(Fe,he,Ke){return new De(Fe,he,Ke)},We.prototype.next=function(Fe){this.isStopped?He(function(Ge){return U("N",Ge,void 0)}(Fe),this):this._next(Fe)},We.prototype.error=function(Fe){this.isStopped?He(function(Ge){return U("E",void 0,Ge)}(Fe),this):(this.isStopped=!0,this._error(Fe))},We.prototype.complete=function(){this.isStopped?He(K,this):(this.isStopped=!0,this._complete())},We.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ge.prototype.unsubscribe.call(this),this.destination=null)},We.prototype._next=function(Fe){this.destination.next(Fe)},We.prototype._error=function(Fe){try{this.destination.error(Fe)}finally{this.unsubscribe()}},We.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},We}(ce.w0),De=function(Ge){function We(Fe,he,Ke){var $e,bt=Ge.call(this)||this;if((0,u.m)(Fe))$e=Fe;else if(Fe){var lt;$e=Fe.next,he=Fe.error,Ke=Fe.complete,bt&&re.v.useDeprecatedNextContext?(lt=Object.create(Fe)).unsubscribe=function(){return bt.unsubscribe()}:lt=Fe,$e=null==$e?void 0:$e.bind(lt),he=null==he?void 0:he.bind(lt),Ke=null==Ke?void 0:Ke.bind(lt)}return bt.destination={next:$e?Pe($e):J,error:Pe(null!=he?he:_e),complete:Ke?Pe(Ke):J},bt}return(0,y.ZT)(We,Ge),We}(Ee);function Pe(Ge,We){return function(){for(var Fe=[],he=0;he{"use strict";O.d(me,{Lc:()=>K,w0:()=>J,Nn:()=>P});var y=O(9162),u=O(8853),re=(0,O(3864).d)(function(U){return function(ae){U(this),this.message=ae?ae.length+" errors occurred during unsubscription:\n"+ae.map(function(Ee,De){return De+1+") "+Ee.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=ae}}),te=O(5850),J=function(){function U(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._teardowns=null}return U.prototype.unsubscribe=function(){var Y,ae,Ee,De,Pe;if(!this.closed){this.closed=!0;var _e=this._parentage;if(_e)if(this._parentage=null,Array.isArray(_e))try{for(var He=(0,y.XA)(_e),Me=He.next();!Me.done;Me=He.next())Me.value.remove(this)}catch($e){Y={error:$e}}finally{try{Me&&!Me.done&&(ae=He.return)&&ae.call(He)}finally{if(Y)throw Y.error}}else _e.remove(this);var We=this.initialTeardown;if((0,u.m)(We))try{We()}catch($e){Pe=$e instanceof re?$e.errors:[$e]}var Fe=this._teardowns;if(Fe){this._teardowns=null;try{for(var he=(0,y.XA)(Fe),Ke=he.next();!Ke.done;Ke=he.next()){var bt=Ke.value;try{x(bt)}catch($e){Pe=null!=Pe?Pe:[],$e instanceof re?Pe=(0,y.ev)((0,y.ev)([],(0,y.CR)(Pe)),(0,y.CR)($e.errors)):Pe.push($e)}}}catch($e){Ee={error:$e}}finally{try{Ke&&!Ke.done&&(De=he.return)&&De.call(he)}finally{if(Ee)throw Ee.error}}}if(Pe)throw new re(Pe)}},U.prototype.add=function(Y){var ae;if(Y&&Y!==this)if(this.closed)x(Y);else{if(Y instanceof U){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._teardowns=null!==(ae=this._teardowns)&&void 0!==ae?ae:[]).push(Y)}},U.prototype._hasParent=function(Y){var ae=this._parentage;return ae===Y||Array.isArray(ae)&&ae.includes(Y)},U.prototype._addParent=function(Y){var ae=this._parentage;this._parentage=Array.isArray(ae)?(ae.push(Y),ae):ae?[ae,Y]:Y},U.prototype._removeParent=function(Y){var ae=this._parentage;ae===Y?this._parentage=null:Array.isArray(ae)&&(0,te.P)(ae,Y)},U.prototype.remove=function(Y){var ae=this._teardowns;ae&&(0,te.P)(ae,Y),Y instanceof U&&Y._removeParent(this)},U.EMPTY=((Y=new U).closed=!0,Y),U;var Y}(),K=J.EMPTY;function P(U){return U instanceof J||U&&"closed"in U&&(0,u.m)(U.remove)&&(0,u.m)(U.add)&&(0,u.m)(U.unsubscribe)}function x(U){(0,u.m)(U)?U():U.unsubscribe()}},6806:(Ye,me,O)=>{"use strict";O.d(me,{v:()=>y});var y={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},6149:(Ye,me,O)=>{"use strict";O.d(me,{E:()=>u});var u=new(O(1776).y)(function(te){return te.complete()})},5929:(Ye,me,O)=>{"use strict";O.d(me,{Dp:()=>$e,OO:()=>H,Xf:()=>lt});var y=O(9162),u=function(ee){return ee&&"number"==typeof ee.length&&"function"!=typeof ee},ce=O(8853);function re(ee){return(0,ce.m)(null==ee?void 0:ee.then)}var te=O(8794),J=O(1776),K=O(8839),U=O(2504),ae="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Pe(ee,Te){if(!ee)throw new Error("Iterable cannot be null");return new J.y(function(be){var Ve=new K.w0;return Ve.add(Te.schedule(function(){var Xe=ee[Symbol.asyncIterator]();Ve.add(Te.schedule(function(){var rt=this;Xe.next().then(function(vt){vt.done?be.complete():(be.next(vt.value),rt.schedule())})}))})),Ve})}function _e(ee){return(0,ce.m)(ee[te.L])}function He(ee){return(0,ce.m)(null==ee?void 0:ee[ae])}function Me(ee){return Symbol.asyncIterator&&(0,ce.m)(null==ee?void 0:ee[Symbol.asyncIterator])}function Ge(ee){return new TypeError("You provided "+(null!==ee&&"object"==typeof ee?"an invalid object":"'"+ee+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function We(ee){return(0,y.FC)(this,arguments,function(){var be,Ve,Xe;return(0,y.Jh)(this,function(vt){switch(vt.label){case 0:be=ee.getReader(),vt.label=1;case 1:vt.trys.push([1,,9,10]),vt.label=2;case 2:return[4,(0,y.qq)(be.read())];case 3:return Ve=vt.sent(),Xe=Ve.value,Ve.done?[4,(0,y.qq)(void 0)]:[3,5];case 4:return[2,vt.sent()];case 5:return[4,(0,y.qq)(Xe)];case 6:return[4,vt.sent()];case 7:return vt.sent(),[3,2];case 8:return[3,10];case 9:return be.releaseLock(),[7];case 10:return[2]}})})}function Fe(ee){return(0,ce.m)(null==ee?void 0:ee.getReader)}var bt=O(8550);function $e(ee,Te){return Te?function(ee,Te){if(null!=ee){if(_e(ee))return function(ee,Te){return new J.y(function(be){var Ve=new K.w0;return Ve.add(Te.schedule(function(){var Xe=ee[te.L]();Ve.add(Xe.subscribe({next:function(rt){Ve.add(Te.schedule(function(){return be.next(rt)}))},error:function(rt){Ve.add(Te.schedule(function(){return be.error(rt)}))},complete:function(){Ve.add(Te.schedule(function(){return be.complete()}))}}))})),Ve})}(ee,Te);if(u(ee))return(0,U.r)(ee,Te);if(re(ee))return function(ee,Te){return new J.y(function(be){return Te.schedule(function(){return ee.then(function(Ve){be.add(Te.schedule(function(){be.next(Ve),be.add(Te.schedule(function(){return be.complete()}))}))},function(Ve){be.add(Te.schedule(function(){return be.error(Ve)}))})})})}(ee,Te);if(Me(ee))return Pe(ee,Te);if(He(ee))return function(ee,Te){return new J.y(function(be){var Ve;return be.add(Te.schedule(function(){Ve=ee[ae](),function(ee,Te,be,Ve){void 0===Ve&&(Ve=0);var Xe=Te.schedule(function(){try{be.call(this)}catch(rt){ee.error(rt)}},Ve);ee.add(Xe)}(be,Te,function(){var Xe=Ve.next(),rt=Xe.value;Xe.done?be.complete():(be.next(rt),this.schedule())})})),function(){return(0,ce.m)(null==Ve?void 0:Ve.return)&&Ve.return()}})}(ee,Te);if(Fe(ee))return function(ee,Te){return Pe(We(ee),Te)}(ee,Te)}throw Ge(ee)}(ee,Te):lt(ee)}function lt(ee){if(ee instanceof J.y)return ee;if(null!=ee){if(_e(ee))return function(ee){return new J.y(function(Te){var be=ee[te.L]();if((0,ce.m)(be.subscribe))return be.subscribe(Te);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ee);if(u(ee))return H(ee);if(re(ee))return function(ee){return new J.y(function(Te){ee.then(function(be){Te.closed||(Te.next(be),Te.complete())},function(be){return Te.error(be)}).then(null,bt.h)})}(ee);if(Me(ee))return Ae(ee);if(He(ee))return function(ee){return new J.y(function(Te){var be,Ve;try{for(var Xe=(0,y.XA)(ee),rt=Xe.next();!rt.done;rt=Xe.next())if(Te.next(rt.value),Te.closed)return}catch(jt){be={error:jt}}finally{try{rt&&!rt.done&&(Ve=Xe.return)&&Ve.call(Xe)}finally{if(be)throw be.error}}Te.complete()})}(ee);if(Fe(ee))return function(ee){return Ae(We(ee))}(ee)}throw Ge(ee)}function H(ee){return new J.y(function(Te){for(var be=0;be{"use strict";O.d(me,{h:()=>ce});var y=O(2504),u=O(5929);function ce(re,te){return te?(0,y.r)(re,te):(0,u.OO)(re)}},1964:(Ye,me,O)=>{"use strict";O.d(me,{of:()=>re});var y=O(5994),u=O(2504),ce=O(9528);function re(){for(var te=[],J=0;J{"use strict";O.d(me,{_:()=>ce});var y=O(1776),u=O(8853);function ce(re,te){var J=(0,u.m)(re)?re:function(){return re},K=function(P){return P.error(J())};return new y.y(te?function(P){return te.schedule(K,0,P)}:K)}},5076:(Ye,me,O)=>{"use strict";O.d(me,{Q:()=>ce});var y=O(9162),ce=function(re){function te(J,K,P,x,U){var Y=re.call(this,J)||this;return Y.onFinalize=U,Y._next=K?function(ae){try{K(ae)}catch(Ee){J.error(Ee)}}:re.prototype._next,Y._error=x?function(ae){try{x(ae)}catch(Ee){J.error(Ee)}finally{this.unsubscribe()}}:re.prototype._error,Y._complete=P?function(){try{P()}catch(ae){J.error(ae)}finally{this.unsubscribe()}}:re.prototype._complete,Y}return(0,y.ZT)(te,re),te.prototype.unsubscribe=function(){var J,K=this.closed;re.prototype.unsubscribe.call(this),!K&&(null===(J=this.onFinalize)||void 0===J||J.call(this))},te}(O(4111).Lv)},5894:(Ye,me,O)=>{"use strict";O.d(me,{K:()=>re});var y=O(5929),u=O(5076),ce=O(4297);function re(te){return(0,ce.e)(function(J,K){var U,P=null,x=!1;P=J.subscribe(new u.Q(K,void 0,void 0,function(Y){U=(0,y.Xf)(te(Y,re(te)(J))),P?(P.unsubscribe(),P=null,U.subscribe(K)):x=!0})),x&&(P.unsubscribe(),P=null,U.subscribe(K))})}},3766:(Ye,me,O)=>{"use strict";O.d(me,{b:()=>ce});var y=O(7216),u=O(8853);function ce(re,te){return(0,u.m)(te)?(0,y.z)(re,te,1):(0,y.z)(re,1)}},4689:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(J,K){var P=0;J.subscribe(new u.Q(K,function(x){return re.call(te,x,P++)&&K.next(x)}))})}},5207:(Ye,me,O)=>{"use strict";O.d(me,{U:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(J,K){var P=0;J.subscribe(new u.Q(K,function(x){K.next(re.call(te,x,P++))}))})}},23:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>ce});var y=O(7216),u=O(2738);function ce(re){return void 0===re&&(re=1/0),(0,y.z)(u.y,re)}},7216:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>K});var y=O(5207),u=O(5929),ce=O(4297),re=O(5076),J=O(8853);function K(P,x,U){return void 0===U&&(U=1/0),(0,J.m)(x)?K(function(Y,ae){return(0,y.U)(function(Ee,De){return x(Y,Ee,ae,De)})((0,u.Xf)(P(Y,ae)))},U):("number"==typeof x&&(U=x),(0,ce.e)(function(Y,ae){return function(P,x,U,Y,ae,Ee,De,Pe){var _e=[],He=0,Me=0,Ge=!1,We=function(){Ge&&!_e.length&&!He&&x.complete()},Fe=function(Ke){return He{"use strict";O.d(me,{q:()=>re});var y=O(6149),u=O(4297),ce=O(5076);function re(te){return te<=0?function(){return y.E}:(0,u.e)(function(J,K){var P=0;J.subscribe(new ce.Q(K,function(x){++P<=te&&(K.next(x),te<=P&&K.complete())}))})}},2504:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>u});var y=O(1776);function u(ce,re){return new y.y(function(te){var J=0;return re.schedule(function(){J===ce.length?te.complete():(te.next(ce[J++]),te.closed||this.schedule())})})}},9385:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>u});var y=O(9162),u={setTimeout:function(){for(var ce=[],re=0;re{"use strict";O.d(me,{L:()=>y});var y="function"==typeof Symbol&&Symbol.observable||"@@observable"},9528:(Ye,me,O)=>{"use strict";O.d(me,{_6:()=>J,jO:()=>re,yG:()=>te});var y=O(8853);function ce(K){return K[K.length-1]}function re(K){return(0,y.m)(ce(K))?K.pop():void 0}function te(K){return function(K){return K&&(0,y.m)(K.schedule)}(ce(K))?K.pop():void 0}function J(K,P){return"number"==typeof ce(K)?K.pop():P}},1260:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=Array.isArray,u=Object.getPrototypeOf,ce=Object.prototype,re=Object.keys;function te(K){if(1===K.length){var P=K[0];if(y(P))return{args:P,keys:null};if(function(K){return K&&"object"==typeof K&&u(K)===ce}(P)){var x=re(P);return{args:x.map(function(U){return P[U]}),keys:x}}}return{args:K,keys:null}}},5850:(Ye,me,O)=>{"use strict";function y(u,ce){if(u){var re=u.indexOf(ce);0<=re&&u.splice(re,1)}}O.d(me,{P:()=>y})},3864:(Ye,me,O)=>{"use strict";function y(u){var re=u(function(te){Error.call(te),te.stack=(new Error).stack});return re.prototype=Object.create(Error.prototype),re.prototype.constructor=re,re}O.d(me,{d:()=>y})},5526:(Ye,me,O)=>{"use strict";function y(u,ce){return u.reduce(function(re,te,J){return re[te]=ce[J],re},{})}O.d(me,{n:()=>y})},4112:(Ye,me,O)=>{"use strict";O.d(me,{x:()=>ce,O:()=>re});var y=O(6806),u=null;function ce(te){if(y.v.useDeprecatedSynchronousErrorHandling){var J=!u;if(J&&(u={errorThrown:!1,error:null}),te(),J){var K=u;if(u=null,K.errorThrown)throw K.error}}else te()}function re(te){y.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=te)}},2738:(Ye,me,O)=>{"use strict";function y(u){return u}O.d(me,{y:()=>y})},8853:(Ye,me,O)=>{"use strict";function y(u){return"function"==typeof u}O.d(me,{m:()=>y})},4297:(Ye,me,O)=>{"use strict";O.d(me,{A:()=>u,e:()=>ce});var y=O(8853);function u(re){return(0,y.m)(null==re?void 0:re.lift)}function ce(re){return function(te){if(u(te))return te.lift(function(J){try{return re(J,this)}catch(K){this.error(K)}});throw new TypeError("Unable to lift unknown Observable type")}}},9607:(Ye,me,O)=>{"use strict";O.d(me,{Z:()=>te});var y=O(9162),u=O(5207),ce=Array.isArray;function te(J){return(0,u.U)(function(K){return function(J,K){return ce(K)?J.apply(void 0,(0,y.ev)([],(0,y.CR)(K))):J(K)}(J,K)})}},8550:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(6806),u=O(9385);function ce(re){u.z.setTimeout(function(){var te=y.v.onUnhandledError;if(!te)throw re;te(re)})}},8253:(Ye,me,O)=>{"use strict";O.d(me,{a:()=>re});var y=O(476),u=O(9502),ce=O(7556);let re=(()=>{class te{constructor(K,P){this.router=K,this.authSvc=P}canActivate(K,P){return this.checkLogin(P.url)}canActivateChild(K,P){return this.canActivate(K,P)}canLoad(K){return this.checkLogin(`/${K.path}`)}checkLogin(K){return!(this.authSvc.isSecureMode&&!this.authSvc.isLoggedIn)||this.router.parseUrl("/login")}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.F0),y.LFG(ce.e))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},7822:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>ce});var y=O(476);let ce=(()=>{class re{constructor(){this.messages=[]}success(J="operation",K){this.messages.push({class:"alert alert-success shadow rounded alert-dismissible fade show",content:`${J} success! ${K||""}`})}errors(J){this.messages.push({class:"alert alert-danger shadow rounded alert-dismissible fade show",content:J})}clear(){this.messages.shift()}}return re.\u0275fac=function(J){return new(J||re)},re.\u0275prov=y.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})()},7556:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>re});var y=O(476),u=O(1841),ce=O(4889);let re=(()=>{class te{constructor(K,P){this.http=K,this.errorSvc=P,this.accessToken=null,this.isLoggedIn=!1,this.redirectUrl=null,this.isSecureMode=!1}login(){return this.tokenValidate()}tokenValidate(){return this.http.get("/core-metadata/api/v3/version")}setAccessToken(K){this.accessToken=K,window.sessionStorage.setItem("EdgeX_Access_Token",this.accessToken)}getAccessToken(){if(this.accessToken)return this.accessToken;let K=window.sessionStorage.getItem("EdgeX_Access_Token");return K&&(this.accessToken=K),this.accessToken}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.eN),y.LFG(ce.T))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2468:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(5894),u=O(476),ce=O(1841),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-data",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.endpointHealthUrl=`${this.urlPrefix}/ping`,this.eventCountUrl=`${this.urlPrefix}/event/count`,this.readingCountUrl=`${this.urlPrefix}/reading/count`,this.allEventsUrl=`${this.urlPrefix}/event/all`,this.allReadingsUrl=`${this.urlPrefix}/reading/all`,this.associatedEventsByDeviceNameUrl=`${this.urlPrefix}/event/device/name/`,this.associatedReadinsByDeviceNameUrl=`${this.urlPrefix}/reading/device/name/`}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}endpointHealth(){return this.http.get(`${this.endpointHealthUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}eventCount(){return this.http.get(`${this.eventCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}readingCount(){return this.http.get(`${this.readingCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}allEventsPagination(P,x){return this.http.get(`${this.allEventsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allReadingsPagination(P,x){return this.http.get(`${this.allReadingsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedReadingsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedEventsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedEventsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedReadinsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}}return J.\u0275fac=function(P){return new(P||J)(u.LFG(ce.eN),u.LFG(re.T))},J.\u0275prov=u.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},4889:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>re});var y=O(8567),u=O(476),ce=O(7822);let re=(()=>{class te{constructor(K){this.msgSvc=K}handleErrorForAPI(K){let P=Object.prototype.toString.call(K);if("[object Array]"===P){if(!K[0].statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K[0].statusCode}, message: ${K[0].message}`),!0}else if("[object Object]"===P&&!K.statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K.statusCode}, message: ${K.message}`),!0;return!1}handleError(K){return K.error instanceof ErrorEvent?this.msgSvc.errors(`'An error occurred:', ${K.error.message}`):"[object Object]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.error.statusCode} , message: ${K.error.message}`):"[object String]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.status} , message: ${K.error}`):this.msgSvc.errors(`code: ${K.status} , message: ${K.message}`),(0,y._)(`Backend returned code ${K.status}, body was: ${K.error.message}`)}}return te.\u0275fac=function(K){return new(K||te)(u.LFG(ce.e))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2437:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-metadata",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.devicesListUrl=`${this.urlPrefix}/device/all`,this.addOneDeviceUrl=`${this.urlPrefix}/device`,this.updateOneDeviceUrl=`${this.urlPrefix}/device`,this.deleteOneDeviceByIdUrl=`${this.urlPrefix}/device/Id`,this.deleteOneDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByIdUrl=`${this.urlPrefix}/device/id`,this.findDevicesByServiceIdUrl=`${this.urlPrefix}/device/service/id`,this.findDevicesByServiceNameUrl=`${this.urlPrefix}/device/service/name`,this.findDevicesByProfileIdUrl=`${this.urlPrefix}/device/profile/id`,this.findDevicesByProfileNameUrl=`${this.urlPrefix}/device/profile/name`,this.deviceServicesListUrl=`${this.urlPrefix}/deviceservice/all`,this.updateDeviceServiceUrl=`${this.urlPrefix}/deviceservice`,this.findDeviceServiceByIdUrl=`${this.urlPrefix}/deviceservice/id`,this.findDeviceServiceByNameUrl=`${this.urlPrefix}/deviceservice/name`,this.deviceProfilesListUrl=`${this.urlPrefix}/deviceprofile/all`,this.findProfilesByIdUrl=`${this.urlPrefix}/deviceprofile`,this.findProfilesByNameUrl=`${this.urlPrefix}/deviceprofile/name`,this.updateDeviceProfileUrl=`${this.urlPrefix}/deviceprofile`,this.uploadProfileYamlFileUrl=`${this.urlPrefix}/deviceprofile/uploadfile`,this.uploadProfileYamlContentUrl=`${this.urlPrefix}/deviceprofile/upload`,this.deviceProfileYamlUrl=`${this.urlPrefix}/deviceprofile/yaml`,this.deleteProfileByIdUrl=`${this.urlPrefix}/deviceprofile/id`,this.deleteProfileByNamedUrl=`${this.urlPrefix}/deviceprofile/name`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevices(){return this.http.get(`${this.devicesListUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevicesPagination(P,x){return this.http.get(`${this.devicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addDevice(P){let x=`${this.addOneDeviceUrl}`;return P.apiVersion="v3",this.http.post(x,JSON.stringify([{apiVersion:"v3",device:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneDeviceByName(P){return this.http.delete(`${this.deleteOneDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneDeviceById(P){return this.http.delete(`${this.deleteOneDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDevice(P){return this.http.patch(`${this.updateOneDeviceUrl}`,JSON.stringify([{apiVersion:"v3",device:P}]),{headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDeviceByName(P){return this.http.get(`${this.findDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDeviceById(P){return this.http.get(`${this.findDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceId(P){return this.http.get(`${this.findDevicesByServiceIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceName(P,x,U){return this.http.get(`${this.findDevicesByServiceNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findDevicesByProfileId(P){return this.http.get(`${this.findDevicesByProfileIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByProfileName(P,x,U){return this.http.get(`${this.findDevicesByProfileNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}allDeviceServices(){return this.http.get(`${this.deviceServicesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllDeviceServicesPagination(P,x){return this.http.get(`${this.deviceServicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateDeviceService(P){return this.http.patch(`${this.updateDeviceServiceUrl}`,JSON.stringify([{apiVersion:"v3",service:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDevcieServiceById(P){return this.http.get(`${this.findDeviceServiceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevcieServiceByName(P){return this.http.get(`${this.findDeviceServiceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allDeviceProfoles(){return this.http.get(`${this.deviceProfilesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDeviceProfolesPagination(P,x){return this.http.get(`${this.deviceProfilesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addProfileYamlByNameViaUIBackend(P){return this.http.request("POST","/api/v3/profile/yaml",{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileById(P){return this.http.get(`${this.findProfilesByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileByName(P){return this.http.get(`${this.findProfilesByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlByNameViaUIBackend(P){return this.http.request("GET","/api/v3/profile/yaml/name/"+P,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlFile(P){return this.http.request("POST",`${this.uploadProfileYamlFileUrl}`,{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDeviceProfile(P){return this.http.put(`${this.updateDeviceProfileUrl}`,P,this.httpPostOrPutJSONOptions).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateProfileYamlContentViaUIBackend(P){return this.http.put("/api/v3/profile/yaml",P,{headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlContent(P){return this.http.request("POST",`${this.uploadProfileYamlContentUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlById(P){return this.http.request("GET",`${this.deviceProfileYamlUrl}/${P}`,{responseType:"text"})}deleteProfileById(P){return this.http.delete(`${this.deleteProfileByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteProfileByName(P){return this.http.delete(`${this.deleteProfileByNamedUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return J.\u0275fac=function(P){return new(P||J)(ce.LFG(y.eN),ce.LFG(re.T))},J.\u0275prov=ce.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},9744:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-notifications",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.findNotificationByCategoryUrl=`${this.urlPrefix}/notification/category/`,this.findNotificationByLabelUrl=`${this.urlPrefix}/notification/label/`,this.findNotificationByStatusUrl=`${this.urlPrefix}/notification/status/`,this.findNotificationByStartEndUrl=`${this.urlPrefix}/notification/start/`,this.deleteNotificationByIdUrl=`${this.urlPrefix}/notification/id/`,this.deleteNotificationByAgeAndStatusUrl=`${this.urlPrefix}/notification/age/`,this.cleanupNotificationByAgeUrl=`${this.urlPrefix}/cleanup/age/`,this.cleanupNotificationAllUrl=`${this.urlPrefix}/cleanup`,this.findAllSubscriptionsPaginationUrl=`${this.urlPrefix}/subscription/all`,this.findAllSubscriptionsByCategoryPaginationUrl=`${this.urlPrefix}/subscription/category/`,this.findAllSubscriptionsByLabelPaginationUrl=`${this.urlPrefix}/subscription/label/`,this.findAllSubscriptionsByReceiverPaginationUrl=`${this.urlPrefix}/subscription/receiver/`,this.findOneSubscriptionsByNameUrl=`${this.urlPrefix}/subscription/name/`,this.addOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.updateOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.deleteOneSubscriptionByNameUrl=`${this.urlPrefix}/subscription/name/`,this.httpPostOrPutOrPatchJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findNotificationsByCategoryPagination(P,x,U){return this.http.get(`${this.findNotificationByCategoryUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByLabelPagination(P,x,U){return this.http.get(`${this.findNotificationByLabelUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStatusPagination(P,x,U){return this.http.get(`${this.findNotificationByStatusUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStartEndPagination(P,x,U,Y){return this.http.get(`${this.findNotificationByStartEndUrl}${U}/end/${Y}?offset=${P}&limit=${x}`).pipe((0,u.K)(Ee=>this.errorSvc.handleError(Ee)))}deleteNotificationByAgeAndStatus(P){return this.http.delete(`${this.deleteNotificationByAgeAndStatusUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteNotificationById(P){return this.http.delete(`${this.deleteNotificationByIdUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationByAge(P){return this.http.delete(`${this.cleanupNotificationByAgeUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationAll(){return this.http.delete(`${this.cleanupNotificationAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllSubscriptionPagination(P,x){return this.http.get(`${this.findAllSubscriptionsPaginationUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findOneSubscriptionByName(P){return this.http.get(`${this.findOneSubscriptionsByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}addOneSubscription(P){return this.http.post(`${this.addOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateOneSubscription(P){return this.http.patch(`${this.updateOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneSubscriptionByName(P){return this.http.delete(`${this.deleteOneSubscriptionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return J.\u0275fac=function(P){return new(P||J)(ce.LFG(y.eN),ce.LFG(re.T))},J.\u0275prov=ce.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},3692:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.version="/api/v3",this.pingUrl=`${this.version}/registrycenter/ping`,this.appSvcDeployConfigUrl=`${this.version}/registrycenter/deploy`,this.appSvcGetConfigUrl=`${this.version}/registrycenter/config`,this.appSvcAllUrl=`${this.version}/registrycenter/service/all`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}getAppSvcConfigBySvcKey(P){return this.http.get(`${this.appSvcGetConfigUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deployToConsul(P,x){return this.http.post(`${this.appSvcDeployConfigUrl}/${x}`,JSON.stringify(P),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllAppSvc(){return this.http.get(`${this.appSvcAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}}return J.\u0275fac=function(P){return new(P||J)(ce.LFG(y.eN),ce.LFG(re.T))},J.\u0275prov=ce.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},4791:(Ye,me,O)=>{"use strict";O.d(me,{n:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/rules-engine",this.version="",this.pingUrl=`${this.endpoint}${this.version}/ping`,this.streamUrl=`${this.endpoint}${this.version}/streams`,this.ruleUrl=`${this.endpoint}${this.version}/rules`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}addStream(P){return this.http.request("POST",`${this.streamUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneStreamById(P){return this.http.delete(`${this.streamUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateStream(P,x){return this.http.request("PUT",`${this.streamUrl}/${x}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findStreamByName(P){return this.http.get(`${this.streamUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allStreams(){return this.http.get(`${this.streamUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}addRule(P){return this.http.request("POST",`${this.ruleUrl}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneRuleById(P){return this.http.delete(`${this.ruleUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateRule(P){return this.http.request("PUT",`${this.ruleUrl}/${P.id}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findRuleById(P){return this.http.get(`${this.ruleUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allRules(){return this.http.get(`${this.ruleUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}getRuleStatusMetricsById(P){return this.http.get(`${this.ruleUrl}/${P}/status`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}getRuleTopoById(P){return this.http.get(`${this.ruleUrl}/${P}/topo`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}executeRuleCommand(P,x){return this.http.post(`${this.ruleUrl}/${P}/${x}`,null,{responseType:"text"}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}}return J.\u0275fac=function(P){return new(P||J)(ce.LFG(y.eN),ce.LFG(re.T))},J.\u0275prov=ce.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},8391:(Ye,me,O)=>{"use strict";O.d(me,{G:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class J{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-scheduler",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.intervalListUrl=`${this.urlPrefix}/interval/all`,this.addOneIntervalUrl=`${this.urlPrefix}/interval`,this.updateOneIntervalUrl=`${this.urlPrefix}/interval`,this.findOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.deleteOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.intervalActionListUrl=`${this.urlPrefix}/intervalaction/all`,this.addOneIntervalActionUrl=`${this.urlPrefix}/intervalaction`,this.updateOneIntervaActionlUrl=`${this.urlPrefix}/intervalaction`,this.findOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.deleteOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllIntervalsPagination(P,x){return this.http.get(`${this.intervalListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addInterval(P){return this.http.post(`${this.addOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateInterval(P){return this.http.patch(`${this.updateOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalByName(P){return this.http.get(`${this.findOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalByName(P){return this.http.delete(`${this.deleteOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findAllIntervalActionsPagination(P,x){return this.http.get(`${this.intervalActionListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addIntervalAction(P){return this.http.post(`${this.addOneIntervalActionUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateIntervalAction(P){return this.http.patch(`${this.updateOneIntervaActionlUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalActionByName(P){return this.http.get(`${this.findOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalActionByName(P){return this.http.delete(`${this.deleteOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return J.\u0275fac=function(P){return new(P||J)(ce.LFG(y.eN),ce.LFG(re.T))},J.\u0275prov=ce.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},9386:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>J});var y=O(1841),u=O(5894),ce=O(476),re=O(4889),te=O(3692);let J=(()=>{class K{constructor(x,U,Y){this.http=x,this.errorSvc=U,this.registrySvc=Y,this.endpoint="/sys-mgmt-agent",this.version2="/api/v3",this.urlPrefix=`${this.endpoint}${this.version2}`,this.pingUrl="/ping",this.allRegisteredSvcUrl="/api/v3/registrycenter/service/all",this.configUrl=`${this.urlPrefix}/system/config`,this.metricsUrl=`${this.urlPrefix}/system/metrics`,this.healthUrl=`${this.urlPrefix}/system/health`,this.operationUrl=`${this.urlPrefix}/system/operation`,this.httpPostOrPutOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getRegisteredServiceAll(){return this.registrySvc.getAllAppSvc()}getConfigBySvcName(x){return this.http.get(`${this.configUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getMetricsBySvcName(x){return this.http.get(`${this.metricsUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllSvcHealth(x){return this.http.get(`${this.healthUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}operate(x){return this.http.post(`${this.operationUrl}`,JSON.stringify(x),this.httpPostOrPutOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}startV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"start"}])}stopV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"stop"}])}restartV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"restart"}])}}return K.\u0275fac=function(x){return new(x||K)(ce.LFG(y.eN),ce.LFG(re.T),ce.LFG(te.r))},K.\u0275prov=ce.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},4705:(Ye,me,O)=>{"use strict";var y=O(8583),u=O(476);class ce extends y.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class re extends ce{static makeCurrent(){(0,y.HT)(new re)}onAndCancel(F,A,L){return F.addEventListener(A,L,!1),()=>{F.removeEventListener(A,L,!1)}}dispatchEvent(F,A){F.dispatchEvent(A)}remove(F){F.parentNode&&F.parentNode.removeChild(F)}createElement(F,A){return(A=A||this.getDefaultDocument()).createElement(F)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(F){return F.nodeType===Node.ELEMENT_NODE}isShadowRoot(F){return F instanceof DocumentFragment}getGlobalEventTarget(F,A){return"window"===A?window:"document"===A?F:"body"===A?F.body:null}getBaseHref(F){const A=(te=te||document.querySelector("base"),te?te.getAttribute("href"):null);return null==A?null:function(R){K=K||document.createElement("a"),K.setAttribute("href",R);const F=K.pathname;return"/"===F.charAt(0)?F:`/${F}`}(A)}resetBaseElement(){te=null}getUserAgent(){return window.navigator.userAgent}getCookie(F){return(0,y.Mx)(document.cookie,F)}}let K,te=null;const x=new u.OlP("TRANSITION_ID"),Y=[{provide:u.ip1,useFactory:function(R,F,A){return()=>{A.get(u.CZH).donePromise.then(()=>{const L=(0,y.q)(),ne=F.querySelectorAll(`style[ng-transition="${R}"]`);for(let Oe=0;Oe{const Oe=F.findTestabilityInTree(L,ne);if(null==Oe)throw new Error("Could not find testability for element.");return Oe},u.dqk.getAllAngularTestabilities=()=>F.getAllTestabilities(),u.dqk.getAllAngularRootElements=()=>F.getAllRootElements(),u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(L=>{const ne=u.dqk.getAllAngularTestabilities();let Oe=ne.length,je=!1;const Et=function(Rt){je=je||Rt,Oe--,0==Oe&&L(je)};ne.forEach(function(Rt){Rt.whenStable(Et)})})}findTestabilityInTree(F,A,L){if(null==A)return null;const ne=F.getTestability(A);return null!=ne?ne:L?(0,y.q)().isShadowRoot(A)?this.findTestabilityInTree(F,A.host,!0):this.findTestabilityInTree(F,A.parentElement,!0):null}}let Ee=(()=>{class R{build(){return new XMLHttpRequest}}return R.\u0275fac=function(A){return new(A||R)},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})();const X=new u.OlP("EventManagerPlugins");let ue=(()=>{class R{constructor(A,L){this._zone=L,this._eventNameToPlugin=new Map,A.forEach(ne=>ne.manager=this),this._plugins=A.slice().reverse()}addEventListener(A,L,ne){return this._findPluginFor(L).addEventListener(A,L,ne)}addGlobalEventListener(A,L,ne){return this._findPluginFor(L).addGlobalEventListener(A,L,ne)}getZone(){return this._zone}_findPluginFor(A){const L=this._eventNameToPlugin.get(A);if(L)return L;const ne=this._plugins;for(let Oe=0;Oe{class R{constructor(){this._stylesSet=new Set}addStyles(A){const L=new Set;A.forEach(ne=>{this._stylesSet.has(ne)||(this._stylesSet.add(ne),L.add(ne))}),this.onStylesAdded(L)}onStylesAdded(A){}getAllStyles(){return Array.from(this._stylesSet)}}return R.\u0275fac=function(A){return new(A||R)},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})(),ze=(()=>{class R extends ie{constructor(A){super(),this._doc=A,this._hostNodes=new Map,this._hostNodes.set(A.head,[])}_addStylesToHost(A,L,ne){A.forEach(Oe=>{const je=this._doc.createElement("style");je.textContent=Oe,ne.push(L.appendChild(je))})}addHost(A){const L=[];this._addStylesToHost(this._stylesSet,A,L),this._hostNodes.set(A,L)}removeHost(A){const L=this._hostNodes.get(A);L&&L.forEach(ee),this._hostNodes.delete(A)}onStylesAdded(A){this._hostNodes.forEach((L,ne)=>{this._addStylesToHost(A,ne,L)})}ngOnDestroy(){this._hostNodes.forEach(A=>A.forEach(ee))}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(y.K0))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})();function ee(R){(0,y.q)().remove(R)}const Te={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/"},be=/%COMP%/g;function Tt(R,F,A){for(let L=0;L{if("__ngUnwrap__"===F)return R;!1===R(F)&&(F.preventDefault(),F.returnValue=!1)}}let gn=(()=>{class R{constructor(A,L,ne){this.eventManager=A,this.sharedStylesHost=L,this.appId=ne,this.rendererByCompId=new Map,this.defaultRenderer=new It(A)}createRenderer(A,L){if(!A||!L)return this.defaultRenderer;switch(L.encapsulation){case u.ifc.Emulated:{let ne=this.rendererByCompId.get(L.id);return ne||(ne=new Nn(this.eventManager,this.sharedStylesHost,L,this.appId),this.rendererByCompId.set(L.id,ne)),ne.applyToHost(A),ne}case 1:case u.ifc.ShadowDom:return new xt(this.eventManager,this.sharedStylesHost,A,L);default:if(!this.rendererByCompId.has(L.id)){const ne=Tt(L.id,L.styles,[]);this.sharedStylesHost.addStyles(ne),this.rendererByCompId.set(L.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(ue),u.LFG(ze),u.LFG(u.AFp))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})();class It{constructor(F){this.eventManager=F,this.data=Object.create(null)}destroy(){}createElement(F,A){return A?document.createElementNS(Te[A]||A,F):document.createElement(F)}createComment(F){return document.createComment(F)}createText(F){return document.createTextNode(F)}appendChild(F,A){F.appendChild(A)}insertBefore(F,A,L){F&&F.insertBefore(A,L)}removeChild(F,A){F&&F.removeChild(A)}selectRootElement(F,A){let L="string"==typeof F?document.querySelector(F):F;if(!L)throw new Error(`The selector "${F}" did not match any elements`);return A||(L.textContent=""),L}parentNode(F){return F.parentNode}nextSibling(F){return F.nextSibling}setAttribute(F,A,L,ne){if(ne){A=ne+":"+A;const Oe=Te[ne];Oe?F.setAttributeNS(Oe,A,L):F.setAttribute(A,L)}else F.setAttribute(A,L)}removeAttribute(F,A,L){if(L){const ne=Te[L];ne?F.removeAttributeNS(ne,A):F.removeAttribute(`${L}:${A}`)}else F.removeAttribute(A)}addClass(F,A){F.classList.add(A)}removeClass(F,A){F.classList.remove(A)}setStyle(F,A,L,ne){ne&(u.JOm.DashCase|u.JOm.Important)?F.style.setProperty(A,L,ne&u.JOm.Important?"important":""):F.style[A]=L}removeStyle(F,A,L){L&u.JOm.DashCase?F.style.removeProperty(A):F.style[A]=""}setProperty(F,A,L){F[A]=L}setValue(F,A){F.nodeValue=A}listen(F,A,L){return"string"==typeof F?this.eventManager.addGlobalEventListener(F,A,tn(L)):this.eventManager.addEventListener(F,A,tn(L))}}class Nn extends It{constructor(F,A,L,ne){super(F),this.component=L;const Oe=Tt(ne+"-"+L.id,L.styles,[]);A.addStyles(Oe),this.contentAttr="_ngcontent-%COMP%".replace(be,ne+"-"+L.id),this.hostAttr="_nghost-%COMP%".replace(be,ne+"-"+L.id)}applyToHost(F){super.setAttribute(F,this.hostAttr,"")}createElement(F,A){const L=super.createElement(F,A);return super.setAttribute(L,this.contentAttr,""),L}}class xt extends It{constructor(F,A,L,ne){super(F),this.sharedStylesHost=A,this.hostEl=L,this.shadowRoot=L.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Oe=Tt(ne.id,ne.styles,[]);for(let je=0;je{class R extends Ae{constructor(A){super(A)}supports(A){return!0}addEventListener(A,L,ne){return A.addEventListener(L,ne,!1),()=>this.removeEventListener(A,L,ne)}removeEventListener(A,L,ne){return A.removeEventListener(L,ne)}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(y.K0))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})();const Ne=["alt","control","meta","shift"],xe={"\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"},Re={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Je={alt:R=>R.altKey,control:R=>R.ctrlKey,meta:R=>R.metaKey,shift:R=>R.shiftKey};let ot=(()=>{class R extends Ae{constructor(A){super(A)}supports(A){return null!=R.parseEventName(A)}addEventListener(A,L,ne){const Oe=R.parseEventName(L),je=R.eventCallback(Oe.fullKey,ne,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,y.q)().onAndCancel(A,Oe.domEventName,je))}static parseEventName(A){const L=A.toLowerCase().split("."),ne=L.shift();if(0===L.length||"keydown"!==ne&&"keyup"!==ne)return null;const Oe=R._normalizeKey(L.pop());let je="";if(Ne.forEach(Rt=>{const $t=L.indexOf(Rt);$t>-1&&(L.splice($t,1),je+=Rt+".")}),je+=Oe,0!=L.length||0===Oe.length)return null;const Et={};return Et.domEventName=ne,Et.fullKey=je,Et}static getEventFullKey(A){let L="",ne=function(R){let F=R.key;if(null==F){if(F=R.keyIdentifier,null==F)return"Unidentified";F.startsWith("U+")&&(F=String.fromCharCode(parseInt(F.substring(2),16)),3===R.location&&Re.hasOwnProperty(F)&&(F=Re[F]))}return xe[F]||F}(A);return ne=ne.toLowerCase()," "===ne?ne="space":"."===ne&&(ne="dot"),Ne.forEach(Oe=>{Oe!=ne&&Je[Oe](A)&&(L+=Oe+".")}),L+=ne,L}static eventCallback(A,L,ne){return Oe=>{R.getEventFullKey(Oe)===A&&ne.runGuarded(()=>L(Oe))}}static _normalizeKey(A){switch(A){case"esc":return"escape";default:return A}}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(y.K0))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac}),R})();const br=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:y.bD},{provide:u.g9A,useValue:function(){re.makeCurrent(),ae.init()},multi:!0},{provide:y.K0,useFactory:function(){return(0,u.RDi)(document),document},deps:[]}]),Gr=[[],{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function(){return new u.qLn},deps:[]},{provide:X,useClass:Hr,multi:!0,deps:[y.K0,u.R0b,u.Lbi]},{provide:X,useClass:ot,multi:!0,deps:[y.K0]},[],{provide:gn,useClass:gn,deps:[ue,ze,u.AFp]},{provide:u.FYo,useExisting:gn},{provide:ie,useExisting:ze},{provide:ze,useClass:ze,deps:[y.K0]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b]},{provide:ue,useClass:ue,deps:[X,u.R0b]},{provide:y.JF,useClass:Ee,deps:[]},[]];let gi=(()=>{class R{constructor(A){if(A)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(A){return{ngModule:R,providers:[{provide:u.AFp,useValue:A.appId},{provide:x,useExisting:u.AFp},Y]}}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(R,12))},R.\u0275mod=u.oAB({type:R}),R.\u0275inj=u.cJS({providers:Gr,imports:[y.ez,u.hGG]}),R})();"undefined"!=typeof window&&window;var tt=O(1841),ht=O(3092),ut=O(9502),Qt=O(8253),Bt=O(5894),kn=O(8567),Ot=O(4889);let wr=(()=>{class R{constructor(A,L){this.http=A,this.errorSvc=L,this.endpoint="",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.secureModeUrl=`${this.urlPrefix}/auth/securemode`}getSecureMode(){return this.http.get(`${this.secureModeUrl}`,{responseType:"text"}).pipe((0,Bt.K)(L=>this.errorSvc.handleError(L)))}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(tt.eN),u.LFG(Ot.T))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();var Vn=O(7556);let Ze=(()=>{class R{constructor(A,L,ne,Oe,je){this.initSvc=A,this.errorSvc=L,this.authSvc=ne,this.router=Oe,this.route=je}ngOnInit(){this.initializor()}initializor(){this.environmentCheck()}environmentCheck(){this.progressMsg="environment checking",this.initSvc.getSecureMode().subscribe(A=>{"secure"===A?(this.authSvc.isSecureMode=!0,this.tokenValidate()):(this.authSvc.isSecureMode=!1,this.navigateToHome())})}tokenValidate(){this.progressMsg="access token validating",this.authSvc.tokenValidate().pipe((0,Bt.K)(A=>(this.authSvc.isLoggedIn=!1,this.router.navigate(["/login"],{relativeTo:this.route}),(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.navigateToHome()})}navigateToHome(){this.router.navigate(["/dashboard"],{relativeTo:this.route})}}return R.\u0275fac=function(A){return new(A||R)(u.Y36(wr),u.Y36(Ot.T),u.Y36(Vn.e),u.Y36(ut.F0),u.Y36(ut.gz))},R.\u0275cmp=u.Xpm({type:R,selectors:[["app-initializer"]],decls:16,vars:1,consts:[[1,"init","text-center","bg-dark"],[1,"init-progress"],["role","status",1,"spinner-grow","text-success"],[1,"sr-only"],["role","status",1,"spinner-grow","text-danger"],["role","status",1,"spinner-grow","text-warning"],["role","status",1,"spinner-grow","text-info"],[1,"text-light"]],template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span",3),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"span",3),u._uU(7,"Loading..."),u.qZA(),u.qZA(),u.TgZ(8,"div",5),u.TgZ(9,"span",3),u._uU(10,"Loading..."),u.qZA(),u.qZA(),u.TgZ(11,"div",6),u.TgZ(12,"span",3),u._uU(13,"Loading..."),u.qZA(),u.qZA(),u.TgZ(14,"p",7),u._uU(15),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(15),u.hij("",L.progressMsg,"..."))},styles:[".init[_ngcontent-%COMP%]{position:fixed;top:0;bottom:-100px;left:0;right:0;z-index:999}.init-progress[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:45%}"]}),R})();var fr=O(1964),Zn=O(2468),vn=O(2437),hn=O(9744),Ht=O(8391),Un=O(4791),Bn=O(9386),Gt=O(3692);function Mt(R,F){if(1&R&&(u.TgZ(0,"p",6),u._UZ(1,"span",7),u._uU(2),u.qZA()),2&R){const A=u.oxw();u.xp6(2),u.hij(" The ",A.svcName," service is inaccessible!!! please try again later! ")}}const Ar=[{path:"dashboard",canLoad:[Qt.a],loadChildren:()=>O.e(849).then(O.bind(O,8849)).then(R=>R.DashboardModule)},{path:"metadata",canLoad:[Qt.a],loadChildren:()=>O.e(10).then(O.bind(O,4010)).then(R=>R.MetadataModule)},{path:"core-data",canLoad:[Qt.a],loadChildren:()=>O.e(489).then(O.bind(O,3489)).then(R=>R.CoreDataModule)},{path:"notifications",canLoad:[Qt.a],loadChildren:()=>Promise.all([O.e(827),O.e(634)]).then(O.bind(O,2634)).then(R=>R.NotificationsModule)},{path:"scheduler",canLoad:[Qt.a],loadChildren:()=>Promise.all([O.e(827),O.e(707),O.e(536)]).then(O.bind(O,5886)).then(R=>R.SchedulerModule)},{path:"rule-engine",canLoad:[Qt.a],loadChildren:()=>Promise.all([O.e(10),O.e(707),O.e(753),O.e(155)]).then(O.bind(O,4155)).then(R=>R.RuleEngineModule)},{path:"app-service",canLoad:[Qt.a],loadChildren:()=>Promise.all([O.e(10),O.e(753),O.e(894)]).then(O.bind(O,894)).then(R=>R.AppServiceModule)},{path:"initializer",component:Ze},{path:"svc-unavailable",component:(()=>{class R{constructor(A,L,ne,Oe,je,Et,Rt,$t,Ir){this.router=A,this.route=L,this.coredataSvc=ne,this.metadataSvc=Oe,this.notiSvc=je,this.schedulerSvc=Et,this.ruleSvc=Rt,this.systemSvc=$t,this.registrySvc=Ir,this.refresgMsg=!1,this.refreshBtnDisable=!1}ngOnInit(){this.route.queryParams.subscribe(A=>{this.svcName=A.svcName,this.routerPath=A.routerPath})}refresh(){this.refreshBtnDisable=!0,this.ping().pipe((0,Bt.K)(A=>(this.refresgMsg=!0,window.setTimeout(()=>{this.refresgMsg=!1,this.refreshBtnDisable=!1},3e3),(0,kn._)(()=>"Something bad happened; please try again later.")))).subscribe(()=>this.router.navigate([`${this.routerPath}`]))}ping(){switch(this.svcName){case"core data":return this.coredataSvc.ping();case"metadata":return this.metadataSvc.ping();case"scheduler":return this.schedulerSvc.ping();case"notification":return this.notiSvc.ping();case"rule engine":return this.ruleSvc.ping();case"system agent":return this.systemSvc.ping();case"registry center":return this.registrySvc.ping();default:return(0,fr.of)()}}}return R.\u0275fac=function(A){return new(A||R)(u.Y36(ut.F0),u.Y36(ut.gz),u.Y36(Zn.D),u.Y36(vn.D),u.Y36(hn.T),u.Y36(Ht.G),u.Y36(Un.n),u.Y36(Bn.J),u.Y36(Gt.r))},R.\u0275cmp=u.Xpm({type:R,selectors:[["app-service-unavailable"]],decls:11,vars:5,consts:[["class","alert alert-danger","role","alert",4,"ngIf"],[1,"jumbotron"],[1,"display-5"],[1,"lead"],[1,"my-4"],["role","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"]],template:function(A,L){1&A&&(u.YNc(0,Mt,3,1,"p",0),u.TgZ(1,"div",1),u.TgZ(2,"h2",2),u._uU(3),u.qZA(),u.TgZ(4,"p",3),u._uU(5),u.qZA(),u._UZ(6,"hr",4),u.TgZ(7,"p"),u._uU(8,"EdgeXFoundry uses a microservices architecture, each service is running independently, please make sure that the current service is already running, if you have manually started the service, click the Refresh button."),u.qZA(),u.TgZ(9,"button",5),u.NdJ("click",function(){return L.refresh()}),u._uU(10,"Refresh"),u.qZA(),u.qZA()),2&A&&(u.Q6J("ngIf",L.refresgMsg),u.xp6(3),u.hij("Oops!!! ",L.svcName," service is unavailable!"),u.xp6(2),u.AsE("This could be a network reason, or it could be that the ",L.svcName," microservice is not running, make sure there is no network problem or that the ",L.svcName," service is already running!"),u.xp6(4),u.Q6J("disabled",L.refreshBtnDisable))},directives:[y.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),R})()}];let ir=(()=>{class R{}return R.\u0275fac=function(A){return new(A||R)},R.\u0275mod=u.oAB({type:R}),R.\u0275inj=u.cJS({imports:[[ut.Bz.forRoot(Ar,{useHash:!0})],ut.Bz]}),R})();var qn=O(4689),hr=O(7822);function Wt(R,F){if(1&R){const A=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",3),u.TgZ(2,"span",4),u.NdJ("click",function(){const Oe=u.CHM(A).$implicit;return u.oxw(2).close(Oe)}),u.TgZ(3,"span",5),u._uU(4,"\xd7"),u.qZA(),u.qZA(),u.TgZ(5,"div"),u._uU(6),u.qZA(),u.qZA(),u.qZA()}if(2&R){const A=F.$implicit;u.xp6(1),u.Tol(A.class),u.xp6(5),u.hij(" ",A.content," ")}}function $n(R,F){if(1&R&&(u.TgZ(0,"div",1),u.YNc(1,Wt,7,3,"div",2),u.qZA()),2&R){const A=u.oxw();u.xp6(1),u.Q6J("ngForOf",A.messageService.messages)}}let Zt=(()=>{class R{constructor(A){this.messageService=A}ngOnInit(){}close(A){this.messageService.messages.splice(this.messageService.messages.indexOf(A),1)}ngOnDestroy(){this.timer&&clearInterval(this.timer)}}return R.\u0275fac=function(A){return new(A||R)(u.Y36(hr.e))},R.\u0275cmp=u.Xpm({type:R,selectors:[["app-message"]],decls:1,vars:1,consts:[["class","position-fixed overflow-hidden text-break","style","top: 10px; right: 0;min-width: 300px; max-width: 300px;z-index: 999;",4,"ngIf"],[1,"position-fixed","overflow-hidden","text-break",2,"top","10px","right","0","min-width","300px","max-width","300px","z-index","999"],[4,"ngFor","ngForOf"],["role","alert"],["type","button","aria-label","Close",1,"btn","btn-lg","close",3,"click"],["aria-hidden","true"]],template:function(A,L){1&A&&u.YNc(0,$n,2,1,"div",0),2&A&&u.Q6J("ngIf",L.messageService.messages.length)},directives:[y.O5,y.sg],styles:[""]}),R})();function Sr(R,F){if(1&R&&(u.TgZ(0,"a",49),u._uU(1),u.qZA()),2&R){const A=u.oxw().$implicit,L=u.oxw();u.s9C("routerLink",L.navChainMap.get(A)),u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function sn(R,F){if(1&R&&(u.TgZ(0,"span",50),u._uU(1),u.qZA()),2&R){const A=u.oxw().$implicit,L=u.oxw();u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function Dn(R,F){1&R&&(u.TgZ(0,"span"),u._uU(1,">"),u.qZA())}function pr(R,F){if(1&R&&(u.TgZ(0,"h6",35),u.YNc(1,Sr,2,2,"a",47),u.YNc(2,sn,2,1,"span",48),u.YNc(3,Dn,2,0,"span",46),u.qZA()),2&R){const A=F.index,L=u.oxw();u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1)}}function Mr(R,F){1&R&&(u.TgZ(0,"div",51),u.TgZ(1,"div"),u._UZ(2,"span",52),u.TgZ(3,"span"),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.qZA())}function jn(R,F){1&R&&u._UZ(0,"router-outlet")}const Pt=function(){return{exact:!1}};let Tr=(()=>{class R{constructor(A,L){this.activatedRoute=A,this.router=L,this.title="EdgeX Console",this.isSelected=!1,this.toggleClass="",this.shrink=!1,this.shrinkSidebarOnly=!1,this.shrinkCenterNo=!1,this.navChainMap=new Map,this.navChainCache=[],this.navChain=[],this.currentNav="",this.loading=!1,this.navRecognized=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.R9)),this.navStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.OD)),this.navEnd=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.m2)),this.childStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.Eb))}ngOnInit(){this.router.events.subscribe(A=>{A instanceof ut.OD&&(this.loading=!0),(A instanceof ut.m2||A instanceof ut.gk||A instanceof ut.Q3)&&(this.loading=!1)}),this.navEnd.subscribe(A=>{this.navChainCache=[],this.navChainMap=new Map,this.currentNav=A.urlAfterRedirects.split("?")[0].split("/").pop(),this.navChain=A.urlAfterRedirects.split("?")[0].split("/"),this.navChain.shift();let L=this;this.navChain.map(Oe=>Oe).reverse().forEach(function(Oe,je){let $t=L.navChain.map(Ir=>Ir).reverse().slice(je).reverse().join("/");L.navChainCache.push("/"+$t),L.navChainMap.set(Oe,"/"+$t)}),this.navChainCache.reverse()}),$(window).resize(()=>{this.shrinkCenterNo=!1,this.shrink=document.body.clientWidth<1340}),this.router.navigate(["/initializer"],{relativeTo:this.activatedRoute})}pathFormat(A){let L=A.split("-");return L.forEach((ne,Oe)=>{L[Oe]=ne.charAt(0).toUpperCase()+ne.substring(1)}),L.join(" ")}sideBarToggle(){this.shrink?(document.body.clientWidth<1340&&(this.shrinkCenterNo=!0),this.shrink=!1):(document.body.clientWidth<1340&&(this.shrinkCenterNo=!1),this.shrink=!0)}}return R.\u0275fac=function(A){return new(A||R)(u.Y36(ut.gz),u.Y36(ut.F0))},R.\u0275cmp=u.Xpm({type:R,selectors:[["app-root"]],decls:60,vars:44,consts:function(){let F,A,L,ne,Oe,je,Et,Rt;return F="\u4EEA\u8868\u76D8",A="\u8BBE\u5907\u7BA1\u7406",L="\u6570\u636E\u4E2D\u5FC3",ne="\u4EFB\u52A1\u8C03\u5EA6",Oe="\u901A\u77E5\u670D\u52A1",je="\u89C4\u5219\u5F15\u64CE",Et="\u5E94\u7528\u670D\u52A1",Rt="\u4E2D\u6587\u7B80\u4F53",[[1,"container-fluid"],[1,"row"],[1,"px-0"],[1,"sidebar-center","font-weight-bold","text-white","vh-100"],[1,"sidebar-header","p-2"],["src","assets/img/bg_x.png","width","35","height","34","alt","","loading","lazy",1,"mt-2"],[1,"float-right","mt-3","mr-2"],["role","button",1,"fa","fa-navicon","fa-lg","text-light",3,"click"],[1,"overflow-hidden"],[1,"nav","flex-column"],["data-testid","menu-item-dashboard","routerLink","/dashboard","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-tachometer","fa-fw","mr-5"],["data-testid","menu-item-dashboard-text"],F,["routerLink","/metadata","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cubes","fa-fw","mr-5"],A,["routerLink","/core-data","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-database","fa-fw","mr-5"],L,["routerLink","/scheduler","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-clock-o","fa-fw","mr-5"],ne,["routerLink","/notifications","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-envelope","fa-fw","mr-5"],Oe,["routerLink","/rule-engine","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-sliders","fa-fw","mr-5"],je,["routerLink","/app-service","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cloud-upload","fa-fw","mr-5"],Et,[1,"col-12"],[1,"bg-light","center-header","px-3","pt-2","font-weight-bold"],[1,"nav-router","mw-100","align-middle"],[1,"d-inline"],[1,"dropdown","float-right"],["id","dropdownLangLink","type","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","btn-sm","dropdown-toggle"],Rt,["aria-labelledby","dropdownLangLink",1,"dropdown-menu","dropdown-menu-sm","dropdown-menu-right"],["href","/",1,"dropdown-item"],["href","/zh",1,"dropdown-item"],[1,"mw-100","align-middle","mt-1"],["class","d-inline",4,"ngFor","ngForOf"],[1,"center-center","p-3"],["class","text-center","style","margin-top: 20%;",4,"ngIf"],[4,"ngIf"],["class","text-decoration-none d-inline",3,"routerLink",4,"ngIf"],["class","text-decoration-none d-inline",4,"ngIf"],[1,"text-decoration-none","d-inline",3,"routerLink"],[1,"text-decoration-none","d-inline"],[1,"text-center",2,"margin-top","20%"],["role","status","aria-hidden","true",1,"spinner-border","mr-2"]]},template:function(A,L){1&A&&(u._UZ(0,"app-message"),u.TgZ(1,"div",0),u.TgZ(2,"div",1),u.TgZ(3,"div",2),u.TgZ(4,"div",3),u.TgZ(5,"div",4),u._UZ(6,"img",5),u.TgZ(7,"p",6),u.TgZ(8,"i",7),u.NdJ("click",function(){return L.sideBarToggle()}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(9,"div",8),u.TgZ(10,"nav",9),u.TgZ(11,"a",10),u._UZ(12,"i",11),u.TgZ(13,"span",12),u.SDv(14,13),u.qZA(),u.qZA(),u.TgZ(15,"a",14),u._UZ(16,"i",15),u.TgZ(17,"span"),u.SDv(18,16),u.qZA(),u.qZA(),u.TgZ(19,"a",17),u._UZ(20,"i",18),u.TgZ(21,"span"),u.SDv(22,19),u.qZA(),u.qZA(),u.TgZ(23,"a",20),u._UZ(24,"i",21),u.TgZ(25,"span"),u.SDv(26,22),u.qZA(),u.qZA(),u.TgZ(27,"a",23),u._UZ(28,"i",24),u.TgZ(29,"span"),u.SDv(30,25),u.qZA(),u.qZA(),u.TgZ(31,"a",26),u._UZ(32,"i",27),u.TgZ(33,"span"),u.SDv(34,28),u.qZA(),u.qZA(),u.TgZ(35,"a",29),u._UZ(36,"i",30),u.TgZ(37,"span"),u.SDv(38,31),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(39,"div",32),u.TgZ(40,"div"),u.TgZ(41,"nav",33),u.TgZ(42,"div",34),u.TgZ(43,"h4",35),u._uU(44),u.qZA(),u.TgZ(45,"div",36),u.TgZ(46,"button",37),u.TgZ(47,"span"),u.SDv(48,38),u.qZA(),u.qZA(),u.TgZ(49,"div",39),u.TgZ(50,"a",40),u._uU(51,"English"),u.qZA(),u.TgZ(52,"a",41),u._uU(53,"\u4e2d\u6587\u7b80\u4f53"),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(54,"div",42),u.TgZ(55,"div",35),u.YNc(56,pr,4,3,"h6",43),u.qZA(),u.qZA(),u.qZA(),u.TgZ(57,"div",44),u.YNc(58,Mr,5,0,"div",45),u.YNc(59,jn,1,0,"router-outlet",46),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(3),u.ekj("sidebar-shrink",L.shrink)("sidebar",!L.shrink),u.xp6(3),u.ekj("d-none",L.shrink),u.xp6(5),u.Q6J("routerLinkActiveOptions",u.DdM(37,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(38,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(39,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(40,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(41,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(42,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(43,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(3),u.ekj("center-shrink",L.shrink)("center-no-shrink",L.shrinkCenterNo)("center",!L.shrink),u.xp6(4),u.Oqu(L.pathFormat(L.currentNav)),u.xp6(12),u.Q6J("ngForOf",L.navChain),u.xp6(2),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[Zt,ut.yS,ut.Od,y.sg,y.O5,ut.lC],styles:[".sidebar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:250px;z-index:10}.sidebar-shrink[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:45px;z-index:10}.sidebar-center[_ngcontent-%COMP%]{background-color:#2d2848e6!important}.sidebar-header[_ngcontent-%COMP%]{background-color:#2d2848!important;height:65px}.active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}.sidebar-center[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#922c48;background-color:#922c4866!important}.center[_ngcontent-%COMP%]{position:absolute;left:250px;right:0}.center-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-no-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-header[_ngcontent-%COMP%]{height:65px}"]}),R})();function Zr(R,F){1&R&&(u.TgZ(0,"button",18),u._UZ(1,"span",19),u.TgZ(2,"span"),u._uU(3,"Loading..."),u.qZA(),u.qZA())}function mi(R,F){if(1&R){const A=u.EpF();u.TgZ(0,"button",20),u.NdJ("click",function(){return u.CHM(A),u.oxw().login()}),u.TgZ(1,"span"),u.SDv(2,21),u.qZA(),u.qZA()}}const yi=[{path:"login",component:(()=>{class R{constructor(A,L,ne,Oe){this.authSvc=A,this.errorSvc=L,this.router=ne,this.route=Oe,this.loading=!1,this.accessToken=null,this.tokenIsValid=!0}ngOnInit(){}login(){this.loading=!0,this.authSvc.setAccessToken(this.accessToken),this.authSvc.login().pipe((0,Bt.K)(A=>(this.loading=!1,this.authSvc.isLoggedIn=!1,this.accessToken=null,this.tokenIsValid=!1,(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.loading=!1,this.tokenIsValid=!0,this.router.navigate(["/dashboard"],{relativeTo:this.route})})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onInput(){this.tokenIsValid=!0}}return R.\u0275fac=function(A){return new(A||R)(u.Y36(Vn.e),u.Y36(Ot.T),u.Y36(ut.F0),u.Y36(ut.gz))},R.\u0275cmp=u.Xpm({type:R,selectors:[["app-login"]],decls:22,vars:5,consts:function(){let F,A,L,ne,Oe;return F="\u4F7F\u7528token\u4EE4\u724C\u767B\u5F55EdgeXFoundry",A="Token \u4EE4\u724C",L="\u65E0\u6548\u7684token\u4EE4\u724C\uFF01",ne="\u5982\u4F55\u83B7\u53D6access token\uFF1F",Oe="\u767B\u5F55",[[1,"login","bg-dark"],[1,"card","login-form"],[1,"card-header"],F,[1,"card-body","bg-light","shadow"],[1,""],[1,"form-group"],["for","accessToken",1,"col-form-label"],[1,"mr-1"],A,["type","password","id","accessToken","name","accessToken",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],L,["class","btn btn-success btn-sm w-100","type","button","disabled","",4,"ngIf"],["type","button","class","btn btn-success btn-sm w-100",3,"click",4,"ngIf"],[1,"mt-2"],["href","https://docs.edgexfoundry.org/3.0/security/Ch-Authenticating/#how-to-make-authenticated-edgex-calls","target","_blank",1,"text-decoration-none"],ne,["type","button","disabled","",1,"btn","btn-success","btn-sm","w-100"],["role","status","aria-hidden","true",1,"spinner-grow","spinner-grow-sm"],["type","button",1,"btn","btn-success","btn-sm","w-100",3,"click"],Oe]},template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span"),u.SDv(4,3),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"form",5),u.TgZ(7,"div",6),u.TgZ(8,"label",7),u.TgZ(9,"span",8),u.SDv(10,9),u.qZA(),u.qZA(),u.TgZ(11,"div",5),u.TgZ(12,"input",10),u.NdJ("ngModelChange",function(Oe){return L.accessToken=Oe})("ngModelChange",function(){return L.onInput()}),u.qZA(),u.TgZ(13,"div",11),u.TgZ(14,"small"),u.SDv(15,12),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.YNc(16,Zr,4,0,"button",13),u.YNc(17,mi,3,0,"button",14),u.TgZ(18,"div",15),u.TgZ(19,"a",16),u.TgZ(20,"small"),u.SDv(21,17),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(12),u.ekj("is-invalid",!L.tokenIsValid),u.Q6J("ngModel",L.accessToken),u.xp6(4),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[ht._Y,ht.JL,ht.F,ht.Fj,ht.JJ,ht.On,y.O5],styles:[".login[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;left:0;right:0;z-index:999}.login-form[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:40%;width:350px;margin:auto}"]}),R})()}];let qr=(()=>{class R{}return R.\u0275fac=function(A){return new(A||R)},R.\u0275mod=u.oAB({type:R}),R.\u0275inj=u.cJS({imports:[[ut.Bz.forChild(yi)],ut.Bz]}),R})(),xi=(()=>{class R{}return R.\u0275fac=function(A){return new(A||R)},R.\u0275mod=u.oAB({type:R}),R.\u0275inj=u.cJS({imports:[[y.ez,ht.u5,qr]]}),R})();const vi=[{provide:tt.TP,useClass:(()=>{class R{constructor(A){this.authSvc=A}intercept(A,L){let ne=A.headers.set("X-Requested-With","XMLHttpRequest");if(this.authSvc.isSecureMode){let je=`Bearer ${this.authSvc.getAccessToken()}`;ne=A.headers.set("X-Requested-With","XMLHttpRequest").set("Authorization",je)}const Oe=A.clone({headers:ne});return L.handle(Oe)}}return R.\u0275fac=function(A){return new(A||R)(u.LFG(Vn.e))},R.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),multi:!0}];let Qr=(()=>{class R{}return R.\u0275fac=function(A){return new(A||R)},R.\u0275mod=u.oAB({type:R,bootstrap:[Tr]}),R.\u0275inj=u.cJS({providers:[vi],imports:[[gi,y.ez,ht.u5,tt.JF,ir,xi]]}),R})();(0,u.G48)(),br().bootstrapModule(Qr).catch(R=>console.error(R))},9162:(Ye,me,O)=>{"use strict";O.d(me,{ZT:()=>u,mG:()=>P,Jh:()=>x,XA:()=>ae,CR:()=>Ee,ev:()=>_e,qq:()=>He,FC:()=>Me,KL:()=>We});var y=function(le,H){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,ue){X.__proto__=ue}||function(X,ue){for(var Ae in ue)Object.prototype.hasOwnProperty.call(ue,Ae)&&(X[Ae]=ue[Ae])})(le,H)};function u(le,H){if("function"!=typeof H&&null!==H)throw new TypeError("Class extends value "+String(H)+" is not a constructor or null");function X(){this.constructor=le}y(le,H),le.prototype=null===H?Object.create(H):(X.prototype=H.prototype,new X)}function P(le,H,X,ue){return new(X||(X=Promise))(function(ie,ze){function ee(Ve){try{be(ue.next(Ve))}catch(Xe){ze(Xe)}}function Te(Ve){try{be(ue.throw(Ve))}catch(Xe){ze(Xe)}}function be(Ve){Ve.done?ie(Ve.value):function(ie){return ie instanceof X?ie:new X(function(ze){ze(ie)})}(Ve.value).then(ee,Te)}be((ue=ue.apply(le,H||[])).next())})}function x(le,H){var ue,Ae,ie,ze,X={label:0,sent:function(){if(1&ie[0])throw ie[1];return ie[1]},trys:[],ops:[]};return ze={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(ze[Symbol.iterator]=function(){return this}),ze;function ee(be){return function(Ve){return function(be){if(ue)throw new TypeError("Generator is already executing.");for(;X;)try{if(ue=1,Ae&&(ie=2&be[0]?Ae.return:be[0]?Ae.throw||((ie=Ae.return)&&ie.call(Ae),0):Ae.next)&&!(ie=ie.call(Ae,be[1])).done)return ie;switch(Ae=0,ie&&(be=[2&be[0],ie.value]),be[0]){case 0:case 1:ie=be;break;case 4:return X.label++,{value:be[1],done:!1};case 5:X.label++,Ae=be[1],be=[0];continue;case 7:be=X.ops.pop(),X.trys.pop();continue;default:if(!(ie=(ie=X.trys).length>0&&ie[ie.length-1])&&(6===be[0]||2===be[0])){X=0;continue}if(3===be[0]&&(!ie||be[1]>ie[0]&&be[1]=le.length&&(le=void 0),{value:le&&le[ue++],done:!le}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ee(le,H){var X="function"==typeof Symbol&&le[Symbol.iterator];if(!X)return le;var Ae,ze,ue=X.call(le),ie=[];try{for(;(void 0===H||H-- >0)&&!(Ae=ue.next()).done;)ie.push(Ae.value)}catch(ee){ze={error:ee}}finally{try{Ae&&!Ae.done&&(X=ue.return)&&X.call(ue)}finally{if(ze)throw ze.error}}return ie}function _e(le,H){for(var X=0,ue=H.length,Ae=le.length;X1||ee(rt,vt)})})}function ee(rt,vt){try{!function(rt){rt.value instanceof He?Promise.resolve(rt.value.v).then(be,Ve):Xe(ie[0][2],rt)}(ue[rt](vt))}catch(jt){Xe(ie[0][3],jt)}}function be(rt){ee("next",rt)}function Ve(rt){ee("throw",rt)}function Xe(rt,vt){rt(vt),ie.shift(),ie.length&&ee(ie[0][0],ie[0][1])}}function We(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,H=le[Symbol.asyncIterator];return H?H.call(le):(le=ae(le),X={},ue("next"),ue("throw"),ue("return"),X[Symbol.asyncIterator]=function(){return this},X);function ue(ie){X[ie]=le[ie]&&function(ze){return new Promise(function(ee,Te){!function(ie,ze,ee,Te){Promise.resolve(Te).then(function(be){ie({value:be,done:ee})},ze)}(ee,Te,(ze=le[ie](ze)).done,ze.value)})}}}}},Ye=>{Ye(Ye.s=4705)}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/main.adfd2144e5b69830edb7.js b/cmd/edgex-ui-server/static/web/zh/main.adfd2144e5b69830edb7.js deleted file mode 100644 index 4a648a4e..00000000 --- a/cmd/edgex-ui-server/static/web/zh/main.adfd2144e5b69830edb7.js +++ /dev/null @@ -1,3 +0,0 @@ -var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"zh"}); -"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(n){return 5}global.ng.common.locales["zh"]=["zh",[["\u4E0A\u5348","\u4E0B\u5348"],u,u],u,[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"]],u,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]],u,[["\u516C\u5143\u524D","\u516C\u5143"],u,u],0,[6,0],["y/M/d","y\u5E74M\u6708d\u65E5",u,"y\u5E74M\u6708d\u65E5EEEE"],["ah:mm","ah:mm:ss","z ah:mm:ss","zzzz ah:mm:ss"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"CNY","\xA5","\u4EBA\u6C11\u5E01",{"AUD":["AU$","$"],"CNY":["\xA5"],"ILR":["ILS"],"JPY":["JP\xA5","\xA5"],"KRW":["\uFFE6","\u20A9"],"TWD":["NT$"],"USD":["US$","$"],"XXX":[]},"ltr",plural,[[["\u5348\u591C","\u65E9\u4E0A","\u4E0A\u5348","\u4E2D\u5348","\u4E0B\u5348","\u665A\u4E0A","\u51CC\u6668"],u,["\u5348\u591C","\u6E05\u6668","\u4E0A\u5348","\u4E2D\u5348","\u4E0B\u5348","\u665A\u4E0A","\u51CC\u6668"]],[["\u5348\u591C","\u65E9\u4E0A","\u4E0A\u5348","\u4E2D\u5348","\u4E0B\u5348","\u665A\u4E0A","\u51CC\u6668"],u,u],["00:00",["05:00","08:00"],["08:00","12:00"],["12:00","13:00"],["13:00","19:00"],["19:00","24:00"],["00:00","05:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);; -(self.webpackChunkweb=self.webpackChunkweb||[]).push([[179],{8255:Ye=>{function me(O){return Promise.resolve().then(()=>{var y=new Error("Cannot find module '"+O+"'");throw y.code="MODULE_NOT_FOUND",y})}me.keys=()=>[],me.resolve=me,me.id=8255,Ye.exports=me},8583:(Ye,me,O)=>{"use strict";O.d(me,{mr:()=>Ge,ez:()=>ne,K0:()=>K,uU:()=>Ir,Do:()=>Fe,V_:()=>U,Ye:()=>he,S$:()=>He,mk:()=>kn,sg:()=>Vn,O5:()=>Zn,RF:()=>Un,n9:()=>Bn,ED:()=>Gt,b0:()=>We,lw:()=>P,EM:()=>Li,JF:()=>vi,w_:()=>Q,bD:()=>Oe,q:()=>ce,Mx:()=>Bt,HT:()=>te});var y=O(476);let u=null;function ce(){return u}function te(_){u||(u=_)}class Q{}const K=new y.OlP("DocumentToken");let P=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=(0,y.Yz7)({factory:x,token:_,providedIn:"platform"}),_})();function x(){return(0,y.LFG)(Y)}const U=new y.OlP("Location Initialized");let Y=(()=>{class _ extends P{constructor(v){super(),this._doc=v,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ce().getBaseHref(this._doc)}onPopState(v){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("popstate",v,!1),()=>S.removeEventListener("popstate",v)}onHashChange(v){const S=ce().getGlobalEventTarget(this._doc,"window");return S.addEventListener("hashchange",v,!1),()=>S.removeEventListener("hashchange",v)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(v){this.location.pathname=v}pushState(v,S,B){ae()?this._history.pushState(v,S,B):this.location.hash=B}replaceState(v,S,B){ae()?this._history.replaceState(v,S,B):this.location.hash=B}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(K))},_.\u0275prov=(0,y.Yz7)({factory:Ee,token:_,providedIn:"platform"}),_})();function ae(){return!!window.history.pushState}function Ee(){return new Y((0,y.LFG)(K))}function De(_,w){if(0==_.length)return w;if(0==w.length)return _;let v=0;return _.endsWith("/")&&v++,w.startsWith("/")&&v++,2==v?_+w.substring(1):1==v?_+w:_+"/"+w}function Pe(_){const w=_.match(/#|\?|$/),v=w&&w.index||_.length;return _.slice(0,v-("/"===_[v-1]?1:0))+_.slice(v)}function ve(_){return _&&"?"!==_[0]?"?"+_:_}let He=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=(0,y.Yz7)({factory:Me,token:_,providedIn:"root"}),_})();function Me(_){const w=(0,y.LFG)(K).location;return new We((0,y.LFG)(P),w&&w.origin||"")}const Ge=new y.OlP("appBaseHref");let We=(()=>{class _ extends He{constructor(v,S){if(super(),this._platformLocation=v,this._removeListenerFns=[],null==S&&(S=this._platformLocation.getBaseHrefFromDOM()),null==S)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=S}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return De(this._baseHref,v)}path(v=!1){const S=this._platformLocation.pathname+ve(this._platformLocation.search),B=this._platformLocation.hash;return B&&v?`${S}${B}`:S}pushState(v,S,B,oe){const pe=this.prepareExternalUrl(B+ve(oe));this._platformLocation.pushState(v,S,pe)}replaceState(v,S,B,oe){const pe=this.prepareExternalUrl(B+ve(oe));this._platformLocation.replaceState(v,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,v)}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(P),y.LFG(Ge,8))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})(),Fe=(()=>{class _ extends He{constructor(v,S){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=S&&(this._baseHref=S)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){let S=this._platformLocation.hash;return null==S&&(S="#"),S.length>0?S.substring(1):S}prepareExternalUrl(v){const S=De(this._baseHref,v);return S.length>0?"#"+S:S}pushState(v,S,B,oe){let pe=this.prepareExternalUrl(B+ve(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.pushState(v,S,pe)}replaceState(v,S,B,oe){let pe=this.prepareExternalUrl(B+ve(oe));0==pe.length&&(pe=this._platformLocation.pathname),this._platformLocation.replaceState(v,S,pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,v)}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(P),y.LFG(Ge,8))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})(),he=(()=>{class _{constructor(v,S){this._subject=new y.vpe,this._urlChangeListeners=[],this._platformStrategy=v;const B=this._platformStrategy.getBaseHref();this._platformLocation=S,this._baseHref=Pe($e(B)),this._platformStrategy.onPopState(oe=>{this._subject.emit({url:this.path(!0),pop:!0,state:oe.state,type:oe.type})})}path(v=!1){return this.normalize(this._platformStrategy.path(v))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(v,S=""){return this.path()==this.normalize(v+ve(S))}normalize(v){return _.stripTrailingSlash(function(_,w){return _&&w.startsWith(_)?w.substring(_.length):w}(this._baseHref,$e(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._platformStrategy.prepareExternalUrl(v)}go(v,S="",B=null){this._platformStrategy.pushState(B,"",v,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ve(S)),B)}replaceState(v,S="",B=null){this._platformStrategy.replaceState(B,"",v,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ve(S)),B)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(v=0){var S,B;null===(B=(S=this._platformStrategy).historyGo)||void 0===B||B.call(S,v)}onUrlChange(v){this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(S=>{this._notifyUrlChangeListeners(S.url,S.state)}))}_notifyUrlChangeListeners(v="",S){this._urlChangeListeners.forEach(B=>B(v,S))}subscribe(v,S,B){return this._subject.subscribe({next:v,error:S,complete:B})}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(He),y.LFG(P))},_.normalizeQueryParams=ve,_.joinWithSlash=De,_.stripTrailingSlash=Pe,_.\u0275prov=(0,y.Yz7)({factory:Ke,token:_,providedIn:"root"}),_})();function Ke(){return new he((0,y.LFG)(He),(0,y.LFG)(P))}function $e(_){return _.replace(/\/index.html$/,"")}var H=(()=>((H=H||{})[H.Zero=0]="Zero",H[H.One=1]="One",H[H.Two=2]="Two",H[H.Few=3]="Few",H[H.Many=4]="Many",H[H.Other=5]="Other",H))(),X=(()=>((X=X||{})[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X))(),ue=(()=>((ue=ue||{})[ue.Narrow=0]="Narrow",ue[ue.Abbreviated=1]="Abbreviated",ue[ue.Wide=2]="Wide",ue[ue.Short=3]="Short",ue))(),Ae=(()=>((Ae=Ae||{})[Ae.Short=0]="Short",Ae[Ae.Medium=1]="Medium",Ae[Ae.Long=2]="Long",Ae[Ae.Full=3]="Full",Ae))(),ie=(()=>((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",ie))();function jt(_,w){return gt((0,y.cg1)(_)[y.wAp.DateFormat],w)}function Kt(_,w){return gt((0,y.cg1)(_)[y.wAp.TimeFormat],w)}function It(_,w){return gt((0,y.cg1)(_)[y.wAp.DateTimeFormat],w)}function tn(_,w){const v=(0,y.cg1)(_),S=v[y.wAp.NumberSymbols][w];if(void 0===S){if(w===ie.CurrencyDecimal)return v[y.wAp.NumberSymbols][ie.Decimal];if(w===ie.CurrencyGroup)return v[y.wAp.NumberSymbols][ie.Group]}return S}const Cn=y.kL8;function Rn(_){if(!_[y.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${_[y.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function gt(_,w){for(let v=w;v>-1;v--)if(void 0!==_[v])return _[v];throw new Error("Locale data API: locale data undefined")}function tr(_){const[w,v]=_.split(":");return{hours:+w,minutes:+v}}const W=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ge={},ye=/((?:[^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]*)/;var Re=(()=>((Re=Re||{})[Re.Short=0]="Short",Re[Re.ShortGMT=1]="ShortGMT",Re[Re.Long=2]="Long",Re[Re.Extended=3]="Extended",Re))(),se=(()=>((se=se||{})[se.FullYear=0]="FullYear",se[se.Month=1]="Month",se[se.Date=2]="Date",se[se.Hours=3]="Hours",se[se.Minutes=4]="Minutes",se[se.Seconds=5]="Seconds",se[se.FractionalSeconds=6]="FractionalSeconds",se[se.Day=7]="Day",se))(),xe=(()=>((xe=xe||{})[xe.DayPeriods=0]="DayPeriods",xe[xe.Days=1]="Days",xe[xe.Months=2]="Months",xe[xe.Eras=3]="Eras",xe))();function Ne(_,w,v,S){let B=function(_){if(Fn(_))return _;if("number"==typeof _&&!isNaN(_))return new Date(_);if("string"==typeof _){if(_=_.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(_)){const[B,oe=1,pe=1]=_.split("-").map(Be=>+Be);return St(B,oe-1,pe)}const v=parseFloat(_);if(!isNaN(_-v))return new Date(v);let S;if(S=_.match(W))return function(_){const w=new Date(0);let v=0,S=0;const B=_[8]?w.setUTCFullYear:w.setFullYear,oe=_[8]?w.setUTCHours:w.setHours;_[9]&&(v=Number(_[9]+_[10]),S=Number(_[9]+_[11])),B.call(w,Number(_[1]),Number(_[2])-1,Number(_[3]));const pe=Number(_[4]||0)-v,Be=Number(_[5]||0)-S,Dt=Number(_[6]||0),E=Math.floor(1e3*parseFloat("0."+(_[7]||0)));return oe.call(w,pe,Be,Dt,E),w}(S)}const w=new Date(_);if(!Fn(w))throw new Error(`Unable to convert "${_}" into a date`);return w}(_);w=Lt(v,w)||w;let Be,pe=[];for(;w;){if(Be=ye.exec(w),!Be){pe.push(w);break}{pe=pe.concat(Be.slice(1));const m=pe.pop();if(!m)break;w=m}}let Dt=B.getTimezoneOffset();S&&(Dt=br(S,Dt),B=function(_,w,v){const B=_.getTimezoneOffset();return function(_,w){return(_=new Date(_.getTime())).setMinutes(_.getMinutes()+w),_}(_,-1*(br(w,B)-B))}(B,S));let E="";return pe.forEach(m=>{const h=function(_){if(mt[_])return mt[_];let w;switch(_){case"G":case"GG":case"GGG":w=Le(xe.Eras,ue.Abbreviated);break;case"GGGG":w=Le(xe.Eras,ue.Wide);break;case"GGGGG":w=Le(xe.Eras,ue.Narrow);break;case"y":w=ot(se.FullYear,1,0,!1,!0);break;case"yy":w=ot(se.FullYear,2,0,!0,!0);break;case"yyy":w=ot(se.FullYear,3,0,!1,!0);break;case"yyyy":w=ot(se.FullYear,4,0,!1,!0);break;case"Y":w=xn(1);break;case"YY":w=xn(2,!0);break;case"YYY":w=xn(3);break;case"YYYY":w=xn(4);break;case"M":case"L":w=ot(se.Month,1,1);break;case"MM":case"LL":w=ot(se.Month,2,1);break;case"MMM":w=Le(xe.Months,ue.Abbreviated);break;case"MMMM":w=Le(xe.Months,ue.Wide);break;case"MMMMM":w=Le(xe.Months,ue.Narrow);break;case"LLL":w=Le(xe.Months,ue.Abbreviated,X.Standalone);break;case"LLLL":w=Le(xe.Months,ue.Wide,X.Standalone);break;case"LLLLL":w=Le(xe.Months,ue.Narrow,X.Standalone);break;case"w":w=pi(1);break;case"ww":w=pi(2);break;case"W":w=pi(1,!0);break;case"d":w=ot(se.Date,1);break;case"dd":w=ot(se.Date,2);break;case"c":case"cc":w=ot(se.Day,1);break;case"ccc":w=Le(xe.Days,ue.Abbreviated,X.Standalone);break;case"cccc":w=Le(xe.Days,ue.Wide,X.Standalone);break;case"ccccc":w=Le(xe.Days,ue.Narrow,X.Standalone);break;case"cccccc":w=Le(xe.Days,ue.Short,X.Standalone);break;case"E":case"EE":case"EEE":w=Le(xe.Days,ue.Abbreviated);break;case"EEEE":w=Le(xe.Days,ue.Wide);break;case"EEEEE":w=Le(xe.Days,ue.Narrow);break;case"EEEEEE":w=Le(xe.Days,ue.Short);break;case"a":case"aa":case"aaa":w=Le(xe.DayPeriods,ue.Abbreviated);break;case"aaaa":w=Le(xe.DayPeriods,ue.Wide);break;case"aaaaa":w=Le(xe.DayPeriods,ue.Narrow);break;case"b":case"bb":case"bbb":w=Le(xe.DayPeriods,ue.Abbreviated,X.Standalone,!0);break;case"bbbb":w=Le(xe.DayPeriods,ue.Wide,X.Standalone,!0);break;case"bbbbb":w=Le(xe.DayPeriods,ue.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":w=Le(xe.DayPeriods,ue.Abbreviated,X.Format,!0);break;case"BBBB":w=Le(xe.DayPeriods,ue.Wide,X.Format,!0);break;case"BBBBB":w=Le(xe.DayPeriods,ue.Narrow,X.Format,!0);break;case"h":w=ot(se.Hours,1,-12);break;case"hh":w=ot(se.Hours,2,-12);break;case"H":w=ot(se.Hours,1);break;case"HH":w=ot(se.Hours,2);break;case"m":w=ot(se.Minutes,1);break;case"mm":w=ot(se.Minutes,2);break;case"s":w=ot(se.Seconds,1);break;case"ss":w=ot(se.Seconds,2);break;case"S":w=ot(se.FractionalSeconds,1);break;case"SS":w=ot(se.FractionalSeconds,2);break;case"SSS":w=ot(se.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":w=rn(Re.Short);break;case"ZZZZZ":w=rn(Re.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":w=rn(Re.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":w=rn(Re.Long);break;default:return null}return mt[_]=w,w}(m);E+=h?h(B,v,Dt):"''"===m?"'":m.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),E}function St(_,w,v){const S=new Date(0);return S.setFullYear(_,w,v),S.setHours(0,0,0),S}function Lt(_,w){const v=function(_){return(0,y.cg1)(_)[y.wAp.LocaleId]}(_);if(ge[v]=ge[v]||{},ge[v][w])return ge[v][w];let S="";switch(w){case"shortDate":S=jt(_,Ae.Short);break;case"mediumDate":S=jt(_,Ae.Medium);break;case"longDate":S=jt(_,Ae.Long);break;case"fullDate":S=jt(_,Ae.Full);break;case"shortTime":S=Kt(_,Ae.Short);break;case"mediumTime":S=Kt(_,Ae.Medium);break;case"longTime":S=Kt(_,Ae.Long);break;case"fullTime":S=Kt(_,Ae.Full);break;case"short":const B=Lt(_,"shortTime"),oe=Lt(_,"shortDate");S=zn(It(_,Ae.Short),[B,oe]);break;case"medium":const pe=Lt(_,"mediumTime"),Be=Lt(_,"mediumDate");S=zn(It(_,Ae.Medium),[pe,Be]);break;case"long":const Dt=Lt(_,"longTime"),E=Lt(_,"longDate");S=zn(It(_,Ae.Long),[Dt,E]);break;case"full":const m=Lt(_,"fullTime"),h=Lt(_,"fullDate");S=zn(It(_,Ae.Full),[m,h])}return S&&(ge[v][w]=S),S}function zn(_,w){return w&&(_=_.replace(/\{([^}]+)}/g,function(v,S){return null!=w&&S in w?w[S]:v})),_}function wt(_,w,v="-",S,B){let oe="";(_<0||B&&_<=0)&&(B?_=1-_:(_=-_,oe=v));let pe=String(_);for(;pe.length0||Be>-v)&&(Be+=v),_===se.Hours)0===Be&&-12===v&&(Be=12);else if(_===se.FractionalSeconds)return function(_,w){return wt(_,3).substr(0,w)}(Be,w);const Dt=tn(pe,ie.MinusSign);return wt(Be,w,Dt,S,B)}}function Le(_,w,v=X.Format,S=!1){return function(B,oe){return function(_,w,v,S,B,oe){switch(v){case xe.Months:return function(_,w,v){const S=(0,y.cg1)(_),oe=gt([S[y.wAp.MonthsFormat],S[y.wAp.MonthsStandalone]],w);return gt(oe,v)}(w,B,S)[_.getMonth()];case xe.Days:return function(_,w,v){const S=(0,y.cg1)(_),oe=gt([S[y.wAp.DaysFormat],S[y.wAp.DaysStandalone]],w);return gt(oe,v)}(w,B,S)[_.getDay()];case xe.DayPeriods:const pe=_.getHours(),Be=_.getMinutes();if(oe){const E=function(_){const w=(0,y.cg1)(_);return Rn(w),(w[y.wAp.ExtraData][2]||[]).map(S=>"string"==typeof S?tr(S):[tr(S[0]),tr(S[1])])}(w),m=function(_,w,v){const S=(0,y.cg1)(_);Rn(S);const oe=gt([S[y.wAp.ExtraData][0],S[y.wAp.ExtraData][1]],w)||[];return gt(oe,v)||[]}(w,B,S),h=E.findIndex(M=>{if(Array.isArray(M)){const[Z,we]=M,At=pe>=Z.hours&&Be>=Z.minutes,an=pe0?Math.floor(B/60):Math.ceil(B/60);switch(_){case Re.Short:return(B>=0?"+":"")+wt(pe,2,oe)+wt(Math.abs(B%60),2,oe);case Re.ShortGMT:return"GMT"+(B>=0?"+":"")+wt(pe,1,oe);case Re.Long:return"GMT"+(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);case Re.Extended:return 0===S?"Z":(B>=0?"+":"")+wt(pe,2,oe)+":"+wt(Math.abs(B%60),2,oe);default:throw new Error(`Unknown zone width "${_}"`)}}}function Mn(_){return St(_.getFullYear(),_.getMonth(),_.getDate()+(4-_.getDay()))}function pi(_,w=!1){return function(v,S){let B;if(w){const oe=new Date(v.getFullYear(),v.getMonth(),1).getDay()-1,pe=v.getDate();B=1+Math.floor((pe+oe)/7)}else{const oe=Mn(v),pe=function(_){const w=St(_,0,1).getDay();return St(_,0,1+(w<=4?4:11)-w)}(oe.getFullYear()),Be=oe.getTime()-pe.getTime();B=1+Math.round(Be/6048e5)}return wt(B,_,tn(S,ie.MinusSign))}}function xn(_,w=!1){return function(v,S){return wt(Mn(v).getFullYear(),_,tn(S,ie.MinusSign),w)}}const mt={};function br(_,w){_=_.replace(/:/g,"");const v=Date.parse("Jan 01, 1970 00:00:00 "+_)/6e4;return isNaN(v)?w:v}function Fn(_){return _ instanceof Date&&!isNaN(_.valueOf())}class tt{}let ut=(()=>{class _ extends tt{constructor(v){super(),this.locale=v}getPluralCategory(v,S){switch(Cn(S||this.locale)(v)){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}}}return _.\u0275fac=function(v){return new(v||_)(y.LFG(y.soG))},_.\u0275prov=y.Yz7({token:_,factory:_.\u0275fac}),_})();function Bt(_,w){w=encodeURIComponent(w);for(const v of _.split(";")){const S=v.indexOf("="),[B,oe]=-1==S?[v,""]:[v.slice(0,S),v.slice(S+1)];if(B.trim()===w)return decodeURIComponent(oe)}return null}let kn=(()=>{class _{constructor(v,S,B,oe){this._iterableDiffers=v,this._keyValueDiffers=S,this._ngEl=B,this._renderer=oe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(v){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof v?v.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(v){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof v?v.split(/\s+/):v,this._rawClass&&((0,y.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const v=this._iterableDiffer.diff(this._rawClass);v&&this._applyIterableChanges(v)}else if(this._keyValueDiffer){const v=this._keyValueDiffer.diff(this._rawClass);v&&this._applyKeyValueChanges(v)}}_applyKeyValueChanges(v){v.forEachAddedItem(S=>this._toggleClass(S.key,S.currentValue)),v.forEachChangedItem(S=>this._toggleClass(S.key,S.currentValue)),v.forEachRemovedItem(S=>{S.previousValue&&this._toggleClass(S.key,!1)})}_applyIterableChanges(v){v.forEachAddedItem(S=>{if("string"!=typeof S.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,y.AaK)(S.item)}`);this._toggleClass(S.item,!0)}),v.forEachRemovedItem(S=>this._toggleClass(S.item,!1))}_applyClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(S=>this._toggleClass(S,!0)):Object.keys(v).forEach(S=>this._toggleClass(S,!!v[S])))}_removeClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(S=>this._toggleClass(S,!1)):Object.keys(v).forEach(S=>this._toggleClass(S,!1)))}_toggleClass(v,S){(v=v.trim())&&v.split(/\s+/g).forEach(B=>{S?this._renderer.addClass(this._ngEl.nativeElement,B):this._renderer.removeClass(this._ngEl.nativeElement,B)})}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.ZZ4),y.Y36(y.aQg),y.Y36(y.SBq),y.Y36(y.Qsj))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),_})();class wr{constructor(w,v,S,B){this.$implicit=w,this.ngForOf=v,this.index=S,this.count=B}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Vn=(()=>{class _{constructor(v,S,B){this._viewContainer=v,this._template=S,this._differs=B,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;if(!this._differ&&v)try{this._differ=this._differs.find(v).create(this.ngForTrackBy)}catch(S){throw new Error(`Cannot find a differ supporting object '${v}' of type '${function(_){return _.name||typeof _}(v)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const S=[];v.forEachOperation((B,oe,pe)=>{if(null==B.previousIndex){const Be=this._viewContainer.createEmbeddedView(this._template,new wr(null,this._ngForOf,-1,-1),null===pe?void 0:pe),Dt=new Ze(B,Be);S.push(Dt)}else if(null==pe)this._viewContainer.remove(null===oe?void 0:oe);else if(null!==oe){const Be=this._viewContainer.get(oe);this._viewContainer.move(Be,pe);const Dt=new Ze(B,Be);S.push(Dt)}});for(let B=0;B{this._viewContainer.get(B.currentIndex).context.$implicit=B.item})}_perViewChange(v,S){v.context.$implicit=S.item}static ngTemplateContextGuard(v,S){return!0}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(y.ZZ4))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),_})();class Ze{constructor(w,v){this.record=w,this.view=v}}let Zn=(()=>{class _{constructor(v,S){this._viewContainer=v,this._context=new _n,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=S}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){hn("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){hn("ngIfElse",v),this._elseTemplateRef=v,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(v,S){return!0}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),_})();class _n{constructor(){this.$implicit=null,this.ngIf=null}}function hn(_,w){if(w&&!w.createEmbeddedView)throw new Error(`${_} must be a TemplateRef, but received '${(0,y.AaK)(w)}'.`)}class Ht{constructor(w,v){this._viewContainerRef=w,this._templateRef=v,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(w){w&&!this._created?this.create():!w&&this._created&&this.destroy()}}let Un=(()=>{class _{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(v){this._ngSwitch=v,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(v){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(v)}_matchCase(v){const S=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||S,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),S}_updateDefaultCases(v){if(this._defaultViews&&v!==this._defaultUsed){this._defaultUsed=v;for(let S=0;S{class _{constructor(v,S,B){this.ngSwitch=B,B._addCase(),this._view=new Ht(v,S)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),_})(),Gt=(()=>{class _{constructor(v,S,B){B._addDefault(new Ht(v,S))}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.s_b),y.Y36(y.Rgc),y.Y36(Un,9))},_.\u0275dir=y.lG2({type:_,selectors:[["","ngSwitchDefault",""]]}),_})();let Ir=(()=>{class _{constructor(v){this.locale=v}transform(v,S="mediumDate",B,oe){if(null==v||""===v||v!=v)return null;try{return Ne(v,S,oe||this.locale,B)}catch(pe){throw function(_,w){return Error(`InvalidPipeArgument: '${w}' for pipe '${(0,y.AaK)(_)}'`)}(_,pe.message)}}}return _.\u0275fac=function(v){return new(v||_)(y.Y36(y.soG,16))},_.\u0275pipe=y.Yjl({name:"date",type:_,pure:!0}),_})(),ne=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=y.oAB({type:_}),_.\u0275inj=y.cJS({providers:[{provide:tt,useClass:ut}]}),_})();const Oe="browser";let Li=(()=>{class _{}return _.\u0275prov=(0,y.Yz7)({token:_,providedIn:"root",factory:()=>new ki((0,y.LFG)(K),window)}),_})();class ki{constructor(w,v){this.document=w,this.window=v,this.offset=()=>[0,0]}setOffset(w){this.offset=Array.isArray(w)?()=>w:w}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(w){this.supportsScrolling()&&this.window.scrollTo(w[0],w[1])}scrollToAnchor(w){if(!this.supportsScrolling())return;const v=function(_,w){const v=_.getElementById(w)||_.getElementsByName(w)[0];if(v)return v;if("function"==typeof _.createTreeWalker&&_.body&&(_.body.createShadowRoot||_.body.attachShadow)){const S=_.createTreeWalker(_.body,NodeFilter.SHOW_ELEMENT);let B=S.currentNode;for(;B;){const oe=B.shadowRoot;if(oe){const pe=oe.getElementById(w)||oe.querySelector(`[name="${w}"]`);if(pe)return pe}B=S.nextNode()}}return null}(this.document,w);v&&(this.scrollToElement(v),this.attemptFocus(v))}setHistoryScrollRestoration(w){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=w)}}scrollToElement(w){const v=w.getBoundingClientRect(),S=v.left+this.window.pageXOffset,B=v.top+this.window.pageYOffset,oe=this.offset();this.window.scrollTo(S-oe[0],B-oe[1])}attemptFocus(w){return w.focus(),this.document.activeElement===w}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const w=Nr(this.window.history)||Nr(Object.getPrototypeOf(this.window.history));return!(!w||!w.writable&&!w.set)}catch(w){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(w){return!1}}}function Nr(_){return Object.getOwnPropertyDescriptor(_,"scrollRestoration")}class vi{}},1841:(Ye,me,O)=>{"use strict";O.d(me,{TP:()=>ee,eN:()=>ie,JF:()=>gt,WM:()=>U});var y=O(8583),u=O(476),ce=O(1964),re=O(1776),te=O(3766),Q=O(4689),K=O(5207);class P{}class x{}class U{constructor(G){this.normalizedNames=new Map,this.lazyUpdate=null,G?this.lazyInit="string"==typeof G?()=>{this.headers=new Map,G.split("\n").forEach(W=>{const ge=W.indexOf(":");if(ge>0){const ye=W.slice(0,ge),Re=ye.toLowerCase(),se=W.slice(ge+1).trim();this.maybeSetNormalizedName(ye,Re),this.headers.has(Re)?this.headers.get(Re).push(se):this.headers.set(Re,[se])}})}:()=>{this.headers=new Map,Object.keys(G).forEach(W=>{let ge=G[W];const ye=W.toLowerCase();"string"==typeof ge&&(ge=[ge]),ge.length>0&&(this.headers.set(ye,ge),this.maybeSetNormalizedName(W,ye))})}:this.headers=new Map}has(G){return this.init(),this.headers.has(G.toLowerCase())}get(G){this.init();const W=this.headers.get(G.toLowerCase());return W&&W.length>0?W[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(G){return this.init(),this.headers.get(G.toLowerCase())||null}append(G,W){return this.clone({name:G,value:W,op:"a"})}set(G,W){return this.clone({name:G,value:W,op:"s"})}delete(G,W){return this.clone({name:G,value:W,op:"d"})}maybeSetNormalizedName(G,W){this.normalizedNames.has(W)||this.normalizedNames.set(W,G)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(G=>this.applyUpdate(G)),this.lazyUpdate=null))}copyFrom(G){G.init(),Array.from(G.headers.keys()).forEach(W=>{this.headers.set(W,G.headers.get(W)),this.normalizedNames.set(W,G.normalizedNames.get(W))})}clone(G){const W=new U;return W.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,W.lazyUpdate=(this.lazyUpdate||[]).concat([G]),W}applyUpdate(G){const W=G.name.toLowerCase();switch(G.op){case"a":case"s":let ge=G.value;if("string"==typeof ge&&(ge=[ge]),0===ge.length)return;this.maybeSetNormalizedName(G.name,W);const ye=("a"===G.op?this.headers.get(W):void 0)||[];ye.push(...ge),this.headers.set(W,ye);break;case"d":const Re=G.value;if(Re){let se=this.headers.get(W);if(!se)return;se=se.filter(xe=>-1===Re.indexOf(xe)),0===se.length?(this.headers.delete(W),this.normalizedNames.delete(W)):this.headers.set(W,se)}else this.headers.delete(W),this.normalizedNames.delete(W)}}forEach(G){this.init(),Array.from(this.normalizedNames.keys()).forEach(W=>G(this.normalizedNames.get(W),this.headers.get(W)))}}class Y{encodeKey(G){return Pe(G)}encodeValue(G){return Pe(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}const Ee=/%(\d[a-f0-9])/gi,De={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Pe(fe){return encodeURIComponent(fe).replace(Ee,(G,W)=>{var ge;return null!==(ge=De[W])&&void 0!==ge?ge:G})}function ve(fe){return`${fe}`}class He{constructor(G={}){if(this.updates=null,this.cloneFrom=null,this.encoder=G.encoder||new Y,G.fromString){if(G.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(fe,G){const W=new Map;return fe.length>0&&fe.replace(/^\?/,"").split("&").forEach(ye=>{const Re=ye.indexOf("="),[se,xe]=-1==Re?[G.decodeKey(ye),""]:[G.decodeKey(ye.slice(0,Re)),G.decodeValue(ye.slice(Re+1))],Ne=W.get(se)||[];Ne.push(xe),W.set(se,Ne)}),W}(G.fromString,this.encoder)}else G.fromObject?(this.map=new Map,Object.keys(G.fromObject).forEach(W=>{const ge=G.fromObject[W];this.map.set(W,Array.isArray(ge)?ge:[ge])})):this.map=null}has(G){return this.init(),this.map.has(G)}get(G){this.init();const W=this.map.get(G);return W?W[0]:null}getAll(G){return this.init(),this.map.get(G)||null}keys(){return this.init(),Array.from(this.map.keys())}append(G,W){return this.clone({param:G,value:W,op:"a"})}appendAll(G){const W=[];return Object.keys(G).forEach(ge=>{const ye=G[ge];Array.isArray(ye)?ye.forEach(Re=>{W.push({param:ge,value:Re,op:"a"})}):W.push({param:ge,value:ye,op:"a"})}),this.clone(W)}set(G,W){return this.clone({param:G,value:W,op:"s"})}delete(G,W){return this.clone({param:G,value:W,op:"d"})}toString(){return this.init(),this.keys().map(G=>{const W=this.encoder.encodeKey(G);return this.map.get(G).map(ge=>W+"="+this.encoder.encodeValue(ge)).join("&")}).filter(G=>""!==G).join("&")}clone(G){const W=new He({encoder:this.encoder});return W.cloneFrom=this.cloneFrom||this,W.updates=(this.updates||[]).concat(G),W}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(G=>this.map.set(G,this.cloneFrom.map.get(G))),this.updates.forEach(G=>{switch(G.op){case"a":case"s":const W=("a"===G.op?this.map.get(G.param):void 0)||[];W.push(ve(G.value)),this.map.set(G.param,W);break;case"d":if(void 0===G.value){this.map.delete(G.param);break}{let ge=this.map.get(G.param)||[];const ye=ge.indexOf(ve(G.value));-1!==ye&&ge.splice(ye,1),ge.length>0?this.map.set(G.param,ge):this.map.delete(G.param)}}}),this.cloneFrom=this.updates=null)}}class Ge{constructor(){this.map=new Map}set(G,W){return this.map.set(G,W),this}get(G){return this.map.has(G)||this.map.set(G,G.defaultValue()),this.map.get(G)}delete(G){return this.map.delete(G),this}keys(){return this.map.keys()}}function Fe(fe){return"undefined"!=typeof ArrayBuffer&&fe instanceof ArrayBuffer}function he(fe){return"undefined"!=typeof Blob&&fe instanceof Blob}function Ke(fe){return"undefined"!=typeof FormData&&fe instanceof FormData}class $e{constructor(G,W,ge,ye){let Re;if(this.url=W,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=G.toUpperCase(),function(fe){switch(fe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ye?(this.body=void 0!==ge?ge:null,Re=ye):Re=ge,Re&&(this.reportProgress=!!Re.reportProgress,this.withCredentials=!!Re.withCredentials,Re.responseType&&(this.responseType=Re.responseType),Re.headers&&(this.headers=Re.headers),Re.context&&(this.context=Re.context),Re.params&&(this.params=Re.params)),this.headers||(this.headers=new U),this.context||(this.context=new Ge),this.params){const se=this.params.toString();if(0===se.length)this.urlWithParams=W;else{const xe=W.indexOf("?");this.urlWithParams=W+(-1===xe?"?":xewt.set(Qe,G.setHeaders[Qe]),St)),G.setParams&&(Lt=Object.keys(G.setParams).reduce((wt,Qe)=>wt.set(Qe,G.setParams[Qe]),Lt)),new $e(ge,ye,se,{params:Lt,headers:St,context:zn,reportProgress:Ne,responseType:Re,withCredentials:xe})}}var lt=(()=>((lt=lt||{})[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt))();class le{constructor(G,W=200,ge="OK"){this.headers=G.headers||new U,this.status=void 0!==G.status?G.status:W,this.statusText=G.statusText||ge,this.url=G.url||null,this.ok=this.status>=200&&this.status<300}}class H extends le{constructor(G={}){super(G),this.type=lt.ResponseHeader}clone(G={}){return new H({headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class X extends le{constructor(G={}){super(G),this.type=lt.Response,this.body=void 0!==G.body?G.body:null}clone(G={}){return new X({body:void 0!==G.body?G.body:this.body,headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class ue extends le{constructor(G){super(G,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${G.url||"(unknown url)"}`:`Http failure response for ${G.url||"(unknown url)"}: ${G.status} ${G.statusText}`,this.error=G.error||null}}function Ae(fe,G){return{body:G,headers:fe.headers,context:fe.context,observe:fe.observe,params:fe.params,reportProgress:fe.reportProgress,responseType:fe.responseType,withCredentials:fe.withCredentials}}let ie=(()=>{class fe{constructor(W){this.handler=W}request(W,ge,ye={}){let Re;if(W instanceof $e)Re=W;else{let Ne,St;Ne=ye.headers instanceof U?ye.headers:new U(ye.headers),ye.params&&(St=ye.params instanceof He?ye.params:new He({fromObject:ye.params})),Re=new $e(W,ge,void 0!==ye.body?ye.body:null,{headers:Ne,context:ye.context,params:St,reportProgress:ye.reportProgress,responseType:ye.responseType||"json",withCredentials:ye.withCredentials})}const se=(0,ce.of)(Re).pipe((0,te.b)(Ne=>this.handler.handle(Ne)));if(W instanceof $e||"events"===ye.observe)return se;const xe=se.pipe((0,Q.h)(Ne=>Ne instanceof X));switch(ye.observe||"body"){case"body":switch(Re.responseType){case"arraybuffer":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&!(Ne.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ne.body}));case"blob":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&!(Ne.body instanceof Blob))throw new Error("Response is not a Blob.");return Ne.body}));case"text":return xe.pipe((0,K.U)(Ne=>{if(null!==Ne.body&&"string"!=typeof Ne.body)throw new Error("Response is not a string.");return Ne.body}));case"json":default:return xe.pipe((0,K.U)(Ne=>Ne.body))}case"response":return xe;default:throw new Error(`Unreachable: unhandled observe type ${ye.observe}}`)}}delete(W,ge={}){return this.request("DELETE",W,ge)}get(W,ge={}){return this.request("GET",W,ge)}head(W,ge={}){return this.request("HEAD",W,ge)}jsonp(W,ge){return this.request("JSONP",W,{params:(new He).append(ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(W,ge={}){return this.request("OPTIONS",W,ge)}patch(W,ge,ye={}){return this.request("PATCH",W,Ae(ye,ge))}post(W,ge,ye={}){return this.request("POST",W,Ae(ye,ge))}put(W,ge,ye={}){return this.request("PUT",W,Ae(ye,ge))}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(P))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();class ze{constructor(G,W){this.next=G,this.interceptor=W}handle(G){return this.interceptor.intercept(G,this.next)}}const ee=new u.OlP("HTTP_INTERCEPTORS");let Ie=(()=>{class fe{intercept(W,ge){return ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const It=/^\)\]\}',?\n/;let yt=(()=>{class fe{constructor(W){this.xhrFactory=W}handle(W){if("JSONP"===W.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new re.y(ge=>{const ye=this.xhrFactory.build();if(ye.open(W.method,W.urlWithParams),W.withCredentials&&(ye.withCredentials=!0),W.headers.forEach((Qe,ot)=>ye.setRequestHeader(Qe,ot.join(","))),W.headers.has("Accept")||ye.setRequestHeader("Accept","application/json, text/plain, */*"),!W.headers.has("Content-Type")){const Qe=W.detectContentTypeHeader();null!==Qe&&ye.setRequestHeader("Content-Type",Qe)}if(W.responseType){const Qe=W.responseType.toLowerCase();ye.responseType="json"!==Qe?Qe:"text"}const Re=W.serializeBody();let se=null;const xe=()=>{if(null!==se)return se;const Qe=1223===ye.status?204:ye.status,ot=ye.statusText||"OK",Sn=new U(ye.getAllResponseHeaders()),Le=function(fe){return"responseURL"in fe&&fe.responseURL?fe.responseURL:/^X-Request-URL:/m.test(fe.getAllResponseHeaders())?fe.getResponseHeader("X-Request-URL"):null}(ye)||W.url;return se=new H({headers:Sn,status:Qe,statusText:ot,url:Le}),se},Ne=()=>{let{headers:Qe,status:ot,statusText:Sn,url:Le}=xe(),Ut=null;204!==ot&&(Ut=void 0===ye.response?ye.responseText:ye.response),0===ot&&(ot=Ut?200:0);let rn=ot>=200&&ot<300;if("json"===W.responseType&&"string"==typeof Ut){const Dr=Ut;Ut=Ut.replace(It,"");try{Ut=""!==Ut?JSON.parse(Ut):null}catch(nr){Ut=Dr,rn&&(rn=!1,Ut={error:nr,text:Ut})}}rn?(ge.next(new X({body:Ut,headers:Qe,status:ot,statusText:Sn,url:Le||void 0})),ge.complete()):ge.error(new ue({error:Ut,headers:Qe,status:ot,statusText:Sn,url:Le||void 0}))},St=Qe=>{const{url:ot}=xe(),Sn=new ue({error:Qe,status:ye.status||0,statusText:ye.statusText||"Unknown Error",url:ot||void 0});ge.error(Sn)};let Lt=!1;const zn=Qe=>{Lt||(ge.next(xe()),Lt=!0);let ot={type:lt.DownloadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(ot.total=Qe.total),"text"===W.responseType&&!!ye.responseText&&(ot.partialText=ye.responseText),ge.next(ot)},wt=Qe=>{let ot={type:lt.UploadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(ot.total=Qe.total),ge.next(ot)};return ye.addEventListener("load",Ne),ye.addEventListener("error",St),ye.addEventListener("timeout",St),ye.addEventListener("abort",St),W.reportProgress&&(ye.addEventListener("progress",zn),null!==Re&&ye.upload&&ye.upload.addEventListener("progress",wt)),ye.send(Re),ge.next({type:lt.Sent}),()=>{ye.removeEventListener("error",St),ye.removeEventListener("abort",St),ye.removeEventListener("load",Ne),ye.removeEventListener("timeout",St),W.reportProgress&&(ye.removeEventListener("progress",zn),null!==Re&&ye.upload&&ye.upload.removeEventListener("progress",wt)),ye.readyState!==ye.DONE&&ye.abort()}})}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.JF))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const gn=new u.OlP("XSRF_COOKIE_NAME"),Tt=new u.OlP("XSRF_HEADER_NAME");class it{}let mn=(()=>{class fe{constructor(W,ge,ye){this.doc=W,this.platform=ge,this.cookieName=ye,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const W=this.doc.cookie||"";return W!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,y.Mx)(W,this.cookieName),this.lastCookieString=W),this.lastToken}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(y.K0),u.LFG(u.Lbi),u.LFG(gn))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Cn=(()=>{class fe{constructor(W,ge){this.tokenService=W,this.headerName=ge}intercept(W,ge){const ye=W.url.toLowerCase();if("GET"===W.method||"HEAD"===W.method||ye.startsWith("http://")||ye.startsWith("https://"))return ge.handle(W);const Re=this.tokenService.getToken();return null!==Re&&!W.headers.has(this.headerName)&&(W=W.clone({headers:W.headers.set(this.headerName,Re)})),ge.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(it),u.LFG(Tt))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Rn=(()=>{class fe{constructor(W,ge){this.backend=W,this.injector=ge,this.chain=null}handle(W){if(null===this.chain){const ge=this.injector.get(ee,[]);this.chain=ge.reduceRight((ye,Re)=>new ze(ye,Re),this.backend)}return this.chain.handle(W)}}return fe.\u0275fac=function(W){return new(W||fe)(u.LFG(x),u.LFG(u.zs3))},fe.\u0275prov=u.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),Ft=(()=>{class fe{static disable(){return{ngModule:fe,providers:[{provide:Cn,useClass:Ie}]}}static withOptions(W={}){return{ngModule:fe,providers:[W.cookieName?{provide:gn,useValue:W.cookieName}:[],W.headerName?{provide:Tt,useValue:W.headerName}:[]]}}}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[Cn,{provide:ee,useExisting:Cn,multi:!0},{provide:it,useClass:mn},{provide:gn,useValue:"XSRF-TOKEN"},{provide:Tt,useValue:"X-XSRF-TOKEN"}]}),fe})(),gt=(()=>{class fe{}return fe.\u0275fac=function(W){return new(W||fe)},fe.\u0275mod=u.oAB({type:fe}),fe.\u0275inj=u.cJS({providers:[ie,{provide:P,useClass:Rn},yt,{provide:x,useExisting:yt}],imports:[[Ft.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),fe})()},476:(Ye,me,O)=>{"use strict";O.d(me,{deG:()=>__,tb:()=>My,AFp:()=>wy,ip1:()=>Pd,CZH:()=>Os,hGG:()=>cS,z2F:()=>xa,sBO:()=>eb,Sil:()=>Ra,_Vd:()=>Do,EJc:()=>Ty,SBq:()=>Oi,qLn:()=>es,vpe:()=>Pi,gxx:()=>ss,tBr:()=>qo,XFs:()=>se,OlP:()=>ln,zs3:()=>Vt,ZZ4:()=>Rl,aQg:()=>xl,soG:()=>Wl,YKP:()=>pm,v3s:()=>HA,h0i:()=>bo,PXZ:()=>kA,R0b:()=>Er,FiY:()=>$i,Lbi:()=>Sy,g9A:()=>Ay,Qsj:()=>U0,FYo:()=>Nl,JOm:()=>Ai,Tiy:()=>od,q3G:()=>un,tp0:()=>to,EAV:()=>KA,Rgc:()=>Ea,dDg:()=>Ry,DyG:()=>el,GfV:()=>sm,s_b:()=>kl,ifc:()=>Le,eFA:()=>Uy,G48:()=>OA,Gpc:()=>Fe,_c5:()=>rS,VLi:()=>TA,c2e:()=>Iy,zSh:()=>ua,wAp:()=>qe,vHH:()=>$e,EiD:()=>Tf,mCW:()=>ta,qzn:()=>Xo,JVY:()=>K_,pB0:()=>J_,eBb:()=>Z_,L6k:()=>Y_,LAX:()=>q_,cg1:()=>Kc,Tjo:()=>tS,kL8:()=>Ig,yhl:()=>Ef,dqk:()=>nt,sIi:()=>fa,CqO:()=>Lc,QGY:()=>Fc,F4k:()=>Vp,RDi:()=>Be,AaK:()=>Me,z3N:()=>ji,qOj:()=>Ec,TTD:()=>Li,_Bn:()=>tm,xp6:()=>hh,uIk:()=>wc,Tol:()=>rg,ekj:()=>jc,Suo:()=>ty,Xpm:()=>et,lG2:()=>rr,Yz7:()=>xt,cJS:()=>Ft,oAB:()=>yn,Yjl:()=>Yn,Y36:()=>pa,_UZ:()=>Lp,BQk:()=>xc,ynx:()=>Rc,qZA:()=>Nc,TgZ:()=>Pc,EpF:()=>kp,n5z:()=>Ho,Ikx:()=>zc,SDv:()=>Jg,QtT:()=>Qg,N_p:()=>Qc,pQV:()=>Xc,Zx4:()=>Xg,tHW:()=>Jc,LFG:()=>vn,$8M:()=>vu,NdJ:()=>kc,CRH:()=>ny,oxw:()=>jp,ALo:()=>Zm,xi3:()=>qm,Q6J:()=>Tc,s9C:()=>Uc,MGl:()=>bl,hYB:()=>Bc,DdM:()=>jm,VKq:()=>Hm,iGM:()=>Xm,MAs:()=>wp,CHM:()=>$a,LSH:()=>Ru,kYT:()=>zr,Udp:()=>$c,YNc:()=>bp,W1O:()=>sy,_uU:()=>cg,Oqu:()=>Gc,hij:()=>Al,AsE:()=>Wc,Gf:()=>ey});var y=O(23),u=O(5994),ce=O(5929),re=O(6149),te=O(9528),K=O(6889),P=O(8839),x=O(1776),U=O(9162),Y=O(4294),ae=O(4111),Ee=O(4297);function Pe(e,t){for(var n=[],r=2;r ${n} ${r} ${t} <=Actual]`))}function xt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ft(e){return{providers:e.providers||[],imports:e.imports||[]}}function gt(e){return tr(e,W)||tr(e,ye)}function tr(e,t){return e.hasOwnProperty(t)?e[t]:null}function G(e){return e&&(e.hasOwnProperty(ge)||e.hasOwnProperty(Re))?e[ge]:null}const W=ve({\u0275prov:ve}),ge=ve({\u0275inj:ve}),ye=ve({ngInjectableDef:ve}),Re=ve({ngInjectorDef:ve});var se=(()=>((se=se||{})[se.Default=0]="Default",se[se.Host=1]="Host",se[se.Self=2]="Self",se[se.SkipSelf=4]="SkipSelf",se[se.Optional=8]="Optional",se))();let xe;function St(e){const t=xe;return xe=e,t}function Lt(e,t,n){const r=gt(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&se.Optional?null:void 0!==t?t:void ze(Me(e),"Injector")}function wt(e){return{toString:e}.toString()}var Qe=(()=>((Qe=Qe||{})[Qe.OnPush=0]="OnPush",Qe[Qe.Default=1]="Default",Qe))(),Le=(()=>((Le=Le||{})[Le.Emulated=0]="Emulated",Le[Le.None=2]="None",Le[Le.ShadowDom=3]="ShadowDom",Le))();const Ut="undefined"!=typeof globalThis&&globalThis,rn="undefined"!=typeof window&&window,Dr="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,nr="undefined"!=typeof global&&global,nt=Ut||nr||rn||Dr,xn={},mt=[],cr=ve({\u0275cmp:ve}),br=ve({\u0275dir:ve}),Gr=ve({\u0275pipe:ve}),gi=ve({\u0275mod:ve}),Wr=ve({\u0275loc:ve}),In=ve({\u0275fac:ve}),Fn=ve({__NG_ELEMENT_ID__:ve});let Kn=0;function et(e){return wt(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Qe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||mt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Le.Emulated,id:"c",styles:e.styles||mt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,s=e.pipes;return r.id+=Kn++,r.inputs=Kr(e.inputs,n),r.outputs=Kr(e.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Tn):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(En):null,r})}function Tn(e){return qt(e)||function(e){return e[br]||null}(e)}function En(e){return function(e){return e[Gr]||null}(e)}const Ln={};function yn(e){return wt(()=>{const t={type:e.type,bootstrap:e.bootstrap||mt,declarations:e.declarations||mt,imports:e.imports||mt,exports:e.exports||mt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Ln[e.id]=e.type),t})}function zr(e,t){return wt(()=>{const n=Yt(e,!0);n.declarations=t.declarations||mt,n.imports=t.imports||mt,n.exports=t.exports||mt})}function Kr(e,t){if(null==e)return xn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const rr=et;function Yn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function qt(e){return e[cr]||null}function Yt(e,t){const n=e[gi]||null;if(!n&&!0===t)throw new Error(`Type ${Me(e)} does not have '\u0275mod' property.`);return n}function sn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Dn(e){return Array.isArray(e)&&!0===e[1]}function pr(e){return 0!=(8&e.flags)}function Mr(e){return 2==(2&e.flags)}function jn(e){return 1==(1&e.flags)}function Pt(e){return null!==e.template}function Ir(e){return 0!=(512&e[2])}function Pr(e,t){return e.hasOwnProperty(In)?e[In]:null}class Yi{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Li(){return ki}function ki(e){return e.type.prototype.ngOnChanges&&(e.setInput=gr),Nr}function Nr(){const e=vi(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===xn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function gr(e,t,n,r){const i=vi(e)||function(e,t){return e[Zi]=t}(e,{previous:xn,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],d=s[a];o[a]=new Yi(d&&d.currentValue,t,s===xn),e[r]=t}Li.ngInherit=!0;const Zi="__ngSimpleChanges__";function vi(e){return e[Zi]||null}let pe;function Be(e){pe=e}function Dt(){return void 0!==pe?pe:"undefined"!=typeof document?document:void 0}function m(e){return!!e.listen}const M={createRenderer:(e,t)=>Dt()};function we(e){for(;Array.isArray(e);)e=e[0];return e}function Qt(e,t){return we(t[e])}function zt(e,t){return we(t[e.index])}function Rr(e,t){return e.data[t]}function mr(e,t){return e[t]}function bn(e,t){const n=t[e];return sn(n)?n:n[0]}function so(e){return 4==(4&e[2])}function Qr(e){return 128==(128&e[2])}function Xr(e,t){return null==t?null:e[t]}function ao(e){e[18]=0}function ks(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const st={lFrame:Hs(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ba(){return st.bindingsEnabled}function _e(){return st.lFrame.lView}function vt(){return st.lFrame.tView}function $a(e){return st.lFrame.contextLView=e,e[8]}function pn(){let e=ja();for(;null!==e&&64===e.type;)e=e.parent;return e}function ja(){return st.lFrame.currentTNode}function co(){const e=st.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function xr(e,t){const n=st.lFrame;n.currentTNode=e,n.isParent=t}function Us(){return st.lFrame.isParent}function To(){st.lFrame.isParent=!1}function Oo(){return st.isInCheckNoChangesMode}function Po(e){st.isInCheckNoChangesMode=e}function Hn(){const e=st.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yr(){return st.lFrame.bindingIndex}function Vi(){return st.lFrame.bindingIndex++}function Fr(e){const t=st.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Bs(e){st.lFrame.inI18n=e}function au(e,t){const n=st.lFrame;n.bindingIndex=n.bindingRootIndex=e,$s(t)}function $s(e){st.lFrame.currentDirectiveIndex=e}function Ga(){return st.lFrame.currentQueryIndex}function fo(e){st.lFrame.currentQueryIndex=e}function uu(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wa(e,t,n){if(n&se.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&se.Host||(i=uu(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=st.lFrame=Ro();return r.currentTNode=t,r.lView=e,!0}function No(e){const t=Ro(),n=e[1];st.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ro(){const e=st.lFrame,t=null===e?null:e.child;return null===t?Hs(e):t}function Hs(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function za(){const e=st.lFrame;return st.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ui=za;function xo(){const e=za();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Gn(){return st.lFrame.selectedIndex}function ei(e){st.lFrame.selectedIndex=e}function Xt(){const e=st.lFrame;return Rr(e.tView,e.selectedIndex)}function ti(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[d]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Ji{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Bo(e,t,n){const r=m(e);let i=0;for(;it){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Ks=!0;function jo(e){const t=Ks;return Ks=e,t}let f=0;function l(e,t){const n=C(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,p(r.data,e),p(t,null),p(r.blueprint,null));const i=b(e,t),o=e.injectorIndex;if(Qa(i)){const s=Qi(i),a=Ei(i,t),d=a[1].data;for(let g=0;g<8;g++)t[o+g]=a[s+g]|d[s+g]}return t[o+8]=i,o}function p(e,t){e.push(0,0,0,0,0,0,0,0,t)}function C(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function b(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function R(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Fn)&&(r=n[Fn]),null==r&&(r=n[Fn]=f++);const i=255&r;t.data[e+(i>>5)]|=1<=0?255&t:kt:t}(n);if("function"==typeof o){if(!Wa(t,e,r))return r&se.Host?q(i,n,r):Se(t,n,r,i);try{const s=o(r);if(null!=s||r&se.Optional)return s;ze(n)}finally{Ui()}}else if("number"==typeof o){let s=null,a=C(e,t),d=-1,g=r&se.Host?t[16][6]:null;for((-1===a||r&se.SkipSelf)&&(d=-1===a?b(e,t):t[a+8],-1!==d&&Bi(r,!1)?(s=t[1],a=Qi(d),t=Ei(d,t)):a=-1);-1!==a;){const D=t[1];if(Xi(o,a,D.data)){const I=Ct(a,t,n,s,r,g);if(I!==at)return I}d=t[a+8],-1!==d&&Bi(r,t[1].data[a+8]===g)&&Xi(o,a,t)?(s=D,a=Qi(d),t=Ei(d,t)):a=-1}}}return Se(t,n,r,i)}const at={};function kt(){return new sr(pn(),_e())}function Ct(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],D=_r(a,s,n,null==r?Mr(a)&&Ks:r!=s&&0!=(3&a.type),i&se.Host&&o===a);return null!==D?or(t,s,D,a):at}function _r(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,d=e.directiveStart,D=o>>20,T=i?a+D:e.directiveEnd;for(let k=r?a:a+D;k=d&&j.type===n)return k}if(i){const k=s[d];if(k&&Pt(k)&&k.type===n)return d}return null}function or(e,t,n,r){let i=e[n];const o=t.data;if(function(e){return e instanceof Ji}(i)){const s=i;s.resolving&&function(e,t){throw new $e("200",`Circular dependency in DI detected for ${e}`)}(X(o[n]));const a=jo(s.canSeeViewProviders);s.resolving=!0;const d=s.injectImpl?St(s.injectImpl):null;Wa(e,r,se.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=ki(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==d&&St(d),jo(a),s.resolving=!1,Ui()}}return i}function Xi(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[In]||_u(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[In]||_u(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function _u(e){return Ke(e)?()=>{const t=_u(he(e));return t&&t()}:Pr(e)}function vu(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{const r=function(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(d,g,D){const I=d.hasOwnProperty(Wo)?d[Wo]:Object.defineProperty(d,Wo,{value:[]})[Wo];for(;I.length<=D;)I.push(null);return(I[D]=I[D]||[]).push(s),d}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class ln{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=xt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const __=new ln("AnalyzeForEntryComponents"),el=Function;function kr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Di(n,t):t(n))}function nl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function mo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vr(e,t,n){let r=Ko(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Eu(e,t){const n=Ko(e,t);if(n>=0)return e[1|n]}function Ko(e,t){return function(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i< ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Me(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(I_,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Yo]=null,e}const qo=Xs(go("Inject",e=>({token:e})),-1),$i=Xs(go("Optional"),8),to=Xs(go("SkipSelf"),4);let sl;function Qo(e){var t;return(null===(t=function(){if(void 0===sl&&(sl=null,nt.trustedTypes))try{sl=nt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sl}())||void 0===t?void 0:t.createHTML(e))||e}class _o{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class j_ extends _o{getTypeName(){return"HTML"}}class H_ extends _o{getTypeName(){return"Style"}}class G_ extends _o{getTypeName(){return"Script"}}class W_ extends _o{getTypeName(){return"URL"}}class z_ extends _o{getTypeName(){return"ResourceURL"}}function ji(e){return e instanceof _o?e.changingThisBreaksApplicationSecurity:e}function Xo(e,t){const n=Ef(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Ef(e){return e instanceof _o&&e.getTypeName()||null}function K_(e){return new j_(e)}function Y_(e){return new H_(e)}function Z_(e){return new G_(e)}function q_(e){return new W_(e)}function J_(e){return new z_(e)}function Df(e){const t=new X_(e);return function(){try{return!!(new window.DOMParser).parseFromString(Qo(""),"text/html")}catch(e){return!1}}()?new Q_(t):t}class Q_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Qo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class X_{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Qo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Qo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0ta(t.trim())).join(", ")}function bi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function na(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const wf=bi("area,br,col,hr,img,wbr"),Af=bi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sf=bi("rp,rt"),Tu=na(wf,na(Af,bi("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")),na(Sf,bi("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")),na(Sf,Af)),Ou=bi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pu=bi("srcset"),Mf=na(Ou,Pu,bi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bi("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")),rv=bi("script,style,template");class iv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Tu.hasOwnProperty(n))return this.sanitizedSomething=!0,!rv.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i"),!0}endElement(t){const n=t.nodeName.toLowerCase();Tu.hasOwnProperty(n)&&!wf.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(If(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const ov=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sv=/([^\#-~ |!])/g;function If(e){return e.replace(/&/g,"&").replace(ov,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(sv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ll;function Tf(e,t){let n=null;try{ll=ll||Df(e);let r=t?String(t):"";n=ll.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ll.getInertBodyElement(r)}while(r!==o);return Qo((new iv).sanitizeChildren(Nu(n)||n))}finally{if(n){const r=Nu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Nu(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var un=(()=>((un=un||{})[un.NONE=0]="NONE",un[un.HTML=1]="HTML",un[un.STYLE=2]="STYLE",un[un.SCRIPT=3]="SCRIPT",un[un.URL=4]="URL",un[un.RESOURCE_URL=5]="RESOURCE_URL",un))();function Ru(e){const t=function(){const e=_e();return e&&e[12]}();return t?t.sanitize(un.URL,e)||"":Xo(e,"URL")?ji(e):ta(H(e))}const Nf="__ngContext__";function Jn(e,t){e[Nf]=t}function Fu(e){const t=function(e){return e[Nf]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ul(e){return e.ngOriginalError}function wv(e,...t){e.error(...t)}class es{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=this._findContext(t),i=(e=t)&&e.ngErrorLogger||wv;var e;i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n),r&&i(this._console,"ERROR CONTEXT",r)}_findContext(t){return t?t.ngDebugContext||this._findContext(ul(t)):null}_findOriginalError(t){let n=t&&ul(t);for(;n&&ul(n);)n=ul(n);return n||null}}const Mv=/^>|^->||--!>|)/;const $f=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(nt))();function wi(e){return e instanceof Function?e():e}var Ai=(()=>((Ai=Ai||{})[Ai.Important=1]="Important",Ai[Ai.DashCase=2]="DashCase",Ai))();let ku;function Vu(e,t){return ku(e,t)}function oa(e){const t=e[3];return Dn(t)?t[3]:t}function Uu(e){return zf(e[13])}function Bu(e){return zf(e[4])}function zf(e){for(;null!==e&&!Dn(e);)e=e[4];return e}function ns(e,t,n,r,i){if(null!=r){let o,s=!1;Dn(r)?o=r:sn(r)&&(s=!0,r=r[0]);const a=we(r);0===e&&null!==n?null==i?Qf(t,n,a):vo(t,n,a,i||null,!0):1===e&&null!==n?vo(t,n,a,i||null,!0):2===e?oh(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,r,i){const o=n[7];o!==we(n)&&ns(t,e,r,o,i);for(let a=10;at.replace(Iv,"\u200b$1\u200b"))}(t))}function ju(e,t,n){return m(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Yf(e,t){const n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,ks(i,-1)),n.splice(r,1)}function Hu(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&Yf(i,r),t>0&&(e[n-1][4]=r[4]);const o=mo(e,10+t);!function(e,t){sa(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Zf(e,t){if(!(256&t[2])){const n=t[11];m(n)&&n.destroyNode&&sa(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Gu(e[1],e);for(;t;){let n=null;if(sn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)sn(t)&&Gu(t[1],t),t=t[3];null===t&&(t=e),sn(t)&&Gu(t[1],t),n=t&&t[4]}t=n}}(t)}}function Gu(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[i=g]():r[i=-g].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;oo?"":i[I+1].toLowerCase();const k=8&r?T:null;if(k&&-1!==lh(k,g,0)||2&r&&g!==T){if(ri(r))return!1;s=!0}}}}else{if(!s&&!ri(r)&&!ri(d))return!1;if(s&&ri(d))continue;s=!1,r=d|1&r}}return ri(r)||s}function ri(e){return 0==(1&e)}function Xv(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!ri(s)&&(t+=fh(o,i),i=""),r=s,o=o||!ri(r);n++}return""!==i&&(t+=fh(o,i)),t}const dt={};function hh(e){ph(vt(),_e(),Gn()+e,Oo())}function ph(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&ho(t,o,n)}else{const o=e.preOrderHooks;null!==o&&Vo(t,o,0,n)}ei(n)}function pl(e,t){return e<<17|t<<2}function ii(e){return e>>17&32767}function Zu(e){return 2|e}function Hi(e){return(131068&e)>>2}function qu(e,t){return-131069&e|t<<2}function Ju(e){return 1|e}function wh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&ph(e,t,20,Oo()),n(r,i)}finally{ei(o)}}function Sh(e,t,n){if(pr(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=d&&a.push(d),a.push(r,i,s)}}function xh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function OC(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&uc(n)}}function uc(e){for(let r=Uu(e);null!==r;r=Bu(r))for(let i=10;i0&&uc(o)}const n=e[1].components;if(null!==n)for(let r=0;r0&&uc(i)}}function kC(e,t){const n=bn(t,e),r=n[1];(function(e,t){for(let n=t.length;nPromise.resolve(null))();function Bh(e){return e[7]||(e[7]=[])}function $h(e){return e.cleanup||(e.cleanup=[])}function Hh(e,t){const n=e[9],r=n?n.get(es,null):null;r&&r.handleError(t)}function Gh(e,t,n,r,i){for(let o=0;othis.processProvider(a,t,n)),Di([t],a=>this.processInjectorType(a,[],o)),this.records.set(ss,as(void 0,this));const s=this.records.get(ua);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:Me(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Js,r=se.Default){this.assertNotDestroyed();const i=Zo(this),o=St(void 0);try{if(!(r&se.SkipSelf)){let a=this.records.get(t);if(void 0===a){const d=("function"==typeof(e=t)||"object"==typeof e&&e instanceof ln)&>(t);a=d&&this.injectableDefInScope(d)?as(gc(t),ca):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&se.Self?zh():this.parent).get(t,n=r&se.Optional&&n===Js?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Yo]=s[Yo]||[]).unshift(Me(t)),i)throw s;return hf(s,t,"R3InjectorError",this.source)}throw s}finally{St(o),Zo(i)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(Me(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=he(t)))return!1;let i=G(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=G(o)),null==i)return!1;if(null!=i.imports&&!a){let D;r.push(s);try{Di(i.imports,I=>{this.processInjectorType(I,n,r)&&(void 0===D&&(D=[]),D.push(I))})}finally{}if(void 0!==D)for(let I=0;Ithis.processProvider(j,T,k||mt))}}this.injectorDefTypes.add(s);const d=Pr(s)||(()=>new s);this.records.set(s,as(d,ca));const g=i.providers;if(null!=g&&!a){const D=t;Di(g,I=>this.processProvider(I,D,g))}return void 0!==o&&void 0!==t.providers}processProvider(t,n,r){let i=ls(t=he(t))?t:he(t&&t.provide);const o=Zh(e=t)?as(void 0,e.useValue):as(Yh(e),ca);var e;if(ls(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=as(void 0,ca,!0),s.factory=()=>yo(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,n){return n.value===ca&&(n.value=WC,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=he(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function gc(e){const t=gt(e),n=null!==t?t.factory:Pr(e);if(null!==n)return n;if(e instanceof ln)throw new Error(`Token ${Me(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=function(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new Error("unreachable")}function Yh(e,t,n){let r;if(ls(e)){const i=he(e);return Pr(i)||gc(i)}if(Zh(e))r=()=>he(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...yo(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>vn(he(e.useExisting));else{const i=he(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Pr(i)||gc(i);r=()=>new i(...yo(e.deps))}return r}function as(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zh(e){return null!==e&&"object"==typeof e&&Au in e}function ls(e){return"function"==typeof e}const qh=function(e,t,n){return function(e,t=null,n=null,r){const i=Kh(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};class Vt{static create(t,n){return Array.isArray(t)?qh(t,n,""):qh(t.providers,t.parent,t.name||"")}}function pE(e,t){ti(Fu(e)[1],pn())}function Ec(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Pt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const s=e;s.inputs=Dc(e.inputs),s.declaredInputs=Dc(e.declaredInputs),s.outputs=Dc(e.outputs);const a=i.hostBindings;a&&_E(e,a);const d=i.viewQuery,g=i.contentQueries;if(d&&mE(e,d),g&&yE(e,g),He(e.inputs,i.inputs),He(e.declaredInputs,i.declaredInputs),He(e.outputs,i.outputs),Pt(i)&&i.data.animation){const D=e.data;D.animation=(D.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=$o(i.hostAttrs,n=$o(n,i.hostAttrs))}}(r)}function Dc(e){return e===xn?{}:e===mt?[]:e}function mE(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function yE(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,o)=>{t(r,i,o),n(r,i,o)}:t}function _E(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}Vt.THROW_IF_NOT_FOUND=Js,Vt.NULL=new Wh,Vt.\u0275prov=xt({token:Vt,providedIn:"any",factory:()=>vn(ss)}),Vt.__NG_ELEMENT_ID__=-1;let Cl=null;function us(){if(!Cl){const e=nt.Symbol;if(e&&e.iterator)Cl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(we(Je[r.index])):r.index;if(m(n)){let Je=null;if(!a&&d&&(Je=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;od?a[d]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==Je)(Je.__ngLastListenerFn__||Je).__ngNextListenerFn__=o,Je.__ngLastListenerFn__=o,k=!1;else{o=Vc(r,t,I,o,!1);const pt=n.listen(Ce,i,o);T.push(o,pt),D&&D.push(i,ke,de,de+1)}}else o=Vc(r,t,I,o,!0),Ce.addEventListener(i,o,s),T.push(o),D&&D.push(i,ke,de,s)}else o=Vc(r,t,I,o,!1);const j=r.outputs;let J;if(k&&null!==j&&(J=j[i])){const z=J.length;if(z)for(let Ce=0;Ce0;)t=t[15],e--;return t}(e,st.lFrame.contextLView))[8]}(e)}function Uc(e,t,n){return bl(e,"",t,"",n),Uc}function bl(e,t,n,r,i){const o=_e(),s=ds(o,t,n,r);return s!==dt&&Cr(vt(),Xt(),o,e,s,o[11],i,!1),bl}function Bc(e,t,n,r,i,o,s){const a=_e(),d=fs(a,t,n,r,i,o);return d!==dt&&Cr(vt(),Xt(),a,e,d,a[11],s,!1),Bc}function qp(e,t,n,r,i){const o=e[n+1],s=null===t;let a=r?ii(o):Hi(o),d=!1;for(;0!==a&&(!1===d||s);){const D=e[a+1];iD(e[a],t)&&(d=!0,e[a+1]=r?Ju(D):Zu(D)),a=r?ii(D):Hi(D)}d&&(e[n+1]=r?Zu(o):Ju(o))}function iD(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ko(e,t)>=0}const An={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jp(e){return e.substring(An.key,An.keyEnd)}function Qp(e,t){const n=An.textEnd;return n===t?-1:(t=An.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,An.key=t,n),Cs(e,t,n))}function Cs(e,t,n){for(;t=0;n=Qp(t,n))vr(e,Jp(t),!0)}function ai(e,t,n,r){const i=_e(),o=vt(),s=Fr(2);o.firstUpdatePass&&og(o,e,s,r),t!==dt&&Qn(i,s,t)&&ag(o,o.data[Gn()],i,i[11],e,i[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Me(ji(e)))),e}(t,n),r,s)}function ig(e,t){return t>=e.expandoStartIndex}function og(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[Gn()],s=ig(e,n);ug(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const i=function(e){const t=st.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=ga(n=Hc(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Hc(i,e,t,n,r),null===o){let d=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Hi(r))return e[ii(r)]}(e,t,r);void 0!==d&&Array.isArray(d)&&(d=Hc(null,e,t,d[1],r),d=ga(d,t.attrs,r),function(e,t,n,r){e[ii(n?t.classBindings:t.styleBindings)]=r}(e,t,r,d))}else o=function(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(g=!0)}else D=n;if(i)if(0!==d){const T=ii(e[a+1]);e[r+1]=pl(T,a),0!==T&&(e[T+1]=qu(e[T+1],r)),e[a+1]=function(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=pl(a,0),0!==a&&(e[a+1]=qu(e[a+1],r)),a=r;else e[r+1]=pl(d,0),0===a?a=r:e[d+1]=qu(e[d+1],r),d=r;g&&(e[r+1]=Zu(e[r+1])),qp(e,D,r,!0),qp(e,D,r,!1),function(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ko(o,t)>=0&&(n[r+1]=Ju(n[r+1]))}(t,D,e,r,o),s=pl(a,d),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function Hc(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const d=e[i],g=Array.isArray(d),D=g?d[1]:d,I=null===D;let T=n[i+1];T===dt&&(T=I?mt:void 0);let k=I?Eu(T,r):D===r?T:void 0;if(g&&!wl(k)&&(k=Eu(d,r)),wl(k)&&(a=k,s))return a;const j=e[i+1];i=s?ii(j):Hi(j)}if(null!==t){let d=o?t.residualClasses:t.residualStyles;null!=d&&(a=Eu(d,r))}return a}function wl(e){return void 0!==e}function ug(e,t){return 0!=(e.flags&(t?16:32))}function cg(e,t=""){const n=_e(),r=vt(),i=e+20,o=r.firstCreatePass?rs(r,i,1,t,null):r.data[i],s=n[i]=$u(n[11],t);fl(r,n,s,o),xr(o,!1)}function Gc(e){return Al("",e,""),Gc}function Al(e,t,n){const r=_e(),i=ds(r,e,t,n);return i!==dt&&Wi(r,Gn(),i),Al}function Wc(e,t,n,r,i){const o=_e(),s=fs(o,e,t,n,r,i);return s!==dt&&Wi(o,Gn(),s),Wc}function zc(e,t,n){const r=_e();return Qn(r,Vi(),t)&&Cr(vt(),Xt(),r,e,t,r[11],n,!0),zc}const Eo=void 0;var VD=["en",[["a","p"],["AM","PM"],Eo],[["AM","PM"],Eo,Eo],[["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"]],Eo,[["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"]],Eo,[["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}",Eo,"{1} 'at' {0}",Eo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Es={};function Kc(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Tg(t);if(n)return n;const r=t.split("-")[0];if(n=Tg(r),n)return n;if("en"===r)return VD;throw new Error(`Missing locale data for the locale "${e}".`)}function Ig(e){return Kc(e)[qe.PluralCase]}function Tg(e){return e in Es||(Es[e]=nt.ng&&nt.ng.common&&nt.ng.common.locales&&nt.ng.common.locales[e]),Es[e]}var qe=(()=>((qe=qe||{})[qe.LocaleId=0]="LocaleId",qe[qe.DayPeriodsFormat=1]="DayPeriodsFormat",qe[qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",qe[qe.DaysFormat=3]="DaysFormat",qe[qe.DaysStandalone=4]="DaysStandalone",qe[qe.MonthsFormat=5]="MonthsFormat",qe[qe.MonthsStandalone=6]="MonthsStandalone",qe[qe.Eras=7]="Eras",qe[qe.FirstDayOfWeek=8]="FirstDayOfWeek",qe[qe.WeekendRange=9]="WeekendRange",qe[qe.DateFormat=10]="DateFormat",qe[qe.TimeFormat=11]="TimeFormat",qe[qe.DateTimeFormat=12]="DateTimeFormat",qe[qe.NumberSymbols=13]="NumberSymbols",qe[qe.NumberFormats=14]="NumberFormats",qe[qe.CurrencyCode=15]="CurrencyCode",qe[qe.CurrencySymbol=16]="CurrencySymbol",qe[qe.CurrencyName=17]="CurrencyName",qe[qe.Currencies=18]="Currencies",qe[qe.Directionality=19]="Directionality",qe[qe.PluralCase=20]="PluralCase",qe[qe.ExtraData=21]="ExtraData",qe))();const BD=["zero","one","two","few","many"],Sl="en-US",Ml={marker:"element"},Il={marker:"ICU"};var cn=(()=>((cn=cn||{})[cn.SHIFT=2]="SHIFT",cn[cn.APPEND_EAGERLY=1]="APPEND_EAGERLY",cn[cn.COMMENT=2]="COMMENT",cn))();let Og=Sl;function Yc(e){(function(e,t){null==e&&it(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Og=e.toLowerCase().replace(/_/g,"-"))}function Pg(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?th(e,0,n):we(n[i])}function Ng(e,t,n,r,i){const o=t.insertBeforeIndex;if(Array.isArray(o)){let s=r,a=null;if(3&t.type||(a=s,s=i),null!==s&&0==(2&t.flags))for(let d=1;d1)for(let n=e.length-2;n>=0;n--){const r=e[n];xg(r)||GD(r,t)&&null===WD(r)&&zD(r,t.index)}}function xg(e){return!(64&e.type)}function GD(e,t){return xg(t)||e.index>t.index}function WD(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function zD(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(rh(Pg,Ng),e.insertBeforeIndex=t)}function ma(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function ZD(e,t,n){const r=ic(e,n,64,null,null);return Rg(t,r),r}function Tl(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Fg(e){return e>>>17}function Lg(e){return(131070&e)>>>1}let ya=0,_a=0;function Vg(e,t,n,r){const i=n[11];let s,o=null;for(let a=0;a>>1,n),null,null,k,j,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${d}"`)}else switch(d){case Il:const g=t[++a],D=t[++a];null===n[D]&&Jn(n[D]=Lv(i,g),n);break;case Ml:const I=t[++a],T=t[++a];null===n[T]&&Jn(n[T]=ju(i,I,null),n)}}}function Ug(e,t,n,r,i){for(let o=0;o>>2;switch(3&D){case 1:const T=n[++g],k=n[++g],j=e.data[I];"string"==typeof j?lc(t[11],t[I],null,j,T,d,k):Cr(e,j,t,T,d,t[11],k,!1);break;case 0:const J=t[I];null!==J&&Kf(t[11],J,d);break;case 2:e0(e,ma(e,I),t,d);break;case 3:Bg(e,ma(e,I),r,t)}}}}else{const d=n[o+1];if(d>0&&3==(3&d)){const D=ma(e,d>>>2);t[D.currentCaseLViewIndex]<0&&Bg(e,D,r,t)}}o+=a}}function Bg(e,t,n,r){let i=r[t.currentCaseLViewIndex];if(null!==i){let o=ya;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),Ug(e,r,t.update[i],n,o)}}function e0(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=Ig(t)(parseInt(e,10)),r=BD[n];return void 0!==r?r:"other"}(t,Og);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(Tl(t,n)!==i&&($g(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const s=n[t.anchorIdx];s&&Vg(e,t.create[i],n,s)}}function $g(e,t,n){let r=Tl(t,n);if(null!==r){const i=t.remove[r];for(let o=0;o0){const a=Qt(s,n);null!==a&&oh(n[11],a)}else $g(e,ma(e,~s),n)}}}function n0(){const e=[];let n,r,t=-1;function o(a,d){t=0;const g=Tl(a,d);r=null!==g?a.remove[g]:mt}function s(){if(t0?n[a]:(e.push(t,r),o(n[1].data[~a],n),s())}return 0===e.length?null:(r=e.pop(),t=e.pop(),s())}return function(a,d){for(n=d;e.length;)e.pop();return o(a.value,d),s}}const Ol=/\ufffd(\d+):?\d*\ufffd/gi,i0=/\ufffd(\d+)\ufffd/,Hg=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,o0=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,s0=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,a0=/\uE500/g;function Gg(e,t,n,r,i,o,s){const a=is(e,r,1,null);let d=a<n.length&&n.push(d)}return{type:r,mainBinding:i,cases:t,values:n}}function Zc(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(e);){const a=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const d=e.substring(t,a);Hg.test(d)?r.push(g0(d)):r.push(d),t=a+1}}else{if(0==n.length){const d=e.substring(t,a);r.push(d),t=a+1}n.push("{")}}const s=e.substring(t);return r.push(s),r}function m0(e,t,n,r,i,o,s,a){const d=[],g=[],D=[];t.cases.push(o),t.create.push(d),t.remove.push(g),t.update.push(D);const T=Df(Dt()).getInertBodyElement(s),k=Nu(T)||T;return k?Yg(e,t,n,r,d,g,D,k,i,a,0):0}function Yg(e,t,n,r,i,o,s,a,d,g,D){let I=0,T=a.firstChild;for(;T;){const k=is(e,n,1,null);switch(T.nodeType){case Node.ELEMENT_NODE:const j=T,J=j.tagName.toLowerCase();if(Tu.hasOwnProperty(J)){qc(i,Ml,J,d,k),e.data[k]=J;const ke=j.attributes;for(let Je=0;Je>>cn.SHIFT;let I=e[D];null===I&&(I=e[D]=d?i.createComment(a):$u(i,a)),g&&null!==n&&vo(i,n,I,r,!1)}})(i,d.create,D,a&&8&a.type?i[a.index]:null),Bs(!0)}function Qc(){Bs(!1)}function Jg(e,t,n){Jc(e,t,n),Qc()}function Xc(e){return function(e){e&&(ya|=1<0){const r=e.data[n];Ug(e,t,Array.isArray(r)?r:r.update,yr()-_a-1,ya)}ya=0,_a=0}(vt(),_e(),e+20)}function Xg(e,t={}){return function(e,t={}){let n=e;if(E0.test(e)){const r={},i=[0];n=n.replace(D0,(o,s,a)=>{const d=s||a,g=r[d]||[];if(g.length||(d.split("|").forEach(J=>{const z=J.match(M0),Ce=z?parseInt(z[1],10):0,de=S0.test(J);g.push([Ce,de,J])}),r[d]=g),!g.length)throw new Error(`i18n postprocess: unmatched placeholder - ${d}`);const D=i[i.length-1];let I=0;for(let J=0;Jt.hasOwnProperty(o)?`${i}${t[o]}${d}`:r),n=n.replace(w0,(r,i)=>t.hasOwnProperty(i)?t[i]:r),n=n.replace(A0,(r,i)=>{if(t.hasOwnProperty(i)){const o=t[i];if(!o.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${i}`);return o.shift()}return r})),n}(e,t)}function ed(e,t,n,r,i){if(e=he(e),Array.isArray(e))for(let o=0;o>20;if(ls(e)||!e.multi){const k=new Ji(d,i,pa),j=nd(a,t,i?D:D+T,I);-1===j?(R(l(g,s),o,a),td(o,e,t.length),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(k),s.push(k)):(n[j]=k,s[j]=k)}else{const k=nd(a,t,D+T,I),j=nd(a,t,D,D+T),J=k>=0&&n[k],z=j>=0&&n[j];if(i&&!z||!i&&!J){R(l(g,s),o,a);const Ce=function(e,t,n,r,i){const o=new Ji(e,n,pa);return o.multi=[],o.index=t,o.componentProviders=0,em(o,i,r&&!n),o}(i?N0:P0,n.length,i,r,d);!i&&z&&(n[j].providerFactory=Ce),td(o,e,t.length,0),t.push(a),g.directiveStart++,g.directiveEnd++,i&&(g.providerIndexes+=1048576),n.push(Ce),s.push(Ce)}else td(o,e,k>-1?k:j,em(n[i?j:k],d,!i&&r));!i&&r&&z&&n[j].componentProviders++}}}function td(e,t,n,r){const i=ls(t);if(i||function(e){return!!e.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const d=a.indexOf(n);-1===d?a.push(n,[r,s]):a[d+1].push(r,s)}else a.push(n,s)}}}function em(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function nd(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>function(e,t,n){const r=vt();if(r.firstCreatePass){const i=Pt(e);ed(n,r.data,r.blueprint,i,!0),ed(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class nm{}const im="ngComponent";class F0{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${Me(e)}. Did you add it to @NgModule.entryComponents?`);return t[im]=e,t}(t)}}class Do{}function Pl(...e){}function bs(e,t){return new Oi(zt(e,t))}Do.NULL=new F0;const V0=function(){return bs(pn(),_e())};let Oi=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=V0,e})();function om(e){return e instanceof Oi?e.nativeElement:e}class Nl{}let U0=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>$0(),e})();const $0=function(){const e=_e(),n=bn(pn().index,e);return function(e){return e[11]}(sn(n)?n:e)};let od=(()=>{class e{}return e.\u0275prov=xt({token:e,providedIn:"root",factory:()=>null}),e})();class sm{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const am=new sm("12.2.4");class lm{constructor(){}supports(t){return fa(t)}create(t){return new W0(t)}}const G0=(e,t)=>t;class W0{constructor(t){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=t||G0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new z0(n,r),o,i),t}_verifyReinsertion(t,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new um),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new um),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class z0{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class K0{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class um{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new K0,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cm(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new Z0(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class Z0{constructor(t){this.key=t,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 fm(){return new Rl([new lm])}let Rl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||fm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:fm}),e})();function hm(){return new xl([new dm])}let xl=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||hm()),deps:[[e,new to,new $i]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=xt({token:e,providedIn:"root",factory:hm}),e})();function Fl(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(we(o)),Dn(o))for(let a=10;a-1&&(Hu(t,r),mo(n,r))}this._attachedToViewContainer=!1}Zf(this._lView[1],this._lView)}onDestroy(t){Oh(this._lView[1],this._lView,null,t)}markForCheck(){cc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){fc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Po(!0);try{fc(e,t,n)}finally{Po(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,sa(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class J0 extends Ca{constructor(t){super(t),this._view=t}detectChanges(){Uh(this._view)}checkNoChanges(){!function(e){Po(!0);try{Uh(e)}finally{Po(!1)}}(this._view)}get context(){return null}}const X0=function(e){return function(e,t,n){if(Mr(e)&&!n){const r=bn(e.index,t);return new Ca(r,r)}return 47&e.type?new Ca(t[16],t):null}(pn(),_e(),16==(16&e))};let eb=(()=>{class e{}return e.__NG_ELEMENT_ID__=X0,e})();const rb=[new dm],ob=new Rl([new lm]),sb=new xl(rb),lb=function(){return Ll(pn(),_e())};let Ea=(()=>{class e{}return e.__NG_ELEMENT_ID__=lb,e})();const ub=Ea,cb=class extends ub{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=aa(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(n)),la(n,r,t),new Ca(r)}};function Ll(e,t){return 4&e.type?new cb(t,e,bs(e,t)):null}class bo{}class pm{}const hb=function(){return ym(pn(),_e())};let kl=(()=>{class e{}return e.__NG_ELEMENT_ID__=hb,e})();const gb=kl,gm=class extends gb{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return bs(this._hostTNode,this._hostLView)}get injector(){return new sr(this._hostTNode,this._hostLView)}get parentInjector(){const t=b(this._hostTNode,this._hostLView);if(Qa(t)){const n=Ei(t,this._hostLView),r=Qi(t);return new sr(n[1].data[r+8],n)}return new sr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=mm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const i=t.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(t,n,r,i,o){const s=r||this.parentInjector;if(!o&&null==t.ngModule&&s){const d=s.get(bo,null);d&&(o=d)}const a=t.create(s,i,void 0,o);return this.insert(a.hostView,n),a}insert(t,n){const r=t._lView,i=r[1];if(Dn(r[3])){const D=this.indexOf(t);if(-1!==D)this.detach(D);else{const I=r[3],T=new gm(I,I[6],I[3]);T.detach(T.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;!function(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r$f});class Um extends nm{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(iC).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Vm(this.componentDef.inputs)}get outputs(){return Vm(this.componentDef.outputs)}create(t,n,r,i){const o=(i=i||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const o=e.get(n,Ms,i);return o!==Ms||r===Ms?o:t.get(n,r,i)}}}(t,i.injector):t,s=o.get(Nl,M),a=o.get(od,null),d=s.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",D=r?function(e,t,n){if(m(e))return e.selectRootElement(t,n===Le.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(d,r,this.componentDef.encapsulation):ju(s.createRenderer(null,this.componentDef),g,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(g)),I=this.componentDef.onPush?576:528,T=function(e,t){return{components:[],scheduler:e||$f,clean:jC,playerHandler:t||null,flags:0}}(),k=yl(0,null,null,1,0,null,null,null,null,null),j=aa(null,k,T,I,null,null,s,d,a,o);let J,z;No(j);try{const Ce=function(e,t,n,r,i,o){const s=n[1];n[20]=e;const d=rs(s,20,2,"#host",null),g=d.mergedAttrs=t.hostAttrs;null!==g&&(vl(d,g,!0),null!==e&&(Bo(i,e,g),null!==d.classes&&Yu(i,e,d.classes),null!==d.styles&&ah(i,e,d.styles)));const D=r.createRenderer(e,t),I=aa(n,Mh(t),null,t.onPush?64:16,n[20],d,r,D,o||null,null);return s.firstCreatePass&&(R(l(d,n),s,t.type),Fh(s,d),Lh(d,n.length,1)),_l(n,I),n[20]=I}(D,this.componentDef,j,s,d);if(D)if(r)Bo(d,D,["ng-version",am.full]);else{const{attrs:de,classes:ke}=function(e){const t=[],n=[];let r=1,i=2;for(;r0&&Yu(d,D,ke.join(" "))}if(z=Rr(k,20),void 0!==n){const de=z.projection=[];for(let ke=0;ked(s,t)),t.contentQueries){const d=pn();t.contentQueries(1,s,d.directiveStart)}const a=pn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ei(a.index),Rh(n[1],a,0,a.directiveStart,a.directiveEnd,t),xh(t,s)),s}(Ce,this.componentDef,j,T,[pE]),la(k,j,null)}finally{xo()}return new pw(this.componentType,J,bs(z,j),j,z)}}class pw extends class{}{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new J0(i),this.componentType=t}get injector(){return new sr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Is=new Map;class yw extends bo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new km(this);const r=Yt(t),i=t[Wr]||null;i&&Yc(i),this._bootstrapComponents=wi(r.bootstrap),this._r3Injector=Kh(t,n,[{provide:bo,useValue:this},{provide:Do,useValue:this.componentFactoryResolver}],Me(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Vt.THROW_IF_NOT_FOUND,r=se.Default){return t===Vt||t===bo||t===ss?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class vd extends pm{constructor(t){super(),this.moduleType=t,null!==Yt(t)&&function(e){const t=new Set;!function n(r){const i=Yt(r,!0),o=i.id;null!==o&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${Me(t)} vs ${Me(t.name)}`)}(o,Is.get(o),r),Is.set(o,r));const s=wi(i.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new yw(this.moduleType,t)}}function jm(e,t,n){const r=Hn()+e,i=_e();return i[r]===dt?Mi(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function Hm(e,t,n,r){return function(e,t,n,r,i,o){const s=t+n;return Qn(e,s,i)?Mi(e,s+1,o?r.call(o,i):r(i)):Ta(e,s+1)}(_e(),Hn(),e,t,n,r)}function Ta(e,t){const n=e[t];return n===dt?void 0:n}function Zm(e,t){const n=vt();let r;const i=e+20;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new $e("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Pr(r.type)),s=St(pa);try{const a=jo(!1),d=o();return jo(a),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_e(),i,d),d}finally{St(s)}}function qm(e,t,n,r){const i=e+20,o=_e(),s=mr(o,i);return function(e,t){si.isWrapped(t)&&(t=si.unwrap(t),e[yr()]=dt);return t}(o,function(e,t){return e[1].data[t].pure}(o,i)?function(e,t,n,r,i,o,s){const a=t+n;return Co(e,a,i,o)?Mi(e,a+2,s?r.call(s,i,o):r(i,o)):Ta(e,a+2)}(o,Hn(),t,s.transform,n,r,s):s.transform(n,r))}function Cd(e){return t=>{setTimeout(e,void 0,t)}}const Pi=class extends K.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,o,s;let a=t,d=n||(()=>null),g=r;if(t&&"object"==typeof t){const I=t;a=null===(i=I.next)||void 0===i?void 0:i.bind(I),d=null===(o=I.error)||void 0===o?void 0:o.bind(I),g=null===(s=I.complete)||void 0===s?void 0:s.bind(I)}this.__isAsync&&(d=Cd(d),a&&(a=Cd(a)),g&&(g=Cd(g)));const D=super.subscribe({next:a,error:d,complete:g});return t instanceof P.w0&&t.add(D),D}};function Nw(){return this._results[us()]()}class jl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=us(),r=jl.prototype;r[n]||(r[n]=Nw)}get changes(){return this._changes||(this._changes=new Pi)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=kr(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0)r.push(s[a/2]);else{const g=o[a+1],D=t[-d];for(let I=10;I{class e{constructor(n){this.appInits=n,this.resolve=Pl,this.reject=Pl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:d})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(vn(Pd,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const wy=new ln("AppId"),hA={provide:wy,useFactory:function(){return`${Nd()}${Nd()}${Nd()}`},deps:[]};function Nd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ay=new ln("Platform Initializer"),Sy=new ln("Platform ID"),My=new ln("appBootstrapListener");let Iy=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const Wl=new ln("LocaleId"),Ty=new ln("DefaultCurrencyCode");class gA{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Rd=function(e){return new vd(e)},mA=Rd,yA=function(e){return Promise.resolve(Rd(e))},Oy=function(e){const t=Rd(e),r=wi(Yt(e).declarations).reduce((i,o)=>{const s=qt(o);return s&&i.push(new Um(s)),i},[]);return new gA(t,r)},_A=Oy,vA=function(e){return Promise.resolve(Oy(e))};let Ra=(()=>{class e{constructor(){this.compileModuleSync=mA,this.compileModuleAsync=yA,this.compileModuleAndAllComponentsSync=_A,this.compileModuleAndAllComponentsAsync=vA}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();const DA=(()=>Promise.resolve(0))();function xd(e){"undefined"==typeof Zone?DA.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Er{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pi(!1),this.onMicrotaskEmpty=new Pi(!1),this.onStable=new Pi(!1),this.onError=new Pi(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let e=nt.requestAnimationFrame,t=nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(nt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ld(e),e.isCheckStableRunning=!0,Fd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ld(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return Py(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Ny(e)}},onInvoke:(n,r,i,o,s,a,d)=>{try{return Py(e),n.invoke(i,o,s,a,d)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ny(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Ld(e),Fd(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Er.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Er.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,wA,Pl,Pl);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const wA={};function Fd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ld(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Py(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ny(e){e._nesting--,Fd(e)}class MA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pi,this.onMicrotaskEmpty=new Pi,this.onStable=new Pi,this.onError=new Pi}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}let Ry=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Er.assertNotInAngularZone(),xd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())xd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(vn(Er))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})(),xy=(()=>{class e{constructor(){this._applications=new Map,kd.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return kd.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();class IA{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function TA(e){kd=e}let kd=new IA,Fy=!0,Ly=!1;function OA(){if(Ly)throw new Error("Cannot enable prod mode after platform setup.");Fy=!1}let di;const Vy=new ln("AllowMultipleToken");class kA{constructor(t,n){this.name=t,this.token=n}}function Uy(e,t,n=[]){const r=`Platform: ${t}`,i=new ln(r);return(o=[])=>{let s=By();if(!s||s.injector.get(Vy,!1))if(e)e(n.concat(o).concat({provide:i,useValue:!0}));else{const a=n.concat(o).concat({provide:i,useValue:!0},{provide:ua,useValue:"platform"});!function(e){if(di&&!di.destroyed&&!di.injector.get(Vy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");di=e.get($y);const t=e.get(Ay,null);t&&t.forEach(n=>n())}(Vt.create({providers:a,name:r}))}return function(e){const t=By();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function By(){return di&&!di.destroyed?di:null}let $y=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(e,t){let n;return n="noop"===e?new MA:("zone.js"===e?void 0:e)||new Er({enableLongStackTrace:(Ly=!0,Fy),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),d=[{provide:Er,useValue:a}];return a.run(()=>{const g=Vt.create({providers:d,parent:this.injector,name:n.moduleType.name}),D=n.create(g),I=D.injector.get(es,null);if(!I)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const T=a.onError.subscribe({next:k=>{I.handleError(k)}});D.onDestroy(()=>{Vd(this._modules,D),T.unsubscribe()})}),function(e,t,n){try{const r=n();return Fc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(I,a,()=>{const T=D.injector.get(Os);return T.runInitializers(),T.donePromise.then(()=>(Yc(D.injector.get(Wl,Sl)||Sl),this._moduleDoBootstrap(D),D))})})}bootstrapModule(n,r=[]){const i=jy({},r);return function(e,t,n){const r=new vd(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(xa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${Me(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(vn(Vt))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function jy(e,t){return Array.isArray(t)?t.reduce(jy,e):Object.assign(Object.assign({},e),t)}let xa=(()=>{class e{constructor(n,r,i,o,s){this._zone=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new x.y(g=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{g.next(this._stable),g.complete()})}),d=new x.y(g=>{let D;this._zone.runOutsideAngular(()=>{D=this._zone.onStable.subscribe(()=>{Er.assertNotInAngularZone(),xd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,g.next(!0))})})});const I=this._zone.onUnstable.subscribe(()=>{Er.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{g.next(!1)}))});return()=>{D.unsubscribe(),I.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t{this.detachView(a.hostView),Vd(this.components,a),D&&D.unregisterApplication(d)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Vd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(My,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(vn(Er),vn(Vt),vn(es),vn(Do),vn(Os))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function Vd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class HA{}class WA{}const zA={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let KA=(()=>{class e{constructor(n,r){this._compiler=n,this._config=r||zA}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,i]=n.split("#");return void 0===i&&(i="default"),O(8255)(r).then(o=>o[i]).then(o=>zy(o,r,i)).then(o=>this._compiler.compileModuleAsync(o))}loadFactory(n){let[r,i]=n.split("#"),o="NgFactory";return void 0===i&&(i="default",o=""),O(8255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(s=>s[i+o]).then(s=>zy(s,r,i))}}return e.\u0275fac=function(n){return new(n||e)(vn(Ra),vn(WA,8))},e.\u0275prov=xt({token:e,factory:e.\u0275fac}),e})();function zy(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const tS=function(e){return null},rS=Uy(null,"core",[{provide:Sy,useValue:"unknown"},{provide:$y,deps:[Vt]},{provide:xy,deps:[]},{provide:Iy,deps:[]}]),lS=[{provide:xa,useClass:xa,deps:[Er,Vt,es,Do,Os]},{provide:dw,deps:[Er],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Os,useClass:Os,deps:[[new $i,Pd]]},{provide:Ra,useClass:Ra,deps:[]},hA,{provide:Rl,useFactory:function(){return ob},deps:[]},{provide:xl,useFactory:function(){return sb},deps:[]},{provide:Wl,useFactory:function(e){return Yc(e=e||"undefined"!=typeof $localize&&$localize.locale||Sl),e},deps:[[new qo(Wl),new $i,new to]]},{provide:Ty,useValue:"USD"}];let cS=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(vn(xa))},e.\u0275mod=yn({type:e}),e.\u0275inj=Ft({providers:lS}),e})()},3092:(Ye,me,O)=>{"use strict";O.d(me,{Fj:()=>We,NI:()=>Yt,u:()=>Zr,cw:()=>dr,sg:()=>sn,u5:()=>B,nD:()=>gr,JJ:()=>G,JL:()=>W,F:()=>ut,On:()=>hn,YN:()=>xi,wV:()=>Bn,_:()=>ir,UX:()=>oe,Q7:()=>Tr,EJ:()=>qr,_Y:()=>Ht,Kr:()=>F});var y=O(476),u=O(8583),ce=O(1776),re=O(1260),te=O(5929),Q=O(9528),K=O(5076),P=O(9607),x=O(5526),Y=O(5207);let ae=(()=>{class E{constructor(h,M){this._renderer=h,this._elementRef=M,this.onChange=Z=>{},this.onTouched=()=>{}}setProperty(h,M){this._renderer.setProperty(this._elementRef.nativeElement,h,M)}registerOnTouched(h){this.onTouched=h}registerOnChange(h){this.onChange=h}setDisabledState(h){this.setProperty("disabled",h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq))},E.\u0275dir=y.lG2({type:E}),E})(),Ee=(()=>{class E extends ae{}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();const De=new y.OlP("NgValueAccessor"),He={provide:De,useExisting:(0,y.Gpc)(()=>We),multi:!0},Ge=new y.OlP("CompositionEventMode");let We=(()=>{class E extends ae{constructor(h,M,Z){super(h,M),this._compositionMode=Z,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const E=(0,u.q)()?(0,u.q)().getUserAgent():"";return/android (\d+)/.test(E.toLowerCase())}())}writeValue(h){this.setProperty("value",null==h?"":h)}_handleInput(h){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(h)}_compositionStart(){this._composing=!0}_compositionEnd(h){this._composing=!1,this._compositionMode&&this.onChange(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ge,8))},E.\u0275dir=y.lG2({type:E,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M._handleInput(we.target.value)})("blur",function(){return M.onTouched()})("compositionstart",function(){return M._compositionStart()})("compositionend",function(we){return M._compositionEnd(we.target.value)})},features:[y._Bn([He]),y.qOj]}),E})();const Ke=new y.OlP("NgValidators"),bt=new y.OlP("NgAsyncValidators");function Ie(E){return null}function be(E){return null!=E}function Ve(E){const m=(0,y.QGY)(E)?(0,te.Dp)(E):E;return(0,y.CqO)(m),m}function Xe(E){let m={};return E.forEach(h=>{m=null!=h?Object.assign(Object.assign({},m),h):m}),0===Object.keys(m).length?null:m}function rt(E,m){return m.map(h=>h(E))}function jt(E){return E.map(m=>function(E){return!E.validate}(m)?m:h=>m.validate(h))}function It(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return Xe(rt(h,m))}}(jt(E)):null}function yt(E){return null!=E?function(E){if(!E)return null;const m=E.filter(be);return 0==m.length?null:function(h){return function(){for(var E=[],m=0;m{Cn(h,Z)||h.push(Z)}),h}function xt(E,m){return mn(m).filter(h=>!Cn(E,h))}let Hr=(()=>{class E{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(h){this._rawValidators=h||[],this._composedValidatorFn=It(this._rawValidators)}_setAsyncValidators(h){this._rawAsyncValidators=h||[],this._composedAsyncValidatorFn=yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(h){this._onDestroyCallbacks.push(h)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(h=>h()),this._onDestroyCallbacks=[]}reset(h){this.control&&this.control.reset(h)}hasError(h,M){return!!this.control&&this.control.hasError(h,M)}getError(h,M){return this.control?this.control.getError(h,M):null}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E}),E})(),Ft=(()=>{class E extends Hr{get formDirective(){return null}get path(){return null}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,features:[y.qOj]}),E})();class gt extends Hr{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class tr{constructor(m){this._cd=m}is(m){var h,M,Z;return"submitted"===m?!!(null===(h=this._cd)||void 0===h?void 0:h.submitted):!!(null===(Z=null===(M=this._cd)||void 0===M?void 0:M.control)||void 0===Z?void 0:Z[m])}}let G=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(gt,2))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))},features:[y.qOj]}),E})(),W=(()=>{class E extends tr{constructor(h){super(h)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(h,M){2&h&&y.ekj("ng-untouched",M.is("untouched"))("ng-touched",M.is("touched"))("ng-pristine",M.is("pristine"))("ng-dirty",M.is("dirty"))("ng-valid",M.is("valid"))("ng-invalid",M.is("invalid"))("ng-pending",M.is("pending"))("ng-submitted",M.is("submitted"))},features:[y.qOj]}),E})();function Sn(E,m){return[...m.path,E]}function Le(E,m){nr(E,m),m.valueAccessor.writeValue(E.value),function(E,m){m.valueAccessor.registerOnChange(h=>{E._pendingValue=h,E._pendingChange=!0,E._pendingDirty=!0,"change"===E.updateOn&&xn(E,m)})}(E,m),function(E,m){const h=(M,Z)=>{m.valueAccessor.writeValue(M),Z&&m.viewToModelUpdate(M)};E.registerOnChange(h),m._registerOnDestroy(()=>{E._unregisterOnChange(h)})}(E,m),function(E,m){m.valueAccessor.registerOnTouched(()=>{E._pendingTouched=!0,"blur"===E.updateOn&&E._pendingChange&&xn(E,m),"submit"!==E.updateOn&&E.markAsTouched()})}(E,m),function(E,m){if(m.valueAccessor.setDisabledState){const h=M=>{m.valueAccessor.setDisabledState(M)};E.registerOnDisabledChange(h),m._registerOnDestroy(()=>{E._unregisterOnDisabledChange(h)})}}(E,m)}function Ut(E,m,h=!0){const M=()=>{};m.valueAccessor&&(m.valueAccessor.registerOnChange(M),m.valueAccessor.registerOnTouched(M)),nt(E,m),E&&(m._invokeOnDestroyCallbacks(),E._registerOnCollectionChange(()=>{}))}function rn(E,m){E.forEach(h=>{h.registerOnValidatorChange&&h.registerOnValidatorChange(m)})}function nr(E,m){const h=Tt(E);null!==m.validator?E.setValidators(gn(h,m.validator)):"function"==typeof h&&E.setValidators([h]);const M=it(E);null!==m.asyncValidator?E.setAsyncValidators(gn(M,m.asyncValidator)):"function"==typeof M&&E.setAsyncValidators([M]);const Z=()=>E.updateValueAndValidity();rn(m._rawValidators,Z),rn(m._rawAsyncValidators,Z)}function nt(E,m){let h=!1;if(null!==E){if(null!==m.validator){const Z=Tt(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.validator);we.length!==Z.length&&(h=!0,E.setValidators(we))}}if(null!==m.asyncValidator){const Z=it(E);if(Array.isArray(Z)&&Z.length>0){const we=Z.filter(At=>At!==m.asyncValidator);we.length!==Z.length&&(h=!0,E.setAsyncValidators(we))}}}const M=()=>{};return rn(m._rawValidators,M),rn(m._rawAsyncValidators,M),h}function xn(E,m){E._pendingDirty&&E.markAsDirty(),E.setValue(E._pendingValue,{emitModelToViewChange:!1}),m.viewToModelUpdate(E._pendingValue),E._pendingChange=!1}function cr(E,m){nr(E,m)}function Wr(E,m){if(!E.hasOwnProperty("model"))return!1;const h=E.model;return!!h.isFirstChange()||!Object.is(m,h.currentValue)}function Fn(E,m){E._syncPendingControls(),m.forEach(h=>{const M=h.control;"submit"===M.updateOn&&M._pendingChange&&(h.viewToModelUpdate(M._pendingValue),M._pendingChange=!1)})}function Kn(E,m){if(!m)return null;let h,M,Z;return Array.isArray(m),m.forEach(we=>{we.constructor===We?h=we:function(E){return Object.getPrototypeOf(E.constructor)===Ee}(we)?M=we:Z=we}),Z||M||h||null}function et(E,m){const h=E.indexOf(m);h>-1&&E.splice(h,1)}const Tn="VALID",En="INVALID",Ln="PENDING",yn="DISABLED";function Kr(E){return(dn(E)?E.validators:E)||null}function rr(E){return Array.isArray(E)?It(E):E||null}function Yn(E,m){return(dn(m)?m.asyncValidators:E)||null}function qt(E){return Array.isArray(E)?yt(E):E||null}function dn(E){return null!=E&&!Array.isArray(E)&&"object"==typeof E}class On{constructor(m,h){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=m,this._rawAsyncValidators=h,this._composedValidatorFn=rr(this._rawValidators),this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(m){this._rawValidators=this._composedValidatorFn=m}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(m){this._rawAsyncValidators=this._composedAsyncValidatorFn=m}get parent(){return this._parent}get valid(){return this.status===Tn}get invalid(){return this.status===En}get pending(){return this.status==Ln}get disabled(){return this.status===yn}get enabled(){return this.status!==yn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(m){this._rawValidators=m,this._composedValidatorFn=rr(m)}setAsyncValidators(m){this._rawAsyncValidators=m,this._composedAsyncValidatorFn=qt(m)}addValidators(m){this.setValidators(Rn(m,this._rawValidators))}addAsyncValidators(m){this.setAsyncValidators(Rn(m,this._rawAsyncValidators))}removeValidators(m){this.setValidators(xt(m,this._rawValidators))}removeAsyncValidators(m){this.setAsyncValidators(xt(m,this._rawAsyncValidators))}hasValidator(m){return Cn(this._rawValidators,m)}hasAsyncValidator(m){return Cn(this._rawAsyncValidators,m)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(m={}){this.touched=!0,this._parent&&!m.onlySelf&&this._parent.markAsTouched(m)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(m=>m.markAllAsTouched())}markAsUntouched(m={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(h=>{h.markAsUntouched({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}markAsDirty(m={}){this.pristine=!1,this._parent&&!m.onlySelf&&this._parent.markAsDirty(m)}markAsPristine(m={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(h=>{h.markAsPristine({onlySelf:!0})}),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}markAsPending(m={}){this.status=Ln,!1!==m.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!m.onlySelf&&this._parent.markAsPending(m)}disable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=yn,this.errors=null,this._forEachChild(M=>{M.disable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this._updateValue(),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!0))}enable(m={}){const h=this._parentMarkedDirty(m.onlySelf);this.status=Tn,this._forEachChild(M=>{M.enable(Object.assign(Object.assign({},m),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},m),{skipPristineCheck:h})),this._onDisabledChange.forEach(M=>M(!1))}_updateAncestors(m){this._parent&&!m.onlySelf&&(this._parent.updateValueAndValidity(m),m.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(m){this._parent=m}updateValueAndValidity(m={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tn||this.status===Ln)&&this._runAsyncValidator(m.emitEvent)),!1!==m.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!m.onlySelf&&this._parent.updateValueAndValidity(m)}_updateTreeValidity(m={emitEvent:!0}){this._forEachChild(h=>h._updateTreeValidity(m)),this.updateValueAndValidity({onlySelf:!0,emitEvent:m.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yn:Tn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(m){if(this.asyncValidator){this.status=Ln,this._hasOwnPendingAsyncValidator=!0;const h=Ve(this.asyncValidator(this));this._asyncValidationSubscription=h.subscribe(M=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(M,{emitEvent:m})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(m,h={}){this.errors=m,this._updateControlsErrors(!1!==h.emitEvent)}get(m){return function(E,m,h){if(null==m||(Array.isArray(m)||(m=m.split(".")),Array.isArray(m)&&0===m.length))return null;let M=E;return m.forEach(Z=>{M=M instanceof dr?M.controls.hasOwnProperty(Z)?M.controls[Z]:null:M instanceof fn&&M.at(Z)||null}),M}(this,m)}getError(m,h){const M=h?this.get(h):this;return M&&M.errors?M.errors[m]:null}hasError(m,h){return!!this.getError(m,h)}get root(){let m=this;for(;m._parent;)m=m._parent;return m}_updateControlsErrors(m){this.status=this._calculateStatus(),m&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(m)}_initObservables(){this.valueChanges=new y.vpe,this.statusChanges=new y.vpe}_calculateStatus(){return this._allControlsDisabled()?yn:this.errors?En:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ln)?Ln:this._anyControlsHaveStatus(En)?En:Tn}_anyControlsHaveStatus(m){return this._anyControls(h=>h.status===m)}_anyControlsDirty(){return this._anyControls(m=>m.dirty)}_anyControlsTouched(){return this._anyControls(m=>m.touched)}_updatePristine(m={}){this.pristine=!this._anyControlsDirty(),this._parent&&!m.onlySelf&&this._parent._updatePristine(m)}_updateTouched(m={}){this.touched=this._anyControlsTouched(),this._parent&&!m.onlySelf&&this._parent._updateTouched(m)}_isBoxedValue(m){return"object"==typeof m&&null!==m&&2===Object.keys(m).length&&"value"in m&&"disabled"in m}_registerOnCollectionChange(m){this._onCollectionChange=m}_setUpdateStrategy(m){dn(m)&&null!=m.updateOn&&(this._updateOn=m.updateOn)}_parentMarkedDirty(m){return!m&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Yt extends On{constructor(m=null,h,M){super(Kr(h),Yn(M,h)),this._onChange=[],this._applyFormState(m),this._setUpdateStrategy(h),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(m,h={}){this.value=this._pendingValue=m,this._onChange.length&&!1!==h.emitModelToViewChange&&this._onChange.forEach(M=>M(this.value,!1!==h.emitViewToModelChange)),this.updateValueAndValidity(h)}patchValue(m,h={}){this.setValue(m,h)}reset(m=null,h={}){this._applyFormState(m),this.markAsPristine(h),this.markAsUntouched(h),this.setValue(this.value,h),this._pendingChange=!1}_updateValue(){}_anyControls(m){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(m){this._onChange.push(m)}_unregisterOnChange(m){et(this._onChange,m)}registerOnDisabledChange(m){this._onDisabledChange.push(m)}_unregisterOnDisabledChange(m){et(this._onDisabledChange,m)}_forEachChild(m){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(m){this._isBoxedValue(m)?(this.value=this._pendingValue=m.value,m.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=m}}class dr extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(m,h){return this.controls[m]?this.controls[m]:(this.controls[m]=h,h.setParent(this),h._registerOnCollectionChange(this._onCollectionChange),h)}addControl(m,h,M={}){this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}removeControl(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),delete this.controls[m],h&&this.registerControl(m,h),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}contains(m){return this.controls.hasOwnProperty(m)&&this.controls[m].enabled}setValue(m,h={}){this._checkAllValuesPresent(m),Object.keys(m).forEach(M=>{this._throwIfControlMissing(M),this.controls[M].setValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(Object.keys(m).forEach(M=>{this.controls[M]&&this.controls[M].patchValue(m[M],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m={},h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this._reduceChildren({},(m,h,M)=>(m[M]=h instanceof Yt?h.value:h.getRawValue(),m))}_syncPendingControls(){let m=this._reduceChildren(!1,(h,M)=>!!M._syncPendingControls()||h);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[m])throw new Error(`Cannot find form control with name: ${m}.`)}_forEachChild(m){Object.keys(this.controls).forEach(h=>{const M=this.controls[h];M&&m(M,h)})}_setUpControls(){this._forEachChild(m=>{m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(m){for(const h of Object.keys(this.controls)){const M=this.controls[h];if(this.contains(h)&&m(M))return!0}return!1}_reduceValue(){return this._reduceChildren({},(m,h,M)=>((h.enabled||this.disabled)&&(m[M]=h.value),m))}_reduceChildren(m,h){let M=m;return this._forEachChild((Z,we)=>{M=h(M,Z,we)}),M}_allControlsDisabled(){for(const m of Object.keys(this.controls))if(this.controls[m].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control with name: '${M}'.`)})}}class fn extends On{constructor(m,h,M){super(Kr(h),Yn(M,h)),this.controls=m,this._initObservables(),this._setUpdateStrategy(h),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(m){return this.controls[m]}push(m,h={}){this.controls.push(m),this._registerControl(m),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}insert(m,h,M={}){this.controls.splice(m,0,h),this._registerControl(h),this.updateValueAndValidity({emitEvent:M.emitEvent})}removeAt(m,h={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),this.updateValueAndValidity({emitEvent:h.emitEvent})}setControl(m,h,M={}){this.controls[m]&&this.controls[m]._registerOnCollectionChange(()=>{}),this.controls.splice(m,1),h&&(this.controls.splice(m,0,h),this._registerControl(h)),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(m,h={}){this._checkAllValuesPresent(m),m.forEach((M,Z)=>{this._throwIfControlMissing(Z),this.at(Z).setValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}patchValue(m,h={}){null!=m&&(m.forEach((M,Z)=>{this.at(Z)&&this.at(Z).patchValue(M,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}reset(m=[],h={}){this._forEachChild((M,Z)=>{M.reset(m[Z],{onlySelf:!0,emitEvent:h.emitEvent})}),this._updatePristine(h),this._updateTouched(h),this.updateValueAndValidity(h)}getRawValue(){return this.controls.map(m=>m instanceof Yt?m.value:m.getRawValue())}clear(m={}){this.controls.length<1||(this._forEachChild(h=>h._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:m.emitEvent}))}_syncPendingControls(){let m=this.controls.reduce((h,M)=>!!M._syncPendingControls()||h,!1);return m&&this.updateValueAndValidity({onlySelf:!0}),m}_throwIfControlMissing(m){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(m))throw new Error(`Cannot find form control at index ${m}`)}_forEachChild(m){this.controls.forEach((h,M)=>{m(h,M)})}_updateValue(){this.value=this.controls.filter(m=>m.enabled||this.disabled).map(m=>m.value)}_anyControls(m){return this.controls.some(h=>h.enabled&&m(h))}_setUpControls(){this._forEachChild(m=>this._registerControl(m))}_checkAllValuesPresent(m){this._forEachChild((h,M)=>{if(void 0===m[M])throw new Error(`Must supply a value for form control at index: ${M}.`)})}_allControlsDisabled(){for(const m of this.controls)if(m.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(m){m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange)}}const Te={provide:Ft,useExisting:(0,y.Gpc)(()=>ut)},ht=(()=>Promise.resolve(null))();let ut=(()=>{class E extends Ft{constructor(h,M){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new y.vpe,this.form=new dr({},It(h),yt(M))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(h){ht.then(()=>{const M=this._findContainer(h.path);h.control=M.registerControl(h.name,h.control),Le(h.control,h),h.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(h)})}getControl(h){return this.form.get(h.path)}removeControl(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name),et(this._directives,h)})}addFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path),Z=new dr({});cr(Z,h),M.registerControl(h.name,Z),Z.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(h){ht.then(()=>{const M=this._findContainer(h.path);M&&M.removeControl(h.name)})}getFormGroup(h){return this.form.get(h.path)}updateModel(h,M){ht.then(()=>{this.form.get(h.path).setValue(M)})}setValue(h){this.control.setValue(h)}onSubmit(h){return this.submitted=!0,Fn(this.form,this._directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(h){return h.pop(),h.length?this.form.get(h):this.form}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Te]),y.qOj]}),E})();const fr={provide:gt,useExisting:(0,y.Gpc)(()=>hn)},_n=(()=>Promise.resolve(null))();let hn=(()=>{class E extends gt{constructor(h,M,Z,we){super(),this.control=new Yt,this._registered=!1,this.update=new y.vpe,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}ngOnChanges(h){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in h&&this._updateDisabled(h),Wr(h,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Sn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Le(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(h){_n.then(()=>{this.control.setValue(h,{emitViewToModelChange:!1})})}_updateDisabled(h){const M=h.isDisabled.currentValue,Z=""===M||M&&"false"!==M;_n.then(()=>{Z&&!this.control.disabled?this.control.disable():!Z&&this.control.disabled&&this.control.enable()})}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,9),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[y._Bn([fr]),y.qOj,y.TTD]}),E})(),Ht=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),E})();const Un={provide:De,useExisting:(0,y.Gpc)(()=>Bn),multi:!0};let Bn=(()=>{class E extends Ee{writeValue(h){this.setProperty("value",null==h?"":h)}registerOnChange(h){this.onChange=M=>{h(""==M?null:parseFloat(M))}}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("input",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},features:[y._Bn([Un]),y.qOj]}),E})();const Gt={provide:De,useExisting:(0,y.Gpc)(()=>ir),multi:!0};let Yr=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({}),E})(),Ar=(()=>{class E{constructor(){this._accessors=[]}add(h,M){this._accessors.push([h,M])}remove(h){for(let M=this._accessors.length-1;M>=0;--M)if(this._accessors[M][1]===h)return void this._accessors.splice(M,1)}select(h){this._accessors.forEach(M=>{this._isSameGroup(M,h)&&M[1]!==h&&M[1].fireUncheck(h.value)})}_isSameGroup(h,M){return!!h[0].control&&h[0]._parent===M._control._parent&&h[1].name===M.name}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275prov=(0,y.Yz7)({factory:function(){return new E},token:E,providedIn:Yr}),E})(),ir=(()=>{class E extends Ee{constructor(h,M,Z,we){super(h,M),this._registry=Z,this._injector=we,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(gt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(h){this._state=h===this.value,this.setProperty("checked",this._state)}registerOnChange(h){this._fn=h,this.onChange=()=>{h(this.value),this._registry.select(this)}}fireUncheck(h){this.writeValue(h)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(Ar),y.Y36(y.zs3))},E.\u0275dir=y.lG2({type:E,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(){return M.onChange()})("blur",function(){return M.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[y._Bn([Gt]),y.qOj]}),E})();const Wt=new y.OlP("NgModelWithFormControlWarning"),Sr={provide:Ft,useExisting:(0,y.Gpc)(()=>sn)};let sn=(()=>{class E extends Ft{constructor(h,M){super(),this.validators=h,this.asyncValidators=M,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new y.vpe,this._setValidators(h),this._setAsyncValidators(M)}ngOnChanges(h){this._checkFormPresent(),h.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(h){const M=this.form.get(h.path);return Le(M,h),M.updateValueAndValidity({emitEvent:!1}),this.directives.push(h),M}getControl(h){return this.form.get(h.path)}removeControl(h){Ut(h.control||null,h,!1),et(this.directives,h)}addFormGroup(h){this._setUpFormContainer(h)}removeFormGroup(h){this._cleanUpFormContainer(h)}getFormGroup(h){return this.form.get(h.path)}addFormArray(h){this._setUpFormContainer(h)}removeFormArray(h){this._cleanUpFormContainer(h)}getFormArray(h){return this.form.get(h.path)}updateModel(h,M){this.form.get(h.path).setValue(M)}onSubmit(h){return this.submitted=!0,Fn(this.form,this.directives),this.ngSubmit.emit(h),!1}onReset(){this.resetForm()}resetForm(h){this.form.reset(h),this.submitted=!1}_updateDomValue(){this.directives.forEach(h=>{const M=h.control,Z=this.form.get(h.path);M!==Z&&(Ut(M||null,h),Z instanceof Yt&&(Le(Z,h),h.control=Z))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(h){const M=this.form.get(h.path);cr(M,h),M.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(h){if(this.form){const M=this.form.get(h.path);M&&function(E,m){return nt(E,m)}(M,h)&&M.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){nr(this.form,this),this._oldForm&&nt(this._oldForm,this)}_checkFormPresent(){}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ke,10),y.Y36(bt,10))},E.\u0275dir=y.lG2({type:E,selectors:[["","formGroup",""]],hostBindings:function(h,M){1&h&&y.NdJ("submit",function(we){return M.onSubmit(we)})("reset",function(){return M.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Sr]),y.qOj,y.TTD]}),E})();const Ir={provide:gt,useExisting:(0,y.Gpc)(()=>Zr)};let Zr=(()=>{class E extends gt{constructor(h,M,Z,we,At){super(),this._ngModelWarningConfig=At,this._added=!1,this.update=new y.vpe,this._ngModelWarningSent=!1,this._parent=h,this._setValidators(M),this._setAsyncValidators(Z),this.valueAccessor=Kn(0,we)}set isDisabled(h){}ngOnChanges(h){this._added||this._setUpControl(),Wr(h,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(h){this.viewModel=h,this.update.emit(h)}get path(){return Sn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(Ft,13),y.Y36(Ke,10),y.Y36(bt,10),y.Y36(De,10),y.Y36(Wt,8))},E.\u0275dir=y.lG2({type:E,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[y._Bn([Ir]),y.qOj,y.TTD]}),E._ngModelWarningSentOnce=!1,E})();const mi={provide:De,useExisting:(0,y.Gpc)(()=>qr),multi:!0};function Ri(E,m){return null==E?`${m}`:(m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let qr=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){this.value=h;const M=this._getOptionId(h);null==M&&this.setProperty("selectedIndex",-1);const Z=Ri(M,h);this.setProperty("value",Z)}registerOnChange(h){this.onChange=M=>{this.value=this._getOptionValue(M),h(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(h){for(const M of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(M),h))return M;return null}_getOptionValue(h){const M=function(E){return E.split(":")[0]}(h);return this._optionMap.has(M)?this._optionMap.get(M):h}}return E.\u0275fac=function(){let m;return function(M){return(m||(m=y.n5z(E)))(M||E)}}(),E.\u0275dir=y.lG2({type:E,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(h,M){1&h&&y.NdJ("change",function(we){return M.onChange(we.target.value)})("blur",function(){return M.onTouched()})},inputs:{compareWith:"compareWith"},features:[y._Bn([mi]),y.qOj]}),E})(),xi=(()=>{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption())}set ngValue(h){null!=this._select&&(this._select._optionMap.set(this.id,h),this._setElementValue(Ri(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._setElementValue(h),this._select&&this._select.writeValue(this._select.value)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(qr,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Fi={provide:De,useExisting:(0,y.Gpc)(()=>N),multi:!0};function _i(E,m){return null==E?`${m}`:("string"==typeof m&&(m=`'${m}'`),m&&"object"==typeof m&&(m="Object"),`${E}: ${m}`.slice(0,50))}let N=(()=>{class E extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(h){this._compareWith=h}writeValue(h){let M;if(this.value=h,Array.isArray(h)){const Z=h.map(we=>this._getOptionId(we));M=(we,At)=>{we._setSelected(Z.indexOf(At.toString())>-1)}}else M=(Z,we)=>{Z._setSelected(!1)};this._optionMap.forEach(M)}registerOnChange(h){this.onChange=M=>{const Z=[];if(void 0!==M.selectedOptions){const we=M.selectedOptions;for(let At=0;At{class E{constructor(h,M,Z){this._element=h,this._renderer=M,this._select=Z,this._select&&(this.id=this._select._registerOption(this))}set ngValue(h){null!=this._select&&(this._value=h,this._setElementValue(_i(this.id,h)),this._select.writeValue(this._select.value))}set value(h){this._select?(this._value=h,this._setElementValue(_i(this.id,h)),this._select.writeValue(this._select.value)):this._setElementValue(h)}_setElementValue(h){this._renderer.setProperty(this._element.nativeElement,"value",h)}_setSelected(h){this._renderer.setProperty(this._element.nativeElement,"selected",h)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return E.\u0275fac=function(h){return new(h||E)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(N,9))},E.\u0275dir=y.lG2({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),E})();const Nt={provide:Ke,useExisting:(0,y.Gpc)(()=>Tr),multi:!0};let Tr=(()=>{class E{constructor(){this._required=!1}get required(){return this._required}set required(h){this._required=null!=h&&!1!==h&&"false"!=`${h}`,this._onChange&&this._onChange()}validate(h){return this.required?function(E){return function(E){return null==E||0===E.length}(E.value)?{required:!0}:null}(h):null}registerOnValidatorChange(h){this._onChange=h}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("required",M.required?"":null)},inputs:{required:"required"},features:[y._Bn([Nt])]}),E})();const Nr={provide:Ke,useExisting:(0,y.Gpc)(()=>gr),multi:!0};let gr=(()=>{class E{constructor(){this._validator=Ie}ngOnChanges(h){"maxlength"in h&&(this._createValidator(),this._onChange&&this._onChange())}validate(h){return this.enabled()?this._validator(h):null}registerOnValidatorChange(h){this._onChange=h}_createValidator(){this._validator=this.enabled()?function(E){return m=>function(E){return null!=E&&"number"==typeof E.length}(m.value)&&m.value.length>E?{maxlength:{requiredLength:E,actualLength:m.value.length}}:null}(function(E){return"number"==typeof E?E:parseInt(E,10)}(this.maxlength)):Ie}enabled(){return null!=this.maxlength}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275dir=y.lG2({type:E,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(h,M){2&h&&y.uIk("maxlength",M.enabled()?M.maxlength:null)},inputs:{maxlength:"maxlength"},features:[y._Bn([Nr]),y.TTD]}),E})(),S=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[[Yr]]}),E})(),B=(()=>{class E{}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})(),oe=(()=>{class E{static withConfig(h){return{ngModule:E,providers:[{provide:Wt,useValue:h.warnOnNgModelWithFormControl}]}}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=y.oAB({type:E}),E.\u0275inj=y.cJS({imports:[S]}),E})()},9502:(Ye,me,O)=>{"use strict";O.d(me,{gz:()=>Gt,Eb:()=>ge,gk:()=>xt,m2:()=>Rn,Q3:()=>Hr,OD:()=>Cn,F0:()=>Wn,rH:()=>Lo,Od:()=>ho,yS:()=>ko,Bz:()=>Bo,lC:()=>po,R9:()=>Ft});var y=O(8583),u=O(476),ce=O(9162),re=O(6889),te=function(f){function c(l){var p=f.call(this)||this;return p._value=l,p}return(0,ce.ZT)(c,f),Object.defineProperty(c.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),c.prototype._subscribe=function(l){var p=f.prototype._subscribe.call(this,l);return!p.closed&&l.next(this._value),p},c.prototype.getValue=function(){var l=this,b=l._value;if(l.hasError)throw l.thrownError;return this._throwIfClosed(),b},c.prototype.next=function(l){f.prototype.next.call(this,this._value=l)},c}(re.x),Q=O(1776),K=O(1260),P=O(5929),x=O(2738),U=O(9607),Y=O(9528),ae=O(5526),Ee=O(5076);function Pe(f,c,l){return void 0===l&&(l=x.y),function(p){ve(c,function(){for(var C=f.length,b=new Array(C),R=C,V=C,q=function(Ue){ve(c,function(){var at=(0,P.Dp)(f[Ue],c),kt=!1;at.subscribe(new Ee.Q(p,function(Ct){b[Ue]=Ct,kt||(kt=!0,V--),V||p.next(l(b.slice()))},function(){--R||p.complete()}))},p)},Se=0;Se=2,!0))}var ee=O(4689);function Ie(f){return f<=0?function(){return X.E}:(0,$e.e)(function(c,l){var p=[];c.subscribe(new Ee.Q(l,function(C){p.push(C),f=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,(0,_t.q)(1),l?Xe(c):be(function(){return new Me}))}}var Kt=O(8853);function It(f,c,l){var p=(0,Kt.m)(f)||c||l?{next:f,error:c,complete:l}:f;return p?(0,$e.e)(function(C,b){var R;null===(R=p.subscribe)||void 0===R||R.call(p);var V=!0;C.subscribe(new Ee.Q(b,function(q){var Se;null===(Se=p.next)||void 0===Se||Se.call(p,q),b.next(q)},function(){var q;V=!1,null===(q=p.complete)||void 0===q||q.call(p),b.complete()},function(q){var Se;V=!1,null===(Se=p.error)||void 0===Se||Se.call(p,q),b.error(q)},function(){var q,Se;V&&(null===(q=p.unsubscribe)||void 0===q||q.call(p)),null===(Se=p.finalize)||void 0===Se||Se.call(p)}))}):x.y}var yt=O(5207),gn=O(5894),Tt=O(3766),it=O(7216);class mn{constructor(c,l){this.id=c,this.url=l}}class Cn extends mn{constructor(c,l,p="imperative",C=null){super(c,l),this.navigationTrigger=p,this.restoredState=C}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Rn extends mn{constructor(c,l,p){super(c,l),this.urlAfterRedirects=p}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class xt extends mn{constructor(c,l,p){super(c,l),this.reason=p}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Hr extends mn{constructor(c,l,p){super(c,l),this.error=p}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ft extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gt extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tr extends mn{constructor(c,l,p,C,b){super(c,l),this.urlAfterRedirects=p,this.state=C,this.shouldActivate=b}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ni extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fe extends mn{constructor(c,l,p,C){super(c,l),this.urlAfterRedirects=p,this.state=C}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G{constructor(c){this.route=c}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class W{constructor(c){this.route=c}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ge{constructor(c){this.snapshot=c}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ye{constructor(c){this.snapshot=c}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Re{constructor(c){this.snapshot=c}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class se{constructor(c){this.snapshot=c}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xe{constructor(c,l,p){this.routerEvent=c,this.position=l,this.anchor=p}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ne="primary";class St{constructor(c){this.params=c||{}}has(c){return Object.prototype.hasOwnProperty.call(this.params,c)}get(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l[0]:l}return null}getAll(c){if(this.has(c)){const l=this.params[c];return Array.isArray(l)?l:[l]}return[]}get keys(){return Object.keys(this.params)}}function Lt(f){return new St(f)}const zn="ngNavigationCancelingError";function wt(f){const c=Error("NavigationCancelingError: "+f);return c[zn]=!0,c}function ot(f,c,l){const p=l.path.split("/");if(p.length>f.length||"full"===l.pathMatch&&(c.hasChildren()||p.lengthp[b]===C)}return f===c}function rn(f){return Array.prototype.concat.apply([],f)}function Dr(f){return f.length>0?f[f.length-1]:null}function nt(f,c){for(const l in f)f.hasOwnProperty(l)&&c(f[l],l)}function Mn(f){return(0,u.CqO)(f)?f:(0,u.QGY)(f)?(0,P.Dp)(Promise.resolve(f)):(0,H.of)(f)}const xn={exact:function Gr(f,c,l){if(!En(f.segments,c.segments)||!Fn(f.segments,c.segments,l)||f.numberOfChildren!==c.numberOfChildren)return!1;for(const p in c.children)if(!f.children[p]||!Gr(f.children[p],c.children[p],l))return!1;return!0},subset:Wr},mt={exact:function(f,c){return Le(f,c)},subset:function(f,c){return Object.keys(c).length<=Object.keys(f).length&&Object.keys(c).every(l=>Ut(f[l],c[l]))},ignored:()=>!0};function cr(f,c,l){return xn[l.paths](f.root,c.root,l.matrixParams)&&mt[l.queryParams](f.queryParams,c.queryParams)&&!("exact"===l.fragment&&f.fragment!==c.fragment)}function Wr(f,c,l){return In(f,c,c.segments,l)}function In(f,c,l,p){if(f.segments.length>l.length){const C=f.segments.slice(0,l.length);return!(!En(C,l)||c.hasChildren()||!Fn(C,l,p))}if(f.segments.length===l.length){if(!En(f.segments,l)||!Fn(f.segments,l,p))return!1;for(const C in c.children)if(!f.children[C]||!Wr(f.children[C],c.children[C],p))return!1;return!0}{const C=l.slice(0,f.segments.length),b=l.slice(f.segments.length);return!!(En(f.segments,C)&&Fn(f.segments,C,p)&&f.children[Ne])&&In(f.children[Ne],c,b,p)}}function Fn(f,c,l){return c.every((p,C)=>mt[l](f[C].parameters,p.parameters))}class Kn{constructor(c,l,p){this.root=c,this.queryParams=l,this.fragment=p}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return Kr.serialize(this)}}class et{constructor(c,l){this.segments=c,this.children=l,this.parent=null,nt(l,(p,C)=>p.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rr(this)}}class on{constructor(c,l){this.path=c,this.parameters=l}get parameterMap(){return this._parameterMap||(this._parameterMap=Lt(this.parameters)),this._parameterMap}toString(){return Te(this)}}function En(f,c){return f.length===c.length&&f.every((l,p)=>l.path===c[p].path)}class yn{}class zr{parse(c){const l=new Vn(c);return new Kn(l.parseRootSegment(),l.parseQueryParams(),l.parseFragment())}serialize(c){var f;return`${`/${Yn(c.root,!0)}`}${function(f){const c=Object.keys(f).map(l=>{const p=f[l];return Array.isArray(p)?p.map(C=>`${dn(l)}=${dn(C)}`).join("&"):`${dn(l)}=${dn(p)}`}).filter(l=>!!l);return c.length?`?${c.join("&")}`:""}(c.queryParams)}${"string"==typeof c.fragment?`#${f=c.fragment,encodeURI(f)}`:""}`}}const Kr=new zr;function rr(f){return f.segments.map(c=>Te(c)).join("/")}function Yn(f,c){if(!f.hasChildren())return rr(f);if(c){const l=f.children[Ne]?Yn(f.children[Ne],!1):"",p=[];return nt(f.children,(C,b)=>{b!==Ne&&p.push(`${b}:${Yn(C,!1)}`)}),p.length>0?`${l}(${p.join("//")})`:l}{const l=function(f,c){let l=[];return nt(f.children,(p,C)=>{C===Ne&&(l=l.concat(c(p,C)))}),nt(f.children,(p,C)=>{C!==Ne&&(l=l.concat(c(p,C)))}),l}(f,(p,C)=>C===Ne?[Yn(f.children[Ne],!1)]:[`${C}:${Yn(p,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[Ne]?`${rr(f)}/${l[0]}`:`${rr(f)}/(${l.join("//")})`}}function qt(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dn(f){return qt(f).replace(/%3B/gi,";")}function Yt(f){return qt(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dr(f){return decodeURIComponent(f)}function fn(f){return dr(f.replace(/\+/g,"%20"))}function Te(f){return`${Yt(f.path)}${function(f){return Object.keys(f).map(c=>`;${Yt(c)}=${Yt(f[c])}`).join("")}(f.parameters)}`}const ut=/^[^\/()?;=#]+/;function Jt(f){const c=f.match(ut);return c?c[0]:""}const Bt=/^[^=?&#]+/,Ot=/^[^?&#]+/;class Vn{constructor(c){this.url=c,this.remaining=c}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new et([],{}):new et([],this.parseChildren())}parseQueryParams(){const c={};if(this.consumeOptional("?"))do{this.parseQueryParam(c)}while(this.consumeOptional("&"));return c}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const c=[];for(this.peekStartsWith("(")||c.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),c.push(this.parseSegment());let l={};this.peekStartsWith("/(")&&(this.capture("/"),l=this.parseParens(!0));let p={};return this.peekStartsWith("(")&&(p=this.parseParens(!1)),(c.length>0||Object.keys(l).length>0)&&(p[Ne]=new et(c,l)),p}parseSegment(){const c=Jt(this.remaining);if(""===c&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(c),new on(dr(c),this.parseMatrixParams())}parseMatrixParams(){const c={};for(;this.consumeOptional(";");)this.parseParam(c);return c}parseParam(c){const l=Jt(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const C=Jt(this.remaining);C&&(p=C,this.capture(p))}c[dr(l)]=dr(p)}parseQueryParam(c){const l=function(f){const c=f.match(Bt);return c?c[0]:""}(this.remaining);if(!l)return;this.capture(l);let p="";if(this.consumeOptional("=")){const R=function(f){const c=f.match(Ot);return c?c[0]:""}(this.remaining);R&&(p=R,this.capture(p))}const C=fn(l),b=fn(p);if(c.hasOwnProperty(C)){let R=c[C];Array.isArray(R)||(R=[R],c[C]=R),R.push(b)}else c[C]=b}parseParens(c){const l={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const p=Jt(this.remaining),C=this.remaining[p.length];if("/"!==C&&")"!==C&&";"!==C)throw new Error(`Cannot parse url '${this.url}'`);let b;p.indexOf(":")>-1?(b=p.substr(0,p.indexOf(":")),this.capture(b),this.capture(":")):c&&(b=Ne);const R=this.parseChildren();l[b]=1===Object.keys(R).length?R[Ne]:new et([],R),this.consumeOptional("//")}return l}peekStartsWith(c){return this.remaining.startsWith(c)}consumeOptional(c){return!!this.peekStartsWith(c)&&(this.remaining=this.remaining.substring(c.length),!0)}capture(c){if(!this.consumeOptional(c))throw new Error(`Expected "${c}".`)}}class Ze{constructor(c){this._root=c}get root(){return this._root.value}parent(c){const l=this.pathFromRoot(c);return l.length>1?l[l.length-2]:null}children(c){const l=fr(c,this._root);return l?l.children.map(p=>p.value):[]}firstChild(c){const l=fr(c,this._root);return l&&l.children.length>0?l.children[0].value:null}siblings(c){const l=Zn(c,this._root);return l.length<2?[]:l[l.length-2].children.map(C=>C.value).filter(C=>C!==c)}pathFromRoot(c){return Zn(c,this._root).map(l=>l.value)}}function fr(f,c){if(f===c.value)return c;for(const l of c.children){const p=fr(f,l);if(p)return p}return null}function Zn(f,c){if(f===c.value)return[c];for(const l of c.children){const p=Zn(f,l);if(p.length)return p.unshift(c),p}return[]}class _n{constructor(c,l){this.value=c,this.children=l}toString(){return`TreeNode(${this.value})`}}function hn(f){const c={};return f&&f.children.forEach(l=>c[l.value.outlet]=l),c}class Ht extends Ze{constructor(c,l){super(c),this.snapshot=l,qn(this,c)}toString(){return this.snapshot.toString()}}function Un(f,c){const l=function(f,c){const R=new Ar([],{},{},"",{},Ne,c,null,f.root,-1,{});return new ir("",new _n(R,[]))}(f,c),p=new te([new on("",{})]),C=new te({}),b=new te({}),R=new te({}),V=new te(""),q=new Gt(p,C,R,V,b,Ne,c,l.root);return q.snapshot=l.root,new Ht(new _n(q,[]),l)}class Gt{constructor(c,l,p,C,b,R,V,q){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=R,this.component=V,this._futureSnapshot=q}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,yt.U)(c=>Lt(c)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,yt.U)(c=>Lt(c)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Mt(f,c="emptyOnly"){const l=f.pathFromRoot;let p=0;if("always"!==c)for(p=l.length-1;p>=1;){const C=l[p],b=l[p-1];if(C.routeConfig&&""===C.routeConfig.path)p--;else{if(b.component)break;p--}}return function(f){return f.reduce((c,l)=>({params:Object.assign(Object.assign({},c.params),l.params),data:Object.assign(Object.assign({},c.data),l.data),resolve:Object.assign(Object.assign({},c.resolve),l._resolvedData)}),{params:{},data:{},resolve:{}})}(l.slice(p))}class Ar{constructor(c,l,p,C,b,R,V,q,Se,Ue,at){this.url=c,this.params=l,this.queryParams=p,this.fragment=C,this.data=b,this.outlet=R,this.component=V,this.routeConfig=q,this._urlSegment=Se,this._lastPathIndex=Ue,this._resolve=at}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(p=>p.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ir extends Ze{constructor(c,l){super(l),this.url=c,qn(this,l)}toString(){return hr(this._root)}}function qn(f,c){c.value._routerState=f,c.children.forEach(l=>qn(f,l))}function hr(f){const c=f.children.length>0?` { ${f.children.map(hr).join(", ")} } `:"";return`${f.value}${c}`}function Wt(f){if(f.snapshot){const c=f.snapshot,l=f._futureSnapshot;f.snapshot=l,Le(c.queryParams,l.queryParams)||f.queryParams.next(l.queryParams),c.fragment!==l.fragment&&f.fragment.next(l.fragment),Le(c.params,l.params)||f.params.next(l.params),function(f,c){if(f.length!==c.length)return!1;for(let l=0;lLe(l.parameters,c[p].parameters))}(f.url,c.url)&&!(!f.parent!=!c.parent)&&(!f.parent||$n(f.parent,c.parent))}function Sr(f,c,l){if(l&&f.shouldReuseRoute(c.value,l.value.snapshot)){const p=l.value;p._futureSnapshot=c.value;const C=function(f,c,l){return c.children.map(p=>{for(const C of l.children)if(f.shouldReuseRoute(p.value,C.value.snapshot))return Sr(f,p,C);return Sr(f,p)})}(f,c,l);return new _n(p,C)}{if(f.shouldAttach(c.value)){const b=f.retrieve(c.value);if(null!==b){const R=b.route;return sn(c,R),R}}const p=function(f){return new Gt(new te(f.url),new te(f.params),new te(f.queryParams),new te(f.fragment),new te(f.data),f.outlet,f.component,f)}(c.value),C=c.children.map(b=>Sr(f,b));return new _n(p,C)}}function sn(f,c){if(f.value.routeConfig!==c.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(f.children.length!==c.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");c.value._futureSnapshot=f.value;for(let l=0;l{b[V]=Array.isArray(R)?R.map(q=>`${q}`):`${R}`}),new Kn(l.root===f?c:Zr(l.root,f,c),b,C)}function Zr(f,c,l){const p={};return nt(f.children,(C,b)=>{p[b]=C===c?l:Zr(C,c,l)}),new et(f.segments,p)}class mi{constructor(c,l,p){if(this.isAbsolute=c,this.numberOfDoubleDots=l,this.commands=p,c&&p.length>0&&jn(p[0]))throw new Error("Root segment cannot have matrix parameters");const C=p.find(Pt);if(C&&C!==Dr(p))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yi{constructor(c,l,p){this.segmentGroup=c,this.processChildren=l,this.index=p}}function _i(f,c,l){if(f||(f=new et([],{})),0===f.segments.length&&f.hasChildren())return Jr(f,c,l);const p=function(f,c,l){let p=0,C=c;const b={match:!1,pathIndex:0,commandIndex:0};for(;C=l.length)return b;const R=f.segments[C],V=l[p];if(Pt(V))break;const q=`${V}`,Se=p0&&void 0===q)break;if(q&&Se&&"object"==typeof Se&&void 0===Se.outlets){if(!L(q,Se,R))return b;p+=2}else{if(!L(q,{},R))return b;p++}C++}return{match:!0,pathIndex:C,commandIndex:p}}(f,c,l),C=l.slice(p.commandIndex);if(p.match&&p.pathIndex{"string"==typeof b&&(b=[b]),null!==b&&(C[R]=_i(f.children[R],c,b))}),nt(f.children,(b,R)=>{void 0===p[R]&&(C[R]=b)}),new et(f.segments,C)}}function N(f,c,l){const p=f.segments.slice(0,c);let C=0;for(;C{"string"==typeof l&&(l=[l]),null!==l&&(c[p]=N(new et([],{}),0,l))}),c}function A(f){const c={};return nt(f,(l,p)=>c[p]=`${l}`),c}function L(f,c,l){return f==l.path&&Le(c,l.parameters)}class Oe{constructor(c,l,p,C){this.routeReuseStrategy=c,this.futureState=l,this.currState=p,this.forwardEvent=C}activate(c){const l=this.futureState._root,p=this.currState?this.currState._root:null;this.deactivateChildRoutes(l,p,c),Wt(this.futureState.root),this.activateChildRoutes(l,p,c)}deactivateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{const R=b.value.outlet;this.deactivateRoutes(b,C[R],p),delete C[R]}),nt(C,(b,R)=>{this.deactivateRouteAndItsChildren(b,p)})}deactivateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(C===b)if(C.component){const R=p.getContext(C.outlet);R&&this.deactivateChildRoutes(c,l,R.children)}else this.deactivateChildRoutes(c,l,p);else b&&this.deactivateRouteAndItsChildren(l,p)}deactivateRouteAndItsChildren(c,l){this.routeReuseStrategy.shouldDetach(c.value.snapshot)?this.detachAndStoreRouteSubtree(c,l):this.deactivateRouteAndOutlet(c,l)}detachAndStoreRouteSubtree(c,l){const p=l.getContext(c.value.outlet);if(p&&p.outlet){const C=p.outlet.detach(),b=p.children.onOutletDeactivated();this.routeReuseStrategy.store(c.value.snapshot,{componentRef:C,route:c,contexts:b})}}deactivateRouteAndOutlet(c,l){const p=l.getContext(c.value.outlet),C=p&&c.value.component?p.children:l,b=hn(c);for(const R of Object.keys(b))this.deactivateRouteAndItsChildren(b[R],C);p&&p.outlet&&(p.outlet.deactivate(),p.children.onOutletDeactivated(),p.attachRef=null,p.resolver=null,p.route=null)}activateChildRoutes(c,l,p){const C=hn(l);c.children.forEach(b=>{this.activateRoutes(b,C[b.value.outlet],p),this.forwardEvent(new se(b.value.snapshot))}),c.children.length&&this.forwardEvent(new ye(c.value.snapshot))}activateRoutes(c,l,p){const C=c.value,b=l?l.value:null;if(Wt(C),C===b)if(C.component){const R=p.getOrCreateContext(C.outlet);this.activateChildRoutes(c,l,R.children)}else this.activateChildRoutes(c,l,p);else if(C.component){const R=p.getOrCreateContext(C.outlet);if(this.routeReuseStrategy.shouldAttach(C.snapshot)){const V=this.routeReuseStrategy.retrieve(C.snapshot);this.routeReuseStrategy.store(C.snapshot,null),R.children.onOutletReAttached(V.contexts),R.attachRef=V.componentRef,R.route=V.route.value,R.outlet&&R.outlet.attach(V.componentRef,V.route.value),je(V.route)}else{const V=function(f){for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig;if(l&&l.component)return null}return null}(C.snapshot),q=V?V.module.componentFactoryResolver:null;R.attachRef=null,R.route=C,R.resolver=q,R.outlet&&R.outlet.activateWith(C,q),this.activateChildRoutes(c,null,R.children)}}else this.activateChildRoutes(c,null,p)}}function je(f){Wt(f.value),f.children.forEach(je)}class Nt{constructor(c,l){this.routes=c,this.module=l}}function $t(f){return"function"==typeof f}function Or(f){return f instanceof Kn}const Nr=Symbol("INITIAL_VALUE");function gr(){return ue(f=>function(){for(var f=[],c=0;cc.pipe((0,_t.q)(1),function(){for(var f=[],c=0;c{let p=!1;return l.reduce((C,b,R)=>C!==Nr?C:(b===Nr&&(p=!0),p||!1!==b&&R!==l.length-1&&!Or(b)?C:b),c)},Nr),(0,ee.h)(c=>c!==Nr),(0,yt.U)(c=>Or(c)?c:!0===c),(0,_t.q)(1)))}let Zi=(()=>{class f{}return f.\u0275fac=function(l){return new(l||f)},f.\u0275cmp=u.Xpm({type:f,selectors:[["ng-component"]],decls:1,vars:0,template:function(l,p){1&l&&u._UZ(0,"router-outlet")},directives:function(){return[po]},encapsulation:2}),f})();function vi(f,c=""){for(let l=0;lS(p)===c);return l.push(...f.filter(p=>S(p)!==c)),l}const oe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function pe(f,c,l){var p;if(""===c.path)return"full"===c.pathMatch&&(f.hasChildren()||l.length>0)?Object.assign({},oe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const b=(c.matcher||ot)(l,f,c);if(!b)return Object.assign({},oe);const R={};nt(b.posParams,(q,Se)=>{R[Se]=q.path});const V=b.consumed.length>0?Object.assign(Object.assign({},R),b.consumed[b.consumed.length-1].parameters):R;return{matched:!0,consumedSegments:b.consumed,lastChild:b.consumed.length,parameters:V,positionalParamSegments:null!==(p=b.posParams)&&void 0!==p?p:{}}}function Be(f,c,l,p,C="corrected"){if(l.length>0&&function(f,c,l){return l.some(p=>M(f,c,p)&&S(p)!==Ne)}(f,l,p)){const R=new et(c,function(f,c,l,p){const C={};C[Ne]=p,p._sourceSegment=f,p._segmentIndexShift=c.length;for(const b of l)if(""===b.path&&S(b)!==Ne){const R=new et([],{});R._sourceSegment=f,R._segmentIndexShift=c.length,C[S(b)]=R}return C}(f,c,p,new et(l,f.children)));return R._sourceSegment=f,R._segmentIndexShift=c.length,{segmentGroup:R,slicedSegments:[]}}if(0===l.length&&function(f,c,l){return l.some(p=>M(f,c,p))}(f,l,p)){const R=new et(f.segments,function(f,c,l,p,C,b){const R={};for(const V of p)if(M(f,l,V)&&!C[S(V)]){const q=new et([],{});q._sourceSegment=f,q._segmentIndexShift="legacy"===b?f.segments.length:c.length,R[S(V)]=q}return Object.assign(Object.assign({},C),R)}(f,c,l,p,f.children,C));return R._sourceSegment=f,R._segmentIndexShift=c.length,{segmentGroup:R,slicedSegments:l}}const b=new et(f.segments,f.children);return b._sourceSegment=f,b._segmentIndexShift=c.length,{segmentGroup:b,slicedSegments:l}}function M(f,c,l){return(!(f.hasChildren()||c.length>0)||"full"!==l.pathMatch)&&""===l.path}function Z(f,c,l,p){return!!(S(f)===p||p!==Ne&&M(c,l,f))&&("**"===f.path||pe(c,f,l).matched)}function we(f,c,l){return 0===c.length&&!f.children[l]}class At{constructor(c){this.segmentGroup=c||null}}class an{constructor(c){this.urlTree=c}}function Qt(f){return new Q.y(c=>c.error(new At(f)))}function zt(f){return new Q.y(c=>c.error(new an(f)))}function qi(f){return new Q.y(c=>c.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f}'`)))}class bn{constructor(c,l,p,C,b){this.configLoader=l,this.urlSerializer=p,this.urlTree=C,this.config=b,this.allowRedirects=!0,this.ngModule=c.get(u.h0i)}apply(){const c=Be(this.urlTree.root,[],[],this.config).segmentGroup,l=new et(c.segments,c.children);return this.expandSegmentGroup(this.ngModule,this.config,l,Ne).pipe((0,yt.U)(b=>this.createUrlTree(Qr(b),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,gn.K)(b=>{if(b instanceof an)return this.allowRedirects=!1,this.match(b.urlTree);throw b instanceof At?this.noMatchError(b):b}))}match(c){return this.expandSegmentGroup(this.ngModule,this.config,c.root,Ne).pipe((0,yt.U)(C=>this.createUrlTree(Qr(C),c.queryParams,c.fragment))).pipe((0,gn.K)(C=>{throw C instanceof At?this.noMatchError(C):C}))}noMatchError(c){return new Error(`Cannot match any routes. URL Segment: '${c.segmentGroup}'`)}createUrlTree(c,l,p){const C=c.segments.length>0?new et([],{[Ne]:c}):c;return new Kn(C,l,p)}expandSegmentGroup(c,l,p,C){return 0===p.segments.length&&p.hasChildren()?this.expandChildren(c,l,p).pipe((0,yt.U)(b=>new et([],b))):this.expandSegment(c,p,l,p.segments,C,!0)}expandChildren(c,l,p){const C=[];for(const b of Object.keys(p.children))"primary"===b?C.unshift(b):C.push(b);return(0,P.Dp)(C).pipe((0,Tt.b)(b=>{const R=p.children[b],V=B(l,b);return this.expandSegmentGroup(c,V,R,b).pipe((0,yt.U)(q=>({segment:q,outlet:b})))}),ze((b,R)=>(b[R.outlet]=R.segment,b),{}),function(f,c){var l=arguments.length>=2;return function(p){return p.pipe(f?(0,ee.h)(function(C,b){return f(C,b,p)}):x.y,Ie(1),l?Xe(c):be(function(){return new Me}))}}())}expandSegment(c,l,p,C,b,R){return(0,P.Dp)(p).pipe((0,Tt.b)(V=>this.expandSegmentAgainstRoute(c,l,p,V,C,b,R).pipe((0,gn.K)(Se=>{if(Se instanceof At)return(0,H.of)(null);throw Se}))),jt(V=>!!V),(0,gn.K)((V,q)=>{if(V instanceof Me||"EmptyError"===V.name){if(we(l,C,b))return(0,H.of)(new et([],{}));throw new At(l)}throw V}))}expandSegmentAgainstRoute(c,l,p,C,b,R,V){return Z(C,l,b,R)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(c,l,C,b,R):V&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R):Qt(l):Qt(l)}expandSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R){return"**"===C.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(c,p,C,R):this.expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R)}expandWildCardWithParamsAgainstRouteUsingRedirect(c,l,p,C){const b=this.applyRedirectCommands([],p.redirectTo,{});return p.redirectTo.startsWith("/")?zt(b):this.lineralizeSegments(p,b).pipe((0,it.z)(R=>{const V=new et(R,{});return this.expandSegment(c,V,l,R,C,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(c,l,p,C,b,R){const{matched:V,consumedSegments:q,lastChild:Se,positionalParamSegments:Ue}=pe(l,C,b);if(!V)return Qt(l);const at=this.applyRedirectCommands(q,C.redirectTo,Ue);return C.redirectTo.startsWith("/")?zt(at):this.lineralizeSegments(C,at).pipe((0,it.z)(kt=>this.expandSegment(c,l,p,kt.concat(b.slice(Se)),R,!1)))}matchSegmentAgainstRoute(c,l,p,C,b){if("**"===p.path)return p.loadChildren?(p._loadedConfig?(0,H.of)(p._loadedConfig):this.configLoader.load(c.injector,p)).pipe((0,yt.U)(kt=>(p._loadedConfig=kt,new et(C,{})))):(0,H.of)(new et(C,{}));const{matched:R,consumedSegments:V,lastChild:q}=pe(l,p,C);if(!R)return Qt(l);const Se=C.slice(q);return this.getChildConfig(c,p,C).pipe((0,it.z)(at=>{const kt=at.module,Ct=at.routes,{segmentGroup:_r,slicedSegments:or}=Be(l,V,Se,Ct),Lr=new et(_r.segments,_r.children);if(0===or.length&&Lr.hasChildren())return this.expandChildren(kt,Ct,Lr).pipe((0,yt.U)(Ho=>new et(V,Ho)));if(0===Ct.length&&0===or.length)return(0,H.of)(new et(V,{}));const Xi=S(p)===b;return this.expandSegment(kt,Lr,Ct,or,Xi?Ne:b,!0).pipe((0,yt.U)(sr=>new et(V.concat(sr.segments),sr.children)))}))}getChildConfig(c,l,p){return l.children?(0,H.of)(new Nt(l.children,c)):l.loadChildren?void 0!==l._loadedConfig?(0,H.of)(l._loadedConfig):this.runCanLoadGuards(c.injector,l,p).pipe((0,it.z)(C=>{return C?this.configLoader.load(c.injector,l).pipe((0,yt.U)(b=>(l._loadedConfig=b,b))):(f=l,new Q.y(c=>c.error(wt(`Cannot load children because the guard of the route "path: '${f.path}'" returned false`))));var f})):(0,H.of)(new Nt([],c))}runCanLoadGuards(c,l,p){const C=l.canLoad;if(!C||0===C.length)return(0,H.of)(!0);const b=C.map(R=>{const V=c.get(R);let q;if((f=V)&&$t(f.canLoad))q=V.canLoad(l,p);else{if(!$t(V))throw new Error("Invalid CanLoad guard");q=V(l,p)}var f;return Mn(q)});return(0,H.of)(b).pipe(gr(),It(R=>{if(!Or(R))return;const V=wt(`Redirecting to "${this.urlSerializer.serialize(R)}"`);throw V.url=R,V}),(0,yt.U)(R=>!0===R))}lineralizeSegments(c,l){let p=[],C=l.root;for(;;){if(p=p.concat(C.segments),0===C.numberOfChildren)return(0,H.of)(p);if(C.numberOfChildren>1||!C.children[Ne])return qi(c.redirectTo);C=C.children[Ne]}}applyRedirectCommands(c,l,p){return this.applyRedirectCreatreUrlTree(l,this.urlSerializer.parse(l),c,p)}applyRedirectCreatreUrlTree(c,l,p,C){const b=this.createSegmentGroup(c,l.root,p,C);return new Kn(b,this.createQueryParams(l.queryParams,this.urlTree.queryParams),l.fragment)}createQueryParams(c,l){const p={};return nt(c,(C,b)=>{if("string"==typeof C&&C.startsWith(":")){const V=C.substring(1);p[b]=l[V]}else p[b]=C}),p}createSegmentGroup(c,l,p,C){const b=this.createSegments(c,l.segments,p,C);let R={};return nt(l.children,(V,q)=>{R[q]=this.createSegmentGroup(c,V,p,C)}),new et(b,R)}createSegments(c,l,p,C){return l.map(b=>b.path.startsWith(":")?this.findPosParam(c,b,C):this.findOrReturn(b,p))}findPosParam(c,l,p){const C=p[l.path.substring(1)];if(!C)throw new Error(`Cannot redirect to '${c}'. Cannot find '${l.path}'.`);return C}findOrReturn(c,l){let p=0;for(const C of l){if(C.path===c.path)return l.splice(p),C;p++}return c}}function Qr(f){const c={};for(const p of Object.keys(f.children)){const b=Qr(f.children[p]);(b.segments.length>0||b.hasChildren())&&(c[p]=b)}return function(f){if(1===f.numberOfChildren&&f.children[Ne]){const c=f.children[Ne];return new et(f.segments.concat(c.segments),c.children)}return f}(new et(f.segments,c))}class Xr{constructor(c){this.path=c,this.route=this.path[this.path.length-1]}}class ao{constructor(c,l){this.component=c,this.route=l}}function ks(f,c,l){const p=f._root;return lo(p,c?c._root:null,l,[p.value])}function Vs(f,c,l){const p=function(f){if(!f)return null;for(let c=f.parent;c;c=c.parent){const l=c.routeConfig;if(l&&l._loadedConfig)return l._loadedConfig}return null}(c);return(p?p.module.injector:l).get(f)}function lo(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=hn(c);return f.children.forEach(R=>{(function(f,c,l,p,C={canDeactivateChecks:[],canActivateChecks:[]}){const b=f.value,R=c?c.value:null,V=l?l.getContext(f.value.outlet):null;if(R&&b.routeConfig===R.routeConfig){const q=function(f,c,l){if("function"==typeof l)return l(f,c);switch(l){case"pathParamsChange":return!En(f.url,c.url);case"pathParamsOrQueryParamsChange":return!En(f.url,c.url)||!Le(f.queryParams,c.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$n(f,c)||!Le(f.queryParams,c.queryParams);case"paramsChange":default:return!$n(f,c)}}(R,b,b.routeConfig.runGuardsAndResolvers);q?C.canActivateChecks.push(new Xr(p)):(b.data=R.data,b._resolvedData=R._resolvedData),lo(f,c,b.component?V?V.children:null:l,p,C),q&&V&&V.outlet&&V.outlet.isActivated&&C.canDeactivateChecks.push(new ao(V.outlet.component,R))}else R&&uo(c,V,C),C.canActivateChecks.push(new Xr(p)),lo(f,null,b.component?V?V.children:null:l,p,C)})(R,b[R.value.outlet],l,p.concat([R.value]),C),delete b[R.value.outlet]}),nt(b,(R,V)=>uo(R,l.getContext(V),C)),C}function uo(f,c,l){const p=hn(f),C=f.value;nt(p,(b,R)=>{uo(b,C.component?c?c.children.getContext(R):null:c,l)}),l.canDeactivateChecks.push(new ao(C.component&&c&&c.outlet&&c.outlet.isActivated?c.outlet.component:null,C))}class Us{}function To(f){return new Q.y(c=>c.error(f))}class ou{constructor(c,l,p,C,b,R){this.rootComponentType=c,this.config=l,this.urlTree=p,this.url=C,this.paramsInheritanceStrategy=b,this.relativeLinkResolution=R}recognize(){const c=Be(this.urlTree.root,[],[],this.config.filter(R=>void 0===R.redirectTo),this.relativeLinkResolution).segmentGroup,l=this.processSegmentGroup(this.config,c,Ne);if(null===l)return null;const p=new Ar([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),C=new _n(p,l),b=new ir(this.url,C);return this.inheritParamsAndData(b._root),b}inheritParamsAndData(c){const l=c.value,p=Mt(l,this.paramsInheritanceStrategy);l.params=Object.freeze(p.params),l.data=Object.freeze(p.data),c.children.forEach(C=>this.inheritParamsAndData(C))}processSegmentGroup(c,l,p){return 0===l.segments.length&&l.hasChildren()?this.processChildren(c,l):this.processSegment(c,l,l.segments,p)}processChildren(c,l){const p=[];for(const b of Object.keys(l.children)){const R=l.children[b],V=B(c,b),q=this.processSegmentGroup(V,R,b);if(null===q)return null;p.push(...q)}const C=yr(p);return C.sort((c,l)=>c.value.outlet===Ne?-1:l.value.outlet===Ne?1:c.value.outlet.localeCompare(l.value.outlet)),C}processSegment(c,l,p,C){for(const b of c){const R=this.processSegmentAgainstRoute(b,l,p,C);if(null!==R)return R}return we(l,p,C)?[]:null}processSegmentAgainstRoute(c,l,p,C){if(c.redirectTo||!Z(c,l,p,C))return null;let b,R=[],V=[];if("**"===c.path){const Ct=p.length>0?Dr(p).parameters:{};b=new Ar(p,Ct,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+p.length,Bs(c))}else{const Ct=pe(l,c,p);if(!Ct.matched)return null;R=Ct.consumedSegments,V=p.slice(Ct.lastChild),b=new Ar(R,Ct.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ha(c),S(c),c.component,c,Vi(l),Fr(l)+R.length,Bs(c))}const q=(f=c).children?f.children:f.loadChildren?f._loadedConfig.routes:[],{segmentGroup:Se,slicedSegments:Ue}=Be(l,R,V,q.filter(Ct=>void 0===Ct.redirectTo),this.relativeLinkResolution);var f;if(0===Ue.length&&Se.hasChildren()){const Ct=this.processChildren(q,Se);return null===Ct?null:[new _n(b,Ct)]}if(0===q.length&&0===Ue.length)return[new _n(b,[])];const at=S(c)===C,kt=this.processSegment(q,Se,Ue,at?Ne:C);return null===kt?null:[new _n(b,kt)]}}function Hn(f){const c=f.value.routeConfig;return c&&""===c.path&&void 0===c.redirectTo}function yr(f){const c=[],l=new Set;for(const p of f){if(!Hn(p)){c.push(p);continue}const C=c.find(b=>p.value.routeConfig===b.value.routeConfig);void 0!==C?(C.children.push(...p.children),l.add(C)):c.push(p)}for(const p of l){const C=yr(p.children);c.push(new _n(p.value,C))}return c.filter(p=>!l.has(p))}function Vi(f){let c=f;for(;c._sourceSegment;)c=c._sourceSegment;return c}function Fr(f){let c=f,l=c._segmentIndexShift?c._segmentIndexShift:0;for(;c._sourceSegment;)c=c._sourceSegment,l+=c._segmentIndexShift?c._segmentIndexShift:0;return l-1}function Ha(f){return f.data||{}}function Bs(f){return f.resolve||{}}function fo(f){return ue(c=>{const l=f(c);return l?(0,P.Dp)(l).pipe((0,yt.U)(()=>c)):(0,H.of)(c)})}class No extends class{shouldDetach(c){return!1}store(c,l){}shouldAttach(c){return!1}retrieve(c){return null}shouldReuseRoute(c,l){return c.routeConfig===l.routeConfig}}{}const Ro=new u.OlP("ROUTES");class Hs{constructor(c,l,p,C){this.loader=c,this.compiler=l,this.onLoadStartListener=p,this.onLoadEndListener=C}load(c,l){if(l._loader$)return l._loader$;this.onLoadStartListener&&this.onLoadStartListener(l);const C=this.loadModuleFactory(l.loadChildren).pipe((0,yt.U)(b=>{this.onLoadEndListener&&this.onLoadEndListener(l);const R=b.create(c);return new Nt(rn(R.injector.get(Ro,void 0,u.XFs.Self|u.XFs.Optional)).map(v),R)}),(0,gn.K)(b=>{throw l._loader$=void 0,b}));return l._loader$=new le(C,()=>new re.x).pipe(lt()),l._loader$}loadModuleFactory(c){return"string"==typeof c?(0,P.Dp)(this.loader.load(c)):Mn(c()).pipe((0,it.z)(l=>l instanceof u.YKP?(0,H.of)(l):(0,P.Dp)(this.compiler.compileModuleAsync(l))))}}class za{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ui,this.attachRef=null}}class Ui{constructor(){this.contexts=new Map}onChildOutletCreated(c,l){const p=this.getOrCreateContext(c);p.outlet=l,this.contexts.set(c,p)}onChildOutletDestroyed(c){const l=this.getContext(c);l&&(l.outlet=null)}onOutletDeactivated(){const c=this.contexts;return this.contexts=new Map,c}onOutletReAttached(c){this.contexts=c}getOrCreateContext(c){let l=this.getContext(c);return l||(l=new za,this.contexts.set(c,l)),l}getContext(c){return this.contexts.get(c)||null}}class cu{shouldProcessUrl(c){return!0}extract(c){return c}merge(c,l){return c}}function du(f){throw f}function Gn(f,c,l){return c.parse("/")}function ei(f,c){return(0,H.of)(null)}const Xt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fu={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wn=(()=>{class f{constructor(l,p,C,b,R,V,q,Se){this.rootComponentType=l,this.urlSerializer=p,this.rootContexts=C,this.location=b,this.config=Se,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new re.x,this.errorHandler=du,this.malformedUriErrorHandler=Gn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ei,afterPreactivation:ei},this.urlHandlingStrategy=new cu,this.routeReuseStrategy=new No,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=R.get(u.h0i),this.console=R.get(u.c2e);const kt=R.get(u.R0b);this.isNgZoneEnabled=kt instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(Se),this.currentUrlTree=new Kn(new et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Hs(V,q,Ct=>this.triggerEvent(new G(Ct)),Ct=>this.triggerEvent(new W(Ct))),this.routerState=Un(this.currentUrlTree,this.rootComponentType),this.transitions=new te({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()}get browserPageId(){var l;return null===(l=this.location.getState())||void 0===l?void 0:l.\u0275routerPageId}setupNavigations(l){const p=this.events;return l.pipe((0,ee.h)(C=>0!==C.id),(0,yt.U)(C=>Object.assign(Object.assign({},C),{extractedUrl:this.urlHandlingStrategy.extract(C.rawUrl)})),ue(C=>{let b=!1,R=!1;return(0,H.of)(C).pipe(It(V=>{this.currentNavigation={id:V.id,initialUrl:V.currentRawUrl,extractedUrl:V.extractedUrl,trigger:V.source,extras:V.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ue(V=>{const q=!this.navigated||V.extractedUrl.toString()!==this.browserUrlTree.toString(),Se=("reload"===this.onSameUrlNavigation||q)&&this.urlHandlingStrategy.shouldProcessUrl(V.rawUrl);if(Fo(V.source)&&(this.browserUrlTree=V.rawUrl),Se)return(0,H.of)(V).pipe(ue(Ue=>{const at=this.transitions.getValue();return p.next(new Cn(Ue.id,this.serializeUrl(Ue.extractedUrl),Ue.source,Ue.restoredState)),at!==this.transitions.getValue()?X.E:Promise.resolve(Ue)}),function(f,c,l,p){return ue(C=>function(f,c,l,p,C){return new bn(f,c,l,p,C).apply()}(f,c,l,C.extractedUrl,p).pipe((0,yt.U)(b=>Object.assign(Object.assign({},C),{urlAfterRedirects:b}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),It(Ue=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Ue.urlAfterRedirects})}),function(f,c,l,p,C){return(0,it.z)(b=>function(f,c,l,p,C="emptyOnly",b="legacy"){try{const R=new ou(f,c,l,p,C,b).recognize();return null===R?To(new Us):(0,H.of)(R)}catch(R){return To(R)}}(f,c,b.urlAfterRedirects,l(b.urlAfterRedirects),p,C).pipe((0,yt.U)(R=>Object.assign(Object.assign({},b),{targetSnapshot:R}))))}(this.rootComponentType,this.config,Ue=>this.serializeUrl(Ue),this.paramsInheritanceStrategy,this.relativeLinkResolution),It(Ue=>{"eager"===this.urlUpdateStrategy&&(Ue.extras.skipLocationChange||this.setBrowserUrl(Ue.urlAfterRedirects,Ue),this.browserUrlTree=Ue.urlAfterRedirects);const at=new Ft(Ue.id,this.serializeUrl(Ue.extractedUrl),this.serializeUrl(Ue.urlAfterRedirects),Ue.targetSnapshot);p.next(at)}));if(q&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:at,extractedUrl:kt,source:Ct,restoredState:_r,extras:or}=V,Lr=new Cn(at,this.serializeUrl(kt),Ct,_r);p.next(Lr);const Xi=Un(kt,this.rootComponentType).snapshot;return(0,H.of)(Object.assign(Object.assign({},V),{targetSnapshot:Xi,urlAfterRedirects:kt,extras:Object.assign(Object.assign({},or),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=V.rawUrl,this.browserUrlTree=V.urlAfterRedirects,V.resolve(null),X.E}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.beforePreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),It(V=>{const q=new gt(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot);this.triggerEvent(q)}),(0,yt.U)(V=>Object.assign(Object.assign({},V),{guards:ks(V.targetSnapshot,V.currentSnapshot,this.rootContexts)})),function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,currentSnapshot:C,guards:{canActivateChecks:b,canDeactivateChecks:R}}=l;return 0===R.length&&0===b.length?(0,H.of)(Object.assign(Object.assign({},l),{guardsResult:!0})):function(f,c,l,p){return(0,P.Dp)(f).pipe((0,it.z)(C=>function(f,c,l,p,C){const b=c&&c.routeConfig?c.routeConfig.canDeactivate:null;if(!b||0===b.length)return(0,H.of)(!0);const R=b.map(V=>{const q=Vs(V,c,C);let Se;if(function(f){return f&&$t(f.canDeactivate)}(q))Se=Mn(q.canDeactivate(f,c,l,p));else{if(!$t(q))throw new Error("Invalid CanDeactivate guard");Se=Mn(q(f,c,l,p))}return Se.pipe(jt())});return(0,H.of)(R).pipe(gr())}(C.component,C.route,l,c,p)),jt(C=>!0!==C,!0))}(R,p,C,f).pipe((0,it.z)(V=>V&&function(f){return"boolean"==typeof f}(V)?function(f,c,l,p){return(0,P.Dp)(c).pipe((0,Tt.b)(C=>he(function(f,c){return null!==f&&c&&c(new ge(f)),(0,H.of)(!0)}(C.route.parent,p),function(f,c){return null!==f&&c&&c(new Re(f)),(0,H.of)(!0)}(C.route,p),function(f,c,l){const p=c[c.length-1],b=c.slice(0,c.length-1).reverse().map(R=>function(f){const c=f.routeConfig?f.routeConfig.canActivateChild:null;return c&&0!==c.length?{node:f,guards:c}:null}(R)).filter(R=>null!==R).map(R=>Ke(()=>{const V=R.guards.map(q=>{const Se=Vs(q,R.node,l);let Ue;if(function(f){return f&&$t(f.canActivateChild)}(Se))Ue=Mn(Se.canActivateChild(p,f));else{if(!$t(Se))throw new Error("Invalid CanActivateChild guard");Ue=Mn(Se(p,f))}return Ue.pipe(jt())});return(0,H.of)(V).pipe(gr())}));return(0,H.of)(b).pipe(gr())}(f,C.path,l),function(f,c,l){const p=c.routeConfig?c.routeConfig.canActivate:null;if(!p||0===p.length)return(0,H.of)(!0);const C=p.map(b=>Ke(()=>{const R=Vs(b,c,l);let V;if(function(f){return f&&$t(f.canActivate)}(R))V=Mn(R.canActivate(c,f));else{if(!$t(R))throw new Error("Invalid CanActivate guard");V=Mn(R(c,f))}return V.pipe(jt())}));return(0,H.of)(C).pipe(gr())}(f,C.route,l))),jt(C=>!0!==C,!0))}(p,b,f,c):(0,H.of)(V)),(0,yt.U)(V=>Object.assign(Object.assign({},l),{guardsResult:V})))})}(this.ngModule.injector,V=>this.triggerEvent(V)),It(V=>{if(Or(V.guardsResult)){const Se=wt(`Redirecting to "${this.serializeUrl(V.guardsResult)}"`);throw Se.url=V.guardsResult,Se}const q=new tr(V.id,this.serializeUrl(V.extractedUrl),this.serializeUrl(V.urlAfterRedirects),V.targetSnapshot,!!V.guardsResult);this.triggerEvent(q)}),(0,ee.h)(V=>!!V.guardsResult||(this.restoreHistory(V),this.cancelNavigationTransition(V,""),!1)),fo(V=>{if(V.guards.canActivateChecks.length)return(0,H.of)(V).pipe(It(q=>{const Se=new Ni(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}),ue(q=>{let Se=!1;return(0,H.of)(q).pipe(function(f,c){return(0,it.z)(l=>{const{targetSnapshot:p,guards:{canActivateChecks:C}}=l;if(!C.length)return(0,H.of)(l);let b=0;return(0,P.Dp)(C).pipe((0,Tt.b)(R=>function(f,c,l,p){return function(f,c,l,p){const C=Object.keys(f);if(0===C.length)return(0,H.of)({});const b={};return(0,P.Dp)(C).pipe((0,it.z)(R=>function(f,c,l,p){const C=Vs(f,c,p);return Mn(C.resolve?C.resolve(c,l):C(c,l))}(f[R],c,l,p).pipe(It(V=>{b[R]=V}))),Ie(1),(0,it.z)(()=>Object.keys(b).length===C.length?(0,H.of)(b):X.E))}(f._resolve,f,c,p).pipe((0,yt.U)(b=>(f._resolvedData=b,f.data=Object.assign(Object.assign({},f.data),Mt(f,l).resolve),null)))}(R.route,p,f,c)),It(()=>b++),Ie(1),(0,it.z)(R=>b===C.length?(0,H.of)(l):X.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),It({next:()=>Se=!0,complete:()=>{Se||(this.restoreHistory(q),this.cancelNavigationTransition(q,"At least one route resolver didn't emit any value."))}}))}),It(q=>{const Se=new fe(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(Se)}))}),fo(V=>{const{targetSnapshot:q,id:Se,extractedUrl:Ue,rawUrl:at,extras:{skipLocationChange:kt,replaceUrl:Ct}}=V;return this.hooks.afterPreactivation(q,{navigationId:Se,appliedUrlTree:Ue,rawUrlTree:at,skipLocationChange:!!kt,replaceUrl:!!Ct})}),(0,yt.U)(V=>{const q=function(f,c,l){const p=Sr(f,c._root,l?l._root:void 0);return new Ht(p,c)}(this.routeReuseStrategy,V.targetSnapshot,V.currentRouterState);return Object.assign(Object.assign({},V),{targetRouterState:q})}),It(V=>{this.currentUrlTree=V.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,V.rawUrl),this.routerState=V.targetRouterState,"deferred"===this.urlUpdateStrategy&&(V.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,V),this.browserUrlTree=V.urlAfterRedirects)}),((f,c,l)=>(0,yt.U)(p=>(new Oe(c,p.targetRouterState,p.currentRouterState,l).activate(f),p)))(this.rootContexts,this.routeReuseStrategy,V=>this.triggerEvent(V)),It({next(){b=!0},complete(){b=!0}}),function(f){return(0,$e.e)(function(c,l){try{c.subscribe(l)}finally{l.add(f)}})}(()=>{if(!b&&!R){const V=`Navigation ID ${C.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(C),this.cancelNavigationTransition(C,V)):this.cancelNavigationTransition(C,V)}this.currentNavigation=null}),(0,gn.K)(V=>{if(R=!0,function(f){return f&&f[zn]}(V)){const q=Or(V.url);q||(this.navigated=!0,this.restoreHistory(C,!0));const Se=new xt(C.id,this.serializeUrl(C.extractedUrl),V.message);p.next(Se),q?setTimeout(()=>{const Ue=this.urlHandlingStrategy.merge(V.url,this.rawUrlTree),at={skipLocationChange:C.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Fo(C.source)};this.scheduleNavigation(Ue,"imperative",null,at,{resolve:C.resolve,reject:C.reject,promise:C.promise})},0):C.resolve(!1)}else{this.restoreHistory(C,!0);const q=new Hr(C.id,this.serializeUrl(C.extractedUrl),V);p.next(q);try{C.resolve(this.errorHandler(V))}catch(Se){C.reject(Se)}}return X.E}))}))}resetRootComponentType(l){this.rootComponentType=l,this.routerState.root.component=this.rootComponentType}getTransition(){const l=this.transitions.value;return l.urlAfterRedirects=this.browserUrlTree,l}setTransition(l){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),l))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(l=>{const p=this.extractLocationChangeInfoFromEvent(l);this.shouldScheduleNavigation(this.lastLocationChangeInfo,p)&&setTimeout(()=>{const{source:C,state:b,urlTree:R}=p,V={replaceUrl:!0};if(b){const q=Object.assign({},b);delete q.navigationId,delete q.\u0275routerPageId,0!==Object.keys(q).length&&(V.state=q)}this.scheduleNavigation(R,C,b,V)},0),this.lastLocationChangeInfo=p}))}extractLocationChangeInfoFromEvent(l){var p;return{source:"popstate"===l.type?"popstate":"hashchange",urlTree:this.parseUrl(l.url),state:(null===(p=l.state)||void 0===p?void 0:p.navigationId)?l.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(l,p){if(!l)return!0;const C=p.urlTree.toString()===l.urlTree.toString();return p.transitionId!==l.transitionId||!C||!("hashchange"===p.source&&"popstate"===l.source||"popstate"===p.source&&"hashchange"===l.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(l){this.events.next(l)}resetConfig(l){vi(l),this.config=l.map(v),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(l,p={}){const{relativeTo:C,queryParams:b,fragment:R,queryParamsHandling:V,preserveFragment:q}=p,Se=C||this.routerState.root,Ue=q?this.currentUrlTree.fragment:R;let at=null;switch(V){case"merge":at=Object.assign(Object.assign({},this.currentUrlTree.queryParams),b);break;case"preserve":at=this.currentUrlTree.queryParams;break;default:at=b||null}return null!==at&&(at=this.removeEmptyProps(at)),function(f,c,l,p,C){if(0===l.length)return Ir(c.root,c.root,c,p,C);const b=function(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new mi(!0,0,f);let c=0,l=!1;const p=f.reduce((C,b,R)=>{if("object"==typeof b&&null!=b){if(b.outlets){const V={};return nt(b.outlets,(q,Se)=>{V[Se]="string"==typeof q?q.split("/"):q}),[...C,{outlets:V}]}if(b.segmentPath)return[...C,b.segmentPath]}return"string"!=typeof b?[...C,b]:0===R?(b.split("/").forEach((V,q)=>{0==q&&"."===V||(0==q&&""===V?l=!0:".."===V?c++:""!=V&&C.push(V))}),C):[...C,b]},[]);return new mi(l,c,p)}(l);if(b.toRoot())return Ir(c.root,new et([],{}),c,p,C);const R=function(f,c,l){if(f.isAbsolute)return new yi(c.root,!0,0);if(-1===l.snapshot._lastPathIndex){const b=l.snapshot._urlSegment;return new yi(b,b===c.root,0)}const p=jn(f.commands[0])?0:1;return function(f,c,l){let p=f,C=c,b=l;for(;b>C;){if(b-=C,p=p.parent,!p)throw new Error("Invalid number of '../'");C=p.segments.length}return new yi(p,!1,C-b)}(l.snapshot._urlSegment,l.snapshot._lastPathIndex+p,f.numberOfDoubleDots)}(b,c,f),V=R.processChildren?Jr(R.segmentGroup,R.index,b.commands):_i(R.segmentGroup,R.index,b.commands);return Ir(R.segmentGroup,V,c,p,C)}(Se,this.currentUrlTree,l,at,null!=Ue?Ue:null)}navigateByUrl(l,p={skipLocationChange:!1}){const C=Or(l)?l:this.parseUrl(l),b=this.urlHandlingStrategy.merge(C,this.rawUrlTree);return this.scheduleNavigation(b,"imperative",null,p)}navigate(l,p={skipLocationChange:!1}){return function(f){for(let c=0;c{const b=l[C];return null!=b&&(p[C]=b),p},{})}processNavigations(){this.navigations.subscribe(l=>{this.navigated=!0,this.lastSuccessfulId=l.id,this.currentPageId=l.targetPageId,this.events.next(new Rn(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,l.resolve(!0)},l=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(l,p,C,b,R){var V,q;if(this.disposed)return Promise.resolve(!1);const Se=this.getTransition(),Ue=Fo(p)&&Se&&!Fo(Se.source),Ct=(this.lastSuccessfulId===Se.id||this.currentNavigation?Se.rawUrl:Se.urlAfterRedirects).toString()===l.toString();if(Ue&&Ct)return Promise.resolve(!0);let _r,or,Lr;R?(_r=R.resolve,or=R.reject,Lr=R.promise):Lr=new Promise((sr,Ho)=>{_r=sr,or=Ho});const Xi=++this.navigationId;let Bi;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(C=this.location.getState()),Bi=C&&C.\u0275routerPageId?C.\u0275routerPageId:b.replaceUrl||b.skipLocationChange?null!==(V=this.browserPageId)&&void 0!==V?V:0:(null!==(q=this.browserPageId)&&void 0!==q?q:0)+1):Bi=0,this.setTransition({id:Xi,targetPageId:Bi,source:p,restoredState:C,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:l,extras:b,resolve:_r,reject:or,promise:Lr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Lr.catch(sr=>Promise.reject(sr))}setBrowserUrl(l,p){const C=this.urlSerializer.serialize(l),b=Object.assign(Object.assign({},p.extras.state),this.generateNgRouterState(p.id,p.targetPageId));this.location.isCurrentPathEqualTo(C)||p.extras.replaceUrl?this.location.replaceState(C,"",b):this.location.go(C,"",b)}restoreHistory(l,p=!1){var C,b;if("computed"===this.canceledNavigationResolution){const R=this.currentPageId-l.targetPageId;"popstate"!==l.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(C=this.currentNavigation)||void 0===C?void 0:C.finalUrl)||0===R?this.currentUrlTree===(null===(b=this.currentNavigation)||void 0===b?void 0:b.finalUrl)&&0===R&&(this.resetState(l),this.browserUrlTree=l.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(R)}else"replace"===this.canceledNavigationResolution&&(p&&this.resetState(l),this.resetUrlToCurrentUrlTree())}resetState(l){this.routerState=l.currentRouterState,this.currentUrlTree=l.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,l.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(l,p){const C=new xt(l.id,this.serializeUrl(l.extractedUrl),p);this.triggerEvent(C),l.resolve(!1)}generateNgRouterState(l,p){return"computed"===this.canceledNavigationResolution?{navigationId:l,\u0275routerPageId:p}:{navigationId:l}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.DyG),u.LFG(yn),u.LFG(Ui),u.LFG(y.Ye),u.LFG(u.zs3),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Fo(f){return"imperative"!==f}let Lo=(()=>{class f{constructor(l,p,C,b,R){this.router=l,this.route=p,this.commands=[],this.onChanges=new re.x,null==C&&b.setAttribute(R.nativeElement,"tabindex","0")}ngOnChanges(l){this.onChanges.next(this)}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}onClick(){const l={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(l,p){1&l&&u.NdJ("click",function(){return p.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})(),ko=(()=>{class f{constructor(l,p,C){this.router=l,this.route=p,this.locationStrategy=C,this.commands=[],this.onChanges=new re.x,this.subscription=l.events.subscribe(b=>{b instanceof Rn&&this.updateTargetUrlAndHref()})}set routerLink(l){this.commands=null!=l?Array.isArray(l)?l:[l]:[]}ngOnChanges(l){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(l,p,C,b,R){if(0!==l||p||C||b||R||"string"==typeof this.target&&"_self"!=this.target)return!0;const V={skipLocationChange:ti(this.skipLocationChange),replaceUrl:ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,V),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ti(this.preserveFragment)})}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(Gt),u.Y36(y.S$))},f.\u0275dir=u.lG2({type:f,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(l,p){1&l&&u.NdJ("click",function(b){return p.onClick(b.button,b.ctrlKey,b.shiftKey,b.altKey,b.metaKey)}),2&l&&(u.Ikx("href",p.href,u.LSH),u.uIk("target",p.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[u.TTD]}),f})();function ti(f){return""===f||!!f}let ho=(()=>{class f{constructor(l,p,C,b,R,V){this.router=l,this.element=p,this.renderer=C,this.cdr=b,this.link=R,this.linkWithHref=V,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=l.events.subscribe(q=>{q instanceof Rn&&this.update()})}ngAfterContentInit(){(0,H.of)(this.links.changes,this.linksWithHrefs.changes,(0,H.of)(null)).pipe((0,Ge.J)()).subscribe(l=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var l;null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe();const p=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(C=>!!C).map(C=>C.onChanges);this.linkInputChangesSubscription=(0,P.Dp)(p).pipe((0,Ge.J)()).subscribe(C=>{this.isActive!==this.isLinkActive(this.router)(C)&&this.update()})}set routerLinkActive(l){const p=Array.isArray(l)?l:l.split(" ");this.classes=p.filter(C=>!!C)}ngOnChanges(l){this.update()}ngOnDestroy(){var l;this.routerEventsSubscription.unsubscribe(),null===(l=this.linkInputChangesSubscription)||void 0===l||l.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const l=this.hasActiveLinks();this.isActive!==l&&(this.isActive=l,this.cdr.markForCheck(),this.classes.forEach(p=>{l?this.renderer.addClass(this.element.nativeElement,p):this.renderer.removeClass(this.element.nativeElement,p)}))})}isLinkActive(l){const p=function(f){return!!f.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return C=>l.isActive(C.urlTree,p)}hasActiveLinks(){const l=this.isLinkActive(this.router);return this.link&&l(this.link)||this.linkWithHref&&l(this.linkWithHref)||this.links.some(l)||this.linksWithHrefs.some(l)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Wn),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(u.sBO),u.Y36(Lo,8),u.Y36(ko,8))},f.\u0275dir=u.lG2({type:f,selectors:[["","routerLinkActive",""]],contentQueries:function(l,p,C){if(1&l&&(u.Suo(C,Lo,5),u.Suo(C,ko,5)),2&l){let b;u.iGM(b=u.CRH())&&(p.links=b),u.iGM(b=u.CRH())&&(p.linksWithHrefs=b)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[u.TTD]}),f})(),po=(()=>{class f{constructor(l,p,C,b,R){this.parentContexts=l,this.location=p,this.resolver=C,this.changeDetector=R,this.activated=null,this._activatedRoute=null,this.activateEvents=new u.vpe,this.deactivateEvents=new u.vpe,this.name=b||Ne,l.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const l=this.parentContexts.getContext(this.name);l&&l.route&&(l.attachRef?this.attach(l.attachRef,l.route):this.activateWith(l.route,l.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const l=this.activated;return this.activated=null,this._activatedRoute=null,l}attach(l,p){this.activated=l,this._activatedRoute=p,this.location.insert(l.hostView)}deactivate(){if(this.activated){const l=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(l)}}activateWith(l,p){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=l;const R=(p=p||this.resolver).resolveComponentFactory(l._futureSnapshot.routeConfig.component),V=this.parentContexts.getOrCreateContext(this.name).children,q=new Ka(l,V,this.location.injector);this.activated=this.location.createComponent(R,this.location.length,q),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return f.\u0275fac=function(l){return new(l||f)(u.Y36(Ui),u.Y36(u.s_b),u.Y36(u._Vd),u.$8M("name"),u.Y36(u.sBO))},f.\u0275dir=u.lG2({type:f,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),f})();class Ka{constructor(c,l,p){this.route=c,this.childContexts=l,this.parent=p}get(c,l){return c===Gt?this.route:c===Ui?this.childContexts:this.parent.get(c,l)}}class Ya{}class Ji{preload(c,l){return(0,H.of)(null)}}let Za=(()=>{class f{constructor(l,p,C,b,R){this.router=l,this.injector=b,this.preloadingStrategy=R,this.loader=new Hs(p,C,Se=>l.triggerEvent(new G(Se)),Se=>l.triggerEvent(new W(Se)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,ee.h)(l=>l instanceof Rn),(0,Tt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const l=this.injector.get(u.h0i);return this.processRoutes(l,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(l,p){const C=[];for(const b of p)if(b.loadChildren&&!b.canLoad&&b._loadedConfig){const R=b._loadedConfig;C.push(this.processRoutes(R.module,R.routes))}else b.loadChildren&&!b.canLoad?C.push(this.preloadConfig(l,b)):b.children&&C.push(this.processRoutes(l,b.children));return(0,P.Dp)(C).pipe((0,Ge.J)(),(0,yt.U)(b=>{}))}preloadConfig(l,p){return this.preloadingStrategy.preload(p,()=>(p._loadedConfig?(0,H.of)(p._loadedConfig):this.loader.load(l.injector,p)).pipe((0,it.z)(b=>(p._loadedConfig=b,this.processRoutes(b.module,b.routes)))))}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(u.v3s),u.LFG(u.Sil),u.LFG(u.zs3),u.LFG(Ya))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})(),Gs=(()=>{class f{constructor(l,p,C={}){this.router=l,this.viewportScroller=p,this.options=C,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},C.scrollPositionRestoration=C.scrollPositionRestoration||"disabled",C.anchorScrolling=C.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(l=>{l instanceof Cn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=l.navigationTrigger,this.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof Rn&&(this.lastId=l.id,this.scheduleScrollEvent(l,this.router.parseUrl(l.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(l=>{l instanceof xe&&(l.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(l,p){this.router.triggerEvent(new xe(l,"popstate"===this.lastSource?this.store[this.restoredId]:null,p))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(Wn),u.LFG(y.EM),u.LFG(void 0))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();const ni=new u.OlP("ROUTER_CONFIGURATION"),qa=new u.OlP("ROUTER_FORROOT_GUARD"),sf=[y.Ye,{provide:yn,useClass:zr},{provide:Wn,useFactory:function(f,c,l,p,C,b,R,V={},q,Se){const Ue=new Wn(null,f,c,l,p,C,b,rn(R));return q&&(Ue.urlHandlingStrategy=q),Se&&(Ue.routeReuseStrategy=Se),function(f,c){f.errorHandler&&(c.errorHandler=f.errorHandler),f.malformedUriErrorHandler&&(c.malformedUriErrorHandler=f.malformedUriErrorHandler),f.onSameUrlNavigation&&(c.onSameUrlNavigation=f.onSameUrlNavigation),f.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=f.paramsInheritanceStrategy),f.relativeLinkResolution&&(c.relativeLinkResolution=f.relativeLinkResolution),f.urlUpdateStrategy&&(c.urlUpdateStrategy=f.urlUpdateStrategy)}(V,Ue),V.enableTracing&&Ue.events.subscribe(at=>{var kt,Ct;null===(kt=console.group)||void 0===kt||kt.call(console,`Router Event: ${at.constructor.name}`),console.log(at.toString()),console.log(at),null===(Ct=console.groupEnd)||void 0===Ct||Ct.call(console)}),Ue},deps:[yn,Ui,y.Ye,u.zs3,u.v3s,u.Sil,Ro,ni,[class{},new u.FiY],[class{},new u.FiY]]},Ui,{provide:Gt,useFactory:function(f){return f.routerState.root},deps:[Wn]},{provide:u.v3s,useClass:u.EAV},Za,Ji,class{preload(c,l){return l().pipe((0,gn.K)(()=>(0,H.of)(null)))}},{provide:ni,useValue:{enableTracing:!1}}];function af(){return new u.PXZ("Router",Wn)}let Bo=(()=>{class f{constructor(l,p){}static forRoot(l,p){return{ngModule:f,providers:[sf,zs(l),{provide:qa,useFactory:$o,deps:[[Wn,new u.FiY,new u.tp0]]},{provide:ni,useValue:p||{}},{provide:y.S$,useFactory:Ws,deps:[y.lw,[new u.tBr(y.mr),new u.FiY],ni]},{provide:Gs,useFactory:Ja,deps:[Wn,y.EM,ni]},{provide:Ya,useExisting:p&&p.preloadingStrategy?p.preloadingStrategy:Ji},{provide:u.PXZ,multi:!0,useFactory:af},[Ei,{provide:u.ip1,multi:!0,useFactory:Ks,deps:[Ei]},{provide:mu,useFactory:jo,deps:[Ei]},{provide:u.tb,multi:!0,useExisting:mu}]]}}static forChild(l){return{ngModule:f,providers:[zs(l)]}}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(qa,8),u.LFG(Wn,8))},f.\u0275mod=u.oAB({type:f}),f.\u0275inj=u.cJS({}),f})();function Ja(f,c,l){return l.scrollOffset&&c.setOffset(l.scrollOffset),new Gs(f,c,l)}function Ws(f,c,l={}){return l.useHash?new y.Do(f,c):new y.b0(f,c)}function $o(f){return"guarded"}function zs(f){return[{provide:u.deG,multi:!0,useValue:f},{provide:Ro,multi:!0,useValue:f}]}let Ei=(()=>{class f{constructor(l){this.injector=l,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new re.x}appInitializer(){return this.injector.get(y.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let p=null;const C=new Promise(V=>p=V),b=this.injector.get(Wn),R=this.injector.get(ni);return"disabled"===R.initialNavigation?(b.setUpLocationChangeListener(),p(!0)):"enabled"===R.initialNavigation||"enabledBlocking"===R.initialNavigation?(b.hooks.afterPreactivation=()=>this.initNavigation?(0,H.of)(null):(this.initNavigation=!0,p(!0),this.resultOfPreactivationDone),b.initialNavigation()):p(!0),C})}bootstrapListener(l){const p=this.injector.get(ni),C=this.injector.get(Za),b=this.injector.get(Gs),R=this.injector.get(Wn),V=this.injector.get(u.z2F);l===V.components[0]&&(("enabledNonBlocking"===p.initialNavigation||void 0===p.initialNavigation)&&R.initialNavigation(),C.setUpPreloading(),b.init(),R.resetRootComponentType(V.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return f.\u0275fac=function(l){return new(l||f)(u.LFG(u.zs3))},f.\u0275prov=u.Yz7({token:f,factory:f.\u0275fac}),f})();function Ks(f){return f.appInitializer.bind(f)}function jo(f){return f.bootstrapListener.bind(f)}const mu=new u.OlP("Router Initializer")},1776:(Ye,me,O)=>{"use strict";O.d(me,{y:()=>U});var y=O(4111),u=O(8839),ce=O(8794),re=O(2738);function Q(De){return 0===De.length?re.y:1===De.length?De[0]:function(ve){return De.reduce(function(He,Me){return Me(He)},ve)}}var K=O(6806),P=O(8853),x=O(4112),U=function(){function De(Pe){Pe&&(this._subscribe=Pe)}return De.prototype.lift=function(Pe){var ve=new De;return ve.source=this,ve.operator=Pe,ve},De.prototype.subscribe=function(Pe,ve,He){var Me=this,Ge=function(De){return De&&De instanceof y.Lv||function(De){return De&&(0,P.m)(De.next)&&(0,P.m)(De.error)&&(0,P.m)(De.complete)}(De)&&(0,u.Nn)(De)}(Pe)?Pe:new y.Hp(Pe,ve,He);return(0,x.x)(function(){var Fe=Me.operator,he=Me.source;Ge.add(Fe?Fe.call(Ge,he):he?Me._subscribe(Ge):Me._trySubscribe(Ge))}),Ge},De.prototype._trySubscribe=function(Pe){try{return this._subscribe(Pe)}catch(ve){Pe.error(ve)}},De.prototype.forEach=function(Pe,ve){var He=this;return new(ve=Y(ve))(function(Me,Ge){var We;We=He.subscribe(function(Fe){try{Pe(Fe)}catch(he){Ge(he),null==We||We.unsubscribe()}},Ge,Me)})},De.prototype._subscribe=function(Pe){var ve;return null===(ve=this.source)||void 0===ve?void 0:ve.subscribe(Pe)},De.prototype[ce.L]=function(){return this},De.prototype.pipe=function(){for(var Pe=[],ve=0;ve{"use strict";O.d(me,{x:()=>P});var y=O(9162),u=O(1776),ce=O(8839),te=(0,O(3864).d)(function(U){return function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Q=O(5850),K=O(4112),P=function(U){function Y(){var ae=U.call(this)||this;return ae.closed=!1,ae.observers=[],ae.isStopped=!1,ae.hasError=!1,ae.thrownError=null,ae}return(0,y.ZT)(Y,U),Y.prototype.lift=function(ae){var Ee=new x(this,this);return Ee.operator=ae,Ee},Y.prototype._throwIfClosed=function(){if(this.closed)throw new te},Y.prototype.next=function(ae){var Ee=this;(0,K.x)(function(){var De,Pe;if(Ee._throwIfClosed(),!Ee.isStopped){var ve=Ee.observers.slice();try{for(var He=(0,y.XA)(ve),Me=He.next();!Me.done;Me=He.next())Me.value.next(ae)}catch(We){De={error:We}}finally{try{Me&&!Me.done&&(Pe=He.return)&&Pe.call(He)}finally{if(De)throw De.error}}}})},Y.prototype.error=function(ae){var Ee=this;(0,K.x)(function(){if(Ee._throwIfClosed(),!Ee.isStopped){Ee.hasError=Ee.isStopped=!0,Ee.thrownError=ae;for(var De=Ee.observers;De.length;)De.shift().error(ae)}})},Y.prototype.complete=function(){var ae=this;(0,K.x)(function(){if(ae._throwIfClosed(),!ae.isStopped){ae.isStopped=!0;for(var Ee=ae.observers;Ee.length;)Ee.shift().complete()}})},Y.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Y.prototype,"observed",{get:function(){var ae;return(null===(ae=this.observers)||void 0===ae?void 0:ae.length)>0},enumerable:!1,configurable:!0}),Y.prototype._trySubscribe=function(ae){return this._throwIfClosed(),U.prototype._trySubscribe.call(this,ae)},Y.prototype._subscribe=function(ae){return this._throwIfClosed(),this._checkFinalizedStatuses(ae),this._innerSubscribe(ae)},Y.prototype._innerSubscribe=function(ae){var ve=this.observers;return this.hasError||this.isStopped?ce.Lc:(ve.push(ae),new ce.w0(function(){return(0,Q.P)(ve,ae)}))},Y.prototype._checkFinalizedStatuses=function(ae){var ve=this.isStopped;this.hasError?ae.error(this.thrownError):ve&&ae.complete()},Y.prototype.asObservable=function(){var ae=new u.y;return ae.source=this,ae},Y.create=function(ae,Ee){return new x(ae,Ee)},Y}(u.y),x=function(U){function Y(ae,Ee){var De=U.call(this)||this;return De.destination=ae,De.source=Ee,De}return(0,y.ZT)(Y,U),Y.prototype.next=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.next)||void 0===De||De.call(Ee,ae)},Y.prototype.error=function(ae){var Ee,De;null===(De=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.error)||void 0===De||De.call(Ee,ae)},Y.prototype.complete=function(){var ae,Ee;null===(Ee=null===(ae=this.destination)||void 0===ae?void 0:ae.complete)||void 0===Ee||Ee.call(ae)},Y.prototype._subscribe=function(ae){var Ee,De;return null!==(De=null===(Ee=this.source)||void 0===Ee?void 0:Ee.subscribe(ae))&&void 0!==De?De:ce.Lc},Y}(P)},4111:(Ye,me,O)=>{"use strict";O.d(me,{Hp:()=>De,Lv:()=>Ee});var y=O(9162),u=O(8853),ce=O(8839),re=O(6806),te=O(8550);function Q(){}var K=U("C",void 0,void 0);function U(Ge,We,Fe){return{kind:Ge,value:We,error:Fe}}var Y=O(9385),ae=O(4112),Ee=function(Ge){function We(Fe){var he=Ge.call(this)||this;return he.isStopped=!1,Fe?(he.destination=Fe,(0,ce.Nn)(Fe)&&Fe.add(he)):he.destination=Me,he}return(0,y.ZT)(We,Ge),We.create=function(Fe,he,Ke){return new De(Fe,he,Ke)},We.prototype.next=function(Fe){this.isStopped?He(function(Ge){return U("N",Ge,void 0)}(Fe),this):this._next(Fe)},We.prototype.error=function(Fe){this.isStopped?He(function(Ge){return U("E",void 0,Ge)}(Fe),this):(this.isStopped=!0,this._error(Fe))},We.prototype.complete=function(){this.isStopped?He(K,this):(this.isStopped=!0,this._complete())},We.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ge.prototype.unsubscribe.call(this),this.destination=null)},We.prototype._next=function(Fe){this.destination.next(Fe)},We.prototype._error=function(Fe){try{this.destination.error(Fe)}finally{this.unsubscribe()}},We.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},We}(ce.w0),De=function(Ge){function We(Fe,he,Ke){var $e,bt=Ge.call(this)||this;if((0,u.m)(Fe))$e=Fe;else if(Fe){var lt;$e=Fe.next,he=Fe.error,Ke=Fe.complete,bt&&re.v.useDeprecatedNextContext?(lt=Object.create(Fe)).unsubscribe=function(){return bt.unsubscribe()}:lt=Fe,$e=null==$e?void 0:$e.bind(lt),he=null==he?void 0:he.bind(lt),Ke=null==Ke?void 0:Ke.bind(lt)}return bt.destination={next:$e?Pe($e):Q,error:Pe(null!=he?he:ve),complete:Ke?Pe(Ke):Q},bt}return(0,y.ZT)(We,Ge),We}(Ee);function Pe(Ge,We){return function(){for(var Fe=[],he=0;he{"use strict";O.d(me,{Lc:()=>K,w0:()=>Q,Nn:()=>P});var y=O(9162),u=O(8853),re=(0,O(3864).d)(function(U){return function(ae){U(this),this.message=ae?ae.length+" errors occurred during unsubscription:\n"+ae.map(function(Ee,De){return De+1+") "+Ee.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=ae}}),te=O(5850),Q=function(){function U(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._teardowns=null}return U.prototype.unsubscribe=function(){var Y,ae,Ee,De,Pe;if(!this.closed){this.closed=!0;var ve=this._parentage;if(ve)if(this._parentage=null,Array.isArray(ve))try{for(var He=(0,y.XA)(ve),Me=He.next();!Me.done;Me=He.next())Me.value.remove(this)}catch($e){Y={error:$e}}finally{try{Me&&!Me.done&&(ae=He.return)&&ae.call(He)}finally{if(Y)throw Y.error}}else ve.remove(this);var We=this.initialTeardown;if((0,u.m)(We))try{We()}catch($e){Pe=$e instanceof re?$e.errors:[$e]}var Fe=this._teardowns;if(Fe){this._teardowns=null;try{for(var he=(0,y.XA)(Fe),Ke=he.next();!Ke.done;Ke=he.next()){var bt=Ke.value;try{x(bt)}catch($e){Pe=null!=Pe?Pe:[],$e instanceof re?Pe=(0,y.ev)((0,y.ev)([],(0,y.CR)(Pe)),(0,y.CR)($e.errors)):Pe.push($e)}}}catch($e){Ee={error:$e}}finally{try{Ke&&!Ke.done&&(De=he.return)&&De.call(he)}finally{if(Ee)throw Ee.error}}}if(Pe)throw new re(Pe)}},U.prototype.add=function(Y){var ae;if(Y&&Y!==this)if(this.closed)x(Y);else{if(Y instanceof U){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._teardowns=null!==(ae=this._teardowns)&&void 0!==ae?ae:[]).push(Y)}},U.prototype._hasParent=function(Y){var ae=this._parentage;return ae===Y||Array.isArray(ae)&&ae.includes(Y)},U.prototype._addParent=function(Y){var ae=this._parentage;this._parentage=Array.isArray(ae)?(ae.push(Y),ae):ae?[ae,Y]:Y},U.prototype._removeParent=function(Y){var ae=this._parentage;ae===Y?this._parentage=null:Array.isArray(ae)&&(0,te.P)(ae,Y)},U.prototype.remove=function(Y){var ae=this._teardowns;ae&&(0,te.P)(ae,Y),Y instanceof U&&Y._removeParent(this)},U.EMPTY=((Y=new U).closed=!0,Y),U;var Y}(),K=Q.EMPTY;function P(U){return U instanceof Q||U&&"closed"in U&&(0,u.m)(U.remove)&&(0,u.m)(U.add)&&(0,u.m)(U.unsubscribe)}function x(U){(0,u.m)(U)?U():U.unsubscribe()}},6806:(Ye,me,O)=>{"use strict";O.d(me,{v:()=>y});var y={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},6149:(Ye,me,O)=>{"use strict";O.d(me,{E:()=>u});var u=new(O(1776).y)(function(te){return te.complete()})},5929:(Ye,me,O)=>{"use strict";O.d(me,{Dp:()=>$e,OO:()=>H,Xf:()=>lt});var y=O(9162),u=function(ee){return ee&&"number"==typeof ee.length&&"function"!=typeof ee},ce=O(8853);function re(ee){return(0,ce.m)(null==ee?void 0:ee.then)}var te=O(8794),Q=O(1776),K=O(8839),U=O(2504),ae="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Pe(ee,Ie){if(!ee)throw new Error("Iterable cannot be null");return new Q.y(function(be){var Ve=new K.w0;return Ve.add(Ie.schedule(function(){var Xe=ee[Symbol.asyncIterator]();Ve.add(Ie.schedule(function(){var rt=this;Xe.next().then(function(_t){_t.done?be.complete():(be.next(_t.value),rt.schedule())})}))})),Ve})}function ve(ee){return(0,ce.m)(ee[te.L])}function He(ee){return(0,ce.m)(null==ee?void 0:ee[ae])}function Me(ee){return Symbol.asyncIterator&&(0,ce.m)(null==ee?void 0:ee[Symbol.asyncIterator])}function Ge(ee){return new TypeError("You provided "+(null!==ee&&"object"==typeof ee?"an invalid object":"'"+ee+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function We(ee){return(0,y.FC)(this,arguments,function(){var be,Ve,Xe;return(0,y.Jh)(this,function(_t){switch(_t.label){case 0:be=ee.getReader(),_t.label=1;case 1:_t.trys.push([1,,9,10]),_t.label=2;case 2:return[4,(0,y.qq)(be.read())];case 3:return Ve=_t.sent(),Xe=Ve.value,Ve.done?[4,(0,y.qq)(void 0)]:[3,5];case 4:return[2,_t.sent()];case 5:return[4,(0,y.qq)(Xe)];case 6:return[4,_t.sent()];case 7:return _t.sent(),[3,2];case 8:return[3,10];case 9:return be.releaseLock(),[7];case 10:return[2]}})})}function Fe(ee){return(0,ce.m)(null==ee?void 0:ee.getReader)}var bt=O(8550);function $e(ee,Ie){return Ie?function(ee,Ie){if(null!=ee){if(ve(ee))return function(ee,Ie){return new Q.y(function(be){var Ve=new K.w0;return Ve.add(Ie.schedule(function(){var Xe=ee[te.L]();Ve.add(Xe.subscribe({next:function(rt){Ve.add(Ie.schedule(function(){return be.next(rt)}))},error:function(rt){Ve.add(Ie.schedule(function(){return be.error(rt)}))},complete:function(){Ve.add(Ie.schedule(function(){return be.complete()}))}}))})),Ve})}(ee,Ie);if(u(ee))return(0,U.r)(ee,Ie);if(re(ee))return function(ee,Ie){return new Q.y(function(be){return Ie.schedule(function(){return ee.then(function(Ve){be.add(Ie.schedule(function(){be.next(Ve),be.add(Ie.schedule(function(){return be.complete()}))}))},function(Ve){be.add(Ie.schedule(function(){return be.error(Ve)}))})})})}(ee,Ie);if(Me(ee))return Pe(ee,Ie);if(He(ee))return function(ee,Ie){return new Q.y(function(be){var Ve;return be.add(Ie.schedule(function(){Ve=ee[ae](),function(ee,Ie,be,Ve){void 0===Ve&&(Ve=0);var Xe=Ie.schedule(function(){try{be.call(this)}catch(rt){ee.error(rt)}},Ve);ee.add(Xe)}(be,Ie,function(){var Xe=Ve.next(),rt=Xe.value;Xe.done?be.complete():(be.next(rt),this.schedule())})})),function(){return(0,ce.m)(null==Ve?void 0:Ve.return)&&Ve.return()}})}(ee,Ie);if(Fe(ee))return function(ee,Ie){return Pe(We(ee),Ie)}(ee,Ie)}throw Ge(ee)}(ee,Ie):lt(ee)}function lt(ee){if(ee instanceof Q.y)return ee;if(null!=ee){if(ve(ee))return function(ee){return new Q.y(function(Ie){var be=ee[te.L]();if((0,ce.m)(be.subscribe))return be.subscribe(Ie);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ee);if(u(ee))return H(ee);if(re(ee))return function(ee){return new Q.y(function(Ie){ee.then(function(be){Ie.closed||(Ie.next(be),Ie.complete())},function(be){return Ie.error(be)}).then(null,bt.h)})}(ee);if(Me(ee))return Ae(ee);if(He(ee))return function(ee){return new Q.y(function(Ie){var be,Ve;try{for(var Xe=(0,y.XA)(ee),rt=Xe.next();!rt.done;rt=Xe.next())if(Ie.next(rt.value),Ie.closed)return}catch(jt){be={error:jt}}finally{try{rt&&!rt.done&&(Ve=Xe.return)&&Ve.call(Xe)}finally{if(be)throw be.error}}Ie.complete()})}(ee);if(Fe(ee))return function(ee){return Ae(We(ee))}(ee)}throw Ge(ee)}function H(ee){return new Q.y(function(Ie){for(var be=0;be{"use strict";O.d(me,{h:()=>ce});var y=O(2504),u=O(5929);function ce(re,te){return te?(0,y.r)(re,te):(0,u.OO)(re)}},1964:(Ye,me,O)=>{"use strict";O.d(me,{of:()=>re});var y=O(5994),u=O(2504),ce=O(9528);function re(){for(var te=[],Q=0;Q{"use strict";O.d(me,{_:()=>ce});var y=O(1776),u=O(8853);function ce(re,te){var Q=(0,u.m)(re)?re:function(){return re},K=function(P){return P.error(Q())};return new y.y(te?function(P){return te.schedule(K,0,P)}:K)}},5076:(Ye,me,O)=>{"use strict";O.d(me,{Q:()=>ce});var y=O(9162),ce=function(re){function te(Q,K,P,x,U){var Y=re.call(this,Q)||this;return Y.onFinalize=U,Y._next=K?function(ae){try{K(ae)}catch(Ee){Q.error(Ee)}}:re.prototype._next,Y._error=x?function(ae){try{x(ae)}catch(Ee){Q.error(Ee)}finally{this.unsubscribe()}}:re.prototype._error,Y._complete=P?function(){try{P()}catch(ae){Q.error(ae)}finally{this.unsubscribe()}}:re.prototype._complete,Y}return(0,y.ZT)(te,re),te.prototype.unsubscribe=function(){var Q,K=this.closed;re.prototype.unsubscribe.call(this),!K&&(null===(Q=this.onFinalize)||void 0===Q||Q.call(this))},te}(O(4111).Lv)},5894:(Ye,me,O)=>{"use strict";O.d(me,{K:()=>re});var y=O(5929),u=O(5076),ce=O(4297);function re(te){return(0,ce.e)(function(Q,K){var U,P=null,x=!1;P=Q.subscribe(new u.Q(K,void 0,void 0,function(Y){U=(0,y.Xf)(te(Y,re(te)(Q))),P?(P.unsubscribe(),P=null,U.subscribe(K)):x=!0})),x&&(P.unsubscribe(),P=null,U.subscribe(K))})}},3766:(Ye,me,O)=>{"use strict";O.d(me,{b:()=>ce});var y=O(7216),u=O(8853);function ce(re,te){return(0,u.m)(te)?(0,y.z)(re,te,1):(0,y.z)(re,1)}},4689:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(Q,K){var P=0;Q.subscribe(new u.Q(K,function(x){return re.call(te,x,P++)&&K.next(x)}))})}},5207:(Ye,me,O)=>{"use strict";O.d(me,{U:()=>ce});var y=O(4297),u=O(5076);function ce(re,te){return(0,y.e)(function(Q,K){var P=0;Q.subscribe(new u.Q(K,function(x){K.next(re.call(te,x,P++))}))})}},23:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>ce});var y=O(7216),u=O(2738);function ce(re){return void 0===re&&(re=1/0),(0,y.z)(u.y,re)}},7216:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>K});var y=O(5207),u=O(5929),ce=O(4297),re=O(5076),Q=O(8853);function K(P,x,U){return void 0===U&&(U=1/0),(0,Q.m)(x)?K(function(Y,ae){return(0,y.U)(function(Ee,De){return x(Y,Ee,ae,De)})((0,u.Xf)(P(Y,ae)))},U):("number"==typeof x&&(U=x),(0,ce.e)(function(Y,ae){return function(P,x,U,Y,ae,Ee,De,Pe){var ve=[],He=0,Me=0,Ge=!1,We=function(){Ge&&!ve.length&&!He&&x.complete()},Fe=function(Ke){return He{"use strict";O.d(me,{q:()=>re});var y=O(6149),u=O(4297),ce=O(5076);function re(te){return te<=0?function(){return y.E}:(0,u.e)(function(Q,K){var P=0;Q.subscribe(new ce.Q(K,function(x){++P<=te&&(K.next(x),te<=P&&K.complete())}))})}},2504:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>u});var y=O(1776);function u(ce,re){return new y.y(function(te){var Q=0;return re.schedule(function(){Q===ce.length?te.complete():(te.next(ce[Q++]),te.closed||this.schedule())})})}},9385:(Ye,me,O)=>{"use strict";O.d(me,{z:()=>u});var y=O(9162),u={setTimeout:function(){for(var ce=[],re=0;re{"use strict";O.d(me,{L:()=>y});var y="function"==typeof Symbol&&Symbol.observable||"@@observable"},9528:(Ye,me,O)=>{"use strict";O.d(me,{_6:()=>Q,jO:()=>re,yG:()=>te});var y=O(8853);function ce(K){return K[K.length-1]}function re(K){return(0,y.m)(ce(K))?K.pop():void 0}function te(K){return function(K){return K&&(0,y.m)(K.schedule)}(ce(K))?K.pop():void 0}function Q(K,P){return"number"==typeof ce(K)?K.pop():P}},1260:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=Array.isArray,u=Object.getPrototypeOf,ce=Object.prototype,re=Object.keys;function te(K){if(1===K.length){var P=K[0];if(y(P))return{args:P,keys:null};if(function(K){return K&&"object"==typeof K&&u(K)===ce}(P)){var x=re(P);return{args:x.map(function(U){return P[U]}),keys:x}}}return{args:K,keys:null}}},5850:(Ye,me,O)=>{"use strict";function y(u,ce){if(u){var re=u.indexOf(ce);0<=re&&u.splice(re,1)}}O.d(me,{P:()=>y})},3864:(Ye,me,O)=>{"use strict";function y(u){var re=u(function(te){Error.call(te),te.stack=(new Error).stack});return re.prototype=Object.create(Error.prototype),re.prototype.constructor=re,re}O.d(me,{d:()=>y})},5526:(Ye,me,O)=>{"use strict";function y(u,ce){return u.reduce(function(re,te,Q){return re[te]=ce[Q],re},{})}O.d(me,{n:()=>y})},4112:(Ye,me,O)=>{"use strict";O.d(me,{x:()=>ce,O:()=>re});var y=O(6806),u=null;function ce(te){if(y.v.useDeprecatedSynchronousErrorHandling){var Q=!u;if(Q&&(u={errorThrown:!1,error:null}),te(),Q){var K=u;if(u=null,K.errorThrown)throw K.error}}else te()}function re(te){y.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=te)}},2738:(Ye,me,O)=>{"use strict";function y(u){return u}O.d(me,{y:()=>y})},8853:(Ye,me,O)=>{"use strict";function y(u){return"function"==typeof u}O.d(me,{m:()=>y})},4297:(Ye,me,O)=>{"use strict";O.d(me,{A:()=>u,e:()=>ce});var y=O(8853);function u(re){return(0,y.m)(null==re?void 0:re.lift)}function ce(re){return function(te){if(u(te))return te.lift(function(Q){try{return re(Q,this)}catch(K){this.error(K)}});throw new TypeError("Unable to lift unknown Observable type")}}},9607:(Ye,me,O)=>{"use strict";O.d(me,{Z:()=>te});var y=O(9162),u=O(5207),ce=Array.isArray;function te(Q){return(0,u.U)(function(K){return function(Q,K){return ce(K)?Q.apply(void 0,(0,y.ev)([],(0,y.CR)(K))):Q(K)}(Q,K)})}},8550:(Ye,me,O)=>{"use strict";O.d(me,{h:()=>ce});var y=O(6806),u=O(9385);function ce(re){u.z.setTimeout(function(){var te=y.v.onUnhandledError;if(!te)throw re;te(re)})}},8253:(Ye,me,O)=>{"use strict";O.d(me,{a:()=>re});var y=O(476),u=O(9502),ce=O(7556);let re=(()=>{class te{constructor(K,P){this.router=K,this.authSvc=P}canActivate(K,P){return this.checkLogin(P.url)}canActivateChild(K,P){return this.canActivate(K,P)}canLoad(K){return this.checkLogin(`/${K.path}`)}checkLogin(K){return!(this.authSvc.isSecureMode&&!this.authSvc.isLoggedIn)||this.router.parseUrl("/login")}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.F0),y.LFG(ce.e))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},7822:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>ce});var y=O(476);let ce=(()=>{class re{constructor(){this.messages=[]}success(Q="operation",K){this.messages.push({class:"alert alert-success shadow rounded alert-dismissible fade show",content:`${Q} success! ${K||""}`})}errors(Q){this.messages.push({class:"alert alert-danger shadow rounded alert-dismissible fade show",content:Q})}clear(){this.messages.shift()}}return re.\u0275fac=function(Q){return new(Q||re)},re.\u0275prov=y.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})()},7556:(Ye,me,O)=>{"use strict";O.d(me,{e:()=>re});var y=O(476),u=O(1841),ce=O(4889);let re=(()=>{class te{constructor(K,P){this.http=K,this.errorSvc=P,this.accessToken=null,this.isLoggedIn=!1,this.redirectUrl=null,this.isSecureMode=!1}login(){return this.tokenValidate()}tokenValidate(){return this.http.get("/core-metadata/api/v3/ping")}setAccessToken(K){this.accessToken=K,window.sessionStorage.setItem("EdgeX_Access_Token",this.accessToken)}getAccessToken(){if(this.accessToken)return this.accessToken;let K=window.sessionStorage.getItem("EdgeX_Access_Token");return K&&(this.accessToken=K),this.accessToken}}return te.\u0275fac=function(K){return new(K||te)(y.LFG(u.eN),y.LFG(ce.T))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2468:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(5894),u=O(476),ce=O(1841),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-data",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.endpointHealthUrl=`${this.urlPrefix}/ping`,this.eventCountUrl=`${this.urlPrefix}/event/count`,this.readingCountUrl=`${this.urlPrefix}/reading/count`,this.allEventsUrl=`${this.urlPrefix}/event/all`,this.allReadingsUrl=`${this.urlPrefix}/reading/all`,this.associatedEventsByDeviceNameUrl=`${this.urlPrefix}/event/device/name/`,this.associatedReadinsByDeviceNameUrl=`${this.urlPrefix}/reading/device/name/`}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}endpointHealth(){return this.http.get(`${this.endpointHealthUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}eventCount(){return this.http.get(`${this.eventCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}readingCount(){return this.http.get(`${this.readingCountUrl}`).pipe((0,y.K)(x=>this.errorSvc.handleError(x)))}allEventsPagination(P,x){return this.http.get(`${this.allEventsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allReadingsPagination(P,x){return this.http.get(`${this.allReadingsUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedReadingsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedEventsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}allAssocaitedEventsByDeviceNamePagination(P,x){return this.http.get(`${this.associatedReadinsByDeviceNameUrl}?offset=${P}&limit=${x}`).pipe((0,y.K)(Y=>this.errorSvc.handleError(Y)))}}return Q.\u0275fac=function(P){return new(P||Q)(u.LFG(ce.eN),u.LFG(re.T))},Q.\u0275prov=u.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},4889:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>re});var y=O(8567),u=O(476),ce=O(7822);let re=(()=>{class te{constructor(K){this.msgSvc=K}handleErrorForAPI(K){let P=Object.prototype.toString.call(K);if("[object Array]"===P){if(!K[0].statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K[0].statusCode}, message: ${K[0].message}`),!0}else if("[object Object]"===P&&!K.statusCode.toString().startsWith("20"))return this.msgSvc.errors(`code: ${K.statusCode}, message: ${K.message}`),!0;return!1}handleError(K){return K.error instanceof ErrorEvent?this.msgSvc.errors(`'An error occurred:', ${K.error.message}`):"[object Object]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.error.statusCode} , message: ${K.error.message}`):"[object String]"===Object.prototype.toString.call(K.error)?this.msgSvc.errors(`code: ${K.status} , message: ${K.error}`):this.msgSvc.errors(`code: ${K.status} , message: ${K.message}`),(0,y._)(`Backend returned code ${K.status}, body was: ${K.error.message}`)}}return te.\u0275fac=function(K){return new(K||te)(u.LFG(ce.e))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2437:(Ye,me,O)=>{"use strict";O.d(me,{D:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/core-metadata",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.devicesListUrl=`${this.urlPrefix}/device/all`,this.addOneDeviceUrl=`${this.urlPrefix}/device`,this.updateOneDeviceUrl=`${this.urlPrefix}/device`,this.deleteOneDeviceByIdUrl=`${this.urlPrefix}/device/Id`,this.deleteOneDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByNameUrl=`${this.urlPrefix}/device/name`,this.findDeviceByIdUrl=`${this.urlPrefix}/device/id`,this.findDevicesByServiceIdUrl=`${this.urlPrefix}/device/service/id`,this.findDevicesByServiceNameUrl=`${this.urlPrefix}/device/service/name`,this.findDevicesByProfileIdUrl=`${this.urlPrefix}/device/profile/id`,this.findDevicesByProfileNameUrl=`${this.urlPrefix}/device/profile/name`,this.deviceServicesListUrl=`${this.urlPrefix}/deviceservice/all`,this.updateDeviceServiceUrl=`${this.urlPrefix}/deviceservice`,this.findDeviceServiceByIdUrl=`${this.urlPrefix}/deviceservice/id`,this.findDeviceServiceByNameUrl=`${this.urlPrefix}/deviceservice/name`,this.deviceProfilesListUrl=`${this.urlPrefix}/deviceprofile/all`,this.findProfilesByIdUrl=`${this.urlPrefix}/deviceprofile`,this.findProfilesByNameUrl=`${this.urlPrefix}/deviceprofile/name`,this.updateDeviceProfileUrl=`${this.urlPrefix}/deviceprofile`,this.uploadProfileYamlFileUrl=`${this.urlPrefix}/deviceprofile/uploadfile`,this.uploadProfileYamlContentUrl=`${this.urlPrefix}/deviceprofile/upload`,this.deviceProfileYamlUrl=`${this.urlPrefix}/deviceprofile/yaml`,this.deleteProfileByIdUrl=`${this.urlPrefix}/deviceprofile/id`,this.deleteProfileByNamedUrl=`${this.urlPrefix}/deviceprofile/name`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevices(){return this.http.get(`${this.devicesListUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDevicesPagination(P,x){return this.http.get(`${this.devicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addDevice(P){let x=`${this.addOneDeviceUrl}`;return P.apiVersion="v3",this.http.post(x,JSON.stringify([{apiVersion:"v3",device:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneDeviceByName(P){return this.http.delete(`${this.deleteOneDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneDeviceById(P){return this.http.delete(`${this.deleteOneDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDevice(P){return this.http.patch(`${this.updateOneDeviceUrl}`,JSON.stringify([{apiVersion:"v3",device:P}]),{headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDeviceByName(P){return this.http.get(`${this.findDeviceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDeviceById(P){return this.http.get(`${this.findDeviceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceId(P){return this.http.get(`${this.findDevicesByServiceIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByServiceName(P,x,U){return this.http.get(`${this.findDevicesByServiceNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findDevicesByProfileId(P){return this.http.get(`${this.findDevicesByProfileIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevicesByProfileName(P,x,U){return this.http.get(`${this.findDevicesByProfileNameUrl}/${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}allDeviceServices(){return this.http.get(`${this.deviceServicesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllDeviceServicesPagination(P,x){return this.http.get(`${this.deviceServicesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateDeviceService(P){return this.http.patch(`${this.updateDeviceServiceUrl}`,JSON.stringify([{apiVersion:"v3",service:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findDevcieServiceById(P){return this.http.get(`${this.findDeviceServiceByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findDevcieServiceByName(P){return this.http.get(`${this.findDeviceServiceByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allDeviceProfoles(){return this.http.get(`${this.deviceProfilesListUrl}?offset=0&limit=-1`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}allDeviceProfolesPagination(P,x){return this.http.get(`${this.deviceProfilesListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addProfileYamlByNameViaUIBackend(P){return this.http.request("POST","/api/v3/profile/yaml",{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileById(P){return this.http.get(`${this.findProfilesByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileByName(P){return this.http.get(`${this.findProfilesByNameUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlByNameViaUIBackend(P){return this.http.request("GET","/api/v3/profile/yaml/name/"+P,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlFile(P){return this.http.request("POST",`${this.uploadProfileYamlFileUrl}`,{body:P,responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateDeviceProfile(P){return this.http.put(`${this.updateDeviceProfileUrl}`,P,this.httpPostOrPutJSONOptions).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateProfileYamlContentViaUIBackend(P){return this.http.put("/api/v3/profile/yaml",P,{headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}uploadProfileYamlContent(P){return this.http.request("POST",`${this.uploadProfileYamlContentUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-Type":"text/plain; charset=utf-8"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findProfileYamlById(P){return this.http.request("GET",`${this.deviceProfileYamlUrl}/${P}`,{responseType:"text"})}deleteProfileById(P){return this.http.delete(`${this.deleteProfileByIdUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteProfileByName(P){return this.http.delete(`${this.deleteProfileByNamedUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},9744:(Ye,me,O)=>{"use strict";O.d(me,{T:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-notifications",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.findNotificationByCategoryUrl=`${this.urlPrefix}/notification/category/`,this.findNotificationByLabelUrl=`${this.urlPrefix}/notification/label/`,this.findNotificationByStatusUrl=`${this.urlPrefix}/notification/status/`,this.findNotificationByStartEndUrl=`${this.urlPrefix}/notification/start/`,this.deleteNotificationByIdUrl=`${this.urlPrefix}/notification/id/`,this.deleteNotificationByAgeAndStatusUrl=`${this.urlPrefix}/notification/age/`,this.cleanupNotificationByAgeUrl=`${this.urlPrefix}/cleanup/age/`,this.cleanupNotificationAllUrl=`${this.urlPrefix}/cleanup`,this.findAllSubscriptionsPaginationUrl=`${this.urlPrefix}/subscription/all`,this.findAllSubscriptionsByCategoryPaginationUrl=`${this.urlPrefix}/subscription/category/`,this.findAllSubscriptionsByLabelPaginationUrl=`${this.urlPrefix}/subscription/label/`,this.findAllSubscriptionsByReceiverPaginationUrl=`${this.urlPrefix}/subscription/receiver/`,this.findOneSubscriptionsByNameUrl=`${this.urlPrefix}/subscription/name/`,this.addOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.updateOneSubscriptionUrl=`${this.urlPrefix}/subscription`,this.deleteOneSubscriptionByNameUrl=`${this.urlPrefix}/subscription/name/`,this.httpPostOrPutOrPatchJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findNotificationsByCategoryPagination(P,x,U){return this.http.get(`${this.findNotificationByCategoryUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByLabelPagination(P,x,U){return this.http.get(`${this.findNotificationByLabelUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStatusPagination(P,x,U){return this.http.get(`${this.findNotificationByStatusUrl}${U}?offset=${P}&limit=${x}`).pipe((0,u.K)(ae=>this.errorSvc.handleError(ae)))}findNotificationsByStartEndPagination(P,x,U,Y){return this.http.get(`${this.findNotificationByStartEndUrl}${U}/end/${Y}?offset=${P}&limit=${x}`).pipe((0,u.K)(Ee=>this.errorSvc.handleError(Ee)))}deleteNotificationByAgeAndStatus(P){return this.http.delete(`${this.deleteNotificationByAgeAndStatusUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteNotificationById(P){return this.http.delete(`${this.deleteNotificationByIdUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationByAge(P){return this.http.delete(`${this.cleanupNotificationByAgeUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}cleanupNotificationAll(){return this.http.delete(`${this.cleanupNotificationAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllSubscriptionPagination(P,x){return this.http.get(`${this.findAllSubscriptionsPaginationUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findOneSubscriptionByName(P){return this.http.get(`${this.findOneSubscriptionsByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}addOneSubscription(P){return this.http.post(`${this.addOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateOneSubscription(P){return this.http.patch(`${this.updateOneSubscriptionUrl}`,JSON.stringify([{apiVersion:"v3",subscription:P}]),this.httpPostOrPutOrPatchJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}deleteOneSubscriptionByName(P){return this.http.delete(`${this.deleteOneSubscriptionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},3692:(Ye,me,O)=>{"use strict";O.d(me,{r:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.version="/api/v3",this.pingUrl=`${this.version}/registrycenter/ping`,this.appSvcDeployConfigUrl=`${this.version}/registrycenter/deploy`,this.appSvcGetConfigUrl=`${this.version}/registrycenter/config`,this.appSvcAllUrl=`${this.version}/registrycenter/service/all`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}getAppSvcConfigBySvcKey(P){return this.http.get(`${this.appSvcGetConfigUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deployToConsul(P,x){return this.http.post(`${this.appSvcDeployConfigUrl}/${x}`,JSON.stringify(P),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllAppSvc(){return this.http.get(`${this.appSvcAllUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},4791:(Ye,me,O)=>{"use strict";O.d(me,{n:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/rules-engine",this.version="",this.pingUrl=`${this.endpoint}${this.version}/ping`,this.streamUrl=`${this.endpoint}${this.version}/streams`,this.ruleUrl=`${this.endpoint}${this.version}/rules`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.pingUrl}`)}addStream(P){return this.http.request("POST",`${this.streamUrl}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneStreamById(P){return this.http.delete(`${this.streamUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateStream(P,x){return this.http.request("PUT",`${this.streamUrl}/${x}`,{body:P,responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findStreamByName(P){return this.http.get(`${this.streamUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allStreams(){return this.http.get(`${this.streamUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}addRule(P){return this.http.request("POST",`${this.ruleUrl}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteOneRuleById(P){return this.http.delete(`${this.ruleUrl}/${P}`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}updateRule(P){return this.http.request("PUT",`${this.ruleUrl}/${P.id}`,{body:JSON.stringify(P),responseType:"text",headers:new y.WM({"Content-type":"application/json"})}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findRuleById(P){return this.http.get(`${this.ruleUrl}/${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}allRules(){return this.http.get(`${this.ruleUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}getRuleStatusMetricsById(P){return this.http.get(`${this.ruleUrl}/${P}/status`,{responseType:"text"}).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}getRuleTopoById(P){return this.http.get(`${this.ruleUrl}/${P}/topo`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}executeRuleCommand(P,x){return this.http.post(`${this.ruleUrl}/${P}/${x}`,null,{responseType:"text"}).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},8391:(Ye,me,O)=>{"use strict";O.d(me,{G:()=>te});var y=O(1841),u=O(5894),ce=O(476),re=O(4889);let te=(()=>{class Q{constructor(P,x){this.http=P,this.errorSvc=x,this.endpoint="/support-scheduler",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.pingUrl="/ping",this.configUrl="/config",this.intervalListUrl=`${this.urlPrefix}/interval/all`,this.addOneIntervalUrl=`${this.urlPrefix}/interval`,this.updateOneIntervalUrl=`${this.urlPrefix}/interval`,this.findOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.deleteOneIntervalByNameUrl=`${this.urlPrefix}/interval/name/`,this.intervalActionListUrl=`${this.urlPrefix}/intervalaction/all`,this.addOneIntervalActionUrl=`${this.urlPrefix}/intervalaction`,this.updateOneIntervaActionlUrl=`${this.urlPrefix}/intervalaction`,this.findOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.deleteOneIntervalActionByNameUrl=`${this.urlPrefix}/intervalaction/name/`,this.httpPostOrPutJSONOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getConfig(){return this.http.get(`${this.urlPrefix}${this.configUrl}`).pipe((0,u.K)(x=>this.errorSvc.handleError(x)))}findAllIntervalsPagination(P,x){return this.http.get(`${this.intervalListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addInterval(P){return this.http.post(`${this.addOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateInterval(P){return this.http.patch(`${this.updateOneIntervalUrl}`,JSON.stringify([{apiVersion:"v3",interval:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalByName(P){return this.http.get(`${this.findOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalByName(P){return this.http.delete(`${this.deleteOneIntervalByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}findAllIntervalActionsPagination(P,x){return this.http.get(`${this.intervalActionListUrl}?offset=${P}&limit=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}addIntervalAction(P){return this.http.post(`${this.addOneIntervalActionUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}updateIntervalAction(P){return this.http.patch(`${this.updateOneIntervaActionlUrl}`,JSON.stringify([{apiVersion:"v3",action:P}]),this.httpPostOrPutJSONOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}findIntervalActionByName(P){return this.http.get(`${this.findOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}deleteIntervalActionByName(P){return this.http.delete(`${this.deleteOneIntervalActionByNameUrl}${P}`).pipe((0,u.K)(U=>this.errorSvc.handleError(U)))}}return Q.\u0275fac=function(P){return new(P||Q)(ce.LFG(y.eN),ce.LFG(re.T))},Q.\u0275prov=ce.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},9386:(Ye,me,O)=>{"use strict";O.d(me,{J:()=>Q});var y=O(1841),u=O(5894),ce=O(476),re=O(4889),te=O(3692);let Q=(()=>{class K{constructor(x,U,Y){this.http=x,this.errorSvc=U,this.registrySvc=Y,this.endpoint="/sys-mgmt-agent",this.version2="/api/v3",this.urlPrefix=`${this.endpoint}${this.version2}`,this.pingUrl="/ping",this.allRegisteredSvcUrl="/api/v3/registrycenter/service/all",this.configUrl=`${this.urlPrefix}/system/config`,this.metricsUrl=`${this.urlPrefix}/system/metrics`,this.healthUrl=`${this.urlPrefix}/system/health`,this.operationUrl=`${this.urlPrefix}/system/operation`,this.httpPostOrPutOptions={headers:new y.WM({"Content-type":"application/json"})}}ping(){return this.http.get(`${this.urlPrefix}${this.pingUrl}`)}getRegisteredServiceAll(){return this.registrySvc.getAllAppSvc()}getConfigBySvcName(x){return this.http.get(`${this.configUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getMetricsBySvcName(x){return this.http.get(`${this.metricsUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}getAllSvcHealth(x){return this.http.get(`${this.healthUrl}?services=${x}`).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}operate(x){return this.http.post(`${this.operationUrl}`,JSON.stringify(x),this.httpPostOrPutOptions).pipe((0,u.K)(Y=>this.errorSvc.handleError(Y)))}startV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"start"}])}stopV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"stop"}])}restartV2(x){return this.operate([{apiVersion:"v3",serviceName:x,action:"restart"}])}}return K.\u0275fac=function(x){return new(x||K)(ce.LFG(y.eN),ce.LFG(re.T),ce.LFG(te.r))},K.\u0275prov=ce.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},4705:(Ye,me,O)=>{"use strict";var y=O(8583),u=O(476);class ce extends y.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class re extends ce{static makeCurrent(){(0,y.HT)(new re)}onAndCancel(F,A,L){return F.addEventListener(A,L,!1),()=>{F.removeEventListener(A,L,!1)}}dispatchEvent(F,A){F.dispatchEvent(A)}remove(F){F.parentNode&&F.parentNode.removeChild(F)}createElement(F,A){return(A=A||this.getDefaultDocument()).createElement(F)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(F){return F.nodeType===Node.ELEMENT_NODE}isShadowRoot(F){return F instanceof DocumentFragment}getGlobalEventTarget(F,A){return"window"===A?window:"document"===A?F:"body"===A?F.body:null}getBaseHref(F){const A=(te=te||document.querySelector("base"),te?te.getAttribute("href"):null);return null==A?null:function(N){K=K||document.createElement("a"),K.setAttribute("href",N);const F=K.pathname;return"/"===F.charAt(0)?F:`/${F}`}(A)}resetBaseElement(){te=null}getUserAgent(){return window.navigator.userAgent}getCookie(F){return(0,y.Mx)(document.cookie,F)}}let K,te=null;const x=new u.OlP("TRANSITION_ID"),Y=[{provide:u.ip1,useFactory:function(N,F,A){return()=>{A.get(u.CZH).donePromise.then(()=>{const L=(0,y.q)(),ne=F.querySelectorAll(`style[ng-transition="${N}"]`);for(let Oe=0;Oe{const Oe=F.findTestabilityInTree(L,ne);if(null==Oe)throw new Error("Could not find testability for element.");return Oe},u.dqk.getAllAngularTestabilities=()=>F.getAllTestabilities(),u.dqk.getAllAngularRootElements=()=>F.getAllRootElements(),u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(L=>{const ne=u.dqk.getAllAngularTestabilities();let Oe=ne.length,je=!1;const Et=function(Nt){je=je||Nt,Oe--,0==Oe&&L(je)};ne.forEach(function(Nt){Nt.whenStable(Et)})})}findTestabilityInTree(F,A,L){if(null==A)return null;const ne=F.getTestability(A);return null!=ne?ne:L?(0,y.q)().isShadowRoot(A)?this.findTestabilityInTree(F,A.host,!0):this.findTestabilityInTree(F,A.parentElement,!0):null}}let Ee=(()=>{class N{build(){return new XMLHttpRequest}}return N.\u0275fac=function(A){return new(A||N)},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const X=new u.OlP("EventManagerPlugins");let ue=(()=>{class N{constructor(A,L){this._zone=L,this._eventNameToPlugin=new Map,A.forEach(ne=>ne.manager=this),this._plugins=A.slice().reverse()}addEventListener(A,L,ne){return this._findPluginFor(L).addEventListener(A,L,ne)}addGlobalEventListener(A,L,ne){return this._findPluginFor(L).addGlobalEventListener(A,L,ne)}getZone(){return this._zone}_findPluginFor(A){const L=this._eventNameToPlugin.get(A);if(L)return L;const ne=this._plugins;for(let Oe=0;Oe{class N{constructor(){this._stylesSet=new Set}addStyles(A){const L=new Set;A.forEach(ne=>{this._stylesSet.has(ne)||(this._stylesSet.add(ne),L.add(ne))}),this.onStylesAdded(L)}onStylesAdded(A){}getAllStyles(){return Array.from(this._stylesSet)}}return N.\u0275fac=function(A){return new(A||N)},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})(),ze=(()=>{class N extends ie{constructor(A){super(),this._doc=A,this._hostNodes=new Map,this._hostNodes.set(A.head,[])}_addStylesToHost(A,L,ne){A.forEach(Oe=>{const je=this._doc.createElement("style");je.textContent=Oe,ne.push(L.appendChild(je))})}addHost(A){const L=[];this._addStylesToHost(this._stylesSet,A,L),this._hostNodes.set(A,L)}removeHost(A){const L=this._hostNodes.get(A);L&&L.forEach(ee),this._hostNodes.delete(A)}onStylesAdded(A){this._hostNodes.forEach((L,ne)=>{this._addStylesToHost(A,ne,L)})}ngOnDestroy(){this._hostNodes.forEach(A=>A.forEach(ee))}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();function ee(N){(0,y.q)().remove(N)}const Ie={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/"},be=/%COMP%/g;function It(N,F,A){for(let L=0;L{if("__ngUnwrap__"===F)return N;!1===N(F)&&(F.preventDefault(),F.returnValue=!1)}}let gn=(()=>{class N{constructor(A,L,ne){this.eventManager=A,this.sharedStylesHost=L,this.appId=ne,this.rendererByCompId=new Map,this.defaultRenderer=new Tt(A)}createRenderer(A,L){if(!A||!L)return this.defaultRenderer;switch(L.encapsulation){case u.ifc.Emulated:{let ne=this.rendererByCompId.get(L.id);return ne||(ne=new Rn(this.eventManager,this.sharedStylesHost,L,this.appId),this.rendererByCompId.set(L.id,ne)),ne.applyToHost(A),ne}case 1:case u.ifc.ShadowDom:return new xt(this.eventManager,this.sharedStylesHost,A,L);default:if(!this.rendererByCompId.has(L.id)){const ne=It(L.id,L.styles,[]);this.sharedStylesHost.addStyles(ne),this.rendererByCompId.set(L.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(ue),u.LFG(ze),u.LFG(u.AFp))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();class Tt{constructor(F){this.eventManager=F,this.data=Object.create(null)}destroy(){}createElement(F,A){return A?document.createElementNS(Ie[A]||A,F):document.createElement(F)}createComment(F){return document.createComment(F)}createText(F){return document.createTextNode(F)}appendChild(F,A){F.appendChild(A)}insertBefore(F,A,L){F&&F.insertBefore(A,L)}removeChild(F,A){F&&F.removeChild(A)}selectRootElement(F,A){let L="string"==typeof F?document.querySelector(F):F;if(!L)throw new Error(`The selector "${F}" did not match any elements`);return A||(L.textContent=""),L}parentNode(F){return F.parentNode}nextSibling(F){return F.nextSibling}setAttribute(F,A,L,ne){if(ne){A=ne+":"+A;const Oe=Ie[ne];Oe?F.setAttributeNS(Oe,A,L):F.setAttribute(A,L)}else F.setAttribute(A,L)}removeAttribute(F,A,L){if(L){const ne=Ie[L];ne?F.removeAttributeNS(ne,A):F.removeAttribute(`${L}:${A}`)}else F.removeAttribute(A)}addClass(F,A){F.classList.add(A)}removeClass(F,A){F.classList.remove(A)}setStyle(F,A,L,ne){ne&(u.JOm.DashCase|u.JOm.Important)?F.style.setProperty(A,L,ne&u.JOm.Important?"important":""):F.style[A]=L}removeStyle(F,A,L){L&u.JOm.DashCase?F.style.removeProperty(A):F.style[A]=""}setProperty(F,A,L){F[A]=L}setValue(F,A){F.nodeValue=A}listen(F,A,L){return"string"==typeof F?this.eventManager.addGlobalEventListener(F,A,tn(L)):this.eventManager.addEventListener(F,A,tn(L))}}class Rn extends Tt{constructor(F,A,L,ne){super(F),this.component=L;const Oe=It(ne+"-"+L.id,L.styles,[]);A.addStyles(Oe),this.contentAttr="_ngcontent-%COMP%".replace(be,ne+"-"+L.id),this.hostAttr="_nghost-%COMP%".replace(be,ne+"-"+L.id)}applyToHost(F){super.setAttribute(F,this.hostAttr,"")}createElement(F,A){const L=super.createElement(F,A);return super.setAttribute(L,this.contentAttr,""),L}}class xt extends Tt{constructor(F,A,L,ne){super(F),this.sharedStylesHost=A,this.hostEl=L,this.shadowRoot=L.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Oe=It(ne.id,ne.styles,[]);for(let je=0;je{class N extends Ae{constructor(A){super(A)}supports(A){return!0}addEventListener(A,L,ne){return A.addEventListener(L,ne,!1),()=>this.removeEventListener(A,L,ne)}removeEventListener(A,L,ne){return A.removeEventListener(L,ne)}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const Re=["alt","control","meta","shift"],xe={"\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"},Ne={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Qe={alt:N=>N.altKey,control:N=>N.ctrlKey,meta:N=>N.metaKey,shift:N=>N.shiftKey};let ot=(()=>{class N extends Ae{constructor(A){super(A)}supports(A){return null!=N.parseEventName(A)}addEventListener(A,L,ne){const Oe=N.parseEventName(L),je=N.eventCallback(Oe.fullKey,ne,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,y.q)().onAndCancel(A,Oe.domEventName,je))}static parseEventName(A){const L=A.toLowerCase().split("."),ne=L.shift();if(0===L.length||"keydown"!==ne&&"keyup"!==ne)return null;const Oe=N._normalizeKey(L.pop());let je="";if(Re.forEach(Nt=>{const $t=L.indexOf(Nt);$t>-1&&(L.splice($t,1),je+=Nt+".")}),je+=Oe,0!=L.length||0===Oe.length)return null;const Et={};return Et.domEventName=ne,Et.fullKey=je,Et}static getEventFullKey(A){let L="",ne=function(N){let F=N.key;if(null==F){if(F=N.keyIdentifier,null==F)return"Unidentified";F.startsWith("U+")&&(F=String.fromCharCode(parseInt(F.substring(2),16)),3===N.location&&Ne.hasOwnProperty(F)&&(F=Ne[F]))}return xe[F]||F}(A);return ne=ne.toLowerCase()," "===ne?ne="space":"."===ne&&(ne="dot"),Re.forEach(Oe=>{Oe!=ne&&Qe[Oe](A)&&(L+=Oe+".")}),L+=ne,L}static eventCallback(A,L,ne){return Oe=>{N.getEventFullKey(Oe)===A&&ne.runGuarded(()=>L(Oe))}}static _normalizeKey(A){switch(A){case"esc":return"escape";default:return A}}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(y.K0))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac}),N})();const br=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:y.bD},{provide:u.g9A,useValue:function(){re.makeCurrent(),ae.init()},multi:!0},{provide:y.K0,useFactory:function(){return(0,u.RDi)(document),document},deps:[]}]),Gr=[[],{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function(){return new u.qLn},deps:[]},{provide:X,useClass:Hr,multi:!0,deps:[y.K0,u.R0b,u.Lbi]},{provide:X,useClass:ot,multi:!0,deps:[y.K0]},[],{provide:gn,useClass:gn,deps:[ue,ze,u.AFp]},{provide:u.FYo,useExisting:gn},{provide:ie,useExisting:ze},{provide:ze,useClass:ze,deps:[y.K0]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b]},{provide:ue,useClass:ue,deps:[X,u.R0b]},{provide:y.JF,useClass:Ee,deps:[]},[]];let gi=(()=>{class N{constructor(A){if(A)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(A){return{ngModule:N,providers:[{provide:u.AFp,useValue:A.appId},{provide:x,useExisting:u.AFp},Y]}}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(N,12))},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({providers:Gr,imports:[y.ez,u.hGG]}),N})();"undefined"!=typeof window&&window;var tt=O(1841),ht=O(3092),ut=O(9502),Jt=O(8253),Bt=O(5894),kn=O(8567),Ot=O(4889);let wr=(()=>{class N{constructor(A,L){this.http=A,this.errorSvc=L,this.endpoint="",this.version="/api/v3",this.urlPrefix=`${this.endpoint}${this.version}`,this.secureModeUrl=`${this.urlPrefix}/auth/securemode`}getSecureMode(){return this.http.get(`${this.secureModeUrl}`,{responseType:"text"}).pipe((0,Bt.K)(L=>this.errorSvc.handleError(L)))}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(tt.eN),u.LFG(Ot.T))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();var Vn=O(7556);let Ze=(()=>{class N{constructor(A,L,ne,Oe,je){this.initSvc=A,this.errorSvc=L,this.authSvc=ne,this.router=Oe,this.route=je}ngOnInit(){this.initializor()}initializor(){this.environmentCheck()}environmentCheck(){this.progressMsg="environment checking",this.initSvc.getSecureMode().subscribe(A=>{"secure"===A?(this.authSvc.isSecureMode=!0,this.tokenValidate()):(this.authSvc.isSecureMode=!1,this.navigateToHome())})}tokenValidate(){this.progressMsg="access token validating",this.authSvc.tokenValidate().pipe((0,Bt.K)(A=>(this.authSvc.isLoggedIn=!1,this.router.navigate(["/login"],{relativeTo:this.route}),(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.navigateToHome()})}navigateToHome(){this.router.navigate(["/dashboard"],{relativeTo:this.route})}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(wr),u.Y36(Ot.T),u.Y36(Vn.e),u.Y36(ut.F0),u.Y36(ut.gz))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-initializer"]],decls:16,vars:1,consts:[[1,"init","text-center","bg-dark"],[1,"init-progress"],["role","status",1,"spinner-grow","text-success"],[1,"sr-only"],["role","status",1,"spinner-grow","text-danger"],["role","status",1,"spinner-grow","text-warning"],["role","status",1,"spinner-grow","text-info"],[1,"text-light"]],template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span",3),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"span",3),u._uU(7,"Loading..."),u.qZA(),u.qZA(),u.TgZ(8,"div",5),u.TgZ(9,"span",3),u._uU(10,"Loading..."),u.qZA(),u.qZA(),u.TgZ(11,"div",6),u.TgZ(12,"span",3),u._uU(13,"Loading..."),u.qZA(),u.qZA(),u.TgZ(14,"p",7),u._uU(15),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(15),u.hij("",L.progressMsg,"..."))},styles:[".init[_ngcontent-%COMP%]{position:fixed;top:0;bottom:-100px;left:0;right:0;z-index:999}.init-progress[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:45%}"]}),N})();var fr=O(1964),Zn=O(2468),_n=O(2437),hn=O(9744),Ht=O(8391),Un=O(4791),Bn=O(9386),Gt=O(3692);function Mt(N,F){if(1&N&&(u.TgZ(0,"p",6),u._UZ(1,"span",7),u._uU(2),u.qZA()),2&N){const A=u.oxw();u.xp6(2),u.hij(" The ",A.svcName," service is inaccessible!!! please try again later! ")}}const Ar=[{path:"dashboard",canLoad:[Jt.a],loadChildren:()=>O.e(849).then(O.bind(O,8849)).then(N=>N.DashboardModule)},{path:"metadata",canLoad:[Jt.a],loadChildren:()=>O.e(10).then(O.bind(O,4010)).then(N=>N.MetadataModule)},{path:"core-data",canLoad:[Jt.a],loadChildren:()=>O.e(489).then(O.bind(O,3489)).then(N=>N.CoreDataModule)},{path:"notifications",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(827),O.e(634)]).then(O.bind(O,2634)).then(N=>N.NotificationsModule)},{path:"scheduler",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(827),O.e(707),O.e(536)]).then(O.bind(O,5886)).then(N=>N.SchedulerModule)},{path:"rule-engine",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(10),O.e(753),O.e(707),O.e(155)]).then(O.bind(O,4155)).then(N=>N.RuleEngineModule)},{path:"app-service",canLoad:[Jt.a],loadChildren:()=>Promise.all([O.e(10),O.e(753),O.e(894)]).then(O.bind(O,894)).then(N=>N.AppServiceModule)},{path:"initializer",component:Ze},{path:"svc-unavailable",component:(()=>{class N{constructor(A,L,ne,Oe,je,Et,Nt,$t,Tr){this.router=A,this.route=L,this.coredataSvc=ne,this.metadataSvc=Oe,this.notiSvc=je,this.schedulerSvc=Et,this.ruleSvc=Nt,this.systemSvc=$t,this.registrySvc=Tr,this.refresgMsg=!1,this.refreshBtnDisable=!1}ngOnInit(){this.route.queryParams.subscribe(A=>{this.svcName=A.svcName,this.routerPath=A.routerPath})}refresh(){this.refreshBtnDisable=!0,this.ping().pipe((0,Bt.K)(A=>(this.refresgMsg=!0,window.setTimeout(()=>{this.refresgMsg=!1,this.refreshBtnDisable=!1},3e3),(0,kn._)(()=>"Something bad happened; please try again later.")))).subscribe(()=>this.router.navigate([`${this.routerPath}`]))}ping(){switch(this.svcName){case"core data":return this.coredataSvc.ping();case"metadata":return this.metadataSvc.ping();case"scheduler":return this.schedulerSvc.ping();case"notification":return this.notiSvc.ping();case"rule engine":return this.ruleSvc.ping();case"system agent":return this.systemSvc.ping();case"registry center":return this.registrySvc.ping();default:return(0,fr.of)()}}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(ut.F0),u.Y36(ut.gz),u.Y36(Zn.D),u.Y36(_n.D),u.Y36(hn.T),u.Y36(Ht.G),u.Y36(Un.n),u.Y36(Bn.J),u.Y36(Gt.r))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-service-unavailable"]],decls:11,vars:5,consts:[["class","alert alert-danger","role","alert",4,"ngIf"],[1,"jumbotron"],[1,"display-5"],[1,"lead"],[1,"my-4"],["role","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-warning"]],template:function(A,L){1&A&&(u.YNc(0,Mt,3,1,"p",0),u.TgZ(1,"div",1),u.TgZ(2,"h2",2),u._uU(3),u.qZA(),u.TgZ(4,"p",3),u._uU(5),u.qZA(),u._UZ(6,"hr",4),u.TgZ(7,"p"),u._uU(8,"EdgeXFoundry uses a microservices architecture, each service is running independently, please make sure that the current service is already running, if you have manually started the service, click the Refresh button."),u.qZA(),u.TgZ(9,"button",5),u.NdJ("click",function(){return L.refresh()}),u._uU(10,"Refresh"),u.qZA(),u.qZA()),2&A&&(u.Q6J("ngIf",L.refresgMsg),u.xp6(3),u.hij("Oops!!! ",L.svcName," service is unavailable!"),u.xp6(2),u.AsE("This could be a network reason, or it could be that the ",L.svcName," microservice is not running, make sure there is no network problem or that the ",L.svcName," service is already running!"),u.xp6(4),u.Q6J("disabled",L.refreshBtnDisable))},directives:[y.O5],styles:[".btn[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),N})()}];let ir=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[ut.Bz.forRoot(Ar,{useHash:!0})],ut.Bz]}),N})();var qn=O(4689),hr=O(7822);function Wt(N,F){if(1&N){const A=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",3),u.TgZ(2,"span",4),u.NdJ("click",function(){const Oe=u.CHM(A).$implicit;return u.oxw(2).close(Oe)}),u.TgZ(3,"span",5),u._uU(4,"\xd7"),u.qZA(),u.qZA(),u.TgZ(5,"div"),u._uU(6),u.qZA(),u.qZA(),u.qZA()}if(2&N){const A=F.$implicit;u.xp6(1),u.Tol(A.class),u.xp6(5),u.hij(" ",A.content," ")}}function $n(N,F){if(1&N&&(u.TgZ(0,"div",1),u.YNc(1,Wt,7,3,"div",2),u.qZA()),2&N){const A=u.oxw();u.xp6(1),u.Q6J("ngForOf",A.messageService.messages)}}let Zt=(()=>{class N{constructor(A){this.messageService=A}ngOnInit(){}close(A){this.messageService.messages.splice(this.messageService.messages.indexOf(A),1)}ngOnDestroy(){this.timer&&clearInterval(this.timer)}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(hr.e))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-message"]],decls:1,vars:1,consts:[["class","position-fixed overflow-hidden text-break","style","top: 10px; right: 0;min-width: 300px; max-width: 300px;z-index: 999;",4,"ngIf"],[1,"position-fixed","overflow-hidden","text-break",2,"top","10px","right","0","min-width","300px","max-width","300px","z-index","999"],[4,"ngFor","ngForOf"],["role","alert"],["type","button","aria-label","Close",1,"btn","btn-lg","close",3,"click"],["aria-hidden","true"]],template:function(A,L){1&A&&u.YNc(0,$n,2,1,"div",0),2&A&&u.Q6J("ngIf",L.messageService.messages.length)},directives:[y.O5,y.sg],styles:[""]}),N})();function Sr(N,F){if(1&N&&(u.TgZ(0,"a",49),u._uU(1),u.qZA()),2&N){const A=u.oxw().$implicit,L=u.oxw();u.s9C("routerLink",L.navChainMap.get(A)),u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function sn(N,F){if(1&N&&(u.TgZ(0,"span",50),u._uU(1),u.qZA()),2&N){const A=u.oxw().$implicit,L=u.oxw();u.xp6(1),u.hij(" ",L.pathFormat(A)," ")}}function Dn(N,F){1&N&&(u.TgZ(0,"span"),u._uU(1,">"),u.qZA())}function pr(N,F){if(1&N&&(u.TgZ(0,"h6",35),u.YNc(1,Sr,2,2,"a",47),u.YNc(2,sn,2,1,"span",48),u.YNc(3,Dn,2,0,"span",46),u.qZA()),2&N){const A=F.index,L=u.oxw();u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A==L.navChain.length-1),u.xp6(1),u.Q6J("ngIf",A!==L.navChain.length-1)}}function Mr(N,F){1&N&&(u.TgZ(0,"div",51),u.TgZ(1,"div"),u._UZ(2,"span",52),u.TgZ(3,"span"),u._uU(4,"Loading..."),u.qZA(),u.qZA(),u.qZA())}function jn(N,F){1&N&&u._UZ(0,"router-outlet")}const Pt=function(){return{exact:!1}};let Ir=(()=>{class N{constructor(A,L){this.activatedRoute=A,this.router=L,this.title="EdgeX Console",this.isSelected=!1,this.toggleClass="",this.shrink=!1,this.shrinkSidebarOnly=!1,this.shrinkCenterNo=!1,this.navChainMap=new Map,this.navChainCache=[],this.navChain=[],this.currentNav="",this.loading=!1,this.navRecognized=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.R9)),this.navStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.OD)),this.navEnd=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.m2)),this.childStart=L.events.pipe((0,qn.h)(ne=>ne instanceof ut.Eb))}ngOnInit(){this.router.events.subscribe(A=>{A instanceof ut.OD&&(this.loading=!0),(A instanceof ut.m2||A instanceof ut.gk||A instanceof ut.Q3)&&(this.loading=!1)}),this.navEnd.subscribe(A=>{this.navChainCache=[],this.navChainMap=new Map,this.currentNav=A.urlAfterRedirects.split("?")[0].split("/").pop(),this.navChain=A.urlAfterRedirects.split("?")[0].split("/"),this.navChain.shift();let L=this;this.navChain.map(Oe=>Oe).reverse().forEach(function(Oe,je){let $t=L.navChain.map(Tr=>Tr).reverse().slice(je).reverse().join("/");L.navChainCache.push("/"+$t),L.navChainMap.set(Oe,"/"+$t)}),this.navChainCache.reverse()}),$(window).resize(()=>{this.shrinkCenterNo=!1,this.shrink=document.body.clientWidth<1340}),this.router.navigate(["/initializer"],{relativeTo:this.activatedRoute})}pathFormat(A){let L=A.split("-");return L.forEach((ne,Oe)=>{L[Oe]=ne.charAt(0).toUpperCase()+ne.substring(1)}),L.join(" ")}sideBarToggle(){this.shrink?(document.body.clientWidth<1340&&(this.shrinkCenterNo=!0),this.shrink=!1):(document.body.clientWidth<1340&&(this.shrinkCenterNo=!1),this.shrink=!0)}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(ut.gz),u.Y36(ut.F0))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-root"]],decls:60,vars:44,consts:function(){let F,A,L,ne,Oe,je,Et,Nt;return F="\u4EEA\u8868\u76D8",A="\u8BBE\u5907\u7BA1\u7406",L="\u6570\u636E\u4E2D\u5FC3",ne="\u4EFB\u52A1\u8C03\u5EA6",Oe="\u901A\u77E5\u670D\u52A1",je="\u89C4\u5219\u5F15\u64CE",Et="\u5E94\u7528\u670D\u52A1",Nt="\u4E2D\u6587\u7B80\u4F53",[[1,"container-fluid"],[1,"row"],[1,"px-0"],[1,"sidebar-center","font-weight-bold","text-white","vh-100"],[1,"sidebar-header","p-2"],["src","assets/img/bg_x.png","width","35","height","34","alt","","loading","lazy",1,"mt-2"],[1,"float-right","mt-3","mr-2"],["role","button",1,"fa","fa-navicon","fa-lg","text-light",3,"click"],[1,"overflow-hidden"],[1,"nav","flex-column"],["data-testid","menu-item-dashboard","routerLink","/dashboard","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-tachometer","fa-fw","mr-5"],["data-testid","menu-item-dashboard-text"],F,["routerLink","/metadata","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cubes","fa-fw","mr-5"],A,["routerLink","/core-data","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-database","fa-fw","mr-5"],L,["routerLink","/scheduler","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-clock-o","fa-fw","mr-5"],ne,["routerLink","/notifications","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-envelope","fa-fw","mr-5"],Oe,["routerLink","/rule-engine","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-sliders","fa-fw","mr-5"],je,["routerLink","/app-service","routerLinkActive","active-link",1,"nav-link","text-light",3,"routerLinkActiveOptions"],[1,"fa","fa-cloud-upload","fa-fw","mr-5"],Et,[1,"col-12"],[1,"bg-light","center-header","px-3","pt-2","font-weight-bold"],[1,"nav-router","mw-100","align-middle"],[1,"d-inline"],[1,"dropdown","float-right"],["id","dropdownLangLink","type","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","btn-sm","dropdown-toggle"],Nt,["aria-labelledby","dropdownLangLink",1,"dropdown-menu","dropdown-menu-sm","dropdown-menu-right"],["href","/",1,"dropdown-item"],["href","/zh",1,"dropdown-item"],[1,"mw-100","align-middle","mt-1"],["class","d-inline",4,"ngFor","ngForOf"],[1,"center-center","p-3"],["class","text-center","style","margin-top: 20%;",4,"ngIf"],[4,"ngIf"],["class","text-decoration-none d-inline",3,"routerLink",4,"ngIf"],["class","text-decoration-none d-inline",4,"ngIf"],[1,"text-decoration-none","d-inline",3,"routerLink"],[1,"text-decoration-none","d-inline"],[1,"text-center",2,"margin-top","20%"],["role","status","aria-hidden","true",1,"spinner-border","mr-2"]]},template:function(A,L){1&A&&(u._UZ(0,"app-message"),u.TgZ(1,"div",0),u.TgZ(2,"div",1),u.TgZ(3,"div",2),u.TgZ(4,"div",3),u.TgZ(5,"div",4),u._UZ(6,"img",5),u.TgZ(7,"p",6),u.TgZ(8,"i",7),u.NdJ("click",function(){return L.sideBarToggle()}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(9,"div",8),u.TgZ(10,"nav",9),u.TgZ(11,"a",10),u._UZ(12,"i",11),u.TgZ(13,"span",12),u.SDv(14,13),u.qZA(),u.qZA(),u.TgZ(15,"a",14),u._UZ(16,"i",15),u.TgZ(17,"span"),u.SDv(18,16),u.qZA(),u.qZA(),u.TgZ(19,"a",17),u._UZ(20,"i",18),u.TgZ(21,"span"),u.SDv(22,19),u.qZA(),u.qZA(),u.TgZ(23,"a",20),u._UZ(24,"i",21),u.TgZ(25,"span"),u.SDv(26,22),u.qZA(),u.qZA(),u.TgZ(27,"a",23),u._UZ(28,"i",24),u.TgZ(29,"span"),u.SDv(30,25),u.qZA(),u.qZA(),u.TgZ(31,"a",26),u._UZ(32,"i",27),u.TgZ(33,"span"),u.SDv(34,28),u.qZA(),u.qZA(),u.TgZ(35,"a",29),u._UZ(36,"i",30),u.TgZ(37,"span"),u.SDv(38,31),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(39,"div",32),u.TgZ(40,"div"),u.TgZ(41,"nav",33),u.TgZ(42,"div",34),u.TgZ(43,"h4",35),u._uU(44),u.qZA(),u.TgZ(45,"div",36),u.TgZ(46,"button",37),u.TgZ(47,"span"),u.SDv(48,38),u.qZA(),u.qZA(),u.TgZ(49,"div",39),u.TgZ(50,"a",40),u._uU(51,"English"),u.qZA(),u.TgZ(52,"a",41),u._uU(53,"\u4e2d\u6587\u7b80\u4f53"),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.TgZ(54,"div",42),u.TgZ(55,"div",35),u.YNc(56,pr,4,3,"h6",43),u.qZA(),u.qZA(),u.qZA(),u.TgZ(57,"div",44),u.YNc(58,Mr,5,0,"div",45),u.YNc(59,jn,1,0,"router-outlet",46),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(3),u.ekj("sidebar-shrink",L.shrink)("sidebar",!L.shrink),u.xp6(3),u.ekj("d-none",L.shrink),u.xp6(5),u.Q6J("routerLinkActiveOptions",u.DdM(37,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(38,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(39,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(40,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(41,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(42,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(2),u.Q6J("routerLinkActiveOptions",u.DdM(43,Pt)),u.xp6(2),u.ekj("d-none",L.shrink),u.xp6(3),u.ekj("center-shrink",L.shrink)("center-no-shrink",L.shrinkCenterNo)("center",!L.shrink),u.xp6(4),u.Oqu(L.pathFormat(L.currentNav)),u.xp6(12),u.Q6J("ngForOf",L.navChain),u.xp6(2),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[Zt,ut.yS,ut.Od,y.sg,y.O5,ut.lC],styles:[".sidebar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:250px;z-index:10}.sidebar-shrink[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:45px;z-index:10}.sidebar-center[_ngcontent-%COMP%]{background-color:#2d2848e6!important}.sidebar-header[_ngcontent-%COMP%]{background-color:#2d2848!important;height:65px}.active-link[_ngcontent-%COMP%]{color:#922c48;background-color:#922c4866!important}.sidebar-center[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#922c48;background-color:#922c4866!important}.center[_ngcontent-%COMP%]{position:absolute;left:250px;right:0}.center-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-no-shrink[_ngcontent-%COMP%]{position:absolute;left:45px;right:0}.center-header[_ngcontent-%COMP%]{height:65px}"]}),N})();function Zr(N,F){1&N&&(u.TgZ(0,"button",18),u._UZ(1,"span",19),u.TgZ(2,"span"),u._uU(3,"Loading..."),u.qZA(),u.qZA())}function mi(N,F){if(1&N){const A=u.EpF();u.TgZ(0,"button",20),u.NdJ("click",function(){return u.CHM(A),u.oxw().login()}),u.TgZ(1,"span"),u.SDv(2,21),u.qZA(),u.qZA()}}const yi=[{path:"login",component:(()=>{class N{constructor(A,L,ne,Oe){this.authSvc=A,this.errorSvc=L,this.router=ne,this.route=Oe,this.loading=!1,this.accessToken=null,this.tokenIsValid=!0}ngOnInit(){}login(){this.loading=!0,this.authSvc.setAccessToken(this.accessToken),this.authSvc.login().pipe((0,Bt.K)(A=>(this.loading=!1,this.authSvc.isLoggedIn=!1,this.accessToken=null,this.tokenIsValid=!1,(0,kn._)(A)))).subscribe(()=>{this.authSvc.isLoggedIn=!0,this.loading=!1,this.tokenIsValid=!0,this.router.navigate(["/dashboard"],{relativeTo:this.route})})}renderPopoverComponent(){$('[data-toggle="popover"]').popover({trigger:"hover"})}onInput(){this.tokenIsValid=!0}}return N.\u0275fac=function(A){return new(A||N)(u.Y36(Vn.e),u.Y36(Ot.T),u.Y36(ut.F0),u.Y36(ut.gz))},N.\u0275cmp=u.Xpm({type:N,selectors:[["app-login"]],decls:22,vars:5,consts:function(){let F,A,L,ne,Oe;return F="\u4F7F\u7528token\u4EE4\u724C\u767B\u5F55EdgeXFoundry",A="Token \u4EE4\u724C",L="\u65E0\u6548\u7684token\u4EE4\u724C\uFF01",ne="\u5982\u4F55\u83B7\u53D6access token\uFF1F",Oe="\u767B\u5F55",[[1,"login","bg-dark"],[1,"card","login-form"],[1,"card-header"],F,[1,"card-body","bg-light","shadow"],[1,""],[1,"form-group"],["for","accessToken",1,"col-form-label"],[1,"mr-1"],A,["type","password","id","accessToken","name","accessToken",1,"form-control",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],L,["class","btn btn-success btn-sm w-100","type","button","disabled","",4,"ngIf"],["type","button","class","btn btn-success btn-sm w-100",3,"click",4,"ngIf"],[1,"mt-2"],["href","https://docs.edgexfoundry.org/3.0/security/Ch-Authenticating/#how-to-make-authenticated-edgex-calls","target","_blank",1,"text-decoration-none"],ne,["type","button","disabled","",1,"btn","btn-success","btn-sm","w-100"],["role","status","aria-hidden","true",1,"spinner-grow","spinner-grow-sm"],["type","button",1,"btn","btn-success","btn-sm","w-100",3,"click"],Oe]},template:function(A,L){1&A&&(u.TgZ(0,"div",0),u.TgZ(1,"div",1),u.TgZ(2,"div",2),u.TgZ(3,"span"),u.SDv(4,3),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.TgZ(6,"form",5),u.TgZ(7,"div",6),u.TgZ(8,"label",7),u.TgZ(9,"span",8),u.SDv(10,9),u.qZA(),u.qZA(),u.TgZ(11,"div",5),u.TgZ(12,"input",10),u.NdJ("ngModelChange",function(Oe){return L.accessToken=Oe})("ngModelChange",function(){return L.onInput()}),u.qZA(),u.TgZ(13,"div",11),u.TgZ(14,"small"),u.SDv(15,12),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.YNc(16,Zr,4,0,"button",13),u.YNc(17,mi,3,0,"button",14),u.TgZ(18,"div",15),u.TgZ(19,"a",16),u.TgZ(20,"small"),u.SDv(21,17),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&A&&(u.xp6(12),u.ekj("is-invalid",!L.tokenIsValid),u.Q6J("ngModel",L.accessToken),u.xp6(4),u.Q6J("ngIf",L.loading),u.xp6(1),u.Q6J("ngIf",!L.loading))},directives:[ht._Y,ht.JL,ht.F,ht.Fj,ht.JJ,ht.On,y.O5],styles:[".login[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;left:0;right:0;z-index:999}.login-form[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:40%;width:350px;margin:auto}"]}),N})()}];let qr=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[ut.Bz.forChild(yi)],ut.Bz]}),N})(),xi=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N}),N.\u0275inj=u.cJS({imports:[[y.ez,ht.u5,qr]]}),N})();const _i=[{provide:tt.TP,useClass:(()=>{class N{constructor(A){this.authSvc=A}intercept(A,L){let ne=A.headers.set("X-Requested-With","XMLHttpRequest");if(this.authSvc.isSecureMode){let je=`Bearer ${this.authSvc.getAccessToken()}`;ne=A.headers.set("X-Requested-With","XMLHttpRequest").set("Authorization",je)}const Oe=A.clone({headers:ne});return L.handle(Oe)}}return N.\u0275fac=function(A){return new(A||N)(u.LFG(Vn.e))},N.\u0275prov=u.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),multi:!0}];let Jr=(()=>{class N{}return N.\u0275fac=function(A){return new(A||N)},N.\u0275mod=u.oAB({type:N,bootstrap:[Ir]}),N.\u0275inj=u.cJS({providers:[_i],imports:[[gi,y.ez,ht.u5,tt.JF,ir,xi]]}),N})();(0,u.G48)(),br().bootstrapModule(Jr).catch(N=>console.error(N))},9162:(Ye,me,O)=>{"use strict";O.d(me,{ZT:()=>u,mG:()=>P,Jh:()=>x,XA:()=>ae,CR:()=>Ee,ev:()=>ve,qq:()=>He,FC:()=>Me,KL:()=>We});var y=function(le,H){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,ue){X.__proto__=ue}||function(X,ue){for(var Ae in ue)Object.prototype.hasOwnProperty.call(ue,Ae)&&(X[Ae]=ue[Ae])})(le,H)};function u(le,H){if("function"!=typeof H&&null!==H)throw new TypeError("Class extends value "+String(H)+" is not a constructor or null");function X(){this.constructor=le}y(le,H),le.prototype=null===H?Object.create(H):(X.prototype=H.prototype,new X)}function P(le,H,X,ue){return new(X||(X=Promise))(function(ie,ze){function ee(Ve){try{be(ue.next(Ve))}catch(Xe){ze(Xe)}}function Ie(Ve){try{be(ue.throw(Ve))}catch(Xe){ze(Xe)}}function be(Ve){Ve.done?ie(Ve.value):function(ie){return ie instanceof X?ie:new X(function(ze){ze(ie)})}(Ve.value).then(ee,Ie)}be((ue=ue.apply(le,H||[])).next())})}function x(le,H){var ue,Ae,ie,ze,X={label:0,sent:function(){if(1&ie[0])throw ie[1];return ie[1]},trys:[],ops:[]};return ze={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(ze[Symbol.iterator]=function(){return this}),ze;function ee(be){return function(Ve){return function(be){if(ue)throw new TypeError("Generator is already executing.");for(;X;)try{if(ue=1,Ae&&(ie=2&be[0]?Ae.return:be[0]?Ae.throw||((ie=Ae.return)&&ie.call(Ae),0):Ae.next)&&!(ie=ie.call(Ae,be[1])).done)return ie;switch(Ae=0,ie&&(be=[2&be[0],ie.value]),be[0]){case 0:case 1:ie=be;break;case 4:return X.label++,{value:be[1],done:!1};case 5:X.label++,Ae=be[1],be=[0];continue;case 7:be=X.ops.pop(),X.trys.pop();continue;default:if(!(ie=(ie=X.trys).length>0&&ie[ie.length-1])&&(6===be[0]||2===be[0])){X=0;continue}if(3===be[0]&&(!ie||be[1]>ie[0]&&be[1]=le.length&&(le=void 0),{value:le&&le[ue++],done:!le}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ee(le,H){var X="function"==typeof Symbol&&le[Symbol.iterator];if(!X)return le;var Ae,ze,ue=X.call(le),ie=[];try{for(;(void 0===H||H-- >0)&&!(Ae=ue.next()).done;)ie.push(Ae.value)}catch(ee){ze={error:ee}}finally{try{Ae&&!Ae.done&&(X=ue.return)&&X.call(ue)}finally{if(ze)throw ze.error}}return ie}function ve(le,H){for(var X=0,ue=H.length,Ae=le.length;X1||ee(rt,_t)})})}function ee(rt,_t){try{!function(rt){rt.value instanceof He?Promise.resolve(rt.value.v).then(be,Ve):Xe(ie[0][2],rt)}(ue[rt](_t))}catch(jt){Xe(ie[0][3],jt)}}function be(rt){ee("next",rt)}function Ve(rt){ee("throw",rt)}function Xe(rt,_t){rt(_t),ie.shift(),ie.length&&ee(ie[0][0],ie[0][1])}}function We(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,H=le[Symbol.asyncIterator];return H?H.call(le):(le=ae(le),X={},ue("next"),ue("throw"),ue("return"),X[Symbol.asyncIterator]=function(){return this},X);function ue(ie){X[ie]=le[ie]&&function(ze){return new Promise(function(ee,Ie){!function(ie,ze,ee,Ie){Promise.resolve(Ie).then(function(be){ie({value:be,done:ee})},ze)}(ee,Ie,(ze=le[ie](ze)).done,ze.value)})}}}}},Ye=>{Ye(Ye.s=4705)}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/polyfills.ee9e4a31e0a58f0dd9bc.js b/cmd/edgex-ui-server/static/web/zh/polyfills.ee9e4a31e0a58f0dd9bc.js deleted file mode 100644 index ec94f54f..00000000 --- a/cmd/edgex-ui-server/static/web/zh/polyfills.ee9e4a31e0a58f0dd9bc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[429],{9140:(Ee,Pe,we)=>{var de,De;void 0!==(De="function"==typeof(de=function(){!function(e){var r=e.performance;function t(h){r&&r.mark&&r.mark(h)}function n(h,a){r&&r.measure&&r.measure(h,a)}t("Zone");var u=e.__Zone_symbol_prefix||"__zone_symbol__";function c(h){return u+h}var l=!0===e[c("forceDuplicateZoneCheck")];if(e.Zone){if(l||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var v=function(){function h(a,o){this._parent=a,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,o)}return h.assertZonePatched=function(){if(e.Promise!==F.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(h,"root",{get:function(){for(var a=h.current;a.parent;)a=a.parent;return a},enumerable:!1,configurable:!0}),Object.defineProperty(h,"current",{get:function(){return A.zone},enumerable:!1,configurable:!0}),Object.defineProperty(h,"currentTask",{get:function(){return ie},enumerable:!1,configurable:!0}),h.__load_patch=function(a,o,i){if(void 0===i&&(i=!1),F.hasOwnProperty(a)){if(!i&&l)throw Error("Already loaded patch: "+a)}else if(!e["__Zone_disable_"+a]){var P="Zone:"+a;t(P),F[a]=o(e,h,w),n(P,P)}},Object.defineProperty(h.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),h.prototype.get=function(a){var o=this.getZoneWith(a);if(o)return o._properties[a]},h.prototype.getZoneWith=function(a){for(var o=this;o;){if(o._properties.hasOwnProperty(a))return o;o=o._parent}return null},h.prototype.fork=function(a){if(!a)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,a)},h.prototype.wrap=function(a,o){if("function"!=typeof a)throw new Error("Expecting function got: "+a);var i=this._zoneDelegate.intercept(this,a,o),P=this;return function(){return P.runGuarded(i,this,arguments,o)}},h.prototype.run=function(a,o,i,P){A={parent:A,zone:this};try{return this._zoneDelegate.invoke(this,a,o,i,P)}finally{A=A.parent}},h.prototype.runGuarded=function(a,o,i,P){void 0===o&&(o=null),A={parent:A,zone:this};try{try{return this._zoneDelegate.invoke(this,a,o,i,P)}catch(z){if(this._zoneDelegate.handleError(this,z))throw z}}finally{A=A.parent}},h.prototype.runTask=function(a,o,i){if(a.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");if(a.state!==j||a.type!==R&&a.type!==Y){var P=a.state!=k;P&&a._transitionTo(k,U),a.runCount++;var z=ie;ie=a,A={parent:A,zone:this};try{a.type==Y&&a.data&&!a.data.isPeriodic&&(a.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,a,o,i)}catch(se){if(this._zoneDelegate.handleError(this,se))throw se}}finally{a.state!==j&&a.state!==I&&(a.type==R||a.data&&a.data.isPeriodic?P&&a._transitionTo(U,k):(a.runCount=0,this._updateTaskCount(a,-1),P&&a._transitionTo(j,k,j))),A=A.parent,ie=z}}},h.prototype.scheduleTask=function(a){if(a.zone&&a.zone!==this)for(var o=this;o;){if(o===a.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+a.zone.name);o=o.parent}a._transitionTo(V,j);var i=[];a._zoneDelegates=i,a._zone=this;try{a=this._zoneDelegate.scheduleTask(this,a)}catch(P){throw a._transitionTo(I,V,j),this._zoneDelegate.handleError(this,P),P}return a._zoneDelegates===i&&this._updateTaskCount(a,1),a.state==V&&a._transitionTo(U,V),a},h.prototype.scheduleMicroTask=function(a,o,i,P){return this.scheduleTask(new p(ee,a,o,i,P,void 0))},h.prototype.scheduleMacroTask=function(a,o,i,P,z){return this.scheduleTask(new p(Y,a,o,i,P,z))},h.prototype.scheduleEventTask=function(a,o,i,P,z){return this.scheduleTask(new p(R,a,o,i,P,z))},h.prototype.cancelTask=function(a){if(a.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");a._transitionTo($,U,k);try{this._zoneDelegate.cancelTask(this,a)}catch(o){throw a._transitionTo(I,$),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(a,-1),a._transitionTo(j,$),a.runCount=0,a},h.prototype._updateTaskCount=function(a,o){var i=a._zoneDelegates;-1==o&&(a._zoneDelegates=null);for(var P=0;P0,macroTask:i.macroTask>0,eventTask:i.eventTask>0,change:a})},h}(),p=function(){function h(a,o,i,P,z,se){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=a,this.source=o,this.data=P,this.scheduleFn=z,this.cancelFn=se,!i)throw new Error("callback is not defined");this.callback=i;var f=this;this.invoke=a===R&&P&&P.useG?h.invokeTask:function(){return h.invokeTask.call(e,f,this,arguments)}}return h.invokeTask=function(a,o,i){a||(a=this),ne++;try{return a.runCount++,a.zone.runTask(a,o,i)}finally{1==ne&&m(),ne--}},Object.defineProperty(h.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),h.prototype.cancelScheduleRequest=function(){this._transitionTo(j,V)},h.prototype._transitionTo=function(a,o,i){if(this._state!==o&&this._state!==i)throw new Error(this.type+" '"+this.source+"': can not transition to '"+a+"', expecting state '"+o+"'"+(i?" or '"+i+"'":"")+", was '"+this._state+"'.");this._state=a,a==j&&(this._zoneDelegates=null)},h.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},h.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},h}(),y=c("setTimeout"),b=c("Promise"),O=c("then"),N=[],M=!1;function g(h){if(0===ne&&0===N.length)if(X||e[b]&&(X=e[b].resolve(0)),X){var a=X[O];a||(a=X.then),a.call(X,m)}else e[y](m,0);h&&N.push(h)}function m(){if(!M){for(M=!0;N.length;){var h=N;N=[];for(var a=0;a=0;t--)"function"==typeof e[t]&&(e[t]=ze(e[t],r+"_"+t));return e}function rr(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var tr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Ne=!("nw"in J)&&void 0!==J.process&&"[object process]"==={}.toString.call(J.process),qe=!Ne&&!tr&&!(!Ze||!ye.HTMLElement),nr=void 0!==J.process&&"[object process]"==={}.toString.call(J.process)&&!tr&&!(!Ze||!ye.HTMLElement),Le={},or=function(e){if(e=e||J.event){var r=Le[e.type];r||(r=Le[e.type]=G("ON_PROPERTY"+e.type));var u,t=this||e.target||J,n=t[r];return qe&&t===ye&&"error"===e.type?!0===(u=n&&n.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null!=(u=n&&n.apply(this,arguments))&&!u&&e.preventDefault(),u}};function ar(e,r,t){var n=Oe(e,r);if(!n&&t&&Oe(t,r)&&(n={enumerable:!0,configurable:!0}),n&&n.configurable){var c=G("on"+r+"patched");if(!e.hasOwnProperty(c)||!e[c]){delete n.writable,delete n.value;var l=n.get,v=n.set,T=r.substr(2),d=Le[T];d||(d=Le[T]=G("ON_PROPERTY"+T)),n.set=function(p){var y=this;!y&&e===J&&(y=J),y&&(y[d]&&y.removeEventListener(T,or),v&&v.apply(y,Sr),"function"==typeof p?(y[d]=p,y.addEventListener(T,or,!1)):y[d]=null)},n.get=function(){var p=this;if(!p&&e===J&&(p=J),!p)return null;var y=p[d];if(y)return y;if(l){var b=l&&l.call(this);if(b)return n.set.call(this,b),"function"==typeof p.removeAttribute&&p.removeAttribute(r),b}return null},xe(e,r,n),e[c]=!0}}}function ir(e,r,t){if(r)for(var n=0;n=0&&"function"==typeof v[T.cbIdx]?We(T.name,v[T.cbIdx],T,u):c.apply(l,v)}})}function he(e,r){e[G("OriginalDelegate")]=r}var sr=!1,Ye=!1;function Zr(){if(sr)return Ye;sr=!0;try{var e=ye.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ye=!0)}catch(r){}return Ye}Zone.__load_patch("ZoneAwarePromise",function(e,r,t){var n=Object.getOwnPropertyDescriptor,u=Object.defineProperty;var l=t.symbol,v=[],T=!0===e[l("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=l("Promise"),p=l("then");t.onUnhandledError=function(f){if(t.showUncaughtError()){var E=f&&f.rejection;E?console.error("Unhandled Promise rejection:",E instanceof Error?E.message:E,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",E,E instanceof Error?E.stack:void 0):console.error(f)}},t.microtaskDrainDone=function(){for(var f=function(){var E=v.shift();try{E.zone.runGuarded(function(){throw E.throwOriginal?E.rejection:E})}catch(s){!function(f){t.onUnhandledError(f);try{var E=r[b];"function"==typeof E&&E.call(this,f)}catch(s){}}(s)}};v.length;)f()};var b=l("unhandledPromiseRejectionHandler");function N(f){return f&&f.then}function M(f){return f}function X(f){return o.reject(f)}var g=l("state"),m=l("value"),B=l("finally"),j=l("parentPromiseValue"),V=l("parentPromiseState"),k=null,$=!0,I=!1;function Y(f,E){return function(s){try{A(f,E,s)}catch(_){A(f,!1,_)}}}var w=l("currentTaskTrace");function A(f,E,s){var _=function(){var f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}}();if(f===s)throw new TypeError("Promise resolved with itself");if(f[g]===k){var S=null;try{("object"==typeof s||"function"==typeof s)&&(S=s&&s.then)}catch(Z){return _(function(){A(f,!1,Z)})(),f}if(E!==I&&s instanceof o&&s.hasOwnProperty(g)&&s.hasOwnProperty(m)&&s[g]!==k)ne(s),A(f,s[g],s[m]);else if(E!==I&&"function"==typeof S)try{S.call(s,_(Y(f,E)),_(Y(f,!1)))}catch(Z){_(function(){A(f,!1,Z)})()}else{f[g]=E;var C=f[m];if(f[m]=s,f[B]===B&&E===$&&(f[g]=f[V],f[m]=f[j]),E===I&&s instanceof Error){var L=r.currentTask&&r.currentTask.data&&r.currentTask.data.__creationTrace__;L&&u(s,w,{configurable:!0,enumerable:!1,writable:!0,value:L})}for(var x=0;x1?new c(T,d):new c(T),O=e.ObjectGetOwnPropertyDescriptor(p,"onmessage");return O&&!1===O.configurable?(y=e.ObjectCreate(p),b=p,[n,u,"send","close"].forEach(function(N){y[N]=function(){var M=e.ArraySlice.call(arguments);if(N===n||N===u){var X=M.length>0?M[0]:void 0;if(X){var g=Zone.__symbol__("ON_PROPERTY"+X);p[g]=y[g]}}return p[N].apply(p,M)}})):y=p,e.patchOnProperties(y,["close","error","message","open"],b),y};var l=r.WebSocket;for(var v in c)l[v]=c[v]}(e,r),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(e,r,t){t.patchOnProperties=ir,t.patchMethod=ve,t.bindArguments=Xe,t.patchMacroTask=Cr;var n=r.__symbol__("BLACK_LISTED_EVENTS"),u=r.__symbol__("UNPATCHED_EVENTS");e[u]&&(e[n]=e[u]),e[n]&&(r[n]=r[u]=e[n]),t.patchEventPrototype=Mr,t.patchEventTarget=Lr,t.isIEOrEdge=Zr,t.ObjectDefineProperty=xe,t.ObjectGetOwnPropertyDescriptor=Oe,t.ObjectCreate=Pr,t.ArraySlice=wr,t.patchClass=Re,t.wrapWithCurrentZone=ze,t.filterProperties=_r,t.attachOriginToPatched=he,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Ir,t.getGlobalObjects=function(){return{globalSources:ur,zoneSymbolEventNames:ae,eventNames:ge,isBrowser:qe,isMix:nr,isNode:Ne,TRUE_STR:fe,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Se,ADD_EVENT_LISTENER_STR:Fe,REMOVE_EVENT_LISTENER_STR:Ge}}}),(e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})[(n="legacyPatch",(e.__Zone_symbol_prefix||"__zone_symbol__")+n)]=function(){var n=e.Zone;n.__load_patch("defineProperty",function(u,c,l){l._redefineProperty=Yr,Ie=Zone.__symbol__,Ae=Object[Ie("defineProperty")]=Object.defineProperty,pr=Object[Ie("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Er=Object.create,pe=Ie("unconfigurables"),Object.defineProperty=function(e,r,t){if(yr(e,r))throw new TypeError("Cannot assign to read only property '"+r+"' of "+e);var n=t.configurable;return"prototype"!==r&&(t=Qe(e,r,t)),mr(e,r,t,n)},Object.defineProperties=function(e,r){return Object.keys(r).forEach(function(t){Object.defineProperty(e,t,r[t])}),e},Object.create=function(e,r){return"object"==typeof r&&!Object.isFrozen(r)&&Object.keys(r).forEach(function(t){r[t]=Qe(e,t,r[t])}),Er(e,r)},Object.getOwnPropertyDescriptor=function(e,r){var t=pr(e,r);return t&&yr(e,r)&&(t.configurable=!1),t}}),n.__load_patch("registerElement",function(u,c,l){!function(e,r){var t=r.getGlobalObjects();(t.isBrowser||t.isMix)&&"registerElement"in e.document&&r.patchCallbacks(r,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(u,l)}),n.__load_patch("EventTargetLegacy",function(u,c,l){(function(e,r){var t=r.getGlobalObjects(),n=t.eventNames,u=t.globalSources,c=t.zoneSymbolEventNames,l=t.TRUE_STR,v=t.FALSE_STR,T=t.ZONE_SYMBOL_PREFIX,p="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),y="EventTarget",b=[],O=e.wtf,N="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");O?b=N.map(function(H){return"HTML"+H+"Element"}).concat(p):e[y]?b.push(y):b=p;for(var M=e.__Zone_disable_IE_check||!1,X=e.__Zone_enable_cross_context_check||!1,g=r.isIEOrEdge(),B="[object FunctionWrapper]",j="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",V={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},U=0;U0){var h=R.invoke;R.invoke=function(){for(var a=w[r.__symbol__("loadfalse")],o=0;o{we(9140)}},Ee=>{Ee(Ee.s=7435)}]); \ No newline at end of file diff --git a/cmd/edgex-ui-server/static/web/zh/runtime.529f931c388a649b0d57.js b/cmd/edgex-ui-server/static/web/zh/runtime.66dfc9aff30a12bc6854.js similarity index 61% rename from cmd/edgex-ui-server/static/web/zh/runtime.529f931c388a649b0d57.js rename to cmd/edgex-ui-server/static/web/zh/runtime.66dfc9aff30a12bc6854.js index e2938827..20273f92 100644 --- a/cmd/edgex-ui-server/static/web/zh/runtime.529f931c388a649b0d57.js +++ b/cmd/edgex-ui-server/static/web/zh/runtime.66dfc9aff30a12bc6854.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},m={};function r(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(n,t,d,i)=>{if(!t){var a=1/0;for(f=0;f=i)&&Object.keys(r.O).every(p=>r.O[p](t[o]))?t.splice(o--,1):(c=!1,i0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,d,i]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{10:"6738023b8487d81b9158",155:"eb51d10e34a83d1c5025",489:"1d8008a97976d4d683d9",536:"a6d638d333a1069f0cc8",634:"06407e8d8a370697347f",707:"ecc7566fd8350a44c26d",753:"17a3f2b06f5ffbdb9f25",827:"f5639739df18b26d0d39",849:"5f6112a144f036c16a05",894:"407bd7f3a95dc5bc38a8"}[e]+".js",r.miniCssF=e=>"styles.2a143380ce0f2a41afa9.css",r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="web:";r.l=(t,d,i,f)=>{if(e[t])e[t].push(d);else{var a,c;if(void 0!==i)for(var o=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(b);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=n=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(n))})(),r.p="",(()=>{var e={666:0};r.f.j=(d,i)=>{var f=r.o(e,d)?e[d]:void 0;if(0!==f)if(f)i.push(f[2]);else if(666!=d){var a=new Promise((u,s)=>f=e[d]=[u,s]);i.push(f[2]=a);var c=r.p+r.u(d),o=new Error;r.l(c,u=>{if(r.o(e,d)&&(0!==(f=e[d])&&(e[d]=void 0),f)){var s=u&&("load"===u.type?"missing":u.type),b=u&&u.target&&u.target.src;o.message="Loading chunk "+d+" failed.\n("+s+": "+b+")",o.name="ChunkLoadError",o.type=s,o.request=b,f[1](o)}},"chunk-"+d,d)}else e[d]=0},r.O.j=d=>0===e[d];var n=(d,i)=>{var o,l,[f,a,c]=i,u=0;for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(c)var s=c(r);for(d&&d(i);u{"use strict";var e,v={},m={};function r(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(n,t,d,i)=>{if(!t){var a=1/0;for(f=0;f=i)&&Object.keys(r.O).every(p=>r.O[p](t[o]))?t.splice(o--,1):(l=!1,i0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,d,i]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{10:"6895e8a3e17d7e2e257b",155:"c74e9dbdebada850abed",489:"8656f68beb54ecacddb5",536:"1c48ef705d3c1d565d49",634:"3a15cb1e5504f0e3110a",707:"ecc7566fd8350a44c26d",753:"29ab49e72766d4c1702a",827:"f5639739df18b26d0d39",849:"c2ff0f8f788ceb65b645",894:"dc385c7f0166f0128c32"}[e]+".js",r.miniCssF=e=>"styles.2a143380ce0f2a41afa9.css",r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="web:";r.l=(t,d,i,f)=>{if(e[t])e[t].push(d);else{var a,l;if(void 0!==i)for(var o=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(b);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=n=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(n))})(),r.p="",(()=>{var e={666:0};r.f.j=(d,i)=>{var f=r.o(e,d)?e[d]:void 0;if(0!==f)if(f)i.push(f[2]);else if(666!=d){var a=new Promise((u,s)=>f=e[d]=[u,s]);i.push(f[2]=a);var l=r.p+r.u(d),o=new Error;r.l(l,u=>{if(r.o(e,d)&&(0!==(f=e[d])&&(e[d]=void 0),f)){var s=u&&("load"===u.type?"missing":u.type),b=u&&u.target&&u.target.src;o.message="Loading chunk "+d+" failed.\n("+s+": "+b+")",o.name="ChunkLoadError",o.type=s,o.request=b,f[1](o)}},"chunk-"+d,d)}else e[d]=0},r.O.j=d=>0===e[d];var n=(d,i)=>{var o,c,[f,a,l]=i,u=0;for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(l)var s=l(r);for(d&&d(i);u{"use strict";var e,v={},m={};function r(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(n,t,i,f)=>{if(!t){var a=1/0;for(d=0;d=f)&&Object.keys(r.O).every(p=>r.O[p](t[o]))?t.splice(o--,1):(l=!1,f0&&e[d-1][2]>f;d--)e[d]=e[d-1];e[d]=[t,i,f]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{10:"86cd78dbb35d3933fb18",155:"99bd04e59759370573ae",489:"4065c1dc2d3b3b501684",536:"77ceca190a98a8038a03",634:"c5763db2e92fa7d59036",707:"65d94ee77cc572c9cd8c",753:"5ef6f0ee7641c98adf0e",827:"4e2251bfaee2216adb91",849:"788edd22071d3b7246e9",894:"58b03acb8877946712cc"}[e]+".js",r.miniCssF=e=>"styles.2a143380ce0f2a41afa9.css",r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="web:";r.l=(t,i,f,d)=>{if(e[t])e[t].push(i);else{var a,l;if(void 0!==f)for(var o=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(b);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=n=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(n))})(),r.p="",(()=>{var e={666:0};r.f.j=(i,f)=>{var d=r.o(e,i)?e[i]:void 0;if(0!==d)if(d)f.push(d[2]);else if(666!=i){var a=new Promise((u,s)=>d=e[i]=[u,s]);f.push(d[2]=a);var l=r.p+r.u(i),o=new Error;r.l(l,u=>{if(r.o(e,i)&&(0!==(d=e[i])&&(e[i]=void 0),d)){var s=u&&("load"===u.type?"missing":u.type),b=u&&u.target&&u.target.src;o.message="Loading chunk "+i+" failed.\n("+s+": "+b+")",o.name="ChunkLoadError",o.type=s,o.request=b,d[1](o)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,f)=>{var o,c,[d,a,l]=f,u=0;for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(l)var s=l(r);for(i&&i(f);u=6.0.0" } }, - "@angular-devkit/architect": { + "node_modules/@angular-devkit/architect": { "version": "0.1202.4", "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1202.4.tgz", "integrity": "sha512-RBatkiiZWGX7/qYYaWVNAzaF3E8TCEt9dRfAoZSaLy/JLQLT3xjX+qT4bBC/XPdC8SQCWvMjW3IjfYRaKTBv1g==", "dev": true, - "requires": { + "dependencies": { "@angular-devkit/core": "12.2.4", "rxjs": "6.6.7" }, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular-devkit/architect/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, "dependencies": { - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" } }, - "@angular-devkit/build-angular": { + "node_modules/@angular-devkit/architect/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/@angular-devkit/build-angular": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-12.2.4.tgz", "integrity": "sha512-kYd22PM3BhjloSd7epEIEieXI/F4gbKgZCxIv7wsIFifOB6cqMH2HK5B1Zb66rieb9dg8AZvnLL9EuUSIULrjw==", "dev": true, - "requires": { + "dependencies": { "@ampproject/remapping": "1.0.1", "@angular-devkit/architect": "0.1202.4", "@angular-devkit/build-optimizer": "0.1202.4", @@ -117,84 +174,146 @@ "webpack-merge": "5.8.0", "webpack-subresource-integrity": "1.5.2" }, - "dependencies": { - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "@angular/compiler-cli": "^12.0.0", + "@angular/localize": "^12.0.0", + "@angular/service-worker": "^12.0.0", + "karma": "^6.3.0", + "ng-packagr": "^12.0.0", + "protractor": "^7.0.0", + "tailwindcss": "^2.0.0", + "tslint": "^6.1.0", + "typescript": "~4.2.3 || ~4.3.2" + }, + "peerDependenciesMeta": { + "@angular/localize": { + "optional": true + }, + "@angular/service-worker": { + "optional": true + }, + "karma": { + "optional": true + }, + "ng-packagr": { + "optional": true + }, + "protractor": { + "optional": true + }, + "tailwindcss": { + "optional": true }, - "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", - "dev": true + "tslint": { + "optional": true } } }, - "@angular-devkit/build-optimizer": { + "node_modules/@angular-devkit/build-angular/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/rxjs/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/@angular-devkit/build-angular/node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", + "dev": true + }, + "node_modules/@angular-devkit/build-optimizer": { "version": "0.1202.4", "resolved": "https://registry.npmjs.org/@angular-devkit/build-optimizer/-/build-optimizer-0.1202.4.tgz", "integrity": "sha512-kLZsqNAxaMFdG5GVoyfvvD+v+Iq/0S7xAbuTOa4qwmI946e+vfqO55rHEyRo2in6PVRP8UgH/1fYFgAC0P+pfg==", "dev": true, - "requires": { + "dependencies": { "source-map": "0.7.3", "tslib": "2.3.0", "typescript": "4.3.5" }, - "dependencies": { - "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", - "dev": true + "bin": { + "build-optimizer": "src/build-optimizer/cli.js" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "webpack": "^5.30.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true } } }, - "@angular-devkit/build-webpack": { + "node_modules/@angular-devkit/build-optimizer/node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", + "dev": true + }, + "node_modules/@angular-devkit/build-webpack": { "version": "0.1202.4", "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1202.4.tgz", "integrity": "sha512-XUZWt60M855mLmy02jYZ3yByMQf6sTYrMTfCnz62GILv7snauSfx9SqKYrD37sZ4UMCd4UNRmlcPtcjdRkLoPQ==", "dev": true, - "requires": { + "dependencies": { "@angular-devkit/architect": "0.1202.4", "rxjs": "6.6.7" }, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "webpack": "^5.30.0", + "webpack-dev-server": "^3.1.4" + } + }, + "node_modules/@angular-devkit/build-webpack/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, "dependencies": { - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" } }, - "@angular-devkit/core": { + "node_modules/@angular-devkit/build-webpack/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/@angular-devkit/core": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.2.4.tgz", "integrity": "sha512-lONchANfqBHE0UgqK1PFcaBwpT/FetM8atuLjbhgdM1VcR6lVLzyZImhR12gtNWJ5nledhMp8QeGkFvO3KCdxw==", "dev": true, - "requires": { + "dependencies": { "ajv": "8.6.2", "ajv-formats": "2.1.0", "fast-json-stable-stringify": "2.1.0", @@ -202,66 +321,85 @@ "rxjs": "6.6.7", "source-map": "0.7.3" }, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular-devkit/core/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, "dependencies": { - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" } }, - "@angular-devkit/schematics": { + "node_modules/@angular-devkit/core/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/@angular-devkit/schematics": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-12.2.4.tgz", "integrity": "sha512-hL2POzb2G8PzYzLl3Dmc3ePCRyXg1LnJEpGTXvTqgLCUI6fKGb2T7hwn3fbD7keCv88UleGazOPq9iU7Qqvx3Q==", "dev": true, - "requires": { + "dependencies": { "@angular-devkit/core": "12.2.4", "ora": "5.4.1", "rxjs": "6.6.7" }, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular-devkit/schematics/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, "dependencies": { - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" } }, - "@angular/animations": { + "node_modules/@angular-devkit/schematics/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/@angular/animations": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-12.2.4.tgz", "integrity": "sha512-UpTddGkftkW/vOhF19Z6lbtvhUX+LpMw+1qC2miM65XNrOWBe5bojX9/9pwGd1CpP189aRFHl933YLCgVxGKPA==", - "requires": { + "dependencies": { "tslib": "^2.2.0" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0" + }, + "peerDependencies": { + "@angular/core": "12.2.4" } }, - "@angular/cli": { + "node_modules/@angular/cli": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-12.2.4.tgz", "integrity": "sha512-oUpUKnFyunUMaWXF/5mXgM4r2Yav0ucysNN5rIhqtKPwGePGMALIuBWAhgsuIyT+SrmF9HIp1dVC5+sGA1WzYQ==", "dev": true, - "requires": { + "hasInstallScript": true, + "dependencies": { "@angular-devkit/architect": "0.1202.4", "@angular-devkit/core": "12.2.4", "@angular-devkit/schematics": "12.2.4", @@ -281,30 +419,48 @@ "semver": "7.3.5", "symbol-observable": "4.0.0", "uuid": "8.3.2" + }, + "bin": { + "ng": "bin/ng" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6", + "yarn": ">= 1.13.0" } }, - "@angular/common": { + "node_modules/@angular/common": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular/common/-/common-12.2.4.tgz", "integrity": "sha512-GbYcy3m1r2lPlbonodY8c04l/11p9BRcWJ8i+begu2iG7JofRIX8+XOFINMNlOspjo+VZFhVoTlXM7R0Zmfi8Q==", - "requires": { + "dependencies": { "tslib": "^2.2.0" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0" + }, + "peerDependencies": { + "@angular/core": "12.2.4", + "rxjs": "^6.5.3 || ^7.0.0" } }, - "@angular/compiler": { + "node_modules/@angular/compiler": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-12.2.4.tgz", "integrity": "sha512-aqX9SgUIOYwWeD9xGlyGgFRmgvebw9EE8U5Y3Dcrhui1XvxWKnmuozs3w5JVhmEn5f42XDdOas5gkI/E7+hasA==", - "requires": { + "dependencies": { "tslib": "^2.2.0" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0" } }, - "@angular/compiler-cli": { + "node_modules/@angular/compiler-cli": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-12.2.4.tgz", "integrity": "sha512-g7sCBdk58yqD9H4k2JQ1NRBgC7SyDjiTbM9ETe/CZ0mzQlbplmgUlPGiSRy4qTTrmjiJlK2AEfzd0s/ahkIsPQ==", "dev": true, - "requires": { + "dependencies": { "@babel/core": "^7.8.6", "@babel/types": "^7.8.6", "canonical-path": "1.0.0", @@ -320,130 +476,220 @@ "tslib": "^2.2.0", "yargs": "^17.0.0" }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "bin": { + "ivy-ngcc": "ngcc/main-ivy-ngcc.js", + "ng-xi18n": "src/extract_i18n.js", + "ngc": "src/main.js", + "ngcc": "ngcc/main-ngcc.js" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0" + }, + "peerDependencies": { + "@angular/compiler": "12.2.4", + "typescript": ">=4.2.3 <4.4" + } + }, + "node_modules/@angular/compiler-cli/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "@angular/core": { + "node_modules/@angular/core": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular/core/-/core-12.2.4.tgz", "integrity": "sha512-+TlS6vI56YkvUoQI/Er7kXzi5sjd/oayb8+iTnecX1u0UOpBYzcE8NLeHqSS9qPUjWSiw0JjgW07gdzxlye3aQ==", - "requires": { + "dependencies": { "tslib": "^2.2.0" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0" + }, + "peerDependencies": { + "rxjs": "^6.5.3 || ^7.0.0", + "zone.js": "~0.11.4" } }, - "@angular/forms": { + "node_modules/@angular/forms": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-12.2.4.tgz", "integrity": "sha512-o8z2c9WhlptcptonLj+dFkKqTqhc+RAbPIGIGisQpRi6FWgWfn75oXdIuqtHC7oNPDqQfH6zkwcgN2NlUC0uHA==", - "requires": { + "dependencies": { "tslib": "^2.2.0" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0" + }, + "peerDependencies": { + "@angular/common": "12.2.4", + "@angular/core": "12.2.4", + "@angular/platform-browser": "12.2.4", + "rxjs": "^6.5.3 || ^7.0.0" } }, - "@angular/localize": { + "node_modules/@angular/localize": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular/localize/-/localize-12.2.4.tgz", "integrity": "sha512-6GaeZ9lFAuOheJWA1gfvM2YL8vepyEDrtvw3EX3KdGNJvWq39ndbPRMhb01jHsTKWRMwP96lxYhcA5DBNrG0Fg==", "dev": true, - "requires": { + "dependencies": { "@babel/core": "7.8.3", "glob": "7.1.7", "yargs": "^17.0.0" }, + "bin": { + "localize-extract": "src/tools/src/extract/main.js", + "localize-migrate": "src/tools/src/migrate/main.js", + "localize-translate": "src/tools/src/translate/main.js" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0" + }, + "peerDependencies": { + "@angular/compiler": "12.2.4", + "@angular/compiler-cli": "12.2.4" + } + }, + "node_modules/@angular/localize/node_modules/@babel/core": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.8.3.tgz", + "integrity": "sha512-4XFkf8AwyrEG7Ziu3L2L0Cv+WyY47Tcsp70JFmpftbAA1K7YL/sgE9jh9HyNj08Y/U50ItUchpN0w6HxAoX1rA==", + "dev": true, "dependencies": { - "@babel/core": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.8.3.tgz", - "integrity": "sha512-4XFkf8AwyrEG7Ziu3L2L0Cv+WyY47Tcsp70JFmpftbAA1K7YL/sgE9jh9HyNj08Y/U50ItUchpN0w6HxAoX1rA==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/generator": "^7.8.3", - "@babel/helpers": "^7.8.3", - "@babel/parser": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/traverse": "^7.8.3", - "@babel/types": "^7.8.3", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.1", - "json5": "^2.1.0", - "lodash": "^4.17.13", - "resolve": "^1.3.2", - "semver": "^5.4.1", - "source-map": "^0.5.0" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } + "@babel/code-frame": "^7.8.3", + "@babel/generator": "^7.8.3", + "@babel/helpers": "^7.8.3", + "@babel/parser": "^7.8.3", + "@babel/template": "^7.8.3", + "@babel/traverse": "^7.8.3", + "@babel/types": "^7.8.3", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.1", + "json5": "^2.1.0", + "lodash": "^4.17.13", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@angular/localize/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/@angular/localize/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "@angular/platform-browser": { + "node_modules/@angular/platform-browser": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-12.2.4.tgz", "integrity": "sha512-b5BZpYp4s+B3Ec+DvZo5I0YjHITqIc9pmcSdDFkN29eq9+8ZfkJqV9nB1aEab4Al7aJ09u8BhstTufohYH3fBg==", - "requires": { + "dependencies": { "tslib": "^2.2.0" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0" + }, + "peerDependencies": { + "@angular/animations": "12.2.4", + "@angular/common": "12.2.4", + "@angular/core": "12.2.4" + }, + "peerDependenciesMeta": { + "@angular/animations": { + "optional": true + } } }, - "@angular/platform-browser-dynamic": { + "node_modules/@angular/platform-browser-dynamic": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-12.2.4.tgz", "integrity": "sha512-BGTK71EEaaGpfFJ8gXfnmC95BDhAEjJ5/gW3/DLhgKhoPfpH7J8AtPVijWGovrUB7d4XBmniCVdtSiSVZKfqCA==", - "requires": { + "dependencies": { "tslib": "^2.2.0" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0" + }, + "peerDependencies": { + "@angular/common": "12.2.4", + "@angular/compiler": "12.2.4", + "@angular/core": "12.2.4", + "@angular/platform-browser": "12.2.4" } }, - "@angular/router": { + "node_modules/@angular/router": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@angular/router/-/router-12.2.4.tgz", "integrity": "sha512-IkSLzXw23CCFQyBdwoouvGj/u2bxs9d4Ba7i+g/aDKrxeUVBZ7XSfks5OhCJe9F/o93rnfnSiBXvgx51olQ5CQ==", - "requires": { + "dependencies": { "tslib": "^2.2.0" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0" + }, + "peerDependencies": { + "@angular/common": "12.2.4", + "@angular/core": "12.2.4", + "@angular/platform-browser": "12.2.4", + "rxjs": "^6.5.3 || ^7.0.0" } }, - "@assemblyscript/loader": { + "node_modules/@assemblyscript/loader": { "version": "0.10.1", "resolved": "https://registry.npmjs.org/@assemblyscript/loader/-/loader-0.10.1.tgz", "integrity": "sha512-H71nDOOL8Y7kWRLqf6Sums+01Q5msqBW2KhDUTemh1tvY04eSkSXrK0uj/4mmY0Xr16/3zyZmsrxN7CKuRbNRg==", "dev": true }, - "@babel/code-frame": { + "node_modules/@babel/code-frame": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", "dev": true, - "requires": { + "dependencies": { "@babel/highlight": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/compat-data": { + "node_modules/@babel/compat-data": { "version": "7.15.0", "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.15.0.tgz", "integrity": "sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "@babel/core": { + "node_modules/@babel/core": { "version": "7.14.8", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.14.8.tgz", "integrity": "sha512-/AtaeEhT6ErpDhInbXmjHcUQXH0L0TEgscfcxk1qbOvLuKCa5aZT0SOOtDKFY96/CLROwbLSKyFor6idgNaU4Q==", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "^7.14.5", "@babel/generator": "^7.14.8", "@babel/helper-compilation-targets": "^7.14.5", @@ -460,85 +706,113 @@ "semver": "^6.3.0", "source-map": "^0.5.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" } }, - "@babel/generator": { + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/core/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@babel/generator": { "version": "7.14.8", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.14.8.tgz", "integrity": "sha512-cYDUpvIzhBVnMzRoY1fkSEhK/HmwEVwlyULYgn/tMQYd6Obag3ylCjONle3gdErfXBW61SVTlR9QR7uWlgeIkg==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.14.8", "jsesc": "^2.5.1", "source-map": "^0.5.0" }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "@babel/helper-annotate-as-pure": { + "node_modules/@babel/helper-annotate-as-pure": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.14.5.tgz", "integrity": "sha512-EivH9EgBIb+G8ij1B2jAwSH36WnGvkQSEC6CkX/6v6ZFlw5fVOHvsgGF4uiEHO2GzMvunZb6tDLQEQSdrdocrA==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-builder-binary-assignment-operator-visitor": { + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.15.4.tgz", "integrity": "sha512-P8o7JP2Mzi0SdC6eWr1zF+AEYvrsZa7GSY1lTayjF5XJhVH0kjLYUZPvTMflP7tBgZoe9gIhTa60QwFpqh/E0Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-explode-assignable-expression": "^7.15.4", "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-compilation-targets": { + "node_modules/@babel/helper-compilation-targets": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.15.4.tgz", "integrity": "sha512-rMWPCirulnPSe4d+gwdWXLfAXTTBj8M3guAf5xFQJ0nvFY7tfNAFnWdqaHegHlgDZOCT4qvhF3BYlSJag8yhqQ==", "dev": true, - "requires": { + "dependencies": { "@babel/compat-data": "^7.15.0", "@babel/helper-validator-option": "^7.14.5", "browserslist": "^4.16.6", "semver": "^6.3.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/helper-create-class-features-plugin": { + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.15.4.tgz", "integrity": "sha512-7ZmzFi+DwJx6A7mHRwbuucEYpyBwmh2Ca0RvI6z2+WLZYCqV0JOaLb+u0zbtmDicebgKBZgqbYfLaKNqSgv5Pw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-annotate-as-pure": "^7.15.4", "@babel/helper-function-name": "^7.15.4", "@babel/helper-member-expression-to-functions": "^7.15.4", @@ -546,34 +820,47 @@ "@babel/helper-replace-supers": "^7.15.4", "@babel/helper-split-export-declaration": "^7.15.4" }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/helper-annotate-as-pure": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", + "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", + "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", - "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - } + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-create-regexp-features-plugin": { + "node_modules/@babel/helper-create-regexp-features-plugin": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.14.5.tgz", "integrity": "sha512-TLawwqpOErY2HhWbGJ2nZT5wSkR192QpN+nBg1THfBfftrlvOh+WbhrxXCH4q4xJ9Gl16BGPR/48JA+Ryiho/A==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-annotate-as-pure": "^7.14.5", "regexpu-core": "^4.7.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/helper-define-polyfill-provider": { + "node_modules/@babel/helper-define-polyfill-provider": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.3.tgz", "integrity": "sha512-RH3QDAfRMzj7+0Nqu5oqgO5q9mFtQEVvCRsi8qCEfzLR9p2BHfn5FzhSB2oj1fF7I2+DcTORkYaQ6aTR9Cofew==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-compilation-targets": "^7.13.0", "@babel/helper-module-imports": "^7.12.13", "@babel/helper-plugin-utils": "^7.13.0", @@ -583,90 +870,113 @@ "resolve": "^1.14.2", "semver": "^6.1.2" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "peerDependencies": { + "@babel/core": "^7.4.0-0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "@babel/helper-explode-assignable-expression": { + "node_modules/@babel/helper-explode-assignable-expression": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.15.4.tgz", "integrity": "sha512-J14f/vq8+hdC2KoWLIQSsGrC9EFBKE4NFts8pfMpymfApds+fPqR30AOUWc4tyr56h9l/GA1Sxv2q3dLZWbQ/g==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-function-name": { + "node_modules/@babel/helper-function-name": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.15.4.tgz", "integrity": "sha512-Z91cOMM4DseLIGOnog+Z8OI6YseR9bua+HpvLAQ2XayUGU+neTtX+97caALaLdyu53I/fjhbeCnWnRH1O3jFOw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-get-function-arity": "^7.15.4", "@babel/template": "^7.15.4", "@babel/types": "^7.15.4" }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name/node_modules/@babel/template": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", + "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", + "dev": true, "dependencies": { - "@babel/template": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", - "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.14.5", - "@babel/parser": "^7.15.4", - "@babel/types": "^7.15.4" - } - } + "@babel/code-frame": "^7.14.5", + "@babel/parser": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-get-function-arity": { + "node_modules/@babel/helper-get-function-arity": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.15.4.tgz", "integrity": "sha512-1/AlxSF92CmGZzHnC515hm4SirTxtpDnLEJ0UyEMgTMZN+6bxXKg04dKhiRx5Enel+SUA1G1t5Ed/yQia0efrA==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-hoist-variables": { + "node_modules/@babel/helper-hoist-variables": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.15.4.tgz", "integrity": "sha512-VTy085egb3jUGVK9ycIxQiPbquesq0HUQ+tPO0uv5mPEBZipk+5FkRKiWq5apuyTE9FUrjENB0rCf8y+n+UuhA==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-member-expression-to-functions": { + "node_modules/@babel/helper-member-expression-to-functions": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.15.4.tgz", "integrity": "sha512-cokOMkxC/BTyNP1AlY25HuBWM32iCEsLPI4BHDpJCHHm1FU2E7dKWWIXJgQgSFiu4lp8q3bL1BIKwqkSUviqtA==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-module-imports": { + "node_modules/@babel/helper-module-imports": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.15.4.tgz", "integrity": "sha512-jeAHZbzUwdW/xHgHQ3QmWR4Jg6j15q4w/gCfwZvtqOxoo5DKtLHk8Bsf4c5RZRC7NmLEs+ohkdq8jFefuvIxAA==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-module-transforms": { + "node_modules/@babel/helper-module-transforms": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.4.tgz", "integrity": "sha512-9fHHSGE9zTC++KuXLZcB5FKgvlV83Ox+NLUmQTawovwlJ85+QMhk1CnVk406CQVj97LaWod6KVjl2Sfgw9Aktw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-imports": "^7.15.4", "@babel/helper-replace-supers": "^7.15.4", "@babel/helper-simple-access": "^7.15.4", @@ -676,524 +986,760 @@ "@babel/traverse": "^7.15.4", "@babel/types": "^7.15.4" }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms/node_modules/@babel/template": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", + "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", + "dev": true, "dependencies": { - "@babel/template": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", - "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.14.5", - "@babel/parser": "^7.15.4", - "@babel/types": "^7.15.4" - } - } + "@babel/code-frame": "^7.14.5", + "@babel/parser": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-optimise-call-expression": { + "node_modules/@babel/helper-optimise-call-expression": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.15.4.tgz", "integrity": "sha512-E/z9rfbAOt1vDW1DR7k4SzhzotVV5+qMciWV6LaG1g4jeFrkDlJedjtV4h0i4Q/ITnUu+Pk08M7fczsB9GXBDw==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-plugin-utils": { + "node_modules/@babel/helper-plugin-utils": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz", "integrity": "sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "@babel/helper-remap-async-to-generator": { + "node_modules/@babel/helper-remap-async-to-generator": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.15.4.tgz", "integrity": "sha512-v53MxgvMK/HCwckJ1bZrq6dNKlmwlyRNYM6ypaRTdXWGOE2c1/SCa6dL/HimhPulGhZKw9W0QhREM583F/t0vQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-annotate-as-pure": "^7.15.4", "@babel/helper-wrap-function": "^7.15.4", "@babel/types": "^7.15.4" }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator/node_modules/@babel/helper-annotate-as-pure": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", + "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", + "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", - "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - } + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-replace-supers": { + "node_modules/@babel/helper-replace-supers": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.15.4.tgz", "integrity": "sha512-/ztT6khaXF37MS47fufrKvIsiQkx1LBRvSJNzRqmbyeZnTwU9qBxXYLaaT/6KaxfKhjs2Wy8kG8ZdsFUuWBjzw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-member-expression-to-functions": "^7.15.4", "@babel/helper-optimise-call-expression": "^7.15.4", "@babel/traverse": "^7.15.4", "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-simple-access": { + "node_modules/@babel/helper-simple-access": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.15.4.tgz", "integrity": "sha512-UzazrDoIVOZZcTeHHEPYrr1MvTR/K+wgLg6MY6e1CJyaRhbibftF6fR2KU2sFRtI/nERUZR9fBd6aKgBlIBaPg==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-skip-transparent-expression-wrappers": { + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.15.4.tgz", "integrity": "sha512-BMRLsdh+D1/aap19TycS4eD1qELGrCBJwzaY9IE8LrpJtJb+H7rQkPIdsfgnMtLBA6DJls7X9z93Z4U8h7xw0A==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-split-export-declaration": { + "node_modules/@babel/helper-split-export-declaration": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.15.4.tgz", "integrity": "sha512-HsFqhLDZ08DxCpBdEVtKmywj6PQbwnF6HHybur0MAnkAKnlS6uHkwnmRIkElB2Owpfb4xL4NwDmDLFubueDXsw==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-validator-identifier": { + "node_modules/@babel/helper-validator-identifier": { "version": "7.14.9", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.9.tgz", "integrity": "sha512-pQYxPY0UP6IHISRitNe8bsijHex4TWZXi2HwKVsjPiltzlhse2znVcm9Ace510VT1kxIHjGJCZZQBX2gJDbo0g==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "@babel/helper-validator-option": { + "node_modules/@babel/helper-validator-option": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz", "integrity": "sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "@babel/helper-wrap-function": { + "node_modules/@babel/helper-wrap-function": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.15.4.tgz", "integrity": "sha512-Y2o+H/hRV5W8QhIfTpRIBwl57y8PrZt6JM3V8FOo5qarjshHItyH5lXlpMfBfmBefOqSCpKZs/6Dxqp0E/U+uw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-function-name": "^7.15.4", "@babel/template": "^7.15.4", "@babel/traverse": "^7.15.4", "@babel/types": "^7.15.4" }, - "dependencies": { - "@babel/template": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", - "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.14.5", - "@babel/parser": "^7.15.4", - "@babel/types": "^7.15.4" - } - } + "engines": { + "node": ">=6.9.0" } }, - "@babel/helpers": { + "node_modules/@babel/helper-wrap-function/node_modules/@babel/template": { "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.15.4.tgz", - "integrity": "sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ==", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", + "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", "dev": true, - "requires": { - "@babel/template": "^7.15.4", + "dependencies": { + "@babel/code-frame": "^7.14.5", + "@babel/parser": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.15.4.tgz", + "integrity": "sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.15.4", "@babel/traverse": "^7.15.4", "@babel/types": "^7.15.4" }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers/node_modules/@babel/template": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", + "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", + "dev": true, "dependencies": { - "@babel/template": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", - "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.14.5", - "@babel/parser": "^7.15.4", - "@babel/types": "^7.15.4" - } - } + "@babel/code-frame": "^7.14.5", + "@babel/parser": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/highlight": { + "node_modules/@babel/highlight": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-validator-identifier": "^7.14.5", "chalk": "^2.0.0", "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/parser": { + "node_modules/@babel/parser": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.4.tgz", "integrity": "sha512-xmzz+7fRpjrvDUj+GV7zfz/R3gSK2cOxGlazaXooxspCr539cbTXJKvBJzSVI2pPhcRGquoOtaIkKCsHQUiO3w==", - "dev": true + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } }, - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.15.4.tgz", "integrity": "sha512-eBnpsl9tlhPhpI10kU06JHnrYXwg3+V6CaP2idsCXNef0aeslpqyITXQ74Vfk5uHgY7IG7XP0yIH8b42KSzHog==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/helper-skip-transparent-expression-wrappers": "^7.15.4", "@babel/plugin-proposal-optional-chaining": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" } }, - "@babel/plugin-proposal-async-generator-functions": { + "node_modules/@babel/plugin-proposal-async-generator-functions": { "version": "7.14.7", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.14.7.tgz", "integrity": "sha512-RK8Wj7lXLY3bqei69/cc25gwS5puEc3dknoFPFbqfy3XxYQBQFvu4ioWpafMBAB+L9NyptQK4nMOa5Xz16og8Q==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/helper-remap-async-to-generator": "^7.14.5", "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-class-properties": { + "node_modules/@babel/plugin-proposal-class-properties": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.14.5.tgz", "integrity": "sha512-q/PLpv5Ko4dVc1LYMpCY7RVAAO4uk55qPwrIuJ5QJ8c6cVuAmhu7I/49JOppXL6gXf7ZHzpRVEUZdYoPLM04Gg==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-class-features-plugin": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-class-static-block": { + "node_modules/@babel/plugin-proposal-class-static-block": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.15.4.tgz", "integrity": "sha512-M682XWrrLNk3chXCjoPUQWOyYsB93B9z3mRyjtqqYJWDf2mfCdIYgDrA11cgNVhAQieaq6F2fn2f3wI0U4aTjA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-static-block instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-class-features-plugin": "^7.15.4", "@babel/helper-plugin-utils": "^7.14.5", "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" } }, - "@babel/plugin-proposal-dynamic-import": { + "node_modules/@babel/plugin-proposal-dynamic-import": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.14.5.tgz", "integrity": "sha512-ExjiNYc3HDN5PXJx+bwC50GIx/KKanX2HiggnIUAYedbARdImiCU4RhhHfdf0Kd7JNXGpsBBBCOm+bBVy3Gb0g==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-export-namespace-from": { + "node_modules/@babel/plugin-proposal-export-namespace-from": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.14.5.tgz", "integrity": "sha512-g5POA32bXPMmSBu5Dx/iZGLGnKmKPc5AiY7qfZgurzrCYgIztDlHFbznSNCoQuv57YQLnQfaDi7dxCtLDIdXdA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-json-strings": { + "node_modules/@babel/plugin-proposal-json-strings": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.14.5.tgz", "integrity": "sha512-NSq2fczJYKVRIsUJyNxrVUMhB27zb7N7pOFGQOhBKJrChbGcgEAqyZrmZswkPk18VMurEeJAaICbfm57vUeTbQ==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-json-strings instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-logical-assignment-operators": { + "node_modules/@babel/plugin-proposal-logical-assignment-operators": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.14.5.tgz", "integrity": "sha512-YGn2AvZAo9TwyhlLvCCWxD90Xq8xJ4aSgaX3G5D/8DW94L8aaT+dS5cSP+Z06+rCJERGSr9GxMBZ601xoc2taw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-nullish-coalescing-operator": { + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.14.5.tgz", "integrity": "sha512-gun/SOnMqjSb98Nkaq2rTKMwervfdAoz6NphdY0vTfuzMfryj+tDGb2n6UkDKwez+Y8PZDhE3D143v6Gepp4Hg==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-numeric-separator": { + "node_modules/@babel/plugin-proposal-numeric-separator": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.14.5.tgz", "integrity": "sha512-yiclALKe0vyZRZE0pS6RXgjUOt87GWv6FYa5zqj15PvhOGFO69R5DusPlgK/1K5dVnCtegTiWu9UaBSrLLJJBg==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-object-rest-spread": { + "node_modules/@babel/plugin-proposal-object-rest-spread": { "version": "7.14.7", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.14.7.tgz", "integrity": "sha512-082hsZz+sVabfmDWo1Oct1u1AgbKbUAyVgmX4otIc7bdsRgHBXwTwb3DpDmD4Eyyx6DNiuz5UAATT655k+kL5g==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.", "dev": true, - "requires": { + "dependencies": { "@babel/compat-data": "^7.14.7", "@babel/helper-compilation-targets": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", "@babel/plugin-transform-parameters": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-optional-catch-binding": { + "node_modules/@babel/plugin-proposal-optional-catch-binding": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.14.5.tgz", "integrity": "sha512-3Oyiixm0ur7bzO5ybNcZFlmVsygSIQgdOa7cTfOYCMY+wEPAYhZAJxi3mixKFCTCKUhQXuCTtQ1MzrpL3WT8ZQ==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-optional-chaining": { + "node_modules/@babel/plugin-proposal-optional-chaining": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.14.5.tgz", "integrity": "sha512-ycz+VOzo2UbWNI1rQXxIuMOzrDdHGrI23fRiz/Si2R4kv2XZQ1BK8ccdHwehMKBlcH/joGW/tzrUmo67gbJHlQ==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/helper-skip-transparent-expression-wrappers": "^7.14.5", "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-private-methods": { + "node_modules/@babel/plugin-proposal-private-methods": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.14.5.tgz", "integrity": "sha512-838DkdUA1u+QTCplatfq4B7+1lnDa/+QMI89x5WZHBcnNv+47N8QEj2k9I2MUU9xIv8XJ4XvPCviM/Dj7Uwt9g==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-class-features-plugin": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-private-property-in-object": { + "node_modules/@babel/plugin-proposal-private-property-in-object": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.15.4.tgz", "integrity": "sha512-X0UTixkLf0PCCffxgu5/1RQyGGbgZuKoI+vXP4iSbJSYwPb7hu06omsFGBvQ9lJEvwgrxHdS8B5nbfcd8GyUNA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-annotate-as-pure": "^7.15.4", "@babel/helper-create-class-features-plugin": "^7.15.4", "@babel/helper-plugin-utils": "^7.14.5", "@babel/plugin-syntax-private-property-in-object": "^7.14.5" }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object/node_modules/@babel/helper-annotate-as-pure": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", + "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", + "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", - "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - } + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-proposal-unicode-property-regex": { + "node_modules/@babel/plugin-proposal-unicode-property-regex": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.14.5.tgz", "integrity": "sha512-6axIeOU5LnY471KenAB9vI8I5j7NQ2d652hIYwVyRfgaZT5UpiqFKCuVXCDMSrU+3VFafnu2c5m3lrWIlr6A5Q==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-async-generators": { + "node_modules/@babel/plugin-syntax-async-generators": { "version": "7.8.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-class-properties": { + "node_modules/@babel/plugin-syntax-class-properties": { "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-class-static-block": { + "node_modules/@babel/plugin-syntax-class-static-block": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-dynamic-import": { + "node_modules/@babel/plugin-syntax-dynamic-import": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-export-namespace-from": { + "node_modules/@babel/plugin-syntax-export-namespace-from": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-json-strings": { + "node_modules/@babel/plugin-syntax-json-strings": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-logical-assignment-operators": { + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-nullish-coalescing-operator": { + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-numeric-separator": { + "node_modules/@babel/plugin-syntax-numeric-separator": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-object-rest-spread": { + "node_modules/@babel/plugin-syntax-object-rest-spread": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-optional-catch-binding": { + "node_modules/@babel/plugin-syntax-optional-catch-binding": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-optional-chaining": { + "node_modules/@babel/plugin-syntax-optional-chaining": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-private-property-in-object": { + "node_modules/@babel/plugin-syntax-private-property-in-object": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-top-level-await": { + "node_modules/@babel/plugin-syntax-top-level-await": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-arrow-functions": { + "node_modules/@babel/plugin-transform-arrow-functions": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.14.5.tgz", "integrity": "sha512-KOnO0l4+tD5IfOdi4x8C1XmEIRWUjNRV8wc6K2vz/3e8yAOoZZvsRXRRIF/yo/MAOFb4QjtAw9xSxMXbSMRy8A==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-async-to-generator": { + "node_modules/@babel/plugin-transform-async-to-generator": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.14.5.tgz", "integrity": "sha512-szkbzQ0mNk0rpu76fzDdqSyPu0MuvpXgC+6rz5rpMb5OIRxdmHfQxrktL8CYolL2d8luMCZTR0DpIMIdL27IjA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-imports": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5", "@babel/helper-remap-async-to-generator": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-block-scoped-functions": { + "node_modules/@babel/plugin-transform-block-scoped-functions": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.14.5.tgz", "integrity": "sha512-dtqWqdWZ5NqBX3KzsVCWfQI3A53Ft5pWFCT2eCVUftWZgjc5DpDponbIF1+c+7cSGk2wN0YK7HGL/ezfRbpKBQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-block-scoping": { + "node_modules/@babel/plugin-transform-block-scoping": { "version": "7.15.3", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.15.3.tgz", "integrity": "sha512-nBAzfZwZb4DkaGtOes1Up1nOAp9TDRRFw4XBzBBSG9QK7KVFmYzgj9o9sbPv7TX5ofL4Auq4wZnxCoPnI/lz2Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-classes": { + "node_modules/@babel/plugin-transform-classes": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.15.4.tgz", "integrity": "sha512-Yjvhex8GzBmmPQUvpXRPWQ9WnxXgAFuZSrqOK/eJlOGIXwvv8H3UEdUigl1gb/bnjTrln+e8bkZUYCBt/xYlBg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-annotate-as-pure": "^7.15.4", "@babel/helper-function-name": "^7.15.4", "@babel/helper-optimise-call-expression": "^7.15.4", @@ -1202,218 +1748,345 @@ "@babel/helper-split-export-declaration": "^7.15.4", "globals": "^11.1.0" }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-classes/node_modules/@babel/helper-annotate-as-pure": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", + "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", + "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", - "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - } + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-transform-computed-properties": { + "node_modules/@babel/plugin-transform-computed-properties": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.14.5.tgz", "integrity": "sha512-pWM+E4283UxaVzLb8UBXv4EIxMovU4zxT1OPnpHJcmnvyY9QbPPTKZfEj31EUvG3/EQRbYAGaYEUZ4yWOBC2xg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-destructuring": { + "node_modules/@babel/plugin-transform-destructuring": { "version": "7.14.7", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.14.7.tgz", "integrity": "sha512-0mDE99nK+kVh3xlc5vKwB6wnP9ecuSj+zQCa/n0voENtP/zymdT4HH6QEb65wjjcbqr1Jb/7z9Qp7TF5FtwYGw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-dotall-regex": { + "node_modules/@babel/plugin-transform-dotall-regex": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.14.5.tgz", "integrity": "sha512-loGlnBdj02MDsFaHhAIJzh7euK89lBrGIdM9EAtHFo6xKygCUGuuWe07o1oZVk287amtW1n0808sQM99aZt3gw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-duplicate-keys": { + "node_modules/@babel/plugin-transform-duplicate-keys": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.14.5.tgz", "integrity": "sha512-iJjbI53huKbPDAsJ8EmVmvCKeeq21bAze4fu9GBQtSLqfvzj2oRuHVx4ZkDwEhg1htQ+5OBZh/Ab0XDf5iBZ7A==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-exponentiation-operator": { + "node_modules/@babel/plugin-transform-exponentiation-operator": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.14.5.tgz", "integrity": "sha512-jFazJhMBc9D27o9jDnIE5ZErI0R0m7PbKXVq77FFvqFbzvTMuv8jaAwLZ5PviOLSFttqKIW0/wxNSDbjLk0tYA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-builder-binary-assignment-operator-visitor": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-for-of": { + "node_modules/@babel/plugin-transform-for-of": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.15.4.tgz", "integrity": "sha512-DRTY9fA751AFBDh2oxydvVm4SYevs5ILTWLs6xKXps4Re/KG5nfUkr+TdHCrRWB8C69TlzVgA9b3RmGWmgN9LA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-function-name": { + "node_modules/@babel/plugin-transform-function-name": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.14.5.tgz", "integrity": "sha512-vbO6kv0fIzZ1GpmGQuvbwwm+O4Cbm2NrPzwlup9+/3fdkuzo1YqOZcXw26+YUJB84Ja7j9yURWposEHLYwxUfQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-function-name": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-literals": { + "node_modules/@babel/plugin-transform-literals": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.14.5.tgz", "integrity": "sha512-ql33+epql2F49bi8aHXxvLURHkxJbSmMKl9J5yHqg4PLtdE6Uc48CH1GS6TQvZ86eoB/ApZXwm7jlA+B3kra7A==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-member-expression-literals": { + "node_modules/@babel/plugin-transform-member-expression-literals": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.14.5.tgz", "integrity": "sha512-WkNXxH1VXVTKarWFqmso83xl+2V3Eo28YY5utIkbsmXoItO8Q3aZxN4BTS2k0hz9dGUloHK26mJMyQEYfkn/+Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-amd": { + "node_modules/@babel/plugin-transform-modules-amd": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.14.5.tgz", "integrity": "sha512-3lpOU8Vxmp3roC4vzFpSdEpGUWSMsHFreTWOMMLzel2gNGfHE5UWIh/LN6ghHs2xurUp4jRFYMUIZhuFbody1g==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-transforms": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5", "babel-plugin-dynamic-import-node": "^2.3.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-commonjs": { + "node_modules/@babel/plugin-transform-modules-commonjs": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.15.4.tgz", "integrity": "sha512-qg4DPhwG8hKp4BbVDvX1s8cohM8a6Bvptu4l6Iingq5rW+yRUAhe/YRup/YcW2zCOlrysEWVhftIcKzrEZv3sA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-transforms": "^7.15.4", "@babel/helper-plugin-utils": "^7.14.5", "@babel/helper-simple-access": "^7.15.4", "babel-plugin-dynamic-import-node": "^2.3.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-systemjs": { + "node_modules/@babel/plugin-transform-modules-systemjs": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.15.4.tgz", "integrity": "sha512-fJUnlQrl/mezMneR72CKCgtOoahqGJNVKpompKwzv3BrEXdlPspTcyxrZ1XmDTIr9PpULrgEQo3qNKp6dW7ssw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-hoist-variables": "^7.15.4", "@babel/helper-module-transforms": "^7.15.4", "@babel/helper-plugin-utils": "^7.14.5", "@babel/helper-validator-identifier": "^7.14.9", "babel-plugin-dynamic-import-node": "^2.3.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-umd": { + "node_modules/@babel/plugin-transform-modules-umd": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.14.5.tgz", "integrity": "sha512-RfPGoagSngC06LsGUYyM9QWSXZ8MysEjDJTAea1lqRjNECE3y0qIJF/qbvJxc4oA4s99HumIMdXOrd+TdKaAAA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-transforms": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-named-capturing-groups-regex": { + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { "version": "7.14.9", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.9.tgz", "integrity": "sha512-l666wCVYO75mlAtGFfyFwnWmIXQm3kSH0C3IRnJqWcZbWkoihyAdDhFm2ZWaxWTqvBvhVFfJjMRQ0ez4oN1yYA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/plugin-transform-new-target": { + "node_modules/@babel/plugin-transform-new-target": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.14.5.tgz", "integrity": "sha512-Nx054zovz6IIRWEB49RDRuXGI4Gy0GMgqG0cII9L3MxqgXz/+rgII+RU58qpo4g7tNEx1jG7rRVH4ihZoP4esQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-object-super": { + "node_modules/@babel/plugin-transform-object-super": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.14.5.tgz", "integrity": "sha512-MKfOBWzK0pZIrav9z/hkRqIk/2bTv9qvxHzPQc12RcVkMOzpIKnFCNYJip00ssKWYkd8Sf5g0Wr7pqJ+cmtuFg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/helper-replace-supers": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-parameters": { + "node_modules/@babel/plugin-transform-parameters": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.15.4.tgz", "integrity": "sha512-9WB/GUTO6lvJU3XQsSr6J/WKvBC2hcs4Pew8YxZagi6GkTdniyqp8On5kqdK8MN0LMeu0mGbhPN+O049NV/9FQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-property-literals": { + "node_modules/@babel/plugin-transform-property-literals": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.14.5.tgz", "integrity": "sha512-r1uilDthkgXW8Z1vJz2dKYLV1tuw2xsbrp3MrZmD99Wh9vsfKoob+JTgri5VUb/JqyKRXotlOtwgu4stIYCmnw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-regenerator": { + "node_modules/@babel/plugin-transform-regenerator": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.14.5.tgz", "integrity": "sha512-NVIY1W3ITDP5xQl50NgTKlZ0GrotKtLna08/uGY6ErQt6VEQZXla86x/CTddm5gZdcr+5GSsvMeTmWA5Ii6pkg==", "dev": true, - "requires": { + "dependencies": { "regenerator-transform": "^0.14.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-reserved-words": { + "node_modules/@babel/plugin-transform-reserved-words": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.14.5.tgz", "integrity": "sha512-cv4F2rv1nD4qdexOGsRQXJrOcyb5CrgjUH9PKrrtyhSDBNWGxd0UIitjyJiWagS+EbUGjG++22mGH1Pub8D6Vg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-runtime": { + "node_modules/@babel/plugin-transform-runtime": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.14.5.tgz", "integrity": "sha512-fPMBhh1AV8ZyneiCIA+wYYUH1arzlXR1UMcApjvchDhfKxhy2r2lReJv8uHEyihi4IFIGlr1Pdx7S5fkESDQsg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-imports": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5", "babel-plugin-polyfill-corejs2": "^0.2.2", @@ -1421,86 +2094,135 @@ "babel-plugin-polyfill-regenerator": "^0.2.2", "semver": "^6.3.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "@babel/plugin-transform-shorthand-properties": { + "node_modules/@babel/plugin-transform-shorthand-properties": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.14.5.tgz", "integrity": "sha512-xLucks6T1VmGsTB+GWK5Pl9Jl5+nRXD1uoFdA5TSO6xtiNjtXTjKkmPdFXVLGlK5A2/or/wQMKfmQ2Y0XJfn5g==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-spread": { + "node_modules/@babel/plugin-transform-spread": { "version": "7.14.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.14.6.tgz", "integrity": "sha512-Zr0x0YroFJku7n7+/HH3A2eIrGMjbmAIbJSVv0IZ+t3U2WUQUA64S/oeied2e+MaGSjmt4alzBCsK9E8gh+fag==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", "@babel/helper-skip-transparent-expression-wrappers": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-sticky-regex": { + "node_modules/@babel/plugin-transform-sticky-regex": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.14.5.tgz", "integrity": "sha512-Z7F7GyvEMzIIbwnziAZmnSNpdijdr4dWt+FJNBnBLz5mwDFkqIXU9wmBcWWad3QeJF5hMTkRe4dAq2sUZiG+8A==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-template-literals": { + "node_modules/@babel/plugin-transform-template-literals": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.14.5.tgz", "integrity": "sha512-22btZeURqiepOfuy/VkFr+zStqlujWaarpMErvay7goJS6BWwdd6BY9zQyDLDa4x2S3VugxFb162IZ4m/S/+Gg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-typeof-symbol": { + "node_modules/@babel/plugin-transform-typeof-symbol": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.14.5.tgz", "integrity": "sha512-lXzLD30ffCWseTbMQzrvDWqljvZlHkXU+CnseMhkMNqU1sASnCsz3tSzAaH3vCUXb9PHeUb90ZT1BdFTm1xxJw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-unicode-escapes": { + "node_modules/@babel/plugin-transform-unicode-escapes": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.14.5.tgz", "integrity": "sha512-crTo4jATEOjxj7bt9lbYXcBAM3LZaUrbP2uUdxb6WIorLmjNKSpHfIybgY4B8SRpbf8tEVIWH3Vtm7ayCrKocA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-unicode-regex": { + "node_modules/@babel/plugin-transform-unicode-regex": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.14.5.tgz", "integrity": "sha512-UygduJpC5kHeCiRw/xDVzC+wj8VaYSoKl5JNVmbP7MadpNinAm3SvZCxZ42H37KZBKztz46YC73i9yV34d0Tzw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/preset-env": { + "node_modules/@babel/preset-env": { "version": "7.14.8", "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.14.8.tgz", "integrity": "sha512-a9aOppDU93oArQ51H+B8M1vH+tayZbuBqzjOhntGetZVa+4tTu5jp+XTwqHGG2lxslqomPYVSjIxQkFwXzgnxg==", "dev": true, - "requires": { + "dependencies": { "@babel/compat-data": "^7.14.7", "@babel/helper-compilation-targets": "^7.14.5", "@babel/helper-plugin-utils": "^7.14.5", @@ -1575,54 +2297,70 @@ "core-js-compat": "^3.15.0", "semver": "^6.3.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-env/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "@babel/preset-modules": { + "node_modules/@babel/preset-modules": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.4.tgz", "integrity": "sha512-J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", "@babel/plugin-transform-dotall-regex": "^7.4.4", "@babel/types": "^7.4.4", "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/runtime": { + "node_modules/@babel/runtime": { "version": "7.14.8", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.14.8.tgz", "integrity": "sha512-twj3L8Og5SaCRCErB4x4ajbvBIVV77CGeFglHpeg5WC5FF8TZzBWXtTJ4MqaD9QszLYTtr+IsaAL2rEUevb+eg==", "dev": true, - "requires": { + "dependencies": { "regenerator-runtime": "^0.13.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/template": { + "node_modules/@babel/template": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.14.5.tgz", "integrity": "sha512-6Z3Po85sfxRGachLULUhOmvAaOo7xCvqGQtxINai2mEGPFm6pQ4z5QInFnUrRpfoSV60BnjyF5F3c+15fxFV1g==", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "^7.14.5", "@babel/parser": "^7.14.5", "@babel/types": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/traverse": { + "node_modules/@babel/traverse": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.15.4.tgz", "integrity": "sha512-W6lQD8l4rUbQR/vYgSuCAE75ADyyQvOpFVsvPPdkhf6lATXAsQIG9YdtOcu8BB1dZ0LKu+Zo3c1wEcbKeuhdlA==", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "^7.14.5", "@babel/generator": "^7.15.4", "@babel/helper-function-name": "^7.15.4", @@ -1633,81 +2371,109 @@ "debug": "^4.1.0", "globals": "^11.1.0" }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/@babel/generator": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.4.tgz", + "integrity": "sha512-d3itta0tu+UayjEORPNz6e1T3FtvWlP5N4V5M+lhp/CxT4oAA7/NcScnpRyspUMLK6tu9MNHmQHxRykuN2R7hw==", + "dev": true, "dependencies": { - "@babel/generator": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.4.tgz", - "integrity": "sha512-d3itta0tu+UayjEORPNz6e1T3FtvWlP5N4V5M+lhp/CxT4oAA7/NcScnpRyspUMLK6tu9MNHmQHxRykuN2R7hw==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } + "@babel/types": "^7.15.4", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "@babel/types": { + "node_modules/@babel/types": { "version": "7.15.4", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.4.tgz", "integrity": "sha512-0f1HJFuGmmbrKTCZtbm3cU+b/AqdEYk5toj5iQur58xkVMlS0JWaKxTBSmCXd47uiN7vbcozAupm6Mvs80GNhw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-validator-identifier": "^7.14.9", "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "@cspotcode/source-map-consumer": { + "node_modules/@cspotcode/source-map-consumer": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 12" + } }, - "@cspotcode/source-map-support": { + "node_modules/@cspotcode/source-map-support": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.6.1.tgz", "integrity": "sha512-DX3Z+T5dt1ockmPdobJS/FAsQPW4V4SrWEhD2iYQT2Cb2tQsiMnYxrcUH9By/Z3B+v0S5LMBkQtV/XOBbpLEOg==", "dev": true, - "requires": { + "dependencies": { "@cspotcode/source-map-consumer": "0.8.0" + }, + "engines": { + "node": ">=12" } }, - "@csstools/convert-colors": { + "node_modules/@csstools/convert-colors": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@csstools/convert-colors/-/convert-colors-1.4.0.tgz", "integrity": "sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==", - "dev": true + "dev": true, + "engines": { + "node": ">=4.0.0" + } }, - "@discoveryjs/json-ext": { + "node_modules/@discoveryjs/json-ext": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.3.tgz", "integrity": "sha512-Fxt+AfXgjMoin2maPIYzFZnQjAXjAL0PHscM5pRTtatFqB+vZxAM9tLp2Optnuw3QOQC40jTNeGYFOMvyf7v9g==", - "dev": true + "dev": true, + "engines": { + "node": ">=10.0.0" + } }, - "@istanbuljs/schema": { + "node_modules/@istanbuljs/schema": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "@jridgewell/resolve-uri": { + "node_modules/@jridgewell/resolve-uri": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-1.0.0.tgz", "integrity": "sha512-9oLAnygRMi8Q5QkYEU4XWK04B+nuoXoxjRvRxgjuChkLZFBja0YPSgdZ7dZtwhncLBcQe/I/E+fLuk5qxcYVJA==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.0.0" + } }, - "@jsdevtools/coverage-istanbul-loader": { + "node_modules/@jsdevtools/coverage-istanbul-loader": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@jsdevtools/coverage-istanbul-loader/-/coverage-istanbul-loader-3.0.5.tgz", "integrity": "sha512-EUCPEkaRPvmHjWAAZkWMT7JDzpw7FKB00WTISaiXsbNOd5hCHg77XLA8sLYLFDo1zepYLo2w7GstN8YBqRXZfA==", "dev": true, - "requires": { + "dependencies": { "convert-source-map": "^1.7.0", "istanbul-lib-instrument": "^4.0.3", "loader-utils": "^2.0.0", @@ -1715,44 +2481,63 @@ "schema-utils": "^2.7.0" } }, - "@ngtools/webpack": { + "node_modules/@ngtools/webpack": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-12.2.4.tgz", "integrity": "sha512-jWxp5LwhGoIZY/iSWMpOgjSYS0XMq7bQunxdJBWJ9y8Lysw7lofJkk1KfWjx+oWBSNoOI0E2tH82I4DL6oth4w==", - "dev": true + "dev": true, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "@angular/compiler-cli": "^12.0.0", + "typescript": "~4.2.3 || ~4.3.2", + "webpack": "^5.30.0" + } }, - "@nodelib/fs.scandir": { + "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, - "requires": { + "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" } }, - "@nodelib/fs.stat": { + "node_modules/@nodelib/fs.stat": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true + "dev": true, + "engines": { + "node": ">= 8" + } }, - "@nodelib/fs.walk": { + "node_modules/@nodelib/fs.walk": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, - "requires": { + "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" } }, - "@npmcli/git": { + "node_modules/@npmcli/git": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.1.0.tgz", "integrity": "sha512-/hBFX/QG1b+N7PZBFs0bi+evgRZcK9nWBxQKZkGoXUT5hJSwl5c4d7y8/hm+NQZRPhQ67RzFaj5UM9YeyKoryw==", "dev": true, - "requires": { + "dependencies": { "@npmcli/promise-spawn": "^1.3.2", "lru-cache": "^6.0.0", "mkdirp": "^1.0.4", @@ -1761,332 +2546,361 @@ "promise-retry": "^2.0.1", "semver": "^7.3.5", "which": "^2.0.2" - }, + } + }, + "node_modules/@npmcli/git/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, "dependencies": { - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" } }, - "@npmcli/installed-package-contents": { + "node_modules/@npmcli/installed-package-contents": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-1.0.7.tgz", "integrity": "sha512-9rufe0wnJusCQoLpV9ZPKIVP55itrM5BxOXs10DmdbRfgWtHy1LDyskbwRnBghuB0PrF7pNPOqREVtpz4HqzKw==", "dev": true, - "requires": { + "dependencies": { "npm-bundled": "^1.1.1", "npm-normalize-package-bin": "^1.0.1" + }, + "bin": { + "installed-package-contents": "index.js" + }, + "engines": { + "node": ">= 10" } }, - "@npmcli/move-file": { + "node_modules/@npmcli/move-file": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", + "deprecated": "This functionality has been moved to @npmcli/fs", "dev": true, - "requires": { + "dependencies": { "mkdirp": "^1.0.4", "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=10" } }, - "@npmcli/node-gyp": { + "node_modules/@npmcli/node-gyp": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.2.tgz", "integrity": "sha512-yrJUe6reVMpktcvagumoqD9r08fH1iRo01gn1u0zoCApa9lnZGEigVKUd2hzsCId4gdtkZZIVscLhNxMECKgRg==", "dev": true }, - "@npmcli/promise-spawn": { + "node_modules/@npmcli/promise-spawn": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-1.3.2.tgz", "integrity": "sha512-QyAGYo/Fbj4MXeGdJcFzZ+FkDkomfRBrPM+9QYJSg+PxgAUL+LU3FneQk37rKR2/zjqkCV1BLHccX98wRXG3Sg==", "dev": true, - "requires": { + "dependencies": { "infer-owner": "^1.0.4" } }, - "@npmcli/run-script": { + "node_modules/@npmcli/run-script": { "version": "1.8.6", "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-1.8.6.tgz", "integrity": "sha512-e42bVZnC6VluBZBAFEr3YrdqSspG3bgilyg4nSLBJ7TRGNCzxHa92XAHxQBLYg0BmgwO4b2mf3h/l5EkEWRn3g==", "dev": true, - "requires": { + "dependencies": { "@npmcli/node-gyp": "^1.0.2", "@npmcli/promise-spawn": "^1.3.2", "node-gyp": "^7.1.0", "read-package-json-fast": "^2.0.1" } }, - "@schematics/angular": { + "node_modules/@schematics/angular": { "version": "12.2.4", "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-12.2.4.tgz", "integrity": "sha512-JPyjoTQMiVnaFmaEgACm7dzRMp7WMq78abeVaAg/xy8z2apMeDhTBXoSSLhXpQNtFvzLmfM4ovC6sCwn9esU9A==", "dev": true, - "requires": { + "dependencies": { "@angular-devkit/core": "12.2.4", "@angular-devkit/schematics": "12.2.4", "jsonc-parser": "3.0.0" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6", + "yarn": ">= 1.13.0" } }, - "@socket.io/base64-arraybuffer": { + "node_modules/@socket.io/base64-arraybuffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@socket.io/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz", "integrity": "sha512-dOlCBKnDw4iShaIsH/bxujKTM18+2TOAsYz+KSc11Am38H4q5Xw8Bbz97ZYdrVNM+um3p7w86Bvvmcn9q+5+eQ==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6.0" + } }, - "@tootallnate/once": { + "node_modules/@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6" + } }, - "@trysound/sax": { + "node_modules/@trysound/sax": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.1.1.tgz", "integrity": "sha512-Z6DoceYb/1xSg5+e+ZlPZ9v0N16ZvZ+wYMraFue4HYrE4ttONKtsvruIRf6t9TBR0YvSOfi1hUU0fJfBLCDYow==", - "dev": true + "dev": true, + "engines": { + "node": ">=10.13.0" + } }, - "@tsconfig/node10": { + "node_modules/@tsconfig/node10": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==", "dev": true }, - "@tsconfig/node12": { + "node_modules/@tsconfig/node12": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==", "dev": true }, - "@tsconfig/node14": { + "node_modules/@tsconfig/node14": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==", "dev": true }, - "@tsconfig/node16": { + "node_modules/@tsconfig/node16": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==", "dev": true }, - "@tweenjs/tween.js": { + "node_modules/@tweenjs/tween.js": { "version": "18.6.4", "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-18.6.4.tgz", "integrity": "sha512-lB9lMjuqjtuJrx7/kOkqQBtllspPIN+96OvTCeJ2j5FEzinoAXTdAMFnDAQT1KVPRlnYfBrqxtqP66vDM40xxQ==" }, - "@types/component-emitter": { + "node_modules/@types/component-emitter": { "version": "1.2.11", "resolved": "https://registry.npmjs.org/@types/component-emitter/-/component-emitter-1.2.11.tgz", "integrity": "sha512-SRXjM+tfsSlA9VuG8hGO2nft2p8zjXCK1VcC6N4NXbBbYbSia9kzCChYQajIjzIqOOOuh5Ock6MmV2oux4jDZQ==", "dev": true }, - "@types/cookie": { + "node_modules/@types/cookie": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.4.1.tgz", "integrity": "sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==", "dev": true }, - "@types/cors": { + "node_modules/@types/cors": { "version": "2.8.12", "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.12.tgz", "integrity": "sha512-vt+kDhq/M2ayberEtJcIN/hxXy1Pk+59g2FV/ZQceeaTyCtCucjL2Q7FXlFjtWn4n15KCr1NE2lNNFhp0lEThw==", "dev": true }, - "@types/eslint": { + "node_modules/@types/eslint": { "version": "7.28.0", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.28.0.tgz", "integrity": "sha512-07XlgzX0YJUn4iG1ocY4IX9DzKSmMGUs6ESKlxWhZRaa0fatIWaHWUVapcuGa8r5HFnTqzj+4OCjd5f7EZ/i/A==", "dev": true, - "requires": { + "dependencies": { "@types/estree": "*", "@types/json-schema": "*" } }, - "@types/eslint-scope": { + "node_modules/@types/eslint-scope": { "version": "3.7.1", "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.1.tgz", "integrity": "sha512-SCFeogqiptms4Fg29WpOTk5nHIzfpKCemSN63ksBQYKTcXoJEmJagV+DhVmbapZzY4/5YaOV1nZwrsU79fFm1g==", "dev": true, - "requires": { + "dependencies": { "@types/eslint": "*", "@types/estree": "*" } }, - "@types/estree": { + "node_modules/@types/estree": { "version": "0.0.50", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.50.tgz", "integrity": "sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==", "dev": true }, - "@types/glob": { + "node_modules/@types/glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.4.tgz", "integrity": "sha512-w+LsMxKyYQm347Otw+IfBXOv9UWVjpHpCDdbBMt8Kz/xbvCYNjP+0qPh91Km3iKfSRLBB0P7fAMf0KHrPu+MyA==", "dev": true, - "requires": { + "dependencies": { "@types/minimatch": "*", "@types/node": "*" } }, - "@types/jasmine": { + "node_modules/@types/jasmine": { "version": "3.9.0", "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-3.9.0.tgz", "integrity": "sha512-x7aAO0c4EpBEJkUd/v012GLO7tDXXtv+t7Cz5xK+WdSmitH27eHgsQr+36CblfJFuqBQ0++O0xgBTuaKJnB4fg==", "dev": true }, - "@types/json-schema": { + "node_modules/@types/json-schema": { "version": "7.0.9", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==", "dev": true }, - "@types/minimatch": { + "node_modules/@types/minimatch": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", "dev": true }, - "@types/node": { + "node_modules/@types/node": { "version": "16.7.10", "resolved": "https://registry.npmjs.org/@types/node/-/node-16.7.10.tgz", "integrity": "sha512-S63Dlv4zIPb8x6MMTgDq5WWRJQe56iBEY0O3SOFA9JrRienkOVDXSXBjjJw6HTNQYSE2JI6GMCR6LVbIMHJVvA==", "dev": true }, - "@types/parse-json": { + "node_modules/@types/parse-json": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", "dev": true }, - "@types/q": { + "node_modules/@types/q": { "version": "0.0.32", "resolved": "https://registry.npmjs.org/@types/q/-/q-0.0.32.tgz", "integrity": "sha1-vShOV8hPEyXacCur/IKlMoGQwMU=", "dev": true }, - "@types/selenium-webdriver": { + "node_modules/@types/selenium-webdriver": { "version": "3.0.19", "resolved": "https://registry.npmjs.org/@types/selenium-webdriver/-/selenium-webdriver-3.0.19.tgz", "integrity": "sha512-OFUilxQg+rWL2FMxtmIgCkUDlJB6pskkpvmew7yeXfzzsOBb5rc+y2+DjHm+r3r1ZPPcJefK3DveNSYWGiy68g==", "dev": true }, - "@types/source-list-map": { + "node_modules/@types/source-list-map": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/@types/source-list-map/-/source-list-map-0.1.2.tgz", "integrity": "sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA==", "dev": true }, - "@types/webpack-sources": { + "node_modules/@types/webpack-sources": { "version": "0.1.9", "resolved": "https://registry.npmjs.org/@types/webpack-sources/-/webpack-sources-0.1.9.tgz", "integrity": "sha512-bvzMnzqoK16PQIC8AYHNdW45eREJQMd6WG/msQWX5V2+vZmODCOPb4TJcbgRljTZZTwTM4wUMcsI8FftNA7new==", "dev": true, - "requires": { + "dependencies": { "@types/node": "*", "@types/source-list-map": "*", "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } } }, - "@webassemblyjs/ast": { + "node_modules/@types/webpack-sources/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@webassemblyjs/ast": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/helper-numbers": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1" } }, - "@webassemblyjs/floating-point-hex-parser": { + "node_modules/@webassemblyjs/floating-point-hex-parser": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", "dev": true }, - "@webassemblyjs/helper-api-error": { + "node_modules/@webassemblyjs/helper-api-error": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", "dev": true }, - "@webassemblyjs/helper-buffer": { + "node_modules/@webassemblyjs/helper-buffer": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", "dev": true }, - "@webassemblyjs/helper-numbers": { + "node_modules/@webassemblyjs/helper-numbers": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.11.1", "@webassemblyjs/helper-api-error": "1.11.1", "@xtuc/long": "4.2.2" } }, - "@webassemblyjs/helper-wasm-bytecode": { + "node_modules/@webassemblyjs/helper-wasm-bytecode": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", "dev": true }, - "@webassemblyjs/helper-wasm-section": { + "node_modules/@webassemblyjs/helper-wasm-section": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1", "@webassemblyjs/wasm-gen": "1.11.1" } }, - "@webassemblyjs/ieee754": { + "node_modules/@webassemblyjs/ieee754": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", "dev": true, - "requires": { + "dependencies": { "@xtuc/ieee754": "^1.2.0" } }, - "@webassemblyjs/leb128": { + "node_modules/@webassemblyjs/leb128": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", "dev": true, - "requires": { + "dependencies": { "@xtuc/long": "4.2.2" } }, - "@webassemblyjs/utf8": { + "node_modules/@webassemblyjs/utf8": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", "dev": true }, - "@webassemblyjs/wasm-edit": { + "node_modules/@webassemblyjs/wasm-edit": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1", @@ -2097,12 +2911,12 @@ "@webassemblyjs/wast-printer": "1.11.1" } }, - "@webassemblyjs/wasm-gen": { + "node_modules/@webassemblyjs/wasm-gen": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1", "@webassemblyjs/ieee754": "1.11.1", @@ -2110,24 +2924,24 @@ "@webassemblyjs/utf8": "1.11.1" } }, - "@webassemblyjs/wasm-opt": { + "node_modules/@webassemblyjs/wasm-opt": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", "@webassemblyjs/wasm-gen": "1.11.1", "@webassemblyjs/wasm-parser": "1.11.1" } }, - "@webassemblyjs/wasm-parser": { + "node_modules/@webassemblyjs/wasm-parser": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-api-error": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1", @@ -2136,394 +2950,495 @@ "@webassemblyjs/utf8": "1.11.1" } }, - "@webassemblyjs/wast-printer": { + "node_modules/@webassemblyjs/wast-printer": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@xtuc/long": "4.2.2" } }, - "@xtuc/ieee754": { + "node_modules/@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", "dev": true }, - "@xtuc/long": { + "node_modules/@xtuc/long": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", "dev": true }, - "@yarnpkg/lockfile": { + "node_modules/@yarnpkg/lockfile": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==", "dev": true }, - "abab": { + "node_modules/abab": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", "dev": true }, - "abbrev": { + "node_modules/abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "dev": true }, - "accepts": { + "node_modules/accepts": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", "dev": true, - "requires": { + "dependencies": { "mime-types": "~2.1.24", "negotiator": "0.6.2" + }, + "engines": { + "node": ">= 0.6" } }, - "acorn": { + "node_modules/acorn": { "version": "8.4.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.4.1.tgz", "integrity": "sha512-asabaBSkEKosYKMITunzX177CXxQ4Q8BSSzMTKD+FefUhipQC70gfW5SiUDhYQ3vk8G+81HqQk7Fv9OXwwn9KA==", - "dev": true + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } }, - "acorn-import-assertions": { + "node_modules/acorn-import-assertions": { "version": "1.7.6", "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.7.6.tgz", "integrity": "sha512-FlVvVFA1TX6l3lp8VjDnYYq7R1nyW6x3svAt4nDgrWQ9SBaSh9CnbwgSUTasgfNfOG5HlM1ehugCvM+hjo56LA==", - "dev": true + "dev": true, + "peerDependencies": { + "acorn": "^8" + } }, - "acorn-walk": { + "node_modules/acorn-walk": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.1.1.tgz", "integrity": "sha512-FbJdceMlPHEAWJOILDk1fXD8lnTlEIWFkqtfk+MvmL5q/qlHfN7GEHcsFZWt/Tea9jRNPWUZG4G976nqAAmU9w==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.4.0" + } }, - "adjust-sourcemap-loader": { + "node_modules/adjust-sourcemap-loader": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz", "integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==", "dev": true, - "requires": { + "dependencies": { "loader-utils": "^2.0.0", "regex-parser": "^2.2.11" + }, + "engines": { + "node": ">=8.9" } }, - "adm-zip": { + "node_modules/adm-zip": { "version": "0.4.16", "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.3.0" + } }, - "agent-base": { + "node_modules/agent-base": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", "dev": true, - "requires": { + "dependencies": { "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" } }, - "agentkeepalive": { + "node_modules/agentkeepalive": { "version": "4.1.4", "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.1.4.tgz", "integrity": "sha512-+V/rGa3EuU74H6wR04plBb7Ks10FbtUQgRj/FQOG7uUIEuaINI+AiqJR1k6t3SVNs7o7ZjIdus6706qqzVq8jQ==", "dev": true, - "requires": { + "dependencies": { "debug": "^4.1.0", "depd": "^1.1.2", "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" } }, - "aggregate-error": { + "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", "dev": true, - "requires": { + "dependencies": { "clean-stack": "^2.0.0", "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "ajv": { + "node_modules/ajv": { "version": "8.6.2", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.2.tgz", "integrity": "sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==", "dev": true, - "requires": { + "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "ajv-errors": { + "node_modules/ajv-errors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz", "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==", - "dev": true + "dev": true, + "peerDependencies": { + "ajv": ">=5.0.0" + } }, - "ajv-formats": { + "node_modules/ajv-formats": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.0.tgz", "integrity": "sha512-USH2jBb+C/hIpwD2iRjp0pe0k+MvzG0mlSn/FIdCgQhUb9ALPRjt2KIQdfZDS9r0ZIeUAg7gOu9KL0PFqGqr5Q==", "dev": true, - "requires": { + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } } }, - "alphanum-sort": { + "node_modules/alphanum-sort": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", "dev": true }, - "ansi-colors": { + "node_modules/ansi-colors": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "ansi-escapes": { + "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, - "requires": { + "dependencies": { "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "ansi-html": { + "node_modules/ansi-html": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", "integrity": "sha1-gTWEAhliqenm/QOflA0S9WynhZ4=", - "dev": true + "dev": true, + "engines": [ + "node >= 0.8.0" + ], + "bin": { + "ansi-html": "bin/ansi-html" + } }, - "ansi-regex": { + "node_modules/ansi-regex": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "ansi-styles": { + "node_modules/ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, - "requires": { + "dependencies": { "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" } }, - "anymatch": { + "node_modules/anymatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", "dev": true, - "requires": { + "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" } }, - "app-root-path": { + "node_modules/app-root-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-3.0.0.tgz", "integrity": "sha512-qMcx+Gy2UZynHjOHOIXPNvpf+9cjvk3cWrBBK7zg4gH9+clobJRb9NGzcT7mQTcV/6Gm/1WelUtqxVXnNlrwcw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6.0.0" + } }, - "aproba": { + "node_modules/aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "dev": true }, - "are-we-there-yet": { + "node_modules/are-we-there-yet": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", "dev": true, - "requires": { + "dependencies": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" - }, + } + }, + "node_modules/are-we-there-yet/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, "dependencies": { - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/are-we-there-yet/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" } }, - "arg": { + "node_modules/arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true }, - "argparse": { + "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - }, "dependencies": { - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - } + "sprintf-js": "~1.0.2" } }, - "aria-query": { + "node_modules/argparse/node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "node_modules/aria-query": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-3.0.0.tgz", "integrity": "sha1-ZbP8wcoRVajJrmTW7uKX8V1RM8w=", "dev": true, - "requires": { + "dependencies": { "ast-types-flow": "0.0.7", "commander": "^2.11.0" } }, - "arr-diff": { + "node_modules/arr-diff": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "arr-flatten": { + "node_modules/arr-flatten": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "arr-union": { + "node_modules/arr-union": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "array-flatten": { + "node_modules/array-flatten": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", "dev": true }, - "array-union": { + "node_modules/array-union": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "array-uniq": { + "node_modules/array-uniq": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "array-unique": { + "node_modules/array-unique": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "arrify": { + "node_modules/arrify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "asn1": { + "node_modules/asn1": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", "dev": true, - "requires": { + "dependencies": { "safer-buffer": "~2.1.0" } }, - "assert-plus": { + "node_modules/assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8" + } }, - "assign-symbols": { + "node_modules/assign-symbols": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "ast-types-flow": { + "node_modules/ast-types-flow": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", "integrity": "sha1-9wtzXGvKGlycItmCw+Oef+ujva0=", "dev": true }, - "async": { + "node_modules/async": { "version": "2.6.4", "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", "dev": true, - "requires": { + "dependencies": { "lodash": "^4.17.14" } }, - "async-each": { + "node_modules/async-each": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz", "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==", "dev": true }, - "async-limiter": { + "node_modules/async-limiter": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==", "dev": true }, - "asynckit": { + "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", "dev": true }, - "atob": { + "node_modules/atob": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", - "dev": true + "dev": true, + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } }, - "autoprefixer": { + "node_modules/autoprefixer": { "version": "9.8.6", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.6.tgz", "integrity": "sha512-XrvP4VVHdRBCdX1S3WXVD8+RyG9qeb1D5Sn1DeLiG2xfSpzellk5k54xbUERJ3M5DggQxes39UGOTP8CFrEGbg==", "dev": true, - "requires": { + "dependencies": { "browserslist": "^4.12.0", "caniuse-lite": "^1.0.30001109", "colorette": "^1.2.1", @@ -2532,149 +3447,191 @@ "postcss": "^7.0.32", "postcss-value-parser": "^4.1.0" }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "funding": { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + }, + "node_modules/autoprefixer/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" } }, - "aws-sign2": { + "node_modules/autoprefixer/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/autoprefixer/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true + "dev": true, + "engines": { + "node": "*" + } }, - "aws4": { + "node_modules/aws4": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", "dev": true }, - "axobject-query": { + "node_modules/axobject-query": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.0.2.tgz", "integrity": "sha512-MCeek8ZH7hKyO1rWUbKNQBbl4l2eY0ntk7OGi+q0RlafrCnfPxC06WZA+uebCfmYp4mNU9jRBP1AhGyf8+W3ww==", "dev": true, - "requires": { + "dependencies": { "ast-types-flow": "0.0.7" } }, - "babel-loader": { + "node_modules/babel-loader": { "version": "8.2.2", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.2.2.tgz", "integrity": "sha512-JvTd0/D889PQBtUXJ2PXaKU/pjZDMtHA9V2ecm+eNRmmBCMR09a+fmpGTNwnJtFmFl5Ei7Vy47LjBb+L0wQ99g==", "dev": true, - "requires": { + "dependencies": { "find-cache-dir": "^3.3.1", "loader-utils": "^1.4.0", "make-dir": "^3.1.0", "schema-utils": "^2.6.5" }, + "engines": { + "node": ">= 8.9" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "webpack": ">=2" + } + }, + "node_modules/babel-loader/node_modules/json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, "dependencies": { - "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - }, - "loader-utils": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", - "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", - "dev": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^1.0.1" - } - } + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/babel-loader/node_modules/loader-utils": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", + "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^1.0.1" + }, + "engines": { + "node": ">=4.0.0" } }, - "babel-plugin-dynamic-import-node": { + "node_modules/babel-plugin-dynamic-import-node": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", "dev": true, - "requires": { + "dependencies": { "object.assign": "^4.1.0" } }, - "babel-plugin-polyfill-corejs2": { + "node_modules/babel-plugin-polyfill-corejs2": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.2.tgz", "integrity": "sha512-kISrENsJ0z5dNPq5eRvcctITNHYXWOA4DUZRFYCz3jYCcvTb/A546LIddmoGNMVYg2U38OyFeNosQwI9ENTqIQ==", "dev": true, - "requires": { + "dependencies": { "@babel/compat-data": "^7.13.11", "@babel/helper-define-polyfill-provider": "^0.2.2", "semver": "^6.1.1" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "babel-plugin-polyfill-corejs3": { + "node_modules/babel-plugin-polyfill-corejs3": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.4.tgz", "integrity": "sha512-z3HnJE5TY/j4EFEa/qpQMSbcUJZ5JQi+3UFjXzn6pQCmIKc5Ug5j98SuYyH+m4xQnvKlMDIW4plLfgyVnd0IcQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-define-polyfill-provider": "^0.2.2", "core-js-compat": "^3.14.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "babel-plugin-polyfill-regenerator": { + "node_modules/babel-plugin-polyfill-regenerator": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.2.tgz", "integrity": "sha512-Goy5ghsc21HgPDFtzRkSirpZVW35meGoTmTOb2bxqdl60ghub4xOidgNTHaZfQ2FaxQsKmwvXtOAkcIS4SMBWg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-define-polyfill-provider": "^0.2.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "balanced-match": { + "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, - "base": { + "node_modules/base": { "version": "0.11.2", "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", "dev": true, - "requires": { + "dependencies": { "cache-base": "^1.0.1", "class-utils": "^0.3.5", "component-emitter": "^1.2.1", @@ -2683,98 +3640,134 @@ "mixin-deep": "^1.2.0", "pascalcase": "^0.1.1" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/base/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - } + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "base64-js": { + "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "base64id": { + "node_modules/base64id": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", - "dev": true + "dev": true, + "engines": { + "node": "^4.5.0 || >= 5.9" + } }, - "batch": { + "node_modules/batch": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", "dev": true }, - "bcrypt-pbkdf": { + "node_modules/bcrypt-pbkdf": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", "dev": true, - "requires": { + "dependencies": { "tweetnacl": "^0.14.3" } }, - "big.js": { + "node_modules/big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "dev": true + "dev": true, + "engines": { + "node": "*" + } }, - "bignumber.js": { + "node_modules/bignumber.js": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-4.1.0.tgz", - "integrity": "sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA==" + "integrity": "sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA==", + "engines": { + "node": "*" + } }, - "binary-extensions": { + "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "bindings": { + "node_modules/bindings": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", "dev": true, "optional": true, - "requires": { + "dependencies": { "file-uri-to-path": "1.0.0" } }, - "bl": { + "node_modules/bl": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", "dev": true, - "requires": { + "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", "readable-stream": "^3.4.0" } }, - "blocking-proxy": { + "node_modules/blocking-proxy": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/blocking-proxy/-/blocking-proxy-1.0.1.tgz", "integrity": "sha512-KE8NFMZr3mN2E0HcvCgRtX7DjhiIQrwle+nSVJVC/yqFb9+xznHl2ZcoBp2L9qzkI4t4cBFJ1efXF8Dwi132RA==", "dev": true, - "requires": { + "dependencies": { "minimist": "^1.2.0" + }, + "bin": { + "blocking-proxy": "built/lib/bin.js" + }, + "engines": { + "node": ">=6.9.x" } }, - "body-parser": { + "node_modules/body-parser": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", "dev": true, - "requires": { + "dependencies": { "bytes": "3.1.0", "content-type": "~1.0.4", "debug": "2.6.9", @@ -2786,30 +3779,31 @@ "raw-body": "2.4.0", "type-is": "~1.6.17" }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } + "ms": "2.0.0" } }, - "bonjour": { + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/bonjour": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", "integrity": "sha1-jokKGD2O6aI5OzhExpGkK897yfU=", "dev": true, - "requires": { + "dependencies": { "array-flatten": "^2.1.0", "deep-equal": "^1.0.1", "dns-equal": "^1.0.0", @@ -2818,134 +3812,179 @@ "multicast-dns-service-types": "^1.1.0" } }, - "boolbase": { + "node_modules/boolbase": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", "dev": true }, - "bootstrap": { + "node_modules/bootstrap": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.6.0.tgz", - "integrity": "sha512-Io55IuQY3kydzHtbGvQya3H+KorS/M9rSNyfCGCg9WZ4pyT/lCxIlpJgG1GXW/PswzC84Tr2fBYi+7+jFVQQBw==" + "integrity": "sha512-Io55IuQY3kydzHtbGvQya3H+KorS/M9rSNyfCGCg9WZ4pyT/lCxIlpJgG1GXW/PswzC84Tr2fBYi+7+jFVQQBw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + }, + "peerDependencies": { + "jquery": "1.9.1 - 3", + "popper.js": "^1.16.1" + } }, - "brace-expansion": { + "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "requires": { + "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, - "braces": { + "node_modules/braces": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, - "requires": { + "dependencies": { "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" } }, - "browserslist": { + "node_modules/browserslist": { "version": "4.16.8", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.8.tgz", "integrity": "sha512-sc2m9ohR/49sWEbPj14ZSSZqp+kbi16aLao42Hmn3Z8FpjuMaq2xCA2l4zl9ITfyzvnvyE0hcg62YkIGKxgaNQ==", "dev": true, - "requires": { + "dependencies": { "caniuse-lite": "^1.0.30001251", "colorette": "^1.3.0", "electron-to-chromium": "^1.3.811", "escalade": "^3.1.1", "node-releases": "^1.1.75" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" } }, - "browserstack": { + "node_modules/browserstack": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/browserstack/-/browserstack-1.6.1.tgz", "integrity": "sha512-GxtFjpIaKdbAyzHfFDKixKO8IBT7wR3NjbzrGc78nNs/Ciys9wU3/nBtsqsWv5nDSrdI5tz0peKuzCPuNXNUiw==", "dev": true, - "requires": { + "dependencies": { "https-proxy-agent": "^2.2.1" + } + }, + "node_modules/browserstack/node_modules/agent-base": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", + "dev": true, + "dependencies": { + "es6-promisify": "^5.0.0" }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/browserstack/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, "dependencies": { - "agent-base": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", - "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", - "dev": true, - "requires": { - "es6-promisify": "^5.0.0" - } - }, - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "https-proxy-agent": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", - "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", - "dev": true, - "requires": { - "agent-base": "^4.3.0", - "debug": "^3.1.0" - } - } + "ms": "^2.1.1" + } + }, + "node_modules/browserstack/node_modules/https-proxy-agent": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", + "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", + "dev": true, + "dependencies": { + "agent-base": "^4.3.0", + "debug": "^3.1.0" + }, + "engines": { + "node": ">= 4.5.0" } }, - "buffer": { + "node_modules/buffer": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "dev": true, - "requires": { + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" } }, - "buffer-from": { + "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, - "buffer-indexof": { + "node_modules/buffer-indexof": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==", "dev": true }, - "builtin-modules": { + "node_modules/builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "builtins": { + "node_modules/builtins": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", "integrity": "sha1-y5T662HIaWRR2zZTThQi+U8K7og=", "dev": true }, - "bytes": { + "node_modules/bytes": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "cacache": { + "node_modules/cacache": { "version": "15.2.0", "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.2.0.tgz", "integrity": "sha512-uKoJSHmnrqXgthDFx/IU6ED/5xd+NNGe+Bb+kLZy7Ku4P+BaiWEUflAKPZ7eAzsYGcsAGASJZsybXp+quEcHTw==", "dev": true, - "requires": { + "dependencies": { "@npmcli/move-file": "^1.0.1", "chownr": "^2.0.0", "fs-minipass": "^2.0.0", @@ -2963,14 +4002,17 @@ "ssri": "^8.0.1", "tar": "^6.0.2", "unique-filename": "^1.1.1" + }, + "engines": { + "node": ">= 10" } }, - "cache-base": { + "node_modules/cache-base": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", "dev": true, - "requires": { + "dependencies": { "collection-visit": "^1.0.0", "component-emitter": "^1.2.1", "get-value": "^2.0.6", @@ -2980,274 +4022,361 @@ "to-object-path": "^0.3.0", "union-value": "^1.0.0", "unset-value": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "call-bind": { + "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", "dev": true, - "requires": { + "dependencies": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "callsites": { + "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "camelcase": { + "node_modules/camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "caniuse-api": { + "node_modules/caniuse-api": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", "dev": true, - "requires": { + "dependencies": { "browserslist": "^4.0.0", "caniuse-lite": "^1.0.0", "lodash.memoize": "^4.1.2", "lodash.uniq": "^4.5.0" } }, - "caniuse-lite": { + "node_modules/caniuse-lite": { "version": "1.0.30001252", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001252.tgz", "integrity": "sha512-I56jhWDGMtdILQORdusxBOH+Nl/KgQSdDmpJezYddnAkVOmnoU8zwjTV9xAjMIYxr0iPreEAVylCGcmHCjfaOw==", - "dev": true + "dev": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + } }, - "canonical-path": { + "node_modules/canonical-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/canonical-path/-/canonical-path-1.0.0.tgz", "integrity": "sha512-feylzsbDxi1gPZ1IjystzIQZagYYLvfKrSuygUCgf7z6x790VEzze5QEkdSV1U58RA7Hi0+v6fv4K54atOzATg==", "dev": true }, - "caseless": { + "node_modules/caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", "dev": true }, - "cbor": { + "node_modules/cbor": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/cbor/-/cbor-3.0.3.tgz", "integrity": "sha512-+UY2FhD8w4GCp8QzP2a3eW0NRTFh2BaXn6t/sVYtGzKJAl0LL8nwma7qzIwmojq7jMF94X5DVfBUeIj8BBHBqA==", - "requires": { + "dependencies": { "bignumber.js": "^4.0", "commander": "^2.11", "json-text-sequence": "^0.1", "nofilter": "^0.0.3" + }, + "bin": { + "cbor2comment": "bin/cbor2comment", + "cbor2diag": "bin/cbor2diag", + "cbor2json": "bin/cbor2json", + "json2cbor": "bin/json2cbor" + }, + "engines": { + "node": ">=4" } }, - "cbor-js": { + "node_modules/cbor-js": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/cbor-js/-/cbor-js-0.1.0.tgz", "integrity": "sha1-yAzmEg84fo+qdDcN/aIdlluPx/k=" }, - "chalk": { + "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, - "requires": { + "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" } }, - "chardet": { + "node_modules/chardet": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", "dev": true }, - "chokidar": { + "node_modules/chokidar": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", "integrity": "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==", "dev": true, - "requires": { + "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", - "fsevents": "~2.3.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, - "chownr": { + "node_modules/chownr": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + } }, - "chrome-trace-event": { + "node_modules/chrome-trace-event": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.0" + } }, - "circular-dependency-plugin": { + "node_modules/circular-dependency-plugin": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/circular-dependency-plugin/-/circular-dependency-plugin-5.2.2.tgz", "integrity": "sha512-g38K9Cm5WRwlaH6g03B9OEz/0qRizI+2I7n+Gz+L5DxXJAPAiWQvwlYNm1V1jkdpUv95bOe/ASm2vfi/G560jQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.0.0" + }, + "peerDependencies": { + "webpack": ">=4.0.1" + } }, - "class-utils": { + "node_modules/class-utils": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", "dev": true, - "requires": { + "dependencies": { "arr-union": "^3.1.0", "define-property": "^0.2.5", "isobject": "^3.0.0", "static-extend": "^0.1.1" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - } - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "clean-stack": { + "node_modules/clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "cli-cursor": { + "node_modules/cli-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", "dev": true, - "requires": { + "dependencies": { "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" } }, - "cli-spinners": { + "node_modules/cli-spinners": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.0.tgz", "integrity": "sha512-t+4/y50K/+4xcCRosKkA7W4gTr1MySvLV0q+PxmG7FJ5g+66ChKurYjxBCjHggHH3HA5Hh9cy+lcUGWDqVH+4Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "cli-width": { + "node_modules/cli-width": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 10" + } }, - "cliui": { + "node_modules/cliui": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, - "requires": { + "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^7.0.0" } }, - "clone": { + "node_modules/clone": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8" + } }, - "clone-deep": { + "node_modules/clone-deep": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", "dev": true, - "requires": { + "dependencies": { "is-plain-object": "^2.0.4", "kind-of": "^6.0.2", "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "code-point-at": { + "node_modules/code-point-at": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "codelyzer": { + "node_modules/codelyzer": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/codelyzer/-/codelyzer-6.0.2.tgz", "integrity": "sha512-v3+E0Ucu2xWJMOJ2fA/q9pDT/hlxHftHGPUay1/1cTgyPV5JTHFdO9hqo837Sx2s9vKBMTt5gO+lhF95PO6J+g==", "dev": true, - "requires": { + "dependencies": { "@angular/compiler": "9.0.0", "@angular/core": "9.0.0", "app-root-path": "^3.0.0", @@ -3263,137 +4392,166 @@ "tslib": "^1.10.0", "zone.js": "~0.10.3" }, + "peerDependencies": { + "@angular/compiler": ">=2.3.1 <13.0.0 || ^12.0.0-next || ^12.1.0-next || ^12.2.0-next", + "@angular/core": ">=2.3.1 <13.0.0 || ^12.0.0-next || ^12.1.0-next || ^12.2.0-next", + "tslint": "^5.0.0 || ^6.0.0" + } + }, + "node_modules/codelyzer/node_modules/@angular/compiler": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-9.0.0.tgz", + "integrity": "sha512-ctjwuntPfZZT2mNj2NDIVu51t9cvbhl/16epc5xEwyzyDt76pX9UgwvY+MbXrf/C/FWwdtmNtfP698BKI+9leQ==", + "dev": true, + "peerDependencies": { + "tslib": "^1.10.0" + } + }, + "node_modules/codelyzer/node_modules/@angular/core": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-9.0.0.tgz", + "integrity": "sha512-6Pxgsrf0qF9iFFqmIcWmjJGkkCaCm6V5QNnxMy2KloO3SDq6QuMVRbN9RtC8Urmo25LP+eZ6ZgYqFYpdD8Hd9w==", + "dev": true, + "peerDependencies": { + "rxjs": "^6.5.3", + "tslib": "^1.10.0", + "zone.js": "~0.10.2" + } + }, + "node_modules/codelyzer/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, "dependencies": { - "@angular/compiler": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-9.0.0.tgz", - "integrity": "sha512-ctjwuntPfZZT2mNj2NDIVu51t9cvbhl/16epc5xEwyzyDt76pX9UgwvY+MbXrf/C/FWwdtmNtfP698BKI+9leQ==", - "dev": true - }, - "@angular/core": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-9.0.0.tgz", - "integrity": "sha512-6Pxgsrf0qF9iFFqmIcWmjJGkkCaCm6V5QNnxMy2KloO3SDq6QuMVRbN9RtC8Urmo25LP+eZ6ZgYqFYpdD8Hd9w==", - "dev": true - }, - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "zone.js": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.10.3.tgz", - "integrity": "sha512-LXVLVEq0NNOqK/fLJo3d0kfzd4sxwn2/h67/02pjCjfKDxgx1i9QqpvtHD8CrBnSSwMw5+dy11O7FRX5mkO7Cg==", - "dev": true - } + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/codelyzer/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "codemirror": { + "node_modules/codelyzer/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/codelyzer/node_modules/zone.js": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.10.3.tgz", + "integrity": "sha512-LXVLVEq0NNOqK/fLJo3d0kfzd4sxwn2/h67/02pjCjfKDxgx1i9QqpvtHD8CrBnSSwMw5+dy11O7FRX5mkO7Cg==", + "dev": true + }, + "node_modules/codemirror": { "version": "5.62.3", "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.62.3.tgz", "integrity": "sha512-zZAyOfN8TU67ngqrxhOgtkSAGV9jSpN1snbl8elPtnh9Z5A11daR405+dhLzLnuXrwX0WCShWlybxPN3QC/9Pg==" }, - "collection-visit": { + "node_modules/collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", "dev": true, - "requires": { + "dependencies": { "map-visit": "^1.0.0", "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "color-convert": { + "node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, - "requires": { + "dependencies": { "color-name": "1.1.3" } }, - "color-name": { + "node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, - "colord": { + "node_modules/colord": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/colord/-/colord-2.7.0.tgz", "integrity": "sha512-pZJBqsHz+pYyw3zpX6ZRXWoCHM1/cvFikY9TV8G3zcejCaKE0lhankoj8iScyrrePA8C7yJ5FStfA9zbcOnw7Q==", "dev": true }, - "colorette": { + "node_modules/colorette": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.3.0.tgz", "integrity": "sha512-ecORCqbSFP7Wm8Y6lyqMJjexBQqXSF7SSeaTyGGphogUjBlFP9m9o08wy86HL2uB7fMTxtOUzLMk7ogKcxMg1w==", "dev": true }, - "colors": { + "node_modules/colors": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.1.90" + } }, - "combined-stream": { + "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, - "requires": { + "dependencies": { "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" } }, - "commander": { + "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, - "commondir": { + "node_modules/commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", "dev": true }, - "component-emitter": { + "node_modules/component-emitter": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", "dev": true }, - "compressible": { + "node_modules/compressible": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", "dev": true, - "requires": { + "dependencies": { "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" } }, - "compression": { + "node_modules/compression": { "version": "1.7.4", "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", "dev": true, - "requires": { + "dependencies": { "accepts": "~1.3.5", "bytes": "3.0.0", "compressible": "~2.0.16", @@ -3402,134 +4560,154 @@ "safe-buffer": "5.1.2", "vary": "~1.1.2" }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } + "ms": "2.0.0" } }, - "concat-map": { + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, - "connect": { + "node_modules/connect": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", "dev": true, - "requires": { + "dependencies": { "debug": "2.6.9", "finalhandler": "1.1.2", "parseurl": "~1.3.3", "utils-merge": "1.0.1" }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } + "engines": { + "node": ">= 0.10.0" } }, - "connect-history-api-fallback": { + "node_modules/connect-history-api-fallback": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/connect/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/connect/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, - "console-control-strings": { + "node_modules/console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", "dev": true }, - "content-disposition": { + "node_modules/content-disposition": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", "dev": true, - "requires": { + "dependencies": { "safe-buffer": "5.1.2" + }, + "engines": { + "node": ">= 0.6" } }, - "content-type": { + "node_modules/content-type": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "convert-source-map": { + "node_modules/convert-source-map": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", "dev": true, - "requires": { + "dependencies": { "safe-buffer": "~5.1.1" } }, - "cookie": { + "node_modules/cookie": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "cookie-signature": { + "node_modules/cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", "dev": true }, - "copy-anything": { + "node_modules/copy-anything": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.3.tgz", "integrity": "sha512-GK6QUtisv4fNS+XcI7shX0Gx9ORg7QqIznyfho79JTnX1XhLiyZHfftvGiziqzRiEi/Bjhgpi+D2o7HxJFPnDQ==", "dev": true, - "requires": { + "dependencies": { "is-what": "^3.12.0" } }, - "copy-descriptor": { + "node_modules/copy-descriptor": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "copy-webpack-plugin": { + "node_modules/copy-webpack-plugin": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-9.0.1.tgz", "integrity": "sha512-14gHKKdYIxF84jCEgPgYXCPpldbwpxxLbCmA7LReY7gvbaT555DgeBWBgBZM116tv/fO6RRJrsivBqRyRlukhw==", "dev": true, - "requires": { + "dependencies": { "fast-glob": "^3.2.5", "glob-parent": "^6.0.0", "globby": "^11.0.3", @@ -3538,329 +4716,438 @@ "schema-utils": "^3.0.0", "serialize-javascript": "^6.0.0" }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true - }, - "glob-parent": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.1.tgz", - "integrity": "sha512-kEVjS71mQazDBHKcsq4E9u/vUzaLcw1A8EtUeydawvIWQCJM0qQ08G1H7/XTjFUulla6XQiDOG6MXSaG0HDKog==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - } + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" } }, - "core-js": { - "version": "3.16.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.16.0.tgz", - "integrity": "sha512-5+5VxRFmSf97nM8Jr2wzOwLqRo6zphH2aX+7KsAUONObyzakDNq2G/bgbhinxB4PoV9L3aXQYhiDKyIKWd2c8g==", - "dev": true - }, - "core-js-compat": { - "version": "3.17.2", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.17.2.tgz", - "integrity": "sha512-lHnt7A1Oqplebl5i0MrQyFv/yyEzr9p29OjlkcsFRDDgHwwQyVckfRGJ790qzXhkwM8ba4SFHHa2sO+T5f1zGg==", + "node_modules/copy-webpack-plugin/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, - "requires": { - "browserslist": "^4.16.8", - "semver": "7.0.0" - }, "dependencies": { - "semver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", - "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", - "dev": true - } - } + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/copy-webpack-plugin/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/copy-webpack-plugin/node_modules/glob-parent": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.1.tgz", + "integrity": "sha512-kEVjS71mQazDBHKcsq4E9u/vUzaLcw1A8EtUeydawvIWQCJM0qQ08G1H7/XTjFUulla6XQiDOG6MXSaG0HDKog==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/copy-webpack-plugin/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/copy-webpack-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/core-js": { + "version": "3.16.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.16.0.tgz", + "integrity": "sha512-5+5VxRFmSf97nM8Jr2wzOwLqRo6zphH2aX+7KsAUONObyzakDNq2G/bgbhinxB4PoV9L3aXQYhiDKyIKWd2c8g==", + "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", + "dev": true, + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } }, - "core-util-is": { + "node_modules/core-js-compat": { + "version": "3.17.2", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.17.2.tgz", + "integrity": "sha512-lHnt7A1Oqplebl5i0MrQyFv/yyEzr9p29OjlkcsFRDDgHwwQyVckfRGJ790qzXhkwM8ba4SFHHa2sO+T5f1zGg==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.8", + "semver": "7.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-compat/node_modules/semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, - "cors": { + "node_modules/cors": { "version": "2.8.5", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", "dev": true, - "requires": { + "dependencies": { "object-assign": "^4", "vary": "^1" + }, + "engines": { + "node": ">= 0.10" } }, - "cosmiconfig": { + "node_modules/cosmiconfig": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", "dev": true, - "requires": { + "dependencies": { "@types/parse-json": "^4.0.0", "import-fresh": "^3.2.1", "parse-json": "^5.0.0", "path-type": "^4.0.0", "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" } }, - "create-require": { + "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", "dev": true }, - "critters": { + "node_modules/critters": { "version": "0.0.10", "resolved": "https://registry.npmjs.org/critters/-/critters-0.0.10.tgz", "integrity": "sha512-p5VKhP1803+f+0Jq5P03w1SbiHtpAKm+1EpJHkiPxQPq0Vu9QLZHviJ02GRrWi0dlcJqrmzMWInbwp4d22RsGw==", "dev": true, - "requires": { + "dependencies": { "chalk": "^4.1.0", "css": "^3.0.0", "parse5": "^6.0.1", "parse5-htmlparser2-tree-adapter": "^6.0.1", "pretty-bytes": "^5.3.0" + } + }, + "node_modules/critters/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/critters/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/critters/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/critters/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/critters/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/critters/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "cross-spawn": { + "node_modules/cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "dev": true, - "requires": { + "dependencies": { "nice-try": "^1.0.4", "path-key": "^2.0.1", "semver": "^5.5.0", "shebang-command": "^1.2.0", "which": "^1.2.9" }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - } + "engines": { + "node": ">=4.8" + } + }, + "node_modules/cross-spawn/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" } }, - "css": { + "node_modules/css": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", "dev": true, - "requires": { + "dependencies": { "inherits": "^2.0.4", "source-map": "^0.6.1", "source-map-resolve": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } } }, - "css-blank-pseudo": { + "node_modules/css-blank-pseudo": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-0.1.4.tgz", "integrity": "sha512-LHz35Hr83dnFeipc7oqFDmsjHdljj3TQtxGGiNWSOsTLIAubSm4TEz8qCaKFpk7idaQ1GfWscF4E6mgpBysA1w==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.5" }, + "bin": { + "css-blank-pseudo": "cli.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/css-blank-pseudo/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" } }, - "css-color-names": { + "node_modules/css-blank-pseudo/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-blank-pseudo/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/css-color-names": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-1.0.1.tgz", "integrity": "sha512-/loXYOch1qU1biStIFsHH8SxTmOseh1IJqFvy8IujXOm1h+QjUdDhkzOrR5HG8K8mlxREj0yfi8ewCHx0eMxzA==", - "dev": true + "dev": true, + "engines": { + "node": "*" + } }, - "css-declaration-sorter": { + "node_modules/css-declaration-sorter": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.1.1.tgz", "integrity": "sha512-BZ1aOuif2Sb7tQYY1GeCjG7F++8ggnwUkH5Ictw0mrdpqpEd+zWmcPdstnH2TItlb74FqR0DrVEieon221T/1Q==", "dev": true, - "requires": { + "dependencies": { "timsort": "^0.3.0" + }, + "engines": { + "node": ">= 10" + }, + "peerDependencies": { + "postcss": "^8.0.9" } }, - "css-has-pseudo": { + "node_modules/css-has-pseudo": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-0.10.0.tgz", "integrity": "sha512-Z8hnfsZu4o/kt+AuFzeGpLVhFOGO9mluyHBaA2bA8aCGTwah5sT3WV/fTHH8UNZUytOIImuGPrl/prlb4oX4qQ==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.6", "postcss-selector-parser": "^5.0.0-rc.4" }, + "bin": { + "css-has-pseudo": "cli.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/css-has-pseudo/node_modules/cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/css-has-pseudo/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true - }, - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "requires": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/css-has-pseudo/node_modules/postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "dependencies": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/css-has-pseudo/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "css-loader": { + "node_modules/css-has-pseudo/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/css-loader": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.2.0.tgz", "integrity": "sha512-/rvHfYRjIpymZblf49w8jYcRo2y9gj6rV8UroHGmBxKrIyGLokpycyKzp9OkitvqT29ZSpzJ0Ic7SpnJX3sC8g==", "dev": true, - "requires": { + "dependencies": { "icss-utils": "^5.1.0", "postcss": "^8.2.15", "postcss-modules-extract-imports": "^3.0.0", @@ -3869,14 +5156,24 @@ "postcss-modules-values": "^4.0.0", "postcss-value-parser": "^4.1.0", "semver": "^7.3.5" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" } }, - "css-minimizer-webpack-plugin": { + "node_modules/css-minimizer-webpack-plugin": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.0.2.tgz", "integrity": "sha512-B3I5e17RwvKPJwsxjjWcdgpU/zqylzK1bPVghcmpFHRL48DXiBgrtqz1BJsn68+t/zzaLp9kYAaEDvQ7GyanFQ==", "dev": true, - "requires": { + "dependencies": { "cssnano": "^5.0.6", "jest-worker": "^27.0.2", "p-limit": "^3.0.2", @@ -3885,215 +5182,305 @@ "serialize-javascript": "^6.0.0", "source-map": "^0.6.1" }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "clean-css": { + "optional": true }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "csso": { + "optional": true } } }, - "css-parse": { + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-parse": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/css-parse/-/css-parse-2.0.0.tgz", "integrity": "sha1-pGjuZnwW2BzPBcWMONKpfHgNv9Q=", "dev": true, - "requires": { + "dependencies": { "css": "^2.0.0" - }, + } + }, + "node_modules/css-parse/node_modules/css": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", + "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", + "dev": true, "dependencies": { - "css": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", - "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "source-map": "^0.6.1", - "source-map-resolve": "^0.5.2", - "urix": "^0.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-resolve": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", - "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", - "dev": true, - "requires": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - } + "inherits": "^2.0.3", + "source-map": "^0.6.1", + "source-map-resolve": "^0.5.2", + "urix": "^0.1.0" + } + }, + "node_modules/css-parse/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-parse/node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "dev": true, + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" } }, - "css-prefers-color-scheme": { + "node_modules/css-prefers-color-scheme": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-3.1.1.tgz", "integrity": "sha512-MTu6+tMs9S3EUqzmqLXEcgNRbNkkD/TGFvowpeoWJn5Vfq7FMgsmRQs9X5NXAURiOBmOxm/lLjsDNXDE6k9bhg==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.5" }, + "bin": { + "css-prefers-color-scheme": "cli.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/css-prefers-color-scheme/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" } }, - "css-select": { + "node_modules/css-prefers-color-scheme/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-prefers-color-scheme/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/css-select": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.1.3.tgz", "integrity": "sha512-gT3wBNd9Nj49rAbmtFHj1cljIAOLYSX1nZ8CB7TBO3INYckygm5B7LISU/szY//YmdiSLbJvDLOx9VnMVpMBxA==", "dev": true, - "requires": { + "dependencies": { "boolbase": "^1.0.0", "css-what": "^5.0.0", "domhandler": "^4.2.0", "domutils": "^2.6.0", "nth-check": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" } }, - "css-selector-tokenizer": { + "node_modules/css-selector-tokenizer": { "version": "0.7.3", "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.3.tgz", "integrity": "sha512-jWQv3oCEL5kMErj4wRnK/OPoBi0D+P1FR2cDCKYPaMeD2eW3/mttav8HT4hT1CKopiJI/psEULjkClhvJo4Lvg==", "dev": true, - "requires": { + "dependencies": { "cssesc": "^3.0.0", "fastparse": "^1.1.2" } }, - "css-tree": { + "node_modules/css-tree": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", "dev": true, - "requires": { + "dependencies": { "mdn-data": "2.0.14", "source-map": "^0.6.1" }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-tree/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "css-what": { + "node_modules/css-what": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.0.1.tgz", "integrity": "sha512-FYDTSHb/7KXsWICVsxdmiExPjCfRC4qRFBdVwv7Ax9hMnvMmEjP9RfxTEZ3qPZGmADDn2vAKSo9UcN1jKVYscg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "cssauron": { + "node_modules/cssauron": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/cssauron/-/cssauron-1.4.0.tgz", "integrity": "sha1-pmAt/34EqDBtwNuaVR6S6LVmKtg=", "dev": true, - "requires": { + "dependencies": { "through": "X.X.X" } }, - "cssdb": { + "node_modules/cssdb": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-4.4.0.tgz", "integrity": "sha512-LsTAR1JPEM9TpGhl/0p3nQecC2LJ0kD8X5YARu1hk/9I1gril5vDtMZyNxcEpxxDj34YNck/ucjuoUd66K03oQ==", "dev": true }, - "cssesc": { + "node_modules/cssesc": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } }, - "cssnano": { + "node_modules/cssnano": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.0.8.tgz", "integrity": "sha512-Lda7geZU0Yu+RZi2SGpjYuQz4HI4/1Y+BhdD0jL7NXAQ5larCzVn+PUGuZbDMYz904AXXCOgO5L1teSvgu7aFg==", "dev": true, - "requires": { + "dependencies": { "cssnano-preset-default": "^5.1.4", "is-resolvable": "^1.1.0", "lilconfig": "^2.0.3", "yaml": "^1.10.2" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "cssnano-preset-default": { + "node_modules/cssnano-preset-default": { "version": "5.1.4", "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.1.4.tgz", "integrity": "sha512-sPpQNDQBI3R/QsYxQvfB4mXeEcWuw0wGtKtmS5eg8wudyStYMgKOQT39G07EbW1LB56AOYrinRS9f0ig4Y3MhQ==", "dev": true, - "requires": { + "dependencies": { "css-declaration-sorter": "^6.0.3", "cssnano-utils": "^2.0.1", "postcss-calc": "^8.0.0", @@ -4123,135 +5510,185 @@ "postcss-reduce-transforms": "^5.0.1", "postcss-svgo": "^5.0.2", "postcss-unique-selectors": "^5.0.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "cssnano-utils": { + "node_modules/cssnano-utils": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-2.0.1.tgz", "integrity": "sha512-i8vLRZTnEH9ubIyfdZCAdIdgnHAUeQeByEeQ2I7oTilvP9oHO6RScpeq3GsFUVqeB8uZgOQ9pw8utofNn32hhQ==", - "dev": true + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } }, - "csso": { + "node_modules/csso": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", "dev": true, - "requires": { + "dependencies": { "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" } }, - "custom-event": { + "node_modules/custom-event": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/custom-event/-/custom-event-1.0.1.tgz", "integrity": "sha1-XQKkaFCt8bSjF5RqOSj8y1v9BCU=", "dev": true }, - "damerau-levenshtein": { + "node_modules/damerau-levenshtein": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.7.tgz", "integrity": "sha512-VvdQIPGdWP0SqFXghj79Wf/5LArmreyMsGLa6FG6iC4t3j7j5s71TrwWmT/4akbDQIqjfACkLZmjXhA7g2oUZw==", "dev": true }, - "dashdash": { + "node_modules/dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "dev": true, - "requires": { + "dependencies": { "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" } }, - "date-format": { + "node_modules/date-format": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.4.tgz", "integrity": "sha512-/jyf4rhB17ge328HJuJjAcmRtCsGd+NDeAtahRBTaK6vSPR6MO5HlrAit3Nn7dVjaa6sowW0WXt8yQtLyZQFRg==", - "dev": true + "dev": true, + "engines": { + "node": ">=4.0" + } }, - "debug": { + "node_modules/debug": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", "dev": true, - "requires": { + "dependencies": { "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "decamelize": { + "node_modules/decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "decode-uri-component": { + "node_modules/decode-uri-component": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10" + } }, - "deep-equal": { + "node_modules/deep-equal": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz", "integrity": "sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==", "dev": true, - "requires": { + "dependencies": { "is-arguments": "^1.0.4", "is-date-object": "^1.0.1", "is-regex": "^1.0.4", "object-is": "^1.0.1", "object-keys": "^1.1.1", "regexp.prototype.flags": "^1.2.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "default-gateway": { + "node_modules/default-gateway": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-4.2.0.tgz", "integrity": "sha512-h6sMrVB1VMWVrW13mSc6ia/DwYYw5MN6+exNu1OaJeFac5aSAvwM7lZ0NVfTABuSkQelr4h5oebg3KB1XPdjgA==", "dev": true, - "requires": { + "dependencies": { "execa": "^1.0.0", "ip-regex": "^2.1.0" + }, + "engines": { + "node": ">=6" } }, - "defaults": { + "node_modules/defaults": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", "dev": true, - "requires": { + "dependencies": { "clone": "^1.0.2" } }, - "define-lazy-prop": { + "node_modules/define-lazy-prop": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "define-properties": { + "node_modules/define-properties": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", "dev": true, - "requires": { + "dependencies": { "object-keys": "^1.0.12" + }, + "engines": { + "node": ">= 0.4" } }, - "define-property": { + "node_modules/define-property": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", "dev": true, - "requires": { + "dependencies": { "is-descriptor": "^1.0.2", "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "del": { + "node_modules/del": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", "dev": true, - "requires": { + "dependencies": { "globby": "^5.0.0", "is-path-cwd": "^1.0.0", "is-path-in-cwd": "^1.0.0", @@ -4260,270 +5697,318 @@ "pinkie-promise": "^2.0.0", "rimraf": "^2.2.8" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del/node_modules/array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "dependencies": { + "array-uniq": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del/node_modules/globby": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", + "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", + "dev": true, "dependencies": { - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "requires": { - "array-uniq": "^1.0.1" - } - }, - "globby": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", - "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", - "dev": true, - "requires": { - "array-union": "^1.0.1", - "arrify": "^1.0.0", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - } + "array-union": "^1.0.1", + "arrify": "^1.0.0", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" } }, - "delayed-stream": { + "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.4.0" + } }, - "delegates": { + "node_modules/delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "dev": true }, - "delimit-stream": { + "node_modules/delimit-stream": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", "integrity": "sha1-m4MZR3wOX4rrPONXrjBfwl6hzSs=" }, - "depd": { + "node_modules/depd": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "dependency-graph": { + "node_modules/dependency-graph": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6.0" + } }, - "destroy": { + "node_modules/destroy": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", "dev": true }, - "detect-node": { + "node_modules/detect-node": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", "dev": true }, - "di": { + "node_modules/di": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/di/-/di-0.0.1.tgz", "integrity": "sha1-gGZJMmzqp8qjMG112YXqJ0i6kTw=", "dev": true }, - "diff": { + "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.3.1" + } }, - "dir-glob": { + "node_modules/dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, - "requires": { + "dependencies": { "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "dns-equal": { + "node_modules/dns-equal": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=", "dev": true }, - "dns-packet": { + "node_modules/dns-packet": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz", "integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==", "dev": true, - "requires": { + "dependencies": { "ip": "^1.1.0", "safe-buffer": "^5.0.1" } }, - "dns-txt": { + "node_modules/dns-txt": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz", "integrity": "sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY=", "dev": true, - "requires": { + "dependencies": { "buffer-indexof": "^1.0.0" } }, - "dom-serialize": { + "node_modules/dom-serialize": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/dom-serialize/-/dom-serialize-2.2.1.tgz", "integrity": "sha1-ViromZ9Evl6jB29UGdzVnrQ6yVs=", "dev": true, - "requires": { + "dependencies": { "custom-event": "~1.0.0", "ent": "~2.2.0", "extend": "^3.0.0", "void-elements": "^2.0.0" } }, - "dom-serializer": { + "node_modules/dom-serializer": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", "dev": true, - "requires": { + "dependencies": { "domelementtype": "^2.0.1", "domhandler": "^4.2.0", "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" } }, - "domelementtype": { + "node_modules/domelementtype": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==", - "dev": true + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] }, - "domhandler": { + "node_modules/domhandler": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.2.tgz", "integrity": "sha512-PzE9aBMsdZO8TK4BnuJwH0QT41wgMbRzuZrHUcpYncEjmQazq8QEaBWgLG7ZyC/DAZKEgglpIA6j4Qn/HmxS3w==", "dev": true, - "requires": { + "dependencies": { "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" } }, - "domutils": { + "node_modules/domutils": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", "dev": true, - "requires": { + "dependencies": { "dom-serializer": "^1.0.1", "domelementtype": "^2.2.0", "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" } }, - "ecc-jsbn": { + "node_modules/ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", "dev": true, - "requires": { + "dependencies": { "jsbn": "~0.1.0", "safer-buffer": "^2.1.0" } }, - "echarts": { + "node_modules/echarts": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/echarts/-/echarts-5.2.1.tgz", "integrity": "sha512-OJ79b22eqRfbSV8vYmDKmA+XWfNbr0Uk/OafWcFNIGDWti2Uw9A6eVCiJLmqPa9Sk+EWL+t5v26aak0z3gxiZw==", - "requires": { + "dependencies": { "tslib": "2.3.0", "zrender": "5.2.1" - }, - "dependencies": { - "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - } } }, - "ee-first": { + "node_modules/echarts/node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" + }, + "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", "dev": true }, - "electron-to-chromium": { + "node_modules/electron-to-chromium": { "version": "1.3.830", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.830.tgz", "integrity": "sha512-gBN7wNAxV5vl1430dG+XRcQhD4pIeYeak6p6rjdCtlz5wWNwDad8jwvphe5oi1chL5MV6RNRikfffBBiFuj+rQ==", "dev": true }, - "emoji-regex": { + "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "emojis-list": { + "node_modules/emojis-list": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "dev": true + "dev": true, + "engines": { + "node": ">= 4" + } }, - "encodeurl": { + "node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "encoding": { + "node_modules/encoding": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", "dev": true, "optional": true, - "requires": { + "dependencies": { "iconv-lite": "^0.6.2" - }, + } + }, + "node_modules/encoding/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "optional": true, "dependencies": { - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "optional": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "end-of-stream": { + "node_modules/end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, - "requires": { + "dependencies": { "once": "^1.4.0" } }, - "engine.io": { + "node_modules/engine.io": { "version": "6.1.3", "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.1.3.tgz", "integrity": "sha512-rqs60YwkvWTLLnfazqgZqLa/aKo+9cueVfEi/dZ8PyGyaf8TLOxj++4QMIgeG3Gn0AhrWiFXvghsoY9L9h25GA==", "dev": true, - "requires": { + "dependencies": { "@types/cookie": "^0.4.1", "@types/cors": "^2.8.12", "@types/node": ">=10.0.0", @@ -4534,198 +6019,255 @@ "debug": "~4.3.1", "engine.io-parser": "~5.0.3", "ws": "~8.2.3" + }, + "engines": { + "node": ">=10.0.0" } }, - "engine.io-parser": { + "node_modules/engine.io-parser": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.0.3.tgz", "integrity": "sha512-BtQxwF27XUNnSafQLvDi0dQ8s3i6VgzSoQMJacpIcGNrlUdfHSKbgm3jmjCVvQluGzqwujQMPAoMai3oYSTurg==", "dev": true, - "requires": { + "dependencies": { "@socket.io/base64-arraybuffer": "~1.0.2" + }, + "engines": { + "node": ">=10.0.0" } }, - "enhanced-resolve": { + "node_modules/enhanced-resolve": { "version": "5.8.2", "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.8.2.tgz", "integrity": "sha512-F27oB3WuHDzvR2DOGNTaYy0D5o0cnrv8TeI482VM4kYgQd/FT9lUQwuNsJ0oOHtBUq7eiW5ytqzp7nBFknL+GA==", "dev": true, - "requires": { + "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" } }, - "ent": { + "node_modules/ent": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", "integrity": "sha1-6WQhkyWiHQX0RGai9obtbOX13R0=", "dev": true }, - "entities": { + "node_modules/entities": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "dev": true + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } }, - "env-paths": { + "node_modules/env-paths": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "err-code": { + "node_modules/err-code": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", "dev": true }, - "errno": { + "node_modules/errno": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", "dev": true, - "requires": { + "dependencies": { "prr": "~1.0.1" + }, + "bin": { + "errno": "cli.js" } }, - "error-ex": { + "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, - "requires": { + "dependencies": { "is-arrayish": "^0.2.1" } }, - "es-module-lexer": { + "node_modules/es-module-lexer": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.7.1.tgz", "integrity": "sha512-MgtWFl5No+4S3TmhDmCz2ObFGm6lEpTnzbQi+Dd+pw4mlTIZTmM2iAs5gRlmx5zS9luzobCSBSI90JM/1/JgOw==", "dev": true }, - "es6-promise": { + "node_modules/es6-promise": { "version": "4.2.8", "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", "dev": true }, - "es6-promisify": { + "node_modules/es6-promisify": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", "dev": true, - "requires": { + "dependencies": { "es6-promise": "^4.0.3" } }, - "esbuild": { + "node_modules/esbuild": { "version": "0.12.24", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.12.24.tgz", "integrity": "sha512-C0ibY+HsXzYB6L/pLWEiWjMpghKsIc58Q5yumARwBQsHl9DXPakW+5NI/Y9w4YXiz0PEP6XTGTT/OV4Nnsmb4A==", - "dev": true + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + } }, - "escalade": { + "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "escape-html": { + "node_modules/escape-html": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", "dev": true }, - "escape-string-regexp": { + "node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8.0" + } }, - "eslint-scope": { + "node_modules/eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, - "requires": { + "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" } }, - "esprima": { + "node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } }, - "esrecurse": { + "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, - "requires": { + "dependencies": { "estraverse": "^5.2.0" }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } + "engines": { + "node": ">=4.0" } }, - "estraverse": { + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true + "dev": true, + "engines": { + "node": ">=4.0" + } }, - "esutils": { + "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "etag": { + "node_modules/etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "eventemitter-asyncresource": { + "node_modules/eventemitter-asyncresource": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/eventemitter-asyncresource/-/eventemitter-asyncresource-1.0.0.tgz", "integrity": "sha512-39F7TBIV0G7gTelxwbEqnwhp90eqCPON1k0NwNfwhgKn4Co4ybUbj2pECcXT0B3ztRKZ7Pw1JujUUgmQJHcVAQ==", "dev": true }, - "eventemitter3": { + "node_modules/eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", "dev": true }, - "events": { + "node_modules/events": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8.x" + } }, - "eventsource": { + "node_modules/eventsource": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.1.tgz", "integrity": "sha512-qV5ZC0h7jYIAOhArFJgSfdyz6rALJyb270714o7ZtNnw2WSJ+eexhKtE0O8LYPRsHZHf2osHKZBxGPvm3kPkCA==", "dev": true, - "requires": { + "dependencies": { "original": "^1.0.0" + }, + "engines": { + "node": ">=0.12.0" } }, - "execa": { + "node_modules/execa": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", "dev": true, - "requires": { + "dependencies": { "cross-spawn": "^6.0.0", "get-stream": "^4.0.0", "is-stream": "^1.1.0", @@ -4733,20 +6275,26 @@ "p-finally": "^1.0.0", "signal-exit": "^3.0.0", "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=6" } }, - "exit": { + "node_modules/exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8.0" + } }, - "expand-brackets": { + "node_modules/expand-brackets": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", "dev": true, - "requires": { + "dependencies": { "debug": "^2.3.3", "define-property": "^0.2.5", "extend-shallow": "^2.0.1", @@ -4755,111 +6303,135 @@ "snapdragon": "^0.8.1", "to-regex": "^3.0.1" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } + "ms": "2.0.0" + } + }, + "node_modules/expand-brackets/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "express": { + "node_modules/expand-brackets/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/express": { "version": "4.17.1", "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", "dev": true, - "requires": { + "dependencies": { "accepts": "~1.3.7", "array-flatten": "1.1.1", "body-parser": "1.19.0", @@ -4891,69 +6463,79 @@ "utils-merge": "1.0.1", "vary": "~1.1.2" }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", + "dev": true + }, + "node_modules/express/node_modules/cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", - "dev": true - }, - "cookie": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", - "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } + "ms": "2.0.0" } }, - "extend": { + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", "dev": true }, - "extend-shallow": { + "node_modules/extend-shallow": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", "dev": true, - "requires": { + "dependencies": { "assign-symbols": "^1.0.0", "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "external-editor": { + "node_modules/external-editor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", "dev": true, - "requires": { + "dependencies": { "chardet": "^0.7.0", "iconv-lite": "^0.4.24", "tmp": "^0.0.33" + }, + "engines": { + "node": ">=4" } }, - "extglob": { + "node_modules/extglob": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", "dev": true, - "requires": { + "dependencies": { "array-unique": "^0.3.2", "define-property": "^1.0.0", "expand-brackets": "^2.1.4", @@ -4963,119 +6545,147 @@ "snapdragon": "^0.8.1", "to-regex": "^3.0.1" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - } + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "extsprintf": { + "node_modules/extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true + "dev": true, + "engines": [ + "node >=0.6.0" + ] }, - "fast-deep-equal": { + "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true }, - "fast-glob": { + "node_modules/fast-glob": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", "integrity": "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==", "dev": true, - "requires": { + "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8" } }, - "fast-json-stable-stringify": { + "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, - "fastparse": { + "node_modules/fastparse": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz", "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==", "dev": true }, - "fastq": { + "node_modules/fastq": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.12.0.tgz", "integrity": "sha512-VNX0QkHK3RsXVKr9KrlUv/FoTa0NdbYoHHl7uXHv2rzyHSlxjdNAKug2twd9luJxpcyNeAgf5iPPMutJO67Dfg==", "dev": true, - "requires": { + "dependencies": { "reusify": "^1.0.4" } }, - "faye-websocket": { + "node_modules/faye-websocket": { "version": "0.11.4", "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", "dev": true, - "requires": { + "dependencies": { "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" } }, - "figures": { + "node_modules/figures": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", "dev": true, - "requires": { + "dependencies": { "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "file-uri-to-path": { + "node_modules/file-uri-to-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", "dev": true, "optional": true }, - "fill-range": { + "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, - "requires": { + "dependencies": { "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "finalhandler": { + "node_modules/finalhandler": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", "dev": true, - "requires": { + "dependencies": { "debug": "2.6.9", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", @@ -5084,168 +6694,227 @@ "statuses": "~1.5.0", "unpipe": "~1.0.0" }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } + "ms": "2.0.0" } }, - "find-cache-dir": { + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/find-cache-dir": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz", "integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==", "dev": true, - "requires": { + "dependencies": { "commondir": "^1.0.1", "make-dir": "^3.0.2", "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" } }, - "find-up": { + "node_modules/find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "requires": { + "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "flatpickr": { + "node_modules/flatpickr": { "version": "4.6.9", "resolved": "https://registry.npmjs.org/flatpickr/-/flatpickr-4.6.9.tgz", "integrity": "sha512-F0azNNi8foVWKSF+8X+ZJzz8r9sE1G4hl06RyceIaLvyltKvDl6vqk9Lm/6AUUCi5HWaIjiUbk7UpeE/fOXOpw==" }, - "flatted": { + "node_modules/flatted": { "version": "3.2.5", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.5.tgz", "integrity": "sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==", "dev": true }, - "flatten": { + "node_modules/flatten": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.3.tgz", "integrity": "sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==", + "deprecated": "flatten is deprecated in favor of utility frameworks such as lodash.", "dev": true }, - "follow-redirects": { + "node_modules/follow-redirects": { "version": "1.14.8", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz", "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==", - "dev": true + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } }, - "font-awesome": { + "node_modules/font-awesome": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz", - "integrity": "sha1-j6jPBBGhoxr9B7BtKQK7n8gVoTM=" + "integrity": "sha1-j6jPBBGhoxr9B7BtKQK7n8gVoTM=", + "engines": { + "node": ">=0.10.3" + } }, - "for-in": { + "node_modules/for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "forever-agent": { + "node_modules/forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true + "dev": true, + "engines": { + "node": "*" + } }, - "form-data": { + "node_modules/form-data": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", "dev": true, - "requires": { + "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.6", "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" } }, - "forwarded": { + "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "fragment-cache": { + "node_modules/fragment-cache": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", "dev": true, - "requires": { + "dependencies": { "map-cache": "^0.2.2" + }, + "engines": { + "node": ">=0.10.0" } }, - "fresh": { + "node_modules/fresh": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "fs-extra": { + "node_modules/fs-extra": { "version": "10.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.1.tgz", "integrity": "sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag==", "dev": true, - "requires": { + "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" } }, - "fs-minipass": { + "node_modules/fs-minipass": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" } }, - "fs-monkey": { + "node_modules/fs-monkey": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==", "dev": true }, - "fs.realpath": { + "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, - "fsevents": { + "node_modules/fsevents": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, - "optional": true + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } }, - "function-bind": { + "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, - "gauge": { + "node_modules/gauge": { "version": "2.7.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "dev": true, - "requires": { + "dependencies": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", "has-unicode": "^2.0.0", @@ -5254,759 +6923,953 @@ "string-width": "^1.0.1", "strip-ansi": "^3.0.1", "wide-align": "^1.1.0" + } + }, + "node_modules/gauge/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gauge/node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "dependencies": { + "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gauge/node_modules/string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "dependencies": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gauge/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "gensync": { + "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "get-caller-file": { + "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } }, - "get-intrinsic": { + "node_modules/get-intrinsic": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", "dev": true, - "requires": { + "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", "has-symbols": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "get-stream": { + "node_modules/get-stream": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", "dev": true, - "requires": { + "dependencies": { "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "get-value": { + "node_modules/get-value": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "getpass": { + "node_modules/getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "dev": true, - "requires": { + "dependencies": { "assert-plus": "^1.0.0" } }, - "glob": { + "node_modules/glob": { "version": "7.1.7", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", "dev": true, - "requires": { + "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.0.4", "once": "^1.3.0", "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "glob-parent": { + "node_modules/glob-parent": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, - "requires": { + "dependencies": { "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" } }, - "glob-to-regexp": { + "node_modules/glob-to-regexp": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", "dev": true }, - "globals": { + "node_modules/globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "globby": { + "node_modules/globby": { "version": "11.0.4", "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", "dev": true, - "requires": { + "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", "fast-glob": "^3.1.1", "ignore": "^5.1.4", "merge2": "^1.3.0", "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "graceful-fs": { + "node_modules/graceful-fs": { "version": "4.2.8", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==", "dev": true }, - "handle-thing": { + "node_modules/handle-thing": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", "dev": true }, - "har-schema": { + "node_modules/har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "har-validator": { + "node_modules/har-validator": { "version": "5.1.5", "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "deprecated": "this library is no longer supported", "dev": true, - "requires": { + "dependencies": { "ajv": "^6.12.3", "har-schema": "^2.0.0" }, + "engines": { + "node": ">=6" + } + }, + "node_modules/har-validator/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - } + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "has": { + "node_modules/har-validator/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, - "requires": { + "dependencies": { "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" } }, - "has-ansi": { + "node_modules/has-ansi": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "dev": true, - "requires": { + "dependencies": { "ansi-regex": "^2.0.0" }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - } + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-ansi/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "has-flag": { + "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "has-symbols": { + "node_modules/has-symbols": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "has-tostringtag": { + "node_modules/has-tostringtag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", "dev": true, - "requires": { + "dependencies": { "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "has-unicode": { + "node_modules/has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "dev": true }, - "has-value": { + "node_modules/has-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", "dev": true, - "requires": { + "dependencies": { "get-value": "^2.0.6", "has-values": "^1.0.0", "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "has-values": { + "node_modules/has-values": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", "dev": true, - "requires": { + "dependencies": { "is-number": "^3.0.0", "kind-of": "^4.0.0" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, "dependencies": { - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" } }, - "hdr-histogram-js": { + "node_modules/hdr-histogram-js": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/hdr-histogram-js/-/hdr-histogram-js-2.0.1.tgz", "integrity": "sha512-uPZxl1dAFnjUFHWLZmt93vUUvtHeaBay9nVNHu38SdOjMSF/4KqJUqa1Seuj08ptU1rEb6AHvB41X8n/zFZ74Q==", "dev": true, - "requires": { + "dependencies": { "@assemblyscript/loader": "^0.10.1", "base64-js": "^1.2.0", "pako": "^1.0.3" } }, - "hdr-histogram-percentiles-obj": { + "node_modules/hdr-histogram-percentiles-obj": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/hdr-histogram-percentiles-obj/-/hdr-histogram-percentiles-obj-3.0.0.tgz", "integrity": "sha512-7kIufnBqdsBGcSZLPJwqHT3yhk1QTsSlFsVD3kx5ixH/AlgBs9yM1q6DPhXZ8f8gtdqgh7N7/5btRLpQsS2gHw==", "dev": true }, - "hosted-git-info": { + "node_modules/hosted-git-info": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", "dev": true, - "requires": { + "dependencies": { "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" } }, - "hpack.js": { + "node_modules/hpack.js": { "version": "2.1.6", "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", "integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=", "dev": true, - "requires": { + "dependencies": { "inherits": "^2.0.1", "obuf": "^1.0.0", "readable-stream": "^2.0.1", "wbuf": "^1.1.0" - }, + } + }, + "node_modules/hpack.js/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, "dependencies": { - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/hpack.js/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" } }, - "html-entities": { + "node_modules/html-entities": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.4.0.tgz", "integrity": "sha512-8nxjcBcd8wovbeKx7h3wTji4e6+rhaVuPNpMqwWgnHh+N9ToqsCs6XztWRBPQ+UtzsoMAdKZtUENoVzU/EMtZA==", "dev": true }, - "html-escaper": { + "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, - "http-cache-semantics": { + "node_modules/http-cache-semantics": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", "dev": true }, - "http-deceiver": { + "node_modules/http-deceiver": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=", "dev": true }, - "http-errors": { + "node_modules/http-errors": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", "dev": true, - "requires": { + "dependencies": { "depd": "~1.1.2", "inherits": "2.0.3", "setprototypeof": "1.1.1", "statuses": ">= 1.5.0 < 2", "toidentifier": "1.0.0" }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - } + "engines": { + "node": ">= 0.6" } }, - "http-parser-js": { + "node_modules/http-errors/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "node_modules/http-parser-js": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.3.tgz", "integrity": "sha512-t7hjvef/5HEK7RWTdUzVUhl8zkEu+LlaE0IYzdMuvbSDipxBRpOn4Uhw8ZyECEa808iVT8XCjzo6xmYt4CiLZg==", "dev": true }, - "http-proxy": { + "node_modules/http-proxy": { "version": "1.18.1", "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", "dev": true, - "requires": { + "dependencies": { "eventemitter3": "^4.0.0", "follow-redirects": "^1.0.0", "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" } }, - "http-proxy-agent": { + "node_modules/http-proxy-agent": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", "dev": true, - "requires": { + "dependencies": { "@tootallnate/once": "1", "agent-base": "6", "debug": "4" + }, + "engines": { + "node": ">= 6" } }, - "http-proxy-middleware": { + "node_modules/http-proxy-middleware": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.1.tgz", "integrity": "sha512-yHYTgWMQO8VvwNS22eLLloAkvungsKdKTLO8AJlftYIKNfJr3GK3zK0ZCfzDDGUBttdGc8xFy1mCitvNKQtC3Q==", "dev": true, - "requires": { + "dependencies": { "http-proxy": "^1.17.0", "is-glob": "^4.0.0", "lodash": "^4.17.11", "micromatch": "^3.1.10" }, - "dependencies": { - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - } + "engines": { + "node": ">=4.0.0" } }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "node_modules/http-proxy-middleware/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "https-proxy-agent": { - "version": "5.0.0", + "node_modules/http-proxy-middleware/node_modules/braces/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/http-proxy-middleware/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/http-proxy-middleware/node_modules/fill-range/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/http-proxy-middleware/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/http-proxy-middleware/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/http-proxy-middleware/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/http-proxy-middleware/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/http-proxy-middleware/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.0", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", "dev": true, - "requires": { + "dependencies": { "agent-base": "6", "debug": "4" + }, + "engines": { + "node": ">= 6" } }, - "humanize-ms": { + "node_modules/humanize-ms": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", "integrity": "sha1-xG4xWaKT9riW2ikxbYtv6Lt5u+0=", "dev": true, - "requires": { + "dependencies": { "ms": "^2.0.0" } }, - "iconv-lite": { + "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, - "requires": { + "dependencies": { "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" } }, - "icss-utils": { + "node_modules/icss-utils": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "dev": true + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } }, - "ieee754": { + "node_modules/ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "ignore": { + "node_modules/ignore": { "version": "5.1.8", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 4" + } }, - "ignore-walk": { + "node_modules/ignore-walk": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.4.tgz", "integrity": "sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==", "dev": true, - "requires": { + "dependencies": { "minimatch": "^3.0.4" } }, - "image-size": { + "node_modules/image-size": { "version": "0.5.5", "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", "integrity": "sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=", "dev": true, - "optional": true + "optional": true, + "bin": { + "image-size": "bin/image-size.js" + }, + "engines": { + "node": ">=0.10.0" + } }, - "immediate": { + "node_modules/immediate": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", "integrity": "sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=", "dev": true }, - "import-fresh": { + "node_modules/import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, - "requires": { + "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "import-local": { + "node_modules/import-local": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", "integrity": "sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ==", "dev": true, - "requires": { + "dependencies": { "pkg-dir": "^3.0.0", "resolve-cwd": "^2.0.0" }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/import-local/node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, "dependencies": { - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", - "dev": true, - "requires": { - "find-up": "^3.0.0" - } - } + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/import-local/node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/import-local/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local/node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/import-local/node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/import-local/node_modules/pkg-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "dev": true, + "dependencies": { + "find-up": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "imurmurhash": { + "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8.19" + } }, - "indent-string": { + "node_modules/indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "indexes-of": { + "node_modules/indexes-of": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", "integrity": "sha1-8w9xbI4r00bHtn0985FVZqfAVgc=", "dev": true }, - "infer-owner": { + "node_modules/infer-owner": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", "dev": true }, - "inflight": { + "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, - "requires": { + "dependencies": { "once": "^1.3.0", "wrappy": "1" } }, - "inherits": { + "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "ini": { + "node_modules/ini": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + } }, - "inquirer": { + "node_modules/inquirer": { "version": "8.1.2", "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.1.2.tgz", "integrity": "sha512-DHLKJwLPNgkfwNmsuEUKSejJFbkv0FMO9SMiQbjI3n5NQuCrSIBqP66ggqyz2a6t2qEolKrMjhQ3+W/xXgUQ+Q==", "dev": true, - "requires": { + "dependencies": { "ansi-escapes": "^4.2.1", "chalk": "^4.1.1", "cli-cursor": "^3.1.0", @@ -6022,665 +7885,854 @@ "strip-ansi": "^6.0.0", "through": "^2.3.6" }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/inquirer/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "internal-ip": { + "node_modules/inquirer/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/inquirer/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/inquirer/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/inquirer/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/inquirer/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/internal-ip": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-4.3.0.tgz", "integrity": "sha512-S1zBo1D6zcsyuC6PMmY5+55YMILQ9av8lotMx447Bq6SAgo/sDK6y6uUKmuYhW7eacnIhFfsPmCNYdDzsnnDCg==", "dev": true, - "requires": { + "dependencies": { "default-gateway": "^4.2.0", "ipaddr.js": "^1.9.0" + }, + "engines": { + "node": ">=6" } }, - "ip": { + "node_modules/ip": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", "dev": true }, - "ip-regex": { + "node_modules/ip-regex": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz", "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "ipaddr.js": { + "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.10" + } }, - "is-absolute-url": { + "node_modules/is-absolute-url": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-3.0.3.tgz", "integrity": "sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "is-accessor-descriptor": { + "node_modules/is-accessor-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, - "requires": { + "dependencies": { "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "is-arguments": { + "node_modules/is-arguments": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "is-arrayish": { + "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, - "is-binary-path": { + "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, - "requires": { + "dependencies": { "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" } }, - "is-buffer": { + "node_modules/is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, - "is-core-module": { + "node_modules/is-core-module": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.6.0.tgz", "integrity": "sha512-wShG8vs60jKfPWpF2KZRaAtvt3a20OAn7+IJ6hLPECpSABLcKtFKTTI4ZtH5QcBruBHlq+WsdHWyz0BCZW7svQ==", "dev": true, - "requires": { + "dependencies": { "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "is-data-descriptor": { + "node_modules/is-data-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, - "requires": { + "dependencies": { "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "is-date-object": { + "node_modules/is-date-object": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", "dev": true, - "requires": { + "dependencies": { "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "is-descriptor": { + "node_modules/is-descriptor": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, - "requires": { + "dependencies": { "is-accessor-descriptor": "^1.0.0", "is-data-descriptor": "^1.0.0", "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=0.10.0" } }, - "is-docker": { + "node_modules/is-docker": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "is-extendable": { + "node_modules/is-extendable": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "dev": true, - "requires": { + "dependencies": { "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" } }, - "is-extglob": { + "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "is-fullwidth-code-point": { + "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "is-glob": { + "node_modules/is-glob": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", "dev": true, - "requires": { + "dependencies": { "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "is-interactive": { + "node_modules/is-interactive": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "is-lambda": { + "node_modules/is-lambda": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", "integrity": "sha1-PZh3iZ5qU+/AFgUEzeFfgubwYdU=", "dev": true }, - "is-number": { + "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.12.0" + } }, - "is-path-cwd": { + "node_modules/is-path-cwd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "is-path-in-cwd": { + "node_modules/is-path-in-cwd": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", "dev": true, - "requires": { + "dependencies": { "is-path-inside": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "is-path-inside": { + "node_modules/is-path-inside": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", "dev": true, - "requires": { + "dependencies": { "path-is-inside": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "is-plain-object": { + "node_modules/is-plain-object": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, - "requires": { + "dependencies": { "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "is-regex": { + "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "is-resolvable": { + "node_modules/is-resolvable": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", "dev": true }, - "is-stream": { + "node_modules/is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "is-typedarray": { + "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, - "is-unicode-supported": { + "node_modules/is-unicode-supported": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "is-what": { + "node_modules/is-what": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/is-what/-/is-what-3.14.1.tgz", "integrity": "sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==", "dev": true }, - "is-windows": { + "node_modules/is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "is-wsl": { + "node_modules/is-wsl": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", "dev": true, - "requires": { + "dependencies": { "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" } }, - "isarray": { + "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, - "isbinaryfile": { + "node_modules/isbinaryfile": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.8.tgz", "integrity": "sha512-53h6XFniq77YdW+spoRrebh0mnmTxRPTlcuIArO57lmMdq4uBKFKaeTjnb92oYWrSn/LVL+LT+Hap2tFQj8V+w==", - "dev": true + "dev": true, + "engines": { + "node": ">= 8.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/gjtorikian/" + } }, - "isexe": { + "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, - "isobject": { + "node_modules/isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "isstream": { + "node_modules/isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", "dev": true }, - "istanbul-lib-coverage": { + "node_modules/istanbul-lib-coverage": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "istanbul-lib-instrument": { + "node_modules/istanbul-lib-instrument": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", "dev": true, - "requires": { + "dependencies": { "@babel/core": "^7.7.5", "@istanbuljs/schema": "^0.1.2", "istanbul-lib-coverage": "^3.0.0", "semver": "^6.3.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "istanbul-lib-report": { + "node_modules/istanbul-lib-report": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", "dev": true, - "requires": { + "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^3.0.0", "supports-color": "^7.1.0" }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "istanbul-lib-source-maps": { + "node_modules/istanbul-lib-source-maps": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", "dev": true, - "requires": { + "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", "source-map": "^0.6.1" }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "istanbul-reports": { + "node_modules/istanbul-reports": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz", "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==", "dev": true, - "requires": { + "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "jasmine": { + "node_modules/jasmine": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-2.8.0.tgz", "integrity": "sha1-awicChFXax8W3xG4AUbZHU6Lij4=", "dev": true, - "requires": { + "dependencies": { "exit": "^0.1.2", "glob": "^7.0.6", "jasmine-core": "~2.8.0" }, - "dependencies": { - "jasmine-core": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", - "integrity": "sha1-vMl5rh+f0FcB5F5S5l06XWPxok4=", - "dev": true - } + "bin": { + "jasmine": "bin/jasmine.js" } }, - "jasmine-core": { + "node_modules/jasmine-core": { "version": "3.9.0", "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.9.0.tgz", "integrity": "sha512-Tv3kVbPCGVrjsnHBZ38NsPU3sDOtNa0XmbG2baiyJqdb5/SPpDO6GVwJYtUryl6KB4q1Ssckwg612ES9Z0dreQ==", "dev": true }, - "jasmine-spec-reporter": { + "node_modules/jasmine-spec-reporter": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/jasmine-spec-reporter/-/jasmine-spec-reporter-7.0.0.tgz", "integrity": "sha512-OtC7JRasiTcjsaCBPtMO0Tl8glCejM4J4/dNuOJdA8lBjz4PmWjYQ6pzb0uzpBNAWJMDudYuj9OdXJWqM2QTJg==", "dev": true, - "requires": { + "dependencies": { "colors": "1.4.0" } }, - "jasminewd2": { + "node_modules/jasmine/node_modules/jasmine-core": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", + "integrity": "sha1-vMl5rh+f0FcB5F5S5l06XWPxok4=", + "dev": true + }, + "node_modules/jasminewd2": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/jasminewd2/-/jasminewd2-2.2.0.tgz", "integrity": "sha1-43zwsX8ZnM4jvqcbIDk5Uka07E4=", - "dev": true + "dev": true, + "engines": { + "node": ">= 6.9.x" + } }, - "jest-worker": { + "node_modules/jest-worker": { "version": "27.1.0", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.1.0.tgz", "integrity": "sha512-mO4PHb2QWLn9yRXGp7rkvXLAYuxwhq1ZYUo0LoDhg8wqvv4QizP1ZWEJOeolgbEgAWZLIEU0wsku8J+lGWfBhg==", "dev": true, - "requires": { + "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "jquery": { + "node_modules/jquery": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz", "integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==" }, - "js-tokens": { + "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true }, - "js-yaml": { + "node_modules/js-yaml": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, - "requires": { + "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "jsbn": { + "node_modules/jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", "dev": true }, - "jsesc": { + "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } }, - "json-parse-better-errors": { + "node_modules/json-parse-better-errors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", "dev": true }, - "json-parse-even-better-errors": { + "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, - "json-schema": { + "node_modules/json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", "dev": true }, - "json-schema-traverse": { + "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true }, - "json-stream-compression": { + "node_modules/json-stream-compression": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/json-stream-compression/-/json-stream-compression-0.0.2.tgz", "integrity": "sha1-/4CfIn0Gr80cD5RhWni1pfEN/9Y=", - "requires": { + "dependencies": { "cbor": "^3.0.0" + }, + "engines": { + "node": ">= 4" } }, - "json-stringify-safe": { + "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, - "json-text-sequence": { + "node_modules/json-text-sequence": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", "integrity": "sha1-py8hfcSvxGKf/1/rME3BvVGi89I=", - "requires": { + "dependencies": { "delimit-stream": "0.1.0" } }, - "json3": { + "node_modules/json3": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.3.tgz", "integrity": "sha512-c7/8mbUsKigAbLkD5B010BK4D9LZm7A1pNItkEwiUZRpIN66exu/e7YQWysGun+TRKaJp8MhemM+VkfWv42aCA==", "dev": true }, - "json5": { + "node_modules/json5": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", "dev": true, - "requires": { + "dependencies": { "minimist": "^1.2.5" + }, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" } }, - "jsonc-parser": { + "node_modules/jsonc-parser": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==", "dev": true }, - "jsonfile": { + "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "dev": true, - "requires": { - "graceful-fs": "^4.1.6", + "dependencies": { "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" } }, - "jsonparse": { + "node_modules/jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", - "dev": true + "dev": true, + "engines": [ + "node >= 0.2.0" + ] }, - "jsprim": { + "node_modules/jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", "dev": true, - "requires": { + "engines": [ + "node >=0.6.0" + ], + "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", "json-schema": "0.2.3", "verror": "1.10.0" } }, - "jszip": { + "node_modules/jszip": { "version": "3.7.1", "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.7.1.tgz", "integrity": "sha512-ghL0tz1XG9ZEmRMcEN2vt7xabrDdqHHeykgARpmZ0BiIctWxM47Vt63ZO2dnp4QYt/xJVLLy5Zv1l/xRdh2byg==", "dev": true, - "requires": { + "dependencies": { "lie": "~3.3.0", "pako": "~1.0.2", "readable-stream": "~2.3.6", "set-immediate-shim": "~1.0.1" - }, + } + }, + "node_modules/jszip/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, "dependencies": { - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/jszip/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" } }, - "karma": { + "node_modules/karma": { "version": "6.3.16", "resolved": "https://registry.npmjs.org/karma/-/karma-6.3.16.tgz", "integrity": "sha512-nEU50jLvDe5yvXqkEJRf8IuvddUkOY2x5Xc4WXHz6dxINgGDrgD2uqQWeVrJs4hbfNaotn+HQ1LZJ4yOXrL7xQ==", "dev": true, - "requires": { + "dependencies": { "body-parser": "^1.19.0", "braces": "^3.0.2", "chokidar": "^3.5.1", @@ -6706,406 +8758,545 @@ "ua-parser-js": "^0.7.30", "yargs": "^16.1.1" }, - "dependencies": { - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "tmp": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", - "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", - "dev": true, - "requires": { - "rimraf": "^3.0.0" - } - }, - "yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "requires": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - } - } + "bin": { + "karma": "bin/karma" + }, + "engines": { + "node": ">= 10" } }, - "karma-chrome-launcher": { + "node_modules/karma-chrome-launcher": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/karma-chrome-launcher/-/karma-chrome-launcher-3.1.0.tgz", "integrity": "sha512-3dPs/n7vgz1rxxtynpzZTvb9y/GIaW8xjAwcIGttLbycqoFtI7yo1NGnQi6oFTherRE+GIhCAHZC4vEqWGhNvg==", "dev": true, - "requires": { + "dependencies": { "which": "^1.2.1" } }, - "karma-coverage": { + "node_modules/karma-coverage": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/karma-coverage/-/karma-coverage-2.0.3.tgz", "integrity": "sha512-atDvLQqvPcLxhED0cmXYdsPMCQuh6Asa9FMZW1bhNqlVEhJoB9qyZ2BY1gu7D/rr5GLGb5QzYO4siQskxaWP/g==", "dev": true, - "requires": { + "dependencies": { "istanbul-lib-coverage": "^3.0.0", "istanbul-lib-instrument": "^4.0.1", "istanbul-lib-report": "^3.0.0", "istanbul-lib-source-maps": "^4.0.0", "istanbul-reports": "^3.0.0", "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10.0.0" } }, - "karma-jasmine": { + "node_modules/karma-jasmine": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-4.0.1.tgz", "integrity": "sha512-h8XDAhTiZjJKzfkoO1laMH+zfNlra+dEQHUAjpn5JV1zCPtOIVWGQjLBrqhnzQa/hrU2XrZwSyBa6XjEBzfXzw==", "dev": true, - "requires": { + "dependencies": { "jasmine-core": "^3.6.0" + }, + "engines": { + "node": ">= 10" + }, + "peerDependencies": { + "karma": "*" } }, - "karma-jasmine-html-reporter": { + "node_modules/karma-jasmine-html-reporter": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-1.7.0.tgz", "integrity": "sha512-pzum1TL7j90DTE86eFt48/s12hqwQuiD+e5aXx2Dc9wDEn2LfGq6RoAxEZZjFiN0RDSCOnosEKRZWxbQ+iMpQQ==", - "dev": true + "dev": true, + "peerDependencies": { + "jasmine-core": ">=3.8", + "karma": ">=0.9", + "karma-jasmine": ">=1.1" + } }, - "karma-source-map-support": { + "node_modules/karma-source-map-support": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/karma-source-map-support/-/karma-source-map-support-1.4.0.tgz", "integrity": "sha512-RsBECncGO17KAoJCYXjv+ckIz+Ii9NCi+9enk+rq6XC81ezYkb4/RHE6CTXdA7IOJqoF3wcaLfVG0CPmE5ca6A==", "dev": true, - "requires": { + "dependencies": { "source-map-support": "^0.5.5" } }, - "killable": { + "node_modules/karma/node_modules/mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/karma/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/karma/node_modules/tmp": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "dev": true, + "dependencies": { + "rimraf": "^3.0.0" + }, + "engines": { + "node": ">=8.17.0" + } + }, + "node_modules/karma/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/killable": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz", "integrity": "sha512-LzqtLKlUwirEUyl/nicirVmNiPvYs7l5n8wOPP7fyJVpUPkvCnW/vuiXGpylGUlnPDnB7311rARzAt3Mhswpjg==", "dev": true }, - "kind-of": { + "node_modules/kind-of": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "klona": { + "node_modules/klona": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.4.tgz", "integrity": "sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 8" + } }, - "less": { + "node_modules/less": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/less/-/less-4.1.1.tgz", "integrity": "sha512-w09o8tZFPThBscl5d0Ggp3RcrKIouBoQscnOMgFH3n5V3kN/CXGHNfCkRPtxJk6nKryDXaV9aHLK55RXuH4sAw==", "dev": true, - "requires": { + "dependencies": { "copy-anything": "^2.0.1", + "parse-node-version": "^1.0.1", + "tslib": "^1.10.0" + }, + "bin": { + "lessc": "bin/lessc" + }, + "engines": { + "node": ">=6" + }, + "optionalDependencies": { "errno": "^0.1.1", "graceful-fs": "^4.1.2", "image-size": "~0.5.0", "make-dir": "^2.1.0", "mime": "^1.4.1", "needle": "^2.5.2", - "parse-node-version": "^1.0.1", - "source-map": "~0.6.0", - "tslib": "^1.10.0" - }, - "dependencies": { - "make-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", - "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", - "dev": true, - "optional": true, - "requires": { - "pify": "^4.0.1", - "semver": "^5.6.0" - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, - "optional": true - }, - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true, - "optional": true - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "optional": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } + "source-map": "~0.6.0" } }, - "less-loader": { + "node_modules/less-loader": { "version": "10.0.1", "resolved": "https://registry.npmjs.org/less-loader/-/less-loader-10.0.1.tgz", "integrity": "sha512-Crln//HpW9M5CbtdfWm3IO66Cvx1WhZQvNybXgfB2dD/6Sav9ppw+IWqs/FQKPBFO4B6X0X28Z0WNznshgwUzA==", "dev": true, - "requires": { + "dependencies": { "klona": "^2.0.4" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "less": "^3.5.0 || ^4.0.0", + "webpack": "^5.0.0" + } + }, + "node_modules/less/node_modules/make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "optional": true, + "dependencies": { + "pify": "^4.0.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/less/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true, + "optional": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/less/node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true, + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/less/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "optional": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/less/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true, + "engines": { + "node": ">=0.10.0" } }, - "license-webpack-plugin": { + "node_modules/less/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/license-webpack-plugin": { "version": "2.3.20", "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-2.3.20.tgz", "integrity": "sha512-AHVueg9clOKACSHkhmEI+PCC9x8+qsQVuKECZD3ETxETK5h/PCv5/MUzyG1gm8OMcip/s1tcNxqo9Qb7WhjGsg==", "dev": true, - "requires": { + "dependencies": { "@types/webpack-sources": "^0.1.5", "webpack-sources": "^1.2.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + } } }, - "lie": { + "node_modules/lie": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", "dev": true, - "requires": { + "dependencies": { "immediate": "~3.0.5" } }, - "lilconfig": { + "node_modules/lilconfig": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.3.tgz", "integrity": "sha512-EHKqr/+ZvdKCifpNrJCKxBTgk5XupZA3y/aCPY9mxfgBzmgh93Mt/WqjjQ38oMxXuvDokaKiM3lAgvSH2sjtHg==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + } }, - "lines-and-columns": { + "node_modules/lines-and-columns": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", "dev": true }, - "loader-runner": { + "node_modules/loader-runner": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.2.0.tgz", "integrity": "sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.11.5" + } }, - "loader-utils": { + "node_modules/loader-utils": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", "dev": true, - "requires": { + "dependencies": { "big.js": "^5.2.2", "emojis-list": "^3.0.0", "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" } }, - "locate-path": { + "node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "requires": { + "dependencies": { "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" } }, - "lodash": { + "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, - "lodash.debounce": { + "node_modules/lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", "dev": true }, - "lodash.memoize": { + "node_modules/lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", "dev": true }, - "lodash.uniq": { + "node_modules/lodash.uniq": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", "dev": true }, - "log-symbols": { + "node_modules/log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", "dev": true, - "requires": { + "dependencies": { "chalk": "^4.1.0", "is-unicode-supported": "^0.1.0" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-symbols/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/log-symbols/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/log-symbols/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/log-symbols/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "log4js": { + "node_modules/log4js": { "version": "6.4.2", "resolved": "https://registry.npmjs.org/log4js/-/log4js-6.4.2.tgz", "integrity": "sha512-k80cggS2sZQLBwllpT1p06GtfvzMmSdUCkW96f0Hj83rKGJDAu2vZjt9B9ag2vx8Zz1IXzxoLgqvRJCdMKybGg==", "dev": true, - "requires": { + "dependencies": { "date-format": "^4.0.4", "debug": "^4.3.3", "flatted": "^3.2.5", "rfdc": "^1.3.0", "streamroller": "^3.0.4" }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/log4js/node_modules/debug": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", + "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", + "dev": true, "dependencies": { - "debug": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", - "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", - "dev": true, - "requires": { - "ms": "2.1.2" - } + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true } } }, - "loglevel": { + "node_modules/loglevel": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.7.1.tgz", "integrity": "sha512-Hesni4s5UkWkwCGJMQGAh71PaLUmKFM60dHvq0zi/vDhhrzuk+4GgNbTXJ12YYQJn6ZKBDNIjYcuQGKudvqrIw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6.0" + }, + "funding": { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/loglevel" + } }, - "lru-cache": { + "node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "requires": { + "dependencies": { "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, - "magic-string": { + "node_modules/magic-string": { "version": "0.25.7", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz", "integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==", "dev": true, - "requires": { + "dependencies": { "sourcemap-codec": "^1.4.4" } }, - "make-dir": { + "node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dev": true, - "requires": { + "dependencies": { "semver": "^6.0.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "make-error": { + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "dev": true }, - "make-fetch-happen": { + "node_modules/make-fetch-happen": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz", "integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==", "dev": true, - "requires": { + "dependencies": { "agentkeepalive": "^4.1.3", "cacache": "^15.2.0", "http-cache-semantics": "^4.1.0", @@ -7122,392 +9313,506 @@ "promise-retry": "^2.0.1", "socks-proxy-agent": "^6.0.0", "ssri": "^8.0.0" + }, + "engines": { + "node": ">= 10" } }, - "map-age-cleaner": { + "node_modules/map-age-cleaner": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", "dev": true, - "requires": { + "dependencies": { "p-defer": "^1.0.0" + }, + "engines": { + "node": ">=6" } }, - "map-cache": { + "node_modules/map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "map-visit": { + "node_modules/map-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", "dev": true, - "requires": { + "dependencies": { "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "mdn-data": { + "node_modules/mdn-data": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", "dev": true }, - "media-typer": { + "node_modules/media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "mem": { + "node_modules/mem": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/mem/-/mem-8.1.1.tgz", "integrity": "sha512-qFCFUDs7U3b8mBDPyz5EToEKoAkgCzqquIgi9nkkR9bixxOVOre+09lbuH7+9Kn2NFpm56M3GUWVbU2hQgdACA==", "dev": true, - "requires": { + "dependencies": { "map-age-cleaner": "^0.1.3", "mimic-fn": "^3.1.0" }, - "dependencies": { - "mimic-fn": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz", - "integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==", - "dev": true - } + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/mem?sponsor=1" + } + }, + "node_modules/mem/node_modules/mimic-fn": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz", + "integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==", + "dev": true, + "engines": { + "node": ">=8" } }, - "memfs": { + "node_modules/memfs": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.2.4.tgz", "integrity": "sha512-2mDCPhuduRPOxlfgsXF9V+uqC6Jgz8zt/bNe4d4W7d5f6pCzHrWkxLNr17jKGXd4+j2kQNsAG2HARPnt74sqVQ==", "dev": true, - "requires": { + "dependencies": { "fs-monkey": "1.0.3" + }, + "engines": { + "node": ">= 4.0.0" } }, - "memory-fs": { + "node_modules/memory-fs": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", "dev": true, - "requires": { + "dependencies": { "errno": "^0.1.3", "readable-stream": "^2.0.1" - }, + } + }, + "node_modules/memory-fs/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, "dependencies": { - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/memory-fs/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" } }, - "merge-descriptors": { + "node_modules/merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", "dev": true }, - "merge-source-map": { + "node_modules/merge-source-map": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.1.0.tgz", "integrity": "sha512-Qkcp7P2ygktpMPh2mCQZaf3jhN6D3Z/qVZHSdWvQ+2Ef5HgRAPBO57A77+ENm0CPx2+1Ce/MYKi3ymqdfuqibw==", "dev": true, - "requires": { - "source-map": "^0.6.1" - }, "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "source-map": "^0.6.1" + } + }, + "node_modules/merge-source-map/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "merge-stream": { + "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", "dev": true }, - "merge2": { + "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 8" + } }, - "methods": { + "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "micromatch": { + "node_modules/micromatch": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", "dev": true, - "requires": { + "dependencies": { "braces": "^3.0.1", "picomatch": "^2.2.3" + }, + "engines": { + "node": ">=8.6" } }, - "mime": { + "node_modules/mime": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz", "integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg==", - "dev": true + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } }, - "mime-db": { + "node_modules/mime-db": { "version": "1.49.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.49.0.tgz", "integrity": "sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "mime-types": { + "node_modules/mime-types": { "version": "2.1.32", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz", "integrity": "sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==", "dev": true, - "requires": { + "dependencies": { "mime-db": "1.49.0" + }, + "engines": { + "node": ">= 0.6" } }, - "mimic-fn": { + "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "mini-css-extract-plugin": { + "node_modules/mini-css-extract-plugin": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.2.1.tgz", "integrity": "sha512-A0GBXpz8WIPgh2HfASJ0EeY8grd2dGxmC4R8uTujFJXZY7zFy0nvYSYW6SKCLKlz7y45BdHONfaxZQMIZpeF/w==", "dev": true, - "requires": { + "dependencies": { "schema-utils": "^3.1.0" }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - } + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" } }, - "minimalistic-assert": { + "node_modules/minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", "dev": true }, - "minimatch": { + "node_modules/minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, - "requires": { + "dependencies": { "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" } }, - "minimist": { + "node_modules/minimist": { "version": "1.2.6", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, - "minipass": { + "node_modules/minipass": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.3.tgz", "integrity": "sha512-Mgd2GdMVzY+x3IJ+oHnVM+KG3lA5c8tnabyJKmHSaG2kAGpudxuOf8ToDkhumF7UzME7DecbQE9uOZhNm7PuJg==", "dev": true, - "requires": { + "dependencies": { "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "minipass-collect": { + "node_modules/minipass-collect": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" } }, - "minipass-fetch": { + "node_modules/minipass-fetch": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz", "integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==", "dev": true, - "requires": { - "encoding": "^0.1.12", + "dependencies": { "minipass": "^3.1.0", "minipass-sized": "^1.0.3", "minizlib": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "optionalDependencies": { + "encoding": "^0.1.12" } }, - "minipass-flush": { + "node_modules/minipass-flush": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" } }, - "minipass-json-stream": { + "node_modules/minipass-json-stream": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minipass-json-stream/-/minipass-json-stream-1.0.1.tgz", "integrity": "sha512-ODqY18UZt/I8k+b7rl2AENgbWE8IDYam+undIJONvigAz8KR5GWblsFTEfQs0WODsjbSXWlm+JHEv8Gr6Tfdbg==", "dev": true, - "requires": { + "dependencies": { "jsonparse": "^1.3.1", "minipass": "^3.0.0" } }, - "minipass-pipeline": { + "node_modules/minipass-pipeline": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "minipass-sized": { + "node_modules/minipass-sized": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "minizlib": { + "node_modules/minizlib": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" } }, - "mixin-deep": { + "node_modules/mixin-deep": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", "dev": true, - "requires": { + "dependencies": { "for-in": "^1.0.2", "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "mkdirp": { + "node_modules/mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } }, - "ms": { + "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "multicast-dns": { + "node_modules/multicast-dns": { "version": "6.2.3", "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz", "integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==", "dev": true, - "requires": { + "dependencies": { "dns-packet": "^1.3.1", "thunky": "^1.0.2" + }, + "bin": { + "multicast-dns": "cli.js" } }, - "multicast-dns-service-types": { + "node_modules/multicast-dns-service-types": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=", "dev": true }, - "mute-stream": { + "node_modules/mute-stream": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", "dev": true }, - "nan": { + "node_modules/nan": { "version": "2.15.0", "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==", "dev": true, "optional": true }, - "nanoid": { + "node_modules/nanoid": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.2.0.tgz", "integrity": "sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==", - "dev": true + "dev": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } }, - "nanomatch": { + "node_modules/nanomatch": { "version": "1.2.13", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", "dev": true, - "requires": { + "dependencies": { "arr-diff": "^4.0.0", "array-unique": "^0.3.2", "define-property": "^2.0.2", @@ -7519,80 +9824,97 @@ "regex-not": "^1.0.0", "snapdragon": "^0.8.1", "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "needle": { + "node_modules/needle": { "version": "2.9.1", "resolved": "https://registry.npmjs.org/needle/-/needle-2.9.1.tgz", "integrity": "sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==", "dev": true, "optional": true, - "requires": { + "dependencies": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", "sax": "^1.2.4" }, + "bin": { + "needle": "bin/needle" + }, + "engines": { + "node": ">= 4.4.x" + } + }, + "node_modules/needle/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "optional": true, "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "optional": true, - "requires": { - "ms": "^2.1.1" - } - } + "ms": "^2.1.1" } }, - "negotiator": { + "node_modules/negotiator": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "neo-async": { + "node_modules/neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, - "nice-napi": { + "node_modules/nice-napi": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/nice-napi/-/nice-napi-1.0.2.tgz", "integrity": "sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==", "dev": true, + "hasInstallScript": true, "optional": true, - "requires": { + "os": [ + "!win32" + ], + "dependencies": { "node-addon-api": "^3.0.0", "node-gyp-build": "^4.2.2" } }, - "nice-try": { + "node_modules/nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", "dev": true }, - "node-addon-api": { + "node_modules/node-addon-api": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==", "dev": true, "optional": true }, - "node-forge": { + "node_modules/node-forge": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6.0.0" + } }, - "node-gyp": { + "node_modules/node-gyp": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-7.1.2.tgz", "integrity": "sha512-CbpcIo7C3eMu3dL1c3d0xw449fHIGALIJsRP4DDPHpyiW8vcriNY7ubh9TE4zEKfSxscY7PjeFnshE7h75ynjQ==", "dev": true, - "requires": { + "dependencies": { "env-paths": "^2.2.0", "glob": "^7.1.4", "graceful-fs": "^4.2.3", @@ -7604,377 +9926,500 @@ "tar": "^6.0.2", "which": "^2.0.2" }, - "dependencies": { - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": ">= 10.12.0" } }, - "node-gyp-build": { + "node_modules/node-gyp-build": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.2.3.tgz", "integrity": "sha512-MN6ZpzmfNCRM+3t57PTJHgHyw/h4OWnZ6mR8P5j/uZtqQr46RRuDE/P+g3n0YR/AiYXeWixZZzaip77gdICfRg==", "dev": true, - "optional": true + "optional": true, + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, + "node_modules/node-gyp/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } }, - "node-releases": { + "node_modules/node-releases": { "version": "1.1.75", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.75.tgz", "integrity": "sha512-Qe5OUajvqrqDSy6wrWFmMwfJ0jVgwiw4T3KqmbTcZ62qW0gQkheXYhcFM1+lOVcGUoRxcEcfyvFMAnDgaF1VWw==", "dev": true }, - "nofilter": { + "node_modules/nofilter": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/nofilter/-/nofilter-0.0.3.tgz", "integrity": "sha1-JB40IHgXeoaTowQ+g/N1Z+J2QQw=" }, - "nopt": { + "node_modules/nopt": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", "dev": true, - "requires": { + "dependencies": { "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" } }, - "normalize-path": { + "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "normalize-range": { + "node_modules/normalize-range": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "normalize-url": { + "node_modules/normalize-url": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "npm-bundled": { + "node_modules/npm-bundled": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.2.tgz", "integrity": "sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ==", "dev": true, - "requires": { + "dependencies": { "npm-normalize-package-bin": "^1.0.1" } }, - "npm-install-checks": { + "node_modules/npm-install-checks": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-4.0.0.tgz", "integrity": "sha512-09OmyDkNLYwqKPOnbI8exiOZU2GVVmQp7tgez2BPi5OZC8M82elDAps7sxC4l//uSUtotWqoEIDwjRvWH4qz8w==", "dev": true, - "requires": { + "dependencies": { "semver": "^7.1.1" + }, + "engines": { + "node": ">=10" } }, - "npm-normalize-package-bin": { + "node_modules/npm-normalize-package-bin": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz", "integrity": "sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==", "dev": true }, - "npm-package-arg": { + "node_modules/npm-package-arg": { "version": "8.1.5", "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-8.1.5.tgz", "integrity": "sha512-LhgZrg0n0VgvzVdSm1oiZworPbTxYHUJCgtsJW8mGvlDpxTM1vSJc3m5QZeUkhAHIzbz3VCHd/R4osi1L1Tg/Q==", "dev": true, - "requires": { + "dependencies": { "hosted-git-info": "^4.0.1", "semver": "^7.3.4", "validate-npm-package-name": "^3.0.0" + }, + "engines": { + "node": ">=10" } }, - "npm-packlist": { + "node_modules/npm-packlist": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-2.2.2.tgz", "integrity": "sha512-Jt01acDvJRhJGthnUJVF/w6gumWOZxO7IkpY/lsX9//zqQgnF7OJaxgQXcerd4uQOLu7W5bkb4mChL9mdfm+Zg==", "dev": true, - "requires": { + "dependencies": { "glob": "^7.1.6", "ignore-walk": "^3.0.3", "npm-bundled": "^1.1.1", "npm-normalize-package-bin": "^1.0.1" + }, + "bin": { + "npm-packlist": "bin/index.js" + }, + "engines": { + "node": ">=10" } }, - "npm-pick-manifest": { + "node_modules/npm-pick-manifest": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/npm-pick-manifest/-/npm-pick-manifest-6.1.1.tgz", "integrity": "sha512-dBsdBtORT84S8V8UTad1WlUyKIY9iMsAmqxHbLdeEeBNMLQDlDWWra3wYUx9EBEIiG/YwAy0XyNHDd2goAsfuA==", "dev": true, - "requires": { + "dependencies": { "npm-install-checks": "^4.0.0", "npm-normalize-package-bin": "^1.0.1", "npm-package-arg": "^8.1.2", "semver": "^7.3.4" } }, - "npm-registry-fetch": { + "node_modules/npm-registry-fetch": { "version": "11.0.0", "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-11.0.0.tgz", "integrity": "sha512-jmlgSxoDNuhAtxUIG6pVwwtz840i994dL14FoNVZisrmZW5kWd63IUTNv1m/hyRSGSqWjCUp/YZlS1BJyNp9XA==", "dev": true, - "requires": { + "dependencies": { "make-fetch-happen": "^9.0.1", "minipass": "^3.1.3", "minipass-fetch": "^1.3.0", "minipass-json-stream": "^1.0.1", "minizlib": "^2.0.0", "npm-package-arg": "^8.0.0" + }, + "engines": { + "node": ">=10" } }, - "npm-run-path": { + "node_modules/npm-run-path": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "dev": true, - "requires": { + "dependencies": { "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" } }, - "npmlog": { + "node_modules/npmlog": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "dev": true, - "requires": { + "dependencies": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", "gauge": "~2.7.3", "set-blocking": "~2.0.0" } }, - "nth-check": { + "node_modules/nth-check": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz", "integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==", "dev": true, - "requires": { + "dependencies": { "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" } }, - "num2fraction": { + "node_modules/num2fraction": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", "dev": true }, - "number-is-nan": { + "node_modules/number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "oauth-sign": { + "node_modules/oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true + "dev": true, + "engines": { + "node": "*" + } }, - "object-assign": { + "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "object-copy": { + "node_modules/object-copy": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", "dev": true, - "requires": { + "dependencies": { "copy-descriptor": "^0.1.0", "define-property": "^0.2.5", "kind-of": "^3.0.3" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" } }, - "object-is": { + "node_modules/object-is": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "object-keys": { + "node_modules/object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.4" + } }, - "object-visit": { + "node_modules/object-visit": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", "dev": true, - "requires": { + "dependencies": { "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "object.assign": { + "node_modules/object.assign": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.0", "define-properties": "^1.1.3", "has-symbols": "^1.0.1", "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "object.pick": { + "node_modules/object.pick": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", "dev": true, - "requires": { + "dependencies": { "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "obuf": { + "node_modules/obuf": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", "dev": true }, - "on-finished": { + "node_modules/on-finished": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", "dev": true, - "requires": { + "dependencies": { "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" } }, - "on-headers": { + "node_modules/on-headers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "once": { + "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, - "requires": { + "dependencies": { "wrappy": "1" } }, - "onetime": { + "node_modules/onetime": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "requires": { + "dependencies": { "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "open": { + "node_modules/open": { "version": "8.2.1", "resolved": "https://registry.npmjs.org/open/-/open-8.2.1.tgz", "integrity": "sha512-rXILpcQlkF/QuFez2BJDf3GsqpjGKbkUUToAIGo9A0Q6ZkoSGogZJulrUdwRkrAsoQvoZsrjCYt8+zblOk7JQQ==", "dev": true, - "requires": { + "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "opn": { + "node_modules/opn": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/opn/-/opn-5.5.0.tgz", "integrity": "sha512-PqHpggC9bLV0VeWcdKhkpxY+3JTzetLSqTCWL/z/tFIbI6G8JCjondXklT1JinczLz2Xib62sSp0T/gKT4KksA==", "dev": true, - "requires": { + "dependencies": { "is-wsl": "^1.1.0" }, - "dependencies": { - "is-wsl": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", - "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", - "dev": true - } + "engines": { + "node": ">=4" } }, - "ora": { + "node_modules/opn/node_modules/is-wsl": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", + "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", "dev": true, - "requires": { + "dependencies": { "bl": "^4.1.0", "chalk": "^4.1.0", "cli-cursor": "^3.1.0", @@ -7985,144 +10430,203 @@ "strip-ansi": "^6.0.0", "wcwidth": "^1.0.1" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ora/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ora/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/ora/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/ora/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" } }, - "original": { + "node_modules/ora/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/original": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/original/-/original-1.0.2.tgz", "integrity": "sha512-hyBVl6iqqUOJ8FqRe+l/gS8H+kKYjrEndd5Pm1MfBtsEKA038HkkdbAl/72EAXGyonD/PFsvmVG+EvcIpliMBg==", "dev": true, - "requires": { + "dependencies": { "url-parse": "^1.4.3" } }, - "os-tmpdir": { + "node_modules/os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "p-defer": { + "node_modules/p-defer": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "p-finally": { + "node_modules/p-finally": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "p-limit": { + "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, - "requires": { + "dependencies": { "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-locate": { + "node_modules/p-locate": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "requires": { + "dependencies": { "p-limit": "^2.2.0" }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, "dependencies": { - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - } + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-map": { + "node_modules/p-map": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", "dev": true, - "requires": { + "dependencies": { "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-retry": { + "node_modules/p-retry": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-3.0.1.tgz", "integrity": "sha512-XE6G4+YTTkT2a0UWb2kjZe8xNwf8bIbnqpc/IS/idOBVhyves0mK5OJgeocjx7q5pvX/6m23xuzVPYT1uGM73w==", "dev": true, - "requires": { + "dependencies": { "retry": "^0.12.0" + }, + "engines": { + "node": ">=6" } }, - "p-try": { + "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "pacote": { + "node_modules/pacote": { "version": "11.3.5", "resolved": "https://registry.npmjs.org/pacote/-/pacote-11.3.5.tgz", "integrity": "sha512-fT375Yczn4zi+6Hkk2TBe1x1sP8FgFsEIZ2/iWaXY2r/NkhDJfxbcn5paz1+RTFCyNf+dPnaoBDJoAxXSU8Bkg==", "dev": true, - "requires": { + "dependencies": { "@npmcli/git": "^2.1.0", "@npmcli/installed-package-contents": "^1.0.6", "@npmcli/promise-spawn": "^1.2.0", @@ -8142,1497 +10646,2104 @@ "rimraf": "^3.0.2", "ssri": "^8.0.1", "tar": "^6.1.0" + }, + "bin": { + "pacote": "lib/bin.js" + }, + "engines": { + "node": ">=10" } }, - "pako": { + "node_modules/pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", "dev": true }, - "parent-module": { + "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, - "requires": { + "dependencies": { "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "parse-json": { + "node_modules/parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", "json-parse-even-better-errors": "^2.3.0", "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "parse-node-version": { + "node_modules/parse-node-version": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.10" + } }, - "parse5": { + "node_modules/parse5": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", "dev": true }, - "parse5-html-rewriting-stream": { + "node_modules/parse5-html-rewriting-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/parse5-html-rewriting-stream/-/parse5-html-rewriting-stream-6.0.1.tgz", "integrity": "sha512-vwLQzynJVEfUlURxgnf51yAJDQTtVpNyGD8tKi2Za7m+akukNHxCcUQMAa/mUGLhCeicFdpy7Tlvj8ZNKadprg==", "dev": true, - "requires": { + "dependencies": { "parse5": "^6.0.1", "parse5-sax-parser": "^6.0.1" } }, - "parse5-htmlparser2-tree-adapter": { + "node_modules/parse5-htmlparser2-tree-adapter": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz", "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==", "dev": true, - "requires": { + "dependencies": { "parse5": "^6.0.1" } }, - "parse5-sax-parser": { + "node_modules/parse5-sax-parser": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/parse5-sax-parser/-/parse5-sax-parser-6.0.1.tgz", "integrity": "sha512-kXX+5S81lgESA0LsDuGjAlBybImAChYRMT+/uKCEXFBFOeEhS52qUCydGhU3qLRD8D9DVjaUo821WK7DM4iCeg==", "dev": true, - "requires": { + "dependencies": { "parse5": "^6.0.1" } }, - "parseurl": { + "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "pascalcase": { + "node_modules/pascalcase": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "path-dirname": { + "node_modules/path-dirname": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", "dev": true }, - "path-exists": { + "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "path-is-absolute": { + "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "path-is-inside": { + "node_modules/path-is-inside": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", "dev": true }, - "path-key": { + "node_modules/path-key": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "path-parse": { + "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "path-to-regexp": { + "node_modules/path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", "dev": true }, - "path-type": { + "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "performance-now": { + "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", "dev": true }, - "picomatch": { + "node_modules/picomatch": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", - "dev": true + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } }, - "pify": { + "node_modules/pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "pinkie": { + "node_modules/pinkie": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "pinkie-promise": { + "node_modules/pinkie-promise": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, - "requires": { + "dependencies": { "pinkie": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "piscina": { + "node_modules/piscina": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/piscina/-/piscina-3.1.0.tgz", "integrity": "sha512-KTW4sjsCD34MHrUbx9eAAbuUSpVj407hQSgk/6Epkg0pbRBmv4a3UX7Sr8wxm9xYqQLnsN4mFOjqGDzHAdgKQg==", "dev": true, - "requires": { + "dependencies": { "eventemitter-asyncresource": "^1.0.0", "hdr-histogram-js": "^2.0.1", - "hdr-histogram-percentiles-obj": "^3.0.0", + "hdr-histogram-percentiles-obj": "^3.0.0" + }, + "optionalDependencies": { "nice-napi": "^1.0.2" } }, - "pkg-dir": { + "node_modules/pkg-dir": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, - "requires": { + "dependencies": { "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "popper.js": { + "node_modules/popper.js": { "version": "1.16.1", "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz", - "integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==" + "integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==", + "deprecated": "You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } }, - "portfinder": { + "node_modules/portfinder": { "version": "1.0.28", "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz", "integrity": "sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==", "dev": true, - "requires": { + "dependencies": { "async": "^2.6.2", "debug": "^3.1.1", "mkdirp": "^0.5.5" }, + "engines": { + "node": ">= 0.12.0" + } + }, + "node_modules/portfinder/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - } + "ms": "^2.1.1" + } + }, + "node_modules/portfinder/node_modules/mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "mkdirp": "bin/cmd.js" } }, - "posix-character-classes": { + "node_modules/posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "postcss": { + "node_modules/postcss": { "version": "8.3.6", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.3.6.tgz", "integrity": "sha512-wG1cc/JhRgdqB6WHEuyLTedf3KIRuD0hG6ldkFEZNCjRxiC+3i6kkWUUbiJQayP28iwG35cEmAbe98585BYV0A==", "dev": true, - "requires": { + "dependencies": { "colorette": "^1.2.2", "nanoid": "^3.1.23", "source-map-js": "^0.6.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" } }, - "postcss-attribute-case-insensitive": { + "node_modules/postcss-attribute-case-insensitive": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-4.0.2.tgz", "integrity": "sha512-clkFxk/9pcdb4Vkn0hAHq3YnxBQ2p0CGD1dy24jN+reBck+EWxMbxSUqN4Yj7t0w8csl87K6p0gxBe1utkJsYA==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2", "postcss-selector-parser": "^6.0.2" + } + }, + "node_modules/postcss-attribute-case-insensitive/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-attribute-case-insensitive/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-attribute-case-insensitive/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-calc": { + "node_modules/postcss-calc": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.0.0.tgz", "integrity": "sha512-5NglwDrcbiy8XXfPM11F3HeC6hoT9W7GUH/Zi5U/p7u3Irv4rHhdDcIZwG0llHXV4ftsBjpfWMXAnXNl4lnt8g==", "dev": true, - "requires": { + "dependencies": { "postcss-selector-parser": "^6.0.2", "postcss-value-parser": "^4.0.2" + }, + "peerDependencies": { + "postcss": "^8.2.2" } }, - "postcss-color-functional-notation": { + "node_modules/postcss-color-functional-notation": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-2.0.1.tgz", "integrity": "sha512-ZBARCypjEDofW4P6IdPVTLhDNXPRn8T2s1zHbZidW6rPaaZvcnCS2soYFIQJrMZSxiePJ2XIYTlcb2ztr/eT2g==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2", "postcss-values-parser": "^2.0.0" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-color-functional-notation/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-color-functional-notation/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-color-functional-notation/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-color-gray": { + "node_modules/postcss-color-gray": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/postcss-color-gray/-/postcss-color-gray-5.0.0.tgz", "integrity": "sha512-q6BuRnAGKM/ZRpfDascZlIZPjvwsRye7UDNalqVz3s7GDxMtqPY6+Q871liNxsonUw8oC61OG+PSaysYpl1bnw==", "dev": true, - "requires": { + "dependencies": { "@csstools/convert-colors": "^1.4.0", "postcss": "^7.0.5", "postcss-values-parser": "^2.0.0" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-color-gray/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" } }, - "postcss-color-hex-alpha": { + "node_modules/postcss-color-gray/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-color-gray/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss-color-hex-alpha": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-5.0.3.tgz", "integrity": "sha512-PF4GDel8q3kkreVXKLAGNpHKilXsZ6xuu+mOQMHWHLPNyjiUBOr75sp5ZKJfmv1MCus5/DWUGcK9hm6qHEnXYw==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.14", "postcss-values-parser": "^2.0.1" }, - "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "engines": { + "node": ">=6.0.0" } }, - "postcss-color-mod-function": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/postcss-color-mod-function/-/postcss-color-mod-function-3.0.3.tgz", - "integrity": "sha512-YP4VG+xufxaVtzV6ZmhEtc+/aTXH3d0JLpnYfxqTvwZPbJhWqp8bSY3nfNzNRFLgB4XSaBA82OE4VjOOKpCdVQ==", + "node_modules/postcss-color-hex-alpha/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", "dev": true, - "requires": { - "@csstools/convert-colors": "^1.4.0", - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" } }, - "postcss-color-rebeccapurple": { - "version": "4.0.1", + "node_modules/postcss-color-hex-alpha/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-color-hex-alpha/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss-color-mod-function": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/postcss-color-mod-function/-/postcss-color-mod-function-3.0.3.tgz", + "integrity": "sha512-YP4VG+xufxaVtzV6ZmhEtc+/aTXH3d0JLpnYfxqTvwZPbJhWqp8bSY3nfNzNRFLgB4XSaBA82OE4VjOOKpCdVQ==", + "dev": true, + "dependencies": { + "@csstools/convert-colors": "^1.4.0", + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-color-mod-function/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-color-mod-function/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-color-mod-function/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss-color-rebeccapurple": { + "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-4.0.1.tgz", "integrity": "sha512-aAe3OhkS6qJXBbqzvZth2Au4V3KieR5sRQ4ptb2b2O8wgvB3SJBsdG+jsn2BZbbwekDG8nTfcCNKcSfe/lEy8g==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2", "postcss-values-parser": "^2.0.0" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-color-rebeccapurple/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-color-rebeccapurple/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "postcss-colormin": { + "node_modules/postcss-color-rebeccapurple/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss-colormin": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.2.0.tgz", "integrity": "sha512-+HC6GfWU3upe5/mqmxuqYZ9B2Wl4lcoUUNkoaX59nEWV4EtADCMiBqui111Bu8R8IvaZTmqmxrqOAqjbHIwXPw==", "dev": true, - "requires": { + "dependencies": { "browserslist": "^4.16.6", "caniuse-api": "^3.0.0", "colord": "^2.0.1", "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-convert-values": { + "node_modules/postcss-convert-values": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.0.1.tgz", "integrity": "sha512-C3zR1Do2BkKkCgC0g3sF8TS0koF2G+mN8xxayZx3f10cIRmTaAnpgpRQZjNekTZxM2ciSPoh2IWJm0VZx8NoQg==", "dev": true, - "requires": { + "dependencies": { "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-custom-media": { + "node_modules/postcss-custom-media": { "version": "7.0.8", "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-7.0.8.tgz", "integrity": "sha512-c9s5iX0Ge15o00HKbuRuTqNndsJUbaXdiNsksnVH8H4gdc+zbLzr/UasOwNG6CTDpLFekVY4672eWdiiWu2GUg==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.14" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-custom-media/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" } }, - "postcss-custom-properties": { + "node_modules/postcss-custom-media/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-custom-media/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss-custom-properties": { "version": "8.0.11", "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-8.0.11.tgz", "integrity": "sha512-nm+o0eLdYqdnJ5abAJeXp4CEU1c1k+eB2yMCvhgzsds/e0umabFrN6HoTy/8Q4K5ilxERdl/JD1LO5ANoYBeMA==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.17", "postcss-values-parser": "^2.0.1" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-custom-properties/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-custom-properties/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-custom-properties/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-custom-selectors": { + "node_modules/postcss-custom-selectors": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-5.1.2.tgz", "integrity": "sha512-DSGDhqinCqXqlS4R7KGxL1OSycd1lydugJ1ky4iRXPHdBRiozyMHrdu0H3o7qNOCiZwySZTUI5MV0T8QhCLu+w==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2", "postcss-selector-parser": "^5.0.0-rc.3" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-custom-selectors/node_modules/cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-custom-selectors/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true - }, - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "requires": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-custom-selectors/node_modules/postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "dependencies": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-custom-selectors/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-custom-selectors/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-dir-pseudo-class": { + "node_modules/postcss-dir-pseudo-class": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-5.0.0.tgz", "integrity": "sha512-3pm4oq8HYWMZePJY+5ANriPs3P07q+LW6FAdTlkFH2XqDdP4HeeJYMOzn0HYLhRSjBO3fhiqSwwU9xEULSrPgw==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2", "postcss-selector-parser": "^5.0.0-rc.3" }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/postcss-dir-pseudo-class/node_modules/cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-dir-pseudo-class/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true - }, - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "requires": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-dir-pseudo-class/node_modules/postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "dependencies": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=4" } }, - "postcss-discard-comments": { + "node_modules/postcss-dir-pseudo-class/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-dir-pseudo-class/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss-discard-comments": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.0.1.tgz", "integrity": "sha512-lgZBPTDvWrbAYY1v5GYEv8fEO/WhKOu/hmZqmCYfrpD6eyDWWzAOsl2rF29lpvziKO02Gc5GJQtlpkTmakwOWg==", - "dev": true + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } }, - "postcss-discard-duplicates": { + "node_modules/postcss-discard-duplicates": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.0.1.tgz", "integrity": "sha512-svx747PWHKOGpAXXQkCc4k/DsWo+6bc5LsVrAsw+OU+Ibi7klFZCyX54gjYzX4TH+f2uzXjRviLARxkMurA2bA==", - "dev": true + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } }, - "postcss-discard-empty": { + "node_modules/postcss-discard-empty": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.0.1.tgz", "integrity": "sha512-vfU8CxAQ6YpMxV2SvMcMIyF2LX1ZzWpy0lqHDsOdaKKLQVQGVP1pzhrI9JlsO65s66uQTfkQBKBD/A5gp9STFw==", - "dev": true + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } }, - "postcss-discard-overridden": { + "node_modules/postcss-discard-overridden": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.0.1.tgz", "integrity": "sha512-Y28H7y93L2BpJhrdUR2SR2fnSsT+3TVx1NmVQLbcnZWwIUpJ7mfcTC6Za9M2PG6w8j7UQRfzxqn8jU2VwFxo3Q==", - "dev": true + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } }, - "postcss-double-position-gradients": { + "node_modules/postcss-double-position-gradients": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-1.0.0.tgz", "integrity": "sha512-G+nV8EnQq25fOI8CH/B6krEohGWnF5+3A6H/+JEpOncu5dCnkS1QQ6+ct3Jkaepw1NGVqqOZH6lqrm244mCftA==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.5", "postcss-values-parser": "^2.0.0" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-double-position-gradients/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-double-position-gradients/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-double-position-gradients/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-env-function": { + "node_modules/postcss-env-function": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-2.0.2.tgz", "integrity": "sha512-rwac4BuZlITeUbiBq60h/xbLzXY43qOsIErngWa4l7Mt+RaSkT7QBjXVGTcBHupykkblHMDrBFh30zchYPaOUw==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2", "postcss-values-parser": "^2.0.0" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-env-function/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-env-function/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "postcss-focus-visible": { + "node_modules/postcss-env-function/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss-focus-visible": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-4.0.0.tgz", "integrity": "sha512-Z5CkWBw0+idJHSV6+Bgf2peDOFf/x4o+vX/pwcNYrWpXFrSfTkQ3JQ1ojrq9yS+upnAlNRHeg8uEwFTgorjI8g==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2" }, - "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "engines": { + "node": ">=6.0.0" } }, - "postcss-focus-within": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-3.0.0.tgz", - "integrity": "sha512-W0APui8jQeBKbCGZudW37EeMCjDeVxKgiYfIIEo8Bdh5SpB9sxds/Iq8SEuzS0Q4YFOlG7EPFulbbxujpkrV2w==", + "node_modules/postcss-focus-visible/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", "dev": true, - "requires": { + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-focus-visible/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-focus-visible/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss-focus-within": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-3.0.0.tgz", + "integrity": "sha512-W0APui8jQeBKbCGZudW37EeMCjDeVxKgiYfIIEo8Bdh5SpB9sxds/Iq8SEuzS0Q4YFOlG7EPFulbbxujpkrV2w==", + "dev": true, + "dependencies": { "postcss": "^7.0.2" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-focus-within/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" } }, - "postcss-font-variant": { + "node_modules/postcss-focus-within/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-focus-within/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss-font-variant": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-4.0.1.tgz", "integrity": "sha512-I3ADQSTNtLTTd8uxZhtSOrTCQ9G4qUVKPjHiDk0bV75QSxXjVWiJVJ2VLdspGUi9fbW9BcjKJoRvxAH1pckqmA==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2" + } + }, + "node_modules/postcss-font-variant/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-font-variant/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-font-variant/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-gap-properties": { + "node_modules/postcss-gap-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-2.0.0.tgz", "integrity": "sha512-QZSqDaMgXCHuHTEzMsS2KfVDOq7ZFiknSpkrPJY6jmxbugUPTuSzs/vuE5I3zv0WAS+3vhrlqhijiprnuQfzmg==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-gap-properties/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-gap-properties/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-gap-properties/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-image-set-function": { + "node_modules/postcss-image-set-function": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-3.0.1.tgz", "integrity": "sha512-oPTcFFip5LZy8Y/whto91L9xdRHCWEMs3e1MdJxhgt4jy2WYXfhkng59fH5qLXSCPN8k4n94p1Czrfe5IOkKUw==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2", "postcss-values-parser": "^2.0.0" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-image-set-function/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-image-set-function/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-image-set-function/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-import": { + "node_modules/postcss-import": { "version": "14.0.2", "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.0.2.tgz", "integrity": "sha512-BJ2pVK4KhUyMcqjuKs9RijV5tatNzNa73e/32aBVE/ejYPe37iH+6vAu9WvqUkB5OAYgLHzbSvzHnorybJCm9g==", "dev": true, - "requires": { + "dependencies": { "postcss-value-parser": "^4.0.0", "read-cache": "^1.0.0", "resolve": "^1.1.7" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" } }, - "postcss-initial": { + "node_modules/postcss-initial": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-3.0.4.tgz", "integrity": "sha512-3RLn6DIpMsK1l5UUy9jxQvoDeUN4gP939tDcKUHD/kM8SGSKbFAnvkpFpj3Bhtz3HGk1jWY5ZNWX6mPta5M9fg==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2" + } + }, + "node_modules/postcss-initial/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-initial/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-initial/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-lab-function": { + "node_modules/postcss-lab-function": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-2.0.1.tgz", "integrity": "sha512-whLy1IeZKY+3fYdqQFuDBf8Auw+qFuVnChWjmxm/UhHWqNHZx+B99EwxTvGYmUBqe3Fjxs4L1BoZTJmPu6usVg==", "dev": true, - "requires": { + "dependencies": { "@csstools/convert-colors": "^1.4.0", "postcss": "^7.0.2", "postcss-values-parser": "^2.0.0" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-lab-function/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-lab-function/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-lab-function/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-loader": { + "node_modules/postcss-loader": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.1.1.tgz", "integrity": "sha512-lBmJMvRh1D40dqpWKr9Rpygwxn8M74U9uaCSeYGNKLGInbk9mXBt1ultHf2dH9Ghk6Ue4UXlXWwGMH9QdUJ5ug==", "dev": true, - "requires": { + "dependencies": { "cosmiconfig": "^7.0.0", "klona": "^2.0.4", "semver": "^7.3.5" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^5.0.0" } }, - "postcss-logical": { + "node_modules/postcss-logical": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-3.0.0.tgz", "integrity": "sha512-1SUKdJc2vuMOmeItqGuNaC+N8MzBWFWEkAnRnLpFYj1tGGa7NqyVBujfRtgNa2gXR+6RkGUiB2O5Vmh7E2RmiA==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-logical/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-logical/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-logical/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-media-minmax": { + "node_modules/postcss-media-minmax": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-4.0.0.tgz", "integrity": "sha512-fo9moya6qyxsjbFAYl97qKO9gyre3qvbMnkOZeZwlsW6XYFsvs2DMGDlchVLfAd8LHPZDxivu/+qW2SMQeTHBw==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-media-minmax/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-media-minmax/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-media-minmax/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-merge-longhand": { + "node_modules/postcss-merge-longhand": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.0.2.tgz", "integrity": "sha512-BMlg9AXSI5G9TBT0Lo/H3PfUy63P84rVz3BjCFE9e9Y9RXQZD3+h3YO1kgTNsNJy7bBc1YQp8DmSnwLIW5VPcw==", "dev": true, - "requires": { + "dependencies": { "css-color-names": "^1.0.1", "postcss-value-parser": "^4.1.0", "stylehacks": "^5.0.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-merge-rules": { + "node_modules/postcss-merge-rules": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.0.2.tgz", "integrity": "sha512-5K+Md7S3GwBewfB4rjDeol6V/RZ8S+v4B66Zk2gChRqLTCC8yjnHQ601omj9TKftS19OPGqZ/XzoqpzNQQLwbg==", "dev": true, - "requires": { + "dependencies": { "browserslist": "^4.16.6", "caniuse-api": "^3.0.0", "cssnano-utils": "^2.0.1", "postcss-selector-parser": "^6.0.5", "vendors": "^1.0.3" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-minify-font-values": { + "node_modules/postcss-minify-font-values": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.0.1.tgz", "integrity": "sha512-7JS4qIsnqaxk+FXY1E8dHBDmraYFWmuL6cgt0T1SWGRO5bzJf8sUoelwa4P88LEWJZweHevAiDKxHlofuvtIoA==", "dev": true, - "requires": { + "dependencies": { "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-minify-gradients": { + "node_modules/postcss-minify-gradients": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.0.2.tgz", "integrity": "sha512-7Do9JP+wqSD6Prittitt2zDLrfzP9pqKs2EcLX7HJYxsxCOwrrcLt4x/ctQTsiOw+/8HYotAoqNkrzItL19SdQ==", "dev": true, - "requires": { + "dependencies": { "colord": "^2.6", "cssnano-utils": "^2.0.1", "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-minify-params": { + "node_modules/postcss-minify-params": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.0.1.tgz", "integrity": "sha512-4RUC4k2A/Q9mGco1Z8ODc7h+A0z7L7X2ypO1B6V8057eVK6mZ6xwz6QN64nHuHLbqbclkX1wyzRnIrdZehTEHw==", "dev": true, - "requires": { + "dependencies": { "alphanum-sort": "^1.0.2", "browserslist": "^4.16.0", "cssnano-utils": "^2.0.1", "postcss-value-parser": "^4.1.0", "uniqs": "^2.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-minify-selectors": { + "node_modules/postcss-minify-selectors": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.1.0.tgz", "integrity": "sha512-NzGBXDa7aPsAcijXZeagnJBKBPMYLaJJzB8CQh6ncvyl2sIndLVWfbcDi0SBjRWk5VqEjXvf8tYwzoKf4Z07og==", "dev": true, - "requires": { + "dependencies": { "alphanum-sort": "^1.0.2", "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-modules-extract-imports": { + "node_modules/postcss-modules-extract-imports": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", - "dev": true + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } }, - "postcss-modules-local-by-default": { + "node_modules/postcss-modules-local-by-default": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", "dev": true, - "requires": { + "dependencies": { "icss-utils": "^5.0.0", "postcss-selector-parser": "^6.0.2", "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" } }, - "postcss-modules-scope": { + "node_modules/postcss-modules-scope": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", "dev": true, - "requires": { + "dependencies": { "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" } }, - "postcss-modules-values": { + "node_modules/postcss-modules-values": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", "dev": true, - "requires": { + "dependencies": { "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" } }, - "postcss-nesting": { + "node_modules/postcss-nesting": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-7.0.1.tgz", "integrity": "sha512-FrorPb0H3nuVq0Sff7W2rnc3SmIcruVC6YwpcS+k687VxyxO33iE1amna7wHuRVzM8vfiYofXSBHNAZ3QhLvYg==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2" }, - "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "engines": { + "node": ">=6.0.0" } }, - "postcss-normalize-charset": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.0.1.tgz", - "integrity": "sha512-6J40l6LNYnBdPSk+BHZ8SF+HAkS4q2twe5jnocgd+xWpz/mx/5Sa32m3W1AA8uE8XaXN+eg8trIlfu8V9x61eg==", - "dev": true + "node_modules/postcss-nesting/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } }, - "postcss-normalize-display-values": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.0.1.tgz", - "integrity": "sha512-uupdvWk88kLDXi5HEyI9IaAJTE3/Djbcrqq8YgjvAVuzgVuqIk3SuJWUisT2gaJbZm1H9g5k2w1xXilM3x8DjQ==", + "node_modules/postcss-nesting/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "requires": { - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" + "engines": { + "node": ">=0.10.0" } }, - "postcss-normalize-positions": { - "version": "5.0.1", + "node_modules/postcss-nesting/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss-normalize-charset": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.0.1.tgz", + "integrity": "sha512-6J40l6LNYnBdPSk+BHZ8SF+HAkS4q2twe5jnocgd+xWpz/mx/5Sa32m3W1AA8uE8XaXN+eg8trIlfu8V9x61eg==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-display-values": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.0.1.tgz", + "integrity": "sha512-uupdvWk88kLDXi5HEyI9IaAJTE3/Djbcrqq8YgjvAVuzgVuqIk3SuJWUisT2gaJbZm1H9g5k2w1xXilM3x8DjQ==", + "dev": true, + "dependencies": { + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-positions": { + "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.0.1.tgz", "integrity": "sha512-rvzWAJai5xej9yWqlCb1OWLd9JjW2Ex2BCPzUJrbaXmtKtgfL8dBMOOMTX6TnvQMtjk3ei1Lswcs78qKO1Skrg==", "dev": true, - "requires": { + "dependencies": { "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-normalize-repeat-style": { + "node_modules/postcss-normalize-repeat-style": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.0.1.tgz", "integrity": "sha512-syZ2itq0HTQjj4QtXZOeefomckiV5TaUO6ReIEabCh3wgDs4Mr01pkif0MeVwKyU/LHEkPJnpwFKRxqWA/7O3w==", "dev": true, - "requires": { + "dependencies": { "cssnano-utils": "^2.0.1", "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-normalize-string": { + "node_modules/postcss-normalize-string": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.0.1.tgz", "integrity": "sha512-Ic8GaQ3jPMVl1OEn2U//2pm93AXUcF3wz+OriskdZ1AOuYV25OdgS7w9Xu2LO5cGyhHCgn8dMXh9bO7vi3i9pA==", "dev": true, - "requires": { + "dependencies": { "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-normalize-timing-functions": { + "node_modules/postcss-normalize-timing-functions": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.0.1.tgz", "integrity": "sha512-cPcBdVN5OsWCNEo5hiXfLUnXfTGtSFiBU9SK8k7ii8UD7OLuznzgNRYkLZow11BkQiiqMcgPyh4ZqXEEUrtQ1Q==", "dev": true, - "requires": { + "dependencies": { "cssnano-utils": "^2.0.1", "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-normalize-unicode": { + "node_modules/postcss-normalize-unicode": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.0.1.tgz", "integrity": "sha512-kAtYD6V3pK0beqrU90gpCQB7g6AOfP/2KIPCVBKJM2EheVsBQmx/Iof+9zR9NFKLAx4Pr9mDhogB27pmn354nA==", "dev": true, - "requires": { + "dependencies": { "browserslist": "^4.16.0", "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-normalize-url": { + "node_modules/postcss-normalize-url": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.0.2.tgz", "integrity": "sha512-k4jLTPUxREQ5bpajFQZpx8bCF2UrlqOTzP9kEqcEnOfwsRshWs2+oAFIHfDQB8GO2PaUaSE0NlTAYtbluZTlHQ==", "dev": true, - "requires": { + "dependencies": { "is-absolute-url": "^3.0.3", "normalize-url": "^6.0.1", "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-normalize-whitespace": { + "node_modules/postcss-normalize-whitespace": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.0.1.tgz", "integrity": "sha512-iPklmI5SBnRvwceb/XH568yyzK0qRVuAG+a1HFUsFRf11lEJTiQQa03a4RSCQvLKdcpX7XsI1Gen9LuLoqwiqA==", "dev": true, - "requires": { + "dependencies": { "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-ordered-values": { + "node_modules/postcss-ordered-values": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.0.2.tgz", "integrity": "sha512-8AFYDSOYWebJYLyJi3fyjl6CqMEG/UVworjiyK1r573I56kb3e879sCJLGvR3merj+fAdPpVplXKQZv+ey6CgQ==", "dev": true, - "requires": { + "dependencies": { "cssnano-utils": "^2.0.1", "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-overflow-shorthand": { + "node_modules/postcss-overflow-shorthand": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-2.0.0.tgz", "integrity": "sha512-aK0fHc9CBNx8jbzMYhshZcEv8LtYnBIRYQD5i7w/K/wS9c2+0NSR6B3OVMu5y0hBHYLcMGjfU+dmWYNKH0I85g==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-overflow-shorthand/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-overflow-shorthand/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-overflow-shorthand/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-page-break": { + "node_modules/postcss-page-break": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-2.0.0.tgz", "integrity": "sha512-tkpTSrLpfLfD9HvgOlJuigLuk39wVTbbd8RKcy8/ugV2bNBUW3xU+AIqyxhDrQr1VUj1RmyJrBn1YWrqUm9zAQ==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2" + } + }, + "node_modules/postcss-page-break/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-page-break/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-page-break/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-place": { + "node_modules/postcss-place": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-4.0.1.tgz", "integrity": "sha512-Zb6byCSLkgRKLODj/5mQugyuj9bvAAw9LqJJjgwz5cYryGeXfFZfSXoP1UfveccFmeq0b/2xxwcTEVScnqGxBg==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2", "postcss-values-parser": "^2.0.0" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-place/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-place/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-place/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-preset-env": { + "node_modules/postcss-preset-env": { "version": "6.7.0", "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-6.7.0.tgz", "integrity": "sha512-eU4/K5xzSFwUFJ8hTdTQzo2RBLbDVt83QZrAvI07TULOkmyQlnYlpwep+2yIK+K+0KlZO4BvFcleOCCcUtwchg==", "dev": true, - "requires": { + "dependencies": { "autoprefixer": "^9.6.1", "browserslist": "^4.6.4", "caniuse-lite": "^1.0.30000981", @@ -9671,305 +12782,415 @@ "postcss-selector-matches": "^4.0.0", "postcss-selector-not": "^4.0.0" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-preset-env/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-preset-env/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-preset-env/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-pseudo-class-any-link": { + "node_modules/postcss-pseudo-class-any-link": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-6.0.0.tgz", "integrity": "sha512-lgXW9sYJdLqtmw23otOzrtbDXofUdfYzNm4PIpNE322/swES3VU9XlXHeJS46zT2onFO7V1QFdD4Q9LiZj8mew==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2", "postcss-selector-parser": "^5.0.0-rc.3" }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-pseudo-class-any-link/node_modules/cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-pseudo-class-any-link/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-pseudo-class-any-link/node_modules/postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, "dependencies": { - "cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true - }, - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "requires": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-pseudo-class-any-link/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-pseudo-class-any-link/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-reduce-initial": { + "node_modules/postcss-reduce-initial": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.0.1.tgz", "integrity": "sha512-zlCZPKLLTMAqA3ZWH57HlbCjkD55LX9dsRyxlls+wfuRfqCi5mSlZVan0heX5cHr154Dq9AfbH70LyhrSAezJw==", "dev": true, - "requires": { + "dependencies": { "browserslist": "^4.16.0", "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-reduce-transforms": { + "node_modules/postcss-reduce-transforms": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.0.1.tgz", "integrity": "sha512-a//FjoPeFkRuAguPscTVmRQUODP+f3ke2HqFNgGPwdYnpeC29RZdCBvGRGTsKpMURb/I3p6jdKoBQ2zI+9Q7kA==", "dev": true, - "requires": { + "dependencies": { "cssnano-utils": "^2.0.1", "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-replace-overflow-wrap": { + "node_modules/postcss-replace-overflow-wrap": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-3.0.0.tgz", "integrity": "sha512-2T5hcEHArDT6X9+9dVSPQdo7QHzG4XKclFT8rU5TzJPDN7RIRTbO9c4drUISOVemLj03aezStHCR2AIcr8XLpw==", "dev": true, - "requires": { + "dependencies": { "postcss": "^7.0.2" + } + }, + "node_modules/postcss-replace-overflow-wrap/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-replace-overflow-wrap/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-replace-overflow-wrap/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-selector-matches": { + "node_modules/postcss-selector-matches": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/postcss-selector-matches/-/postcss-selector-matches-4.0.0.tgz", "integrity": "sha512-LgsHwQR/EsRYSqlwdGzeaPKVT0Ml7LAT6E75T8W8xLJY62CE4S/l03BWIt3jT8Taq22kXP08s2SfTSzaraoPww==", "dev": true, - "requires": { + "dependencies": { "balanced-match": "^1.0.0", "postcss": "^7.0.2" + } + }, + "node_modules/postcss-selector-matches/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-selector-matches/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-selector-matches/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-selector-not": { + "node_modules/postcss-selector-not": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-4.0.1.tgz", "integrity": "sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==", "dev": true, - "requires": { + "dependencies": { "balanced-match": "^1.0.0", "postcss": "^7.0.2" + } + }, + "node_modules/postcss-selector-not/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-selector-not/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-selector-not/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "postcss-selector-parser": { + "node_modules/postcss-selector-parser": { "version": "6.0.6", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.6.tgz", "integrity": "sha512-9LXrvaaX3+mcv5xkg5kFwqSzSH1JIObIx51PrndZwlmznwXRfxMddDvo9gve3gVR8ZTKgoFDdWkbRFmEhT4PMg==", "dev": true, - "requires": { + "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" } }, - "postcss-svgo": { + "node_modules/postcss-svgo": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.0.2.tgz", "integrity": "sha512-YzQuFLZu3U3aheizD+B1joQ94vzPfE6BNUcSYuceNxlVnKKsOtdo6hL9/zyC168Q8EwfLSgaDSalsUGa9f2C0A==", "dev": true, - "requires": { + "dependencies": { "postcss-value-parser": "^4.1.0", "svgo": "^2.3.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-unique-selectors": { + "node_modules/postcss-unique-selectors": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.0.1.tgz", "integrity": "sha512-gwi1NhHV4FMmPn+qwBNuot1sG1t2OmacLQ/AX29lzyggnjd+MnVD5uqQmpXO3J17KGL2WAxQruj1qTd3H0gG/w==", "dev": true, - "requires": { + "dependencies": { "alphanum-sort": "^1.0.2", "postcss-selector-parser": "^6.0.5", "uniqs": "^2.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "postcss-value-parser": { + "node_modules/postcss-value-parser": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz", "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==", "dev": true }, - "postcss-values-parser": { + "node_modules/postcss-values-parser": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/postcss-values-parser/-/postcss-values-parser-2.0.1.tgz", "integrity": "sha512-2tLuBsA6P4rYTNKCXYG/71C7j1pU6pK503suYOmn4xYrQIzW+opD+7FAFNuGSdZC/3Qfy334QbeMu7MEb8gOxg==", "dev": true, - "requires": { + "dependencies": { "flatten": "^1.0.2", "indexes-of": "^1.0.1", "uniq": "^1.0.1" + }, + "engines": { + "node": ">=6.14.4" } }, - "pretty-bytes": { + "node_modules/pretty-bytes": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.1", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, - "promise-inflight": { + "node_modules/promise-inflight": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", "dev": true }, - "promise-retry": { + "node_modules/promise-retry": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", "dev": true, - "requires": { + "dependencies": { "err-code": "^2.0.2", "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" } }, - "protractor": { + "node_modules/protractor": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/protractor/-/protractor-7.0.0.tgz", "integrity": "sha512-UqkFjivi4GcvUQYzqGYNe0mLzfn5jiLmO8w9nMhQoJRLhy2grJonpga2IWhI6yJO30LibWXJJtA4MOIZD2GgZw==", + "deprecated": "We have news to share - Protractor is deprecated and will reach end-of-life by Summer 2023. To learn more and find out about other options please refer to this post on the Angular blog. Thank you for using and contributing to Protractor. https://goo.gle/state-of-e2e-in-angular", "dev": true, - "requires": { + "dependencies": { "@types/q": "^0.0.32", "@types/selenium-webdriver": "^3.0.0", "blocking-proxy": "^1.0.0", @@ -9986,442 +13207,566 @@ "webdriver-manager": "^12.1.7", "yargs": "^15.3.1" }, + "bin": { + "protractor": "bin/protractor", + "webdriver-manager": "bin/webdriver-manager" + }, + "engines": { + "node": ">=10.13.x" + } + }, + "node_modules/protractor/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - } - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "dev": true, - "requires": { - "source-map": "^0.5.6" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - } - } - }, - "y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - } - }, - "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/protractor/node_modules/cliui/node_modules/ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/protractor/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/protractor/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "dependencies": { + "source-map": "^0.5.6" + } + }, + "node_modules/protractor/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/protractor/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/protractor/node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/protractor/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" } }, - "proxy-addr": { + "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", "dev": true, - "requires": { + "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" } }, - "prr": { + "node_modules/prr": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", "dev": true }, - "psl": { + "node_modules/psl": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", "dev": true }, - "pump": { + "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "dev": true, - "requires": { + "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, - "punycode": { + "node_modules/punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "q": { + "node_modules/q": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.6.0", + "teleport": ">=0.2.0" + } }, - "qjobs": { + "node_modules/qjobs": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.9" + } }, - "qs": { + "node_modules/qs": { "version": "6.7.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.6" + } }, - "querystring": { + "node_modules/querystring": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true + "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", + "dev": true, + "engines": { + "node": ">=0.4.x" + } }, - "querystringify": { + "node_modules/querystringify": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", "dev": true }, - "queue-microtask": { + "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "randombytes": { + "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, - "requires": { + "dependencies": { "safe-buffer": "^5.1.0" } }, - "range-parser": { + "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "raw-body": { + "node_modules/raw-body": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", "dev": true, - "requires": { + "dependencies": { "bytes": "3.1.0", "http-errors": "1.7.2", "iconv-lite": "0.4.24", "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" } }, - "read-cache": { + "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", "integrity": "sha1-5mTvMRYRZsl1HNvo28+GtftY93Q=", "dev": true, - "requires": { + "dependencies": { "pify": "^2.3.0" } }, - "read-package-json-fast": { + "node_modules/read-package-json-fast": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-2.0.3.tgz", "integrity": "sha512-W/BKtbL+dUjTuRL2vziuYhp76s5HZ9qQhd/dKfWIZveD0O40453QNyZhC0e63lqZrAQ4jiOapVoeJ7JrszenQQ==", "dev": true, - "requires": { + "dependencies": { "json-parse-even-better-errors": "^2.3.0", "npm-normalize-package-bin": "^1.0.1" + }, + "engines": { + "node": ">=10" } }, - "readable-stream": { + "node_modules/readable-stream": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, - "requires": { + "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, - "readdirp": { + "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, - "requires": { + "dependencies": { "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" } }, - "reflect-metadata": { + "node_modules/reflect-metadata": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==", "dev": true }, - "regenerate": { + "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", "dev": true }, - "regenerate-unicode-properties": { + "node_modules/regenerate-unicode-properties": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz", "integrity": "sha512-F9DjY1vKLo/tPePDycuH3dn9H1OTPIkVD9Kz4LODu+F2C75mgjAJ7x/gwy6ZcSNRAAkhNlJSOHRe8k3p+K9WhA==", "dev": true, - "requires": { + "dependencies": { "regenerate": "^1.4.0" + }, + "engines": { + "node": ">=4" } }, - "regenerator-runtime": { + "node_modules/regenerator-runtime": { "version": "0.13.9", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", "dev": true }, - "regenerator-transform": { + "node_modules/regenerator-transform": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz", "integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==", "dev": true, - "requires": { + "dependencies": { "@babel/runtime": "^7.8.4" } }, - "regex-not": { + "node_modules/regex-not": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", "dev": true, - "requires": { + "dependencies": { "extend-shallow": "^3.0.2", "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "regex-parser": { + "node_modules/regex-parser": { "version": "2.2.11", "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz", "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==", "dev": true }, - "regexp.prototype.flags": { + "node_modules/regexp.prototype.flags": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.1.tgz", "integrity": "sha512-JiBdRBq91WlY7uRJ0ds7R+dU02i6LKi8r3BuQhNXn+kmeLN+EfHhfjqMRis1zJxnlu88hq/4dx0P2OP3APRTOA==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "regexpu-core": { + "node_modules/regexpu-core": { "version": "4.7.1", "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.7.1.tgz", "integrity": "sha512-ywH2VUraA44DZQuRKzARmw6S66mr48pQVva4LBeRhcOltJ6hExvWly5ZjFLYo67xbIxb6W1q4bAGtgfEl20zfQ==", "dev": true, - "requires": { + "dependencies": { "regenerate": "^1.4.0", "regenerate-unicode-properties": "^8.2.0", "regjsgen": "^0.5.1", "regjsparser": "^0.6.4", "unicode-match-property-ecmascript": "^1.0.4", "unicode-match-property-value-ecmascript": "^1.2.0" + }, + "engines": { + "node": ">=4" } }, - "regjsgen": { + "node_modules/regjsgen": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz", "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==", "dev": true }, - "regjsparser": { + "node_modules/regjsparser": { "version": "0.6.9", "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.9.tgz", "integrity": "sha512-ZqbNRz1SNjLAiYuwY0zoXW8Ne675IX5q+YHioAGbCw4X96Mjl2+dcX9B2ciaeyYjViDAfvIjFpQjJgLttTEERQ==", "dev": true, - "requires": { + "dependencies": { "jsesc": "~0.5.0" }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true - } + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" } }, - "remove-trailing-separator": { + "node_modules/remove-trailing-separator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", "dev": true }, - "repeat-element": { + "node_modules/repeat-element": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "repeat-string": { + "node_modules/repeat-string": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10" + } }, - "request": { + "node_modules/request": { "version": "2.88.2", "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", "dev": true, - "requires": { + "dependencies": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", "caseless": "~0.12.0", @@ -10443,399 +13788,547 @@ "tunnel-agent": "^0.6.0", "uuid": "^3.3.2" }, - "dependencies": { - "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true - }, - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "dev": true - } + "engines": { + "node": ">= 6" + } + }, + "node_modules/request/node_modules/qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/request/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "dev": true, + "bin": { + "uuid": "bin/uuid" } }, - "require-directory": { + "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "require-from-string": { + "node_modules/require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "require-main-filename": { + "node_modules/require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, - "requires-port": { + "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", "dev": true }, - "resolve": { + "node_modules/resolve": { "version": "1.20.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", "dev": true, - "requires": { + "dependencies": { "is-core-module": "^2.2.0", "path-parse": "^1.0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "resolve-cwd": { + "node_modules/resolve-cwd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", "dev": true, - "requires": { + "dependencies": { "resolve-from": "^3.0.0" }, - "dependencies": { - "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", - "dev": true - } + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "dev": true, + "engines": { + "node": ">=4" } }, - "resolve-from": { + "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "resolve-url": { + "node_modules/resolve-url": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "deprecated": "https://github.com/lydell/resolve-url#deprecated", "dev": true }, - "resolve-url-loader": { + "node_modules/resolve-url-loader": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz", "integrity": "sha512-05VEMczVREcbtT7Bz+C+96eUO5HDNvdthIiMB34t7FcF8ehcu4wC0sSgPUubs3XW2Q3CNLJk/BJrCU9wVRymiA==", "dev": true, - "requires": { + "dependencies": { "adjust-sourcemap-loader": "^4.0.0", "convert-source-map": "^1.7.0", "loader-utils": "^2.0.0", "postcss": "^7.0.35", "source-map": "0.6.1" }, - "dependencies": { - "postcss": { - "version": "7.0.36", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", - "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "source-map": "^0.6.1", - "supports-color": "^6.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "engines": { + "node": ">=8.9" + }, + "peerDependencies": { + "rework": "1.0.1", + "rework-visit": "1.0.0" + }, + "peerDependenciesMeta": { + "rework": { + "optional": true }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } + "rework-visit": { + "optional": true } } }, - "restore-cursor": { + "node_modules/resolve-url-loader/node_modules/postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/resolve-url-loader/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-url-loader/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/restore-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", "dev": true, - "requires": { + "dependencies": { "onetime": "^5.1.0", "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" } }, - "ret": { + "node_modules/ret": { "version": "0.1.15", "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.12" + } }, - "retry": { + "node_modules/retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", "integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=", - "dev": true + "dev": true, + "engines": { + "node": ">= 4" + } }, - "reusify": { + "node_modules/reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } }, - "rfdc": { + "node_modules/rfdc": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", "dev": true }, - "rimraf": { + "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, - "requires": { + "dependencies": { "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "run-async": { + "node_modules/run-async": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.12.0" + } }, - "run-parallel": { + "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, - "requires": { + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { "queue-microtask": "^1.2.2" } }, - "rxjs": { + "node_modules/rxjs": { "version": "7.3.0", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.3.0.tgz", "integrity": "sha512-p2yuGIg9S1epc3vrjKf6iVb3RCaAYjYskkO+jHIaV0IjOPlJop4UnodOoFb2xeNwlguqLYvGw1b1McillYb5Gw==", - "requires": { - "tslib": "~2.1.0" - }, "dependencies": { - "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" - } + "tslib": "~2.1.0" } }, - "safe-buffer": { + "node_modules/rxjs/node_modules/tslib": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", + "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" + }, + "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true }, - "safe-regex": { + "node_modules/safe-regex": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", "dev": true, - "requires": { + "dependencies": { "ret": "~0.1.10" } }, - "safer-buffer": { + "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, - "sass": { + "node_modules/sass": { "version": "1.36.0", "resolved": "https://registry.npmjs.org/sass/-/sass-1.36.0.tgz", "integrity": "sha512-fQzEjipfOv5kh930nu3Imzq3ie/sGDc/4KtQMJlt7RRdrkQSfe37Bwi/Rf/gfuYHsIuE1fIlDMvpyMcEwjnPvg==", "dev": true, - "requires": { + "dependencies": { "chokidar": ">=3.0.0 <4.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=8.9.0" } }, - "sass-loader": { + "node_modules/sass-loader": { "version": "12.1.0", "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.1.0.tgz", "integrity": "sha512-FVJZ9kxVRYNZTIe2xhw93n3xJNYZADr+q69/s98l9nTCrWASo+DR2Ot0s5xTKQDDEosUkatsGeHxcH4QBp5bSg==", "dev": true, - "requires": { + "dependencies": { "klona": "^2.0.4", "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "fibers": ">= 3.1.0", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0", + "sass": "^1.3.0", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "fibers": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + } } }, - "saucelabs": { + "node_modules/saucelabs": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/saucelabs/-/saucelabs-1.5.0.tgz", "integrity": "sha512-jlX3FGdWvYf4Q3LFfFWS1QvPg3IGCGWxIc8QBFdPTbpTJnt/v17FHXYVAn7C8sHf1yUXo2c7yIM0isDryfYtHQ==", "dev": true, - "requires": { + "dependencies": { "https-proxy-agent": "^2.2.1" }, + "engines": { + "node": "*" + } + }, + "node_modules/saucelabs/node_modules/agent-base": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", + "dev": true, + "dependencies": { + "es6-promisify": "^5.0.0" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/saucelabs/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, "dependencies": { - "agent-base": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", - "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", - "dev": true, - "requires": { - "es6-promisify": "^5.0.0" - } - }, - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "https-proxy-agent": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", - "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", - "dev": true, - "requires": { - "agent-base": "^4.3.0", - "debug": "^3.1.0" - } - } + "ms": "^2.1.1" + } + }, + "node_modules/saucelabs/node_modules/https-proxy-agent": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", + "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", + "dev": true, + "dependencies": { + "agent-base": "^4.3.0", + "debug": "^3.1.0" + }, + "engines": { + "node": ">= 4.5.0" } }, - "sax": { + "node_modules/sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true }, - "schema-utils": { + "node_modules/schema-utils": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", "dev": true, - "requires": { + "dependencies": { "@types/json-schema": "^7.0.5", "ajv": "^6.12.4", "ajv-keywords": "^3.5.2" }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/schema-utils/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - } + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/schema-utils/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" } }, - "select-hose": { + "node_modules/schema-utils/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/select-hose": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=", "dev": true }, - "selenium-webdriver": { + "node_modules/selenium-webdriver": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-3.6.0.tgz", "integrity": "sha512-WH7Aldse+2P5bbFBO4Gle/nuQOdVwpHMTL6raL3uuBj/vPG07k6uzt3aiahu352ONBr5xXh0hDlM3LhtXPOC4Q==", "dev": true, - "requires": { + "dependencies": { "jszip": "^3.1.3", "rimraf": "^2.5.4", "tmp": "0.0.30", "xml2js": "^0.4.17" }, + "engines": { + "node": ">= 6.9.0" + } + }, + "node_modules/selenium-webdriver/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, "dependencies": { - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "tmp": { - "version": "0.0.30", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.30.tgz", - "integrity": "sha1-ckGdSovn1s51FI/YsyTlk6cRwu0=", - "dev": true, - "requires": { - "os-tmpdir": "~1.0.1" - } - } + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/selenium-webdriver/node_modules/tmp": { + "version": "0.0.30", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.30.tgz", + "integrity": "sha1-ckGdSovn1s51FI/YsyTlk6cRwu0=", + "dev": true, + "dependencies": { + "os-tmpdir": "~1.0.1" + }, + "engines": { + "node": ">=0.4.0" } }, - "selfsigned": { + "node_modules/selfsigned": { "version": "1.10.11", "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.11.tgz", "integrity": "sha512-aVmbPOfViZqOZPgRBT0+3u4yZFHpmnIghLMlAcb5/xhp5ZtB/RVnKhz5vl2M32CLXAqR4kha9zfhNg0Lf/sxKA==", "dev": true, - "requires": { + "dependencies": { "node-forge": "^0.10.0" } }, - "semver": { + "node_modules/semver": { "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", "dev": true, - "requires": { + "dependencies": { "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "semver-dsl": { + "node_modules/semver-dsl": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/semver-dsl/-/semver-dsl-1.0.1.tgz", "integrity": "sha1-02eN5VVeimH2Ke7QJTZq5fJzQKA=", "dev": true, - "requires": { - "semver": "^5.3.0" - }, "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - } + "semver": "^5.3.0" + } + }, + "node_modules/semver-dsl/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" } }, - "send": { + "node_modules/send": { "version": "0.17.1", "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", "dev": true, - "requires": { + "dependencies": { "debug": "2.6.9", "depd": "~1.1.2", "destroy": "~1.0.4", @@ -10850,53 +14343,58 @@ "range-parser": "~1.2.1", "statuses": "~1.5.0" }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - } + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/send/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" } }, - "serialize-javascript": { + "node_modules/send/node_modules/ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + }, + "node_modules/serialize-javascript": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", "dev": true, - "requires": { + "dependencies": { "randombytes": "^2.1.0" } }, - "serve-index": { + "node_modules/serve-index": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", "dev": true, - "requires": { + "dependencies": { "accepts": "~1.3.4", "batch": "0.6.1", "debug": "2.6.9", @@ -10905,155 +14403,188 @@ "mime-types": "~2.1.17", "parseurl": "~1.3.2" }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-index/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", - "dev": true, - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", - "dev": true - } + "ms": "2.0.0" + } + }, + "node_modules/serve-index/node_modules/http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", + "dev": true, + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + }, + "engines": { + "node": ">= 0.6" } }, - "serve-static": { + "node_modules/serve-index/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "node_modules/serve-index/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/serve-index/node_modules/setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true + }, + "node_modules/serve-static": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", "dev": true, - "requires": { + "dependencies": { "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "parseurl": "~1.3.3", "send": "0.17.1" + }, + "engines": { + "node": ">= 0.8.0" } }, - "set-blocking": { + "node_modules/set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, - "set-immediate-shim": { + "node_modules/set-immediate-shim": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "set-value": { + "node_modules/set-value": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", "dev": true, - "requires": { + "dependencies": { "extend-shallow": "^2.0.1", "is-extendable": "^0.1.1", "is-plain-object": "^2.0.3", "split-string": "^3.0.1" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - } + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "setprototypeof": { + "node_modules/setprototypeof": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", "dev": true }, - "shallow-clone": { + "node_modules/shallow-clone": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", "dev": true, - "requires": { + "dependencies": { "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" } }, - "shebang-command": { + "node_modules/shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dev": true, - "requires": { + "dependencies": { "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "shebang-regex": { + "node_modules/shebang-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "signal-exit": { + "node_modules/signal-exit": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", "dev": true }, - "slash": { + "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "smart-buffer": { + "node_modules/smart-buffer": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } }, - "snapdragon": { + "node_modules/snapdragon": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", "dev": true, - "requires": { + "dependencies": { "base": "^0.11.1", "debug": "^2.2.0", "define-property": "^0.2.5", @@ -11063,361 +14594,434 @@ "source-map-resolve": "^0.5.0", "use": "^3.1.0" }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "source-map-resolve": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", - "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", - "dev": true, - "requires": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - } + "engines": { + "node": ">=0.10.0" } }, - "snapdragon-node": { + "node_modules/snapdragon-node": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", "dev": true, - "requires": { + "dependencies": { "define-property": "^1.0.0", "isobject": "^3.0.0", "snapdragon-util": "^3.0.1" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - } + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "snapdragon-util": { + "node_modules/snapdragon-util": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", "dev": true, - "requires": { + "dependencies": { "kind-of": "^3.2.0" }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "engines": { + "node": ">=0.10.0" } }, - "socket.io": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.4.1.tgz", - "integrity": "sha512-s04vrBswdQBUmuWJuuNTmXUVJhP0cVky8bBDhdkf8y0Ptsu7fKU2LuLbts9g+pdmAdyMMn8F/9Mf1/wbtUN0fg==", + "node_modules/snapdragon-util/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, - "requires": { - "accepts": "~1.3.4", - "base64id": "~2.0.0", - "debug": "~4.3.2", - "engine.io": "~6.1.0", - "socket.io-adapter": "~2.3.3", - "socket.io-parser": "~4.0.4" + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" } }, - "socket.io-adapter": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.3.3.tgz", - "integrity": "sha512-Qd/iwn3VskrpNO60BeRyCyr8ZWw9CPZyitW4AQwmRZ8zCiyDiL+znRnWX6tDHXnWn1sJrM1+b6Mn6wEDJJ4aYQ==", - "dev": true - }, - "socket.io-parser": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.0.4.tgz", - "integrity": "sha512-t+b0SS+IxG7Rxzda2EVvyBZbvFPBCjJoyHuE0P//7OAsN23GItzDRdWa6ALxZI/8R5ygK7jAR6t028/z+7295g==", + "node_modules/snapdragon/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, - "requires": { - "@types/component-emitter": "^1.2.10", - "component-emitter": "~1.3.0", - "debug": "~4.3.1" + "dependencies": { + "ms": "2.0.0" } }, - "sockjs": { - "version": "0.3.21", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.21.tgz", - "integrity": "sha512-DhbPFGpxjc6Z3I+uX07Id5ZO2XwYsWOrYjaSeieES78cq+JaJvVe5q/m1uvjIQhXinhIeCFRH6JgXe+mvVMyXw==", + "node_modules/snapdragon/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, - "requires": { - "faye-websocket": "^0.11.3", - "uuid": "^3.4.0", - "websocket-driver": "^0.7.4" - }, "dependencies": { - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "dev": true - } + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "sockjs-client": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.5.2.tgz", - "integrity": "sha512-ZzRxPBISQE7RpzlH4tKJMQbHM9pabHluk0WBaxAQ+wm/UieeBVBou0p4wVnSQGN9QmpAZygQ0cDIypWuqOFmFQ==", + "node_modules/snapdragon/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, - "requires": { - "debug": "^3.2.6", - "eventsource": "^1.0.7", - "faye-websocket": "^0.11.3", - "inherits": "^2.0.4", - "json3": "^3.3.3", - "url-parse": "^1.5.3" + "dependencies": { + "is-extendable": "^0.1.0" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" } }, - "socks": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.6.1.tgz", - "integrity": "sha512-kLQ9N5ucj8uIcxrDwjm0Jsqk06xdpBjGNQtpXy4Q8/QY2k+fY7nZH8CARy+hkbG+SGAovmzzuauCpBlb8FrnBA==", + "node_modules/snapdragon/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, - "requires": { - "ip": "^1.1.5", - "smart-buffer": "^4.1.0" + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" } }, - "socks-proxy-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.0.0.tgz", - "integrity": "sha512-FIgZbQWlnjVEQvMkylz64/rUggGtrKstPnx8OZyYFG0tAFR8CSBtpXxSwbFLHyeXFn/cunFL7MpuSOvDSOPo9g==", + "node_modules/snapdragon/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", "dev": true, - "requires": { + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/snapdragon/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "dev": true, + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "node_modules/socket.io": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.4.1.tgz", + "integrity": "sha512-s04vrBswdQBUmuWJuuNTmXUVJhP0cVky8bBDhdkf8y0Ptsu7fKU2LuLbts9g+pdmAdyMMn8F/9Mf1/wbtUN0fg==", + "dev": true, + "dependencies": { + "accepts": "~1.3.4", + "base64id": "~2.0.0", + "debug": "~4.3.2", + "engine.io": "~6.1.0", + "socket.io-adapter": "~2.3.3", + "socket.io-parser": "~4.0.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-adapter": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.3.3.tgz", + "integrity": "sha512-Qd/iwn3VskrpNO60BeRyCyr8ZWw9CPZyitW4AQwmRZ8zCiyDiL+znRnWX6tDHXnWn1sJrM1+b6Mn6wEDJJ4aYQ==", + "dev": true + }, + "node_modules/socket.io-parser": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.0.4.tgz", + "integrity": "sha512-t+b0SS+IxG7Rxzda2EVvyBZbvFPBCjJoyHuE0P//7OAsN23GItzDRdWa6ALxZI/8R5ygK7jAR6t028/z+7295g==", + "dev": true, + "dependencies": { + "@types/component-emitter": "^1.2.10", + "component-emitter": "~1.3.0", + "debug": "~4.3.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/sockjs": { + "version": "0.3.21", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.21.tgz", + "integrity": "sha512-DhbPFGpxjc6Z3I+uX07Id5ZO2XwYsWOrYjaSeieES78cq+JaJvVe5q/m1uvjIQhXinhIeCFRH6JgXe+mvVMyXw==", + "dev": true, + "dependencies": { + "faye-websocket": "^0.11.3", + "uuid": "^3.4.0", + "websocket-driver": "^0.7.4" + } + }, + "node_modules/sockjs-client": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.5.2.tgz", + "integrity": "sha512-ZzRxPBISQE7RpzlH4tKJMQbHM9pabHluk0WBaxAQ+wm/UieeBVBou0p4wVnSQGN9QmpAZygQ0cDIypWuqOFmFQ==", + "dev": true, + "dependencies": { + "debug": "^3.2.6", + "eventsource": "^1.0.7", + "faye-websocket": "^0.11.3", + "inherits": "^2.0.4", + "json3": "^3.3.3", + "url-parse": "^1.5.3" + } + }, + "node_modules/sockjs-client/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/sockjs/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "dev": true, + "bin": { + "uuid": "bin/uuid" + } + }, + "node_modules/socks": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.6.1.tgz", + "integrity": "sha512-kLQ9N5ucj8uIcxrDwjm0Jsqk06xdpBjGNQtpXy4Q8/QY2k+fY7nZH8CARy+hkbG+SGAovmzzuauCpBlb8FrnBA==", + "dev": true, + "dependencies": { + "ip": "^1.1.5", + "smart-buffer": "^4.1.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks-proxy-agent": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.0.0.tgz", + "integrity": "sha512-FIgZbQWlnjVEQvMkylz64/rUggGtrKstPnx8OZyYFG0tAFR8CSBtpXxSwbFLHyeXFn/cunFL7MpuSOvDSOPo9g==", + "dev": true, + "dependencies": { "agent-base": "^6.0.2", "debug": "^4.3.1", "socks": "^2.6.1" + }, + "engines": { + "node": ">= 10" } }, - "source-list-map": { + "node_modules/source-list-map": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", "dev": true }, - "source-map": { + "node_modules/source-map": { "version": "0.7.3", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true + "dev": true, + "engines": { + "node": ">= 8" + } }, - "source-map-js": { + "node_modules/source-map-js": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-0.6.2.tgz", "integrity": "sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "source-map-loader": { + "node_modules/source-map-loader": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-3.0.0.tgz", "integrity": "sha512-GKGWqWvYr04M7tn8dryIWvb0s8YM41z82iQv01yBtIylgxax0CwvSy6gc2Y02iuXwEfGWRlMicH0nvms9UZphw==", "dev": true, - "requires": { + "dependencies": { "abab": "^2.0.5", "iconv-lite": "^0.6.2", "source-map-js": "^0.6.2" }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/source-map-loader/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, "dependencies": { - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "source-map-resolve": { + "node_modules/source-map-resolve": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", "dev": true, - "requires": { + "dependencies": { "atob": "^2.1.2", "decode-uri-component": "^0.2.0" } }, - "source-map-support": { + "node_modules/source-map-support": { "version": "0.5.19", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", "dev": true, - "requires": { + "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } } }, - "source-map-url": { + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-url": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "deprecated": "See https://github.com/lydell/source-map-url#deprecated", "dev": true }, - "sourcemap-codec": { + "node_modules/sourcemap-codec": { "version": "1.4.8", "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "deprecated": "Please use @jridgewell/sourcemap-codec instead", "dev": true }, - "spdy": { + "node_modules/spdy": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", "dev": true, - "requires": { + "dependencies": { "debug": "^4.1.0", "handle-thing": "^2.0.0", "http-deceiver": "^1.2.7", "select-hose": "^2.0.0", "spdy-transport": "^3.0.0" + }, + "engines": { + "node": ">=6.0.0" } }, - "spdy-transport": { + "node_modules/spdy-transport": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", "dev": true, - "requires": { + "dependencies": { "debug": "^4.1.0", "detect-node": "^2.0.4", "hpack.js": "^2.1.6", @@ -11426,42 +15030,46 @@ "wbuf": "^1.7.3" } }, - "split-string": { + "node_modules/split-string": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", "dev": true, - "requires": { + "dependencies": { "extend-shallow": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "sprintf-js": { + "node_modules/sprintf-js": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", "dev": true }, - "sql-formatter": { + "node_modules/sql-formatter": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/sql-formatter/-/sql-formatter-4.0.2.tgz", "integrity": "sha512-R6u9GJRiXZLr/lDo8p56L+OyyN2QFJPCDnsyEOsbdIpsnDKL8gubYFo7lNR7Zx7hfdWT80SfkoVS0CMaF/DE2w==", - "requires": { + "dependencies": { "argparse": "^2.0.1" }, - "dependencies": { - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - } + "bin": { + "sql-formatter": "bin/sqlfmt.js" } }, - "sshpk": { + "node_modules/sql-formatter/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/sshpk": { "version": "1.16.1", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", "dev": true, - "requires": { + "dependencies": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", "bcrypt-pbkdf": "^1.0.0", @@ -11471,194 +15079,273 @@ "jsbn": "~0.1.0", "safer-buffer": "^2.0.2", "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" } }, - "ssri": { + "node_modules/ssri": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.1.1" + }, + "engines": { + "node": ">= 8" } }, - "stable": { + "node_modules/stable": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility", "dev": true }, - "static-extend": { + "node_modules/static-extend": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", "dev": true, - "requires": { + "dependencies": { "define-property": "^0.2.5", "object-copy": "^0.1.0" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - } - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "statuses": { + "node_modules/statuses": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "streamroller": { + "node_modules/streamroller": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.0.4.tgz", "integrity": "sha512-GI9NzeD+D88UFuIlJkKNDH/IsuR+qIN7Qh8EsmhoRZr9bQoehTraRgwtLUkZbpcAw+hLPfHOypmppz8YyGK68w==", "dev": true, - "requires": { + "dependencies": { "date-format": "^4.0.4", "debug": "^4.3.3", "fs-extra": "^10.0.1" }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/streamroller/node_modules/debug": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", + "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", + "dev": true, "dependencies": { - "debug": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", - "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", - "dev": true, - "requires": { - "ms": "2.1.2" - } + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true } } }, - "string-width": { + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/string-width": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", "dev": true, - "requires": { + "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.0" - } - }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "requires": { - "safe-buffer": "~5.2.0" }, - "dependencies": { - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - } + "engines": { + "node": ">=8" } }, - "strip-ansi": { + "node_modules/strip-ansi": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", "dev": true, - "requires": { + "dependencies": { "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" } }, - "strip-eof": { + "node_modules/strip-eof": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "style-loader": { + "node_modules/style-loader": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.2.1.tgz", "integrity": "sha512-1k9ZosJCRFaRbY6hH49JFlRB0fVSbmnyq1iTPjNxUmGVjBNEmwrrHPenhlp+Lgo51BojHSf6pl2FcqYaN3PfVg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } }, - "stylehacks": { + "node_modules/stylehacks": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.0.1.tgz", "integrity": "sha512-Es0rVnHIqbWzveU1b24kbw92HsebBepxfcqe5iix7t9j0PQqhs0IxXVXv0pY2Bxa08CgMkzD6OWql7kbGOuEdA==", "dev": true, - "requires": { + "dependencies": { "browserslist": "^4.16.0", "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" } }, - "stylus": { + "node_modules/stylus": { "version": "0.54.8", "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.54.8.tgz", "integrity": "sha512-vr54Or4BZ7pJafo2mpf0ZcwA74rpuYCZbxrHBsH8kbcXOwSfvBFwsRfpGO5OD5fhG5HDCFW737PKaawI7OqEAg==", "dev": true, - "requires": { + "dependencies": { "css-parse": "~2.0.0", "debug": "~3.1.0", "glob": "^7.1.6", @@ -11668,56 +15355,77 @@ "semver": "^6.3.0", "source-map": "^0.7.3" }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "bin": { + "stylus": "bin/stylus" + }, + "engines": { + "node": "*" } }, - "stylus-loader": { + "node_modules/stylus-loader": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/stylus-loader/-/stylus-loader-6.1.0.tgz", "integrity": "sha512-qKO34QCsOtSJrXxQQmXsPeaVHh6hMumBAFIoJTcsSr2VzrA6o/CW9HCGR8spCjzJhN8oKQHdj/Ytx0wwXyElkw==", "dev": true, - "requires": { + "dependencies": { "fast-glob": "^3.2.5", "klona": "^2.0.4", "normalize-path": "^3.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "stylus": ">=0.52.4", + "webpack": "^5.0.0" } }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "node_modules/stylus/node_modules/debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/stylus/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/stylus/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, - "requires": { + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" } }, - "svgo": { + "node_modules/svgo": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.5.0.tgz", "integrity": "sha512-FSdBOOo271VyF/qZnOn1PgwCdt1v4Dx0Sey+U1jgqm1vqRYjPGdip0RGrFW6ItwtkBB8rHgHk26dlVr0uCs82Q==", "dev": true, - "requires": { + "dependencies": { "@trysound/sax": "0.1.1", "colorette": "^1.3.0", "commander": "^7.2.0", @@ -11726,58 +15434,80 @@ "csso": "^4.2.0", "stable": "^0.1.8" }, - "dependencies": { - "commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "dev": true - } + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" } }, - "symbol-observable": { + "node_modules/svgo/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/symbol-observable": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-4.0.0.tgz", "integrity": "sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10" + } }, - "tapable": { + "node_modules/tapable": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.0.tgz", "integrity": "sha512-FBk4IesMV1rBxX2tfiK8RAmogtWn53puLOQlvO8XuwlgxcYbP4mVPS9Ph4aeamSyyVjOl24aYWAuc8U5kCVwMw==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "tar": { + "node_modules/tar": { "version": "6.1.11", "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", "dev": true, - "requires": { + "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", "minipass": "^3.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 10" } }, - "terser": { + "node_modules/terser": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/terser/-/terser-5.7.1.tgz", "integrity": "sha512-b3e+d5JbHAe/JSjwsC3Zn55wsBIM7AsHLjKxT31kGCldgbpFePaFo+PiddtO6uwRZWRw7sPXmAN8dTW61xmnSg==", "dev": true, - "requires": { + "dependencies": { "commander": "^2.20.0", "source-map": "~0.7.2", "source-map-support": "~0.5.19" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" } }, - "terser-webpack-plugin": { + "node_modules/terser-webpack-plugin": { "version": "5.1.4", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.1.4.tgz", "integrity": "sha512-C2WkFwstHDhVEmsmlCxrXUtVklS+Ir1A7twrYzrDrQQOIMOaVAYykaoo/Aq1K0QRkMoY2hhvDQY1cm4jnIMFwA==", "dev": true, - "requires": { + "dependencies": { "jest-worker": "^27.0.2", "p-limit": "^3.1.0", "schema-utils": "^3.0.0", @@ -11785,158 +15515,208 @@ "source-map": "^0.6.1", "terser": "^5.7.0" }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + } + }, + "node_modules/terser-webpack-plugin/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/terser-webpack-plugin/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/terser-webpack-plugin/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" } }, - "text-table": { + "node_modules/terser-webpack-plugin/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, - "through": { + "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", "dev": true }, - "thunky": { + "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", "dev": true }, - "timsort": { + "node_modules/timsort": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=", "dev": true }, - "tmp": { + "node_modules/tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, - "requires": { + "dependencies": { "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" } }, - "to-fast-properties": { + "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "to-object-path": { + "node_modules/to-object-path": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", "dev": true, - "requires": { + "dependencies": { "kind-of": "^3.0.2" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-object-path/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" } }, - "to-regex": { + "node_modules/to-regex": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", "dev": true, - "requires": { + "dependencies": { "define-property": "^2.0.2", "extend-shallow": "^3.0.2", "regex-not": "^1.0.2", "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "to-regex-range": { + "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "requires": { + "dependencies": { "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" } }, - "toidentifier": { + "node_modules/toidentifier": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.6" + } }, - "tough-cookie": { + "node_modules/tough-cookie": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", "dev": true, - "requires": { + "dependencies": { "psl": "^1.1.28", "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" } }, - "tree-kill": { + "node_modules/tree-kill": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", - "dev": true + "dev": true, + "bin": { + "tree-kill": "cli.js" + } }, - "ts-node": { + "node_modules/ts-node": { "version": "10.2.1", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.2.1.tgz", "integrity": "sha512-hCnyOyuGmD5wHleOQX6NIjJtYVIO8bPP8F2acWkB4W06wdlkgyvJtubO/I9NkI88hCFECbsEgoLc0VNkYmcSfw==", "dev": true, - "requires": { + "dependencies": { "@cspotcode/source-map-support": "0.6.1", "@tsconfig/node10": "^1.0.7", "@tsconfig/node12": "^1.0.7", @@ -11949,19 +15729,44 @@ "diff": "^4.0.1", "make-error": "^1.1.1", "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } } }, - "tslib": { + "node_modules/tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, - "tslint": { + "node_modules/tslint": { "version": "6.1.3", "resolved": "https://registry.npmjs.org/tslint/-/tslint-6.1.3.tgz", "integrity": "sha512-IbR4nkT96EQOvKE2PW/djGz8iGNeJ4rF2mBfiYaR/nvUWYKJhLwimoJKgjIFEIDibBtOevj7BqCRL4oHeWWUCg==", + "deprecated": "TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", "chalk": "^2.3.0", @@ -11976,367 +15781,476 @@ "tslib": "^1.13.0", "tsutils": "^2.29.0" }, + "bin": { + "tslint": "bin/tslint" + }, + "engines": { + "node": ">=4.8.0" + }, + "peerDependencies": { + "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev || >= 4.0.0-dev" + } + }, + "node_modules/tslint/node_modules/mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, "dependencies": { - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "tsutils": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", - "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - } - } + "minimist": "^1.2.5" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/tslint/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/tslint/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/tslint/node_modules/tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "peerDependencies": { + "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev" } }, - "tunnel-agent": { + "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "dev": true, - "requires": { + "dependencies": { "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" } }, - "tweetnacl": { + "node_modules/tweetnacl": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", "dev": true }, - "type-fest": { + "node_modules/type-fest": { "version": "0.21.3", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "type-is": { + "node_modules/type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", "dev": true, - "requires": { + "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" } }, - "typescript": { + "node_modules/typescript": { "version": "4.3.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz", "integrity": "sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==", - "dev": true + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } }, - "ua-parser-js": { + "node_modules/ua-parser-js": { "version": "0.7.31", "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz", "integrity": "sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==", - "dev": true + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" + }, + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + } + ], + "engines": { + "node": "*" + } }, - "unicode-canonical-property-names-ecmascript": { + "node_modules/unicode-canonical-property-names-ecmascript": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "unicode-match-property-ecmascript": { + "node_modules/unicode-match-property-ecmascript": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", "dev": true, - "requires": { + "dependencies": { "unicode-canonical-property-names-ecmascript": "^1.0.4", "unicode-property-aliases-ecmascript": "^1.0.4" + }, + "engines": { + "node": ">=4" } }, - "unicode-match-property-value-ecmascript": { + "node_modules/unicode-match-property-value-ecmascript": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz", "integrity": "sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "unicode-property-aliases-ecmascript": { + "node_modules/unicode-property-aliases-ecmascript": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz", "integrity": "sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "union-value": { + "node_modules/union-value": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", "dev": true, - "requires": { + "dependencies": { "arr-union": "^3.1.0", "get-value": "^2.0.6", "is-extendable": "^0.1.1", "set-value": "^2.0.1" }, - "dependencies": { - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - } + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/union-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "uniq": { + "node_modules/uniq": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=", "dev": true }, - "uniqs": { + "node_modules/uniqs": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", "integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=", "dev": true }, - "unique-filename": { + "node_modules/unique-filename": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", "dev": true, - "requires": { + "dependencies": { "unique-slug": "^2.0.0" } }, - "unique-slug": { + "node_modules/unique-slug": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", "dev": true, - "requires": { + "dependencies": { "imurmurhash": "^0.1.4" } }, - "universalify": { + "node_modules/universalify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "dev": true + "dev": true, + "engines": { + "node": ">= 10.0.0" + } }, - "unpipe": { + "node_modules/unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "unset-value": { + "node_modules/unset-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", "dev": true, - "requires": { + "dependencies": { "has-value": "^0.3.1", "isobject": "^3.0.0" }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "dev": true, "dependencies": { - "has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", - "dev": true, - "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", - "dev": true - } + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "upath": { + "node_modules/unset-value/node_modules/has-value/node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/upath": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", - "dev": true + "dev": true, + "engines": { + "node": ">=4", + "yarn": "*" + } }, - "uri-js": { + "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, - "requires": { + "dependencies": { "punycode": "^2.1.0" } }, - "urix": { + "node_modules/urix": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "deprecated": "Please see https://github.com/lydell/urix#deprecated", "dev": true }, - "url": { + "node_modules/url": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", "dev": true, - "requires": { + "dependencies": { "punycode": "1.3.2", "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - } } }, - "url-parse": { + "node_modules/url-parse": { "version": "1.5.10", "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", "dev": true, - "requires": { + "dependencies": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" } }, - "use": { + "node_modules/url/node_modules/punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", + "dev": true + }, + "node_modules/use": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "util-deprecate": { + "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, - "utils-merge": { + "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.4.0" + } }, - "uuid": { + "node_modules/uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true + "dev": true, + "bin": { + "uuid": "dist/bin/uuid" + } }, - "validate-npm-package-name": { + "node_modules/validate-npm-package-name": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz", "integrity": "sha1-X6kS2B630MdK/BQN5zF/DKffQ34=", "dev": true, - "requires": { + "dependencies": { "builtins": "^1.0.3" } }, - "vary": { + "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "vendors": { + "node_modules/vendors": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz", "integrity": "sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==", - "dev": true + "dev": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } }, - "verror": { + "node_modules/verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "dev": true, - "requires": { + "engines": [ + "node >=0.6.0" + ], + "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", "extsprintf": "^1.2.0" } }, - "void-elements": { + "node_modules/void-elements": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", "integrity": "sha1-wGavtYK7HLQSjWDqkjkulNXp2+w=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "watchpack": { + "node_modules/watchpack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz", "integrity": "sha512-up4YAn/XHgZHIxFBVCdlMiWDj6WaLKpwVeGQk2I5thdYxF/KmF0aaz6TfJZ/hfl1h/XlcDr7k1KH7ThDagpFaA==", "dev": true, - "requires": { + "dependencies": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" } }, - "wbuf": { + "node_modules/wbuf": { "version": "1.7.3", "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", "dev": true, - "requires": { + "dependencies": { "minimalistic-assert": "^1.0.0" } }, - "wcwidth": { + "node_modules/wcwidth": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", "integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=", "dev": true, - "requires": { + "dependencies": { "defaults": "^1.0.3" } }, - "webdriver-js-extender": { + "node_modules/webdriver-js-extender": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/webdriver-js-extender/-/webdriver-js-extender-2.1.0.tgz", "integrity": "sha512-lcUKrjbBfCK6MNsh7xaY2UAUmZwe+/ib03AjVOpFobX4O7+83BUveSrLfU0Qsyb1DaKJdQRbuU+kM9aZ6QUhiQ==", "dev": true, - "requires": { + "dependencies": { "@types/selenium-webdriver": "^3.0.0", "selenium-webdriver": "^3.0.1" + }, + "engines": { + "node": ">=6.9.x" } }, - "webdriver-manager": { + "node_modules/webdriver-manager": { "version": "12.1.8", "resolved": "https://registry.npmjs.org/webdriver-manager/-/webdriver-manager-12.1.8.tgz", "integrity": "sha512-qJR36SXG2VwKugPcdwhaqcLQOD7r8P2Xiv9sfNbfZrKBnX243iAkOueX1yAmeNgIKhJ3YAT/F2gq6IiEZzahsg==", "dev": true, - "requires": { + "dependencies": { "adm-zip": "^0.4.9", "chalk": "^1.1.1", "del": "^2.2.0", @@ -12349,78 +16263,103 @@ "semver": "^5.3.0", "xml2js": "^0.4.17" }, + "bin": { + "webdriver-manager": "bin/webdriver-manager" + }, + "engines": { + "node": ">=6.9.x" + } + }, + "node_modules/webdriver-manager/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webdriver-manager/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webdriver-manager/node_modules/chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "webpack": { - "version": "5.50.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.50.0.tgz", - "integrity": "sha512-hqxI7t/KVygs0WRv/kTgUW8Kl3YC81uyWQSo/7WUs5LsuRw0htH/fCwbVBGCuiX/t4s7qzjXFcf41O8Reiypag==", + "node_modules/webdriver-manager/node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + }, + "node_modules/webdriver-manager/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", "dev": true, - "requires": { - "@types/eslint-scope": "^3.7.0", - "@types/estree": "^0.0.50", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/webdriver-manager/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/webdriver-manager/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webdriver-manager/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/webpack": { + "version": "5.50.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.50.0.tgz", + "integrity": "sha512-hqxI7t/KVygs0WRv/kTgUW8Kl3YC81uyWQSo/7WUs5LsuRw0htH/fCwbVBGCuiX/t4s7qzjXFcf41O8Reiypag==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.0", + "@types/estree": "^0.0.50", "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/wasm-edit": "1.11.1", "@webassemblyjs/wasm-parser": "1.11.1", @@ -12444,959 +16383,1244 @@ "watchpack": "^2.2.0", "webpack-sources": "^3.2.0" }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-middleware": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.0.0.tgz", + "integrity": "sha512-9zng2Z60pm6A98YoRcA0wSxw1EYn7B7y5owX/Tckyt9KGyULTkLtiavjaXlWqOMkM0YtqGgL3PvMOFgyFLq8vw==", + "dev": true, + "dependencies": { + "colorette": "^1.2.2", + "mem": "^8.1.1", + "memfs": "^3.2.2", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/webpack-dev-middleware/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server": { + "version": "3.11.2", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-3.11.2.tgz", + "integrity": "sha512-A80BkuHRQfCiNtGBS1EMf2ChTUs0x+B3wGDFmOeT4rmJOHhHTCH2naNxIHhmkr0/UillP4U3yeIyv1pNp+QDLQ==", + "dev": true, + "dependencies": { + "ansi-html": "0.0.7", + "bonjour": "^3.5.0", + "chokidar": "^2.1.8", + "compression": "^1.7.4", + "connect-history-api-fallback": "^1.6.0", + "debug": "^4.1.1", + "del": "^4.1.1", + "express": "^4.17.1", + "html-entities": "^1.3.1", + "http-proxy-middleware": "0.19.1", + "import-local": "^2.0.0", + "internal-ip": "^4.3.0", + "ip": "^1.1.5", + "is-absolute-url": "^3.0.3", + "killable": "^1.0.1", + "loglevel": "^1.6.8", + "opn": "^5.5.0", + "p-retry": "^3.0.1", + "portfinder": "^1.0.26", + "schema-utils": "^1.0.0", + "selfsigned": "^1.10.8", + "semver": "^6.3.0", + "serve-index": "^1.9.1", + "sockjs": "^0.3.21", + "sockjs-client": "^1.5.0", + "spdy": "^4.0.2", + "strip-ansi": "^3.0.1", + "supports-color": "^6.1.0", + "url": "^0.11.0", + "webpack-dev-middleware": "^3.7.2", + "webpack-log": "^2.0.0", + "ws": "^6.2.1", + "yargs": "^13.3.2" + }, + "bin": { + "webpack-dev-server": "bin/webpack-dev-server.js" + }, + "engines": { + "node": ">= 6.11.5" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-server/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-server/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/webpack-dev-server/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "dependencies": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "node_modules/webpack-dev-server/node_modules/anymatch/node_modules/normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "dependencies": { + "array-uniq": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/binary-extensions": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", + "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/braces/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/chokidar": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", + "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", + "deprecated": "Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies", + "dev": true, + "dependencies": { + "anymatch": "^2.0.0", + "async-each": "^1.0.1", + "braces": "^2.3.2", + "glob-parent": "^3.1.0", + "inherits": "^2.0.3", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "normalize-path": "^3.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.2.1", + "upath": "^1.1.1" + }, + "optionalDependencies": { + "fsevents": "^1.2.7" + } + }, + "node_modules/webpack-dev-server/node_modules/cliui": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "dev": true, + "dependencies": { + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" + } + }, + "node_modules/webpack-dev-server/node_modules/cliui/node_modules/ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/cliui/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/del": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", + "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", + "dev": true, + "dependencies": { + "@types/glob": "^7.1.1", + "globby": "^6.1.0", + "is-path-cwd": "^2.0.0", + "is-path-in-cwd": "^2.0.0", + "p-map": "^2.0.0", + "pify": "^4.0.1", + "rimraf": "^2.6.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/del/node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "node_modules/webpack-dev-server/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/fill-range/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/fsevents": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", + "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", + "deprecated": "The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "dependencies": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/webpack-dev-server/node_modules/glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "dev": true, + "dependencies": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + } + }, + "node_modules/webpack-dev-server/node_modules/glob-parent/node_modules/is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, + "dependencies": { + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "dev": true, + "dependencies": { + "binary-extensions": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/webpack-dev-server/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/is-path-in-cwd": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-2.1.0.tgz", + "integrity": "sha512-rNocXHgipO+rvnP6dk3zI20RpOtrAM/kzbB258Uw5BWr3TpXi861yzjo16Dn4hUox07iw5AyeMLHWsujkjzvRQ==", + "dev": true, + "dependencies": { + "is-path-inside": "^2.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/is-path-inside": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-2.1.0.tgz", + "integrity": "sha512-wiyhTzfDWsvwAW53OBWF5zuvaOGlZ6PwYxAbPVDhpm+gM09xKQGjBq/8uYN12aDvMxnAnq3dxTyoSoRNmg5YFg==", + "dev": true, + "dependencies": { + "path-is-inside": "^1.0.2" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/webpack-dev-server/node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/webpack-dev-server/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/webpack-dev-server/node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/webpack-dev-server/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/webpack-dev-server/node_modules/readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/webpack-dev-server/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/webpack-dev-server/node_modules/schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "dependencies": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/webpack-dev-server/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/webpack-dev-server/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/webpack-dev-server/node_modules/string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/string-width/node_modules/ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/string-width/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-server/node_modules/webpack-dev-middleware": { + "version": "3.7.3", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-3.7.3.tgz", + "integrity": "sha512-djelc/zGiz9nZj/U7PTBi2ViorGJXEWo/3ltkPbDyxCXhhEXkW0ce99falaok4TPj+AsxLiXJR0EBOb0zh9fKQ==", + "dev": true, + "dependencies": { + "memory-fs": "^0.4.1", + "mime": "^2.4.4", + "mkdirp": "^0.5.1", + "range-parser": "^1.2.1", + "webpack-log": "^2.0.0" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/webpack-dev-server/node_modules/wrap-ansi": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-dev-server/node_modules/ws": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz", + "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==", + "dev": true, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - }, - "webpack-sources": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.0.tgz", - "integrity": "sha512-fahN08Et7P9trej8xz/Z7eRu8ltyiygEo/hnRi9KqBUs80KeDcnf96ZJo++ewWd84fEf3xSX9bp4ZS9hbw0OBw==", - "dev": true - } + "async-limiter": "~1.0.0" } }, - "webpack-dev-middleware": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.0.0.tgz", - "integrity": "sha512-9zng2Z60pm6A98YoRcA0wSxw1EYn7B7y5owX/Tckyt9KGyULTkLtiavjaXlWqOMkM0YtqGgL3PvMOFgyFLq8vw==", + "node_modules/webpack-dev-server/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/webpack-dev-server/node_modules/yargs": { + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", "dev": true, - "requires": { - "colorette": "^1.2.2", - "mem": "^8.1.1", - "memfs": "^3.2.2", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^3.0.0" - }, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - } + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" } }, - "webpack-dev-server": { - "version": "3.11.2", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-3.11.2.tgz", - "integrity": "sha512-A80BkuHRQfCiNtGBS1EMf2ChTUs0x+B3wGDFmOeT4rmJOHhHTCH2naNxIHhmkr0/UillP4U3yeIyv1pNp+QDLQ==", + "node_modules/webpack-dev-server/node_modules/yargs-parser": { + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", "dev": true, - "requires": { - "ansi-html": "0.0.7", - "bonjour": "^3.5.0", - "chokidar": "^2.1.8", - "compression": "^1.7.4", - "connect-history-api-fallback": "^1.6.0", - "debug": "^4.1.1", - "del": "^4.1.1", - "express": "^4.17.1", - "html-entities": "^1.3.1", - "http-proxy-middleware": "0.19.1", - "import-local": "^2.0.0", - "internal-ip": "^4.3.0", - "ip": "^1.1.5", - "is-absolute-url": "^3.0.3", - "killable": "^1.0.1", - "loglevel": "^1.6.8", - "opn": "^5.5.0", - "p-retry": "^3.0.1", - "portfinder": "^1.0.26", - "schema-utils": "^1.0.0", - "selfsigned": "^1.10.8", - "semver": "^6.3.0", - "serve-index": "^1.9.1", - "sockjs": "^0.3.21", - "sockjs-client": "^1.5.0", - "spdy": "^4.0.2", - "strip-ansi": "^3.0.1", - "supports-color": "^6.1.0", - "url": "^0.11.0", - "webpack-dev-middleware": "^3.7.2", - "webpack-log": "^2.0.0", - "ws": "^6.2.1", - "yargs": "^13.3.2" - }, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true - }, - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", - "dev": true, - "requires": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" - }, - "dependencies": { - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - } - } - }, - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "requires": { - "array-uniq": "^1.0.1" - } - }, - "binary-extensions": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", - "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", - "dev": true - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "chokidar": { - "version": "2.1.8", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", - "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", - "dev": true, - "requires": { - "anymatch": "^2.0.0", - "async-each": "^1.0.1", - "braces": "^2.3.2", - "fsevents": "^1.2.7", - "glob-parent": "^3.1.0", - "inherits": "^2.0.3", - "is-binary-path": "^1.0.0", - "is-glob": "^4.0.0", - "normalize-path": "^3.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.2.1", - "upath": "^1.1.1" - } - }, - "cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", - "dev": true, - "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "del": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", - "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", - "dev": true, - "requires": { - "@types/glob": "^7.1.1", - "globby": "^6.1.0", - "is-path-cwd": "^2.0.0", - "is-path-in-cwd": "^2.0.0", - "p-map": "^2.0.0", - "pify": "^4.0.1", - "rimraf": "^2.6.3" - }, - "dependencies": { - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true - } - } - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "fsevents": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", - "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", - "dev": true, - "optional": true, - "requires": { - "bindings": "^1.5.0", - "nan": "^2.12.1" - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - }, - "dependencies": { - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "^2.1.0" - } - } - } - }, - "globby": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", - "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", - "dev": true, - "requires": { - "array-union": "^1.0.1", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", - "dev": true, - "requires": { - "binary-extensions": "^1.0.0" - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-path-cwd": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", - "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", - "dev": true - }, - "is-path-in-cwd": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-2.1.0.tgz", - "integrity": "sha512-rNocXHgipO+rvnP6dk3zI20RpOtrAM/kzbB258Uw5BWr3TpXi861yzjo16Dn4hUox07iw5AyeMLHWsujkjzvRQ==", - "dev": true, - "requires": { - "is-path-inside": "^2.1.0" - } - }, - "is-path-inside": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-2.1.0.tgz", - "integrity": "sha512-wiyhTzfDWsvwAW53OBWF5zuvaOGlZ6PwYxAbPVDhpm+gM09xKQGjBq/8uYN12aDvMxnAnq3dxTyoSoRNmg5YFg==", - "dev": true, - "requires": { - "path-is-inside": "^1.0.2" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-map": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", - "dev": true - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "readdirp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", - "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "micromatch": "^3.1.10", - "readable-stream": "^2.0.2" - } - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "schema-utils": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", - "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", - "dev": true, - "requires": { - "ajv": "^6.1.0", - "ajv-errors": "^1.0.0", - "ajv-keywords": "^3.1.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - }, - "webpack-dev-middleware": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-3.7.3.tgz", - "integrity": "sha512-djelc/zGiz9nZj/U7PTBi2ViorGJXEWo/3ltkPbDyxCXhhEXkW0ce99falaok4TPj+AsxLiXJR0EBOb0zh9fKQ==", - "dev": true, - "requires": { - "memory-fs": "^0.4.1", - "mime": "^2.4.4", - "mkdirp": "^0.5.1", - "range-parser": "^1.2.1", - "webpack-log": "^2.0.0" - } - }, - "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "ws": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz", - "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==", - "dev": true, - "requires": { - "async-limiter": "~1.0.0" - } - }, - "y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "yargs": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", - "dev": true, - "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.2" - } - }, - "yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } }, - "webpack-log": { + "node_modules/webpack-log": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/webpack-log/-/webpack-log-2.0.0.tgz", "integrity": "sha512-cX8G2vR/85UYG59FgkoMamwHUIkSSlV3bBMRsbxVXVUk2j6NleCKjQ/WE9eYg9WY4w25O9w8wKP4rzNZFmUcUg==", "dev": true, - "requires": { + "dependencies": { "ansi-colors": "^3.0.0", "uuid": "^3.3.2" }, - "dependencies": { - "ansi-colors": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.4.tgz", - "integrity": "sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA==", - "dev": true - }, - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "dev": true - } + "engines": { + "node": ">= 6" + } + }, + "node_modules/webpack-log/node_modules/ansi-colors": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.4.tgz", + "integrity": "sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-log/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "dev": true, + "bin": { + "uuid": "bin/uuid" } }, - "webpack-merge": { + "node_modules/webpack-merge": { "version": "5.8.0", "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", "dev": true, - "requires": { + "dependencies": { "clone-deep": "^4.0.1", "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" } }, - "webpack-sources": { + "node_modules/webpack-sources": { "version": "1.4.3", "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", "dev": true, - "requires": { + "dependencies": { "source-list-map": "^2.0.0", "source-map": "~0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } } }, - "webpack-subresource-integrity": { + "node_modules/webpack-sources/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-subresource-integrity": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/webpack-subresource-integrity/-/webpack-subresource-integrity-1.5.2.tgz", "integrity": "sha512-GBWYBoyalbo5YClwWop9qe6Zclp8CIXYGIz12OPclJhIrSplDxs1Ls1JDMH8xBPPrg1T6ISaTW9Y6zOrwEiAzw==", "dev": true, - "requires": { + "dependencies": { "webpack-sources": "^1.3.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "html-webpack-plugin": ">= 2.21.0 < 5", + "webpack": ">= 1.12.11 < 6" + }, + "peerDependenciesMeta": { + "html-webpack-plugin": { + "optional": true + } + } + }, + "node_modules/webpack/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/webpack/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack/node_modules/webpack-sources": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.0.tgz", + "integrity": "sha512-fahN08Et7P9trej8xz/Z7eRu8ltyiygEo/hnRi9KqBUs80KeDcnf96ZJo++ewWd84fEf3xSX9bp4ZS9hbw0OBw==", + "dev": true, + "engines": { + "node": ">=10.13.0" } }, - "websocket-driver": { + "node_modules/websocket-driver": { "version": "0.7.4", "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", "dev": true, - "requires": { + "dependencies": { "http-parser-js": ">=0.5.1", "safe-buffer": ">=5.1.0", "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" } }, - "websocket-extensions": { + "node_modules/websocket-extensions": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8.0" + } }, - "which": { + "node_modules/which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, - "requires": { + "dependencies": { "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" } }, - "which-module": { + "node_modules/which-module": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, - "wide-align": { + "node_modules/wide-align": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "dev": true, - "requires": { + "dependencies": { "string-width": "^1.0.2 || 2" + } + }, + "node_modules/wide-align/node_modules/ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/wide-align/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/wide-align/node_modules/string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" }, + "engines": { + "node": ">=4" + } + }, + "node_modules/wide-align/node_modules/strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" } }, - "wildcard": { + "node_modules/wildcard": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", "dev": true }, - "wrap-ansi": { + "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "requires": { + "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - } + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "wrappy": { + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, - "ws": { + "node_modules/ws": { "version": "8.2.3", "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", - "dev": true + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } }, - "xml2js": { + "node_modules/xml2js": { "version": "0.4.23", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", "dev": true, - "requires": { + "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" } }, - "xmlbuilder": { + "node_modules/xmlbuilder": { "version": "11.0.1", "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "dev": true + "dev": true, + "engines": { + "node": ">=4.0" + } }, - "y18n": { + "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + } }, - "yallist": { + "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, - "yaml": { + "node_modules/yaml": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6" + } }, - "yargs": { + "node_modules/yargs": { "version": "17.1.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.1.1.tgz", "integrity": "sha512-c2k48R0PwKIqKhPMWjeiF6y2xY/gPMUlro0sgxqXpbOIohWiLNXWslsootttv7E1e73QPAMQSg5FeySbVcpsPQ==", "dev": true, - "requires": { + "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", @@ -13404,48 +17628,61 @@ "string-width": "^4.2.0", "y18n": "^5.0.5", "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=12" } }, - "yargs-parser": { + "node_modules/yargs-parser": { "version": "20.2.9", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + } }, - "yn": { + "node_modules/yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "yocto-queue": { + "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "zone.js": { + "node_modules/zone.js": { "version": "0.11.4", "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.11.4.tgz", "integrity": "sha512-DDh2Ab+A/B+9mJyajPjHFPWfYU1H+pdun4wnnk0OcQTNjem1XQSZ2CDW+rfZEUDjv5M19SBqAkjZi0x5wuB5Qw==", - "requires": { + "dependencies": { "tslib": "^2.0.0" } }, - "zrender": { + "node_modules/zrender": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/zrender/-/zrender-5.2.1.tgz", "integrity": "sha512-M3bPGZuyLTNBC6LiNKXJwSCtglMp8XUEqEBG+2MdICDI3d1s500Y4P0CzldQGsqpRVB7fkvf3BKQQRxsEaTlsw==", - "requires": { - "tslib": "2.3.0" - }, "dependencies": { - "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - } + "tslib": "2.3.0" } + }, + "node_modules/zrender/node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" } } } diff --git a/web/src/app/services/auth.service.ts b/web/src/app/services/auth.service.ts index 34057b8d..62744233 100644 --- a/web/src/app/services/auth.service.ts +++ b/web/src/app/services/auth.service.ts @@ -37,7 +37,7 @@ export class AuthService { } tokenValidate(): Observable { - let url = "/core-metadata/api/v3/ping"; + let url = "/core-metadata/api/v3/version"; return this.http.get(url) }