homebridge-config-ui-x 4.77.1-beta.8 → 4.78.1-beta.0

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.
Files changed (84) hide show
  1. package/CHANGELOG.md +14 -2
  2. package/dist/modules/plugins/plugins.controller.d.ts +3 -2
  3. package/dist/modules/plugins/plugins.controller.js +1 -1
  4. package/dist/modules/plugins/plugins.controller.js.map +1 -1
  5. package/dist/modules/plugins/plugins.service.d.ts +4 -2
  6. package/dist/modules/plugins/plugins.service.js +83 -50
  7. package/dist/modules/plugins/plugins.service.js.map +1 -1
  8. package/dist/modules/server/server.service.js +19 -13
  9. package/dist/modules/server/server.service.js.map +1 -1
  10. package/package.json +1 -1
  11. package/public/{chunk-BB6JT3SE.js → chunk-3L7OEYLV.js} +1 -1
  12. package/public/{chunk-XYSLIZL4.js → chunk-47ZABGL5.js} +1 -1
  13. package/public/{chunk-4EGADSPP.js → chunk-4MOMK6YV.js} +1 -1
  14. package/public/chunk-4UILTKL4.js +1 -0
  15. package/public/{chunk-QJZ4PU4J.js → chunk-5FD677H7.js} +1 -1
  16. package/public/{chunk-A6JL3BV3.js → chunk-6FY5VS5G.js} +1 -1
  17. package/public/{chunk-BQRGG5O3.js → chunk-6IFWHFDT.js} +1 -1
  18. package/public/{chunk-2GQZUOEF.js → chunk-6WT3AZMM.js} +13 -13
  19. package/public/{chunk-EKP6Y74D.js → chunk-6ZPJ7POF.js} +1 -1
  20. package/public/chunk-ATBXFHO4.js +1 -0
  21. package/public/{chunk-R6INISRW.js → chunk-ATGP6RPD.js} +1 -1
  22. package/public/{chunk-YLDVNVDH.js → chunk-AWKGVJFE.js} +1 -1
  23. package/public/{chunk-RRCDTPRL.js → chunk-AX3VDOK3.js} +1 -1
  24. package/public/{chunk-OWYBIVUW.js → chunk-AYUZ6PWK.js} +1 -1
  25. package/public/chunk-BLJ2TFDD.js +1 -0
  26. package/public/{chunk-37ABWSAZ.js → chunk-BX6N4UKH.js} +5 -5
  27. package/public/{chunk-ZILXAARV.js → chunk-CL4LG4WM.js} +1 -1
  28. package/public/{chunk-KXIKA7WO.js → chunk-COGWIBW2.js} +1 -1
  29. package/public/{chunk-UC5RMIR4.js → chunk-CRB4QCRJ.js} +1 -1
  30. package/public/{chunk-BRCQSCKY.js → chunk-ECWXQAVX.js} +1 -1
  31. package/public/{chunk-NE4WZ57E.js → chunk-FWJ2J44F.js} +1 -1
  32. package/public/{chunk-PGN4QG4S.js → chunk-H3Y73MCC.js} +1 -1
  33. package/public/{chunk-OP4XB75R.js → chunk-HNNXCNGZ.js} +1 -1
  34. package/public/chunk-HVSH3HFN.js +1 -0
  35. package/public/{chunk-VR4TFROI.js → chunk-I3F44CMX.js} +1 -1
  36. package/public/{chunk-OZ2UBKY7.js → chunk-IEJ2BGYU.js} +1 -1
  37. package/public/{chunk-6633SWO7.js → chunk-IIDFX5MZ.js} +1 -1
  38. package/public/chunk-IKHHRZCS.js +1 -0
  39. package/public/{chunk-BKVF3JKZ.js → chunk-JBFJYSSE.js} +1 -1
  40. package/public/chunk-JKRJFAII.js +1 -0
  41. package/public/{chunk-X4JFX3IR.js → chunk-JZME4ABL.js} +1 -1
  42. package/public/{chunk-S7OQX6GA.js → chunk-KJYRW7MD.js} +1 -1
  43. package/public/{chunk-7ZKKL7CC.js → chunk-KZ5OMM57.js} +1 -1
  44. package/public/{chunk-XL5X222X.js → chunk-LNGQVB2I.js} +1 -1
  45. package/public/{chunk-7XCOJAHZ.js → chunk-LNIEMOF5.js} +1 -1
  46. package/public/{chunk-TAOKRPHH.js → chunk-MJIPUUN5.js} +1 -1
  47. package/public/{chunk-XF46NOEB.js → chunk-MQHMY7ON.js} +1 -1
  48. package/public/{chunk-DQB6ZFQK.js → chunk-NBQ4EATW.js} +1 -1
  49. package/public/{chunk-XF4YKN3J.js → chunk-NCF5BC5C.js} +1 -1
  50. package/public/{chunk-Z5VWPQ56.js → chunk-NDQQW5SD.js} +1 -1
  51. package/public/{chunk-C2SAM2NO.js → chunk-NRCV2QKO.js} +1 -1
  52. package/public/{chunk-L23FZ5T5.js → chunk-NXQ4GZOG.js} +1 -1
  53. package/public/chunk-OA5DW6VE.js +1 -0
  54. package/public/chunk-OBT2TCII.js +1 -0
  55. package/public/{chunk-URC672ZD.js → chunk-ODG75D26.js} +1 -1
  56. package/public/chunk-PJDGC6VF.js +1 -0
  57. package/public/{chunk-MKUEGQUV.js → chunk-Q5HOX3V3.js} +1 -1
  58. package/public/chunk-TB3IWHZZ.js +1 -0
  59. package/public/{chunk-T7ZT5HJB.js → chunk-U4QEQFFK.js} +1 -1
  60. package/public/{chunk-GT3IRCKC.js → chunk-VMSNBVAT.js} +1 -1
  61. package/public/chunk-X7ZMJCVS.js +1 -0
  62. package/public/{chunk-6NEE6G3F.js → chunk-XRPVMKNG.js} +1 -1
  63. package/public/{chunk-TE2TU2TD.js → chunk-YBXUXVOJ.js} +1 -1
  64. package/public/{chunk-JD536DAZ.js → chunk-YQQVEOW7.js} +1 -1
  65. package/public/chunk-YSSV277K.js +1 -0
  66. package/public/{chunk-5XLJAE7V.js → chunk-Z6C4B4A2.js} +1 -1
  67. package/public/{chunk-GQ3SXGA7.js → chunk-ZIVCU3R2.js} +1 -1
  68. package/public/chunk-ZYK2JZ6S.js +1 -0
  69. package/public/index.html +1 -1
  70. package/public/main-EZDPONJ4.js +1 -0
  71. package/public/chunk-2FV6UO27.js +0 -1
  72. package/public/chunk-2TRKAQ6O.js +0 -1
  73. package/public/chunk-3ELHAD3P.js +0 -1
  74. package/public/chunk-4Y4M2PTX.js +0 -1
  75. package/public/chunk-5PS7F4JN.js +0 -1
  76. package/public/chunk-5QPWJVMS.js +0 -1
  77. package/public/chunk-C4IKYV3Z.js +0 -1
  78. package/public/chunk-KOXAKZ7Q.js +0 -1
  79. package/public/chunk-OKDLJGHU.js +0 -1
  80. package/public/chunk-SMTY5QZV.js +0 -1
  81. package/public/chunk-U37VIF5W.js +0 -1
  82. package/public/chunk-U75SDBPH.js +0 -1
  83. package/public/chunk-VVPVK4DU.js +0 -1
  84. package/public/main-HZYQMW45.js +0 -1
@@ -1 +1 @@
1
- import{a as _,b as D}from"./chunk-L23FZ5T5.js";import{m as c,n as S}from"./chunk-EKP6Y74D.js";import{f as x}from"./chunk-EM4PY2IW.js";import{C as v,g as O,ga as h,h as a,ha as E,ja as y,ka as l,la as f,mb as I,r as p,va as j,w as d,x as T,z as w}from"./chunk-W6X46MTW.js";var g=new y("JWT_OPTIONS"),m=(()=>{class r{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:{t+="==";break}case 3:{t+="=";break}default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}b64decode(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="";if(e=String(e).replace(/=+$/,""),e.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let i=0,s,n,b=0;n=e.charAt(b++);~n&&(s=i%4?s*64+n:n,i++%4)?o+=String.fromCharCode(255&s>>(-2*i&6)):0)n=t.indexOf(n);return o}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._decodeToken(t)):this._decodeToken(e)}_decodeToken(e){if(!e||e==="")return null;let t=e.split(".");if(t.length!==3)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");let o=this.urlBase64Decode(t[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._getTokenExpirationDate(t)):this._getTokenExpirationDate(e)}_getTokenExpirationDate(e){let t;if(t=this.decodeToken(e),!t||!t.hasOwnProperty("exp"))return null;let o=new Date(0);return o.setUTCSeconds(t.exp),o}isTokenExpired(e=this.tokenGetter(),t){return e instanceof Promise?e.then(o=>this._isTokenExpired(o,t)):this._isTokenExpired(e,t)}_isTokenExpired(e,t){if(!e||e==="")return!0;let o=this.getTokenExpirationDate(e);return t=t||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+t*1e3)}getAuthScheme(e,t){return typeof e=="function"?e(t):e}}return r.\u0275fac=function(e){return new(e||r)(l(g))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),$=r=>r instanceof Promise?v(()=>r):p(r),R=(()=>{class r{constructor(e,t,o){this.jwtHelper=t,this.document=o,this.standardPorts=["80","443"],this.tokenGetter=e.tokenGetter,this.headerName=e.headerName||"Authorization",this.authScheme=e.authScheme||e.authScheme===""?e.authScheme:"Bearer ",this.allowedDomains=e.allowedDomains||[],this.disallowedRoutes=e.disallowedRoutes||[],this.throwNoTokenError=e.throwNoTokenError||!1,this.skipWhenExpired=e.skipWhenExpired}isAllowedDomain(e){let t=new URL(e.url,this.document.location.origin);if(t.host===this.document.location.host)return!0;let o=`${t.hostname}${t.port&&!this.standardPorts.includes(t.port)?":"+t.port:""}`;return this.allowedDomains.findIndex(i=>typeof i=="string"?i===o:i instanceof RegExp?i.test(o):!1)>-1}isDisallowedRoute(e){let t=new URL(e.url,this.document.location.origin);return this.disallowedRoutes.findIndex(o=>{if(typeof o=="string"){let i=new URL(o,this.document.location.origin);return i.hostname===t.hostname&&i.pathname===t.pathname}return o instanceof RegExp?o.test(e.url):!1})>-1}handleInterception(e,t,o){let i=this.jwtHelper.getAuthScheme(this.authScheme,t);if(!e&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let s=p(!1);return this.skipWhenExpired&&(s=e?$(this.jwtHelper.isTokenExpired(e)):p(!0)),e?s.pipe(T(n=>n&&this.skipWhenExpired?t.clone():t.clone({setHeaders:{[this.headerName]:`${i}${e}`}})),w(n=>o.handle(n))):o.handle(t)}intercept(e,t){if(!this.isAllowedDomain(e)||this.isDisallowedRoute(e))return t.handle(e);let o=this.tokenGetter(e);return $(o).pipe(w(i=>this.handleInterception(i,e,t)))}}return r.\u0275fac=function(e){return new(e||r)(l(g),l(m),l(j))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),F=(()=>{class r{constructor(e){if(e)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:r,providers:[{provide:x,useClass:R,multi:!0},e.jwtOptionsProvider||{provide:g,useValue:e.config},m]}}}return r.\u0275fac=function(e){return new(e||r)(l(r,12))},r.\u0275mod=I({type:r}),r.\u0275inj=E({}),r})();var k=O(_(),1);var q=(()=>{class r{$api=f(S);$jwtHelper=f(m);$settings=f(D);token;user={};logoutTimer;constructor(){this.loadToken()}login(e){return a(this,null,function*(){let t=yield d(this.$api.post("/auth/login",e));if(!this.validateToken(t.access_token))throw new Error("Invalid username or password.");window.localStorage.setItem(c.jwt.tokenKey,t.access_token),yield this.$settings.getAppSettings()})}noauth(){return a(this,null,function*(){let e=yield d(this.$api.post("/auth/noauth",{}));if(this.validateToken(e.access_token))window.localStorage.setItem(c.jwt.tokenKey,e.access_token),yield this.$settings.getAppSettings();else throw new Error("Invalid username or password.")})}logout(){this.user=null,this.token=null,window.localStorage.removeItem(c.jwt.tokenKey),window.location.reload()}loadToken(){return a(this,null,function*(){this.$settings.settingsLoaded||(yield d(this.$settings.onSettingsLoaded));let e=window.localStorage.getItem(c.jwt.tokenKey);e&&this.validateToken(e)})}validateToken(e){try{return this.$jwtHelper.isTokenExpired(e,this.$settings.serverTimeOffset)&&this.logout(),this.user=this.$jwtHelper.decodeToken(e),this.token=e,this.setLogoutTimer(),!0}catch{return window.localStorage.removeItem(c.jwt.tokenKey),this.token=null,!1}}checkToken(){return a(this,null,function*(){try{return yield d(this.$api.get("/auth/check"))}catch(e){e.status===401&&(console.error("Current token is not valid"),this.logout())}})}setLogoutTimer(){if(clearTimeout(this.logoutTimer),!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)){let t=(0,k.default)(this.$jwtHelper.getTokenExpirationDate(this.token)).diff((0,k.default)().add(this.$settings.serverTimeOffset,"s"),"millisecond");t<=2147483647&&(this.logoutTimer=setTimeout(()=>a(this,null,function*(){this.$settings.formAuth===!1?(yield this.noauth(),window.location.reload()):this.logout()}),t))}}isLoggedIn(){return this.$settings.env.instanceId!==this.user.instanceId?(console.error("Token does not match instance"),!1):this.user&&this.token&&!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})();export{F as a,q as b};
1
+ import{a as _,b as D}from"./chunk-NXQ4GZOG.js";import{m as c,n as S}from"./chunk-6ZPJ7POF.js";import{f as x}from"./chunk-EM4PY2IW.js";import{C as v,g as O,ga as h,h as a,ha as E,ja as y,ka as l,la as f,mb as I,r as p,va as j,w as d,x as T,z as w}from"./chunk-W6X46MTW.js";var g=new y("JWT_OPTIONS"),m=(()=>{class r{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:{t+="==";break}case 3:{t+="=";break}default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}b64decode(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="";if(e=String(e).replace(/=+$/,""),e.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let i=0,s,n,b=0;n=e.charAt(b++);~n&&(s=i%4?s*64+n:n,i++%4)?o+=String.fromCharCode(255&s>>(-2*i&6)):0)n=t.indexOf(n);return o}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._decodeToken(t)):this._decodeToken(e)}_decodeToken(e){if(!e||e==="")return null;let t=e.split(".");if(t.length!==3)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");let o=this.urlBase64Decode(t[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._getTokenExpirationDate(t)):this._getTokenExpirationDate(e)}_getTokenExpirationDate(e){let t;if(t=this.decodeToken(e),!t||!t.hasOwnProperty("exp"))return null;let o=new Date(0);return o.setUTCSeconds(t.exp),o}isTokenExpired(e=this.tokenGetter(),t){return e instanceof Promise?e.then(o=>this._isTokenExpired(o,t)):this._isTokenExpired(e,t)}_isTokenExpired(e,t){if(!e||e==="")return!0;let o=this.getTokenExpirationDate(e);return t=t||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+t*1e3)}getAuthScheme(e,t){return typeof e=="function"?e(t):e}}return r.\u0275fac=function(e){return new(e||r)(l(g))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),$=r=>r instanceof Promise?v(()=>r):p(r),R=(()=>{class r{constructor(e,t,o){this.jwtHelper=t,this.document=o,this.standardPorts=["80","443"],this.tokenGetter=e.tokenGetter,this.headerName=e.headerName||"Authorization",this.authScheme=e.authScheme||e.authScheme===""?e.authScheme:"Bearer ",this.allowedDomains=e.allowedDomains||[],this.disallowedRoutes=e.disallowedRoutes||[],this.throwNoTokenError=e.throwNoTokenError||!1,this.skipWhenExpired=e.skipWhenExpired}isAllowedDomain(e){let t=new URL(e.url,this.document.location.origin);if(t.host===this.document.location.host)return!0;let o=`${t.hostname}${t.port&&!this.standardPorts.includes(t.port)?":"+t.port:""}`;return this.allowedDomains.findIndex(i=>typeof i=="string"?i===o:i instanceof RegExp?i.test(o):!1)>-1}isDisallowedRoute(e){let t=new URL(e.url,this.document.location.origin);return this.disallowedRoutes.findIndex(o=>{if(typeof o=="string"){let i=new URL(o,this.document.location.origin);return i.hostname===t.hostname&&i.pathname===t.pathname}return o instanceof RegExp?o.test(e.url):!1})>-1}handleInterception(e,t,o){let i=this.jwtHelper.getAuthScheme(this.authScheme,t);if(!e&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let s=p(!1);return this.skipWhenExpired&&(s=e?$(this.jwtHelper.isTokenExpired(e)):p(!0)),e?s.pipe(T(n=>n&&this.skipWhenExpired?t.clone():t.clone({setHeaders:{[this.headerName]:`${i}${e}`}})),w(n=>o.handle(n))):o.handle(t)}intercept(e,t){if(!this.isAllowedDomain(e)||this.isDisallowedRoute(e))return t.handle(e);let o=this.tokenGetter(e);return $(o).pipe(w(i=>this.handleInterception(i,e,t)))}}return r.\u0275fac=function(e){return new(e||r)(l(g),l(m),l(j))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),F=(()=>{class r{constructor(e){if(e)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:r,providers:[{provide:x,useClass:R,multi:!0},e.jwtOptionsProvider||{provide:g,useValue:e.config},m]}}}return r.\u0275fac=function(e){return new(e||r)(l(r,12))},r.\u0275mod=I({type:r}),r.\u0275inj=E({}),r})();var k=O(_(),1);var q=(()=>{class r{$api=f(S);$jwtHelper=f(m);$settings=f(D);token;user={};logoutTimer;constructor(){this.loadToken()}login(e){return a(this,null,function*(){let t=yield d(this.$api.post("/auth/login",e));if(!this.validateToken(t.access_token))throw new Error("Invalid username or password.");window.localStorage.setItem(c.jwt.tokenKey,t.access_token),yield this.$settings.getAppSettings()})}noauth(){return a(this,null,function*(){let e=yield d(this.$api.post("/auth/noauth",{}));if(this.validateToken(e.access_token))window.localStorage.setItem(c.jwt.tokenKey,e.access_token),yield this.$settings.getAppSettings();else throw new Error("Invalid username or password.")})}logout(){this.user=null,this.token=null,window.localStorage.removeItem(c.jwt.tokenKey),window.location.reload()}loadToken(){return a(this,null,function*(){this.$settings.settingsLoaded||(yield d(this.$settings.onSettingsLoaded));let e=window.localStorage.getItem(c.jwt.tokenKey);e&&this.validateToken(e)})}validateToken(e){try{return this.$jwtHelper.isTokenExpired(e,this.$settings.serverTimeOffset)&&this.logout(),this.user=this.$jwtHelper.decodeToken(e),this.token=e,this.setLogoutTimer(),!0}catch{return window.localStorage.removeItem(c.jwt.tokenKey),this.token=null,!1}}checkToken(){return a(this,null,function*(){try{return yield d(this.$api.get("/auth/check"))}catch(e){e.status===401&&(console.error("Current token is not valid"),this.logout())}})}setLogoutTimer(){if(clearTimeout(this.logoutTimer),!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)){let t=(0,k.default)(this.$jwtHelper.getTokenExpirationDate(this.token)).diff((0,k.default)().add(this.$settings.serverTimeOffset,"s"),"millisecond");t<=2147483647&&(this.logoutTimer=setTimeout(()=>a(this,null,function*(){this.$settings.formAuth===!1?(yield this.noauth(),window.location.reload()):this.logout()}),t))}}isLoggedIn(){return this.$settings.env.instanceId!==this.user.instanceId?(console.error("Token does not match instance"),!1):this.user&&this.token&&!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})();export{F as a,q as b};
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-NCF5BC5C.js";import"./chunk-MQHMY7ON.js";import"./chunk-JBFJYSSE.js";import"./chunk-S6UXXPGF.js";import"./chunk-2NQ5FYSH.js";import"./chunk-5NG7YGKN.js";import"./chunk-JBQX4JBH.js";import"./chunk-U4QEQFFK.js";import"./chunk-VMSNBVAT.js";import"./chunk-NXQ4GZOG.js";import"./chunk-6ZPJ7POF.js";import"./chunk-EM4PY2IW.js";import"./chunk-555LSHXI.js";import"./chunk-W6X46MTW.js";export{a as AccessoriesComponent};
@@ -1 +1 @@
1
- import{a as C,b as y,c as $,d as j}from"./chunk-DQB6ZFQK.js";import"./chunk-J764EFYE.js";import{v as d}from"./chunk-2NQ5FYSH.js";import{A as u,z as l}from"./chunk-5NG7YGKN.js";import{d as v,g as n}from"./chunk-JBQX4JBH.js";import"./chunk-GT3IRCKC.js";import"./chunk-L23FZ5T5.js";import{k as g,n as h}from"./chunk-EKP6Y74D.js";import"./chunk-EM4PY2IW.js";import{a as M,c as U}from"./chunk-555LSHXI.js";import{ga as f,h as a,ha as i,kd as c,la as e,mb as s,w as p}from"./chunk-W6X46MTW.js";var m=(()=>{class r{$api=e(h);$router=e(v);$toastr=e(g);$translate=e(M);constructor(){}resolve(){return a(this,null,function*(){try{return yield p(this.$api.get("/users"))}catch(o){console.error(o),this.$toastr.error(o.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})();var F=[{path:"",loadComponent:()=>import("./chunk-U75SDBPH.js").then(r=>r.UsersComponent),resolve:{homebridgeUsers:m}}],b=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=s({type:r});static \u0275inj=i({imports:[n.forChild(F),n]})}return r})();var Y=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=s({type:r});static \u0275inj=i({providers:[m],imports:[c,l,u,U.forChild(),d,b,$,j,y,C]})}return r})();export{Y as UsersModule};
1
+ import{a as C,b as y,c as $,d as j}from"./chunk-NBQ4EATW.js";import"./chunk-J764EFYE.js";import{v as d}from"./chunk-2NQ5FYSH.js";import{A as u,z as l}from"./chunk-5NG7YGKN.js";import{d as v,g as n}from"./chunk-JBQX4JBH.js";import"./chunk-VMSNBVAT.js";import"./chunk-NXQ4GZOG.js";import{k as g,n as h}from"./chunk-6ZPJ7POF.js";import"./chunk-EM4PY2IW.js";import{a as M,c as U}from"./chunk-555LSHXI.js";import{ga as f,h as a,ha as i,kd as c,la as e,mb as s,w as p}from"./chunk-W6X46MTW.js";var m=(()=>{class r{$api=e(h);$router=e(v);$toastr=e(g);$translate=e(M);constructor(){}resolve(){return a(this,null,function*(){try{return yield p(this.$api.get("/users"))}catch(o){console.error(o),this.$toastr.error(o.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})();var F=[{path:"",loadComponent:()=>import("./chunk-YSSV277K.js").then(r=>r.UsersComponent),resolve:{homebridgeUsers:m}}],b=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=s({type:r});static \u0275inj=i({imports:[n.forChild(F),n]})}return r})();var Y=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=s({type:r});static \u0275inj=i({providers:[m],imports:[c,l,u,U.forChild(),d,b,$,j,y,C]})}return r})();export{Y as UsersModule};
@@ -1 +1 @@
1
- import{a as f}from"./chunk-R6INISRW.js";import{a as s}from"./chunk-UC5RMIR4.js";import"./chunk-WUXDJZ6X.js";import"./chunk-2GQZUOEF.js";import"./chunk-6XANA56B.js";import"./chunk-WTTWP6KF.js";import"./chunk-QJQSHTGR.js";import"./chunk-S6UXXPGF.js";import"./chunk-7XCOJAHZ.js";import"./chunk-AJTG3DAQ.js";import"./chunk-J764EFYE.js";import"./chunk-SCRWY2OT.js";import"./chunk-IMPGSXGE.js";import{v as l}from"./chunk-2NQ5FYSH.js";import{A as u,z as m}from"./chunk-5NG7YGKN.js";import{g as e}from"./chunk-JBQX4JBH.js";import"./chunk-T7ZT5HJB.js";import"./chunk-GT3IRCKC.js";import"./chunk-L23FZ5T5.js";import"./chunk-EKP6Y74D.js";import"./chunk-EM4PY2IW.js";import{c as p}from"./chunk-555LSHXI.js";import{ha as t,kd as n,mb as r}from"./chunk-W6X46MTW.js";var g=[{path:"",loadComponent:()=>import("./chunk-SMTY5QZV.js").then(o=>o.PluginsComponent)}],d=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[e.forChild(g),e]})}return o})();var v=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n,m,u,p.forChild(),l,f,d,s]})}return o})();export{v as PluginsModule};
1
+ import{a as f}from"./chunk-ATGP6RPD.js";import{a as s}from"./chunk-CRB4QCRJ.js";import"./chunk-WUXDJZ6X.js";import"./chunk-6WT3AZMM.js";import"./chunk-6XANA56B.js";import"./chunk-WTTWP6KF.js";import"./chunk-QJQSHTGR.js";import"./chunk-S6UXXPGF.js";import"./chunk-LNIEMOF5.js";import"./chunk-AJTG3DAQ.js";import"./chunk-J764EFYE.js";import"./chunk-SCRWY2OT.js";import"./chunk-IMPGSXGE.js";import{v as l}from"./chunk-2NQ5FYSH.js";import{A as u,z as m}from"./chunk-5NG7YGKN.js";import{g as e}from"./chunk-JBQX4JBH.js";import"./chunk-U4QEQFFK.js";import"./chunk-VMSNBVAT.js";import"./chunk-NXQ4GZOG.js";import"./chunk-6ZPJ7POF.js";import"./chunk-EM4PY2IW.js";import{c as p}from"./chunk-555LSHXI.js";import{ha as t,kd as n,mb as r}from"./chunk-W6X46MTW.js";var g=[{path:"",loadComponent:()=>import("./chunk-IKHHRZCS.js").then(o=>o.PluginsComponent)}],d=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[e.forChild(g),e]})}return o})();var v=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n,m,u,p.forChild(),l,f,d,s]})}return o})();export{v as PluginsModule};
@@ -1,2 +1,2 @@
1
- import{A as te,c as D,d as F,e as K,f as A,g as J,j as E,m as Q,p as X,q as Y,w as Z,z as ee}from"./chunk-5NG7YGKN.js";import{a as le}from"./chunk-T7ZT5HJB.js";import{b as se}from"./chunk-GT3IRCKC.js";import{b as ae}from"./chunk-L23FZ5T5.js";import{k as re,m as U,n as oe}from"./chunk-EKP6Y74D.js";import{l as G}from"./chunk-EM4PY2IW.js";import{a as ie,b as ne}from"./chunk-555LSHXI.js";import{$a as n,Ac as a,Bc as s,Gb as L,Hb as z,Ib as I,Nb as m,Ob as o,Pb as r,Qb as u,Ub as $,Xa as M,Xb as x,Yb as _,bd as N,ed as R,fb as b,gc as j,h as k,jc as p,kc as f,lb as O,lc as g,ra as w,sa as C,sd as q,vc as H,w as h,wc as T,xc as B}from"./chunk-W6X46MTW.js";var de=t=>({background:t}),ce=t=>({anim:t}),me=t=>({"progress-bar-animated":t}),ue=()=>["restoring","restarting","restore-complete"],W=(t,c)=>({"is-valid":t,"is-invalid":c});function ge(t,c){if(t&1){let e=$();o(0,"div",5)(1,"h4",6),p(2),a(3,"translate"),r(),u(4,"div",7),a(5,"translate"),o(6,"button",8),x("click",function(){w(e);let i=_();return C(i.onClickGettingStarted())}),p(7),a(8,"translate"),r(),o(9,"a",9),x("click",function(){w(e);let i=_();return C(i.onClickRestoreBackup())}),p(10),a(11,"translate"),r()()}t&2&&(n(2),f(s(3,4,"setup.welcome_to_homebridge")),n(2),m("innerHTML",s(5,6,"setup.intro"),M),n(3),g(" ",s(8,8,"setup.button_get_started")," "),n(3),f(s(11,10,"setup_wizard_restore")))}function _e(t,c){if(t&1){let e=$();o(0,"div",5)(1,"h4",6),p(2),a(3,"translate"),r(),o(4,"div",10),p(5),a(6,"translate"),r(),o(7,"div",11)(8,"form",12),x("ngSubmit",function(){w(e);let i=_();return C(i.createFirstUser())}),o(9,"div",13)(10,"span",14),u(11,"i",15),r(),u(12,"input",16),a(13,"translate"),r(),o(14,"div",13)(15,"span",14),u(16,"i",17),r(),u(17,"input",18),a(18,"translate"),r(),o(19,"div",13)(20,"span",14),u(21,"i",17),r(),u(22,"input",19),a(23,"translate"),r(),o(24,"div",20)(25,"button",21),x("click",function(){w(e);let i=_();return C(i.onClickCancelRestore())}),p(26),a(27,"translate"),r(),o(28,"button",22),p(29),a(30,"translate"),r()()()()()}if(t&2){let e=_();n(2),f(s(3,16,"setup.create_account")),n(3),f(s(6,18,"setup_wizard_create_info")),n(3),m("formGroup",e.createUserForm),n(4),m("readonly",e.loading)("ngClass",B(30,W,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.valid,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.invalid))("placeholder",s(13,20,"users.label_username")),n(5),m("readonly",e.loading)("ngClass",B(33,W,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.valid,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.errors))("placeholder",s(18,22,"users.label_password")),n(5),m("readonly",e.loading)("ngClass",B(36,W,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.valid,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.errors))("placeholder",s(23,24,"users.label_confirm_password")),n(3),m("disabled",e.restoreUploading),n(),g(" ",s(27,26,"form.button_back")," "),n(2),m("disabled",e.createUserForm.invalid||e.loading),n(),g(" ",s(30,28,"form.label_continue")," ")}}function fe(t,c){t&1&&(u(0,"i",25),p(1),a(2,"translate")),t&2&&(n(),g(" ",s(2,1,"backup.label_uploading")," "))}function he(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"form.label_continue")," ")}function we(t,c){if(t&1){let e=$();o(0,"div",5)(1,"h4",6),p(2),a(3,"translate"),r(),o(4,"div",10),p(5),a(6,"translate"),r(),o(7,"input",23),x("change",function(i){w(e);let v=_();return C(v.handleRestoreFileInput(i.target.files))}),r(),o(8,"div",20)(9,"button",21),x("click",function(){w(e);let i=_();return C(i.onClickCancelRestore())}),p(10),a(11,"translate"),r(),o(12,"button",24),x("click",function(){w(e);let i=_();return C(i.onRestoreBackupClick())}),z(13,fe,3,3)(14,he,2,3),r()()()}if(t&2){let e=_();n(2),f(s(3,6,"setup_wizard_restore")),n(3),f(s(6,8,"backup.restore_help_one")),n(4),m("disabled",e.restoreUploading),n(),g(" ",s(11,10,"form.button_back")," "),n(2),m("disabled",e.restoreUploading||!e.selectedFile),n(),I(e.restoreUploading?13:14)}}function Ce(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_restoring")," ")}function be(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_starting")," ")}function xe(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_complete")," ")}function ve(t,c){t&1&&(o(0,"a",27),p(1),a(2,"translate"),r()),t&2&&(n(),g(" ",s(2,1,"form.label_continue")," "))}function ye(t,c){if(t&1&&(o(0,"div",5)(1,"h4",6),z(2,Ce,2,3)(3,be,2,3)(4,xe,2,3),r(),u(5,"div",26),z(6,ve,3,3,"a",27),r()),t&2){let e=_();n(2),I(e.step==="restoring"?2:e.step==="restarting"?3:e.step==="restore-complete"?4:-1),n(4),I(e.step==="restore-complete"?6:-1)}}function Se(t,c){t&1&&(o(0,"div",5)(1,"h4",28),p(2),a(3,"translate"),r(),o(4,"div",10),p(5),a(6,"translate"),r(),o(7,"a",29),p(8),a(9,"translate"),r()()),t&2&&(n(2),f(s(3,3,"setup_wizard_complete_title")),n(3),f(s(6,5,"setup_wizard_completed")),n(3),g(" ",s(9,7,"form.label_continue")," "))}var Le=(()=>{class t{$api;$auth;$settings;$title;$toastr;$translate;$ws;io;step="welcome";backgroundStyle;progress=1;restoreInProgress=!1;restoreStarted=!1;restoreFailed=!1;loading=!1;selectedFile;restoreUploading=!1;createUserForm=new J({username:new E("",[F.required]),password:new E("",[F.compose([F.required,F.minLength(4)])]),passwordConfirm:new E("",[F.required])},this.matchPassword);constructor(e,l,i,v,P,d,V){this.$api=e,this.$auth=l,this.$settings=i,this.$title=v,this.$toastr=P,this.$translate=d,this.$ws=V}ngOnInit(){return k(this,null,function*(){this.$title.setTitle(this.$translate.instant("setup_wizard_page_title")),yield this.setBackground()})}setBackground(){return k(this,null,function*(){if(this.$settings.settingsLoaded||(yield h(this.$settings.onSettingsLoaded)),this.$settings.env.customWallpaperHash){let e=`${U.api.base}/auth/wallpaper/${this.$settings.env.customWallpaperHash}`;this.backgroundStyle=`url('${e}') center/cover`}})}matchPassword(e){let l=e.get("password").value,i=e.get("passwordConfirm").value;if(l!==i)e.get("passwordConfirm").setErrors({matchPassword:!0});else return null}onClickGettingStarted(){this.step="create-account",this.progress=50}onClickRestoreBackup(){this.step="restore-backup",this.progress=20}onClickCancelRestore(){this.selectedFile=null,this.step="welcome",this.progress=1}createFirstUser(){return k(this,null,function*(){this.loading=!0,this.progress=75;let e=this.createUserForm.getRawValue();e.name=e.username;try{yield h(this.$api.post("/setup-wizard/create-first-user",e)),this.$settings.env.setupWizardComplete=!0,this.progress=100,this.loading=!1,yield this.$auth.login({username:e.username,password:e.password}),this.step="setup-complete"}catch(l){this.loading=!1,this.progress=50,console.error(l),this.$toastr.error(l.message,this.$translate.instant("toast.title_error"))}})}handleRestoreFileInput(e){e.length?(this.selectedFile=e[0],this.progress=40):(delete this.selectedFile,this.progress=20)}onRestoreBackupClick(){return k(this,null,function*(){this.restoreUploading=!0,this.step="restoring",this.progress=60;try{let e=yield h(this.$api.get("/setup-wizard/get-setup-wizard-token"));window.localStorage.setItem(U.jwt.tokenKey,e.access_token),this.$auth.token=e.access_token,this.progress=65;let l=new FormData;l.append("restoreArchive",this.selectedFile,this.selectedFile.name),yield h(this.$api.post("/backup/restore",l)),this.progress=70,this.io=this.$ws.connectToNamespace("backup");let i=document.getElementById("output");this.io.socket.on("stdout",d=>{d.split(`
1
+ import{A as te,c as D,d as F,e as K,f as A,g as J,j as E,m as Q,p as X,q as Y,w as Z,z as ee}from"./chunk-5NG7YGKN.js";import{a as le}from"./chunk-U4QEQFFK.js";import{b as se}from"./chunk-VMSNBVAT.js";import{b as ae}from"./chunk-NXQ4GZOG.js";import{k as re,m as U,n as oe}from"./chunk-6ZPJ7POF.js";import{l as G}from"./chunk-EM4PY2IW.js";import{a as ie,b as ne}from"./chunk-555LSHXI.js";import{$a as n,Ac as a,Bc as s,Gb as L,Hb as z,Ib as I,Nb as m,Ob as o,Pb as r,Qb as u,Ub as $,Xa as M,Xb as x,Yb as _,bd as N,ed as R,fb as b,gc as j,h as k,jc as p,kc as f,lb as O,lc as g,ra as w,sa as C,sd as q,vc as H,w as h,wc as T,xc as B}from"./chunk-W6X46MTW.js";var de=t=>({background:t}),ce=t=>({anim:t}),me=t=>({"progress-bar-animated":t}),ue=()=>["restoring","restarting","restore-complete"],W=(t,c)=>({"is-valid":t,"is-invalid":c});function ge(t,c){if(t&1){let e=$();o(0,"div",5)(1,"h4",6),p(2),a(3,"translate"),r(),u(4,"div",7),a(5,"translate"),o(6,"button",8),x("click",function(){w(e);let i=_();return C(i.onClickGettingStarted())}),p(7),a(8,"translate"),r(),o(9,"a",9),x("click",function(){w(e);let i=_();return C(i.onClickRestoreBackup())}),p(10),a(11,"translate"),r()()}t&2&&(n(2),f(s(3,4,"setup.welcome_to_homebridge")),n(2),m("innerHTML",s(5,6,"setup.intro"),M),n(3),g(" ",s(8,8,"setup.button_get_started")," "),n(3),f(s(11,10,"setup_wizard_restore")))}function _e(t,c){if(t&1){let e=$();o(0,"div",5)(1,"h4",6),p(2),a(3,"translate"),r(),o(4,"div",10),p(5),a(6,"translate"),r(),o(7,"div",11)(8,"form",12),x("ngSubmit",function(){w(e);let i=_();return C(i.createFirstUser())}),o(9,"div",13)(10,"span",14),u(11,"i",15),r(),u(12,"input",16),a(13,"translate"),r(),o(14,"div",13)(15,"span",14),u(16,"i",17),r(),u(17,"input",18),a(18,"translate"),r(),o(19,"div",13)(20,"span",14),u(21,"i",17),r(),u(22,"input",19),a(23,"translate"),r(),o(24,"div",20)(25,"button",21),x("click",function(){w(e);let i=_();return C(i.onClickCancelRestore())}),p(26),a(27,"translate"),r(),o(28,"button",22),p(29),a(30,"translate"),r()()()()()}if(t&2){let e=_();n(2),f(s(3,16,"setup.create_account")),n(3),f(s(6,18,"setup_wizard_create_info")),n(3),m("formGroup",e.createUserForm),n(4),m("readonly",e.loading)("ngClass",B(30,W,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.valid,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.invalid))("placeholder",s(13,20,"users.label_username")),n(5),m("readonly",e.loading)("ngClass",B(33,W,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.valid,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.errors))("placeholder",s(18,22,"users.label_password")),n(5),m("readonly",e.loading)("ngClass",B(36,W,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.valid,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.errors))("placeholder",s(23,24,"users.label_confirm_password")),n(3),m("disabled",e.restoreUploading),n(),g(" ",s(27,26,"form.button_back")," "),n(2),m("disabled",e.createUserForm.invalid||e.loading),n(),g(" ",s(30,28,"form.label_continue")," ")}}function fe(t,c){t&1&&(u(0,"i",25),p(1),a(2,"translate")),t&2&&(n(),g(" ",s(2,1,"backup.label_uploading")," "))}function he(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"form.label_continue")," ")}function we(t,c){if(t&1){let e=$();o(0,"div",5)(1,"h4",6),p(2),a(3,"translate"),r(),o(4,"div",10),p(5),a(6,"translate"),r(),o(7,"input",23),x("change",function(i){w(e);let v=_();return C(v.handleRestoreFileInput(i.target.files))}),r(),o(8,"div",20)(9,"button",21),x("click",function(){w(e);let i=_();return C(i.onClickCancelRestore())}),p(10),a(11,"translate"),r(),o(12,"button",24),x("click",function(){w(e);let i=_();return C(i.onRestoreBackupClick())}),z(13,fe,3,3)(14,he,2,3),r()()()}if(t&2){let e=_();n(2),f(s(3,6,"setup_wizard_restore")),n(3),f(s(6,8,"backup.restore_help_one")),n(4),m("disabled",e.restoreUploading),n(),g(" ",s(11,10,"form.button_back")," "),n(2),m("disabled",e.restoreUploading||!e.selectedFile),n(),I(e.restoreUploading?13:14)}}function Ce(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_restoring")," ")}function be(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_starting")," ")}function xe(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_complete")," ")}function ve(t,c){t&1&&(o(0,"a",27),p(1),a(2,"translate"),r()),t&2&&(n(),g(" ",s(2,1,"form.label_continue")," "))}function ye(t,c){if(t&1&&(o(0,"div",5)(1,"h4",6),z(2,Ce,2,3)(3,be,2,3)(4,xe,2,3),r(),u(5,"div",26),z(6,ve,3,3,"a",27),r()),t&2){let e=_();n(2),I(e.step==="restoring"?2:e.step==="restarting"?3:e.step==="restore-complete"?4:-1),n(4),I(e.step==="restore-complete"?6:-1)}}function Se(t,c){t&1&&(o(0,"div",5)(1,"h4",28),p(2),a(3,"translate"),r(),o(4,"div",10),p(5),a(6,"translate"),r(),o(7,"a",29),p(8),a(9,"translate"),r()()),t&2&&(n(2),f(s(3,3,"setup_wizard_complete_title")),n(3),f(s(6,5,"setup_wizard_completed")),n(3),g(" ",s(9,7,"form.label_continue")," "))}var Le=(()=>{class t{$api;$auth;$settings;$title;$toastr;$translate;$ws;io;step="welcome";backgroundStyle;progress=1;restoreInProgress=!1;restoreStarted=!1;restoreFailed=!1;loading=!1;selectedFile;restoreUploading=!1;createUserForm=new J({username:new E("",[F.required]),password:new E("",[F.compose([F.required,F.minLength(4)])]),passwordConfirm:new E("",[F.required])},this.matchPassword);constructor(e,l,i,v,P,d,V){this.$api=e,this.$auth=l,this.$settings=i,this.$title=v,this.$toastr=P,this.$translate=d,this.$ws=V}ngOnInit(){return k(this,null,function*(){this.$title.setTitle(this.$translate.instant("setup_wizard_page_title")),yield this.setBackground()})}setBackground(){return k(this,null,function*(){if(this.$settings.settingsLoaded||(yield h(this.$settings.onSettingsLoaded)),this.$settings.env.customWallpaperHash){let e=`${U.api.base}/auth/wallpaper/${this.$settings.env.customWallpaperHash}`;this.backgroundStyle=`url('${e}') center/cover`}})}matchPassword(e){let l=e.get("password").value,i=e.get("passwordConfirm").value;if(l!==i)e.get("passwordConfirm").setErrors({matchPassword:!0});else return null}onClickGettingStarted(){this.step="create-account",this.progress=50}onClickRestoreBackup(){this.step="restore-backup",this.progress=20}onClickCancelRestore(){this.selectedFile=null,this.step="welcome",this.progress=1}createFirstUser(){return k(this,null,function*(){this.loading=!0,this.progress=75;let e=this.createUserForm.getRawValue();e.name=e.username;try{yield h(this.$api.post("/setup-wizard/create-first-user",e)),this.$settings.env.setupWizardComplete=!0,this.progress=100,this.loading=!1,yield this.$auth.login({username:e.username,password:e.password}),this.step="setup-complete"}catch(l){this.loading=!1,this.progress=50,console.error(l),this.$toastr.error(l.message,this.$translate.instant("toast.title_error"))}})}handleRestoreFileInput(e){e.length?(this.selectedFile=e[0],this.progress=40):(delete this.selectedFile,this.progress=20)}onRestoreBackupClick(){return k(this,null,function*(){this.restoreUploading=!0,this.step="restoring",this.progress=60;try{let e=yield h(this.$api.get("/setup-wizard/get-setup-wizard-token"));window.localStorage.setItem(U.jwt.tokenKey,e.access_token),this.$auth.token=e.access_token,this.progress=65;let l=new FormData;l.append("restoreArchive",this.selectedFile,this.selectedFile.name),yield h(this.$api.post("/backup/restore",l)),this.progress=70,this.io=this.$ws.connectToNamespace("backup");let i=document.getElementById("output");this.io.socket.on("stdout",d=>{d.split(`
2
2
  \r`).forEach(y=>{if(y&&!/^[⠇⠏⠋⠙⠹⠸]+$/.test(y)){let S=document.createElement("div"),pe=/\x1B\[(\d{1,2}(;\d{1,2})?)?[mGK]/g;S.innerHTML=y.replace(pe,""),y.includes("[0;31m")?S.classList.add("red-text"):y.includes("[0;32m")?S.classList.add("green-text"):y.includes("[0;33m")?S.classList.add("orange-text"):y.includes("[0;36m")&&S.classList.add("cyan-text"),i.appendChild(S),i.scrollTop=i.scrollHeight}})}),this.restoreStarted=!0,this.restoreInProgress=!0,this.progress=75,yield h(this.io.request("do-restore")),this.progress=80,this.restoreInProgress=!1,yield h(this.$api.put("/backup/restart",{})),this.step="restarting",this.progress=85,window.localStorage.removeItem(U.jwt.tokenKey),this.$auth.token=null;let v=document.createElement("div");v.classList.add("orange-text"),v.innerHTML="Starting Homebridge, please wait...",i.appendChild(v),i.scrollTop=i.scrollHeight,yield new Promise(d=>setTimeout(d,3e3)),this.progress=88,yield new Promise(d=>setTimeout(d,3e3)),this.progress=91,yield new Promise(d=>setTimeout(d,3e3)),this.progress=94,yield new Promise(d=>setTimeout(d,3e3)),this.progress=97,yield new Promise(d=>setTimeout(d,3e3)),this.progress=99;let P=setInterval(()=>k(this,null,function*(){try{yield h(this.$api.get("/auth/settings")),clearInterval(P),this.progress=100,this.restoreUploading=!1,this.step="restore-complete"}catch{}}),1e3)}catch(e){console.error(e),this.restoreUploading=!1,this.restoreFailed=!0,this.progress=20,this.step="restore-backup",this.$toastr.error(e.message,this.$translate.instant("toast.title_error"))}finally{this.io&&this.io.end()}})}static \u0275fac=function(l){return new(l||t)(b(oe),b(se),b(ae),b(G),b(re),b(ie),b(le))};static \u0275cmp=O({type:t,selectors:[["ng-component"]],decls:10,vars:14,consts:[[1,"setup-container","gradient","d-flex","align-items-start","justify-content-center",3,"ngStyle","ngClass"],[1,"w-100","setup-card","d-flex","py-4","flex-column"],["ngSrc","/assets/homebridge-color-round.svg","alt","Homebridge Logo","height","100","width","100","priority","true",1,"homebridge-logo","mx-auto","my-3"],[1,"progress","w-100","my-4"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-success",3,"ngClass"],[1,"w-100","d-flex","flex-column","align-items-center","mb-2"],[1,"mb-3","text-center"],[1,"mb-4","small","grey-text","text-center",3,"innerHTML"],["type","button",1,"btn","btn-lg","btn-primary","mb-4",3,"click"],["href","javascript:void(0)",1,"grey-text",3,"click"],[1,"mb-4","small","grey-text","text-center"],[1,"w-100"],["novalidate","",3,"ngSubmit","formGroup"],[1,"input-group","mb-4"],[1,"input-group-text","custom-input"],[1,"fas","fa-fw","fa-user","primary-text","fa-lg"],["formControlName","username","type","text","id","form-username","autocomplete","username","autocapitalize","none","tabindex","1","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],[1,"fas","fa-fw","fa-lock","primary-text","fa-lg"],["formControlName","password","type","password","id","form-pass","autocomplete","new-password","tabindex","2","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],["formControlName","passwordConfirm","type","password","id","form-pass-confirm","autocomplete","new-password","tabindex","2","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],[1,"mt-3","w-100","d-flex","justify-content-between"],["type","button",1,"btn","btn-elegant","ms-0",3,"click","disabled"],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz",1,"form-control","custom-input","mb-3",3,"change"],["type","button",1,"btn","btn-primary","me-0",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],["id","output",1,"font-monospace","small","alert","alert-info","w-100","text-start","mt-1","mb-0"],["href","/login",1,"btn","btn-lg","btn-primary","mt-4"],[1,"mb-3"],["href","/",1,"btn","btn-lg","btn-primary"]],template:function(l,i){l&1&&(o(0,"div",0)(1,"div",1),u(2,"img",2),o(3,"div",3),u(4,"div",4),r(),z(5,ge,12,12,"div",5)(6,_e,31,39,"div",5)(7,we,15,12,"div",5)(8,ye,7,2,"div",5)(9,Se,10,9,"div",5),r()()),l&2&&(m("ngStyle",T(7,de,i.backgroundStyle))("ngClass",T(9,ce,!i.backgroundStyle)),n(4),j("width",i.progress+"%"),m("ngClass",T(11,me,i.loading||i.restoreUploading)),L("aria-valuenow",i.progress),n(),I(i.step==="welcome"?5:i.step==="create-account"?6:i.step==="restore-backup"?7:H(13,ue).includes(i.step)?8:i.step==="setup-complete"?9:-1))},dependencies:[N,ne,q,ee,Q,D,K,A,Z,te,X,Y,R],styles:["body{overflow:scroll!important} body.dark-mode .setup-card{background-color:#2b2b2b;color:#fff}.setup-container[_ngcontent-%COMP%]{z-index:-1;padding-top:2em;padding-bottom:2em;min-height:100%;background-size:300% 300%}.anim[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_gradient 20s ease infinite;-moz-animation:gradient 20s ease infinite;-o-animation:gradient 20s ease infinite;animation:_ngcontent-%COMP%_gradient 20s ease infinite}@keyframes _ngcontent-%COMP%_gradient{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.setup-card[_ngcontent-%COMP%]{max-width:550px;border-radius:1rem;padding-right:25px;padding-left:25px;background-color:#ffffffe6}.setup-card[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{background-color:inherit!important}@media screen and (max-width: 575px){.setup-card[_ngcontent-%COMP%]{margin-left:1em;margin-right:1em}}.homebridge-logo[_ngcontent-%COMP%]{margin-bottom:10px}.progress[_ngcontent-%COMP%]{background-color:#ddd}#output[_ngcontent-%COMP%]{height:200px;overflow-y:scroll;white-space:pre-wrap}"]})}return t})();export{Le as a};
@@ -0,0 +1 @@
1
+ import{e as a}from"./chunk-NBQ4EATW.js";import"./chunk-J764EFYE.js";import"./chunk-2NQ5FYSH.js";import"./chunk-5NG7YGKN.js";import"./chunk-JBQX4JBH.js";import"./chunk-VMSNBVAT.js";import"./chunk-NXQ4GZOG.js";import"./chunk-6ZPJ7POF.js";import"./chunk-EM4PY2IW.js";import"./chunk-555LSHXI.js";import"./chunk-W6X46MTW.js";export{a as UsersComponent};
@@ -1 +1 @@
1
- import{d as E}from"./chunk-JBQX4JBH.js";import{a as D}from"./chunk-T7ZT5HJB.js";import{b as R}from"./chunk-L23FZ5T5.js";import{k as O,n as B}from"./chunk-EKP6Y74D.js";import{a as k,b as I}from"./chunk-555LSHXI.js";import{$a as i,Ac as o,Bc as l,Hb as f,Ib as _,Nb as x,Ob as r,Pb as n,Qb as v,Ub as $,Xb as S,Yb as d,bd as T,jc as a,kc as c,la as m,lb as w,lc as h,ra as C,sa as y,wc as b,xc as g}from"./chunk-W6X46MTW.js";var U=(t,p)=>({"fas fa-fw fa-spinner fa-spin":t,"far fa-fw fa-check-circle":p}),F=t=>({"grey-text":t}),P=(t,p)=>({"far fa-fw fa-circle":t,"fas fa-fw fa-spinner fa-spin":p});function j(t,p){if(t&1&&(r(0,"div",7),a(1),n()),t&2){let e=d();i(),c(e.error)}}function M(t,p){if(t&1&&(r(0,"p",9),a(1),o(2,"translate"),n(),r(3,"div",10)(4,"div",11)(5,"span"),v(6,"i",12),a(7),o(8,"translate"),n()(),r(9,"div",11)(10,"span",12),v(11,"i",12),a(12),o(13,"translate"),n()()()),t&2){let e=d();i(),c(l(2,6,"restart.please_wait_while_server_restarts")),i(5),x("ngClass",g(12,U,!e.uiOnline,e.uiOnline)),i(),h(" ",l(8,8,"restart.ui_online")," "),i(3),x("ngClass",b(15,F,!e.uiOnline)),i(),x("ngClass",g(17,P,!e.uiOnline,e.uiOnline)),i(),h(" ",l(13,10,"restart.service_ready")," ")}}function V(t,p){if(t&1){let e=$();r(0,"p",15)(1,"button",16),S("click",function(){C(e);let u=d(2);return y(u.viewLogs())}),a(2),o(3,"translate"),n()()}t&2&&(i(2),c(l(3,1,"menu.tooltip_view_logs")))}function z(t,p){if(t&1&&(r(0,"div",8)(1,"p"),a(2),o(3,"translate"),n(),r(4,"p",13),a(5),o(6,"translate"),r(7,"span",14),a(8),n()(),f(9,V,4,3,"p",15),n()),t&2){let e=d();i(2),c(l(3,4,"restart.server_is_taking_long_time_to_restart")),i(3),h(" ",l(6,6,"restart.label_restart_command_executed"),": "),i(3),c(e.resp.command||"End Process"),i(),_(e.uiOnline?9:-1)}}var X=(()=>{class t{$api=m(B);$router=m(E);$settings=m(R);$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",e=>{this.uiOnline=!0,(e.status==="up"||e.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:14,vars:8,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,"alert","alert-error","my-4"],[1,"alert","alert-warning","my-4"],[1,"grey-text"],[1,"justify-content-center","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,u){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(),f(11,j,2,1,"div",7)(12,M,14,20),f(13,z,10,8,"div",8),n()()),s&2&&(i(2),c(l(3,4,"menu.restart.title")),i(7),c(l(10,6,"restart.title_restart")),i(2),_(u.error?11:12),i(2),_(u.timeout?13:-1))},dependencies:[T,I],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{X as a};
1
+ import{d as E}from"./chunk-JBQX4JBH.js";import{a as D}from"./chunk-U4QEQFFK.js";import{b as R}from"./chunk-NXQ4GZOG.js";import{k as O,n as B}from"./chunk-6ZPJ7POF.js";import{a as k,b as I}from"./chunk-555LSHXI.js";import{$a as i,Ac as o,Bc as l,Hb as f,Ib as _,Nb as x,Ob as r,Pb as n,Qb as v,Ub as $,Xb as S,Yb as d,bd as T,jc as a,kc as c,la as m,lb as w,lc as h,ra as C,sa as y,wc as b,xc as g}from"./chunk-W6X46MTW.js";var U=(t,p)=>({"fas fa-fw fa-spinner fa-spin":t,"far fa-fw fa-check-circle":p}),F=t=>({"grey-text":t}),P=(t,p)=>({"far fa-fw fa-circle":t,"fas fa-fw fa-spinner fa-spin":p});function j(t,p){if(t&1&&(r(0,"div",7),a(1),n()),t&2){let e=d();i(),c(e.error)}}function M(t,p){if(t&1&&(r(0,"p",9),a(1),o(2,"translate"),n(),r(3,"div",10)(4,"div",11)(5,"span"),v(6,"i",12),a(7),o(8,"translate"),n()(),r(9,"div",11)(10,"span",12),v(11,"i",12),a(12),o(13,"translate"),n()()()),t&2){let e=d();i(),c(l(2,6,"restart.please_wait_while_server_restarts")),i(5),x("ngClass",g(12,U,!e.uiOnline,e.uiOnline)),i(),h(" ",l(8,8,"restart.ui_online")," "),i(3),x("ngClass",b(15,F,!e.uiOnline)),i(),x("ngClass",g(17,P,!e.uiOnline,e.uiOnline)),i(),h(" ",l(13,10,"restart.service_ready")," ")}}function V(t,p){if(t&1){let e=$();r(0,"p",15)(1,"button",16),S("click",function(){C(e);let u=d(2);return y(u.viewLogs())}),a(2),o(3,"translate"),n()()}t&2&&(i(2),c(l(3,1,"menu.tooltip_view_logs")))}function z(t,p){if(t&1&&(r(0,"div",8)(1,"p"),a(2),o(3,"translate"),n(),r(4,"p",13),a(5),o(6,"translate"),r(7,"span",14),a(8),n()(),f(9,V,4,3,"p",15),n()),t&2){let e=d();i(2),c(l(3,4,"restart.server_is_taking_long_time_to_restart")),i(3),h(" ",l(6,6,"restart.label_restart_command_executed"),": "),i(3),c(e.resp.command||"End Process"),i(),_(e.uiOnline?9:-1)}}var X=(()=>{class t{$api=m(B);$router=m(E);$settings=m(R);$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",e=>{this.uiOnline=!0,(e.status==="up"||e.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:14,vars:8,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,"alert","alert-error","my-4"],[1,"alert","alert-warning","my-4"],[1,"grey-text"],[1,"justify-content-center","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,u){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(),f(11,j,2,1,"div",7)(12,M,14,20),f(13,z,10,8,"div",8),n()()),s&2&&(i(2),c(l(3,4,"menu.restart.title")),i(7),c(l(10,6,"restart.title_restart")),i(2),_(u.error?11:12),i(2),_(u.timeout?13:-1))},dependencies:[T,I],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{X as a};
@@ -1 +1 @@
1
- import"./chunk-X4JFX3IR.js";import"./chunk-NE4WZ57E.js";import"./chunk-AJTG3DAQ.js";import{g as i}from"./chunk-JBQX4JBH.js";import"./chunk-T7ZT5HJB.js";import"./chunk-GT3IRCKC.js";import"./chunk-L23FZ5T5.js";import"./chunk-EKP6Y74D.js";import"./chunk-EM4PY2IW.js";import{c as m}from"./chunk-555LSHXI.js";import{ha as t,kd as n,mb as r}from"./chunk-W6X46MTW.js";var u=[{path:"",loadComponent:()=>import("./chunk-C4IKYV3Z.js").then(o=>o.TerminalComponent)}],a=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(u),i]})}return o})();var T=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n,a,m.forChild()]})}return o})();export{T as TerminalModule};
1
+ import"./chunk-JZME4ABL.js";import"./chunk-FWJ2J44F.js";import"./chunk-AJTG3DAQ.js";import{g as i}from"./chunk-JBQX4JBH.js";import"./chunk-U4QEQFFK.js";import"./chunk-VMSNBVAT.js";import"./chunk-NXQ4GZOG.js";import"./chunk-6ZPJ7POF.js";import"./chunk-EM4PY2IW.js";import{c as m}from"./chunk-555LSHXI.js";import{ha as t,kd as n,mb as r}from"./chunk-W6X46MTW.js";var u=[{path:"",loadComponent:()=>import("./chunk-OA5DW6VE.js").then(o=>o.TerminalComponent)}],a=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(u),i]})}return o})();var T=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n,a,m.forChild()]})}return o})();export{T as TerminalModule};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-NRCV2QKO.js";import"./chunk-JBQX4JBH.js";import"./chunk-U4QEQFFK.js";import"./chunk-VMSNBVAT.js";import"./chunk-NXQ4GZOG.js";import"./chunk-6ZPJ7POF.js";import"./chunk-EM4PY2IW.js";import"./chunk-555LSHXI.js";import"./chunk-W6X46MTW.js";export{a as RestartLinuxComponent};
package/public/index.html CHANGED
@@ -20,5 +20,5 @@
20
20
 
21
21
  <body>
22
22
  <app-root></app-root>
23
- <link rel="modulepreload" href="chunk-PGN4QG4S.js"><link rel="modulepreload" href="chunk-R6INISRW.js"><link rel="modulepreload" href="chunk-TJJCM4OW.js"><link rel="modulepreload" href="chunk-7ZKKL7CC.js"><link rel="modulepreload" href="chunk-TAOKRPHH.js"><link rel="modulepreload" href="chunk-URC672ZD.js"><link rel="modulepreload" href="chunk-37ABWSAZ.js"><link rel="modulepreload" href="chunk-NE4WZ57E.js"><link rel="modulepreload" href="chunk-XF46NOEB.js"><link rel="modulepreload" href="chunk-BKVF3JKZ.js"><script src="polyfills-WE4HA5DL.js" type="module" crossorigin="use-credentials"></script><script src="main-HZYQMW45.js" type="module" crossorigin="use-credentials"></script></body>
23
+ <link rel="modulepreload" href="chunk-H3Y73MCC.js"><link rel="modulepreload" href="chunk-ATGP6RPD.js"><link rel="modulepreload" href="chunk-TJJCM4OW.js"><link rel="modulepreload" href="chunk-KZ5OMM57.js"><link rel="modulepreload" href="chunk-MJIPUUN5.js"><link rel="modulepreload" href="chunk-ODG75D26.js"><link rel="modulepreload" href="chunk-BX6N4UKH.js"><link rel="modulepreload" href="chunk-FWJ2J44F.js"><link rel="modulepreload" href="chunk-MQHMY7ON.js"><link rel="modulepreload" href="chunk-JBFJYSSE.js"><script src="polyfills-WE4HA5DL.js" type="module" crossorigin="use-credentials"></script><script src="main-EZDPONJ4.js" type="module" crossorigin="use-credentials"></script></body>
24
24
  </html>