homebridge-config-ui-x 5.0.0-beta.53 → 5.0.0-beta.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -3
- package/dist/bin/platforms/darwin.js +2 -2
- package/dist/bin/platforms/darwin.js.map +1 -1
- package/dist/core/config/config.service.js +4 -1
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/modules/accessories/accessories.service.js +6 -6
- package/dist/modules/accessories/accessories.service.js.map +1 -1
- package/dist/modules/backup/backup.service.d.ts +1 -0
- package/dist/modules/backup/backup.service.js +40 -12
- package/dist/modules/backup/backup.service.js.map +1 -1
- package/dist/modules/config-editor/config-editor.service.js +56 -58
- package/dist/modules/config-editor/config-editor.service.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.d.ts +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +6 -6
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
- package/dist/modules/plugins/plugins.service.js +6 -0
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/server/server.service.js +26 -6
- package/dist/modules/server/server.service.js.map +1 -1
- package/package.json +15 -15
- package/public/assets/hap-icons/co-sensor.svg +72 -0
- package/public/assets/hap-icons/co2-sensor.svg +72 -0
- package/public/{chunk-IFJS5HBB.js → chunk-3LVJVXOR.js} +1 -1
- package/public/{chunk-JN4WEHM3.js → chunk-3NYGPFUX.js} +1 -1
- package/public/chunk-3Q7XB2WT.js +1 -0
- package/public/{chunk-FASTOCS5.js → chunk-4DC564T2.js} +1 -1
- package/public/chunk-4OGTUIG4.js +1 -0
- package/public/{chunk-ZREFVRCJ.js → chunk-54KHHHVC.js} +1 -1
- package/public/{chunk-MNIEFP5R.js → chunk-5C5HO7YG.js} +1 -1
- package/public/{chunk-JKRWJSXD.js → chunk-5E6U5Y4F.js} +1 -1
- package/public/{chunk-2WNK6SOS.js → chunk-5R5SNIWB.js} +1 -1
- package/public/{chunk-3QZ375B7.js → chunk-624CM2T3.js} +1 -1
- package/public/chunk-65WTJRTP.js +1 -0
- package/public/{chunk-MJJZV2ZZ.js → chunk-6QX3MMJP.js} +1 -1
- package/public/{chunk-WSXVUEYM.js → chunk-7JNBJKZO.js} +1 -1
- package/public/{chunk-H3B6SNLD.js → chunk-AHTFOOTM.js} +1 -1
- package/public/chunk-AK2OL7BC.js +1 -0
- package/public/chunk-ALEJ35FB.js +1 -0
- package/public/{chunk-YYVRF4AL.js → chunk-AR7DMLNC.js} +1 -1
- package/public/{chunk-MR2YBKPP.js → chunk-B75F7CUZ.js} +1 -1
- package/public/chunk-BY7R34BA.js +1 -0
- package/public/chunk-CNL3SMTK.js +1 -0
- package/public/{chunk-A6T442AC.js → chunk-CP2SJFWV.js} +1 -1
- package/public/{chunk-NSTYUUFS.js → chunk-DBJHYM6V.js} +1 -1
- package/public/{chunk-HATWVP5C.js → chunk-DCBQXYKE.js} +1 -1
- package/public/{chunk-YCKXYAPE.js → chunk-DCNG2M5F.js} +1 -1
- package/public/{chunk-XHTRCMG4.js → chunk-DKYXLNGS.js} +1 -1
- package/public/chunk-DNDUU6MV.js +1 -0
- package/public/{chunk-V65HN5SX.js → chunk-E7KALXAM.js} +1 -1
- package/public/chunk-ESHZ74WN.js +1 -0
- package/public/{chunk-MRUJHSFO.js → chunk-FA7ICRJL.js} +1 -1
- package/public/{chunk-R5JL6NY3.js → chunk-FMKGRMAH.js} +1 -1
- package/public/{chunk-SD472BD2.js → chunk-GG52KGAI.js} +1 -1
- package/public/{chunk-6KTIHC4T.js → chunk-HBSDY26I.js} +1 -1
- package/public/{chunk-ZJTXU2GZ.js → chunk-HEL4RGNB.js} +1 -1
- package/public/chunk-HFC26QPP.js +1 -0
- package/public/{chunk-7V7FVNQR.js → chunk-J3AMOH5Y.js} +1 -1
- package/public/chunk-JSWQJ6V6.js +1 -0
- package/public/chunk-JZGZ5SYW.js +1 -0
- package/public/{chunk-ON2E7LVH.js → chunk-KDJYMZFG.js} +1 -1
- package/public/{chunk-WPESHLCE.js → chunk-LL54UFJE.js} +1 -1
- package/public/{chunk-CHKLSRJ3.js → chunk-LLHKFCES.js} +1 -1
- package/public/chunk-M26MCENI.js +1 -0
- package/public/chunk-MW6DM2X7.js +1 -0
- package/public/{chunk-CPYAFTPH.js → chunk-MY2S4HAC.js} +1 -1
- package/public/{chunk-ATZCPOHY.js → chunk-MY6CGMNC.js} +1 -1
- package/public/{chunk-XBIY2EKP.js → chunk-N3KVODFS.js} +1 -1
- package/public/{chunk-6ILQEJNG.js → chunk-NAEAPYF6.js} +1 -1
- package/public/chunk-NAGTO24L.js +1 -0
- package/public/chunk-NKUJNNAM.js +1 -0
- package/public/{chunk-ESRGAJUF.js → chunk-NXJPK6JI.js} +1 -1
- package/public/{chunk-6WEQLPNK.js → chunk-NZOTW24P.js} +1 -1
- package/public/{chunk-XSZWYGN5.js → chunk-OMGG43SK.js} +1 -1
- package/public/{chunk-GZSXNYQC.js → chunk-OYCLVTQL.js} +1 -1
- package/public/{chunk-GKSJJJEG.js → chunk-OZCC7YKF.js} +1 -1
- package/public/chunk-PE233UAD.js +1 -0
- package/public/{chunk-I5QQRRPS.js → chunk-PTXWCPV7.js} +1 -1
- package/public/chunk-Q4G2TRSH.js +1 -0
- package/public/chunk-QHZFT356.js +1 -0
- package/public/{chunk-RP6EJVPS.js → chunk-QI6ARLTK.js} +1 -1
- package/public/chunk-QNWPOWRO.js +7 -0
- package/public/chunk-R2PBAQ35.js +1 -0
- package/public/{chunk-IC7Y4XQH.js → chunk-RBZHYCMS.js} +1 -1
- package/public/chunk-RPGE3RJH.js +1 -0
- package/public/chunk-RSWIVWAL.js +1 -0
- package/public/{chunk-H22PVD4I.js → chunk-S5NGU6NT.js} +1 -1
- package/public/chunk-SFHKXQSB.js +1 -0
- package/public/{chunk-XEJ57GXO.js → chunk-SJ3UWAAJ.js} +1 -1
- package/public/{chunk-C7B7J3YU.js → chunk-T2GRE36D.js} +1 -1
- package/public/{chunk-2TXKGWMR.js → chunk-TR4NZKA2.js} +1 -1
- package/public/chunk-TR7NPBZA.js +1 -0
- package/public/{chunk-WCXU6QPE.js → chunk-TVD6GFRS.js} +1 -1
- package/public/chunk-TZQXMRKN.js +1 -0
- package/public/chunk-V2DJBKJO.js +1 -0
- package/public/chunk-VAECS3ST.js +2 -0
- package/public/chunk-VFRL2KBN.js +1 -0
- package/public/chunk-VK24YDWN.js +1 -0
- package/public/{chunk-ADLO54TI.js → chunk-VWW5OXYB.js} +1 -1
- package/public/{chunk-OE7J5OFK.js → chunk-VYV2IVDF.js} +1 -1
- package/public/{chunk-2OUYQIDT.js → chunk-VZOSCXVJ.js} +2 -2
- package/public/chunk-WQ2LJPDD.js +1 -0
- package/public/{chunk-X7R5UQDS.js → chunk-WVBOP2LW.js} +1 -1
- package/public/{chunk-JMXJZ2Q7.js → chunk-XW7GWYFD.js} +1 -1
- package/public/{chunk-BSQTJCCZ.js → chunk-YQSLQ3BS.js} +1 -1
- package/public/{chunk-FNBFKTZI.js → chunk-ZAWXBC3X.js} +1 -1
- package/public/index.html +2 -2
- package/public/main-CBCOTPKJ.js +1 -0
- package/public/polyfills-QPBMDKSH.js +2 -0
- package/public/styles-EYD3YW3P.css +1 -0
- package/public/chunk-2SKV4EZG.js +0 -1
- package/public/chunk-3MX5DOL7.js +0 -1
- package/public/chunk-5YCO5TXF.js +0 -1
- package/public/chunk-7NJFL3V5.js +0 -1
- package/public/chunk-ASPLXDLK.js +0 -1
- package/public/chunk-BVKEUYDD.js +0 -1
- package/public/chunk-DNCUP6B7.js +0 -2
- package/public/chunk-ECYEAXRB.js +0 -1
- package/public/chunk-IU42UO7J.js +0 -1
- package/public/chunk-JUFP3U6F.js +0 -1
- package/public/chunk-JXE2EDWO.js +0 -1
- package/public/chunk-KUMEH2DS.js +0 -1
- package/public/chunk-KW4MJOSS.js +0 -1
- package/public/chunk-KXTEHFOE.js +0 -1
- package/public/chunk-LFQIH47S.js +0 -1
- package/public/chunk-LU42XXER.js +0 -1
- package/public/chunk-MF5APUVW.js +0 -1
- package/public/chunk-N23UCYUG.js +0 -1
- package/public/chunk-NTKR7QBR.js +0 -1
- package/public/chunk-NVNBNEFN.js +0 -7
- package/public/chunk-PNVUM7VV.js +0 -1
- package/public/chunk-PWQDJSBN.js +0 -1
- package/public/chunk-QTMHY65L.js +0 -1
- package/public/chunk-RDPAVLAZ.js +0 -1
- package/public/chunk-RK2BHUS3.js +0 -1
- package/public/chunk-SRUQ34W2.js +0 -1
- package/public/chunk-THWGBC4V.js +0 -1
- package/public/chunk-UL2YWIGQ.js +0 -1
- package/public/chunk-UTIL4E7P.js +0 -1
- package/public/chunk-X3WLRBIN.js +0 -1
- package/public/chunk-ZS7TMHAN.js +0 -1
- package/public/main-BETLO3TF.js +0 -1
- package/public/polyfills-JNAS3VFQ.js +0 -2
- package/public/styles-CJ5TSDXW.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as ie,a as U,b as X,c as Y,f as te}from"./chunk-X3WLRBIN.js";import{a as ne}from"./chunk-6WEQLPNK.js";import{m as $,n as K,o as Q}from"./chunk-WCXU6QPE.js";import{c as W,e as R,f as j,i as z,l as q,m as G,y as J}from"./chunk-JKRWJSXD.js";import{c as ee}from"./chunk-ESRGAJUF.js";import{b as Z}from"./chunk-ON2E7LVH.js";import{b as M}from"./chunk-2WNK6SOS.js";import{$c as O,Ac as s,Bc as l,Cc as H,Jb as v,Kb as _,Pb as h,Rb as I,Sb as V,Tb as F,Ub as a,Vb as r,Wb as p,_b as B,bc as b,cb as N,cc as m,gb as o,ma as f,mc as d,nc as u,oc as w,rc as k,sc as T,tb as y,tc as A,ua as x,va as C,vc as L,wc as E,zb as S}from"./chunk-NVNBNEFN.js";var oe=(()=>{class t{$activeModal=f($);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],decls:31,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fa","fa-fw","fa-question-circle-o","primary-text",2,"font-size","75px"],[1,"mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),d(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li"),d(13),s(14,"translate"),r(),a(15,"li"),d(16),s(17,"translate"),r(),a(18,"li"),d(19),s(20,"translate"),r(),a(21,"li"),d(22),s(23,"translate"),r()()(),a(24,"div",8),p(25,"div",9),a(26,"div",10)(27,"button",11),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),d(28),s(29,"translate"),r()(),p(30,"div",12),r()()()),i&2&&(o(4),u(l(5,7,"support.title")),o(2),v("aria-label",l(7,9,"form.button_close")),o(7),u(l(14,11,"accessories.support.list_1")),o(3),u(l(17,13,"accessories.support.list_2")),o(3),u(l(20,15,"accessories.support.list_3")),o(3),u(l(23,17,"accessories.support.list_4")),o(6),w(" ",l(29,19,"form.button_close")," "))},dependencies:[M],encapsulation:2})}return t})();var se=()=>({standalone:!0}),ae=(()=>{class t{$activeModal=f($);roomName;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],inputs:{roomName:"roomName"},decls:28,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-folder-plus","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],["for","form-name",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["autocomplete","off","type","text","id","form-name","autofocus","",1,"form-control","custom-input",3,"ngModelChange","keyup.enter","ngModel","ngModelOptions"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),d(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li",8)(13,"label",9),d(14),s(15,"translate"),r(),a(16,"div",10)(17,"input",11),A("ngModelChange",function(D){return T(n.roomName,D)||(n.roomName=D),D}),b("keyup.enter",function(){return n.$activeModal.close(n.roomName)}),r()()()()(),a(18,"div",12)(19,"div",13)(20,"button",14),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),d(21),s(22,"translate"),r()(),p(23,"div",15),a(24,"div",16)(25,"button",17),b("click",function(){return n.$activeModal.close(n.roomName)}),d(26),s(27,"translate"),r()()()()()),i&2&&(o(4),u(l(5,8,"accessories.button_add_room")),o(2),v("aria-label",l(7,10,"form.button_close")),o(8),u(l(15,12,"accessories.room_name")),o(3),k("ngModel",n.roomName),_("ngModelOptions",L(18,se)),o(4),w(" ",l(22,14,"form.button_close")," "),o(4),_("disabled",!n.roomName),o(),w(" ",l(27,16,"form.button_save")," "))},dependencies:[J,G,W,R,j,q,z,M],encapsulation:2})}return t})();var re=(()=>{class t{constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["app-drag-here-placeholder"]],decls:5,vars:3,consts:[[1,"accessory-box"],[1,"fas","fa-fw","fa-arrow-alt-circle-down","accessory-icon"],[1,"accessory-label"]],template:function(i,n){i&1&&(a(0,"div",0),p(1,"i",1),a(2,"div",2),d(3),s(4,"translate"),r()()),i&2&&(o(3),u(l(4,1,"accessories.control.drag_here")))},dependencies:[M],styles:[".accessory-box[_ngcontent-%COMP%]{opacity:.2}"]})}return t})();var le=t=>({"cursor-move":t}),ce=t=>({"justify-content-between":t}),de=t=>({link:t});function pe(t,g){if(t&1&&(a(0,"div",0)(1,"div",18)(2,"h5",19),d(3),s(4,"translate"),r()()()),t&2){let e=m().$implicit,i=m(2);o(2),_("ngClass",E(4,le,!i.isMobile)),o(),w(" ",e.name==="Default Room"?l(4,2,"accessories.control.default_room"):e.name," ")}}function me(t,g){if(t&1&&(a(0,"div",22),p(1,"app-accessory-tile",23),r()),t&2){let e=m().$implicit;o(),_("service",e)}}function ue(t,g){if(t&1&&S(0,me,2,1,"div",22),t&2){let e=g.$implicit,i=m(4);h(!i.hideHidden||!e.hidden?0:-1)}}function _e(t,g){if(t&1){let e=B();a(0,"div",20),A("dragulaModelChange",function(n){x(e);let c=m().$implicit;return T(c.services,n)||(c.services=n),C(n)}),V(1,ue,1,1,null,null,I),p(3,"div",21)(4,"div",21)(5,"div",21)(6,"div",21)(7,"div",21)(8,"div",21)(9,"div",21)(10,"div",21)(11,"div",21)(12,"div",21),r()}if(t&2){let e=m().$implicit,i=m(2);_("ngClass",E(3,ce,i.isMobile))("dragula","services-bag"),k("dragulaModel",e.services),o(),F(e.services)}}function be(t,g){if(t&1){let e=B();a(0,"div",24),A("dragulaModelChange",function(n){x(e);let c=m().$implicit;return T(c.services,n)||(c.services=n),C(n)}),p(1,"app-drag-here-placeholder",25),r()}if(t&2){let e=m().$implicit;_("dragula","services-bag"),k("dragulaModel",e.services)}}function fe(t,g){if(t&1&&(a(0,"div"),S(1,pe,5,6,"div",0),a(2,"div",15),S(3,_e,13,5,"div",16)(4,be,2,2,"div",17),r()()),t&2){let e=g.$implicit,i=m(2);o(),h(!i.isMobile||e.services.length?1:-1),o(2),h(e.services.length?3:-1),o(),h(!e.services.length&&!i.isMobile?4:-1)}}function ge(t,g){if(t&1){let e=B();a(0,"div",1)(1,"div",2)(2,"h3",3),d(3),s(4,"translate"),r()(),a(5,"div",4)(6,"button",5),s(7,"translate"),s(8,"translate"),b("click",function(){x(e);let n=m();return C(n.addRoom())}),p(9,"i",6),r(),a(10,"button",5),s(11,"translate"),s(12,"translate"),s(13,"translate"),s(14,"translate"),b("click",function(){x(e);let n=m();return C(n.hideHidden=!n.hideHidden)}),p(15,"i",7),r(),a(16,"div",8)(17,"button",9),s(18,"translate"),s(19,"translate"),b("click",function(){x(e);let n=m();return C(n.toggleLayoutLock())}),p(20,"i",10),r(),a(21,"button",9),s(22,"translate"),s(23,"translate"),b("click",function(){x(e);let n=m();return C(n.toggleLayoutLock())}),p(24,"i",11),r()(),a(25,"button",12),s(26,"translate"),b("click",function(){x(e);let n=m();return C(n.openSupport())}),p(27,"i",13),r()()(),a(28,"div",14),A("dragulaModelChange",function(n){x(e);let c=m();return T(c.$accessories.rooms,n)||(c.$accessories.rooms=n),C(n)}),V(29,fe,5,3,"div",null,I),r()}if(t&2){let e=m();o(3),u(l(4,17,"accessories.title_accessories")),o(3),_("hidden",e.isMobile)("ngbTooltip",l(7,19,"accessories.button_add_room")),v("aria-label",l(8,21,"accessories.button_add_room")),o(4),_("hidden",e.isMobile)("ngbTooltip",e.hideHidden?l(11,23,"accessories.button_hidden_show"):l(12,25,"accessories.button_hidden_hide")),v("aria-label",e.hideHidden?l(13,27,"accessories.button_hidden_show"):l(14,29,"accessories.button_hidden_hide")),o(5),_("ngClass",e.hideHidden?"fa-eye-slash":"fa-eye"),o(2),_("disabled",!e.isMobile)("ngbTooltip",l(18,31,"form.button_unlock")),v("aria-label",l(19,33,"form.button_unlock")),o(4),_("disabled",e.isMobile)("ngbTooltip",l(22,35,"form.button_lock")),v("aria-label",l(23,37,"form.button_lock")),o(4),v("aria-label",l(26,39,"support.title")),o(3),_("dragula","rooms-bag"),k("dragulaModel",e.$accessories.rooms),o(),F(e.$accessories.rooms)}}function ve(t,g){t&1&&(a(0,"p",32),d(1),s(2,"translate"),r()),t&2&&(o(),u(l(2,1,"accessories.settings_link")))}function xe(t,g){if(t&1&&(a(0,"div",0)(1,"div",26)(2,"h3",27),d(3),s(4,"translate"),r()(),a(5,"div",28)(6,"div",29)(7,"h5",30),d(8),s(9,"translate"),r(),p(10,"p",31),s(11,"translate"),S(12,ve,3,3,"p",32),r()()()),t&2){let e=m();o(3),u(l(4,4,"accessories.title_accessories")),o(5),u(l(9,6,"accessories.control_disabled")),o(2),_("innerHTML",H(11,8,"accessories.message_must_use_insecure_mode",E(11,de,e.linkInsecure)),N),o(2),h(e.$auth.user.admin?12:-1)}}var Ue=(()=>{class t{$auth=f(ee);dragulaService=f(U);$modal=f(K);$settings=f(Z);$md=f(ne);$accessories=f(te);isMobile=!1;hideHidden=!0;orderSubscription;linkInsecure='<a href="https://github.com/homebridge/homebridge-config-ui-x/wiki/Enabling-Accessory-Control" target="_blank"><i class="fa fa-fw fa-external-link-alt primary-text"></i></a>';constructor(){let e=this.dragulaService;this.isMobile=this.$md.detect.mobile(),e.createGroup("rooms-bag",{moves:(i,n,c)=>!this.isMobile&&c.classList.contains("drag-handle")}),e.createGroup("services-bag",{moves:i=>!this.isMobile&&!i.classList.contains("no-drag")}),this.orderSubscription=e.drop().subscribe(()=>{setTimeout(()=>{this.$accessories.saveLayout()})}),this.isMobile=!0}ngOnInit(){this.$accessories.start()}addRoom(){this.$modal.open(ae,{size:"lg",backdrop:"static"}).result.then(e=>{!e||!e.length||this.$accessories.rooms.find(i=>i.name===e)||(this.$accessories.rooms.push({name:e,services:[]}),this.isMobile&&this.toggleLayoutLock())}).catch(()=>{})}toggleLayoutLock(){this.isMobile=!this.isMobile,this.isMobile?document.querySelectorAll(".services-bag").forEach(i=>{for(let n=0;n<10;n++){let c=document.createElement("div");c.className="accessory-box invisible py-0 my-0",c.style.height="0",i.appendChild(c)}}):document.querySelectorAll(".invisible").forEach(i=>i.remove())}openSupport(){this.$modal.open(oe,{size:"lg",backdrop:"static"})}ngOnDestroy(){this.$accessories.stop(),this.orderSubscription.unsubscribe(),this.dragulaService.destroy("rooms-bag"),this.dragulaService.destroy("services-bag")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["app-accessories"]],decls:2,vars:2,consts:[[1,"row"],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end","d-none","d-sm-inline-block"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","hidden","ngbTooltip"],[1,"fas","fa-fw","fa-folder-plus"],[1,"fas","fa-fw",3,"ngClass"],["role","group",1,"btn-group","me-2"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-unlock"],[1,"fas","fa-fw","fa-lock"],["type","button",1,"btn","btn-elegant","my-0","me-0",3,"click"],[1,"fa","fa-fw","fa-question-circle-o"],[3,"dragulaModelChange","dragula","dragulaModel"],[1,"row","mb-4"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"ngClass","dragula","dragulaModel"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragula","dragulaModel"],[1,"col-md-12"],[1,"primary-text","drag-handle","room-title","m-0","mb-1","mb-sm-0",3,"ngClass"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"dragulaModelChange","ngClass","dragula","dragulaModel"],[1,"accessory-box","invisible","py-0","my-0",2,"height","0"],[1,"accessory-item","accessory-tab"],[3,"service"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragulaModelChange","dragula","dragulaModel"],[1,"no-drag"],[1,"col-12"],[1,"primary-text","m-0","mb-3"],[1,"col-12","text-center"],["role","alert",1,"alert","alert-warning","p-4"],[1,"mb-3","mt-0"],[1,"mb-0",3,"innerHTML"],[1,"mt-3","mb-0"]],template:function(i,n){i&1&&S(0,ge,31,41)(1,xe,13,13,"div",0),i&2&&(h(n.$settings.env.enableAccessories?0:-1),o(),h(n.$settings.env.enableAccessories?-1:1))},dependencies:[Q,O,Y,X,ie,re,M],styles:[".room-title[_ngcontent-%COMP%]{margin-left:10px}@media (max-width: 575px){.room-title[_ngcontent-%COMP%]{margin-left:7px}}.services-bag[_ngcontent-%COMP%]{min-height:170px}@media (max-width: 575px){.services-bag[_ngcontent-%COMP%]{min-height:initial}}.cursor-move[_ngcontent-%COMP%]{cursor:move}.gu-transit[_ngcontent-%COMP%] .manage-accessory-button[_ngcontent-%COMP%]{display:none}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return t})();export{ae as a,Ue as b};
|
|
1
|
+
import{S as ie,a as U,b as X,c as Y,f as te}from"./chunk-4OGTUIG4.js";import{a as ne}from"./chunk-NZOTW24P.js";import{m as $,n as K,o as Q}from"./chunk-TVD6GFRS.js";import{c as W,e as R,f as j,i as z,l as q,m as G,y as J}from"./chunk-5E6U5Y4F.js";import{c as ee}from"./chunk-NXJPK6JI.js";import{b as Z}from"./chunk-KDJYMZFG.js";import{b as M}from"./chunk-5R5SNIWB.js";import{Ac as s,Bc as l,Cc as H,Jb as v,Kb as _,Pb as h,Rb as I,Sb as V,Tb as F,Ub as a,Vb as r,Wb as p,Zc as O,_b as B,bc as b,cb as N,cc as m,gb as o,ma as f,mc as d,nc as u,oc as w,rc as k,sc as T,tb as y,tc as A,ua as x,va as C,vc as L,wc as E,zb as S}from"./chunk-QNWPOWRO.js";var oe=(()=>{class t{$activeModal=f($);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],decls:31,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fa","fa-fw","fa-question-circle-o","primary-text",2,"font-size","75px"],[1,"mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),d(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li"),d(13),s(14,"translate"),r(),a(15,"li"),d(16),s(17,"translate"),r(),a(18,"li"),d(19),s(20,"translate"),r(),a(21,"li"),d(22),s(23,"translate"),r()()(),a(24,"div",8),p(25,"div",9),a(26,"div",10)(27,"button",11),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),d(28),s(29,"translate"),r()(),p(30,"div",12),r()()()),i&2&&(o(4),u(l(5,7,"support.title")),o(2),v("aria-label",l(7,9,"form.button_close")),o(7),u(l(14,11,"accessories.support.list_1")),o(3),u(l(17,13,"accessories.support.list_2")),o(3),u(l(20,15,"accessories.support.list_3")),o(3),u(l(23,17,"accessories.support.list_4")),o(6),w(" ",l(29,19,"form.button_close")," "))},dependencies:[M],encapsulation:2})}return t})();var se=()=>({standalone:!0}),ae=(()=>{class t{$activeModal=f($);roomName;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],inputs:{roomName:"roomName"},decls:28,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-folder-plus","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],["for","form-name",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["autocomplete","off","type","text","id","form-name","autofocus","",1,"form-control","custom-input",3,"ngModelChange","keyup.enter","ngModel","ngModelOptions"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),d(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li",8)(13,"label",9),d(14),s(15,"translate"),r(),a(16,"div",10)(17,"input",11),A("ngModelChange",function(D){return T(n.roomName,D)||(n.roomName=D),D}),b("keyup.enter",function(){return n.$activeModal.close(n.roomName)}),r()()()()(),a(18,"div",12)(19,"div",13)(20,"button",14),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),d(21),s(22,"translate"),r()(),p(23,"div",15),a(24,"div",16)(25,"button",17),b("click",function(){return n.$activeModal.close(n.roomName)}),d(26),s(27,"translate"),r()()()()()),i&2&&(o(4),u(l(5,8,"accessories.button_add_room")),o(2),v("aria-label",l(7,10,"form.button_close")),o(8),u(l(15,12,"accessories.room_name")),o(3),k("ngModel",n.roomName),_("ngModelOptions",L(18,se)),o(4),w(" ",l(22,14,"form.button_close")," "),o(4),_("disabled",!n.roomName),o(),w(" ",l(27,16,"form.button_save")," "))},dependencies:[J,G,W,R,j,q,z,M],encapsulation:2})}return t})();var re=(()=>{class t{constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["app-drag-here-placeholder"]],decls:5,vars:3,consts:[[1,"accessory-box"],[1,"fas","fa-fw","fa-arrow-alt-circle-down","accessory-icon"],[1,"accessory-label"]],template:function(i,n){i&1&&(a(0,"div",0),p(1,"i",1),a(2,"div",2),d(3),s(4,"translate"),r()()),i&2&&(o(3),u(l(4,1,"accessories.control.drag_here")))},dependencies:[M],styles:[".accessory-box[_ngcontent-%COMP%]{opacity:.2}"]})}return t})();var le=t=>({"cursor-move":t}),ce=t=>({"justify-content-between":t}),de=t=>({link:t});function pe(t,g){if(t&1&&(a(0,"div",0)(1,"div",18)(2,"h5",19),d(3),s(4,"translate"),r()()()),t&2){let e=m().$implicit,i=m(2);o(2),_("ngClass",E(4,le,!i.isMobile)),o(),w(" ",e.name==="Default Room"?l(4,2,"accessories.control.default_room"):e.name," ")}}function me(t,g){if(t&1&&(a(0,"div",22),p(1,"app-accessory-tile",23),r()),t&2){let e=m().$implicit;o(),_("service",e)}}function ue(t,g){if(t&1&&S(0,me,2,1,"div",22),t&2){let e=g.$implicit,i=m(4);h(!i.hideHidden||!e.hidden?0:-1)}}function _e(t,g){if(t&1){let e=B();a(0,"div",20),A("dragulaModelChange",function(n){x(e);let c=m().$implicit;return T(c.services,n)||(c.services=n),C(n)}),V(1,ue,1,1,null,null,I),p(3,"div",21)(4,"div",21)(5,"div",21)(6,"div",21)(7,"div",21)(8,"div",21)(9,"div",21)(10,"div",21)(11,"div",21)(12,"div",21),r()}if(t&2){let e=m().$implicit,i=m(2);_("ngClass",E(3,ce,i.isMobile))("dragula","services-bag"),k("dragulaModel",e.services),o(),F(e.services)}}function be(t,g){if(t&1){let e=B();a(0,"div",24),A("dragulaModelChange",function(n){x(e);let c=m().$implicit;return T(c.services,n)||(c.services=n),C(n)}),p(1,"app-drag-here-placeholder",25),r()}if(t&2){let e=m().$implicit;_("dragula","services-bag"),k("dragulaModel",e.services)}}function fe(t,g){if(t&1&&(a(0,"div"),S(1,pe,5,6,"div",0),a(2,"div",15),S(3,_e,13,5,"div",16)(4,be,2,2,"div",17),r()()),t&2){let e=g.$implicit,i=m(2);o(),h(!i.isMobile||e.services.length?1:-1),o(2),h(e.services.length?3:-1),o(),h(!e.services.length&&!i.isMobile?4:-1)}}function ge(t,g){if(t&1){let e=B();a(0,"div",1)(1,"div",2)(2,"h3",3),d(3),s(4,"translate"),r()(),a(5,"div",4)(6,"button",5),s(7,"translate"),s(8,"translate"),b("click",function(){x(e);let n=m();return C(n.addRoom())}),p(9,"i",6),r(),a(10,"button",5),s(11,"translate"),s(12,"translate"),s(13,"translate"),s(14,"translate"),b("click",function(){x(e);let n=m();return C(n.hideHidden=!n.hideHidden)}),p(15,"i",7),r(),a(16,"div",8)(17,"button",9),s(18,"translate"),s(19,"translate"),b("click",function(){x(e);let n=m();return C(n.toggleLayoutLock())}),p(20,"i",10),r(),a(21,"button",9),s(22,"translate"),s(23,"translate"),b("click",function(){x(e);let n=m();return C(n.toggleLayoutLock())}),p(24,"i",11),r()(),a(25,"button",12),s(26,"translate"),b("click",function(){x(e);let n=m();return C(n.openSupport())}),p(27,"i",13),r()()(),a(28,"div",14),A("dragulaModelChange",function(n){x(e);let c=m();return T(c.$accessories.rooms,n)||(c.$accessories.rooms=n),C(n)}),V(29,fe,5,3,"div",null,I),r()}if(t&2){let e=m();o(3),u(l(4,17,"accessories.title_accessories")),o(3),_("hidden",e.isMobile)("ngbTooltip",l(7,19,"accessories.button_add_room")),v("aria-label",l(8,21,"accessories.button_add_room")),o(4),_("hidden",e.isMobile)("ngbTooltip",e.hideHidden?l(11,23,"accessories.button_hidden_show"):l(12,25,"accessories.button_hidden_hide")),v("aria-label",e.hideHidden?l(13,27,"accessories.button_hidden_show"):l(14,29,"accessories.button_hidden_hide")),o(5),_("ngClass",e.hideHidden?"fa-eye-slash":"fa-eye"),o(2),_("disabled",!e.isMobile)("ngbTooltip",l(18,31,"form.button_unlock")),v("aria-label",l(19,33,"form.button_unlock")),o(4),_("disabled",e.isMobile)("ngbTooltip",l(22,35,"form.button_lock")),v("aria-label",l(23,37,"form.button_lock")),o(4),v("aria-label",l(26,39,"support.title")),o(3),_("dragula","rooms-bag"),k("dragulaModel",e.$accessories.rooms),o(),F(e.$accessories.rooms)}}function ve(t,g){t&1&&(a(0,"p",32),d(1),s(2,"translate"),r()),t&2&&(o(),u(l(2,1,"accessories.settings_link")))}function xe(t,g){if(t&1&&(a(0,"div",0)(1,"div",26)(2,"h3",27),d(3),s(4,"translate"),r()(),a(5,"div",28)(6,"div",29)(7,"h5",30),d(8),s(9,"translate"),r(),p(10,"p",31),s(11,"translate"),S(12,ve,3,3,"p",32),r()()()),t&2){let e=m();o(3),u(l(4,4,"accessories.title_accessories")),o(5),u(l(9,6,"accessories.control_disabled")),o(2),_("innerHTML",H(11,8,"accessories.message_must_use_insecure_mode",E(11,de,e.linkInsecure)),N),o(2),h(e.$auth.user.admin?12:-1)}}var Ue=(()=>{class t{$auth=f(ee);dragulaService=f(U);$modal=f(K);$settings=f(Z);$md=f(ne);$accessories=f(te);isMobile=!1;hideHidden=!0;orderSubscription;linkInsecure='<a href="https://github.com/homebridge/homebridge-config-ui-x/wiki/Enabling-Accessory-Control" target="_blank"><i class="fa fa-fw fa-external-link-alt primary-text"></i></a>';constructor(){let e=this.dragulaService;this.isMobile=this.$md.detect.mobile(),e.createGroup("rooms-bag",{moves:(i,n,c)=>!this.isMobile&&c.classList.contains("drag-handle")}),e.createGroup("services-bag",{moves:i=>!this.isMobile&&!i.classList.contains("no-drag")}),this.orderSubscription=e.drop().subscribe(()=>{setTimeout(()=>{this.$accessories.saveLayout()})}),this.isMobile=!0}ngOnInit(){this.$accessories.start()}addRoom(){this.$modal.open(ae,{size:"lg",backdrop:"static"}).result.then(e=>{!e||!e.length||this.$accessories.rooms.find(i=>i.name===e)||(this.$accessories.rooms.push({name:e,services:[]}),this.isMobile&&this.toggleLayoutLock())}).catch(()=>{})}toggleLayoutLock(){this.isMobile=!this.isMobile,this.isMobile?document.querySelectorAll(".services-bag").forEach(i=>{for(let n=0;n<10;n++){let c=document.createElement("div");c.className="accessory-box invisible py-0 my-0",c.style.height="0",i.appendChild(c)}}):document.querySelectorAll(".invisible").forEach(i=>i.remove())}openSupport(){this.$modal.open(oe,{size:"lg",backdrop:"static"})}ngOnDestroy(){this.$accessories.stop(),this.orderSubscription.unsubscribe(),this.dragulaService.destroy("rooms-bag"),this.dragulaService.destroy("services-bag")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["app-accessories"]],decls:2,vars:2,consts:[[1,"row"],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end","d-none","d-sm-inline-block"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","hidden","ngbTooltip"],[1,"fas","fa-fw","fa-folder-plus"],[1,"fas","fa-fw",3,"ngClass"],["role","group",1,"btn-group","me-2"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-unlock"],[1,"fas","fa-fw","fa-lock"],["type","button",1,"btn","btn-elegant","my-0","me-0",3,"click"],[1,"fa","fa-fw","fa-question-circle-o"],[3,"dragulaModelChange","dragula","dragulaModel"],[1,"row","mb-4"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"ngClass","dragula","dragulaModel"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragula","dragulaModel"],[1,"col-md-12"],[1,"primary-text","drag-handle","room-title","m-0","mb-1","mb-sm-0",3,"ngClass"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"dragulaModelChange","ngClass","dragula","dragulaModel"],[1,"accessory-box","invisible","py-0","my-0",2,"height","0"],[1,"accessory-item","accessory-tab"],[3,"service"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragulaModelChange","dragula","dragulaModel"],[1,"no-drag"],[1,"col-12"],[1,"primary-text","m-0","mb-3"],[1,"col-12","text-center"],["role","alert",1,"alert","alert-warning","p-4"],[1,"mb-3","mt-0"],[1,"mb-0",3,"innerHTML"],[1,"mt-3","mb-0"]],template:function(i,n){i&1&&S(0,ge,31,41)(1,xe,13,13,"div",0),i&2&&(h(n.$settings.env.enableAccessories?0:-1),o(),h(n.$settings.env.enableAccessories?-1:1))},dependencies:[Q,O,Y,X,ie,re,M],styles:[".room-title[_ngcontent-%COMP%]{margin-left:10px}@media (max-width: 575px){.room-title[_ngcontent-%COMP%]{margin-left:7px}}.services-bag[_ngcontent-%COMP%]{min-height:170px}@media (max-width: 575px){.services-bag[_ngcontent-%COMP%]{min-height:initial}}.cursor-move[_ngcontent-%COMP%]{cursor:move}.gu-transit[_ngcontent-%COMP%] .manage-accessory-button[_ngcontent-%COMP%]{display:none}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return t})();export{ae as a,Ue as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as R}from"./chunk-
|
|
1
|
+
import{a as R}from"./chunk-AR7DMLNC.js";import"./chunk-XW7GWYFD.js";import{c as S}from"./chunk-FMKGRMAH.js";import"./chunk-NZOTW24P.js";import{q as d}from"./chunk-TVD6GFRS.js";import{y as u,z as f}from"./chunk-5E6U5Y4F.js";import"./chunk-LLHKFCES.js";import{d as C,g as m}from"./chunk-BY7R34BA.js";import"./chunk-NXJPK6JI.js";import"./chunk-KDJYMZFG.js";import{h as v,k as g}from"./chunk-ESHZ74WN.js";import"./chunk-VAECS3ST.js";import{a as M,c as h}from"./chunk-5R5SNIWB.js";import{ga as c,gd as l,h as p,ha as i,ma as e,ub as a,w as s}from"./chunk-QNWPOWRO.js";var n=(()=>{class t{$api=e(g);$router=e(C);$toastr=e(v);$translate=e(M);constructor(){}resolve(){return p(this,null,function*(){try{return yield s(this.$api.get("/platform-tools/docker/startup-script"))}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(o){return new(o||t)};static \u0275prov=c({token:t,factory:t.\u0275fac})}return t})();var j=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"startup-script",loadComponent:()=>import("./chunk-M26MCENI.js").then(t=>t.StartupScriptComponent),resolve:{startupScript:n}},{path:"restart-container",loadComponent:()=>import("./chunk-QHZFT356.js").then(t=>t.ContainerRestartComponent)}],$=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=a({type:t});static \u0275inj=i({imports:[m.forChild(j),m]})}return t})();var Q=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=a({type:t});static \u0275inj=i({providers:[n],imports:[l,u,f,S,d,h.forChild(),$,R]})}return t})();export{Q as DockerModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as a}from"./chunk-SJ3UWAAJ.js";import"./chunk-N3KVODFS.js";import"./chunk-TVD6GFRS.js";import"./chunk-5E6U5Y4F.js";import"./chunk-BY7R34BA.js";import"./chunk-NXJPK6JI.js";import"./chunk-KDJYMZFG.js";import"./chunk-ESHZ74WN.js";import"./chunk-VAECS3ST.js";import"./chunk-5R5SNIWB.js";import"./chunk-QNWPOWRO.js";export{a as UsersComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-OYCLVTQL.js";import"./chunk-5R5SNIWB.js";import"./chunk-QNWPOWRO.js";export{a as SupportComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-FMKGRMAH.js";import{a as O}from"./chunk-NZOTW24P.js";import{c as y,e as E,l as k,y as $}from"./chunk-5E6U5Y4F.js";import{b as D}from"./chunk-BY7R34BA.js";import{b as L}from"./chunk-KDJYMZFG.js";import{h as I,k as H}from"./chunk-ESHZ74WN.js";import{a as T}from"./chunk-5R5SNIWB.js";import{Kb as f,Pb as d,Ub as m,Vb as l,Wb as w,_b as g,bc as _,cc as a,gb as s,h as S,ma as r,mc as v,rc as b,sc as M,tb as x,tc as V,ua as c,va as p,w as C,zb as h}from"./chunk-QNWPOWRO.js";function z(i,u){i&1&&w(0,"i",6)}function A(i,u){i&1&&w(0,"i",7)}function F(i,u){if(i&1){let t=g();m(0,"ngx-monaco-editor",10),_("onInit",function(e){c(t);let o=a();return p(o.onEditorInit(e))})("keydown.control.s",function(e){c(t);let o=a();return e.preventDefault(),p(o.onSave())})("keydown.meta.s",function(e){c(t);let o=a();return e.preventDefault(),p(o.onSave())}),l()}if(i&2){let t=a();f("options",t.editorOptions)("model",t.monacoEditorModel)}}function W(i,u){if(i&1){let t=g();m(0,"textarea",11),V("ngModelChange",function(e){c(t);let o=a();return M(o.startupScript,e)||(o.startupScript=e),p(e)}),v(1," "),l()}if(i&2){let t=a();b("ngModel",t.startupScript)}}var tt=(()=>{class i{$api=r(H);$md=r(O);$route=r(D);$settings=r(L);$toastr=r(I);$translate=r(T);startupScript;saveInProgress;isMobile=!1;options={printMargin:!1};monacoEditor;editorOptions;monacoEditorModel;lastHeight;visualViewPortEventCallback;constructor(){this.isMobile=this.$md.detect.mobile()}ngOnInit(){this.editorOptions={language:"shell",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light",automaticLayout:!0},this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.$route.data.subscribe(t=>{this.startupScript=t.startupScript.script}),this.monacoEditorModel={value:"",language:"shell"}}onEditorInit(t){this.monacoEditor=t,this.monacoEditor.getModel().setValue(this.startupScript)}onSave(){return S(this,null,function*(){if(!this.saveInProgress){if(this.saveInProgress=!0,this.isMobile||(yield this.monacoEditor.getAction("editor.action.formatDocument").run(),this.startupScript=this.monacoEditor.getModel().getValue()),!["#!/bin/sh","#!/bin/bash"].includes(this.startupScript.split(`
|
|
2
2
|
`)[0].trim())){this.$toastr.error(this.$translate.instant("platform.docker.must_use_hashbang"),this.$translate.instant("toast.title_error")),this.startupScript=`#!/bin/sh
|
|
3
3
|
|
|
4
4
|
${this.startupScript}`,this.isMobile||this.monacoEditor.getModel().setValue(this.startupScript),this.saveInProgress=!1;return}try{yield C(this.$api.put("/platform-tools/docker/startup-script",{script:this.startupScript})),this.$toastr.success(this.$translate.instant("platform.docker.restart_required"),this.$translate.instant("platform.docker.script_saved"))}catch(t){console.error(t),this.$toastr.error(t.message,this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}visualViewPortChanged(){this.lastHeight<window.visualViewport.height&&document.activeElement.blur(),window.visualViewport.height<window.innerHeight?(this.$md.enableTouchMove(),this.lastHeight=window.visualViewport.height):window.visualViewport.height===window.innerHeight&&(this.$md.disableTouchMove(),this.lastHeight=window.visualViewport.height)}ngOnDestroy(){window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove()),this.monacoEditor&&this.monacoEditor.dispose()}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=x({type:i,selectors:[["ng-component"]],decls:11,vars:5,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0","font-monospace"],[1,"col-6","text-end"],[1,"btn","btn-primary","waves-effect","m-0",3,"click","disabled"],[1,"fas","fa-fw","fa-floppy-disk"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],[1,"flex-grow-1","h-100","w-100","my-2",3,"options","model"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-2",3,"ngModel"],[1,"flex-grow-1","h-100","w-100","my-2",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-2",3,"ngModelChange","ngModel"]],template:function(n,e){n&1&&(m(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),v(4,"startup.sh"),l()(),m(5,"div",4)(6,"button",5),_("click",function(){return e.onSave()}),h(7,z,1,0,"i",6)(8,A,1,0,"i",7),l()()(),h(9,F,1,2,"ngx-monaco-editor",8)(10,W,2,1,"textarea",9),l()),n&2&&(s(6),f("disabled",e.saveInProgress),s(),d(e.saveInProgress?-1:7),s(),d(e.saveInProgress?8:-1),s(),d(e.isMobile?-1:9),s(),d(e.isMobile?10:-1))},dependencies:[P,$,y,E,k],encapsulation:2})}return i})();export{tt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D}from"./chunk-
|
|
1
|
+
import{a as D}from"./chunk-LLHKFCES.js";import{d as E}from"./chunk-BY7R34BA.js";import{b as B}from"./chunk-KDJYMZFG.js";import{h as O,k as R}from"./chunk-ESHZ74WN.js";import{a as k,b as I}from"./chunk-5R5SNIWB.js";import{Ac as o,Bc as l,Kb as _,Pb as u,Ub as r,Vb as n,Wb as v,Zc as T,_b as $,bc as S,cc as f,gb as e,ma as m,mc as a,nc as p,oc as x,tb as w,ua as C,va as y,wc as b,xc as g,zb as h}from"./chunk-QNWPOWRO.js";var U=(t,c)=>({"fas fa-fw fa-spinner fa-spin":t,"far fa-fw fa-check-circle":c}),F=t=>({"grey-text":t}),P=(t,c)=>({"far fa-fw fa-circle":t,"fas fa-fw fa-spinner fa-spin":c});function j(t,c){t&1&&(r(0,"p",7),a(1),o(2,"translate"),n()),t&2&&(e(),p(l(2,1,"restart.please_wait_while_server_restarts")))}function M(t,c){if(t&1&&(r(0,"div",8),a(1),n()),t&2){let i=f();e(),p(i.error)}}function V(t,c){if(t&1&&(r(0,"div",9)(1,"div",11)(2,"span"),v(3,"i",12),a(4),o(5,"translate"),n()(),r(6,"div",11)(7,"span",12),v(8,"i",12),a(9),o(10,"translate"),n()()()),t&2){let i=f();e(3),_("ngClass",g(9,U,!i.uiOnline,i.uiOnline)),e(),x(" ",l(5,5,"restart.ui_online")," "),e(3),_("ngClass",b(12,F,!i.uiOnline)),e(),_("ngClass",g(14,P,!i.uiOnline,i.uiOnline)),e(),x(" ",l(10,7,"restart.service_ready")," ")}}function z(t,c){if(t&1){let i=$();r(0,"p",15)(1,"button",16),S("click",function(){C(i);let d=f(2);return y(d.viewLogs())}),a(2),o(3,"translate"),n()()}t&2&&(e(2),p(l(3,1,"menu.tooltip_view_logs")))}function A(t,c){if(t&1&&(r(0,"div",10)(1,"p"),a(2),o(3,"translate"),n(),r(4,"p",13),a(5),o(6,"translate"),r(7,"span",14),a(8),n()(),h(9,z,4,3,"p",15),n()),t&2){let i=f();e(2),p(l(3,4,"restart.server_is_taking_long_time_to_restart")),e(3),x(" ",l(6,6,"restart.label_restart_command_executed"),": "),e(3),p(i.resp.command||"End Process"),e(),u(i.uiOnline?9:-1)}}var Y=(()=>{class t{$api=m(R);$router=m(E);$settings=m(B);$toastr=m(O);$translate=m(k);$ws=m(D);checkTimeout;checkDelay;resp={};timeout=!1;error=!1;uiOnline=!1;io;constructor(){}ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.$router.parseUrl(this.$router.url).queryParams.restarting?(this.uiOnline=!0,this.checkIfServerUp()):this.$api.put("/server/restart",{}).subscribe({next:s=>{this.resp=s,this.checkIfServerUp(),s.restartingUI||(this.uiOnline=!0)},error:s=>{console.error(s),this.error=this.$translate.instant("restart.toast_server_restart_error"),this.$toastr.error(this.$translate.instant("restart.toast_server_restart_error"),this.$translate.instant("toast.title_error"))}})}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",i=>{this.uiOnline=!0,(i.status==="up"||i.status==="pending")&&(this.$toastr.success(this.$translate.instant("restart.toast_server_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},7e3),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("restart.toast_server_restart_timeout"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},4e4)}viewLogs(){this.$router.navigate(["/logs"])}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}static \u0275fac=function(s){return new(s||t)};static \u0275cmp=w({type:t,selectors:[["ng-component"]],decls:15,vars:10,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"grey-text"],[1,"alert","alert-error","my-4"],[1,"justify-content-center","my-4"],[1,"alert","alert-warning","my-4"],[1,"restart-progress-box","primary-text"],[3,"ngClass"],[1,"grey-text","mb-0"],[1,"font-monospace"],[1,"mt-2","mb-0"],[1,"btn","btn-primary","mb-0",3,"click"]],template:function(s,d){s&1&&(r(0,"div",0)(1,"h3",1),a(2),o(3,"translate"),n()(),r(4,"div",2)(5,"div",3),v(6,"i",4),n(),r(7,"div",5)(8,"h4",6),a(9),o(10,"translate"),n(),h(11,j,3,3,"p",7)(12,M,2,1,"div",8)(13,V,11,17,"div",9)(14,A,10,8,"div",10),n()()),s&2&&(e(2),p(l(3,6,"menu.restart.title")),e(7),p(l(10,8,"restart.title_restart")),e(2),u(d.error?-1:11),e(),u(d.error?12:-1),e(),u(d.error?-1:13),e(),u(d.timeout?14:-1))},dependencies:[T,I],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{Y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as ln}from"./chunk-VAECS3ST.js";import{$ as j,A as De,Aa as jr,Ab as Gr,B as Mr,Ba as kr,C as kt,Ca as ie,Da as et,Ec as rt,Fb as Qr,Ga as Lr,Gb as Ht,Gc as nt,H as K,Ha as Bt,Hb as Kr,Ib as Zr,Jb as Yr,Jc as it,K as re,L as ne,N as Lt,Nc as nn,O as de,Oc as on,Qa as $r,S as Je,Sa as zr,T as Z,Tc as sn,U as $t,Uc as Ne,V as Dr,W as Er,Wb as Xr,Wc as an,Xc as fe,Yc as un,_ as Ur,a as h,aa as Nr,b as P,ba as w,bc as Jr,da as b,eb as Fr,fc as en,ga as C,ha as Pr,hc as tn,i as Ir,ia as xr,ic as rn,j as Ar,ja as O,ka as zt,l as _t,la as G,lb as Vt,m as jt,ma as p,mb as k,n as H,nb as qr,nd as cn,o as x,ob as Br,p as W,q as I,qa as pe,r as d,ra as $,rb as Vr,s as Me,sb as tt,t as Tr,ta as Ee,tb as Hr,u as Or,ub as Wr,vb as Ue,x as m,xa as Ft,y as Xe,ya as _r,z as T,za as qt}from"./chunk-QNWPOWRO.js";var f="primary",He=Symbol("RouteTitle"),Zt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Zt(t)}function Rn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let s=0;s<r.length;s++){let o=r[s],a=t[s];if(o[0]===":")i[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function li(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!z(t[e],n[e]))return!1;return!0}function z(t,n){let e=t?Yt(t):void 0,r=n?Yt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let s=0;s<e.length;s++)if(i=e[s],!Sn(t[i],n[i]))return!1;return!0}function Yt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Sn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,s)=>r[s]===i)}else return t===n}function yn(t){return t.length>0?t[t.length-1]:null}function te(t){return Tr(t)?t:Qr(t)?I(Promise.resolve(t)):d(t)}var hi={exact:wn,subset:bn},Cn={exact:di,subset:pi,ignored:()=>!0};function hn(t,n,e){return hi[e.paths](t.root,n.root,e.matrixParams)&&Cn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function di(t,n){return z(t,n)}function wn(t,n,e){if(!oe(t.segments,n.segments)||!at(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!wn(t.children[r],n.children[r],e))return!1;return!0}function pi(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Sn(t[e],n[e]))}function bn(t,n,e){return In(t,n,n.segments,e)}function In(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!oe(i,e)||n.hasChildren()||!at(i,e,r))}else if(t.segments.length===e.length){if(!oe(t.segments,e)||!at(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!bn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!oe(t.segments,i)||!at(t.segments,i,r)||!t.children[f]?!1:In(t.children[f],n,s,r)}}function at(t,n,e){return n.every((r,i)=>Cn[e](t[i].parameters,r.parameters))}var q=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=ae(this.queryParams)),this._queryParamMap}toString(){return vi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ut(this)}},Y=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){var n;return(n=this._parameterMap)!=null||(this._parameterMap=ae(this.parameters)),this._parameterMap}toString(){return Tn(this)}};function fi(t,n){return oe(t,n)&&t.every((e,r)=>z(e.parameters,n[r].parameters))}function oe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function gi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var ue=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new X,providedIn:"root"})}return t})(),X=class{parse(n){let e=new Jt(n);return new q(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Pe(n.root,!0)}`,r=Si(n.queryParams),i=typeof n.fragment=="string"?`#${mi(n.fragment)}`:"";return`${e}${r}${i}`}},vi=new X;function ut(t){return t.segments.map(n=>Tn(n)).join("/")}function Pe(t,n){if(!t.hasChildren())return ut(t);if(n){let e=t.children[f]?Pe(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,s])=>{i!==f&&r.push(`${i}:${Pe(s,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=gi(t,(r,i)=>i===f?[Pe(t.children[f],!1)]:[`${i}:${Pe(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ut(t)}/${e[0]}`:`${ut(t)}/(${e.join("//")})`}}function An(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ot(t){return An(t).replace(/%3B/gi,";")}function mi(t){return encodeURI(t)}function Xt(t){return An(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ct(t){return decodeURIComponent(t)}function dn(t){return ct(t.replace(/\+/g,"%20"))}function Tn(t){return`${Xt(t.path)}${Ri(t.parameters)}`}function Ri(t){return Object.entries(t).map(([n,e])=>`;${Xt(n)}=${Xt(e)}`).join("")}function Si(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${ot(e)}=${ot(i)}`).join("&"):`${ot(e)}=${ot(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var yi=/^[^\/()?;#]+/;function Wt(t){let n=t.match(yi);return n?n[0]:""}var Ci=/^[^\/()?;=#]+/;function wi(t){let n=t.match(Ci);return n?n[0]:""}var bi=/^[^=?&#]+/;function Ii(t){let n=t.match(bi);return n?n[0]:""}var Ai=/^[^&#]+/;function Ti(t){let n=t.match(Ai);return n?n[0]:""}var Jt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new v(n,e)),r}parseSegment(){let n=Wt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new Y(ct(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=wi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Wt(this.remaining);i&&(r=i,this.capture(r))}n[ct(e)]=ct(r)}parseQueryParam(n){let e=Ii(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let o=Ti(this.remaining);o&&(r=o,this.capture(r))}let i=dn(e),s=dn(r);if(n.hasOwnProperty(i)){let o=n[i];Array.isArray(o)||(o=[o],n[i]=o),o.push(s)}else n[i]=s}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Wt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=f);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[f]:new v([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new b(4011,!1)}};function On(t){return t.segments.length>0?new v([],{[f]:t}):t}function Mn(t){let n={};for(let[r,i]of Object.entries(t.children)){let s=Mn(i);if(r===f&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))n[o]=a;else(s.segments.length>0||s.hasChildren())&&(n[r]=s)}let e=new v(t.segments,n);return Oi(e)}function Oi(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof q}function Dn(t,n,e=null,r=null){let i=En(t);return Un(i,n,e,r)}function En(t){let n;function e(s){let o={};for(let u of s.children){let c=e(u);o[u.outlet]=c}let a=new v(s.url,o);return s===t&&(n=a),a}let r=e(t.root),i=On(r);return n!=null?n:i}function Un(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Gt(i,i,i,e,r);let s=Mi(n);if(s.toRoot())return Gt(i,i,new v([],{}),e,r);let o=Di(s,i,t),a=o.processChildren?_e(o.segmentGroup,o.index,s.commands):Pn(o.segmentGroup,o.index,s.commands);return Gt(i,o.segmentGroup,a,e,r)}function ht(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function Gt(t,n,e,r,i){let s={};r&&Object.entries(r).forEach(([u,c])=>{s[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let o;t===n?o=e:o=Nn(t,n,e);let a=On(Mn(o));return new q(a,s,i)}function Nn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,s])=>{s===n?r[i]=e:r[i]=Nn(s,n,e)}),new v(t.segments,r)}var dt=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ht(r[0]))throw new b(4003,!1);let i=r.find(ke);if(i&&i!==yn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Mi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new dt(!0,0,t);let n=0,e=!1,r=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,s]},[]);return new dt(e,n,r)}var me=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Di(t,n,e){if(t.isAbsolute)return new me(n,!0,0);if(!e)return new me(n,!1,NaN);if(e.parent===null)return new me(e,!0,0);let r=ht(t.commands[0])?0:1,i=e.segments.length-1+r;return Ei(e,i,t.numberOfDoubleDots)}function Ei(t,n,e){let r=t,i=n,s=e;for(;s>i;){if(s-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new me(r,!1,i-s)}function Ui(t){return ke(t[0])?t[0].outlets:{[f]:t}}function Pn(t,n,e){if(t!=null||(t=new v([],{})),t.segments.length===0&&t.hasChildren())return _e(t,n,e);let r=Ni(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let s=new v(t.segments.slice(0,r.pathIndex),{});return s.children[f]=new v(t.segments.slice(r.pathIndex),t.children),_e(s,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?er(t,n,e):r.match?_e(t,0,i):er(t,n,e)}function _e(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=Ui(e),i={};if(Object.keys(r).some(s=>s!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let s=_e(t.children[f],n,e);return new v(t.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=Pn(t.children[s],n,o))}),Object.entries(t.children).forEach(([s,o])=>{r[s]===void 0&&(i[s]=o)}),new v(t.segments,i)}}function Ni(t,n,e){let r=0,i=n,s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return s;let o=t.segments[i],a=e[r];if(ke(a))break;let u=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!fn(u,c,o))return s;r+=2}else{if(!fn(u,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function er(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let s=e[i];if(ke(s)){let u=Pi(s.outlets);return new v(r,u)}if(i===0&&ht(e[0])){let u=t.segments[n];r.push(new Y(u.path,pn(e[0]))),i++;continue}let o=ke(s)?s.outlets[f]:`${s}`,a=i<e.length-1?e[i+1]:null;o&&a&&ht(a)?(r.push(new Y(o,pn(a))),i+=2):(r.push(new Y(o,{})),i++)}return new v(r,{})}function Pi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=er(new v([],{}),0,r))}),n}function pn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function fn(t,n,e){return t==e.path&&z(n,e.parameters)}var lt="imperative",y=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(y||{}),U=class{id;url;constructor(n,e){this.id=n,this.url=e}},ee=class extends U{type=y.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},N=class extends U{urlAfterRedirects;type=y.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},M=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(M||{}),Se=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Se||{}),F=class extends U{reason;code;type=y.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},B=class extends U{reason;code;type=y.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ye=class extends U{error;target;type=y.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Le=class extends U{urlAfterRedirects;state;type=y.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class extends U{urlAfterRedirects;state;type=y.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class extends U{urlAfterRedirects;state;shouldActivate;type=y.GuardsCheckEnd;constructor(n,e,r,i,s){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},gt=class extends U{urlAfterRedirects;state;type=y.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vt=class extends U{urlAfterRedirects;state;type=y.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mt=class{route;type=y.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rt=class{route;type=y.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},St=class{snapshot;type=y.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=y.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct=class{snapshot;type=y.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wt=class{snapshot;type=y.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ce=class{routerEvent;position;anchor;type=y.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},$e=class{},we=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function xi(t,n){var e;return t.providers&&!t._injector&&(t._injector=tt(t.providers,n,`Route: ${t.path}`)),(e=t._injector)!=null?e:n}function L(t){return t.outlet||f}function _i(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}function We(t){var n;if(!t)return null;if((n=t.routeConfig)!=null&&n._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var bt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){var n,e;return(e=We((n=this.route)==null?void 0:n.snapshot))!=null?e:this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ce(this.rootInjector)}},ce=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new bt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(G(pe))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),It=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=tr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=tr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=rr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return rr(n,this._root).map(e=>e.value)}};function tr(t,n){if(t===n.value)return n;for(let e of n.children){let r=tr(t,e);if(r)return r}return null}function rr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=rr(t,e);if(r.length)return r.unshift(n),r}return[]}var E=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ve(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ze=class extends It{snapshot;constructor(n,e){super(n),this.snapshot=e,lr(this,n)}toString(){return this.snapshot.toString()}};function xn(t){let n=ji(t),e=new x([new Y("",{})]),r=new x({}),i=new x({}),s=new x({}),o=new x(""),a=new Q(e,r,s,o,i,f,t,n.root);return a.snapshot=n.root,new ze(new E(a,[]),n)}function ji(t){let n={},e={},r={},i="",s=new se([],n,r,i,e,f,t,null,{});return new Fe("",new E(s,[]))}var Q=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,s,o,a,u){var c,l;this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=u,this.title=(l=(c=this.dataSubject)==null?void 0:c.pipe(m(g=>g[He])))!=null?l:d(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s}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(){var n;return(n=this._paramMap)!=null||(this._paramMap=this.params.pipe(m(e=>ae(e)))),this._paramMap}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=this.queryParams.pipe(m(e=>ae(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function At(t,n,e="emptyOnly"){var s,o;let r,{routeConfig:i}=t;return n!==null&&(e==="always"||(i==null?void 0:i.path)===""||!n.component&&!((s=n.routeConfig)!=null&&s.loadComponent))?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i==null?void 0:i.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),(o=t._resolvedData)!=null?o:{})},i&&jn(i)&&(r.resolve[He]=i.title),r}var se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){var n;return(n=this.data)==null?void 0:n[He]}constructor(n,e,r,i,s,o,a,u,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=u,this._resolve=c}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(){var n;return(n=this._paramMap)!=null||(this._paramMap=ae(this.params)),this._paramMap}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=ae(this.queryParams)),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Fe=class extends It{url;constructor(n,e){super(e),this.url=n,lr(this,e)}toString(){return _n(this._root)}};function lr(t,n){n.value._routerState=t,n.children.forEach(e=>lr(t,e))}function _n(t){let n=t.children.length>0?` { ${t.children.map(_n).join(", ")} } `:"";return`${t.value}${n}`}function Qt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,z(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),z(n.params,e.params)||t.paramsSubject.next(e.params),li(n.url,e.url)||t.urlSubject.next(e.url),z(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function nr(t,n){let e=z(t.params,n.params)&&fi(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||nr(t.parent,n.parent))}function jn(t){return typeof t.title=="string"||t.title===null}var kn=new O(""),hr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new ie;deactivateEvents=new ie;attachEvents=new ie;detachEvents=new ie;routerOutletData=Lr(void 0);parentContexts=p(ce);location=p(Br);changeDetector=p(nt);inputBinder=p(Ge,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){var e;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(e=this.inputBinder)==null||e.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){var r;return((r=this.parentContexts.getContext(e))==null?void 0:r.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e!=null&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){var i;this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),(i=this.inputBinder)==null||i.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){var c;if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new ir(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(o,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),(c=this.inputBinder)==null||c.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ee]})}return t})(),ir=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Q?this.route:n===ce?this.childContexts:n===kn?this.outletData:this.parent.get(n,e)}},Ge=new O(""),dr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){var r;(r=this.outletDataSubscriptions.get(e))==null||r.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Xe([r.queryParams,r.params,r.data]).pipe(j(([s,o,a],u)=>(a=h(h(h({},s),o),a),u===0?d(a):Promise.resolve(a)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let o=nn(r.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of o.inputs)e.activatedComponentRef.setInput(a,s[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function ki(t,n,e){let r=qe(t,n._root,e?e._root:void 0);return new ze(r,n)}function qe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Li(t,n,e);return new E(r,i)}else{if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(a=>qe(t,a)),o}}let r=$i(n.value),i=n.children.map(s=>qe(t,s));return new E(r,i)}}function Li(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return qe(t,r,i);return qe(t,r)})}function $i(t){return new Q(new x(t.url),new x(t.params),new x(t.queryParams),new x(t.fragment),new x(t.data),t.outlet,t.component,t)}var be=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},Ln="ngNavigationCancelingError";function Tt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=$n(!1,M.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function $n(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Ln]=!0,e.cancellationCode=n,e}function zi(t){return zn(t)&&J(t.url)}function zn(t){return!!t&&t[Ln]}var Fi=(t,n,e,r)=>m(i=>(new or(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),or=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,s){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=s}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Qt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(i===s)if(i.component){let o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,r);else s&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=ve(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(r&&r.outlet){let o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=ve(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new wt(s.value.snapshot))}),n.children.length&&this.forwardEvent(new yt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(Qt(i),i===s)if(i.component){let o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Qt(a.route.value),this.activateChildRoutes(n,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(n,null,o.children)}else this.activateChildRoutes(n,null,r)}},Ot=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Re=class{component;route;constructor(n,e){this.component=n,this.route=e}};function qi(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function Bi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ae(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!xr(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=ve(n);return t.children.forEach(o=>{Vi(o,s[o.value.outlet],e,r.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>je(a,e.getContext(o),i)),i}function Vi(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let u=Hi(o,s,s.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Ot(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?xe(t,n,a?a.children:null,r,i):xe(t,n,e,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Re(a.outlet.component,o))}else o&&je(n,a,i),i.canActivateChecks.push(new Ot(r)),s.component?xe(t,null,a?a.children:null,r,i):xe(t,null,e,r,i);return i}function Hi(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!oe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!oe(t.url,n.url)||!z(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nr(t,n)||!z(t.queryParams,n.queryParams);case"paramsChange":default:return!nr(t,n)}}function je(t,n,e){let r=ve(t),i=t.value;Object.entries(r).forEach(([s,o])=>{i.component?n?je(o,n.children.getContext(s),e):je(o,null,e):je(o,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Re(n.outlet.component,i)):e.canDeactivateChecks.push(new Re(null,i)):e.canDeactivateChecks.push(new Re(null,i))}function Qe(t){return typeof t=="function"}function Wi(t){return typeof t=="boolean"}function Gi(t){return t&&Qe(t.canLoad)}function Qi(t){return t&&Qe(t.canActivate)}function Ki(t){return t&&Qe(t.canActivateChild)}function Zi(t){return t&&Qe(t.canDeactivate)}function Yi(t){return t&&Qe(t.canMatch)}function Fn(t){return t instanceof Or||(t==null?void 0:t.name)==="EmptyError"}var st=Symbol("INITIAL_VALUE");function Ie(){return j(t=>Xe(t.map(n=>n.pipe(de(1),Ur(st)))).pipe(m(n=>{for(let e of n)if(e!==!0){if(e===st)return st;if(e===!1||Xi(e))return e}return!0}),K(n=>n!==st),de(1)))}function Xi(t){return J(t)||t instanceof be}function Ji(t,n){return T(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?d(P(h({},e),{guardsResult:!0})):eo(o,r,i,t).pipe(T(a=>a&&Wi(a)?to(r,s,t,n):d(a)),m(a=>P(h({},e),{guardsResult:a})))})}function eo(t,n,e,r){return I(t).pipe(T(i=>so(i.component,i.route,e,n,r)),Z(i=>i!==!0,!0))}function to(t,n,e,r){return I(n).pipe(ne(i=>Mr(no(i.route.parent,r),ro(i.route,r),oo(t,i.path,e),io(t,i.route,e))),Z(i=>i!==!0,!0))}function ro(t,n){return t!==null&&n&&n(new Ct(t)),d(!0)}function no(t,n){return t!==null&&n&&n(new St(t)),d(!0)}function io(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return d(!0);let i=r.map(s=>kt(()=>{var c;let o=(c=We(n))!=null?c:e,a=Ae(s,o),u=Qi(a)?a.canActivate(n,t):$(o,()=>a(n,t));return te(u).pipe(Z())}));return d(i).pipe(Ie())}function oo(t,n,e){let r=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>Bi(o)).filter(o=>o!==null).map(o=>kt(()=>{let a=o.guards.map(u=>{var R;let c=(R=We(o.node))!=null?R:e,l=Ae(u,c),g=Ki(l)?l.canActivateChild(r,t):$(c,()=>l(r,t));return te(g).pipe(Z())});return d(a).pipe(Ie())}));return d(s).pipe(Ie())}function so(t,n,e,r,i){let s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!s||s.length===0)return d(!0);let o=s.map(a=>{var g;let u=(g=We(n))!=null?g:i,c=Ae(a,u),l=Zi(c)?c.canDeactivate(t,n,e,r):$(u,()=>c(t,n,e,r));return te(l).pipe(Z())});return d(o).pipe(Ie())}function ao(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return d(!0);let s=i.map(o=>{let a=Ae(o,t),u=Gi(a)?a.canLoad(n,e):$(t,()=>a(n,e));return te(u)});return d(s).pipe(Ie(),qn(r))}function qn(t){return Ar(w(n=>{if(typeof n!="boolean")throw Tt(t,n)}),m(n=>n===!0))}function uo(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return d(!0);let s=i.map(o=>{let a=Ae(o,t),u=Yi(a)?a.canMatch(n,e):$(t,()=>a(n,e));return te(u)});return d(s).pipe(Ie(),qn(r))}var Be=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Ve=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ge(t){return Me(new Be(t))}function co(t){return Me(new b(4e3,!1))}function lo(t){return Me($n(!1,M.GuardRejected))}var sr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return d(r);if(i.numberOfChildren>1||!i.children[f])return co(`${n.redirectTo}`);i=i.children[f]}}applyRedirectCommands(n,e,r,i,s){if(typeof e!="string"){let a=e,{queryParams:u,fragment:c,routeConfig:l,url:g,outlet:R,params:S,data:D,title:A}=i,_=$(s,()=>a({params:S,data:D,queryParams:u,fragment:c,routeConfig:l,url:g,outlet:R,title:A}));if(_ instanceof q)throw new Ve(_);e=_}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new Ve(o);return o}applyRedirectCreateUrlTree(n,e,r,i){let s=this.createSegmentGroup(n,e.root,r,i);return new q(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);r[i]=e[a]}else r[i]=s}),r}createSegmentGroup(n,e,r,i){let s=this.createSegments(n,e.segments,r,i),o={};return Object.entries(e.children).forEach(([a,u])=>{o[a]=this.createSegmentGroup(n,u,r,i)}),new v(s,o)}createSegments(n,e,r,i){return e.map(s=>s.path[0]===":"?this.findPosParam(n,s,i):this.findOrReturn(s,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},ar={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ho(t,n,e,r,i){let s=Bn(t,n,e);return s.matched?(r=xi(n,r),uo(r,n,e,i).pipe(m(o=>o===!0?s:h({},ar)))):d(s)}function Bn(t,n,e){var a,u;if(n.path==="**")return po(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},ar):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Rn)(e,t,n);if(!i)return h({},ar);let s={};Object.entries((a=i.posParams)!=null?a:{}).forEach(([c,l])=>{s[c]=l.path});let o=i.consumed.length>0?h(h({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:(u=i.posParams)!=null?u:{}}}function po(t){return{matched:!0,parameters:t.length>0?yn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function gn(t,n,e,r){return e.length>0&&vo(t,e,r)?{segmentGroup:new v(n,go(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&mo(t,e,r)?{segmentGroup:new v(t.segments,fo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function fo(t,n,e,r){let i={};for(let s of e)if(Dt(t,n,s)&&!r[L(s)]){let o=new v([],{});i[L(s)]=o}return h(h({},r),i)}function go(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&L(r)!==f){let i=new v([],{});e[L(r)]=i}return e}function vo(t,n,e){return e.some(r=>Dt(t,n,r)&&L(r)!==f)}function mo(t,n,e){return e.some(r=>Dt(t,n,r))}function Dt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ro(t,n,e){return n.length===0&&!t.children[e]}var ur=class{};function So(t,n,e,r,i,s,o="emptyOnly"){return new cr(t,n,e,r,i,o,s).recognize()}var yo=31,cr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,s,o,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new sr(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=gn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:e,rootSnapshot:r})=>{let i=new E(r,e),s=new Fe("",i),o=Dn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(n){let e=new se([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,f,e).pipe(m(r=>({children:r,rootSnapshot:e})),re(r=>{if(r instanceof Ve)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Be?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,s){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,s):this.processSegment(n,e,r,r.segments,i,!0,s).pipe(m(o=>o instanceof E?[o]:[]))}processChildren(n,e,r,i){let s=[];for(let o of Object.keys(r.children))o==="primary"?s.unshift(o):s.push(o);return I(s).pipe(ne(o=>{let a=r.children[o],u=_i(e,o);return this.processSegmentGroup(n,u,a,o,i)}),Er((o,a)=>(o.push(...a),o)),Lt(null),Dr(),T(o=>{if(o===null)return ge(r);let a=Vn(o);return Co(a),d(a)}))}processSegment(n,e,r,i,s,o,a){return I(e).pipe(ne(u=>{var c;return this.processSegmentAgainstRoute((c=u._injector)!=null?c:n,e,u,r,i,s,o,a).pipe(re(l=>{if(l instanceof Be)return d(null);throw l}))}),Z(u=>!!u),re(u=>{if(Fn(u))return Ro(r,i,s)?d(new ur):ge(r);throw u}))}processSegmentAgainstRoute(n,e,r,i,s,o,a,u){return L(r)!==o&&(o===f||!Dt(i,s,r))?ge(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,s,o,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,s,o,u):ge(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,s,o,a){var _,he;let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:g,remainingSegments:R}=Bn(e,i,s);if(!u)return ge(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>yo&&(this.allowRedirects=!1));let S=new se(s,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,vn(i),L(i),(he=(_=i.component)!=null?_:i._loadedComponent)!=null?he:null,i,mn(i)),D=At(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(D.params),S.data=Object.freeze(D.data);let A=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,g,S,n);return this.applyRedirects.lineralizeSegments(i,A).pipe(T(Oe=>this.processSegment(n,r,e,Oe.concat(R),o,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,s,o){let a=ho(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(j(u=>{var c;return u.matched?(n=(c=r._injector)!=null?c:n,this.getChildConfig(n,r,i).pipe(j(({routes:l})=>{var Cr,wr,br;let g=(Cr=r._loadedInjector)!=null?Cr:n,{parameters:R,consumedSegments:S,remainingSegments:D}=u,A=new se(S,R,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,vn(r),L(r),(br=(wr=r.component)!=null?wr:r._loadedComponent)!=null?br:null,r,mn(r)),_=At(A,o,this.paramsInheritanceStrategy);A.params=Object.freeze(_.params),A.data=Object.freeze(_.data);let{segmentGroup:he,slicedSegments:Oe}=gn(e,S,D,l);if(Oe.length===0&&he.hasChildren())return this.processChildren(g,l,he,A).pipe(m(Ye=>new E(A,Ye)));if(l.length===0&&Oe.length===0)return d(new E(A,[]));let ui=L(r)===s;return this.processSegment(g,l,he,Oe,ui?f:s,!0,A).pipe(m(Ye=>new E(A,Ye instanceof E?[Ye]:[])))}))):ge(e)}))}getChildConfig(n,e,r){return e.children?d({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):ao(n,e,r,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(n,e).pipe(w(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):lo(e))):d({routes:[],injector:n})}};function Co(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function wo(t){let n=t.value.routeConfig;return n&&n.path===""}function Vn(t){let n=[],e=new Set;for(let r of t){if(!wo(r)){n.push(r);continue}let i=n.find(s=>r.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Vn(r.children);n.push(new E(r.value,i))}return n.filter(r=>!e.has(r))}function vn(t){return t.data||{}}function mn(t){return t.resolve||{}}function bo(t,n,e,r,i,s){return T(o=>So(t,n,e,r,o.extractedUrl,i,s).pipe(m(({state:a,tree:u})=>P(h({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function Io(t,n){return T(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let s=new Set(i.map(u=>u.route)),o=new Set;for(let u of s)if(!o.has(u))for(let c of Hn(u))o.add(c);let a=0;return I(o).pipe(ne(u=>s.has(u)?Ao(u,r,t,n):(u.data=At(u,u.parent,t).resolve,d(void 0))),w(()=>a++),$t(1),T(u=>a===o.size?d(e):W))})}function Hn(t){let n=t.children.map(e=>Hn(e)).flat();return[t,...n]}function Ao(t,n,e,r){let i=t.routeConfig,s=t._resolve;return(i==null?void 0:i.title)!==void 0&&!jn(i)&&(s[He]=i.title),To(s,t,n,r).pipe(m(o=>(t._resolvedData=o,t.data=At(t,t.parent,e).resolve,null)))}function To(t,n,e,r){let i=Yt(t);if(i.length===0)return d({});let s={};return I(i).pipe(T(o=>Oo(t[o],n,e,r).pipe(Z(),w(a=>{if(a instanceof be)throw Tt(new X,a);s[o]=a}))),$t(1),m(()=>s),re(o=>Fn(o)?W:Me(o)))}function Oo(t,n,e,r){var a;let i=(a=We(n))!=null?a:r,s=Ae(t,i),o=s.resolve?s.resolve(n,e):$(i,()=>s(n,e));return te(o)}function Kt(t){return j(n=>{let e=t(n);return e?I(e).pipe(m(()=>n)):d(n)})}var pr=(()=>{class t{buildTitle(e){var s;let r,i=e.root;for(;i!==void 0;)r=(s=this.getResolvedTitleForRoute(i))!=null?s:r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[He]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Wn),providedIn:"root"})}return t})(),Wn=(()=>{class t extends pr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(G(ln))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),le=new O("",{providedIn:"root",factory:()=>({})}),fr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Hr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Xr(0,"router-outlet")},dependencies:[hr],encapsulation:2})}return t})();function gr(t){let n=t.children&&t.children.map(gr),e=n?P(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=fr),e}var Te=new O(""),Et=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(rt);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return d(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=te(e.loadComponent()).pipe(m(Qn),w(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),Je(()=>{this.componentLoaders.delete(e)})),i=new jt(r,()=>new H).pipe(_t());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return d({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=Gn(r,this.compiler,e,this.onLoadEndListener).pipe(Je(()=>{this.childrenLoaders.delete(r)})),o=new jt(s,()=>new H).pipe(_t());return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Gn(t,n,e,r){return te(t.loadChildren()).pipe(m(Qn),T(i=>i instanceof Vr||Array.isArray(i)?d(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(t);let s,o,a=!1;return Array.isArray(i)?(o=i,a=!0):(s=i.create(e).injector,o=s.get(Te,[],{optional:!0,self:!0}).flat()),{routes:o.map(gr),injector:s}}))}function Mo(t){return t&&typeof t=="object"&&"default"in t}function Qn(t){return Mo(t)?t.default:t}var Ut=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Do),providedIn:"root"})}return t})(),Do=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vr=new O(""),mr=new O("");function Kn(t,n,e){let r=t.get(mr),i=t.get(on);return t.get(et).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),a=i.startViewTransition(()=>(s(),Eo(t))),{onViewTransitionCreated:u}=r;return u&&$(t,()=>u({transition:a,from:n,to:e})),o})}function Eo(t){return new Promise(n=>{zr({read:()=>setTimeout(n)},{injector:t})})}var Rr=new O(""),Nt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new H;transitionAbortSubject=new H;configLoader=p(Et);environmentInjector=p(pe);destroyRef=p(jr);urlSerializer=p(ue);rootContexts=p(ce);location=p(fe);inputBindingEnabled=p(Ge,{optional:!0})!==null;titleStrategy=p(pr);options=p(le,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(Ut);createViewTransition=p(vr,{optional:!0});navigationErrorHandler=p(Rr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new mt(i)),r=i=>this.events.next(new Rt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){var e;(e=this.transitions)==null||e.complete()}handleNavigationRequest(e){var i;let r=++this.navigationId;(i=this.transitions)==null||i.next(P(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))}setupNavigations(e){return this.transitions=new x(null),this.transitions.pipe(K(r=>r!==null),j(r=>{let i=!1,s=!1;return d(r).pipe(j(o=>{var c;if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",M.SupersededByNewNavigation),W;this.currentTransition=r,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?P(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=(c=o.extras.onSameUrlNavigation)!=null?c:e.onSameUrlNavigation;if(!a&&u!=="reload"){let l="";return this.events.next(new B(o.id,this.urlSerializer.serialize(o.rawUrl),l,Se.IgnoredSameUrlNavigation)),o.resolve(!1),W}if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return d(o).pipe(j(l=>(this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?W:Promise.resolve(l))),bo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),w(l=>{r.targetSnapshot=l.targetSnapshot,r.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation=P(h({},this.currentNavigation),{finalUrl:l.urlAfterRedirects});let g=new Le(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(g)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:g,source:R,restoredState:S,extras:D}=o,A=new ee(l,this.urlSerializer.serialize(g),R,S);this.events.next(A);let _=xn(this.rootComponentType).snapshot;return this.currentTransition=r=P(h({},o),{targetSnapshot:_,urlAfterRedirects:g,extras:P(h({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,d(r)}else{let l="";return this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),l,Se.IgnoredByUrlHandlingStrategy)),o.resolve(!1),W}}),w(o=>{let a=new pt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),m(o=>(this.currentTransition=r=P(h({},o),{guards:qi(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),Ji(this.environmentInjector,o=>this.events.next(o)),w(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Tt(this.urlSerializer,o.guardsResult);let a=new ft(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),K(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",M.GuardRejected),!1)),Kt(o=>{if(o.guards.canActivateChecks.length!==0)return d(o).pipe(w(a=>{let u=new gt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),j(a=>{let u=!1;return d(a).pipe(Io(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(a,"",M.NoDataFromResolver)}}))}),w(a=>{let u=new vt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),Kt(o=>{let a=u=>{var l;let c=[];(l=u.routeConfig)!=null&&l.loadComponent&&!u.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(u.routeConfig).pipe(w(g=>{u.component=g}),m(()=>{})));for(let g of u.children)c.push(...a(g));return c};return Xe(a(o.targetSnapshot.root)).pipe(Lt(null),de(1))}),Kt(()=>this.afterPreactivation()),j(()=>{var c;let{currentSnapshot:o,targetSnapshot:a}=r,u=(c=this.createViewTransition)==null?void 0:c.call(this,this.environmentInjector,o.root,a.root);return u?I(u).pipe(m(()=>r)):d(r)}),m(o=>{let a=ki(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=P(h({},o),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,r}),w(()=>{this.events.next(new $e)}),Fi(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),de(1),w({next:o=>{var a;i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new N(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),(a=this.titleStrategy)==null||a.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),Nr(this.transitionAbortSubject.pipe(w(o=>{throw o}))),Je(()=>{var o;!i&&!s&&this.cancelNavigationTransition(r,"",M.SupersededByNewNavigation),((o=this.currentTransition)==null?void 0:o.id)===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),re(o=>{var a;if(this.destroyed)return r.resolve(!1),W;if(s=!0,zn(o))this.events.next(new F(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),zi(o)?this.events.next(new we(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let u=new ye(r.id,this.urlSerializer.serialize(r.extractedUrl),o,(a=r.targetSnapshot)!=null?a:void 0);try{let c=$(this.environmentInjector,()=>{var l;return(l=this.navigationErrorHandler)==null?void 0:l.call(this,u)});if(c instanceof be){let{message:l,cancellationCode:g}=Tt(this.urlSerializer,c);this.events.next(new F(r.id,this.urlSerializer.serialize(r.extractedUrl),l,g)),this.events.next(new we(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(u),o}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return W}))}))}cancelNavigationTransition(e,r,i){let s=new F(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){var e,r;return((e=this.currentTransition)==null?void 0:e.extractedUrl.toString())!==((r=this.currentTransition)==null?void 0:r.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,s,o,a;let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=(o=(i=this.currentNavigation)==null?void 0:i.targetBrowserUrl)!=null?o:(s=this.currentNavigation)==null?void 0:s.extractedUrl;return e.toString()!==(r==null?void 0:r.toString())&&!((a=this.currentNavigation)!=null&&a.extras.skipLocationChange)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Uo(t){return t!==lt}var Zn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(No),providedIn:"root"})}return t})(),Mt=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},No=(()=>{class t extends Mt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ft(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yn=(()=>{class t{urlSerializer=p(ue);options=p(le,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(fe);urlHandlingStrategy=p(Ut);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new q;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let s=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,o=i!=null?i:s;return o instanceof q?this.urlSerializer.serialize(o):o}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=xn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e!=null?e:this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Po),providedIn:"root"})}return t})(),Po=(()=>{class t extends Yn{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){var e,r;return this.canceledNavigationResolution!=="computed"?this.currentPageId:(r=(e=this.restoredState())==null?void 0:e.\u0275routerPageId)!=null?r:this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof ee?this.updateStateMemento():e instanceof B?this.commitTransition(r):e instanceof Le?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $e?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof F&&(e.code===M.GuardRejected||e.code===M.NoDataFromResolver)?this.restoreHistory(r):e instanceof ye?this.restoreHistory(r,!0):e instanceof N&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:s,state:o}=r;if(this.location.isCurrentPathEqualTo(e)||s){let a=this.browserPageId,u=h(h({},o),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=h(h({},o),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.getCurrentUrlTree()===e.finalUrl&&s===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ft(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pt(t,n){t.events.pipe(K(e=>e instanceof N||e instanceof F||e instanceof ye||e instanceof B),m(e=>e instanceof N||e instanceof B?0:(e instanceof F?e.code===M.Redirect||e.code===M.SupersededByNewNavigation:!1)?2:1),K(e=>e!==2),de(1)).subscribe(()=>{n()})}var xo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_o={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},V=(()=>{var n,e;class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Gr);stateManager=p(Yn);options=p(le,{optional:!0})||{};pendingTasks=p(kr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Nt);urlSerializer=p(ue);location=p(fe);urlHandlingStrategy=p(Ut);_events=new H;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(Zn);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(e=(n=p(Te,{optional:!0}))==null?void 0:n.flat())!=null?e:[];componentInputBindingEnabled=!!p(Ge,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ir;subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(s=>{try{let o=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(o!==null&&a!==null){if(this.stateManager.handleRouterEvent(s,a),s instanceof F&&s.code!==M.Redirect&&s.code!==M.SupersededByNewNavigation)this.navigated=!0;else if(s instanceof N)this.navigated=!0;else if(s instanceof we){let u=s.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(s.url,o.currentRawUrl),l=h({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Uo(o.source)},u);this.scheduleNavigation(c,lt,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}ko(s)&&this._events.next(s)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),lt,this.stateManager.restoredState())}setUpLocationChangeListener(){var i;(i=this.nonRouterCurrentEntryChangeSubscription)!=null||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((s,o,a)=>{this.navigateToSyncWithBrowser(s,a,o)}))}navigateToSyncWithBrowser(i,s,o){let a={replaceUrl:!0},u=o!=null&&o.navigationId?o:null;if(o){let l=h({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,s,u,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(gr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,s={}){let{relativeTo:o,queryParams:a,fragment:u,queryParamsHandling:c,preserveFragment:l}=s,g=l?this.currentUrlTree.fragment:u,R=null;switch(c!=null?c:this.options.defaultQueryParamsHandling){case"merge":R=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":R=this.currentUrlTree.queryParams;break;default:R=a||null}R!==null&&(R=this.removeEmptyProps(R));let S;try{let D=o?o.snapshot:this.routerState.snapshot.root;S=En(D)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),S=this.currentUrlTree.root}return Un(S,i,R,g!=null?g:null)}navigateByUrl(i,s={skipLocationChange:!1}){let o=J(i)?i:this.parseUrl(i),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,lt,null,s)}navigate(i,s={skipLocationChange:!1}){return jo(i),this.navigateByUrl(this.createUrlTree(i,s),s)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,s){let o;if(s===!0?o=h({},xo):s===!1?o=h({},_o):o=s,J(i))return hn(this.currentUrlTree,i,o);let a=this.parseUrl(i);return hn(this.currentUrlTree,a,o)}removeEmptyProps(i){return Object.entries(i).reduce((s,[o,a])=>(a!=null&&(s[o]=a),s),{})}scheduleNavigation(i,s,o,a,u){if(this.disposed)return Promise.resolve(!1);let c,l,g;u?(c=u.resolve,l=u.reject,g=u.promise):g=new Promise((S,D)=>{c=S,l=D});let R=this.pendingTasks.add();return Pt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(R))}),this.navigationTransitions.handleNavigationRequest({source:s,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:a,resolve:c,reject:l,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(S=>Promise.reject(S))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new b(4008,!1)}function ko(t){return!(t instanceof $e)&&!(t instanceof we)}var xt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new H;constructor(e,r,i,s,o,a){var c;this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=a;let u=(c=o.nativeElement.tagName)==null?void 0:c.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof N&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,s,o){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){var e;(e=this.subscription)==null||e.unsubscribe()}updateHref(){var i;let e=this.urlTree;this.href=e!==null&&this.locationStrategy?(i=this.locationStrategy)==null?void 0:i.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:Fr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,s=this.el.nativeElement;r!==null?i.setAttribute(s,e,r):i.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:J(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(k(V),k(Q),_r("tabindex"),k(Vt),k(Bt),k(Ne))};static \u0275dir=Ue({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Jr("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),r&2&&Yr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",it],skipLocationChange:[2,"skipLocationChange","skipLocationChange",it],replaceUrl:[2,"replaceUrl","replaceUrl",it],routerLink:"routerLink"},features:[Ee]})}return t})(),Lo=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ie;constructor(e,r,i,s,o){this.router=e,this.element=r,this.renderer=i,this.cdr=s,this.link=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof N&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(De()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var r;(r=this.linkInputChangesSubscription)==null||r.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=I(e).pipe(De()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),(e=this.linkInputChangesSubscription)==null||e.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=$o(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?e.isActive(s,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(k(V),k(Bt),k(Vt),k(nt),k(xt,8))};static \u0275dir=Ue({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,s){if(r&1&&en(s,xt,5),r&2){let o;tn(o=rn())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ee]})}return t})();function $o(t){return!!t.paths}var Ke=class{};var Xn=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,s,o){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(K(e=>e instanceof N),ne(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){var s,o,a;let i=[];for(let u of r){u.providers&&!u._injector&&(u._injector=tt(u.providers,e,`Route: ${u.path}`));let c=(s=u._injector)!=null?s:e,l=(o=u._loadedInjector)!=null?o:c;(u.loadChildren&&!u._loadedRoutes&&u.canLoad===void 0||u.loadComponent&&!u._loadedComponent)&&i.push(this.preloadConfig(c,u)),(u.children||u._loadedRoutes)&&i.push(this.processRoutes(l,(a=u.children)!=null?a:u._loadedRoutes))}return I(i).pipe(De())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=d(null);let s=i.pipe(T(o=>{var a;return o===null?d(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes((a=o.injector)!=null?a:e,o.routes))}));if(r.loadComponent&&!r._loadedComponent){let o=this.loader.loadComponent(r);return I([s,o]).pipe(De())}else return s})}static \u0275fac=function(r){return new(r||t)(G(V),G(rt),G(pe),G(Ke),G(Et))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Jn=new O(""),zo=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,s,o={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=s,this.options=o,o.scrollPositionRestoration||(o.scrollPositionRestoration="disabled"),o.anchorScrolling||(o.anchorScrolling="disabled")}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ee?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof N?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof B&&e.code===Se.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ce&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ce(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){var e,r;(e=this.routerEventsSubscription)==null||e.unsubscribe(),(r=this.scrollEventsSubscription)==null||r.unsubscribe()}static \u0275fac=function(r){qr()};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Fo(t){return t.routerState.root}function Ze(t,n){return{\u0275kind:t,\u0275providers:n}}function qo(){let t=p(qt);return n=>{var s,o;let e=t.get(Zr);if(n!==e.components[0])return;let r=t.get(V),i=t.get(ei);t.get(yr)===1&&r.initialNavigation(),(s=t.get(ni,null,zt.Optional))==null||s.setUpPreloading(),(o=t.get(Jn,null,zt.Optional))==null||o.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ei=new O("",{factory:()=>new H}),yr=new O("",{providedIn:"root",factory:()=>1});function ti(){let t=[{provide:yr,useValue:0},Ht(()=>{let n=p(qt);return n.get(sn,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(V),s=n.get(ei);Pt(i,()=>{r(!0)}),n.get(Nt).afterPreactivation=()=>(r(!0),s.closed?d(void 0):s),i.initialNavigation()}))})];return Ze(2,t)}function ri(){let t=[Ht(()=>{p(V).setUpLocationChangeListener()}),{provide:yr,useValue:2}];return Ze(3,t)}var ni=new O("");function ii(t){return Ze(0,[{provide:ni,useExisting:Xn},{provide:Ke,useExisting:t}])}function oi(){return Ze(8,[dr,{provide:Ge,useExisting:dr}])}function si(t){$r("NgRouterViewTransitions");let n=[{provide:vr,useValue:Kn},{provide:mr,useValue:h({skipNextTransition:!!(t!=null&&t.skipInitialTransition)},t)}];return Ze(9,n)}var ai=[fe,{provide:ue,useClass:X},V,ce,{provide:Q,useFactory:Fo,deps:[V]},Et,[]],Bo=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[ai,[],{provide:Te,multi:!0,useValue:e},[],r!=null&&r.errorHandler?{provide:Rr,useValue:r.errorHandler}:[],{provide:le,useValue:r||{}},r!=null&&r.useHash?Ho():Wo(),Vo(),r!=null&&r.preloadingStrategy?ii(r.preloadingStrategy).\u0275providers:[],r!=null&&r.initialNavigation?Go(r):[],r!=null&&r.bindToComponentInputs?oi().\u0275providers:[],r!=null&&r.enableViewTransitions?si().\u0275providers:[],Qo()]}}static forChild(e){return{ngModule:t,providers:[{provide:Te,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Wr({type:t});static \u0275inj=Pr({})}return t})();function Vo(){return{provide:Jn,useFactory:()=>{let t=p(cn),n=p(et),e=p(le),r=p(Nt),i=p(ue);return e.scrollOffset&&t.setOffset(e.scrollOffset),new zo(i,r,t,n,e)}}}function Ho(){return{provide:Ne,useClass:un}}function Wo(){return{provide:Ne,useClass:an}}function Go(t){return[t.initialNavigation==="disabled"?ri().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ti().\u0275providers:[]]}var Sr=new O("");function Qo(){return[{provide:Sr,useFactory:qo},{provide:Kr,multi:!0,useExisting:Sr}]}export{N as a,Q as b,hr as c,V as d,xt as e,Lo as f,Bo as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-624CM2T3.js";import"./chunk-TVD6GFRS.js";import"./chunk-5E6U5Y4F.js";import"./chunk-BY7R34BA.js";import"./chunk-KDJYMZFG.js";import"./chunk-ESHZ74WN.js";import"./chunk-VAECS3ST.js";import"./chunk-5R5SNIWB.js";import"./chunk-QNWPOWRO.js";export{a as PowerOptionsComponent};
|