@duplicati/ngclient 0.0.109 → 0.0.111

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 (145) hide show
  1. package/{chunk-ZELQR5BO.js → chunk-25ZZFR2F.js} +1 -1
  2. package/{chunk-WDQFR5II.js → chunk-2KUDLHPP.js} +1 -1
  3. package/{chunk-LM5DGJFV.js → chunk-2MCIQSK2.js} +1 -1
  4. package/chunk-2ZVLF3KW.js +1 -0
  5. package/chunk-3KSBRC3X.js +1 -0
  6. package/{chunk-WMLBEUM4.js → chunk-3M3M4YXP.js} +1 -1
  7. package/{chunk-TPWSQH24.js → chunk-3W6M5IZL.js} +1 -1
  8. package/chunk-45RYC5NZ.js +1 -0
  9. package/{chunk-WAKYTFC3.js → chunk-4AECHE4W.js} +2 -2
  10. package/{chunk-UN5O2OYP.js → chunk-4RGZG24K.js} +1 -1
  11. package/{chunk-V7ZDXIWA.js → chunk-65OCE2TY.js} +1 -1
  12. package/chunk-6HTVIY6O.js +2 -0
  13. package/{chunk-Q2QM66LC.js → chunk-6OKAWH4X.js} +1 -1
  14. package/{chunk-5HITPR54.js → chunk-7S5SYCMV.js} +1 -1
  15. package/chunk-AADIFDNE.js +1 -0
  16. package/{chunk-FYBLCHWM.js → chunk-BOBAN442.js} +1 -1
  17. package/{chunk-6X3MMKNW.js → chunk-CHRKPWRG.js} +1 -1
  18. package/{chunk-3PO7PPQB.js → chunk-CR4OKZPA.js} +1 -1
  19. package/chunk-D3I33UIQ.js +1 -0
  20. package/{chunk-R3TFFIA7.js → chunk-DDM4R5FN.js} +1 -1
  21. package/chunk-EF7JWRDC.js +1 -0
  22. package/{chunk-OUUFQQAS.js → chunk-GDHVQU56.js} +1 -1
  23. package/{chunk-EUWILPHJ.js → chunk-HLHNKLWF.js} +1 -1
  24. package/{chunk-LPR55M6G.js → chunk-HPGYPP74.js} +1 -1
  25. package/{chunk-JY47MUG3.js → chunk-IIB7YCLW.js} +1 -1
  26. package/{chunk-MFKBZ7PS.js → chunk-JD54W4UA.js} +1 -1
  27. package/{chunk-7FENUDO7.js → chunk-JIPJYOH5.js} +1 -1
  28. package/{chunk-DE4NDI5F.js → chunk-JV6DGJII.js} +1 -1
  29. package/{chunk-TSSJKZOC.js → chunk-KEAH5JAH.js} +1 -1
  30. package/{chunk-NHU6FF6A.js → chunk-LQ5ORNDI.js} +1 -1
  31. package/{chunk-LSGMRQZJ.js → chunk-LZUCVLMF.js} +1 -1
  32. package/{chunk-PWB5YI3X.js → chunk-MHHVE6AV.js} +1 -1
  33. package/chunk-MHO7INGX.js +1 -0
  34. package/{chunk-DMRBLBVC.js → chunk-NP4VUDPK.js} +1 -1
  35. package/{chunk-6XDIRXYR.js → chunk-P5SS3OV3.js} +1 -1
  36. package/{chunk-ONF7O7HR.js → chunk-PFE36372.js} +1 -1
  37. package/{chunk-F4ZCW572.js → chunk-PN73DZ2H.js} +1 -1
  38. package/chunk-QJILVQSS.js +1 -0
  39. package/{chunk-C226INOP.js → chunk-QKA2VJWD.js} +1 -1
  40. package/{chunk-45WMLGXH.js → chunk-QP4QZQOW.js} +1 -1
  41. package/{chunk-GJK7DA4F.js → chunk-RQSBT3TK.js} +1 -1
  42. package/{chunk-G432CCD5.js → chunk-SEA4YEEO.js} +1 -1
  43. package/{chunk-VPCHNJ7X.js → chunk-SKJ6XSV3.js} +1 -1
  44. package/{chunk-5NOK4P5Z.js → chunk-T33TACR6.js} +1 -1
  45. package/{chunk-NOO722WB.js → chunk-TJS6O6KD.js} +1 -1
  46. package/chunk-ULHQZGHN.js +1 -0
  47. package/{chunk-IYFU5MHZ.js → chunk-UMP4YQXB.js} +1 -1
  48. package/{chunk-H4FB6PPA.js → chunk-URU2SLPX.js} +1 -1
  49. package/{chunk-UY4L2RBZ.js → chunk-VLIGMNJX.js} +1 -1
  50. package/chunk-W577IVOD.js +1 -0
  51. package/{chunk-7MCMWHKB.js → chunk-WEQQEKIH.js} +1 -1
  52. package/{chunk-HDLTGBAP.js → chunk-WQLN5T4T.js} +1 -1
  53. package/chunk-X4SAPDOB.js +1 -0
  54. package/{chunk-IDYYAKHE.js → chunk-X5YRWKCW.js} +1 -1
  55. package/{chunk-SVOGBC6V.js → chunk-XJAEXNPS.js} +1 -1
  56. package/{chunk-Q2N4WWEF.js → chunk-XTWVXTYP.js} +1 -1
  57. package/chunk-YD7PS7OS.js +1 -0
  58. package/chunk-YJNKW5ES.js +1 -0
  59. package/{chunk-25P4YYJP.js → chunk-YJSWEW6C.js} +1 -1
  60. package/{chunk-EHCHWANP.js → chunk-Z4MV4ZSL.js} +1 -1
  61. package/chunk-ZMDK6XIQ.js +1 -0
  62. package/index.html +28 -1
  63. package/locale/angular/cs.mjs +21 -0
  64. package/locale/angular/es.mjs +19 -0
  65. package/locale/angular/extra/cs.mjs +11 -0
  66. package/locale/angular/extra/es.mjs +11 -0
  67. package/locale/angular/extra/fi.mjs +11 -0
  68. package/locale/angular/extra/hu.mjs +11 -0
  69. package/locale/angular/extra/it.mjs +11 -0
  70. package/locale/angular/extra/ja.mjs +11 -0
  71. package/locale/angular/extra/nl.mjs +11 -0
  72. package/locale/angular/extra/pl.mjs +11 -0
  73. package/locale/angular/extra/pt.mjs +11 -0
  74. package/locale/angular/extra/ru.mjs +11 -0
  75. package/locale/angular/extra/sr.mjs +11 -0
  76. package/locale/angular/extra/sv.mjs +11 -0
  77. package/locale/angular/extra/zh-Hans.mjs +11 -0
  78. package/locale/angular/extra/zh-Hant.mjs +11 -0
  79. package/locale/angular/fi.mjs +17 -0
  80. package/locale/angular/hu.mjs +17 -0
  81. package/locale/angular/it.mjs +19 -0
  82. package/locale/angular/ja.mjs +15 -0
  83. package/locale/angular/nl.mjs +17 -0
  84. package/locale/angular/pl.mjs +21 -0
  85. package/locale/angular/pt.mjs +19 -0
  86. package/locale/angular/ru.mjs +21 -0
  87. package/locale/angular/sr.mjs +19 -0
  88. package/locale/angular/sv.mjs +17 -0
  89. package/locale/angular/zh-Hans.mjs +15 -0
  90. package/locale/angular/zh-Hant.mjs +15 -0
  91. package/locale/dayjs/cs.js +120 -0
  92. package/locale/dayjs/es.js +39 -0
  93. package/locale/dayjs/fi.js +88 -0
  94. package/locale/dayjs/hu.js +61 -0
  95. package/locale/dayjs/it.js +39 -0
  96. package/locale/dayjs/ja.js +45 -0
  97. package/locale/dayjs/nl.js +40 -0
  98. package/locale/dayjs/pl.js +87 -0
  99. package/locale/dayjs/pt.js +40 -0
  100. package/locale/dayjs/ru.js +99 -0
  101. package/locale/dayjs/sr.js +74 -0
  102. package/locale/dayjs/sv.js +44 -0
  103. package/locale/dayjs/zh-cn.js +67 -0
  104. package/locale/dayjs/zh-tw.js +65 -0
  105. package/locale/messages.cs.json +117 -0
  106. package/locale/messages.da.json +158 -0
  107. package/locale/messages.de.json +276 -0
  108. package/locale/messages.en_GB.json +116 -0
  109. package/locale/messages.es.json +118 -0
  110. package/locale/messages.fi.json +101 -0
  111. package/locale/messages.fr.json +118 -0
  112. package/locale/messages.hu.json +108 -0
  113. package/locale/messages.it.json +448 -0
  114. package/locale/messages.ja_JP.json +121 -0
  115. package/locale/messages.nl_NL.json +428 -0
  116. package/locale/messages.pl.json +118 -0
  117. package/locale/messages.pt.json +117 -0
  118. package/locale/messages.pt_BR.json +118 -0
  119. package/locale/messages.ru.json +118 -0
  120. package/locale/messages.sr_RS.json +117 -0
  121. package/locale/messages.sv_SE.json +116 -0
  122. package/locale/messages.zh_CN.json +133 -0
  123. package/locale/messages.zh_TW.json +118 -0
  124. package/{main-CFTZX7VV.js → main-S6Q4T2BU.js} +1 -1
  125. package/package.json +1 -1
  126. package/chunk-3HD2PHD2.js +0 -1
  127. package/chunk-4ITKST6C.js +0 -1
  128. package/chunk-6HM2RSLN.js +0 -1
  129. package/chunk-77AQOQJP.js +0 -1
  130. package/chunk-BZD5QKVL.js +0 -1
  131. package/chunk-IIPWP6NO.js +0 -1
  132. package/chunk-IXM6PMZU.js +0 -2
  133. package/chunk-JZCXYOBH.js +0 -1
  134. package/chunk-KFU7HSAL.js +0 -1
  135. package/chunk-PFYOWXZZ.js +0 -1
  136. package/chunk-V2ZMQ7WX.js +0 -1
  137. package/chunk-W33OFVQJ.js +0 -1
  138. package/chunk-WB3ZZ4SC.js +0 -1
  139. package/chunk-ZMDO52TL.js +0 -1
  140. package/locale/angular/en.mjs +0 -17
  141. package/locale/angular/extra/en.mjs +0 -11
  142. package/locale/messages.da-DK.json +0 -208
  143. package/locale/messages.de-DE.json +0 -11
  144. package/locale/messages.fr-FR.json +0 -11
  145. package/locale/messages.json +0 -425
@@ -0,0 +1,133 @@
1
+ {
2
+ "translations": {
3
+ "6439365426343089851": "常规",
4
+ "7136888919962092730": "更新日志",
5
+ "4637334248246674819": "第三方库",
6
+ "3113844851981371723": "系统信息",
7
+ "5769292297914455214": "已禁用",
8
+ "5037437391296624618": "信息",
9
+ "1519954996184640001": "错误",
10
+ "2229445179824655238": "备份ID",
11
+ "4491027740832706620": "添加新备份",
12
+ "2807800733729323332": "是",
13
+ "2159130950882492111": "取消",
14
+ "1795589471045938719": "命令",
15
+ "2980688108457243770": "高级选项",
16
+ "4163272119298020373": "过滤条件",
17
+ "3465942650835858981": "维护",
18
+ "8998179362936748717": "确定",
19
+ "1431416938026210429": "密码",
20
+ "6451269955734195952": "密码不匹配",
21
+ "441775147584593226": "常规备份设置",
22
+ "8255877266497322342": "加密方式",
23
+ "1755805413339441073": "密码",
24
+ "8497528947328199741": "时间",
25
+ "6520003959216971027": "上次成功备份于:",
26
+ "471538465380942039": "源数据:",
27
+ "8432562579042371182": "选项",
28
+ "3200173535986954809": "备份保留策略",
29
+ "3776830777548420252": "不会清理任何备份,备份大小将持续增长",
30
+ "3689631695541161772": "如果有更新的备份存在,早于此日期的备份将被删除。",
31
+ "8773725608546407303": "一旦备份版本数超过此值,最旧的备份将被清理",
32
+ "4510773130259577012": "永久保留",
33
+ "1384560836372891469": "删除早于条件的备份",
34
+ "6500067590143892883": "保留指定版本数",
35
+ "6938176597345457364": "智能备份保留策略",
36
+ "7060817842742577303": "自定义备份保留策略",
37
+ "5433782699501161466": "计划",
38
+ "8881518135181911268": "如果错过了时间,任务将尽快运行。",
39
+ "2711956035454008868": "下一次运行时间:",
40
+ "7819349273171317543": "重复运行每",
41
+ "1529146527618369905": "允许的日期",
42
+ "8874012390997067175": "秒",
43
+ "5531237363767747080": "分钟",
44
+ "8070396816726827304": "小时",
45
+ "840951359074313455": "天",
46
+ "8365450656480095075": "周",
47
+ "4845030128243887325": "月",
48
+ "953022389548488004": "年",
49
+ "224973670174608722": "源数据",
50
+ "3063621350011509567": "文件夹路径",
51
+ "8911059720204770105": "路径",
52
+ "910026778839409110": "添加过滤条件",
53
+ "5668077948386857930": "排除",
54
+ "4870633869236300156": "隐藏文件",
55
+ "7399702730809197610": "系统文件",
56
+ "7611381050409609850": "临时文件",
57
+ "3453340265869731679": "如果暂停传输,传输可能会超时,导致重试或失败。",
58
+ "585737897051631942": "直到手动恢复运行",
59
+ "8863666082945976589": "暂无计划任务",
60
+ "1567982897123322443": "准备开始备份…",
61
+ "8214337426799363575": "正在校验后端数据…",
62
+ "4199427160533437744": "正在校验远程数据…",
63
+ "7906632680781914236": "正在完成上次备份…",
64
+ "6632183211912513067": "处理文件以备份...",
65
+ "5930924632252050612": "正在完成备份…",
66
+ "469362342108564344": "等待上传完成…",
67
+ "3957416203952666175": "正在删除不需要的文件…",
68
+ "2914057788500102169": "正在压实远程数据…",
69
+ "8329877172200819621": "正在上传校验文件…",
70
+ "1689970167461012814": "备份完成!",
71
+ "4929330102433599172": "准备开始恢复…",
72
+ "7136385501987317127": "正在重新构建本地数据库…",
73
+ "8395530981032383031": "正在构建文件还原列表…",
74
+ "2300553532172758168": "正在创建目标文件夹…",
75
+ "6085389350572437561": "正在扫描存在的文件…",
76
+ "6692014841944258162": "正在扫描本地文件块…",
77
+ "9213645030480705854": "正在使用本地块修补文件…",
78
+ "8209151205688415570": "正在下载文件…",
79
+ "5251292119969540580": "正在校验恢复后的文件…",
80
+ "2249706554320900919": "恢复完成!",
81
+ "3051019516047055620": "正在重建数据库…",
82
+ "3901592998452125585": "正在清理数据库…",
83
+ "2469623866016523077": "正在修复数据库…",
84
+ "7676413581281241117": "正在校验文件…",
85
+ "1792719478390206754": "正在创建问题报告…",
86
+ "7817971754641920282": "正在列出远程文件…",
87
+ "4819792355580745069": "正在删除远程文件…",
88
+ "7542251069711001275": "正在列出需要清除的远程文件…",
89
+ "4384662616307771545": "正在清除文件...",
90
+ "7909426528923946904": "清除文件完成!",
91
+ "7318459243631185928": "错误!",
92
+ "7796744452913661932": "运行中的任务",
93
+ "7410432243549869948": "时间",
94
+ "9021887951960049161": "确认删除",
95
+ "4489627619329080013": "删除备份",
96
+ "2955903656284773523": "修复",
97
+ "3099741642167775297": "下载",
98
+ "1536087519743707362": "忽略",
99
+ "3269824161944492761": "此备份缺失,是否已经被删除?",
100
+ "2976874496010813887": "这是已经不存在的临时备份,因此没有日志数据",
101
+ "6490648157632610005": "恢复选项",
102
+ "2601306210394871786": "您想怎样处理已存在的文件?",
103
+ "7314814725704332646": "权限",
104
+ "325172806395484991": "选择文件",
105
+ "527691487030937649": "您想从哪里恢复呢?",
106
+ "8024650600986084314": "注册远程控制",
107
+ "3008478973302833120": "设备已注册,请打开此链接将其添加到您的账户:",
108
+ "1112525418959962254": "取消注册",
109
+ "5871595298708374790": "禁用远程控制",
110
+ "3369466914717174051": "允许远程控制",
111
+ "5706293114971448703": "删除远程控安装",
112
+ "1731345447408843513": "您确定要删除远程控注册吗?",
113
+ "4930506384627295710": "设置",
114
+ "6126600149860970237": "远程访问控制",
115
+ "649940786018804088": "更改服务器密码短语",
116
+ "4546151690452416671": "允许远程访问 (需要重启)",
117
+ "918395176653023621": "保持托盘图标自动登录",
118
+ "2919975008248285707": "更新分支",
119
+ "3905239345805877394": "Stable",
120
+ "5175951092925375805": "官方发布",
121
+ "8289732336438690874": "Beta",
122
+ "9121268781026454492": "面向开发者的特定构建,不适用于重要数据",
123
+ "401382195676192367": "Canary",
124
+ "7438596179184557624": "面向开发者的单个构建,不适用于重要数据",
125
+ "5320543668849212821": "开机或休眠后暂停",
126
+ "7350523198476594805": "使用情况统计",
127
+ "4531976006614415538": "使用情况统计、警告、错误和崩溃",
128
+ "4007307614127429452": "警告、错误和崩溃",
129
+ "7003237362536687306": "错误和崩溃",
130
+ "7931989065782446584": "仅崩溃",
131
+ "6546722977616384568": "无 / 禁用"
132
+ }
133
+ }
@@ -0,0 +1,118 @@
1
+ {
2
+ "translations": {
3
+ "6439365426343089851": "一般",
4
+ "7136888919962092730": "更新記錄",
5
+ "4637334248246674819": "函式庫",
6
+ "3113844851981371723": "系統資訊",
7
+ "5769292297914455214": "取消",
8
+ "5037437391296624618": "資訊",
9
+ "1519954996184640001": "錯誤",
10
+ "4491027740832706620": "新增備份",
11
+ "2807800733729323332": "是",
12
+ "2159130950882492111": "取消",
13
+ "2980688108457243770": "進階選項",
14
+ "4163272119298020373": "篩選",
15
+ "3465942650835858981": "維護",
16
+ "8998179362936748717": "確定",
17
+ "1431416938026210429": "密碼",
18
+ "6451269955734195952": "密碼不符",
19
+ "441775147584593226": "一般備份設定",
20
+ "8255877266497322342": "加密方式",
21
+ "1755805413339441073": "密碼",
22
+ "8497528947328199741": "時間",
23
+ "6520003959216971027": "上一次成功備份:",
24
+ "471538465380942039": "來源:",
25
+ "8432562579042371182": "選項",
26
+ "3200173535986954809": "保留備份數目",
27
+ "3776830777548420252": "什麼都不刪除。備份大小將隨著每次異動而持續增長。",
28
+ "3689631695541161772": "如果有更新的備份存在,則刪除比這個日期早的所有備份。",
29
+ "8773725608546407303": "當備份數量超過指定數目,最舊的備份將被刪除。",
30
+ "4510773130259577012": "保留所有備份",
31
+ "1384560836372891469": "刪除指定條件以前的備份",
32
+ "6500067590143892883": "保留指定份數的備份",
33
+ "6938176597345457364": "智慧管理備份數",
34
+ "7060817842742577303": "自訂備份保留規則",
35
+ "5433782699501161466": "排程",
36
+ "8881518135181911268": "如果已錯過時間,將儘可能快速進行這個工作。",
37
+ "2711956035454008868": "下一次",
38
+ "7819349273171317543": "重複執行於每",
39
+ "1529146527618369905": "允許日",
40
+ "8874012390997067175": "秒",
41
+ "5531237363767747080": "分鐘",
42
+ "8070396816726827304": "小時",
43
+ "840951359074313455": "日",
44
+ "8365450656480095075": "週",
45
+ "4845030128243887325": "月",
46
+ "953022389548488004": "年",
47
+ "224973670174608722": "來源資料",
48
+ "3063621350011509567": "資料夾路徑",
49
+ "8911059720204770105": "路徑",
50
+ "910026778839409110": "加入篩選條件",
51
+ "5668077948386857930": "例外",
52
+ "4870633869236300156": "隱藏檔案",
53
+ "7399702730809197610": "系統檔案",
54
+ "7611381050409609850": "暫存檔案",
55
+ "585737897051631942": "手動繼續",
56
+ "8863666082945976589": "沒有排程工作",
57
+ "1567982897123322443": "正在開始備份 ...",
58
+ "8214337426799363575": "正在驗證後端資料 ...",
59
+ "4199427160533437744": "正在驗證遠端資料 ...",
60
+ "7906632680781914236": "正在完成上一次備份 ...",
61
+ "5930924632252050612": "正在完成備份 ...",
62
+ "469362342108564344": "等待上傳完成中 ...",
63
+ "3957416203952666175": "正在刪除不需要的檔案 ...",
64
+ "2914057788500102169": "正在緊密壓縮遠端資料 ...",
65
+ "8329877172200819621": "正在上傳驗證檔案 ...",
66
+ "1689970167461012814": "備份完成。",
67
+ "4929330102433599172": "正在開始還原...",
68
+ "7136385501987317127": "正在重建本機資料庫 ...",
69
+ "8395530981032383031": "正在建立還原的檔案清單 ...",
70
+ "2300553532172758168": "正在建立目標資料夾 ...",
71
+ "6085389350572437561": "正在掃描已存在檔案 ...",
72
+ "6692014841944258162": "正在掃描本機區塊 ...",
73
+ "9213645030480705854": "使用本機區塊修復檔案中 ...",
74
+ "8209151205688415570": "正在下載檔案 ...",
75
+ "5251292119969540580": "正在驗證已還原檔案 ...",
76
+ "2249706554320900919": "還原完成!",
77
+ "3051019516047055620": "正在重建資料庫 ...",
78
+ "3901592998452125585": "正在清理資料庫 ...",
79
+ "2469623866016523077": "正在修復資料庫 ...",
80
+ "7676413581281241117": "正在驗證檔案 ...",
81
+ "1792719478390206754": "正在建立問題報告 ...",
82
+ "7817971754641920282": "正在列出遠端檔案 ...",
83
+ "4819792355580745069": "正在刪除遠端檔案 ...",
84
+ "7542251069711001275": "正在列出要清除的遠端檔案...",
85
+ "4384662616307771545": "正在清理檔案 ...",
86
+ "7909426528923946904": "檔案清除完成!",
87
+ "7318459243631185928": "錯誤!",
88
+ "7796744452913661932": "正在執行工作",
89
+ "7410432243549869948": "時間",
90
+ "9021887951960049161": "確認刪除",
91
+ "4489627619329080013": "刪除備份",
92
+ "2955903656284773523": "修復",
93
+ "3099741642167775297": "下載",
94
+ "1536087519743707362": "忽略",
95
+ "3269824161944492761": "這個備份已遺失,是否要刪除?",
96
+ "2976874496010813887": "這是已經不存在的臨時備份,因此已無記錄資料。",
97
+ "6490648157632610005": "還原選項",
98
+ "2601306210394871786": "您如何處理既有檔案?",
99
+ "7314814725704332646": "權限",
100
+ "325172806395484991": "選擇檔案",
101
+ "527691487030937649": "您要從那裡還原?",
102
+ "4930506384627295710": "設定",
103
+ "4546151690452416671": "允許遠端存取(需要重新啟動)",
104
+ "918395176653023621": "關閉從系統列 (Tray) 圖示自動登入",
105
+ "2919975008248285707": "更新頻道",
106
+ "8289732336438690874": "測試版 (Beta)",
107
+ "9121268781026454492": "僅針對開發人員的特定組建版本,請不要使用在重要資料上。",
108
+ "401382195676192367": "Canary",
109
+ "7438596179184557624": "僅針對開發人員的個別組建版本,請不要使用在重要資料上。",
110
+ "5320543668849212821": "當啟動或休眠後暫停",
111
+ "7350523198476594805": "使用統計",
112
+ "4531976006614415538": "使用統計、警告、錯誤與當機",
113
+ "4007307614127429452": "警告、錯誤與當機",
114
+ "7003237362536687306": "錯誤與當機",
115
+ "7931989065782446584": "只有當機",
116
+ "6546722977616384568": "無 / 取消"
117
+ }
118
+ }
@@ -1 +1 @@
1
- import{b as ye,c as be}from"./chunk-IXM6PMZU.js";import{a as L}from"./chunk-H4FB6PPA.js";import{a as ue}from"./chunk-45WMLGXH.js";import{a as ge}from"./chunk-TPWSQH24.js";import{a as I}from"./chunk-6HM2RSLN.js";import"./chunk-Q2QM66LC.js";import"./chunk-OUUFQQAS.js";import{a as x}from"./chunk-RHW5QVAY.js";import{a as le}from"./chunk-O2YN63YI.js";import{a as v,b as de,c as E}from"./chunk-6X3MMKNW.js";import{a as C}from"./chunk-I3C2AEHI.js";import{c as se,d as ie,g as ae,h as pe}from"./chunk-QVIZK4WW.js";import{a as re}from"./chunk-WMTA6PZM.js";import{c as me}from"./chunk-WX7L7V6J.js";import{a as Z,b as ee,d as te,e as oe,f as ne,k as ce}from"./chunk-WAKYTFC3.js";import{a as fe}from"./chunk-DE4NDI5F.js";import{j as Q,l as Y}from"./chunk-CKPICCFH.js";import{b as he}from"./chunk-PFYOWXZZ.js";import{A as N,B as F,Bc as X,F as w,L as G,N as T,P as J,S as k,V as B,Y as s,ab as K,f as W,i as j,ja as $,n as D,o as U,r as R,ua as d,uc as z,vc as q,yb as _}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var M=class t{#o=s(C);#s=s(v);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=K({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(o,n){o&1&&_(0,"router-outlet")},dependencies:[se],encapsulation:2})};var ve={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var h=new B("ENVIRONMENT");var A=class t{#o=s(ce);isLoaded=d(!1);webmodules=d(null);preload(e=!1){let o=this.#o.getApiV1Webmodules().pipe(J(n=>this.webmodules.set(n)),w(()=>this.isLoaded.set(!0)));if(e)return o;o.subscribe()}static \u0275fac=function(o){return new(o||t)};static \u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ie=()=>{let t=s(E);return t.token()?!0:t.checkProxyAuthed().pipe(T(e=>e?D(!0):t.refreshToken().pipe(R(()=>!0))))},Me=()=>{let t=s(v),e=s(I),o=s($),n=t.relayIsEnabled()?"longpoll":"websocket",i=[o.get(L).preload(!0),o.get(L).preloadFilterGroups(!0),o.get(A).preload(!0)];return t.configLoaded===null?N(i).pipe(R(()=>n)):t.configLoaded?.pipe(T(()=>N(i)))},Se=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-W33OFVQJ.js")},{path:"logout",loadComponent:()=>import("./chunk-TSSJKZOC.js")},{path:"",canActivate:[Ie],children:[{path:"",canActivate:[Me],loadComponent:()=>import("./chunk-ZMDO52TL.js"),children:[{path:"",loadComponent:()=>import("./chunk-7FENUDO7.js")},{path:"add-backup",loadComponent:()=>import("./chunk-WDQFR5II.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-WMLBEUM4.js")},{path:"backup/import",loadComponent:()=>import("./chunk-3PO7PPQB.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-LSGMRQZJ.js"),loadChildren:()=>import("./chunk-3HD2PHD2.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-LSGMRQZJ.js"),loadChildren:()=>import("./chunk-3HD2PHD2.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-GJK7DA4F.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-SVOGBC6V.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-DMRBLBVC.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-C226INOP.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-HDLTGBAP.js")},{path:"from-config",loadComponent:()=>import("./chunk-5NOK4P5Z.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-7MCMWHKB.js"),loadChildren:()=>import("./chunk-IIPWP6NO.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-7MCMWHKB.js"),loadChildren:()=>import("./chunk-IIPWP6NO.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-7MCMWHKB.js"),loadChildren:()=>import("./chunk-IIPWP6NO.js")},{path:"settings",loadComponent:()=>import("./chunk-ZELQR5BO.js")},{path:"about",loadComponent:()=>import("./chunk-EUWILPHJ.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-WB3ZZ4SC.js")},{path:"changelog",loadComponent:()=>import("./chunk-EHCHWANP.js")},{path:"libraries",loadComponent:()=>import("./chunk-ONF7O7HR.js")},{path:"system-info",loadComponent:()=>import("./chunk-Q2N4WWEF.js")},{path:"logs",loadChildren:()=>import("./chunk-BZD5QKVL.js")},{path:"crashlogs",loadComponent:()=>import("./chunk-LM5DGJFV.js")}]}]}]}]}];var P=null,Re=(t,e)=>{let o=s(E),n=s(ie),i=s(C),l=s(h),r=i.getItem("locale"),u=s(me),a=ye(r),p=t.url==="/api/v1/auth/login",m=t.url==="/api/v1/auth/refresh",S=t.url==="/api/v1/progressstate",g=t.url==="/api/v1/remoteoperation/test",y=t.url.startsWith("/api/v2/"),b=o.token(),H=t,V=t.headers.has("custom-proxy-check")||b===de;if(b&&t.url.startsWith(l.baseUrl)&&!V){let c=t.headers.set("Authorization",`Bearer ${b}`);r&&r!=="en-US"&&(c=c.set("X-Ui-Language",a)),H=t.clone({headers:c})}return e(H).pipe(R(c=>{if(c.type===4&&c.status===200&&y){let f=c.body;if(f?.Success===!1)throw{status:200,message:f?.Error??"Unknown error",error:{Error:f?.Error??"Unknown error"},body:f}}return c}),F(c=>{let f=c.error?.Error||`Error Code: ${c.status}, Message: ${c.message}`;return!V&&(S&&c.status===404||g||u.error(f),m&&c.status===401&&(o.logout(),n.navigate(["/logout"])),!p&&!m&&c.status===401)?(P??=o.refreshToken().pipe(G()),P.pipe(T(()=>e(t.clone({headers:t.headers.set("Authorization",`Bearer ${o.token()}`)}))),w(()=>P=null))):U(()=>({error:c,message:f}))}))};var Ae="1.0.0",Te=`portal-proxy-client-${x()}`,Oe=1,O=class t{#o=1e3;#s=s(h);#t=d("disconnected");#l=d(this.#o);#i=d(!1);#n=d(!1);#a=d(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=X(()=>{let e=this.#i(),o=this.#l(),n=this.#a();if(!n||!e||!o||o<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(n)},o)});utf8Atob(e){let o=Uint8Array.from(atob(e),i=>i.charCodeAt(0)),n=this.#m.decode(o);return n?JSON.parse(n):null}connectToMachineServer(e,o){let n=o?.reconnect??!1,i=this.wsState();(i==="disconnected"||i==="error"||n)&&(this.#e?.close(),this.#e=null),!this.#e&&(this.#e=new WebSocket(this.#s.machineServerUrl),this.#t.set("connecting"),this.#e.onopen=()=>{this.#t.set("connect"),this.#n.set(!0),this.#i.set(!1),this.#a.set(null)},this.#e.onclose=()=>{this.#t.set("disconnected"),this.#n.set(!1),this.#a.set(e),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=l=>{let r=JSON.parse(l.data);if(this.wsState()==="connect"){if(r.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${r.type}'`);return}let a={token:e,publicKey:"",clientVersion:Ae,protocolVersion:Oe},p=this.createResponse(r,"authportal",a);this.#t.set("welcome"),this.#e?.send(p)}else if(this.wsState()==="welcome"){if(r.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${r.type}'`);return}var u=JSON.parse(r.payload??"");if(u.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let a=this.#p.pop();a&&this.#r[a.messageId]&&this.activateCommand(a)}}else if(this.wsState()==="authenticated"){if(r.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${r.type}'`);return}let a=this.#r[r.messageId];if(a){if(r.errorMessage){a.reject(r.errorMessage);return}else{let p=JSON.parse(r.payload??"");p.body=p?.body==null?null:this.utf8Atob(p.body),a.resolve(p)}delete this.#r[r.messageId],window.clearTimeout(a.timer)}}})}disconnectFromMachineServer(e=null){e&&console.error(e),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(e,o,n){let i={from:Te,to:e.from,type:o,messageId:e.messageId,payload:JSON.stringify(n)};return JSON.stringify(i)}sendCommand(e,o,n,i,l,r,u=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(e),new Promise((a,p)=>{let m=x(),g={from:Te,to:o,type:"command",messageId:m,payload:JSON.stringify({method:n,path:i,body:l,headers:r})},y={resolve:a,reject:p,timer:window.setTimeout(()=>{let b=this.#r[m];b&&(delete this.#r[m],b.reject("Timeout"))},u)};this.#r[m]=y,this.#n()?this.activateCommand(g):this.#p.push(g)})}activateCommand(e){this.#e?.send(JSON.stringify(e))}static \u0275fac=function(o){return new(o||t)};static \u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"})};function Ne(t){if(typeof t!="string")return null;let o=new TextEncoder().encode(t);return window.btoa(String.fromCharCode(...o))}function we(t,e,o){let n=t.relayconfigState.config();if(n===null)return o(e);let i=Ne(e.body),l={};e.headers.keys().forEach(p=>{l[p]=e.headers.get(p)??""});let r=e.headers.get("timeout"),u=r!==null?parseInt(r):t.defaultTimeout;e.url.startsWith("/api/v1/serverstate")&&e.url.includes("longpoll=true")&&(u=1e3*99);let a=t.relayWebsocket.sendCommand(n.accessToken,n.clientId,e.method,e.url,i,l,u);return new W(p=>{a.then(m=>{let S=new Z;l!=null&&Object.keys(l).forEach(y=>{S.set(y,l[y])});let g=new ee({body:m.body,status:m.code,statusText:"OK",headers:S});p.next(g),p.complete()})})}var ke=(t,e)=>{let o={relayconfigState:s(v),defaultTimeout:s(h).defaultTimeout,relayWebsocket:s(O)},n=o.relayconfigState.config();if(o.relayconfigState.configLoaded!==null&&n===null){let i=new j;return o.relayconfigState.configLoaded.subscribe(l=>{l&&we(o,t,e).subscribe(i)}),i}return we(o,t,e)};var Ee={providers:[z(),ae(Se,pe()),te(ne(),oe([ke,Re])),C,{provide:h,useValue:ve},{provide:q,useValue:be()},ue,I,he,Y,le,Q,fe,ge]};re(M,Ee);
1
+ import{b as ye,c as be}from"./chunk-6HTVIY6O.js";import{a as L}from"./chunk-URU2SLPX.js";import{a as ue}from"./chunk-QP4QZQOW.js";import{a as ge}from"./chunk-3W6M5IZL.js";import{a as I}from"./chunk-2ZVLF3KW.js";import"./chunk-6OKAWH4X.js";import"./chunk-GDHVQU56.js";import{a as x}from"./chunk-RHW5QVAY.js";import{a as le}from"./chunk-O2YN63YI.js";import{a as v,b as de,c as E}from"./chunk-CHRKPWRG.js";import{a as C}from"./chunk-I3C2AEHI.js";import{c as se,d as ie,g as ae,h as pe}from"./chunk-QVIZK4WW.js";import{a as re}from"./chunk-WMTA6PZM.js";import{c as me}from"./chunk-WX7L7V6J.js";import{a as Z,b as ee,d as te,e as oe,f as ne,i as ce}from"./chunk-4AECHE4W.js";import{a as fe}from"./chunk-JV6DGJII.js";import{j as Q,l as Y}from"./chunk-CKPICCFH.js";import{b as he}from"./chunk-EF7JWRDC.js";import{A as N,B as F,Bc as X,F as w,L as G,N as T,P as J,S as k,V as B,Y as s,ab as K,f as W,i as j,ja as $,n as D,o as U,r as R,ua as d,uc as z,vc as q,yb as _}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var M=class t{#o=s(C);#s=s(v);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=K({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(o,n){o&1&&_(0,"router-outlet")},dependencies:[se],encapsulation:2})};var ve={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var h=new B("ENVIRONMENT");var A=class t{#o=s(ce);isLoaded=d(!1);webmodules=d(null);preload(e=!1){let o=this.#o.getApiV1Webmodules().pipe(J(n=>this.webmodules.set(n)),w(()=>this.isLoaded.set(!0)));if(e)return o;o.subscribe()}static \u0275fac=function(o){return new(o||t)};static \u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ie=()=>{let t=s(E);return t.token()?!0:t.checkProxyAuthed().pipe(T(e=>e?D(!0):t.refreshToken().pipe(R(()=>!0))))},Me=()=>{let t=s(v),e=s(I),o=s($),n=t.relayIsEnabled()?"longpoll":"websocket",i=[o.get(L).preload(!0),o.get(L).preloadFilterGroups(!0),o.get(A).preload(!0)];return t.configLoaded===null?N(i).pipe(R(()=>n)):t.configLoaded?.pipe(T(()=>N(i)))},Se=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-YJNKW5ES.js")},{path:"logout",loadComponent:()=>import("./chunk-KEAH5JAH.js")},{path:"",canActivate:[Ie],children:[{path:"",canActivate:[Me],loadComponent:()=>import("./chunk-ZMDK6XIQ.js"),children:[{path:"",loadComponent:()=>import("./chunk-JIPJYOH5.js")},{path:"add-backup",loadComponent:()=>import("./chunk-2KUDLHPP.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-3M3M4YXP.js")},{path:"backup/import",loadComponent:()=>import("./chunk-CR4OKZPA.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-LZUCVLMF.js"),loadChildren:()=>import("./chunk-YD7PS7OS.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-LZUCVLMF.js"),loadChildren:()=>import("./chunk-YD7PS7OS.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-RQSBT3TK.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-XJAEXNPS.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-NP4VUDPK.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-QKA2VJWD.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-WQLN5T4T.js")},{path:"from-config",loadComponent:()=>import("./chunk-T33TACR6.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-WEQQEKIH.js"),loadChildren:()=>import("./chunk-W577IVOD.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-WEQQEKIH.js"),loadChildren:()=>import("./chunk-W577IVOD.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-WEQQEKIH.js"),loadChildren:()=>import("./chunk-W577IVOD.js")},{path:"settings",loadComponent:()=>import("./chunk-25ZZFR2F.js")},{path:"about",loadComponent:()=>import("./chunk-HLHNKLWF.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-45RYC5NZ.js")},{path:"changelog",loadComponent:()=>import("./chunk-Z4MV4ZSL.js")},{path:"libraries",loadComponent:()=>import("./chunk-PFE36372.js")},{path:"system-info",loadComponent:()=>import("./chunk-XTWVXTYP.js")},{path:"logs",loadChildren:()=>import("./chunk-X4SAPDOB.js")},{path:"crashlogs",loadComponent:()=>import("./chunk-2MCIQSK2.js")}]}]}]}]}];var P=null,Re=(t,e)=>{let o=s(E),n=s(ie),i=s(C),l=s(h),r=i.getItem("locale"),u=s(me),a=ye(r),p=t.url==="/api/v1/auth/login",m=t.url==="/api/v1/auth/refresh",S=t.url==="/api/v1/progressstate",g=t.url==="/api/v1/remoteoperation/test",y=t.url.startsWith("/api/v2/"),b=o.token(),H=t,V=t.headers.has("custom-proxy-check")||b===de;if(b&&t.url.startsWith(l.baseUrl)&&!V){let c=t.headers.set("Authorization",`Bearer ${b}`);r&&r!=="en-US"&&(c=c.set("X-Ui-Language",a)),H=t.clone({headers:c})}return e(H).pipe(R(c=>{if(c.type===4&&c.status===200&&y){let f=c.body;if(f?.Success===!1)throw{status:200,message:f?.Error??"Unknown error",error:{Error:f?.Error??"Unknown error"},body:f}}return c}),F(c=>{let f=c.error?.Error||`Error Code: ${c.status}, Message: ${c.message}`;return!V&&(S&&c.status===404||g||u.error(f),m&&c.status===401&&(o.logout(),n.navigate(["/logout"])),!p&&!m&&c.status===401)?(P??=o.refreshToken().pipe(G()),P.pipe(T(()=>e(t.clone({headers:t.headers.set("Authorization",`Bearer ${o.token()}`)}))),w(()=>P=null))):U(()=>({error:c,message:f}))}))};var Ae="1.0.0",Te=`portal-proxy-client-${x()}`,Oe=1,O=class t{#o=1e3;#s=s(h);#t=d("disconnected");#l=d(this.#o);#i=d(!1);#n=d(!1);#a=d(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=X(()=>{let e=this.#i(),o=this.#l(),n=this.#a();if(!n||!e||!o||o<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(n)},o)});utf8Atob(e){let o=Uint8Array.from(atob(e),i=>i.charCodeAt(0)),n=this.#m.decode(o);return n?JSON.parse(n):null}connectToMachineServer(e,o){let n=o?.reconnect??!1,i=this.wsState();(i==="disconnected"||i==="error"||n)&&(this.#e?.close(),this.#e=null),!this.#e&&(this.#e=new WebSocket(this.#s.machineServerUrl),this.#t.set("connecting"),this.#e.onopen=()=>{this.#t.set("connect"),this.#n.set(!0),this.#i.set(!1),this.#a.set(null)},this.#e.onclose=()=>{this.#t.set("disconnected"),this.#n.set(!1),this.#a.set(e),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=l=>{let r=JSON.parse(l.data);if(this.wsState()==="connect"){if(r.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${r.type}'`);return}let a={token:e,publicKey:"",clientVersion:Ae,protocolVersion:Oe},p=this.createResponse(r,"authportal",a);this.#t.set("welcome"),this.#e?.send(p)}else if(this.wsState()==="welcome"){if(r.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${r.type}'`);return}var u=JSON.parse(r.payload??"");if(u.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let a=this.#p.pop();a&&this.#r[a.messageId]&&this.activateCommand(a)}}else if(this.wsState()==="authenticated"){if(r.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${r.type}'`);return}let a=this.#r[r.messageId];if(a){if(r.errorMessage){a.reject(r.errorMessage);return}else{let p=JSON.parse(r.payload??"");p.body=p?.body==null?null:this.utf8Atob(p.body),a.resolve(p)}delete this.#r[r.messageId],window.clearTimeout(a.timer)}}})}disconnectFromMachineServer(e=null){e&&console.error(e),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(e,o,n){let i={from:Te,to:e.from,type:o,messageId:e.messageId,payload:JSON.stringify(n)};return JSON.stringify(i)}sendCommand(e,o,n,i,l,r,u=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(e),new Promise((a,p)=>{let m=x(),g={from:Te,to:o,type:"command",messageId:m,payload:JSON.stringify({method:n,path:i,body:l,headers:r})},y={resolve:a,reject:p,timer:window.setTimeout(()=>{let b=this.#r[m];b&&(delete this.#r[m],b.reject("Timeout"))},u)};this.#r[m]=y,this.#n()?this.activateCommand(g):this.#p.push(g)})}activateCommand(e){this.#e?.send(JSON.stringify(e))}static \u0275fac=function(o){return new(o||t)};static \u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"})};function Ne(t){if(typeof t!="string")return null;let o=new TextEncoder().encode(t);return window.btoa(String.fromCharCode(...o))}function we(t,e,o){let n=t.relayconfigState.config();if(n===null)return o(e);let i=Ne(e.body),l={};e.headers.keys().forEach(p=>{l[p]=e.headers.get(p)??""});let r=e.headers.get("timeout"),u=r!==null?parseInt(r):t.defaultTimeout;e.url.startsWith("/api/v1/serverstate")&&e.url.includes("longpoll=true")&&(u=1e3*99);let a=t.relayWebsocket.sendCommand(n.accessToken,n.clientId,e.method,e.url,i,l,u);return new W(p=>{a.then(m=>{let S=new Z;l!=null&&Object.keys(l).forEach(y=>{S.set(y,l[y])});let g=new ee({body:m.body,status:m.code,statusText:"OK",headers:S});p.next(g),p.complete()})})}var ke=(t,e)=>{let o={relayconfigState:s(v),defaultTimeout:s(h).defaultTimeout,relayWebsocket:s(O)},n=o.relayconfigState.config();if(o.relayconfigState.configLoaded!==null&&n===null){let i=new j;return o.relayconfigState.configLoaded.subscribe(l=>{l&&we(o,t,e).subscribe(i)}),i}return we(o,t,e)};var Ee={providers:[z(),ae(Se,pe()),te(ne(),oe([ke,Re])),C,{provide:h,useValue:ve},{provide:q,useValue:be()},ue,I,he,Y,le,Q,fe,ge]};re(M,Ee);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.109",
2
+ "version": "0.0.111",
3
3
  "name": "@duplicati/ngclient",
4
4
  "license": "MIT",
5
5
  "contributors": [
package/chunk-3HD2PHD2.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-7CGTOI24.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-F4ZCW572.js")},{path:"destination",loadComponent:()=>import("./chunk-LPR55M6G.js")},{path:"source-data",loadComponent:()=>import("./chunk-6XDIRXYR.js")},{path:"schedule",loadComponent:()=>import("./chunk-PWB5YI3X.js")},{path:"options",loadComponent:()=>import("./chunk-NHU6FF6A.js")}];export{o as default};
package/chunk-4ITKST6C.js DELETED
@@ -1 +0,0 @@
1
- import{c as a,d as b}from"./chunk-IDYYAKHE.js";import"./chunk-25P4YYJP.js";import"./chunk-VN7JM6M3.js";import"./chunk-HTNYQE2B.js";import"./chunk-H4FB6PPA.js";import"./chunk-7L42EO7J.js";import"./chunk-T2OUHRUV.js";import"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import"./chunk-WX7L7V6J.js";import"./chunk-WAKYTFC3.js";import"./chunk-CKPICCFH.js";import"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";export{a as createEncryptionForm,b as default};
package/chunk-6HM2RSLN.js DELETED
@@ -1 +0,0 @@
1
- import{a as B}from"./chunk-Q2QM66LC.js";import{a as z}from"./chunk-OUUFQQAS.js";import{a as m}from"./chunk-O2YN63YI.js";import{h as S,i as h}from"./chunk-WAKYTFC3.js";import{Ac as P,Bc as n,F as f,N as k,S as d,Y as o,n as g,r as u,ua as s}from"./chunk-W2F756OF.js";import{a as l,b as a}from"./chunk-7CGTOI24.js";var $={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 r{#t=o(m);#r=o(h);#s=o(S);#i=o(z);#e=o(B);#o=s(!1);#l=s(null);statusData=this.#l.asReadonly();lastState=null;serverState=P(()=>{let e=this.#e.serverState();return e?(e.ProposedSchedule=e.ProposedSchedule?.map(t=>a(l({},t),{backup:t.Item1?this.#i.getBackupById(t.Item1):null})),this.lastState=e,e):this.lastState});serverStateEffect=n(()=>{this.#e.serverState()?.ActiveTask||this.#i.getBackups(!0)});isFetching=this.#o.asReadonly();connectionStatus=this.#e.connectionStatus;pollingInterval;#p=n(()=>{let e=this.#e.serverState();e?.ActiveTask&&this.pollingInterval===void 0?this.startPollingProgress():e?.ActiveTask||this.stopPollingProgress()});setConnectionMethod(e){this.#e.setConnectionMethod(e)}startPollingProgress(){this.pollingInterval=setInterval(()=>{this.#a()},1e3)}stopPollingProgress(){clearInterval(this.pollingInterval)}fetchProgressState(){this.#a()}#a(){this.#o.set(!0),this.#r.getApiV1Progressstate().pipe(k(e=>{let t=e.TaskID??null;return t===null?g(e):this.#s.getApiV1TaskByTaskid({taskid:t}).pipe(u(i=>a(l({},e),{task:i??null})))}),f(()=>this.#o.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,i=e.BackupID??null;t!==null&&i!==null&&(e.backup=this.#i.getBackupById(i)),console.log("res",e),this.#l.set(a(l({},e),{progress:this.#n(e),statusText:this.#c(e),actionText:e.backup?.Backup?.Name??$localize`Running task`})),e.task?.Status==="Completed"&&this.stopPollingProgress()},error:e=>{e.status===404&&this.stopPollingProgress()}})}#n(e){let t=-1;if(e.task&&e)if(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles")if(e.StillCounting)t=0;else{let i=e.CurrentFilecomplete?0:e.CurrentFileoffset,c=e.TotalFileCount-e.ProcessedFileCount,p=e.TotalFileSize-e.ProcessedFileSize-i;t=(e.ProcessedFileSize+i)/e.TotalFileSize,e.ProcessedFileCount===0?t=0:t>=.9&&(t=.9)}else e.Phase==="Backup_Finalize"||e.Phase==="Backup_WaitForUpload"?t=.9:e.Phase==="Backup_Delete"||e.Phase==="Backup_Compact"?t=.95:e.Phase==="Backup_VerificationUpload"||e.Phase==="Backup_PostBackupVerify"?t=.98:e.Phase==="Backup_Complete"||e.Phase==="Backup_WaitForUpload"?t=1:e.OverallProgress>0&&(t=e.OverallProgress);return t}#c(e){let t="Running \u2026";if(e.task&&e&&(t=e.Phase?$[e.Phase]:"Running \u2026",e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles"))if(e.StillCounting)t=`Counting (${e.TotalFileCount} files found, ${this.#t.transform(e.TotalFileSize)})`;else{let i=e.CurrentFilecomplete?0:e.CurrentFileoffset,c=e.TotalFileCount-e.ProcessedFileCount,p=e.TotalFileSize-e.ProcessedFileSize-i,R=e.BackendSpeed<0?"":` at ${this.#t.transform(e.BackendSpeed)}/s`;t=`${e.Phase==="Restore_DownloadingRemoteFiles"?"Restoring: ":""}${c} files (${this.#t.transform(p)}) to go ${R}`}return t}static \u0275fac=function(t){return new(t||r)};static \u0275prov=d({token:r,factory:r.\u0275fac,providedIn:"root"})};export{_ as a};
package/chunk-77AQOQJP.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-R3TFFIA7.js";import"./chunk-UN5O2OYP.js";import"./chunk-WX7L7V6J.js";import"./chunk-WAKYTFC3.js";import"./chunk-CKPICCFH.js";import"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";export{a as default};
package/chunk-BZD5QKVL.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-7CGTOI24.js";var o=[{path:"",loadComponent:()=>import("./chunk-FYBLCHWM.js"),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import("./chunk-IYFU5MHZ.js")},{path:"live",loadComponent:()=>import("./chunk-77AQOQJP.js")}]}],t=o;export{t as default};
package/chunk-IIPWP6NO.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-7CGTOI24.js";var o=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-JY47MUG3.js")},{path:"encryption",loadComponent:()=>import("./chunk-4ITKST6C.js")},{path:"select-files",loadComponent:()=>import("./chunk-V2ZMQ7WX.js")},{path:"options",loadComponent:()=>import("./chunk-5HITPR54.js")},{path:"progress",loadComponent:()=>import("./chunk-V7ZDXIWA.js")}],t=o;export{t as default};
package/chunk-IXM6PMZU.js DELETED
@@ -1,2 +0,0 @@
1
- import{g as T}from"./chunk-CKPICCFH.js";var h=":",M="|",N="@@",R="\u241F",A;function L(t){A??=new TextEncoder;let e=A.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=U(n,e.length,0),s=U(n,e.length,102072);return r==0&&(s==0||s==1)&&(r=r^319790063,s=s^-1801410264),BigInt.asUintN(32,BigInt(r))<<BigInt(32)|BigInt.asUintN(32,BigInt(s))}function j(t,e=""){let n=L(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=L(e)),BigInt.asUintN(63,n).toString()}function U(t,e,n){let r=2654435769,s=2654435769,i=0,u=e-12;for(;i<=u;i+=12){r+=t.getUint32(i,!0),s+=t.getUint32(i+4,!0),n+=t.getUint32(i+8,!0);let o=B(r,s,n);r=o[0],s=o[1],n=o[2]}let a=e-i;return n+=e,a>=4?(r+=t.getUint32(i,!0),i+=4,a>=8?(s+=t.getUint32(i,!0),i+=4,a>=9&&(n+=t.getUint8(i++)<<8),a>=10&&(n+=t.getUint8(i++)<<16),a===11&&(n+=t.getUint8(i++)<<24)):(a>=5&&(s+=t.getUint8(i++)),a>=6&&(s+=t.getUint8(i++)<<8),a===7&&(s+=t.getUint8(i++)<<16))):(a>=1&&(r+=t.getUint8(i++)),a>=2&&(r+=t.getUint8(i++)<<8),a===3&&(r+=t.getUint8(i++)<<16)),B(r,s,n)[2]}function B(t,e,n){return t-=e,t-=n,t^=n>>>13,e-=n,e-=t,e^=t<<8,n-=t,n-=e,n^=e>>>13,t-=e,t-=n,t^=n>>>12,e-=n,e-=t,e^=t<<16,n-=t,n-=e,n^=e>>>5,t-=e,t-=n,t^=n>>>3,e-=n,e-=t,e^=t<<10,n-=t,n-=e,n^=e>>>15,[t,e,n]}function v(t,e,n,r,s=[]){let i={},u={},a={},o=k(t[0],t.raw[0]),c=[o.text],m=[],d=o.text;for(let l=1;l<t.length;l++){let{messagePart:x,placeholderName:f=b(l),associatedMessageId:I}=w(t[l],t.raw[l]);d+=`{$${f}}${x}`,e!==void 0&&(i[f]=e[l-1],u[f]=s[l-1]),m.push(f),I!==void 0&&(a[f]=I),c.push(x)}let $=o.customId||j(d,o.meaning||""),D=o.legacyIds?o.legacyIds.filter(l=>l!==$):[];return{id:$,legacyIds:D,substitutions:i,substitutionLocations:u,text:d,customId:o.customId,meaning:o.meaning||"",description:o.description||"",messageParts:c,messagePartLocations:r,placeholderNames:m,associatedMessageIds:a,location:n}}function k(t,e){let{text:n,block:r}=E(t,e);if(r===void 0)return{text:n};{let[s,...i]=r.split(R),[u,a]=s.split(N,2),[o,c]=u.split(M,2);return c===void 0&&(c=o,o=void 0),c===""&&(c=void 0),{text:n,meaning:o,description:c,customId:a,legacyIds:i}}}function w(t,e){let{text:n,block:r}=E(t,e);if(r===void 0)return{messagePart:n};{let[s,i]=r.split(N);return{messagePart:n,placeholderName:s,associatedMessageId:i}}}function E(t,e){if(e.charAt(0)!==h)return{text:t};{let n=z(t,e);return{block:t.substring(1,n),text:t.substring(n+1)}}}function b(t){return t===1?"PH":`PH_${t-1}`}function z(t,e){for(let n=1,r=1;n<t.length;n++,r++)if(e[r]==="\\")r++;else if(t[n]===h)return n;throw new Error(`Unterminated $localize metadata block in "${e}".`)}var g=class extends Error{parsedMessage;type="MissingTranslationError";constructor(e){super(`No translation found for ${O(e)}.`),this.parsedMessage=e}};function C(t,e,n){let r=v(e,n),s=t[r.id];if(r.legacyIds!==void 0)for(let i=0;i<r.legacyIds.length&&s===void 0;i++)s=t[r.legacyIds[i]];if(s===void 0)throw new g(r);return[s.messageParts,s.placeholderNames.map(i=>{if(r.substitutions.hasOwnProperty(i))return r.substitutions[i];throw new Error(`There is a placeholder name mismatch with the translation provided for the message ${O(r)}.
2
- The translation contains a placeholder with name ${i}, which does not exist in the message.`)})]}function G(t){let e=t.split(/{\$([^}]*)}/),n=[e[0]],r=[];for(let i=1;i<e.length-1;i+=2)r.push(e[i]),n.push(`${e[i+1]}`);let s=n.map(i=>i.charAt(0)===h?"\\"+i:i);return{text:t,messageParts:P(n,s),placeholderNames:r}}function P(t,e){return Object.defineProperty(t,"raw",{value:e}),t}function O(t){let e=t.meaning&&` - "${t.meaning}"`,n=t.legacyIds&&t.legacyIds.length>0?` [${t.legacyIds.map(r=>`"${r}"`).join(", ")}]`:"";return`"${t.id}"${n} ("${t.text}"${e})`}function S(t){$localize.translate||($localize.translate=_),$localize.TRANSLATIONS||($localize.TRANSLATIONS={}),Object.keys(t).forEach(e=>{$localize.TRANSLATIONS[e]=G(t[e])})}function _(t,e){try{return C($localize.TRANSLATIONS,t,e)}catch(n){return console.warn(n.message),[t,e]}}var p="en-US",F=["en-US","en-GB","de-DE","fr-FR","da-DK"],y={"en-US":"en","en-GB":"en-GB","da-DK":"da","de-DE":"de","fr-FR":"fr"},W=[{value:"en-US",label:"English (en-US)"},{value:"en-GB",label:"English (en-GB)"},{value:"fr-FR",label:"French"},{value:"de-DE",label:"German"},{value:"da-DK",label:"Danish"}];function Y(t){return t?y[t]??"en":"en"}function q(){let t=localStorage.getItem("v1:duplicati:locale")||p,e=F.find(s=>s===t)??p,n=y[e];if(e===p)return e;import(`/locale/angular/${n}.mjs`).then(s=>T(s.default));let r=e==="en-GB"?"":"."+e;return fetch(`/locale/messages${r}.json`).then(s=>s.json()).then(s=>{S(s.translations),$localize.locale=e}),e}export{W as a,Y as b,q as c};
package/chunk-JZCXYOBH.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-UY4L2RBZ.js";import"./chunk-6DH6O5YE.js";import"./chunk-25P4YYJP.js";import"./chunk-H4FB6PPA.js";import"./chunk-T2OUHRUV.js";import"./chunk-WX7L7V6J.js";import"./chunk-WAKYTFC3.js";import"./chunk-CKPICCFH.js";import"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";export{a as OptionsListComponent};
package/chunk-KFU7HSAL.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-DE4NDI5F.js";import"./chunk-CKPICCFH.js";import"./chunk-PFYOWXZZ.js";import"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";export{a as RelativeTimePipe};
package/chunk-PFYOWXZZ.js DELETED
@@ -1 +0,0 @@
1
- import{V as it}from"./chunk-W2F756OF.js";var ot=60,ut=ot*60,dt=ut*24,At=dt*7,C=1e3,w=ot*C,k=ut*C,b=dt*C,Z=At*C,W="millisecond",I="second",A="minute",E="hour",p="day",U="week",S="month",X="quarter",y="year",x="date",ct="YYYY-MM-DDTHH:mm:ssZ",rt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var nt=function(t,r,e){var n=String(t);return!n||n.length>=r?t:""+Array(r+1-n.length).join(e)+t},Et=function(t){var r=-t.utcOffset(),e=Math.abs(r),n=Math.floor(e/60),s=e%60;return(r<=0?"+":"-")+nt(n,2,"0")+":"+nt(s,2,"0")},Nt=function i(t,r){if(t.date()<r.date())return-i(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),n=t.clone().add(e,S),s=r-n<0,a=t.clone().add(e+(s?-1:1),S);return+(-(e+(r-n)/(s?n-a:a-n))||0)},Tt=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},Ht=function(t){var r={M:S,y,w:U,d:p,D:x,h:E,m:A,s:I,ms:W,Q:X};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},wt=function(t){return t===void 0},lt={s:nt,z:Et,m:Nt,a:Tt,p:Ht,u:wt};var P="en",F={};F[P]=ht;var mt="$isDayjsObject",st=function(t){return t instanceof Q||!!(t&&t[mt])},K=function i(t,r,e){var n;if(!t)return P;if(typeof t=="string"){var s=t.toLowerCase();F[s]&&(n=s),r&&(F[s]=r,n=s);var a=t.split("-");if(!n&&a.length>1)return i(a[0])}else{var o=t.name;F[o]=t,n=o}return!e&&n&&(P=n),n||!e&&P},m=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new Q(e)},xt=function(t,r){return m(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},f=lt;f.l=K;f.i=st;f.w=xt;var kt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(f.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var n=r.match(ft);if(n){var s=n[2]-1||0,a=(n[7]||"0").substring(0,3);return e?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(r)},Q=function(){function i(r){this.$L=K(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[mt]=!0}var t=i.prototype;return t.parse=function(e){this.$d=kt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return f},t.isValid=function(){return this.$d.toString()!==rt},t.isSame=function(e,n){var s=m(e);return this.startOf(n)<=s&&s<=this.endOf(n)},t.isAfter=function(e,n){return m(e)<this.startOf(n)},t.isBefore=function(e,n){return this.endOf(n)<m(e)},t.$g=function(e,n,s){return f.u(e)?this[n]:this.set(s,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,n){var s=this,a=f.u(n)?!0:n,o=f.p(e),u=function(O,M){var l=f.w(s.$u?Date.UTC(s.$y,M,O):new Date(s.$y,M,O),s);return a?l:l.endOf(p)},d=function(O,M){var l=[0,0,0,0],D=[23,59,59,999];return f.w(s.toDate()[O].apply(s.toDate("s"),(a?l:D).slice(M)),s)},c=this.$W,_=this.$M,h=this.$D,v="set"+(this.$u?"UTC":"");switch(o){case y:return a?u(1,0):u(31,11);case S:return a?u(1,_):u(0,_+1);case U:{var $=this.$locale().weekStart||0,T=(c<$?c+7:c)-$;return u(a?h-T:h+(6-T),_)}case p:case x:return d(v+"Hours",0);case E:return d(v+"Minutes",1);case A:return d(v+"Seconds",2);case I:return d(v+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,n){var s,a=f.p(e),o="set"+(this.$u?"UTC":""),u=(s={},s[p]=o+"Date",s[x]=o+"Date",s[S]=o+"Month",s[y]=o+"FullYear",s[E]=o+"Hours",s[A]=o+"Minutes",s[I]=o+"Seconds",s[W]=o+"Milliseconds",s)[a],d=a===p?this.$D+(n-this.$W):n;if(a===S||a===y){var c=this.clone().set(x,1);c.$d[u](d),c.init(),this.$d=c.set(x,Math.min(this.$D,c.daysInMonth())).$d}else u&&this.$d[u](d);return this.init(),this},t.set=function(e,n){return this.clone().$set(e,n)},t.get=function(e){return this[f.p(e)]()},t.add=function(e,n){var s=this,a;e=Number(e);var o=f.p(n),u=function(h){var v=m(s);return f.w(v.date(v.date()+Math.round(h*e)),s)};if(o===S)return this.set(S,this.$M+e);if(o===y)return this.set(y,this.$y+e);if(o===p)return u(1);if(o===U)return u(7);var d=(a={},a[A]=w,a[E]=k,a[I]=C,a)[o]||1,c=this.$d.getTime()+e*d;return f.w(c,this)},t.subtract=function(e,n){return this.add(e*-1,n)},t.format=function(e){var n=this,s=this.$locale();if(!this.isValid())return s.invalidDate||rt;var a=e||ct,o=f.z(this),u=this.$H,d=this.$m,c=this.$M,_=s.weekdays,h=s.months,v=s.meridiem,$=function(l,D,H,R){return l&&(l[D]||l(n,a))||H[D].slice(0,R)},T=function(l){return f.s(u%12||12,l,"0")},Y=v||function(M,l,D){var H=M<12?"AM":"PM";return D?H.toLowerCase():H},O=function(l){switch(l){case"YY":return String(n.$y).slice(-2);case"YYYY":return f.s(n.$y,4,"0");case"M":return c+1;case"MM":return f.s(c+1,2,"0");case"MMM":return $(s.monthsShort,c,h,3);case"MMMM":return $(h,c);case"D":return n.$D;case"DD":return f.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return $(s.weekdaysMin,n.$W,_,2);case"ddd":return $(s.weekdaysShort,n.$W,_,3);case"dddd":return _[n.$W];case"H":return String(u);case"HH":return f.s(u,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return Y(u,d,!0);case"A":return Y(u,d,!1);case"m":return String(d);case"mm":return f.s(d,2,"0");case"s":return String(n.$s);case"ss":return f.s(n.$s,2,"0");case"SSS":return f.s(n.$ms,3,"0");case"Z":return o;default:break}return null};return a.replace(B,function(M,l){return l||O(M)||o.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,n,s){var a=this,o=f.p(n),u=m(e),d=(u.utcOffset()-this.utcOffset())*w,c=this-u,_=function(){return f.m(a,u)},h;switch(o){case y:h=_()/12;break;case S:h=_();break;case X:h=_()/3;break;case U:h=(c-d)/Z;break;case p:h=(c-d)/b;break;case E:h=c/k;break;case A:h=c/w;break;case I:h=c/C;break;default:h=c;break}return s?h:f.a(h)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return F[this.$L]},t.locale=function(e,n){if(!e)return this.$L;var s=this.clone(),a=K(e,n,!0);return a&&(s.$L=a),s},t.clone=function(){return f.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},i}(),_t=Q.prototype;m.prototype=_t;[["$ms",W],["$s",I],["$m",A],["$H",E],["$W",p],["$M",S],["$y",y],["$D",x]].forEach(function(i){_t[i[1]]=function(t){return this.$g(t,i[0],i[1])}});m.extend=function(i,t){return i.$i||(i(t,Q,m),i.$i=!0),m};m.locale=K;m.isDayjs=st;m.unix=function(i){return m(i*1e3)};m.en=F[P];m.Ls=F;m.p={};var g=m;var tt=b*365,at=tt/12,bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,z={years:tt,months:at,days:b,hours:k,minutes:w,seconds:C,milliseconds:1,weeks:Z},q=function(t){return t instanceof $t},vt,N,V=function(t,r,e){return new $t(t,e,r.$l)},G=function(t){return N.p(t)+"s"},St=function(t){return t<0},j=function(t){return St(t)?Math.ceil(t):Math.floor(t)},Ft=function(t){return Math.abs(t)},J=function(t,r){return t?St(t)?{negative:!0,format:""+Ft(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},$t=function(){function i(r,e,n){var s=this;if(this.$d={},this.$l=n,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return V(r*z[G(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(d){s.$d[G(d)]=r[d]}),this.calMilliseconds(),this;if(typeof r=="string"){var a=r.match(bt);if(a){var o=a.slice(2),u=o.map(function(d){return d!=null?Number(d):0});return this.$d.years=u[0],this.$d.months=u[1],this.$d.weeks=u[2],this.$d.days=u[3],this.$d.hours=u[4],this.$d.minutes=u[5],this.$d.seconds=u[6],this.calMilliseconds(),this}}return this}var t=i.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(n,s){return n+(e.$d[s]||0)*z[s]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=j(e/tt),e%=tt,this.$d.months=j(e/at),e%=at,this.$d.days=j(e/b),e%=b,this.$d.hours=j(e/k),e%=k,this.$d.minutes=j(e/w),e%=w,this.$d.seconds=j(e/C),e%=C,this.$d.milliseconds=e},t.toISOString=function(){var e=J(this.$d.years,"Y"),n=J(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=this.$d.weeks*7);var a=J(s,"D"),o=J(this.$d.hours,"H"),u=J(this.$d.minutes,"M"),d=this.$d.seconds||0;this.$d.milliseconds&&(d+=this.$d.milliseconds/1e3,d=Math.round(d*1e3)/1e3);var c=J(d,"S"),_=e.negative||n.negative||a.negative||o.negative||u.negative||c.negative,h=o.format||u.format||c.format?"T":"",v=_?"-":"",$=v+"P"+e.format+n.format+a.format+h+o.format+u.format+c.format;return $==="P"||$==="-P"?"P0D":$},t.toJSON=function(){return this.toISOString()},t.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",s={Y:this.$d.years,YY:N.s(this.$d.years,2,"0"),YYYY:N.s(this.$d.years,4,"0"),M:this.$d.months,MM:N.s(this.$d.months,2,"0"),D:this.$d.days,DD:N.s(this.$d.days,2,"0"),H:this.$d.hours,HH:N.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:N.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:N.s(this.$d.seconds,2,"0"),SSS:N.s(this.$d.milliseconds,3,"0")};return n.replace(B,function(a,o){return o||String(s[a])})},t.as=function(e){return this.$ms/z[G(e)]},t.get=function(e){var n=this.$ms,s=G(e);return s==="milliseconds"?n%=1e3:s==="weeks"?n=j(n/z[s]):n=this.$d[s],n||0},t.add=function(e,n,s){var a;return n?a=e*z[G(n)]:q(e)?a=e.$ms:a=V(e,this).$ms,V(this.$ms+a*(s?-1:1),this)},t.subtract=function(e,n){return this.add(e,n,!0)},t.locale=function(e){var n=this.clone();return n.$l=e,n},t.clone=function(){return V(this.$ms,this)},t.humanize=function(e){return vt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},i}(),Mt=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Dt=function(i,t,r){vt=r,N=r().$utils(),r.duration=function(s,a){var o=r.locale();return V(s,{$l:o},a)},r.isDuration=q;var e=t.prototype.add,n=t.prototype.subtract;t.prototype.add=function(s,a){return q(s)?Mt(this,s,1):e.bind(this)(s,a)},t.prototype.subtract=function(s,a){return q(s)?Mt(this,s,-1):n.bind(this)(s,a)}};var pt=function(i,t,r){i=i||{};var e=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=n,e.fromToBase=function(o,u,d,c,_){for(var h=d.$locale().relativeTime||n,v=i.thresholds||[{l:"s",r:44,d:I},{l:"m",r:89},{l:"mm",r:44,d:A},{l:"h",r:89},{l:"hh",r:21,d:E},{l:"d",r:35},{l:"dd",r:25,d:p},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:y}],$=v.length,T,Y,O,M=0;M<$;M+=1){var l=v[M];l.d&&(T=c?r(o).diff(d,l.d,!0):d.diff(o,l.d,!0));var D=(i.rounding||Math.round)(Math.abs(T));if(O=T>0,D<=l.r||!l.r){D<=1&&M>0&&(l=v[M-1]);var H=h[l.l];_&&(D=_(""+D)),typeof H=="string"?Y=H.replace("%d",D):Y=H(D,u,l.l,O);break}}if(u)return Y;var R=O?h.future:h.past;return typeof R=="function"?R(Y):R.replace("%s",Y)};function s(o,u,d,c){return e.fromToBase(o,u,d,c)}e.to=function(o,u){return s(o,u,this,!0)},e.from=function(o,u){return s(o,u,this)};var a=function(u){return u.$u?r.utc():r()};e.toNow=function(o){return this.to(a(this),o)},e.fromNow=function(o){return this.from(a(this),o)}};var yt={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(t){return t+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};g.locale(yt,null,!0);var Ct=yt;var jt={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function L(i,t,r){var e=jt[r];return Array.isArray(e)&&(e=e[t?0:1]),e.replace("%d",i)}var gt={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(t){return t+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L}};g.locale(gt,null,!0);var Lt=gt;var Yt={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(t){var r=t===1?"er":"";return""+t+r}};g.locale(Yt,null,!0);var Ot=Yt;var It={da:Ct,de:Lt,fr:Ot};var Ut=new it("Dayjs"),fr={provide:Ut,useFactory:()=>{let t=(localStorage.getItem("v1:duplicati:locale")??"en-US").split("-")[0];return g.extend(pt),g.extend(Dt),g.locale(It[t]),g}};export{Ut as a,fr as b};
package/chunk-V2ZMQ7WX.js DELETED
@@ -1 +0,0 @@
1
- import{e as a,f as b}from"./chunk-IDYYAKHE.js";import"./chunk-25P4YYJP.js";import"./chunk-VN7JM6M3.js";import"./chunk-HTNYQE2B.js";import"./chunk-H4FB6PPA.js";import"./chunk-7L42EO7J.js";import"./chunk-T2OUHRUV.js";import"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import"./chunk-WX7L7V6J.js";import"./chunk-WAKYTFC3.js";import"./chunk-CKPICCFH.js";import"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";export{a as createRestoreSelectFilesForm,b as default};
package/chunk-W33OFVQJ.js DELETED
@@ -1 +0,0 @@
1
- import{c as k,d as v,e as P,f as O,i as x,n as E,q as F,r as G,t as T}from"./chunk-T2OUHRUV.js";import{c as M}from"./chunk-6X3MMKNW.js";import"./chunk-I3C2AEHI.js";import{d as y}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as S,b,g as L,l as N}from"./chunk-WX7L7V6J.js";import"./chunk-WAKYTFC3.js";import"./chunk-CKPICCFH.js";import{$b as n,F as c,Mb as w,Qa as m,Y as s,ab as g,fb as f,nb as h,pb as _,sb as C,ua as l,wb as t,xb as i,yb as p}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";function A(r,e){r&1&&(t(0,"spk-alert",1),n(1," Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. "),i())}var u=new G,d=class r{#e=s(y);#t=s(M);failedLogin=l(!1);isLoading=l(!1);loginForm=u.group({user:u.control(""),pass:u.control("",v.required)});submit(){let e=this.loginForm.value.pass;this.loginForm.value.user||e&&(this.isLoading.set(!0),this.#t.login(e).pipe(c(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||r)};static \u0275cmp=g({type:r,selectors:[["app-login"]],decls:15,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[[3,"submit","formGroup"],["type","warning"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(o,a){o&1&&(t(0,"form",0),w("submit",function(){return a.submit()}),f(1,A,2,0,"spk-alert",1),t(2,"div",2),p(3,"input",3),t(4,"spk-form-field")(5,"label",4),n(6," Password "),t(7,"a",5)(8,"spk-icon"),n(9,"question"),i()()(),p(10,"input",6),i(),t(11,"button",7),n(12," Login "),t(13,"spk-icon"),n(14,"arrow-right"),i()()()()),o&2&&(h("formGroup",a.loginForm),m(),C(a.failedLogin()?1:-1),m(10),_("loader",a.isLoading()))},dependencies:[T,x,k,P,O,E,F,N,S,L,b],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}spk-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{d as default};
package/chunk-WB3ZZ4SC.js DELETED
@@ -1 +0,0 @@
1
- import{a as y}from"./chunk-HTNYQE2B.js";import{a as D}from"./chunk-Q2QM66LC.js";import"./chunk-6X3MMKNW.js";import"./chunk-I3C2AEHI.js";import"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as w,g as L,p as R}from"./chunk-WX7L7V6J.js";import{h as F,j as U}from"./chunk-WAKYTFC3.js";import"./chunk-CKPICCFH.js";import{$b as s,Ac as O,Cb as S,F as m,Ib as E,Jb as x,Kb as M,Mb as k,Na as T,Nb as c,Qa as l,Y as _,ab as G,ac as b,da as u,ea as g,fb as d,nb as N,pb as P,r as A,sb as p,ua as C,wb as a,xb as o,yb as f}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";function V(n,i){n&1&&f(0,"spk-progress-bar",2)}function $(n,i){if(n&1&&(a(0,"a",6)(1,"spk-icon"),s(2,"download"),o(),s(3," Download update "),o()),n&2){let e,t=c(2);N("href",(e=t.serverState())==null?null:e.UpdateDownloadLink,T)}}function I(n,i){if(n&1){let e=S();a(0,"button",5),k("click",function(){u(e);let r=c();return g(r.checkForUpdates())}),s(1,"Check for updates"),o(),d(2,$,4,1,"a",6)}if(n&2){let e,t=c();P("loader",t.checkingForUpdates()),l(2),p((e=t.serverState())!=null&&e.UpdateDownloadLink?2:-1)}}function B(n,i){if(n&1){let e=S();a(0,"button",5),k("click",function(){u(e);let r=c();return g(r.checkForUpdates())}),s(1,"Checking for updates \u2026"),o()}}function z(n,i){n&1&&f(0,"spk-progress-bar",2)}var h=class n{#t=_(F);#n=_(U);#e=_(D);isLoading=C(!0);checkingForUpdates=C(!1);serverState=this.#e.serverState;duplicatiVersion=O(()=>this.#e.serverState()?.UpdatedVersion);generalInfo=y(this.#t.getApiV1Acknowledgements().pipe(A(i=>i.Acknowledgements),m(()=>this.isLoading.set(!1))));checkForUpdates(){this.checkingForUpdates.set(!0),this.#n.postApiV1UpdatesCheck().pipe(m(()=>this.checkingForUpdates.set(!1))).subscribe()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=G({type:n,selectors:[["app-general"]],decls:12,vars:5,consts:()=>{let i;i=$localize`General`;let e;return e=$localize`Your running Duplicati with - ${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[i,e,[1,"indeterminate","primary"],[1,"actions"],["spk-button",""],["spk-button","",3,"click"],["spk-button","","target","_blank",1,"primary","raised",3,"href"]]},template:function(e,t){if(e&1&&(d(0,V,1,0,"spk-progress-bar",2),a(1,"section")(2,"h3"),E(3,0),o(),a(4,"p"),E(5,1),o(),a(6,"div",3),d(7,I,3,3)(8,B,2,0,"button",4)(9,z,1,0,"spk-progress-bar",2),o(),a(10,"div"),s(11),o()()),e&2){let r,v;p(t.isLoading()?0:-1),l(5),x(t.duplicatiVersion()),M(5),l(2),p(((r=t.serverState())==null?null:r.UpdaterState)==="Waiting"?7:((r=t.serverState())==null?null:r.UpdaterState)==="Checking"?8:-1),l(2),p(((v=t.serverState())==null?null:v.UpdaterState)==="Downloading"?9:-1),l(2),b(t.generalInfo())}},dependencies:[R,L,w],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{h as default};