@duplicati/ngclient 0.0.165 → 0.0.166

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 (114) hide show
  1. package/chunk-25QJ7OWU.js +1 -0
  2. package/{chunk-ZSP3PG56.js → chunk-2HQTO4LT.js} +1 -1
  3. package/{chunk-NXROYR6L.js → chunk-3ADKRLYD.js} +1 -1
  4. package/{chunk-BB73BKGN.js → chunk-3O255C2R.js} +1 -1
  5. package/{chunk-K6IL54XE.js → chunk-3VHQLGKM.js} +1 -1
  6. package/{chunk-IEGVSOLM.js → chunk-4IAJY6E3.js} +1 -1
  7. package/chunk-4N7O6OWH.js +1 -0
  8. package/{chunk-LEYSCNJE.js → chunk-53GUCO6P.js} +1 -1
  9. package/{chunk-VCLWADQK.js → chunk-53V6KV3I.js} +1 -1
  10. package/{chunk-Q6RATRPG.js → chunk-5RCKMVGY.js} +1 -1
  11. package/{chunk-2NUXSSQT.js → chunk-7WATCQLK.js} +1 -1
  12. package/chunk-A4HSV37F.js +1 -0
  13. package/{chunk-EM7XX5OF.js → chunk-AROXMP46.js} +1 -1
  14. package/{chunk-HVB6ARTT.js → chunk-AUMCM45B.js} +1 -1
  15. package/{chunk-Y27QHU4A.js → chunk-AY4BUZJQ.js} +1 -1
  16. package/{chunk-WNP2PFJP.js → chunk-BRPGUJ77.js} +1 -1
  17. package/{chunk-RVELYERL.js → chunk-CMFSS355.js} +1 -1
  18. package/{chunk-XAUZOGDI.js → chunk-CMMGGY2S.js} +1 -1
  19. package/{chunk-P2GZAEQX.js → chunk-CO4VU5IU.js} +1 -1
  20. package/chunk-DPQEDR6U.js +1 -0
  21. package/{chunk-KLODM6IK.js → chunk-E4KSSC6K.js} +1 -1
  22. package/chunk-EEXKY2IJ.js +1 -0
  23. package/chunk-EYFKXXER.js +1 -0
  24. package/chunk-FUPYLAQ6.js +1 -0
  25. package/{chunk-F3EXRAZJ.js → chunk-G4Z3JAJB.js} +1 -1
  26. package/{chunk-H3W2UQY2.js → chunk-GGNFAVSC.js} +1 -1
  27. package/{chunk-VLCXKEIA.js → chunk-GHJ4MU3O.js} +1 -1
  28. package/{chunk-WJDMMKWE.js → chunk-GRPEAINE.js} +1 -1
  29. package/{chunk-RPJFKWMV.js → chunk-HEST3B3S.js} +1 -1
  30. package/chunk-HJSCQF6V.js +1 -0
  31. package/{chunk-ORLZQJMN.js → chunk-HKYSIIV5.js} +1 -1
  32. package/{chunk-AT6BXXSP.js → chunk-HW7A5ZWV.js} +1 -1
  33. package/{chunk-ISCGGOPN.js → chunk-ILGMXHEE.js} +1 -1
  34. package/chunk-IMF5BUVN.js +1 -0
  35. package/{chunk-TVD2HREV.js → chunk-IQ52IXSC.js} +1 -1
  36. package/{chunk-2DP4QU4T.js → chunk-J64OAILA.js} +1 -1
  37. package/{chunk-JEWYZWQN.js → chunk-JGXPFEYZ.js} +1 -1
  38. package/{chunk-PFZG7ACX.js → chunk-JXLBFHEH.js} +1 -1
  39. package/chunk-KKLVMIFL.js +1 -0
  40. package/{chunk-H4H72SDD.js → chunk-KUP2T6AG.js} +1 -1
  41. package/{chunk-YGVXQBSL.js → chunk-L7WPKNLR.js} +1 -1
  42. package/{chunk-5NPUZRFY.js → chunk-LHOHOKP5.js} +1 -1
  43. package/{chunk-PZOMPDFS.js → chunk-M2BAPEJT.js} +1 -1
  44. package/{chunk-IKPQDSQK.js → chunk-NA6MTRHY.js} +2 -2
  45. package/{chunk-2QQJ6ZBU.js → chunk-NDZU2O2Q.js} +1 -1
  46. package/chunk-NLXY47SY.js +1 -0
  47. package/{chunk-ZTM5RK6J.js → chunk-NXJQU7IR.js} +1 -1
  48. package/{chunk-POJT4MSX.js → chunk-NY63VRAY.js} +1 -1
  49. package/{chunk-E3KF5SRU.js → chunk-O2M7MRKP.js} +1 -1
  50. package/{chunk-AWXWGD4T.js → chunk-OQ2HMOSQ.js} +1 -1
  51. package/{chunk-YIMKL4H6.js → chunk-OVLLX4US.js} +1 -1
  52. package/{chunk-TC7HZO7D.js → chunk-P7OKMMNZ.js} +1 -1
  53. package/chunk-POAVE42X.js +1 -0
  54. package/{chunk-PKK4MIRQ.js → chunk-Q4I4JXKZ.js} +1 -1
  55. package/chunk-QAY6UFT6.js +1 -0
  56. package/chunk-QE4NBN5H.js +2 -0
  57. package/{chunk-QBHHGHBJ.js → chunk-QLUEDPL4.js} +1 -1
  58. package/{chunk-E6DCTQ34.js → chunk-QOQI2ALM.js} +1 -1
  59. package/{chunk-5KMPTDRJ.js → chunk-R2N5UWYB.js} +1 -1
  60. package/chunk-R3F6GIHW.js +1 -0
  61. package/{chunk-CENUQU54.js → chunk-RRM5OZPV.js} +2 -2
  62. package/{chunk-D2ZTG4GG.js → chunk-SFSDLKTN.js} +1 -1
  63. package/{chunk-QNEJVXLY.js → chunk-SHNCRKXQ.js} +1 -1
  64. package/chunk-SKFITJZT.js +1 -0
  65. package/{chunk-IME3RCXO.js → chunk-SNVT3M5C.js} +1 -1
  66. package/chunk-TPYX7QC7.js +1 -0
  67. package/{chunk-A66RJUYO.js → chunk-ULR2EPP5.js} +1 -1
  68. package/{chunk-5U6T552I.js → chunk-V5B247QH.js} +1 -1
  69. package/{chunk-UEUGGMU7.js → chunk-V7OQKE2Z.js} +1 -1
  70. package/{chunk-SQSTMZR3.js → chunk-VXJJGZ5F.js} +1 -1
  71. package/{chunk-DQAT6VCF.js → chunk-W7NX3PWJ.js} +1 -1
  72. package/chunk-WJEUX75A.js +1 -0
  73. package/{chunk-DQ7EARGM.js → chunk-WKA7CSGA.js} +1 -1
  74. package/{chunk-D7OP5FPA.js → chunk-WNHQELMC.js} +1 -1
  75. package/{chunk-J34TTKLN.js → chunk-WPIVIZS6.js} +1 -1
  76. package/{chunk-4VZNWPWO.js → chunk-X6SJVQXW.js} +1 -1
  77. package/{chunk-TX7FNDPL.js → chunk-X7XIFHAV.js} +1 -1
  78. package/{chunk-ATGKEH5N.js → chunk-XUQ74HFK.js} +1 -1
  79. package/{chunk-KIUZUG7C.js → chunk-Y2LISX47.js} +1 -1
  80. package/chunk-Y7PHGRGB.js +4 -0
  81. package/{chunk-AAIMJHAS.js → chunk-YU5AMM6C.js} +1 -1
  82. package/{chunk-35ZUPRX7.js → chunk-YWZRYOES.js} +1 -1
  83. package/{chunk-AE7T2DAH.js → chunk-ZQ56M63S.js} +1 -1
  84. package/chunk-ZSEZR472.js +1 -0
  85. package/{chunk-ULC4PUPL.js → chunk-ZXEF3CNK.js} +1 -1
  86. package/{chunk-GNJTDWT4.js → chunk-ZZBUNZZO.js} +1 -1
  87. package/{chunk-KFYMEXS6.js → chunk-ZZBZEHXF.js} +1 -1
  88. package/index.html +2 -2
  89. package/locale/messages.en.json +3 -0
  90. package/locale/messages.json +3 -0
  91. package/{main-NIJHUKOR.js → main-L5HX5P6R.js} +1 -1
  92. package/package.json +1 -1
  93. package/styles-5QAJP4BI.css +1 -0
  94. package/chunk-2DSLXKCS.js +0 -1
  95. package/chunk-43UBTE3L.js +0 -1
  96. package/chunk-4M7H3XII.js +0 -1
  97. package/chunk-FG7TM7PO.js +0 -1
  98. package/chunk-I3AX7HPO.js +0 -1
  99. package/chunk-IFCA5KWR.js +0 -1
  100. package/chunk-JIVJVJKU.js +0 -1
  101. package/chunk-KGO3OR7H.js +0 -1
  102. package/chunk-LH6XLRJU.js +0 -1
  103. package/chunk-PIMTQKQK.js +0 -1
  104. package/chunk-RIX6H2ZX.js +0 -1
  105. package/chunk-SDIOWQX7.js +0 -1
  106. package/chunk-TCDG7C5J.js +0 -1
  107. package/chunk-TGNUULAU.js +0 -1
  108. package/chunk-UVPLU2YS.js +0 -1
  109. package/chunk-XRI2BFC2.js +0 -2
  110. package/chunk-Z34TVTJN.js +0 -1
  111. package/chunk-Z4MDYLVI.js +0 -1
  112. package/chunk-ZBK64QS2.js +0 -4
  113. package/chunk-ZNZH3TU5.js +0 -1
  114. package/styles-JSM72RCO.css +0 -1
@@ -1 +1 @@
1
- import{a as B}from"./chunk-A66RJUYO.js";import{a as z}from"./chunk-SQSTMZR3.js";import{a as R}from"./chunk-HVB6ARTT.js";import{a as $}from"./chunk-QBHHGHBJ.js";import{a as b}from"./chunk-AE7T2DAH.js";import{b as P}from"./chunk-TC7HZO7D.js";import{z as S}from"./chunk-TGNUULAU.js";import{H as u,P as k,Rc as c,Sc as f,V as m,_ as s,n as d,pa as n,r as h}from"./chunk-ZBK64QS2.js";import{a,b as r}from"./chunk-EUDKD2JW.js";var F={Starting_Operation:$localize`Starting operation …`,Backup_Begin:$localize`Starting backup …`,Backup_PreBackupVerify:$localize`Verifying backend data …`,Backup_PostBackupTest:$localize`Verifying remote data …`,Backup_PreviousBackupFinalize:$localize`Completing previous backup …`,Backup_ProcessingFiles:$localize`Processing files to backup …`,Backup_Finalize:$localize`Completing backup …`,Backup_WaitForUpload:$localize`Waiting for upload to finish …`,Backup_Delete:$localize`Deleting unwanted files …`,Backup_Compact:$localize`Compacting remote data …`,Backup_VerificationUpload:$localize`Uploading verification file …`,Backup_PostBackupVerify:$localize`Verifying backend data …`,Backup_Complete:$localize`Backup complete!`,Restore_Begin:$localize`Starting restore …`,Restore_RecreateDatabase:$localize`Rebuilding local database …`,Restore_PreRestoreVerify:$localize`Verifying remote data …`,Restore_CreateFileList:$localize`Building list of files to restore …`,Restore_CreateTargetFolders:$localize`Creating target folders …`,Restore_ScanForExistingFiles:$localize`Scanning existing files …`,Restore_ScanForLocalBlocks:$localize`Scanning for local blocks …`,Restore_PatchWithLocalBlocks:$localize`Patching files with local blocks …`,Restore_DownloadingRemoteFiles:$localize`Downloading files …`,Restore_PostRestoreVerify:$localize`Verifying restored files …`,Restore_Complete:$localize`Restore complete!`,Recreate_Running:$localize`Recreating database …`,Vacuum_Running:$localize`Vacuuming database …`,Repair_Running:$localize`Repairing database …`,Verify_Running:$localize`Verifying files …`,BugReport_Running:$localize`Creating bug report …`,Delete_Listing:$localize`Listing remote files …`,Delete_Deleting:$localize`Deleting remote files …`,PurgeFiles_Begin:$localize`Listing remote files for purge …`,PurgeFiles_Process:$localize`Purging files …`,PurgeFiles_Compact:$localize`Compacting remote data …`,PurgeFiles_Complete:$localize`Purging files complete!`,Error:$localize`Error!`},_=class g{#i=s(R);#t=s(P);#o=s(B);#e=s(z);#c=s(S);#g=s(b);#s=n(!1);#a=n(null);statusData=this.#a.asReadonly();lastState=null;serverState=c(()=>{let e=this.#e.serverState();return e?(e.ProposedSchedule=e.ProposedSchedule?.map(i=>r(a({},i),{backup:i.Item1?this.#o.getBackupById(i.Item1):null}))??null,this.lastState=e,e):this.lastState});hasProgressOnWebsocket=c(()=>this.#g.hasProgressSubscribeOption()&&this.#e.getConnectionMethod()==="websocket");clientIsRunning=c(()=>this.serverState()?.ProgramState==="Running");isResuming=n(!1);isFetching=this.#s.asReadonly();connectionStatus=this.#e.connectionStatus;pollingInterval;#f=f(()=>{let e=this.#e.serverState();e?.ActiveTask||this.#o.getBackups(!0),this.hasProgressOnWebsocket()&&(this.#e.subscribe("progress"),this.#e.subscribe("taskqueue")),e?.ActiveTask&&this.pollingInterval===void 0?this.startPollingProgress():e?.ActiveTask||this.stopPollingProgress()});#d=f(()=>{let e=this.#e.progressState(),i=this.#e.taskQueueState();if(e){let t=i?.find(o=>o.ID===e.TaskID)??null;this.#l(r(a({},e),{task:t}))}});setConnectionMethod(e){this.#e.setConnectionMethod(e)}startPollingProgress(){this.hasProgressOnWebsocket()?this.#e.subscribe("progress"):this.pollingInterval=setInterval(()=>{this.#r()},1e3)}stopPollingProgress(){clearInterval(this.pollingInterval)}fetchProgressState(){this.#r()}pauseResume(){return this.isResuming.set(!0),this.#t.postApiV1ServerstateResume().pipe(u(()=>this.isResuming.set(!1)))}resumeDialogCheck(e){if(!this.clientIsRunning()){this.#c.open($,{data:{title:$localize`Server paused`,message:$localize`Server is currently paused. Do you want to resume now?`,confirmText:$localize`Resume`,cancelText:$localize`No, I'll resume later`},closed:i=>{i&&this.pauseResume().subscribe({next:()=>{e()}})}});return}e()}#r(){this.#s.set(!0),this.#t.getApiV1Progressstate().pipe(k(e=>{let i=e.TaskID??null;return i===null?d(e):this.#t.getApiV1TaskByTaskid({taskid:i}).pipe(h(t=>r(a({},e),{task:t??null})))}),u(()=>this.#s.set(!1))).subscribe({next:e=>{this.#l(e),this.serverState()?.ActiveTask==null&&this.stopPollingProgress()},error:e=>{e.status===404&&this.stopPollingProgress()}})}#l(e){let i=e.TaskID??null,t=e.BackupID??null;i!==null&&t!==null&&(e.backup=this.#o.getBackupById(t)),this.#a.set(r(a({},e),{progress:this.#p(e),statusText:this.#u(e),actionText:e.backup?.Backup?.Name??$localize`Running task`}))}#p(e){let i=-1;if(e.task&&e)if(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles")if(e.StillCounting)i=0;else{let t=e.CurrentFilecomplete?0:e.CurrentFileoffset,o=e.TotalFileCount-e.ProcessedFileCount,l=e.TotalFileSize-e.ProcessedFileSize-t;i=(e.ProcessedFileSize+t)/e.TotalFileSize,e.ProcessedFileCount===0?i=0:i>=.9&&(i=.9)}else e.Phase==="Backup_Finalize"||e.Phase==="Backup_WaitForUpload"?i=.9:e.Phase==="Backup_Delete"||e.Phase==="Backup_Compact"?i=.95:e.Phase==="Backup_VerificationUpload"||e.Phase==="Backup_PostBackupVerify"?i=.98:e.Phase==="Backup_Complete"?i=1:e.OverallProgress>0&&(i=e.OverallProgress);return i}#n(e){let i=(e.ActiveTransfers??[]).map(o=>o.BackendSpeed).reduce((o,l)=>(o??0)+(l??0),0)??-1,t=i<=0?e.BackendSpeed:i;return(t??-1)<0?"":` at ${this.#i.transform(t)}/s`}#u(e){let i="Running \u2026";if(e.task&&e){if(i=e.Phase?F[e.Phase]:"Running \u2026",e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles")if(e.StillCounting)i=`Counting (${e.TotalFileCount} files found, ${this.#i.transform(e.TotalFileSize)})`;else{let t=e.CurrentFilecomplete?0:e.CurrentFileoffset,o=e.TotalFileCount-e.ProcessedFileCount,l=e.TotalFileSize-e.ProcessedFileSize-t,v=e.Phase==="Restore_DownloadingRemoteFiles"?"Restoring: ":"",p=this.#n(e);e.Phase==="Backup_ProcessingFiles"&&o===0?i=`Completing upload ${p}`:e.BackendIsBlocking??!1?i=`Waiting for transfers ${p}`:i=`${v}${o} files (${this.#i.transform(l)}) to go ${p}`}else if(e.Phase==="Backup_WaitForUpload"){let t=this.#n(e);t!==""&&(i=`Waiting for upload to finish ${t}`)}}return i}static \u0275fac=function(i){return new(i||g)};static \u0275prov=m({token:g,factory:g.\u0275fac,providedIn:"root"})};export{_ as a};
1
+ import{a as B}from"./chunk-ULR2EPP5.js";import{a as z}from"./chunk-VXJJGZ5F.js";import{a as R}from"./chunk-AUMCM45B.js";import{a as $}from"./chunk-QLUEDPL4.js";import{a as b}from"./chunk-ZQ56M63S.js";import{b as P}from"./chunk-P7OKMMNZ.js";import{z as S}from"./chunk-HJSCQF6V.js";import{H as u,P as k,Qc as c,Rc as f,V as m,_ as s,n as d,oa as n,r as h}from"./chunk-Y7PHGRGB.js";import{a,b as r}from"./chunk-EUDKD2JW.js";var F={Starting_Operation:$localize`Starting operation …`,Backup_Begin:$localize`Starting backup …`,Backup_PreBackupVerify:$localize`Verifying backend data …`,Backup_PostBackupTest:$localize`Verifying remote data …`,Backup_PreviousBackupFinalize:$localize`Completing previous backup …`,Backup_ProcessingFiles:$localize`Processing files to backup …`,Backup_Finalize:$localize`Completing backup …`,Backup_WaitForUpload:$localize`Waiting for upload to finish …`,Backup_Delete:$localize`Deleting unwanted files …`,Backup_Compact:$localize`Compacting remote data …`,Backup_VerificationUpload:$localize`Uploading verification file …`,Backup_PostBackupVerify:$localize`Verifying backend data …`,Backup_Complete:$localize`Backup complete!`,Restore_Begin:$localize`Starting restore …`,Restore_RecreateDatabase:$localize`Rebuilding local database …`,Restore_PreRestoreVerify:$localize`Verifying remote data …`,Restore_CreateFileList:$localize`Building list of files to restore …`,Restore_CreateTargetFolders:$localize`Creating target folders …`,Restore_ScanForExistingFiles:$localize`Scanning existing files …`,Restore_ScanForLocalBlocks:$localize`Scanning for local blocks …`,Restore_PatchWithLocalBlocks:$localize`Patching files with local blocks …`,Restore_DownloadingRemoteFiles:$localize`Downloading files …`,Restore_PostRestoreVerify:$localize`Verifying restored files …`,Restore_Complete:$localize`Restore complete!`,Recreate_Running:$localize`Recreating database …`,Vacuum_Running:$localize`Vacuuming database …`,Repair_Running:$localize`Repairing database …`,Verify_Running:$localize`Verifying files …`,BugReport_Running:$localize`Creating bug report …`,Delete_Listing:$localize`Listing remote files …`,Delete_Deleting:$localize`Deleting remote files …`,PurgeFiles_Begin:$localize`Listing remote files for purge …`,PurgeFiles_Process:$localize`Purging files …`,PurgeFiles_Compact:$localize`Compacting remote data …`,PurgeFiles_Complete:$localize`Purging files complete!`,Error:$localize`Error!`},_=class g{#i=s(R);#t=s(P);#o=s(B);#e=s(z);#c=s(S);#g=s(b);#s=n(!1);#a=n(null);statusData=this.#a.asReadonly();lastState=null;serverState=c(()=>{let e=this.#e.serverState();return e?(e.ProposedSchedule=e.ProposedSchedule?.map(i=>r(a({},i),{backup:i.Item1?this.#o.getBackupById(i.Item1):null}))??null,this.lastState=e,e):this.lastState});hasProgressOnWebsocket=c(()=>this.#g.hasProgressSubscribeOption()&&this.#e.getConnectionMethod()==="websocket");clientIsRunning=c(()=>this.serverState()?.ProgramState==="Running");isResuming=n(!1);isFetching=this.#s.asReadonly();connectionStatus=this.#e.connectionStatus;pollingInterval;#f=f(()=>{let e=this.#e.serverState();e?.ActiveTask||this.#o.getBackups(!0),this.hasProgressOnWebsocket()&&(this.#e.subscribe("progress"),this.#e.subscribe("taskqueue")),e?.ActiveTask&&this.pollingInterval===void 0?this.startPollingProgress():e?.ActiveTask||this.stopPollingProgress()});#d=f(()=>{let e=this.#e.progressState(),i=this.#e.taskQueueState();if(e){let t=i?.find(o=>o.ID===e.TaskID)??null;this.#l(r(a({},e),{task:t}))}});setConnectionMethod(e){this.#e.setConnectionMethod(e)}startPollingProgress(){this.hasProgressOnWebsocket()?this.#e.subscribe("progress"):this.pollingInterval=setInterval(()=>{this.#r()},1e3)}stopPollingProgress(){clearInterval(this.pollingInterval)}fetchProgressState(){this.#r()}pauseResume(){return this.isResuming.set(!0),this.#t.postApiV1ServerstateResume().pipe(u(()=>this.isResuming.set(!1)))}resumeDialogCheck(e){if(!this.clientIsRunning()){this.#c.open($,{data:{title:$localize`Server paused`,message:$localize`Server is currently paused. Do you want to resume now?`,confirmText:$localize`Resume`,cancelText:$localize`No, I'll resume later`},closed:i=>{i&&this.pauseResume().subscribe({next:()=>{e()}})}});return}e()}#r(){this.#s.set(!0),this.#t.getApiV1Progressstate().pipe(k(e=>{let i=e.TaskID??null;return i===null?d(e):this.#t.getApiV1TaskByTaskid({taskid:i}).pipe(h(t=>r(a({},e),{task:t??null})))}),u(()=>this.#s.set(!1))).subscribe({next:e=>{this.#l(e),this.serverState()?.ActiveTask==null&&this.stopPollingProgress()},error:e=>{e.status===404&&this.stopPollingProgress()}})}#l(e){let i=e.TaskID??null,t=e.BackupID??null;i!==null&&t!==null&&(e.backup=this.#o.getBackupById(t)),this.#a.set(r(a({},e),{progress:this.#p(e),statusText:this.#u(e),actionText:e.backup?.Backup?.Name??$localize`Running task`}))}#p(e){let i=-1;if(e.task&&e)if(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles")if(e.StillCounting)i=0;else{let t=e.CurrentFilecomplete?0:e.CurrentFileoffset,o=e.TotalFileCount-e.ProcessedFileCount,l=e.TotalFileSize-e.ProcessedFileSize-t;i=(e.ProcessedFileSize+t)/e.TotalFileSize,e.ProcessedFileCount===0?i=0:i>=.9&&(i=.9)}else e.Phase==="Backup_Finalize"||e.Phase==="Backup_WaitForUpload"?i=.9:e.Phase==="Backup_Delete"||e.Phase==="Backup_Compact"?i=.95:e.Phase==="Backup_VerificationUpload"||e.Phase==="Backup_PostBackupVerify"?i=.98:e.Phase==="Backup_Complete"?i=1:e.OverallProgress>0&&(i=e.OverallProgress);return i}#n(e){let i=(e.ActiveTransfers??[]).map(o=>o.BackendSpeed).reduce((o,l)=>(o??0)+(l??0),0)??-1,t=i<=0?e.BackendSpeed:i;return(t??-1)<0?"":` at ${this.#i.transform(t)}/s`}#u(e){let i="Running \u2026";if(e.task&&e){if(i=e.Phase?F[e.Phase]:"Running \u2026",e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles")if(e.StillCounting)i=`Counting (${e.TotalFileCount} files found, ${this.#i.transform(e.TotalFileSize)})`;else{let t=e.CurrentFilecomplete?0:e.CurrentFileoffset,o=e.TotalFileCount-e.ProcessedFileCount,l=e.TotalFileSize-e.ProcessedFileSize-t,v=e.Phase==="Restore_DownloadingRemoteFiles"?"Restoring: ":"",p=this.#n(e);e.Phase==="Backup_ProcessingFiles"&&o===0?i=`Completing upload ${p}`:e.BackendIsBlocking??!1?i=`Waiting for transfers ${p}`:i=`${v}${o} files (${this.#i.transform(l)}) to go ${p}`}else if(e.Phase==="Backup_WaitForUpload"){let t=this.#n(e);t!==""&&(i=`Waiting for upload to finish ${t}`)}}return i}static \u0275fac=function(i){return new(i||g)};static \u0275prov=m({token:g,factory:g.\u0275fac,providedIn:"root"})};export{_ as a};
@@ -1,2 +1,2 @@
1
- import{a as ge,b as Te}from"./chunk-FPPZ4BUR.js";import{$ as le,C as ae,H as ce,P as de,S as N,V as k,Y as M,Z as D,_ as g,ba as ue,ca as he,f as Q,ka as fe,la as pe,lb as me,n as Z,r as C,ra as ye,z as ie}from"./chunk-ZBK64QS2.js";import{a as q}from"./chunk-EUDKD2JW.js";var F=class{},j=class{},R=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
1
+ import{a as ge,b as Te}from"./chunk-FPPZ4BUR.js";import{$ as le,C as ae,H as ce,P as de,S as N,V as k,Y as M,Z as D,_ as g,ba as ue,ca as he,f as Q,ja as fe,ka as pe,kb as me,n as Z,qa as ye,r as C,z as ie}from"./chunk-Y7PHGRGB.js";import{a as q}from"./chunk-EUDKD2JW.js";var F=class{},j=class{},R=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
2
2
  `).forEach(e=>{let n=e.indexOf(":");if(n>0){let s=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(s,o)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new r;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,e);let s=(t.op==="a"?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let i=this.headers.get(e);if(!i)return;i=i.filter(l=>o.indexOf(l)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}break}}addHeaderEntry(t,e){let n=t.toLowerCase();this.maybeSetNormalizedName(t,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(t,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),s=t.toLowerCase();this.headers.set(s,n),this.maybeSetNormalizedName(t,s)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var $=class{encodeKey(t){return Ee(t)}encodeValue(t){return Ee(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Fe(r,t){let e=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let o=s.indexOf("="),[i,l]=o==-1?[t.decodeKey(s),""]:[t.decodeKey(s.slice(0,o)),t.decodeValue(s.slice(o+1))],a=e.get(i)||[];a.push(l),e.set(i,a)}),e}var je=/%(\d[a-f0-9])/gi,Le={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ee(r){return encodeURIComponent(r).replace(je,(t,e)=>Le[e]??t)}function X(r){return`${r}`}var b=class r{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new $,t.fromString){if(t.fromObject)throw new N(2805,!1);this.map=Fe(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let n=t.fromObject[e],s=Array.isArray(n)?n.map(X):[X(n)];this.map.set(e,s)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(n=>{let s=t[n];Array.isArray(s)?s.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:s,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new r({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(X(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],s=n.indexOf(X(t.value));s!==-1&&n.splice(s,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var V=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Ue(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ve(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function Re(r){return typeof Blob<"u"&&r instanceof Blob}function we(r){return typeof FormData<"u"&&r instanceof FormData}function Ce(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var S="Content-Type",G="Accept",ne="X-Request-URL",Pe="text/plain",Ne="application/json",Me=`${Ne}, ${Pe}, */*`,x=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,e,n,s){this.url=e,this.method=t.toUpperCase();let o;if(Ue(this.method)||s?(this.body=n!==void 0?n:null,o=s):o=n,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new N(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new R,this.context??=new V,!this.params)this.params=new b,this.urlWithParams=e;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=e;else{let l=e.indexOf("?"),a=l===-1?"?":l<e.length-1?"&":"";this.urlWithParams=e+a+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ve(this.body)||Re(this.body)||we(this.body)||Ce(this.body)?this.body:this.body instanceof b?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||we(this.body)?null:Re(this.body)?this.body.type||null:ve(this.body)?null:typeof this.body=="string"?Pe:this.body instanceof b?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Ne:null}clone(t={}){let e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,o=t.keepalive??this.keepalive,i=t.priority||this.priority,l=t.cache||this.cache,a=t.mode||this.mode,f=t.redirect||this.redirect,y=t.credentials||this.credentials,m=t.referrer||this.referrer,O=t.integrity||this.integrity,A=t.transferCache??this.transferCache,h=t.timeout??this.timeout,I=t.body!==void 0?t.body:this.body,c=t.withCredentials??this.withCredentials,d=t.reportProgress??this.reportProgress,p=t.headers||this.headers,T=t.params||this.params,u=t.context??this.context;return t.setHeaders!==void 0&&(p=Object.keys(t.setHeaders).reduce((E,w)=>E.set(w,t.setHeaders[w]),p)),t.setParams&&(T=Object.keys(t.setParams).reduce((E,w)=>E.set(w,t.setParams[w]),T)),new r(e,n,I,{params:T,headers:p,context:u,reportProgress:d,responseType:s,withCredentials:c,transferCache:A,keepalive:o,cache:l,priority:i,timeout:h,mode:a,redirect:f,credentials:y,referrer:m,integrity:O})}},P=(function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r})(P||{}),L=class{headers;status;statusText;url;ok;type;redirected;constructor(t,e=200,n="OK"){this.headers=t.headers||new R,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},B=class r extends L{constructor(t={}){super(t)}type=P.ResponseHeader;clone(t={}){return new r({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},U=class r extends L{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=P.Response;clone(t={}){return new r({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},v=class extends L{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Oe=200,Se=204;function H(r,t){return{body:t,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,credentials:r.credentials,transferCache:r.transferCache,timeout:r.timeout,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,integrity:r.integrity,referrer:r.referrer}}var Ae=(()=>{class r{handler;constructor(e){this.handler=e}request(e,n,s={}){let o;if(e instanceof x)o=e;else{let a;s.headers instanceof R?a=s.headers:a=new R(s.headers);let f;s.params&&(s.params instanceof b?f=s.params:f=new b({fromObject:s.params})),o=new x(e,n,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:f,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache,keepalive:s.keepalive,priority:s.priority,cache:s.cache,mode:s.mode,redirect:s.redirect,credentials:s.credentials,referrer:s.referrer,integrity:s.integrity,timeout:s.timeout})}let i=Z(o).pipe(ae(a=>this.handler.handle(a)));if(e instanceof x||s.observe==="events")return i;let l=i.pipe(ie(a=>a instanceof U));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return l.pipe(C(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new N(2806,!1);return a.body}));case"blob":return l.pipe(C(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new N(2807,!1);return a.body}));case"text":return l.pipe(C(a=>{if(a.body!==null&&typeof a.body!="string")throw new N(2808,!1);return a.body}));case"json":default:return l.pipe(C(a=>a.body))}case"response":return l;default:throw new N(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new b().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,s={}){return this.request("PATCH",e,H(s,n))}post(e,n,s={}){return this.request("POST",e,H(s,n))}put(e,n,s={}){return this.request("PUT",e,H(s,n))}static \u0275fac=function(n){return new(n||r)(D(F))};static \u0275prov=k({token:r,factory:r.\u0275fac})}return r})(),Be=/^\)\]\}',?\n/;function be(r){if(r.url)return r.url;let t=ne.toLocaleLowerCase();return r.headers.get(t)}var Ie=new M(""),J=(()=>{class r{fetchImpl=g(ee,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=g(me);destroyRef=g(pe);destroyed=!1;constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0})}handle(e){return new Q(n=>{let s=new AbortController;this.doRequest(e,s.signal,n).then(te,i=>n.error(new v({error:i})));let o;return e.timeout&&(o=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{s.signal.aborted||s.abort(new DOMException("signal timed out","TimeoutError"))},e.timeout))),()=>{o!==void 0&&clearTimeout(o),s.abort()}})}async doRequest(e,n,s){let o=this.createRequestInit(e),i;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,q({signal:n},o)));ze(h),s.next({type:P.Sent}),i=await h}catch(h){s.error(new v({error:h,status:h.status??0,statusText:h.statusText,url:e.urlWithParams,headers:h.headers}));return}let l=new R(i.headers),a=i.statusText,f=be(i)??e.urlWithParams,y=i.status,m=null;if(e.reportProgress&&s.next(new B({headers:l,status:y,statusText:a,url:f})),i.body){let h=i.headers.get("content-length"),I=[],c=i.body.getReader(),d=0,p,T,u=typeof Zone<"u"&&Zone.current,E=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyed){await c.cancel(),E=!0;break}let{done:_,value:Y}=await c.read();if(_)break;if(I.push(Y),d+=Y.length,e.reportProgress){T=e.responseType==="text"?(T??"")+(p??=new TextDecoder).decode(Y,{stream:!0}):void 0;let oe=()=>s.next({type:P.DownloadProgress,total:h?+h:void 0,loaded:d,partialText:T});u?u.run(oe):oe()}}}),E){s.complete();return}let w=this.concatChunks(I,d);try{let _=i.headers.get(S)??"";m=this.parseBody(e,w,_,y)}catch(_){s.error(new v({error:_,headers:new R(i.headers),status:i.status,statusText:i.statusText,url:be(i)??e.urlWithParams}));return}}y===0&&(y=m?Oe:0);let O=y>=200&&y<300,A=i.redirected;O?(s.next(new U({body:m,headers:l,status:y,statusText:a,url:f,redirected:A})),s.complete()):s.error(new v({error:m,headers:l,status:y,statusText:a,url:f,redirected:A}))}parseBody(e,n,s,o){switch(e.responseType){case"json":let i=new TextDecoder().decode(n).replace(Be,"");if(i==="")return null;try{return JSON.parse(i)}catch(l){if(o<200||o>=300)return i;throw l}case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:s});case"arraybuffer":return n.buffer}}createRequestInit(e){let n={},s;if(s=e.credentials,e.withCredentials&&(s="include"),e.headers.forEach((o,i)=>n[o]=i.join(",")),e.headers.has(G)||(n[G]=Me),!e.headers.has(S)){let o=e.detectContentTypeHeader();o!==null&&(n[S]=o)}return{body:e.serializeBody(),method:e.method,headers:n,credentials:s,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}}concatChunks(e,n){let s=new Uint8Array(n),o=0;for(let i of e)s.set(i,o),o+=i.length;return s}static \u0275fac=function(n){return new(n||r)};static \u0275prov=k({token:r,factory:r.\u0275fac})}return r})(),ee=class{};function te(){}function ze(r){r.then(te,te)}function Xe(r,t){return t(r)}function Je(r,t,e){return(n,s)=>he(e,()=>t(n,o=>r(o,s)))}var se=new M(""),_e=new M(""),De=new M("",{providedIn:"root",factory:()=>!0});var W=(()=>{class r extends F{backend;injector;chain=null;pendingTasks=g(ye);contributeToStability=g(De);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(se),...this.injector.get(_e,[])]));this.chain=n.reduceRight((s,o)=>Je(s,o,this.injector),Xe)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,s=>this.backend.handle(s)).pipe(ce(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||r)(D(j),D(ue))};static \u0275prov=k({token:r,factory:r.\u0275fac})}return r})();var $e=/^\)\]\}',?\n/,Ve=RegExp(`^${ne}:`,"m");function Ge(r){return"responseURL"in r&&r.responseURL?r.responseURL:Ve.test(r.getAllResponseHeaders())?r.getResponseHeader(ne):null}var re=(()=>{class r{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new N(-2800,!1);let n=this.xhrFactory;return Z(null).pipe(de(()=>new Q(o=>{let i=n.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((c,d)=>i.setRequestHeader(c,d.join(","))),e.headers.has(G)||i.setRequestHeader(G,Me),!e.headers.has(S)){let c=e.detectContentTypeHeader();c!==null&&i.setRequestHeader(S,c)}if(e.timeout&&(i.timeout=e.timeout),e.responseType){let c=e.responseType.toLowerCase();i.responseType=c!=="json"?c:"text"}let l=e.serializeBody(),a=null,f=()=>{if(a!==null)return a;let c=i.statusText||"OK",d=new R(i.getAllResponseHeaders()),p=Ge(i)||e.url;return a=new B({headers:d,status:i.status,statusText:c,url:p}),a},y=()=>{let{headers:c,status:d,statusText:p,url:T}=f(),u=null;d!==Se&&(u=typeof i.response>"u"?i.responseText:i.response),d===0&&(d=u?Oe:0);let E=d>=200&&d<300;if(e.responseType==="json"&&typeof u=="string"){let w=u;u=u.replace($e,"");try{u=u!==""?JSON.parse(u):null}catch(_){u=w,E&&(E=!1,u={error:_,text:u})}}E?(o.next(new U({body:u,headers:c,status:d,statusText:p,url:T||void 0})),o.complete()):o.error(new v({error:u,headers:c,status:d,statusText:p,url:T||void 0}))},m=c=>{let{url:d}=f(),p=new v({error:c,status:i.status||0,statusText:i.statusText||"Unknown Error",url:d||void 0});o.error(p)},O=m;e.timeout&&(O=c=>{let{url:d}=f(),p=new v({error:new DOMException("Request timed out","TimeoutError"),status:i.status||0,statusText:i.statusText||"Request timeout",url:d||void 0});o.error(p)});let A=!1,h=c=>{A||(o.next(f()),A=!0);let d={type:P.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(d.total=c.total),e.responseType==="text"&&i.responseText&&(d.partialText=i.responseText),o.next(d)},I=c=>{let d={type:P.UploadProgress,loaded:c.loaded};c.lengthComputable&&(d.total=c.total),o.next(d)};return i.addEventListener("load",y),i.addEventListener("error",m),i.addEventListener("timeout",O),i.addEventListener("abort",m),e.reportProgress&&(i.addEventListener("progress",h),l!==null&&i.upload&&i.upload.addEventListener("progress",I)),i.send(l),o.next({type:P.Sent}),()=>{i.removeEventListener("error",m),i.removeEventListener("abort",m),i.removeEventListener("load",y),i.removeEventListener("timeout",O),e.reportProgress&&(i.removeEventListener("progress",h),l!==null&&i.upload&&i.upload.removeEventListener("progress",I)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(n){return new(n||r)(D(Te))};static \u0275prov=k({token:r,factory:r.\u0275fac})}return r})(),ke=new M(""),We="XSRF-TOKEN",Ke=new M("",{providedIn:"root",factory:()=>We}),Ye="X-XSRF-TOKEN",qe=new M("",{providedIn:"root",factory:()=>Ye}),z=class{},Qe=(()=>{class r{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ge(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||r)(D(fe),D(Ke))};static \u0275prov=k({token:r,factory:r.\u0275fac})}return r})();function Ze(r,t){let e=r.url.toLowerCase();if(!g(ke)||r.method==="GET"||r.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return t(r);let n=g(z).getToken(),s=g(qe);return n!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,n)})),t(r)}var K=(function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r})(K||{});function xe(r,t){return{\u0275kind:r,\u0275providers:t}}function He(...r){let t=[Ae,re,W,{provide:F,useExisting:W},{provide:j,useFactory:()=>g(Ie,{optional:!0})??g(re)},{provide:se,useValue:Ze,multi:!0},{provide:ke,useValue:!0},{provide:z,useClass:Qe}];for(let e of r)t.push(...e.\u0275providers);return le(t)}function et(r){return xe(K.Interceptors,r.map(t=>({provide:se,useValue:t,multi:!0})))}function tt(){return xe(K.Fetch,[J,{provide:Ie,useExisting:J},{provide:j,useExisting:J}])}export{R as a,U as b,v as c,Ae as d,He as e,et as f,tt as g};
@@ -1 +1 @@
1
- import{d as M}from"./chunk-IEGVSOLM.js";import"./chunk-TC7HZO7D.js";import{B as P}from"./chunk-TGNUULAU.js";import{e as E}from"./chunk-F3EXRAZJ.js";import"./chunk-VCLWADQK.js";import"./chunk-ATGKEH5N.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import{Db as i,Eb as a,Gb as r,Hb as l,Ib as c,Sa as C,Vb as d,_ as u,ac as h,bc as m,cb as g,nc as T,xb as f,yb as O}from"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";var L=["*",[["","footer",""]]],v=["*","[footer]"],s=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=g({type:t,selectors:[["app-custom-card"]],ngContentSelectors:v,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(e,o){e&1&&(h(L),r(0,"div",0),c(1,"img",1),r(2,"header")(3,"div",2),c(4,"img",3),T(5," Duplicati "),l()(),r(6,"main"),m(7),r(8,"footer"),m(9,1),l()()(),c(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-2)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:30rem;width:100%;position:relative;z-index:100;background-color:var(--base-1);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-3);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:30rem;transform:translateY(-17.8125rem);left:0;right:0;z-index:-2;background:radial-gradient(rgb(from var(--primary-1) r g b/1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:30rem;width:100%;transform:translateY(-17.8125rem);left:0;right:0;z-index:-1;-webkit-mask-image:radial-gradient(#000,#0000 60%);mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:.75rem;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:.625rem}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:1.75rem;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-9);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function N(t,n){t&1&&(i(0,"h3"),d(1,0),a())}function y(t,n){t&1&&(i(0,"h3"),d(1,1),a(),i(2,"button",3),d(3,2),a())}var p=class t{#e=u(M);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=g({type:t,selectors:[["app-logout"]],decls:3,vars:1,consts:()=>{let n;n=$localize`Logging out...`;let e;e=$localize`You have successfully logged out your being redirected to login page.`;let o;return o=$localize`Go to login page`,[n,e,o,["shButton","","routerLink","/",1,"raised","primary"]]},template:function(e,o){e&1&&(i(0,"app-custom-card"),f(1,N,2,0,"h3")(2,y,4,0),a()),e&2&&(C(),O(o.isLoggingOut()?1:2))},dependencies:[s,P,E],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{p as default};
1
+ import{d as M}from"./chunk-4IAJY6E3.js";import"./chunk-P7OKMMNZ.js";import{B as P}from"./chunk-HJSCQF6V.js";import{e as E}from"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import{$b as h,Cb as i,Db as a,Fb as r,Gb as l,Hb as c,Ra as C,Ub as d,_ as u,ac as m,bb as g,mc as T,wb as f,xb as O}from"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";var L=["*",[["","footer",""]]],v=["*","[footer]"],s=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=g({type:t,selectors:[["app-custom-card"]],ngContentSelectors:v,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(e,o){e&1&&(h(L),r(0,"div",0),c(1,"img",1),r(2,"header")(3,"div",2),c(4,"img",3),T(5," Duplicati "),l()(),r(6,"main"),m(7),r(8,"footer"),m(9,1),l()()(),c(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-2)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:30rem;width:100%;position:relative;z-index:100;background-color:var(--base-1);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-3);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:30rem;transform:translateY(-17.8125rem);left:0;right:0;z-index:-2;background:radial-gradient(rgb(from var(--primary-1) r g b/1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:30rem;width:100%;transform:translateY(-17.8125rem);left:0;right:0;z-index:-1;-webkit-mask-image:radial-gradient(#000,#0000 60%);mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:.75rem;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:.625rem}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:1.75rem;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-9);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function N(t,n){t&1&&(i(0,"h3"),d(1,0),a())}function y(t,n){t&1&&(i(0,"h3"),d(1,1),a(),i(2,"button",3),d(3,2),a())}var p=class t{#e=u(M);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=g({type:t,selectors:[["app-logout"]],decls:3,vars:1,consts:()=>{let n;n=$localize`Logging out...`;let e;e=$localize`You have successfully logged out your being redirected to login page.`;let o;return o=$localize`Go to login page`,[n,e,o,["shButton","","routerLink","/",1,"raised","primary"]]},template:function(e,o){e&1&&(i(0,"app-custom-card"),f(1,N,2,0,"h3")(2,y,4,0),a()),e&2&&(C(),O(o.isLoggingOut()?1:2))},dependencies:[s,P,E],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{p as default};