@duplicati/ngclient 0.0.233 → 0.0.235

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 (149) hide show
  1. package/assets/sh.woff2 +0 -0
  2. package/chunk-29_4gGIi.js +2 -0
  3. package/{chunk-C3gUxHQM.js → chunk-3YzyUT-a.js} +1 -1
  4. package/chunk-6-sszNfh.js +1 -0
  5. package/chunk-7T5O8Syb.js +1 -0
  6. package/{chunk-CS2J-6VZ.js → chunk-B61kkU_h.js} +1 -1
  7. package/chunk-B891gwjc.js +1 -0
  8. package/chunk-BDJqKfxm.js +1 -0
  9. package/chunk-BEUeHgR9.js +1 -0
  10. package/chunk-BEzhTDp8.js +2 -0
  11. package/{chunk-DDWDcSq2.js → chunk-BGuvkLC9.js} +1 -1
  12. package/{chunk-DXEgz1tV.js → chunk-BJOhC2d8.js} +1 -1
  13. package/chunk-BOKNwzSl.js +2 -0
  14. package/chunk-BSCc2xDv.js +1 -0
  15. package/chunk-BWSg9cLt.js +2 -0
  16. package/chunk-BWvawawS.js +2 -0
  17. package/chunk-B_I_9Y7k.js +1 -0
  18. package/chunk-Bgd5lu61.js +1 -0
  19. package/chunk-BjqgOGb9.js +2 -0
  20. package/chunk-Bq_vr6Q3.js +2 -0
  21. package/{chunk-C9OqpwwE.js → chunk-Brfc2m61.js} +1 -1
  22. package/{chunk-C9ecLR93.js → chunk-Btvi2S15.js} +11 -11
  23. package/chunk-C0KXp4hd.js +1 -0
  24. package/chunk-C0XQD9NK.js +1 -0
  25. package/chunk-C1-31fA7.js +1 -0
  26. package/chunk-C185qUb-.js +1 -0
  27. package/{chunk-CyqqlRjO.js → chunk-C1py21yb.js} +2 -2
  28. package/chunk-C4Uv1C-T.js +1 -0
  29. package/{chunk-B1c7h-_w.js → chunk-CFgDqLU0.js} +1 -1
  30. package/{chunk-aCJqF9DH.js → chunk-CGnjVnmu.js} +1 -1
  31. package/{chunk-DidJB9ig.js → chunk-CKUlUN3q.js} +1 -1
  32. package/chunk-CLlZiOaO.js +2 -0
  33. package/chunk-CQVPqpMp.js +2 -0
  34. package/chunk-CSrYlKTK.js +2 -0
  35. package/chunk-CdzKkYEw.js +2 -0
  36. package/chunk-Cj_yOpND.js +1 -0
  37. package/chunk-ClFp7JLZ.js +1 -0
  38. package/{chunk-DGvC49aU.js → chunk-Cm7JSdTO.js} +1 -1
  39. package/{chunk-D1pDZLJ9.js → chunk-CnZx831x.js} +1 -1
  40. package/chunk-CsVpmA6t.js +1 -0
  41. package/chunk-Css7wqTG.js +2 -0
  42. package/chunk-CxbeRJcJ.js +1 -0
  43. package/chunk-CzoH_Agx.js +1 -0
  44. package/chunk-CzsiJ0k-.js +1 -0
  45. package/chunk-D04TnMUn.js +2 -0
  46. package/{chunk-BstaUtD_.js → chunk-D2P9ER0I.js} +1 -1
  47. package/{chunk-mA4J4_nC.js → chunk-D38QrkIM.js} +1 -1
  48. package/chunk-D4g_OF7M.js +1 -0
  49. package/chunk-D5V6OY_2.js +2 -0
  50. package/{chunk-FTZ5atHM.js → chunk-D6IQFx6m.js} +1 -1
  51. package/chunk-D6y9RCQD.js +1 -0
  52. package/chunk-D7UddV5F.js +1 -0
  53. package/chunk-D9jPw9Ov.js +1 -0
  54. package/chunk-DA7rrIf8.js +1 -0
  55. package/chunk-DB0aGcRM.js +1 -0
  56. package/{chunk-DhiIZLrA.js → chunk-DBkkb6OR.js} +3 -3
  57. package/chunk-DE8p9-HP.js +1 -0
  58. package/chunk-DFLxy15J.js +1 -0
  59. package/chunk-DHkdQ4u3.js +3 -0
  60. package/chunk-DKRWta24.js +2 -0
  61. package/chunk-DSeMtMg3.js +1 -0
  62. package/chunk-DWCofCiP.js +14 -0
  63. package/chunk-DXLQftDm.js +1 -0
  64. package/{chunk-lymL5FDY.js → chunk-DYV1Pbu1.js} +1 -1
  65. package/chunk-DaXXLSfy.js +2 -0
  66. package/chunk-Dbq-qyNL.js +3 -0
  67. package/{chunk-8Y8ReLEn.js → chunk-DkVHfoYw.js} +2 -2
  68. package/chunk-DmCJ7w-M.js +1 -0
  69. package/{chunk-MDqH8T3Z.js → chunk-DneBfCBh.js} +2 -2
  70. package/{chunk-CX3Axjpk.js → chunk-DuRr4rDS.js} +1 -1
  71. package/chunk-Dv_fBX0w.js +1 -0
  72. package/chunk-IqMUABbN.js +1 -0
  73. package/chunk-Kq2ZFJSk.js +1 -0
  74. package/chunk-NAAMYA7J.js +1 -0
  75. package/chunk-NiMN4Rl6.js +1 -0
  76. package/chunk-OQ_HQ9EL.js +1 -0
  77. package/chunk-W1dL7dqQ.js +4 -0
  78. package/chunk-_OzpLe0L.js +1 -0
  79. package/chunk-ayE11Iz-.js +1 -0
  80. package/chunk-fDWfSg6Y.js +3 -0
  81. package/chunk-gId840Er.js +1 -0
  82. package/{chunk-B6c2NXNy.js → chunk-iGzJokt-.js} +1 -1
  83. package/{chunk-BmmYJhOf.js → chunk-iU19kwHx.js} +1 -1
  84. package/chunk-m8vMm7S6.js +1 -0
  85. package/chunk-xD8qjoz4.js +1 -0
  86. package/chunk-xI8Kkqgy.js +1 -0
  87. package/{chunk-h6n5A491.js → chunk-zOY5leQB.js} +1 -1
  88. package/index.html +1 -1
  89. package/main-2ZYVV4C4.js +21 -0
  90. package/package.json +1 -1
  91. package/assets/dest-icons/sia_logo_dark.92db63f5.svg +0 -6
  92. package/chunk-AuCOjHXM.js +0 -1
  93. package/chunk-B1wZ4poV.js +0 -1
  94. package/chunk-B5Y6lgE8.js +0 -1
  95. package/chunk-BZgAzrl9.js +0 -2
  96. package/chunk-B_cIFQAl.js +0 -1
  97. package/chunk-BaSm1lsB.js +0 -2
  98. package/chunk-Bgw6E0Xu.js +0 -2
  99. package/chunk-Bj7EyCHb.js +0 -1
  100. package/chunk-BrtdRb9j.js +0 -1
  101. package/chunk-BsNCg00z.js +0 -2
  102. package/chunk-BxpXVeOr.js +0 -1
  103. package/chunk-ByL8ndec.js +0 -1
  104. package/chunk-BzJX1fKw.js +0 -1
  105. package/chunk-C7AeY2HY.js +0 -2
  106. package/chunk-C7gG_Yh_.js +0 -2
  107. package/chunk-CGsQCBkP.js +0 -1
  108. package/chunk-CIe9Bupz.js +0 -1
  109. package/chunk-CIw_h8oP.js +0 -1
  110. package/chunk-CP6xnjgo.js +0 -3
  111. package/chunk-CWgXi-7W.js +0 -1
  112. package/chunk-Ca1aaA1h.js +0 -1
  113. package/chunk-CfxBiw7I.js +0 -1
  114. package/chunk-CgJAbgNN.js +0 -1
  115. package/chunk-ChUm8bnG.js +0 -1
  116. package/chunk-CkRbgemk.js +0 -2
  117. package/chunk-ClRItSzt.js +0 -1
  118. package/chunk-CsIAXoYP.js +0 -1
  119. package/chunk-CuJ_uEdr.js +0 -1
  120. package/chunk-CvSsZZty.js +0 -1
  121. package/chunk-D2G7_0hG.js +0 -2
  122. package/chunk-D3PhthfU.js +0 -2
  123. package/chunk-D55uWC7G.js +0 -1
  124. package/chunk-DD_wKpGc.js +0 -1
  125. package/chunk-DGxk44Me.js +0 -2
  126. package/chunk-DM11Gu0H.js +0 -1
  127. package/chunk-DV8bRznt.js +0 -2
  128. package/chunk-DWiO0A6h.js +0 -2
  129. package/chunk-DbbyVAGl.js +0 -1
  130. package/chunk-DcdpG1YG.js +0 -3
  131. package/chunk-Dk-Wgx3e.js +0 -1
  132. package/chunk-DuYKanVS.js +0 -1
  133. package/chunk-DwmssGG9.js +0 -2
  134. package/chunk-DxFBzFom.js +0 -1
  135. package/chunk-Dz5guW4b.js +0 -3
  136. package/chunk-I5dxaHZ4.js +0 -2
  137. package/chunk-K2iai6rC.js +0 -1
  138. package/chunk-L8hQtTzU.js +0 -1
  139. package/chunk-Y-xXBGKy.js +0 -1
  140. package/chunk-Z81HNfgo.js +0 -1
  141. package/chunk-aYCYzU5Q.js +0 -1
  142. package/chunk-bt6lhYfG.js +0 -1
  143. package/chunk-eiyaQxBt.js +0 -1
  144. package/chunk-jy8x4GhV.js +0 -1
  145. package/chunk-ksSA-rDF.js +0 -1
  146. package/chunk-mflQLMHH.js +0 -2
  147. package/chunk-nuwlP4Wz.js +0 -14
  148. package/chunk-uGh0bVbu.js +0 -4
  149. package/main-3NL5M6JB.js +0 -16
@@ -0,0 +1 @@
1
+ import v from'./chunk-CLlZiOaO.js';import'./chunk-D6y9RCQD.js';import {w}from'./chunk-DKRWta24.js';import'./chunk-CSrYlKTK.js';import {n as ne$1}from'./chunk-BjqgOGb9.js';import'./chunk-DkVHfoYw.js';import'./chunk-iU19kwHx.js';import'./chunk-DWCofCiP.js';import'./chunk-6-sszNfh.js';import'./chunk-Kq2ZFJSk.js';import'./chunk-zOY5leQB.js';import'./chunk-29_4gGIi.js';import'./chunk-BEUeHgR9.js';import'./chunk-CGnjVnmu.js';import'./chunk-BJOhC2d8.js';import'./chunk-fDWfSg6Y.js';import'./chunk-DuRr4rDS.js';import {m}from'./chunk-C1py21yb.js';import'./chunk-D38QrkIM.js';import'./chunk-3YzyUT-a.js';import'./chunk-CKUlUN3q.js';import {T,ab as J,bk as B,aY as D,ax as W,G as Ge,N as Nt,ad as sy,g as gw,a as N,aJ as m$1,bj as pi,Z as Zi,l as lT,o as oC,W as Wl,d as Ig,b as bE,c as uT,z as vg,aR as zl,aS as Ql,h as aC,F as Fg,j as jg,av as Vg,aw as iC,at as Gd,bl as zd,H as HC,aO as sb,aD as sm,aT as cb}from'./main-2ZYVV4C4.js';import {f as f$1}from'./chunk-CFgDqLU0.js';import {d}from'./chunk-BGuvkLC9.js';import'./chunk-DBkkb6OR.js';import'./chunk-iGzJokt-.js';import'./chunk-DneBfCBh.js';import'./chunk-Bq_vr6Q3.js';import'./chunk-D9jPw9Ov.js';import'./chunk-CnZx831x.js';import'./chunk-Cm7JSdTO.js';function U(n,t){n&1&&(Zi(0,"div",17),Gd(),Zi(1,"svg",19),Ig(2,"circle",20),Wl(),zd(),Zi(3,"sh-icon",21),oC(4,3),Wl()());}function Y(n,t){n&1&&(Zi(0,"div",18),Gd(),Zi(1,"svg",19),Ig(2,"circle",20),Wl(),zd(),Zi(3,"sh-icon",22),oC(4,4),Wl()());}function ee(n,t){if(n&1&&(Zi(0,"sh-card",10),zl(1,16),oC(2,2),Ql(),lT(3,U,5,0,"div",17)(4,Y,5,0,"div",18),Wl()),n&2){let e=aC();bE(3),uT(e.restoreResult()=="success"?3:4);}}function te(n,t){if(n&1&&(HC(0),sb(1,"number"),sb(2,"number")),n&2){let e=aC(2);sm(" ",cb(1,2,e.statusData()?.ProcessedFileCount)," of ",cb(2,4,e.statusData()?.TotalFileCount)," ");}}function ne(n,t){n&1&&(zl(0),oC(1,8),Ql());}function oe(n,t){if(n&1&&(HC(0),sb(1,"bytes"),sb(2,"bytes")),n&2){let e=aC(2);sm(" ",cb(1,2,e.statusData()?.ProcessedFileSize)," of ",cb(2,4,e.statusData()?.TotalFileSize)," ");}}function ie(n,t){n&1&&(zl(0),oC(1,9),Ql());}function re(n,t){if(n&1&&(Zi(0,"sh-card",10)(1,"h3"),Fg(2,5),Ig(3,"sh-spinner",23),jg(),Wl(),Zi(4,"div",24),Ig(5,"sh-progress-bar",25),Zi(6,"p")(7,"span"),oC(8,6),Wl(),lT(9,te,3,6)(10,ne,2,0,"ng-container"),Wl(),Zi(11,"p")(12,"span"),oC(13,7),Wl(),lT(14,oe,3,6)(15,ie,2,0,"ng-container"),Wl()()()),n&2){let e=aC();bE(3),Vg(e.statusData()?.statusText),iC(2),bE(2),vg("value",e.statusData()?.OverallProgress),bE(4),uT(e.statusData()?.ProcessedFileCount?9:10),bE(5),uT(e.statusData()?.ProcessedFileSize?14:15);}}var f=class n{#i=T(J);#r=T(B);#t=T(D);#n=T(w);#s=T(W);statusData=this.#t.statusData;backupId=this.#n.backupId;restoreResult=Ge("");#e=null;lastRestoreStarted=Nt(()=>{if(this.#e)return this.#e;let t=this.#t.statusData()?.backup?.Backup?.Metadata?.LastRestoreStarted??null;if(!t)return null;let e=this.fixDate(t);return this.#e=e,e});notificationFilterPredicate=()=>{let t=this.lastRestoreStarted();return {predicate:e=>(e.BackupID===this.#n.backupId()&&t&&t.getTime()<=new Date(e.Timestamp).getTime())??false}};ngOnInit(){let t=Number(this.#s.snapshot.params.taskid??"");sy(()=>this.#i.getApiV1TaskByTaskid({path:{taskid:t}})).subscribe({next:e=>{if(e.TaskStarted&&(this.#e=new Date(e.TaskStarted)),!e.TaskFinished&&e.ID){this.#_(e.ID);return}this.#o(e);},error:e=>{console.error("Error fetching task:",e),this.restoreResult.set("error"),alert("Failed to fetch task details. Please try again later.");}});}#_(t){this.#r.waitForTaskToComplete(t).subscribe(e=>{this.#o(e);});}#o(t){t.TaskFinished!=null&&this.restoreResult.set(t.Status==="Completed"&&t.ErrorMessage==null?"success":"error");}fixDate(t){return new Date(`${t.slice(0,4)}-${t.slice(4,6)}-${t.slice(6,8)}T${t.slice(9,11)}:${t.slice(11,13)}:${t.slice(13,15)}Z`)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=gw({type:n,selectors:[["app-restore-progress"]],decls:12,vars:5,consts:()=>{let t;t=$localize`Notifications`;let e;e=$localize`Logs`;let a;a=$localize`Restore completed`;let M;M=$localize`check-bold`;let N;N=$localize`warning-octagon`;let G;G=$localize` Restore progress: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#3\uFFFD"}:START_TAG_SH_SPINNER:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_SPINNER:`;let h;h=$localize`Files processed:`;let F;F=$localize`Size processed:`;let L;L=$localize`N/A`;let y;return y=$localize`N/A`,[t,e,a,M,N,G,h,F,L,y,[1,"progress","type-a"],[1,"notifications","type-a"],[1,"notification-list"],[3,"notificationFilterPredicate"],[1,"logs","type-a"],[3,"polling","whenFilter","backupIdFilter"],["title",""],[1,"complete-success"],[1,"complete-failure"],[1,"border-svg"],["cx","50","cy","50","r","45",1,"border-circle"],[1,"success"],[1,"error"],[1,"primary"],[1,"progress-content"],[3,"value"]]},template:function(e,a){e&1&&(Zi(0,"section"),lT(1,ee,5,1,"sh-card",10)(2,re,16,4,"sh-card",10),Zi(3,"sh-card",11)(4,"h3"),oC(5,0),Wl(),Zi(6,"div",12),Ig(7,"app-notifications",13),Wl()(),Zi(8,"sh-card",14)(9,"h3"),oC(10,1),Wl(),Ig(11,"app-logs-live",15),Wl()()),e&2&&(bE(),uT(a.restoreResult()!=""?1:2),bE(6),vg("notificationFilterPredicate",a.notificationFilterPredicate()),bE(4),vg("polling",a.restoreResult()=="")("whenFilter",a.lastRestoreStarted()?.getTime())("backupIdFilter",a.backupId()));},dependencies:[v,d,m,N,f$1,ne$1,m$1,pi],styles:['[_nghost-%COMP%]{display:block;padding:0 1.25rem;margin-top:32px}section[_ngcontent-%COMP%]{display:grid;gap:1.25rem;grid-template-columns:2fr 1fr;grid-template-areas:"progress notifications" "logs logs"}section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:1rem}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{grid-area:progress}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]:has(.complete-check){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.25rem}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] sh-spinner[_ngcontent-%COMP%]{--spinner-size: 1.25rem;--spinner-thickness: .1875rem}section[_ngcontent-%COMP%] .notifications[_ngcontent-%COMP%]{grid-area:notifications}section[_ngcontent-%COMP%] .logs[_ngcontent-%COMP%]{grid-area:logs}section[_ngcontent-%COMP%] .logs[_ngcontent-%COMP%] app-logs-live[_ngcontent-%COMP%]{max-height:50rem;overflow:auto}.notification-list[_ngcontent-%COMP%]{max-height:15rem;overflow:auto}.complete-success[_ngcontent-%COMP%]{position:relative;width:6.25rem;height:6.25rem;display:flex;justify-content:center;align-items:center;color:var(--success-8)}.complete-success[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:0;animation:_ngcontent-%COMP%_reveal-icon .2s linear forwards;animation-delay:1s}.complete-success[_ngcontent-%COMP%] .border-circle[_ngcontent-%COMP%]{fill:none;stroke:var(--success-8)}.complete-failure[_ngcontent-%COMP%]{position:relative;width:6.25rem;height:6.25rem;display:flex;justify-content:center;align-items:center;color:var(--error-8)}.complete-failure[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:0;animation:_ngcontent-%COMP%_reveal-icon .2s linear forwards;animation-delay:1s}.complete-failure[_ngcontent-%COMP%] .border-circle[_ngcontent-%COMP%]{fill:none;stroke:var(--error-8)}.border-svg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.border-circle[_ngcontent-%COMP%]{fill:none;stroke-width:.3125rem;stroke-dasharray:282.74;stroke-dashoffset:282.74;animation:_ngcontent-%COMP%_draw-border 1.2s linear forwards}@keyframes _ngcontent-%COMP%_draw-border{to{stroke-dashoffset:0}}@keyframes _ngcontent-%COMP%_reveal-icon{to{opacity:1}}.progress-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.progress-content[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{margin-bottom:.75rem}.progress-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:.25rem}']})};export{f as default};
@@ -0,0 +1 @@
1
+ import {t as te}from'./chunk-DmCJ7w-M.js';import'./chunk-C1-31fA7.js';import'./chunk-iU19kwHx.js';import'./chunk-C185qUb-.js';import'./chunk-DuRr4rDS.js';import'./chunk-C1py21yb.js';import'./chunk-3YzyUT-a.js';import'./chunk-CKUlUN3q.js';import {T,f,g as gw,v,a as N,_ as _t,d as Ig,Z as Zi,o as oC,W as Wl,F as Fg,j as jg,l as lT,b as bE,K as Kg,z as vg,a3 as XC,c as uT}from'./main-2ZYVV4C4.js';import {f as f$1}from'./chunk-CFgDqLU0.js';import'./chunk-BGuvkLC9.js';import'./chunk-DBkkb6OR.js';import'./chunk-iGzJokt-.js';import'./chunk-DneBfCBh.js';import'./chunk-Bq_vr6Q3.js';import'./chunk-D9jPw9Ov.js';import'./chunk-CnZx831x.js';import'./chunk-Cm7JSdTO.js';var B=()=>["/backup/new"],G=()=>["/backup/import"],K=()=>["/backup/import-destination"];function U(r,s){r&1&&(Zi(0,"sh-card",11),Ig(1,"img",15),Zi(2,"h3"),oC(3,7),Wl(),Zi(4,"p"),oC(5,8),Wl(),Zi(6,"button",13),Fg(7,9),Ig(8,"sh-icon"),jg(),Wl()()),r&2&&(bE(6),vg("routerLink",XC(1,K)));}var p=class r{hasRestoreControlFilesOperation=T(f).hasRestoreControlFilesOperation;static \u0275fac=function(i){return new(i||r)};static \u0275cmp=gw({type:r,selectors:[["app-add-backup"]],decls:24,vars:7,consts:()=>{let s;s=$localize`Add a new backup`;let i;i=$localize`New backup`;let C;C=$localize`Configure a new backup. Choose your destination, source data and schedule.`;let m;m=$localize` Add a new backup ${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON:`;let A;A=$localize`Import from file`;let S;S=$localize`Import backup configuration from a file. During import, you can adjust the settings.`;let P;P=$localize` Import from file ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:upload-simple${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`;let T;T=$localize`Import from destination`;let g;g=$localize`Import one or more backup configurations from a remote destination.`;let E;return E=$localize` Import from destination ${"\uFFFD#8\uFFFD"}:START_TAG_SH_ICON:download-simple${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SH_ICON:`,[s,i,C,m,A,S,P,T,g,E,[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["shButton","",1,"raised","primary",3,"routerLink"],["src","assets/images/backup-from-config.png"],["src","assets/images/backup-from-remote.png"]]},template:function(i,C){i&1&&(Ig(0,"app-status-bar"),Zi(1,"section")(2,"h2"),oC(3,0),Wl(),Zi(4,"div",10)(5,"sh-card",11),Ig(6,"img",12),Zi(7,"h3"),oC(8,1),Wl(),Zi(9,"p"),oC(10,2),Wl(),Zi(11,"button",13),Fg(12,3),Ig(13,"sh-icon"),jg(),Wl()(),Zi(14,"sh-card",11),Ig(15,"img",14),Zi(16,"h3"),oC(17,4),Wl(),Zi(18,"p"),oC(19,5),Wl(),Zi(20,"button",13),Fg(21,6),Ig(22,"sh-icon"),jg(),Wl()(),lT(23,U,9,2,"sh-card",11),Wl()()),i&2&&(bE(4),Kg("three-column",C.hasRestoreControlFilesOperation()),bE(7),vg("routerLink",XC(5,B)),bE(9),vg("routerLink",XC(6,G)),bE(3),uT(C.hasRestoreControlFilesOperation()?23:-1));},dependencies:[te,v,f$1,N,_t],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:43.75rem;padding:0 2rem}div.backup-types.three-column[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr;max-width:65.625rem}@media only screen and (max-width:768px){div.backup-types[_ngcontent-%COMP%]{grid-template-columns:1fr}}sh-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}sh-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:18.75rem}sh-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"]})};export{p as default};
@@ -0,0 +1 @@
1
+ import {A,a_ as ee}from'./main-2ZYVV4C4.js';var a="fileTreeFoldersFirst",n="fileTreeCaseSensitiveSort",r=class t{#e=A(a,true);#t=A(n,false);foldersFirst=this.#e.asReadonly();caseSensitiveSort=this.#t.asReadonly();setFoldersFirst(e){this.#e.set(e);}setCaseSensitiveSort(e){this.#t.set(e);}static \u0275fac=function(i){return new(i||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})};export{r};
@@ -0,0 +1,2 @@
1
+ import {K as Ke,m as mt,u as un,_ as _n,C as Ct,a as mn}from'./chunk-DWCofCiP.js';import'./chunk-6-sszNfh.js';import'./chunk-Kq2ZFJSk.js';import {I}from'./chunk-zOY5leQB.js';import'./chunk-29_4gGIi.js';import'./chunk-BEUeHgR9.js';import {J}from'./chunk-CGnjVnmu.js';import'./chunk-BJOhC2d8.js';import {G,f,A}from'./chunk-fDWfSg6Y.js';import {v as ve$1}from'./chunk-DuRr4rDS.js';import'./chunk-C1py21yb.js';import'./chunk-D38QrkIM.js';import {c}from'./chunk-3YzyUT-a.js';import'./chunk-CKUlUN3q.js';import {T,e as ee$1,ax as W,by as ve,c9 as T1,G as Ge,N as Nt,Q as Qa,g as gw,v,a as N,a0 as de$1,u as ue,al as dm,Z as Zi,w as Hg,d as Ig,W as Wl,l as lT,F as Fg,j as jg,am as GC,b as bE,c as uT,K as Kg,z as vg,O as qg,R as hC,a1 as pT,h as aC,ap as zC,a2 as hT,i as ET,P as Pd,L as Ld,H as HC,n as lm,p as qC,o as oC,t as bD,y as cm,a3 as XC,M as MD,aq as dT,aR as zl,aS as Ql,J as im}from'./main-2ZYVV4C4.js';import {f as f$1}from'./chunk-CFgDqLU0.js';import {d}from'./chunk-BGuvkLC9.js';import {F as Fe}from'./chunk-DBkkb6OR.js';import {j as jn,B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt$1,a as Zt$1}from'./chunk-iGzJokt-.js';import'./chunk-DneBfCBh.js';import'./chunk-Bq_vr6Q3.js';import'./chunk-D9jPw9Ov.js';import'./chunk-CnZx831x.js';import'./chunk-Cm7JSdTO.js';var kt=["testUrl"],Bt=()=>({maxWidth:"700px",width:"100%"}),Vt=(o,e)=>e.uiKey;function Kt(o,e){if(o&1){let t=ET();Zi(0,"sh-card",30)(1,"div",32)(2,"h3"),oC(3,4),Wl(),Zi(4,"button",33),Hg("click",function(){Pd(t);let i=aC(3);return Ld(i.closeCustomList())}),HC(5," Cancel "),Zi(6,"sh-icon"),HC(7,"x-bold"),Wl()()(),Zi(8,"app-destination-list",34),Hg("setDestination",function(i){Pd(t);let _=aC(3);return Ld(_.setDestination(i))}),Wl()();}}function Jt(o,e){if(o&1){let t=ET();Zi(0,"div",40)(1,"sh-toggle",43),lm("checkedChange",function(i){Pd(t);let _=aC(2).$implicit;return qC(_.save,i)||(_.save=i),Ld(i)}),Zi(2,"span",44),oC(3,8),Wl()()();}if(o&2){let t=aC(2).$implicit;bE(),vg("color","primary")("variant","raised"),cm("checked",t.save);}}function Xt(o,e){if(o&1){let t=ET();Zi(0,"sh-toggle-card",31),zl(1,35),Zi(2,"app-destination-list-item",36)(3,"button",33),Hg("click",function(){Pd(t);let i=aC().$index,_=aC(2);return Ld(_.changeDestination(i))}),HC(4,"Change"),Wl(),Zi(5,"sh-menu",37),Hg("click",function(i){return i.stopPropagation()}),Zi(6,"button",38)(7,"sh-icon"),HC(8,"dots-three-vertical"),Wl()(),zl(9,39),Zi(10,"button",33),Hg("click",function(){Pd(t);let i=aC().$index,_=aC(2);return Ld(_.openTargetUrlDialog(i))}),Fg(11,5),Ig(12,"sh-icon"),jg(),Wl(),Zi(13,"button",33),Hg("click",function(){Pd(t);let i=aC().$index,_=aC(2);return Ld(_.copyTargetUrl(i))}),Fg(14,6),Ig(15,"sh-icon"),jg(),Wl(),Zi(16,"button",33),Hg("click",function(){Pd(t);let i=aC().$index,_=aC(2);return Ld(_.removeDestination(i))}),Fg(17,7),Ig(18,"sh-icon"),jg(),Wl(),Ql(),Wl()(),Ql(),lT(19,Jt,4,3,"div",40),Zi(20,"app-test-url",41,1),Hg("targetUrlChange",function(i){Pd(t);let _=aC().$index,T=aC(2);return Ld(T.updateTargetUrl(_,i))})("testSignalChange",function(i){Pd(t);let _=aC().$index,T=aC(2);return Ld(T.updateTestState(_,i))}),Wl(),Zi(22,"app-single-destination",42),Hg("targetUrlChange",function(i){Pd(t);let _=aC().$index,T=aC(2);return Ld(T.updateTargetUrl(_,i))}),Wl()();}if(o&2){let t=aC(),n=t.$implicit,i=t.$index,_=aC(2);vg("disableToggle",true)("isActive",true),bE(2),vg("targetUrl",n.url)("connectionStringId",n.connectionStringId),bE(17),uT(n.connectionStringId?-1:19),bE(),vg("targetUrl",n.url)("testSignal",_.testStates()[i]||null)("backupId",_.backupId())("connectionStringId",n.connectionStringId)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",true)("readOnlyTest",false)("testExpectation",_.isNew()?"destinationEmpty":"any")("moduleType","Backend"),bE(2),vg("targetUrl",n.url)("useBackupState",true);}}function zt(o,e){if(o&1&&lT(0,Kt,9,0,"sh-card",30)(1,Xt,23,17,"sh-toggle-card",31),o&2){let t=e.$index,n=aC(2);uT(n.showCustomList()&&n.currentEditingIndex()===t?0:1);}}function Ht(o,e){if(o&1&&pT(0,zt,2,1,null,null,Vt),o&2){aC();let t=zC(0);hT(t);}}function Wt(o,e){o&1&&(Zi(0,"div",45),Ig(1,"sh-progress-bar",46),Zi(2,"div",47)(3,"h3"),oC(4,9),Wl()()());}function jt(o,e){o&1&&(Zi(0,"sh-divider"),oC(1,12),Wl());}function Qt(o,e){if(o&1&&(Zi(0,"p",52),HC(1),Wl()),o&2){let t=aC().$implicit;bE(),im(t.Description);}}function qt(o,e){if(o&1&&(Zi(0,"p",52),HC(1),Wl()),o&2){let t=aC().$implicit,n=aC(4);bE(),im(n.getSimplePath(t.BaseUrl));}}function Yt(o,e){if(o&1){let t=ET();Zi(0,"app-destination-list-item",50),Hg("click",function(){let i=Pd(t).$implicit,_=aC(4);return Ld(_.selectSavedDestination(i))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Zi(1,"h3",51),HC(2),Wl(),lT(3,Qt,2,1,"p",52)(4,qt,2,1,"p",52),Wl();}if(o&2){let t=e.$implicit;vg("targetUrl",t.BaseUrl),bE(2),im(t.Name||t.BaseUrl),bE(),uT(t.Description?3:4);}}function Zt(o,e){if(o&1){let t=ET();Zi(0,"sh-card",48),Hg("click",function(){Pd(t);let i=aC(3);return Ld(i.toggleCustomList())})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Zi(1,"sh-icon"),HC(2,"plus-circle"),Wl(),Zi(3,"div",47)(4,"h3"),oC(5,10),Wl(),Zi(6,"p"),oC(7,11),Wl()()(),lT(8,jt,2,0,"sh-divider"),pT(9,Yt,5,3,"app-destination-list-item",49,dT);}if(o&2){let t=aC(3);bE(8),uT(t.destinations().length>0?8:-1),bE(),hT(t.destinations());}}function te(o,e){if(o&1&&lT(0,Wt,5,0,"div",45)(1,Zt,11,1),o&2){let t=aC(2);uT(t.isLoadingDestinations()?0:1);}}function ee(o,e){o&1&&(Zi(0,"sh-divider"),oC(1,15),Wl());}function ne(o,e){if(o&1&&(Zi(0,"p",52),HC(1),Wl()),o&2){let t=aC().$implicit;bE(),im(t.Description);}}function ie(o,e){if(o&1&&(Zi(0,"p",52),HC(1),Wl()),o&2){let t=aC().$implicit,n=aC(3);bE(),im(n.getSimplePath(t.BaseUrl));}}function oe(o,e){if(o&1){let t=ET();Zi(0,"app-destination-list-item",57),Hg("click",function(){let i=Pd(t).$implicit,_=aC(3);return Ld(_.selectSavedDestination(i))}),Zi(1,"h3",51),HC(2),Wl(),lT(3,ne,2,1,"p",52)(4,ie,2,1,"p",52),Wl();}if(o&2){let t=e.$implicit;vg("targetUrl",t.BaseUrl),bE(2),im(t.Name||t.BaseUrl),bE(),uT(t.Description?3:4);}}function ae(o,e){if(o&1){let t=ET();Zi(0,"div",53)(1,"button",54),Hg("click",function(){Pd(t);let i=aC(2);return Ld(i.closeCustomList())}),Zi(2,"sh-icon"),HC(3,"arrow-left"),Wl(),HC(4," Back "),Wl()(),Zi(5,"sh-card",55),Hg("click",function(){Pd(t);let i=aC(2);return Ld(i.toggleCustomList())}),Zi(6,"sh-icon"),HC(7,"plus-circle"),Wl(),Zi(8,"div",47)(9,"h3"),oC(10,13),Wl(),Zi(11,"p"),oC(12,14),Wl()()(),lT(13,ee,2,0,"sh-divider"),pT(14,oe,5,3,"app-destination-list-item",56,dT);}if(o&2){let t=aC(2);bE(13),uT(t.destinations().length>0?13:-1),bE(),hT(t.destinations());}}function re(o,e){if(o&1){let t=ET();Zi(0,"div",53)(1,"button",54),Hg("click",function(){Pd(t);let i=aC(3);return Ld(i.closeCustomList())}),Zi(2,"sh-icon"),HC(3,"arrow-left"),Wl()(),Zi(4,"h3"),oC(5,16),Wl()();}}function se(o,e){if(o&1){let t=ET();lT(0,re,6,0,"div",53),Zi(1,"app-destination-list",34),Hg("setDestination",function(i){Pd(t);let _=aC(2);return Ld(_.setDestination(i))}),Wl();}if(o&2){let t=aC(2),n=zC(0);uT(t.destinations().length>0||n.length>0?0:-1);}}function _e(o,e){if(o&1&&lT(0,te,2,1)(1,ae,16,1)(2,se,2,1),o&2){let t=aC(),n=zC(1);uT(!t.showCustomList()&&!n&&!t.isAddingNew()?0:t.isAddingNew()&&!t.showCustomList()?1:2);}}function le(o,e){if(o&1){let t=ET();Zi(0,"div",25)(1,"button",58),Hg("click",function(){Pd(t);let i=aC();return Ld(i.startAddingNew())}),Zi(2,"sh-icon"),HC(3,"plus"),Wl(),HC(4," Add another destination "),Wl()();}}function ce(o,e){o&1&&(Zi(0,"h2"),oC(1,19),Wl());}function de(o,e){o&1&&(Zi(0,"h2"),oC(1,20),Wl());}function Ce(o,e){if(o&1){let t=ET();Zi(0,"sh-dialog",59),lm("isOpenChange",function(i){Pd(t);let _=aC();return qC(_.targetUrlDialogOpen,i)||(_.targetUrlDialogOpen=i),Ld(i)}),Zi(1,"header",60)(2,"div",61),lT(3,ce,2,0,"h2")(4,de,2,0,"h2"),Zi(5,"sh-alert",62),oC(6,17),Wl()()(),Zi(7,"div",63)(8,"sh-form-field")(9,"textarea",64),lm("ngModelChange",function(i){Pd(t);let _=aC();return qC(_.targetUrlCtrl,i)||(_.targetUrlCtrl=i),Ld(i)}),Wl(),bD(),Wl()(),Zi(10,"footer",65)(11,"button",27),Hg("click",function(){Pd(t);let i=aC();return Ld(i.closeTargetUrlDialog(false))}),HC(12,"Cancel"),Wl(),Zi(13,"button",66),Hg("click",function(){Pd(t);let i=aC();return Ld(i.closeTargetUrlDialog(true))}),Fg(14,18),Ig(15,"sh-icon"),jg(),Wl()()();}if(o&2){let t=aC(),n=zC(1);cm("isOpen",t.targetUrlDialogOpen),vg("options",XC(4,Bt)),bE(3),uT(n?4:3),bE(6),cm("ngModel",t.targetUrlCtrl),MD();}}var $=new jn,Be=(o={destinations:[]})=>$.group({destinations:$.array(o.destinations)}),Ve=({key:o,customGroup:e,dynamicGroup:t,advancedGroup:n})=>$.group({destinationType:$.control(o),custom:e,dynamic:t,advanced:n}),B=class o{#n=T(ee$1);#i=T(W);#t=T(Ke);#e=T(mt);injector=T(ve);testUrlComponents=T1();testStates=Ge([]);targetUrls=this.#t.targetUrls;targetUrlModel=Nt(()=>this.targetUrls()[0]?.url??null);targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);currentEditingIndex=Ge(null);targetUrlDialogOpen=Ge(false);showCustomList=Ge(false);isConnectionStringSaved=this.#t.isConnectionStringSaved;destinations=this.#e.destinations;isLoadingDestinations=this.#e.resourceDestinations.isLoading;isNew=this.#t.isNew;backupId=this.#t.backupId;selectedDestinationType=Nt(()=>{let e=this.targetUrlModel();return e?G(e)??null:null});isLoadingDestinationEffect=Qa(()=>{let e=this.isLoadingDestinations(),t=this.destinations(),n=this.targetUrls();!e&&t.length==0&&n.length==0&&this.toggleCustomList();});selectedDestinationTypeOption=Nt(()=>{let e=this.selectedDestinationType();return e?{key:e.customKey??e.key,customKey:e.customKey??null,displayName:e.displayName,description:e.description,sourceDescription:e.sourceDescription??null,icon:e.icon}:null});getConnectionString(e){let t=this.#e.destinations().find(n=>n.ID===e);return console.log("connection",t),t}getSimplePath(e){return e?f(e):""}copyTargetUrl(e=0){let t=this.targetUrls()[e]?.url;t&&navigator.clipboard.writeText(t);}openTargetUrlDialog(e=0){let t=this.targetUrls()[e]?.url??null;this.targetUrlCtrl.set(t),this.targetUrlInitial.set(t),this.currentEditingIndex.set(e),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(e=false){this.targetUrlDialogOpen.set(false);let t=this.targetUrlCtrl(),n=this.targetUrlInitial();if(!e||t===n||!t)return;let i=this.currentEditingIndex();if(i!==null){let _=this.targetUrls()[i]?.connectionStringId??null,T=this.targetUrls()[i]?.urlKey??null;this.#t.updateTargetUrl(i,t,_,T);}else this.#t.setTargetUrl(t);this.currentEditingIndex.set(null);}setDestination(e){let t=A(e??"");if(!t)return;let n=t.mapper.default?t.mapper.default(this.#t.backupName()??""):`${e}://`;if(this.currentEditingIndex()!==null){this.#t.updateTargetUrl(this.currentEditingIndex(),n,null,null),this.updateTestState(this.currentEditingIndex(),null),this.currentEditingIndex.set(null),this.showCustomList.set(false);return}this.showCustomList()?(this.#t.addTargetUrl(n,null,null),this.showCustomList.set(false),this.isAddingNew.set(false)):(this.#t.addTargetUrl(n,null,null),this.showCustomList.set(false),this.isAddingNew.set(false));}targetUrlsEffect=Qa(()=>{let e=this.targetUrls();this.testStates.update(t=>{if(t.length===e.length)return t;let n=[...t];if(n.length<e.length)for(let i=n.length;i<e.length;i++)n.push(null);else n.length=e.length;return n});});selectSavedDestination(e){e.BaseUrl&&e.BaseUrl&&(this.targetUrls().length===0?this.#t.setTargetUrl(e.BaseUrl,true,e.ID,null):(this.#t.addTargetUrl(e.BaseUrl,e.ID,null),this.showCustomList.set(false),this.isAddingNew.set(false)));}toggleCustomList(){this.currentEditingIndex.set(null),this.showCustomList.set(true);}isAddingNew=Ge(false);startAddingNew(){this.isAddingNew.set(true),this.destinations().length===0&&this.showCustomList.set(true);}changeDestination(e){this.currentEditingIndex.set(e),this.showCustomList.set(true);}closeCustomList(){this.showCustomList.set(false),this.currentEditingIndex.set(null),this.isAddingNew.set(false);}removeDestination(e){this.testStates.update(t=>t.filter((n,i)=>i!==e)),this.#t.removeTargetUrl(e);}updateTargetUrl(e,t){if(!t)return;let n=this.targetUrls()[e]?.connectionStringId??null,i=this.targetUrls()[e]?.urlKey??null;this.#t.updateTargetUrl(e,t,n,i),this.updateTestState(e,null);}updateTestState(e,t){this.testStates.update(n=>{let i=[...n];return i[e]=t,i});}toggleSave(e){this.#t.toggleSaveConnectionString(e);}goBack(){this.#n.navigate(["source-data"],{relativeTo:this.#i.parent});}async next(){if(!this.#t.isNew()){this.#o();return}let t=this.testUrlComponents();this.testStates();for(let i=0;i<t.length;i++){let _=t[i],T=this.testStates()[i];if(T&&typeof T!="string"&&T.action==="success")continue;if((await _.testDestination(false))?.action!=="success")return}this.#o();}#o(){this.#t.shouldAutoSave()&&this.#t.submit(true),this.#n.navigate(["schedule"],{relativeTo:this.#i.parent});}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=gw({type:o,selectors:[["app-destination"]],viewQuery:function(t,n){t&1&&qg(n.testUrlComponents,kt,5),t&2&&hC();},decls:19,vars:9,consts:()=>{let e;e=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let t;t=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`Change destination type`;let i;i=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let _;_=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let T;T=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Remove `;let b;b=$localize`Save as connection string`;let V;V=$localize`Loading destinations...`;let K;K=$localize`Configure a new destination`;let J;J=$localize`Configure a one-off or new storage location.`;let X;X=$localize`Or select a saved destination`;let z;z=$localize`Configure a new destination`;let H;H=$localize`Configure a one-off or new storage location.`;let W;W=$localize`Or select a saved destination`;let j;j=$localize`Select storage type`;let Q;Q=$localize`Be careful, this will overwrite everything you have in your destination.`;let q;q=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Y;Y=$localize`Set target URL`;let Z;return Z=$localize`Edit target URL`,[["formRef",""],["testUrl",""],e,t,n,i,_,T,b,V,K,J,X,z,H,W,j,Q,q,Y,Z,["autocomplete","off",3,"submit"],[2,"position","absolute","left","-9999px","width","1px","height","1px","overflow","hidden"],["type","text","name","fake_email","tabindex","-1"],["type","password","name","fake_password","tabindex","-1"],[1,"add-destination-container"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[3,"isOpen","options"],[1,"destination-card","type-c","editing"],[1,"destination-card","type-a",3,"disableToggle","isActive"],[1,"editing-header"],["shButton","","type","button",1,"small",3,"click"],[3,"setDestination"],["title",""],[3,"targetUrl","connectionStringId"],[1,"actions",3,"click"],["shButton","","type","button",1,"small","icon-only"],["menu",""],[1,"options-row",2,"margin","0 1rem 1rem 1rem"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","connectionStringId","sourcePrefix","suppressErrorDialogs","askToCreate","readOnlyTest","testExpectation","moduleType"],[3,"targetUrlChange","targetUrl","useBackupState"],[3,"checkedChange","color","variant","checked"],["label",""],[1,"loading-list"],[1,"indeterminate","primary"],[1,"text"],["tabindex","0",1,"type-a","actionable","add-new",3,"click","keydown.enter","keydown.space"],["variant","type-a","tabindex","0",1,"actionable",3,"targetUrl"],["variant","type-a","tabindex","0",1,"actionable",3,"click","keydown.enter","keydown.space","targetUrl"],["displayName",""],["description",""],[1,"custom-list-header"],["shButton","","iconOnly","","type","button",1,"ghost",3,"click"],[1,"type-a","actionable","add-new",3,"click"],["variant","type-a",1,"actionable",3,"targetUrl"],["variant","type-a",1,"actionable",3,"click","targetUrl"],["shButton","","type","button",1,"secondary",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,n){if(t&1&&(dm(0)(1),Zi(2,"form",21,0),Hg("submit",function(){return n.next()}),Zi(4,"div",22),Ig(5,"input",23)(6,"input",24),Wl(),Zi(7,"header"),lT(8,Ht,2,0),Wl(),lT(9,_e,3,1),lT(10,le,5,0,"div",25),Zi(11,"div",26)(12,"button",27),Hg("click",function(){return n.goBack()}),Fg(13,2),Ig(14,"sh-icon"),jg(),Wl(),Zi(15,"button",28),Fg(16,3),Ig(17,"sh-icon"),jg(),Wl()()(),lT(18,Ce,16,5,"sh-dialog",29)),t&2){let i=GC(n.targetUrls());bE();let _=GC(i.length>0);bE(7),uT(n.currentEditingIndex()!==null||!n.showCustomList()&&!n.isAddingNew()?8:-1),bE(),uT((!_||n.showCustomList()||n.isAddingNew())&&n.currentEditingIndex()===null?9:-1),bE(),uT(_&&!n.showCustomList()&&!n.isAddingNew()?10:-1),bE(5),Kg("loading",n.isNew()&&n.testStates().length>0&&n.testStates()[0]==="testing"),vg("disabled",!_),bE(3),uT(n.targetUrlDialogOpen()?18:-1);}},dependencies:[un,_n,Ct,mn,Bn,Tn,Ze,Rn,Pn,Jt$1,Zt$1,v,Fe,ve$1,N,de$1,ue,f$1,c,d,I,J],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem;padding:2.5rem 2.5rem 0}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;height:100%;padding:0 0 2.5rem}.current-destination[_ngcontent-%COMP%]{margin:1rem 0 0}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-bottom:1.5rem}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}.loading-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center;padding:4rem}.loading-list[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}.add-new[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;background:var(--base-1);color:var(--primary-8);cursor:pointer}.add-new[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:.8}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}.custom-list-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.save-connection-string[_ngcontent-%COMP%]{margin:1rem 0}sh-card.destination-card[_ngcontent-%COMP%]{padding:1.5rem}.destination-card[_ngcontent-%COMP%]{position:relative;overflow:visible}.destination-card[_ngcontent-%COMP%] app-destination-list-item[_ngcontent-%COMP%]{width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{position:static;transform:none}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.destination-card[_ngcontent-%COMP%] sh-toggle-card[_ngcontent-%COMP%] .header{width:100%}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};
2
+ export{Be as createDestinationForm,Ve as createDestinationFormGroup,B as default};
@@ -1,2 +1,2 @@
1
- import {E as E1,bb as ce,h as hw,W as Eg,ag as Yg,aC as yg,f as NC}from'./main-3NL5M6JB.js';var d=(()=>{class s{constructor(){this.value=E1(void 0),this.color=E1(null),this.variant=E1(null),this.hostClasses=ce("progressBar",{color:this.color,variant:this.variant});}static{this.\u0275fac=function(r){return new(r||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100"],hostVars:3,hostBindings:function(r,a){r&2&&(yg("aria-valuenow",a.value()!==void 0?a.value():null),NC(a.hostClasses()));},inputs:{value:[1,"value"],color:[1,"color"],variant:[1,"variant"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(r,a){r&1&&Eg(0,"div",0),r&2&&Yg("width",a.value(),"%");},styles:[`sh-progress-bar{--pb-h: .5rem;--pb-b: var(--base-4);--pb-bg: var(--base-3);--pb-br: var(--shape-2);--pbt-bg: var(--base-6);--pbt-br: inherit;display:block;width:100%;height:var(--pb-h);position:relative;overflow:hidden;border-radius:var(--pb-br);background:var(--pb-bg)}sh-progress-bar .progress-bar{position:absolute;top:0;left:0;bottom:0;height:100%;transform-origin:top left;border-radius:var(--pbt-br);background:var(--pbt-bg)}sh-progress-bar.indeterminate .progress-bar{right:0;animation:indeterminate-progress-bar-stripes 2s linear infinite}sh-progress-bar.indeterminate:after{content:"";position:absolute;inset:0;background-color:var(--base-2);animation:indeterminate-progress-bar-stripes-background 2s linear infinite;transform-origin:top left}sh-progress-bar.primary{--pbt-bg: var(--primary-8)}sh-progress-bar.accent{--pbt-bg: var(--accent-8)}sh-progress-bar.warn{--pbt-bg: var(--warn-8)}sh-progress-bar.error{--pbt-bg: var(--error-8)}sh-progress-bar.success{--pbt-bg: var(--success-8)}sh-progress-bar.outlined{--pb-b: var(--border-10);--pb-bg: var(--base-1)}sh-progress-bar.outlined:after{background-color:inherit}sh-progress-bar.flat{--pbt-bg: var(--base-8)}sh-progress-bar.flat:after{background-color:inherit}sh-progress-bar.flat.primary{--pbt-bg: var(--primary-8)}sh-progress-bar.flat.accent{--pbt-bg: var(--accent-8)}sh-progress-bar.flat.warn{--pbt-bg: var(--warn-8)}sh-progress-bar.flat.error{--pbt-bg: var(--error-8)}sh-progress-bar.flat.success{--pbt-bg: var(--success-8)}sh-progress-bar.raised{--pbt-bg: var(--base-g3)}sh-progress-bar.raised.primary{--pbt-bg: var(--primary-g3)}sh-progress-bar.raised.accent{--pbt-bg: var(--accent-g3)}sh-progress-bar.raised.warn{--pbt-bg: var(--warn-g3)}sh-progress-bar.raised.error{--pbt-bg: var(--error-g3)}sh-progress-bar.raised.success{--pbt-bg: var(--success-g3)}@keyframes indeterminate-progress-bar-stripes-background{0%{animation-timing-function:cubic-bezier(.15,0,.515058,.409685);transform:translate(0)}25%{animation-timing-function:cubic-bezier(.31033,.284058,.8,.733712);transform:translate(37.651913%)}48.35%{animation-timing-function:cubic-bezier(.4,.627035,.6,.902026);transform:translate(84.386165%)}to{transform:translate(160.277782%)}}@keyframes indeterminate-progress-bar-stripes{0%{transform:translate(0)}20%{animation-timing-function:cubic-bezier(.5,0,.701732,.495819);transform:translate(0)}59.15%{animation-timing-function:cubic-bezier(.302435,.381352,.55,.956352);transform:translate(83.67142%)}to{transform:translate(200.611057%)}}
1
+ import {E as E1,bd as ce,g as gw,V as Eg,ah as Yg,aE as yg,x as xC}from'./main-2ZYVV4C4.js';var d=(()=>{class s{constructor(){this.value=E1(void 0),this.color=E1(null),this.variant=E1(null),this.hostClasses=ce("progressBar",{color:this.color,variant:this.variant});}static{this.\u0275fac=function(r){return new(r||s)};}static{this.\u0275cmp=gw({type:s,selectors:[["sh-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100"],hostVars:3,hostBindings:function(r,a){r&2&&(yg("aria-valuenow",a.value()!==void 0?a.value():null),xC(a.hostClasses()));},inputs:{value:[1,"value"],color:[1,"color"],variant:[1,"variant"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(r,a){r&1&&Eg(0,"div",0),r&2&&Yg("width",a.value(),"%");},styles:[`sh-progress-bar{--pb-h: .5rem;--pb-b: var(--base-4);--pb-bg: var(--base-3);--pb-br: var(--shape-2);--pbt-bg: var(--base-6);--pbt-br: inherit;display:block;width:100%;height:var(--pb-h);position:relative;overflow:hidden;border-radius:var(--pb-br);background:var(--pb-bg)}sh-progress-bar .progress-bar{position:absolute;top:0;left:0;bottom:0;height:100%;transform-origin:top left;border-radius:var(--pbt-br);background:var(--pbt-bg)}sh-progress-bar.indeterminate .progress-bar{right:0;animation:indeterminate-progress-bar-stripes 2s linear infinite}sh-progress-bar.indeterminate:after{content:"";position:absolute;inset:0;background-color:var(--base-2);animation:indeterminate-progress-bar-stripes-background 2s linear infinite;transform-origin:top left}sh-progress-bar.primary{--pbt-bg: var(--primary-8)}sh-progress-bar.accent{--pbt-bg: var(--accent-8)}sh-progress-bar.warn{--pbt-bg: var(--warn-8)}sh-progress-bar.error{--pbt-bg: var(--error-8)}sh-progress-bar.success{--pbt-bg: var(--success-8)}sh-progress-bar.outlined{--pb-b: var(--border-10);--pb-bg: var(--base-1)}sh-progress-bar.outlined:after{background-color:inherit}sh-progress-bar.flat{--pbt-bg: var(--base-8)}sh-progress-bar.flat:after{background-color:inherit}sh-progress-bar.flat.primary{--pbt-bg: var(--primary-8)}sh-progress-bar.flat.accent{--pbt-bg: var(--accent-8)}sh-progress-bar.flat.warn{--pbt-bg: var(--warn-8)}sh-progress-bar.flat.error{--pbt-bg: var(--error-8)}sh-progress-bar.flat.success{--pbt-bg: var(--success-8)}sh-progress-bar.raised{--pbt-bg: var(--base-g3)}sh-progress-bar.raised.primary{--pbt-bg: var(--primary-g3)}sh-progress-bar.raised.accent{--pbt-bg: var(--accent-g3)}sh-progress-bar.raised.warn{--pbt-bg: var(--warn-g3)}sh-progress-bar.raised.error{--pbt-bg: var(--error-g3)}sh-progress-bar.raised.success{--pbt-bg: var(--success-g3)}@keyframes indeterminate-progress-bar-stripes-background{0%{animation-timing-function:cubic-bezier(.15,0,.515058,.409685);transform:translate(0)}25%{animation-timing-function:cubic-bezier(.31033,.284058,.8,.733712);transform:translate(37.651913%)}48.35%{animation-timing-function:cubic-bezier(.4,.627035,.6,.902026);transform:translate(84.386165%)}to{transform:translate(160.277782%)}}@keyframes indeterminate-progress-bar-stripes{0%{transform:translate(0)}20%{animation-timing-function:cubic-bezier(.5,0,.701732,.495819);transform:translate(0)}59.15%{animation-timing-function:cubic-bezier(.302435,.381352,.55,.956352);transform:translate(83.67142%)}to{transform:translate(200.611057%)}}
2
2
  `],encapsulation:2});}}return s})();export{d};
@@ -1,2 +1,2 @@
1
- import {h as hw,S as aC,Y as cC}from'./main-3NL5M6JB.js';var o=["*"],c=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=hw({type:t,selectors:[["sh-list"]],hostAttrs:["role","list"],ngContentSelectors:o,decls:1,vars:0,template:function(e,n){e&1&&(aC(),cC(0));},styles:[`.sh-sortable{position:relative}.sh-sortable.dragging [draggable],.sh-sortable.dragging .sortable-ghost{cursor:grabbing;transition:transform 40ms linear}.sh-sortable [draggable]{transform:translate(0);transition:none;z-index:2;-webkit-user-select:none;user-select:none}.sh-sortable:not(.sh-sortable-tree) [draggable]{background:var(--base-1)}.sh-sortable:not(.sh-sortable-tree) [draggable]:not(:has([sort-handle])){cursor:grab}.sh-sortable .sortable-ghost{opacity:.5;z-index:10}.sh-sortable.item-dragged-out .sortable-ghost{display:none}.sh-sortable [sort-handle]{cursor:grab}.sh-sortable.sh-sortable-tree [draggable]{transform:none!important;transition:none!important;z-index:auto}.sh-sortable.sh-sortable-tree .sortable-ghost{z-index:0!important}.sh-sortable.sh-sortable-tree .sortable-ghost.drop-before:before,.sh-sortable.sh-sortable-tree .sortable-ghost.drop-after:after{display:none!important}.sh-sortable.sh-sortable-tree .sortable-ghost.drop-inside{outline:none!important;background:inherit!important}.sh-sortable.sh-sortable-tree .drop-inside{background:var(--primary-3)!important;outline:2px solid var(--primary-8)!important;outline-offset:-.125rem;border-radius:var(--shape-1, 4px)}.sh-sortable.sh-sortable-tree .drop-inside .node-icon,.sh-sortable.sh-sortable-tree .drop-inside sh-tree-node .sh-tree-node-left sh-icon{color:var(--primary-8)!important}.sh-sortable.sh-sortable-tree .drop-before{position:relative;z-index:20}.sh-sortable.sh-sortable-tree .drop-before:before{content:"";position:absolute;top:-.1875rem;left:calc(var(--tree-padding-left, 12px) + var(--tree-depth, 0) * var(--tree-indent-step, 12px) + .375rem);right:var(--tree-padding-right, 6px);height:.375rem;background-image:radial-gradient(circle at 3px 3px,var(--primary-8) 3px,transparent 3px),linear-gradient(to right,var(--primary-8),var(--primary-8));background-repeat:no-repeat,no-repeat;background-position:left center,6px center;background-size:6px 6px,100% 2px;z-index:10;pointer-events:none}.sh-sortable.sh-sortable-tree .drop-after{position:relative;z-index:20}.sh-sortable.sh-sortable-tree .drop-after:after{content:"";position:absolute;bottom:-.1875rem;left:calc(var(--tree-padding-left, 12px) + var(--tree-depth, 0) * var(--tree-indent-step, 12px) + .375rem);right:var(--tree-padding-right, 6px);height:.375rem;background-image:radial-gradient(circle at 3px 3px,var(--primary-8) 3px,transparent 3px),linear-gradient(to right,var(--primary-8),var(--primary-8));background-repeat:no-repeat,no-repeat;background-position:left center,6px center;background-size:6px 6px,100% 2px;z-index:10;pointer-events:none}sh-list{--list-s: var(--shape-2);--list-active-bg: var(--base-1);--list-color: var(--base-9);--list-active-bs: none;--list-item-b: 1px solid transparent;--list-item-active-b: 1px solid --list-active-bg;--list-p: 1.25rem 1rem;--list-item-p: .5rem .75rem;--list-item-gap: .5rem;width:100%;padding:var(--list-p);gap:.5rem;display:flex;flex-direction:column}sh-list.base-1{--list-active-bg: var(--base-1);--list-active-bs: var(--box-shadow-20)}sh-list.outlined{--list-active-bg: transparent;--list-active-bs: none;--list-item-b: 1px solid transparent;--list-item-active-b: 1px solid var(--primary-8)}sh-list.type-b{--list-p: 0;--list-item-p: .625rem .75rem;--list-item-gap: .75rem;--list-s: var(--shape-2)}sh-list.type-b>[action],sh-list.type-b>[item]{color:var(--base-10)}sh-list.type-b>[action].active,sh-list.type-b>[action].selected,sh-list.type-b>[item].active,sh-list.type-b>[item].selected{background:rgb(from var(--base-3) r g b/90%);color:var(--base-12)}sh-list.type-b>[action].active sh-icon:first-child,sh-list.type-b>[action].selected sh-icon:first-child,sh-list.type-b>[item].active sh-icon:first-child,sh-list.type-b>[item].selected sh-icon:first-child{color:var(--primary-8)}sh-list.type-b>[action].active .description,sh-list.type-b>[action].selected .description,sh-list.type-b>[item].active .description,sh-list.type-b>[item].selected .description{color:var(--base-9)}sh-list.type-b>[action] sh-icon:first-child,sh-list.type-b>[item] sh-icon:first-child{font-size:1.125rem;color:var(--base-7);transition:color .15s ease}sh-list.type-b>[action] .text-group,sh-list.type-b>[item] .text-group{display:flex;flex-direction:column;flex:1}sh-list.type-b>[action] .label,sh-list.type-b>[item] .label{font:var(--paragraph-30B)}sh-list.type-b>[action] .description,sh-list.type-b>[item] .description{font:var(--paragraph-40);color:var(--base-7);transition:color .15s ease}sh-list.type-b>[action] .shortcut,sh-list.type-b>[item] .shortcut{display:flex;gap:.25rem}sh-list.type-b>[action] .shortcut kbd,sh-list.type-b>[item] .shortcut kbd{font-family:inherit;background:rgb(from var(--base-3) r g b/80%);border:1px solid rgb(from var(--base-4) r g b/60%);color:var(--base-8);border-radius:var(--shape-1);padding:.125rem .375rem;font-size:.6875rem;line-height:1;box-shadow:0 1px #0000001a}sh-list:empty{padding:0}sh-list>[title]{color:var(--base-8);margin:0 .75rem;font:var(--paragraph-30);line-height:1.5rem}sh-list[shsortable] [item]:active{transform:scale(1)}sh-list>[action],sh-list>[item]{border-radius:var(--list-s);padding:var(--list-item-p);font:var(--paragraph-30B);color:var(--list-color);border:var(--list-item-b);display:flex;align-items:center;gap:var(--list-item-gap);width:100%;-webkit-user-select:none;user-select:none;appearance:none;border:0;text-align:left;text-wrap:balance;background-color:transparent;text-decoration:none;transition:transform 125ms linear,box-shadow 125ms linear;transform:scale(1)}sh-list>[action]:active,sh-list>[item]:active{--list-active-bs: var(--box-shadow-10);transform:scale(.98)}sh-list>[action]:focus,sh-list>[item]:focus{outline:none}sh-list>[action]:focus-visible,sh-list>[item]:focus-visible{outline:2px solid var(--primary-8);outline-offset:2px}sh-list>[action] [suffix],sh-list>[item] [suffix]{margin-left:auto;color:var(--base-8)}sh-list :has(input),sh-list>[action]{cursor:pointer}sh-list>[item]:has(input:checked),sh-list>[action]:has(input:checked),sh-list>[action].active,sh-list>[action].selected{--list-color: var(--base-12);background-color:var(--list-active-bg);box-shadow:var(--list-active-bs);border:var(--list-item-active-b)}sh-list.primary>[item]:has(input:checked) sh-icon:first-child,sh-list.primary>[action]:has(input:checked) sh-icon:first-child,sh-list.primary>[action].active sh-icon:first-child,sh-list.primary>[action].selected sh-icon:first-child{color:var(--primary-8)}sh-list.accent>[item]:has(input:checked) sh-icon:first-child,sh-list.accent>[action]:has(input:checked) sh-icon:first-child,sh-list.accent>[action].active sh-icon:first-child,sh-list.accent>[action].selected sh-icon:first-child{color:var(--accent-8)}sh-list.warn>[item]:has(input:checked) sh-icon:first-child,sh-list.warn>[action]:has(input:checked) sh-icon:first-child,sh-list.warn>[action].active sh-icon:first-child,sh-list.warn>[action].selected sh-icon:first-child{color:var(--warn-8)}sh-list.error>[item]:has(input:checked) sh-icon:first-child,sh-list.error>[action]:has(input:checked) sh-icon:first-child,sh-list.error>[action].active sh-icon:first-child,sh-list.error>[action].selected sh-icon:first-child{color:var(--error-8)}sh-list.success>[item]:has(input:checked) sh-icon:first-child,sh-list.success>[action]:has(input:checked) sh-icon:first-child,sh-list.success>[action].active sh-icon:first-child,sh-list.success>[action].selected sh-icon:first-child{color:var(--success-8)}
1
+ import {g as gw,S as lC,Y as uC}from'./main-2ZYVV4C4.js';var o=["*"],c=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["sh-list"]],hostAttrs:["role","list"],ngContentSelectors:o,decls:1,vars:0,template:function(e,n){e&1&&(lC(),uC(0));},styles:[`.sh-sortable{position:relative}.sh-sortable.dragging [draggable],.sh-sortable.dragging .sortable-ghost{cursor:grabbing;transition:transform 40ms linear}.sh-sortable [draggable]{transform:translate(0);transition:none;z-index:2;-webkit-user-select:none;user-select:none}.sh-sortable:not(.sh-sortable-tree) [draggable]{background:var(--base-1)}.sh-sortable:not(.sh-sortable-tree) [draggable]:not(:has([sort-handle])){cursor:grab}.sh-sortable .sortable-ghost{opacity:.5;z-index:10}.sh-sortable.item-dragged-out .sortable-ghost{display:none}.sh-sortable [sort-handle]{cursor:grab}.sh-sortable.sh-sortable-tree [draggable]{transform:none!important;transition:none!important;z-index:auto}.sh-sortable.sh-sortable-tree .sortable-ghost{z-index:0!important}.sh-sortable.sh-sortable-tree .sortable-ghost.drop-before:before,.sh-sortable.sh-sortable-tree .sortable-ghost.drop-after:after{display:none!important}.sh-sortable.sh-sortable-tree .sortable-ghost.drop-inside{outline:none!important;background:inherit!important}.sh-sortable.sh-sortable-tree .drop-inside{background:var(--primary-3)!important;outline:2px solid var(--primary-8)!important;outline-offset:-.125rem;border-radius:var(--shape-1, 4px)}.sh-sortable.sh-sortable-tree .drop-inside .node-icon,.sh-sortable.sh-sortable-tree .drop-inside sh-tree-node .sh-tree-node-left sh-icon{color:var(--primary-8)!important}.sh-sortable.sh-sortable-tree .drop-before{position:relative;z-index:20}.sh-sortable.sh-sortable-tree .drop-before:before{content:"";position:absolute;top:-.1875rem;left:calc(var(--tree-padding-left, 12px) + var(--tree-depth, 0) * var(--tree-indent-step, 12px) + .375rem);right:var(--tree-padding-right, 6px);height:.375rem;background-image:radial-gradient(circle at 3px 3px,var(--primary-8) 3px,transparent 3px),linear-gradient(to right,var(--primary-8),var(--primary-8));background-repeat:no-repeat,no-repeat;background-position:left center,6px center;background-size:6px 6px,100% 2px;z-index:10;pointer-events:none}.sh-sortable.sh-sortable-tree .drop-after{position:relative;z-index:20}.sh-sortable.sh-sortable-tree .drop-after:after{content:"";position:absolute;bottom:-.1875rem;left:calc(var(--tree-padding-left, 12px) + var(--tree-depth, 0) * var(--tree-indent-step, 12px) + .375rem);right:var(--tree-padding-right, 6px);height:.375rem;background-image:radial-gradient(circle at 3px 3px,var(--primary-8) 3px,transparent 3px),linear-gradient(to right,var(--primary-8),var(--primary-8));background-repeat:no-repeat,no-repeat;background-position:left center,6px center;background-size:6px 6px,100% 2px;z-index:10;pointer-events:none}sh-list{--list-s: var(--shape-2);--list-active-bg: var(--base-1);--list-color: var(--base-9);--list-active-bs: none;--list-item-b: 1px solid transparent;--list-item-active-b: 1px solid --list-active-bg;--list-p: 1.25rem 1rem;--list-item-p: .5rem .75rem;--list-item-gap: .5rem;width:100%;padding:var(--list-p);gap:.5rem;display:flex;flex-direction:column}sh-list.base-1{--list-active-bg: var(--base-1);--list-active-bs: var(--box-shadow-20)}sh-list.outlined{--list-active-bg: transparent;--list-active-bs: none;--list-item-b: 1px solid transparent;--list-item-active-b: 1px solid var(--primary-8)}sh-list.type-b{--list-p: 0;--list-item-p: .625rem .75rem;--list-item-gap: .75rem;--list-s: var(--shape-2)}sh-list.type-b>[action],sh-list.type-b>[item]{color:var(--base-10)}sh-list.type-b>[action].active,sh-list.type-b>[action].selected,sh-list.type-b>[item].active,sh-list.type-b>[item].selected{background:rgb(from var(--base-3) r g b/90%);color:var(--base-12)}sh-list.type-b>[action].active sh-icon:first-child,sh-list.type-b>[action].selected sh-icon:first-child,sh-list.type-b>[item].active sh-icon:first-child,sh-list.type-b>[item].selected sh-icon:first-child{color:var(--primary-8)}sh-list.type-b>[action].active .description,sh-list.type-b>[action].selected .description,sh-list.type-b>[item].active .description,sh-list.type-b>[item].selected .description{color:var(--base-9)}sh-list.type-b>[action] sh-icon:first-child,sh-list.type-b>[item] sh-icon:first-child{font-size:1.125rem;color:var(--base-7);transition:color .15s ease}sh-list.type-b>[action] .text-group,sh-list.type-b>[item] .text-group{display:flex;flex-direction:column;flex:1}sh-list.type-b>[action] .label,sh-list.type-b>[item] .label{font:var(--paragraph-30B)}sh-list.type-b>[action] .description,sh-list.type-b>[item] .description{font:var(--paragraph-40);color:var(--base-7);transition:color .15s ease}sh-list.type-b>[action] .shortcut,sh-list.type-b>[item] .shortcut{display:flex;gap:.25rem}sh-list.type-b>[action] .shortcut kbd,sh-list.type-b>[item] .shortcut kbd{font-family:inherit;background:rgb(from var(--base-3) r g b/80%);border:1px solid rgb(from var(--base-4) r g b/60%);color:var(--base-8);border-radius:var(--shape-1);padding:.125rem .375rem;font-size:.6875rem;line-height:1;box-shadow:0 1px #0000001a}sh-list:empty{padding:0}sh-list>[title]{color:var(--base-8);margin:0 .75rem;font:var(--paragraph-30);line-height:1.5rem}sh-list[shsortable] [item]:active{transform:scale(1)}sh-list>[action],sh-list>[item]{border-radius:var(--list-s);padding:var(--list-item-p);font:var(--paragraph-30B);color:var(--list-color);border:var(--list-item-b);display:flex;align-items:center;gap:var(--list-item-gap);width:100%;-webkit-user-select:none;user-select:none;appearance:none;border:0;text-align:left;text-wrap:balance;background-color:transparent;text-decoration:none;transition:transform 125ms linear,box-shadow 125ms linear;transform:scale(1)}sh-list>[action]:active,sh-list>[item]:active{--list-active-bs: var(--box-shadow-10);transform:scale(.98)}sh-list>[action]:focus,sh-list>[item]:focus{outline:none}sh-list>[action]:focus-visible,sh-list>[item]:focus-visible{outline:2px solid var(--primary-8);outline-offset:2px}sh-list>[action] [suffix],sh-list>[item] [suffix]{margin-left:auto;color:var(--base-8)}sh-list :has(input),sh-list>[action]{cursor:pointer}sh-list>[item]:has(input:checked),sh-list>[action]:has(input:checked),sh-list>[action].active,sh-list>[action].selected{--list-color: var(--base-12);background-color:var(--list-active-bg);box-shadow:var(--list-active-bs);border:var(--list-item-active-b)}sh-list.primary>[item]:has(input:checked) sh-icon:first-child,sh-list.primary>[action]:has(input:checked) sh-icon:first-child,sh-list.primary>[action].active sh-icon:first-child,sh-list.primary>[action].selected sh-icon:first-child{color:var(--primary-8)}sh-list.accent>[item]:has(input:checked) sh-icon:first-child,sh-list.accent>[action]:has(input:checked) sh-icon:first-child,sh-list.accent>[action].active sh-icon:first-child,sh-list.accent>[action].selected sh-icon:first-child{color:var(--accent-8)}sh-list.warn>[item]:has(input:checked) sh-icon:first-child,sh-list.warn>[action]:has(input:checked) sh-icon:first-child,sh-list.warn>[action].active sh-icon:first-child,sh-list.warn>[action].selected sh-icon:first-child{color:var(--warn-8)}sh-list.error>[item]:has(input:checked) sh-icon:first-child,sh-list.error>[action]:has(input:checked) sh-icon:first-child,sh-list.error>[action].active sh-icon:first-child,sh-list.error>[action].selected sh-icon:first-child{color:var(--error-8)}sh-list.success>[item]:has(input:checked) sh-icon:first-child,sh-list.success>[action]:has(input:checked) sh-icon:first-child,sh-list.success>[action].active sh-icon:first-child,sh-list.success>[action].selected sh-icon:first-child{color:var(--success-8)}
2
2
  `],encapsulation:2});}}return t})();export{c};
@@ -0,0 +1,2 @@
1
+ import {J as J$1}from'./chunk-CGnjVnmu.js';import {T,ai as fe$1,a6 as be,ab as J,a5 as m,e as ee,G as Ge,ad as sy,C as Zu,au as h,g as gw,_ as _t,a as N,v,Z as Zi,F as Fg,d as Ig,W as Wl,w as Hg,j as jg,l as lT,o as oC,t as bD,b as bE,z as vg,a3 as XC,K as Kg,c as uT,M as MD,s as sC,af as eo,B as w1,E as E1,ag as D1,N as Nt,Q as Qa,S as lC,Y as uC,H as HC,x as xC,aE as yg,O as qg,R as hC,h as aC,J as im,aa as Yl}from'./main-2ZYVV4C4.js';import {F as Fe$1}from'./chunk-DBkkb6OR.js';import {j as jn,G as Gn,T as Tn,Z as Ze,y as yt,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-iGzJokt-.js';var me=["input"],fe=[[["label"]]],Fe=["label"],_e=["ngProjectAs","label",5,["label"]];function ge(n,o){if(n&1&&(Zi(0,"div",3),HC(1),Wl()),n&2){let e=aC();bE(),im(e.files()[0].name);}}function he(n,o){if(n&1&&(Zi(0,"div",3),HC(1),Wl()),n&2){let e=aC();bE(),Yl("",e.files().length," files selected");}}function Te(n,o){if(n&1&&(Zi(0,"div",4),HC(1),Wl()),n&2){let e=aC();bE(),im(e.filesOver()?e.overlayText():e.placeholder());}}var ue=(()=>{class n{constructor(){this._el=T(eo),this.inputRef=w1.required("input"),this.filesOver=Ge(false),this.multiple=E1(),this.accept=E1(null),this.placeholder=D1("Click or drag files here"),this.overlayText=E1("Drop files here"),this.files=D1([]),this.fileUploadClasses=Nt(()=>this._el.nativeElement.classList.toString()),this.inputEffect=Qa(()=>{let e=this.inputRef().nativeElement;e&&(e.placeholder&&this.placeholder.set(e.placeholder),e.addEventListener("dragover",t=>{t.preventDefault(),this.filesOver.set(true);}),e.addEventListener("dragleave",t=>{t.preventDefault(),this.filesOver.set(false);}),e.addEventListener("drop",t=>{t.preventDefault(),this.filesOver.set(false);let i=t.dataTransfer?.files;i&&i.length>0&&(this.handleFileUpload(Array.from(i)),e.files=i);}),e.addEventListener("change",t=>{t.preventDefault(),this.handleFileUpload(Array.from(t.target.files));}));});}handleFileUpload(e){this.multiple()?this.files.update(t=>[...t,...e]):this.files.set(e);}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=gw({type:n,selectors:[["sh-file-upload"]],viewQuery:function(t,i){t&1&&qg(i.inputRef,me,5),t&2&&hC();},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:Fe,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(t,i){t&1&&(lC(fe),Zi(0,"sh-form-field"),uC(1,0,_e),Zi(2,"div",2,0),lT(4,ge,2,1,"div",3)(5,he,2,1,"div",3)(6,Te,2,1,"div",4),Ig(7,"input",5,1)(9,"div",6),Wl(),Zi(10,"sh-icon",7),HC(11,"upload-simple"),Wl()()),t&2&&(xC(i.fileUploadClasses()),bE(4),uT(i.files().length===1?4:i.files().length>1?5:6),bE(3),yg("multiple",i.multiple())("accept",i.accept()),bE(2),Kg("files-over",i.filesOver()));},dependencies:[Fe$1,N],styles:[`sh-file-upload{--fu-bg-active: rgba(0, 0, 0, .1);display:flex;flex-direction:column;gap:.75rem;position:relative;width:100%}sh-file-upload sh-list{border-radius:var(--shape-3);background-color:var(--base-2)}sh-file-upload .files-text,sh-file-upload .placeholder{color:var(--base-8);font:var(--paragraph-30B)}sh-file-upload input{position:absolute;opacity:0;inset:0;cursor:pointer;z-index:100}sh-file-upload .bg-overlay{opacity:0;position:absolute;inset:.0625rem;background-color:var(--fu-bg-active);transition:opacity 125ms linear;z-index:0;border-radius:var(--ff-s)}sh-file-upload .bg-overlay.files-over{opacity:1}
2
+ `],encapsulation:2});}}return n})();var Ce=()=>["/"];function ve(n,o){n&1&&(Zi(0,"sh-form-field")(1,"label",14),oC(2,3),Wl(),Ig(3,"input",15),bD(),Wl()),n&2&&(bE(3),MD());}var d=new jn,M=class n{#t=T(fe$1);#i=T(be);#o=T(J);#n=T(m);#e=T(ee);isImporting=Ge(false);isSecureFile=Ge(false);isValid=Ge(false);importForm=d.group({config:d.control(""),cmdline:d.control(false),import_metadata:d.control(false),direct:d.control(false),passphrase:d.control("")});selectedFile=Ge([]);onFileDropped(o){let e=o[0];if(e){let t=new FileReader;this.isSecureFile.set(e.type!=="application/json"),t.onload=this.#a.bind(this),t.readAsArrayBuffer(e);}}#a(o){let e=o.target?.result;this.isSecureFile.set(this.#r(e)!=="json"),this.importForm.patchValue({config:this.#l(e)}),this.isValid.set(this.importForm.value.config!=="");}#r(o){let e=new Uint8Array(o);if(e.length>=5&&e[0]===65&&e[1]===69&&e[2]===83&&e[4]===0)return "aes";try{let t=new TextDecoder().decode(o),i=JSON.parse(t);if(typeof i=="object"&&i!==null)return "json"}catch{}return "unknown"}#l(o){let e=new Uint8Array(o),t=e.byteLength,i="";for(let s=0;s<t;s++)i+=String.fromCharCode(e[s]);return btoa(i)}submit(){this.isImporting.set(true);let o=this.importForm.value.direct??false;sy(()=>this.#o.postApiV1BackupsImport({body:this.importForm.value})).pipe(Zu(()=>this.isImporting.set(false))).subscribe({next:e=>{if(o){this.#t.success("Backup imported successfully."),this.#e.navigate(["/"]);return}let t=this.#n.addDraftBackup(e.data);this.#e.navigate(["/backup-draft",t]);},error:e=>{let t=e.message||$localize`Unknown error`;this.#i.open(h,{data:{title:$localize`Failed to import backup`,message:t,confirmText:$localize`OK`,cancelText:void 0}});}});}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=gw({type:n,selectors:[["app-import"]],decls:19,vars:8,consts:()=>{let o;o=$localize` Import backup configuration ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SH_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SH_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SH_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SH_ICON: Import ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,o=sC(o);let e;e=$localize`Import Metadata`;let t;t=$localize`Save now`;let i;return i=$localize`Passphrase`,[o,e,t,i,[1,"actions"],["shButton","","type","button",1,"outlined",3,"routerLink"],["shButton","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["accept",".json,.aes",3,"filesChange","files"],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","import_metadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","autocomplete","disabled","formControlName","passphrase"]]},template:function(e,t){e&1&&(Zi(0,"header")(1,"h3"),Fg(2,0),Zi(3,"div",4)(4,"button",5),Ig(5,"sh-icon"),Wl(),Zi(6,"button",6),Hg("click",function(){return t.submit()}),Ig(7,"sh-icon"),Wl()(),jg(),Wl()(),Zi(8,"form",7)(9,"sh-file-upload",8),Hg("filesChange",function(s){return t.onFileDropped(s)}),Wl(),lT(10,ve,4,0,"sh-form-field"),Zi(11,"sh-toggle",9)(12,"label",10),oC(13,1),Wl(),Ig(14,"input",11),bD(),Wl(),Zi(15,"sh-toggle",9)(16,"label",12),oC(17,2),Wl(),Ig(18,"input",13),bD(),Wl()()),e&2&&(bE(4),vg("routerLink",XC(7,Ce)),bE(2),Kg("loading",t.isImporting()),vg("disabled",t.isImporting()||!t.isValid()),bE(2),vg("formGroup",t.importForm),bE(),vg("files",t.selectedFile()),bE(),uT(t.isSecureFile()?10:-1),bE(4),MD(),bE(4),MD());},dependencies:[Gn,Tn,Ze,yt,Rn,Pn,gn,hn,_t,Fe$1,N,v,J$1,ue],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}sh-file-upload[_ngcontent-%COMP%]{width:100%}"]})};export{M as default};
@@ -0,0 +1 @@
1
+ var o=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import('./chunk-DaXXLSfy.js')},{path:"encryption",loadComponent:()=>import('./chunk-DKRWta24.js').then(function(n){return n.c})},{path:"select-files",loadComponent:()=>import('./chunk-DKRWta24.js').then(function(n){return n.a})},{path:"options",loadComponent:()=>import('./chunk-DKRWta24.js').then(function(n){return n.b})},{path:":taskid/progress",loadComponent:()=>import('./chunk-B891gwjc.js')}],t=o;export{t as default};
@@ -0,0 +1,2 @@
1
+ import {m}from'./chunk-7T5O8Syb.js';import {O}from'./chunk-iU19kwHx.js';import {T,ab as J,a6 as be,e as ee,ax as W,G as Ge,au as h,ad as sy,C as Zu,g as gw,u as ue,v,a as N,aL as ci,aJ as m$1,Z as Zi,o as oC,W as Wl,w as Hg,aO as sb,l as lT,F as Fg,d as Ig,j as jg,b as bE,z as vg,av as Vg,aP as lb,aw as iC,c as uT,K as Kg,s as sC,a1 as pT,h as aC,a2 as hT,i as ET,P as Pd,L as Ld,H as HC,aD as sm,aa as Yl,aT as cb,J as im}from'./main-2ZYVV4C4.js';import {U}from'./chunk-CnZx831x.js';var oe=(o,n)=>n.Version;function te(o,n){if(o&1&&(HC(0),sb(1,"bytes")),o&2){let i=aC().$implicit;Yl(" (",cb(1,1,i.FileSizes),") ");}}function re(o,n){if(o&1&&(Zi(0,"span",17),HC(1),Wl()),o&2){let i=aC().$implicit;bE(),im(i.Label);}}function se(o,n){if(o&1){let i=ET();Zi(0,"sh-checkbox",10),Hg("checkedChange",function(r){let S=Pd(i).$implicit,C=aC(2);return Ld(C.toggleVersion(S.Version,r))}),Zi(1,"span",16),HC(2),sb(3,"date"),lT(4,te,2,3),lT(5,re,2,1,"span",17),Wl()();}if(o&2){let i=n.$implicit,e=aC(2);vg("checked",e.isVersionSelected(i.Version)),bE(2),sm(" ",i.Version,": ",lb(3,5,i.Time,"medium")," "),bE(2),uT(i.FileSizes?4:-1),bE(),uT(i.Label?5:-1);}}function _e(o,n){if(o&1&&(Zi(0,"div",11),pT(1,se,6,8,"sh-checkbox",15,oe),Wl()),o&2){let i=aC();bE(),hT(i.versions());}}var R=class o{#e=T(m);#o=T(J);#i=T(be);#n=T(ee);#t=T(W);versions=this.#e.versions;versionScope=this.#e.versionScope;specificVersions=this.#e.specificVersions;selectedVersion=this.#e.selectedVersion;selectedVersionItem=this.#e.selectedVersionItem;selectedPathsArray=this.#e.selectedPathsArray;isPurging=Ge(false);isVersionSelected(n){return this.specificVersions().includes(n)}toggleVersion(n,i){this.specificVersions.update(e=>i?[...e,n]:e.filter(r=>r!==n));}goBack(){this.#n.navigate(["../select-files"],{relativeTo:this.#t});}purgeFiles(){let n=this.selectedPathsArray();if(n.length===0)return;let i=this.versionScope(),e=i==="all"?null:i==="current"?[parseInt(this.selectedVersion())]:this.specificVersions();if(e!==null&&e.length===0)return;let r=n.length,S=i==="all"?$localize`all versions`:i==="current"?$localize`version ${this.selectedVersion()}`:$localize`version(s) ${e.join(", ")}`;this.#i.open(h,{data:{title:$localize`Confirm removal`,message:$localize`Are you sure you want to remove ${r} file(s) from ${S}? This cannot be undone.`,confirmText:$localize`Remove files`,cancelText:$localize`Cancel`},closed:C=>{C&&(this.isPurging.set(true),sy(()=>this.#o.postApiV2BackupPurgeFiles({body:{BackupId:this.#e.backupId(),Filters:n.map(l=>l.endsWith("/")||l.endsWith("\\")?`${l}*`:l),Versions:e}})).pipe(Zu(()=>this.isPurging.set(false))).subscribe({next:()=>{this.#n.navigate(["/"]);},error:l=>{this.#i.open(h,{data:{title:$localize`Failed to remove files`,message:l.message??$localize`Unknown error`,confirmText:$localize`OK`,cancelText:void 0}});}}));}});}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=gw({type:o,selectors:[["app-purge-version-scope"]],decls:20,vars:14,consts:()=>{let n;n=$localize` When removing files from a backup, Duplicati will add a new backup version without the removed files, and then remove the existing one. After this, a compaction will remove any data that is no longer needed. This process cannot be reverted.
2
+ `;let i;i=$localize`Choose which versions to remove the selected files from:`;let e;e=$localize` All versions `;let r;r=$localize` Active version (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let S;S=$localize` Specific versions `;let C;C=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let l;l=$localize`{VAR_PLURAL, plural, =1 {1 file} other {{INTERPOLATION} files}}`,l=sC(l,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let I;return I=$localize` Remove ${l}:ICU@@2159106180826349718: `,[n,i,e,r,S,C,I,["color","primary"],[1,"version-scope"],[1,"radios"],[1,"primary","raised",3,"checkedChange","checked"],[1,"versions-list"],[1,"form-actions"],["shButton","","type","button",3,"click","disabled"],["shButton","",1,"raised","error",3,"click","disabled"],[1,"primary","raised",3,"checked"],[1,"version"],[1,"label"]]},template:function(i,e){i&1&&(Zi(0,"sh-alert",7),oC(1,0),Wl(),Zi(2,"div",8)(3,"p"),oC(4,1),Wl(),Zi(5,"div",9)(6,"sh-radio",10),Hg("checkedChange",function(){return e.versionScope.set("all")}),oC(7,2),Wl(),Zi(8,"sh-radio",10),Hg("checkedChange",function(){return e.versionScope.set("current")}),oC(9,3),sb(10,"date"),Wl(),Zi(11,"sh-radio",10),Hg("checkedChange",function(){return e.versionScope.set("specific")}),oC(12,4),Wl()(),lT(13,_e,3,0,"div",11),Wl(),Zi(14,"div",12)(15,"button",13),Hg("click",function(){return e.goBack()}),Fg(16,5),Ig(17,"sh-icon"),jg(),Wl(),Zi(18,"button",14),Hg("click",function(){return e.purgeFiles()}),oC(19,6),Wl()()),i&2&&(bE(6),vg("checked",e.versionScope()==="all"),bE(2),vg("checked",e.versionScope()==="current"),bE(2),Vg(lb(10,11,e.selectedVersionItem()?.Time,"medium")),iC(9),bE(),vg("checked",e.versionScope()==="specific"),bE(2),uT(e.versionScope()==="specific"?13:-1),bE(2),vg("disabled",e.isPurging()),bE(3),Kg("loading",e.isPurging()),vg("disabled",e.isPurging()||e.selectedPathsArray().length===0||e.versionScope()==="specific"&&e.specificVersions().length===0),bE(),Vg(e.selectedPathsArray().length)(e.selectedPathsArray().length),iC(19));},dependencies:[ue,v,U,N,O,ci,m$1],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1 0;min-height:25rem;overflow:hidden;gap:1rem;padding-top:2rem;padding-bottom:1.5rem}sh-alert[_ngcontent-%COMP%]{max-width:31.25rem;flex-shrink:0}.version-scope[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;min-height:0}.version-scope[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;flex-shrink:0}.version-scope[_ngcontent-%COMP%] .radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;flex-shrink:0}.versions-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;flex:0 1 auto;min-height:0;max-height:25rem;overflow:auto;padding:.5rem 1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);background:var(--base-1)}.versions-list[_ngcontent-%COMP%] .version[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.versions-list[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:var(--base-9)}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:auto;padding-top:1rem;flex-shrink:0}"]})};export{R as default};
@@ -0,0 +1,2 @@
1
+ import {T,N as Nt,g as gw,U as ql,H as HC,X as Gl,l as lT,b as bE,c as uT,ab as J,G as Ge,ad as sy,C as Zu,a_ as ee,a1 as pT,h as aC,ah as Yg,a2 as hT,J as im,aq as dT}from'./main-2ZYVV4C4.js';var l=class e{#e=T(J);isLoaded=Ge(false);crashLog=Ge(null);load(){this.isLoaded()||sy(()=>this.#e.getApiV1LogdataCrashlog()).pipe(Zu(()=>this.isLoaded.set(true))).subscribe({next:t=>{this.crashLog.set(t.Logdata??null);}});}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"})};function O(e,t){e&1&&(ql(0,"div",0),HC(1,"Loading ..."),Gl());}function S(e,t){e&1&&(ql(0,"div",0),HC(1,"No crash log found"),Gl());}function w(e,t){if(e&1&&(ql(0,"li"),HC(1),Gl()),e&2){let n=t.$implicit;bE(),im(n);}}function I(e,t){if(e&1&&(ql(0,"div",2)(1,"code")(2,"ol",3),pT(3,w,2,1,"li",null,dT),Gl()()()),e&2){let n=aC();Yg("grid-column","1 / -1")("height","auto"),bE(3),hT(n.breakIntoLines(n.crashLog()));}}var m=class e{#e=T(l);logsLoading=Nt(()=>!this.#e.isLoaded());crashLog=this.#e.crashLog;ngOnInit(){this.#e.load();}breakIntoLines(t){return t?t.split(`
2
+ `):[]}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=gw({type:e,selectors:[["app-crashlogs"]],decls:5,vars:1,consts:[[1,"loading"],[2,"white-space","pre-wrap",3,"grid-column","height"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol"]],template:function(n,d){n&1&&(ql(0,"h3"),HC(1,"Crash log"),Gl(),lT(2,O,2,0,"div",0)(3,S,2,0,"div",0)(4,I,5,4,"div",1)),n&2&&(bE(2),uT(d.logsLoading()?2:d.crashLog()==null||d.crashLog()?.length===0?3:4));},styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"]})};export{m as default};
@@ -0,0 +1 @@
1
+ import {t as te}from'./chunk-DmCJ7w-M.js';import'./chunk-C1-31fA7.js';import'./chunk-iU19kwHx.js';import'./chunk-C185qUb-.js';import'./chunk-DuRr4rDS.js';import'./chunk-C1py21yb.js';import'./chunk-3YzyUT-a.js';import'./chunk-CKUlUN3q.js';import {T,ab as J$1,ax as W,N as Nt,G as Ge,B as w1,a$ as x1,ad as sy,g as gw,a as N,v,_ as _t,d as Ig,Z as Zi,F as Fg,j as jg,W as Wl,w as Hg,l as lT,a1 as pT,b as bE,z as vg,b0 as eb,c as uT,a2 as hT,s as sC,O as qg,R as hC,o as oC,H as HC,aa as Yl,aq as dT}from'./main-2ZYVV4C4.js';import'./chunk-BGuvkLC9.js';import'./chunk-DBkkb6OR.js';import'./chunk-iGzJokt-.js';import'./chunk-DneBfCBh.js';import'./chunk-Bq_vr6Q3.js';import'./chunk-D9jPw9Ov.js';import {L}from'./chunk-Cm7JSdTO.js';import'./chunk-CnZx831x.js';var w=["logOutput"],K=o=>({state:o});function x(o,t){o&1&&oC(0,3,1);}function q(o,t){o&1&&oC(0,3,2);}function H(o,t){o&1&&oC(0,3,3);}function J(o,t){o&1&&oC(0,3,4);}function X(o,t){if(o&1&&(HC(0),Ig(1,"br")),o&2){let e=t.$implicit;Yl(" ",e," ");}}var z=o=>{if(typeof o!="object"||o===null)return;let t=o;if(typeof t.status=="number")return t.status;let e=t.error;if(typeof e!="object"||e===null)return;let n=e.status;return typeof n=="number"?n:void 0},S=class o{#e=T(J$1);#n=T(W);#i=L(this.#n.params);#s=L(this.#n.queryParams);runId=Nt(()=>this.#i()?.runId);stateId=Nt(()=>this.#s()?.state);offset=Ge(0);status=Ge("starting");messageLog=Ge([]);logOutput=w1.required("logOutput");autoScrollEnabled=Ge(true);scrollToBottomEffect=x1(()=>{if(this.messageLog(),!this.autoScrollEnabled())return;let t=this.logOutput().nativeElement;t.scrollTop=t.scrollHeight;});interval=setInterval(()=>this.#a(),1e3);#a(){sy(()=>this.#e.getApiV1CommandlineByRunid({path:{runid:this.runId()},query:{offset:this.offset(),pagesize:100}})).subscribe({next:t=>{let e=t.Items??[],n=(t.Offset??this.offset())+e.length;this.messageLog.update(s=>[...s,...e]),this.offset.set(n),this.evalStatus(t);},error:t=>this.#o(t)});}evalStatus(t){if(t.Started!==true)return;let e=this.offset()>=(t.Count??this.offset());if(t.Finished===true&&e){this.status.set("finished"),this.#t();return}this.status.set("started");}updateAutoScroll(){let t=this.logOutput().nativeElement,e=t.scrollHeight-t.scrollTop-t.clientHeight;this.autoScrollEnabled.set(e<=2);}abort(){sy(()=>this.#e.postApiV1CommandlineByRunidAbort({path:{runid:this.runId()}})).subscribe({next:()=>{this.status.set("aborted"),this.#t();},error:t=>this.#o(t,"finished")});}#o(t,e){z(t)===404&&(e&&this.status.set(e),this.#t());}#t(){clearInterval(this.interval);}ngOnDestroy(){this.#t();}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=gw({type:o,selectors:[["app-commandline-result"]],viewQuery:function(e,n){e&1&&qg(n.logOutput,w,5),e&2&&hC();},decls:19,vars:7,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let n;return n=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,n=sC(n),[["logOutput",""],t,e,n,[1,"back"],["type","button","shButton","","routerLink","../",1,"small",3,"queryParams"],["type","button","shButton","",1,"small",3,"click"],[1,"status"],[3,"scroll"]]},template:function(e,n){e&1&&(Ig(0,"app-status-bar"),Zi(1,"section")(2,"div",4)(3,"button",5),Fg(4,1),Ig(5,"sh-icon"),jg(),Wl()(),Zi(6,"h3"),Fg(7,2),Zi(8,"button",6),Hg("click",function(){return n.abort()}),Wl(),jg(),Wl(),Zi(9,"div",7),Fg(10,3),lT(11,x,1,0),lT(12,q,1,0),lT(13,H,1,0),lT(14,J,1,0),jg(),Wl(),Zi(15,"code",8,0),Hg("scroll",function(){return n.updateAutoScroll()}),pT(17,X,2,1,null,null,dT),Wl()()),e&2&&(bE(3),vg("queryParams",eb(5,K,n.stateId())),bE(8),uT(n.status()==="starting"?11:-1),bE(),uT(n.status()==="started"?12:-1),bE(),uT(n.status()==="finished"?13:-1),bE(),uT(n.status()==="aborted"?14:-1),bE(3),hT(n.messageLog()));},dependencies:[te,N,v,_t],styles:["[_nghost-%COMP%]{display:block;height:100%;min-height:0;width:100%}section[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:column;height:100%;min-height:0;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);flex:1 1 auto;min-height:0;overflow:auto;white-space:pre}"]})};export{S as default};
@@ -0,0 +1 @@
1
+ import {a as at}from'./chunk-DneBfCBh.js';import {v}from'./chunk-Bq_vr6Q3.js';import {R}from'./chunk-D9jPw9Ov.js';import {T as T$1,e as ee,G as Ge,Q as Qa,g as gw,v as v$1,a0 as de,a as N,Z as Zi,w as Hg,o as oC,W as Wl,a1 as pT,n as lm,H as HC,d as Ig,b as bE,a2 as hT,y as cm,z as vg,K as Kg,a3 as XC,a4 as fT,p as qC,J as im}from'./main-2ZYVV4C4.js';import {U}from'./chunk-CnZx831x.js';import'./chunk-Cm7JSdTO.js';var D=()=>({maxWidth:"520px",width:"100%"});function z(r,i){if(r&1&&(Zi(0,"div",11)(1,"sh-icon",26),HC(2,"check-circle"),Wl(),Zi(3,"span"),HC(4),Wl()()),r&2){let o=i.$implicit;bE(4),im(o);}}function J(r,i){if(r&1&&(Zi(0,"div",11)(1,"sh-icon",26),HC(2,"check-circle"),Wl(),Zi(3,"span"),HC(4),Wl()()),r&2){let o=i.$implicit;bE(4),im(o);}}var T=class r{#n=T$1(R);#e=T$1(ee);#t=T$1(v);hoveringConnect=Ge(false);skipDialogOpen=Ge(false);hasConnectionLink=Ge(false);primaryBenefits=[$localize`Zero-configuration cloud storage`,$localize`Centralized backup reporting and monitoring`,$localize`Remote management from the dashboard`,$localize`Notifications if backups stop running`];secondaryBenefits=[$localize`Get notified if your backups stop working`,$localize`Access AI powered troubleshooting`,$localize`View all backups from one place`];#i=Qa(()=>{let i=this.#t.state();i=="unknown"||i=="inactive"||this.setWelcomeShown();});setWelcomeShown(){this.#n.setShownWelcomePage().subscribe(()=>{this.#e.navigate([""]);});}openSkipDialog(){this.skipDialogOpen.set(true);}connect(){let i=this.hasConnectionLink()?"/welcome/connect/link":"/welcome/connect/logon";this.#e.navigate([i]);}static \u0275fac=function(o){return new(o||r)};static \u0275cmp=gw({type:r,selectors:[["app-select"]],decls:36,vars:7,consts:()=>{let i;i=$localize`Proceed without connecting to console`;let o;o=$localize`Connect to console`;let n;n=$localize`Consolidate all your backup reports in one place.`;let l;l=$localize`I have a connection link`;let c;c=$localize`Are you sure?`;let O;O=$localize`Cancel`;let b;return b=$localize`Proceed without connecting`,[i,o,n,l,c,O,b,[1,"left"],[1,"actionables"],[1,"without-connecting",3,"click"],[1,"benefits"],[1,"benefit"],["shButton","",1,"connect","outlined","primary",3,"mouseenter","mouseleave","click"],[1,"action"],[1,"connection-link-label"],[1,"primary","raised","connection-link-check",3,"checkedChange","checked"],[3,"shTooltip"],[1,"right"],["src","assets/images/console.avif","alt",""],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"dialog-benefits-header"],[1,"dialog-benefits"],["footer",""],["type","button","shButton","",1,"outlined",3,"click"],[1,"primary"]]},template:function(o,n){o&1&&(Zi(0,"section",7)(1,"div",8)(2,"div",9),Hg("click",function(){return n.openSkipDialog()}),oC(3,0),Wl(),Zi(4,"div",10),pT(5,z,5,1,"div",11,fT),Wl(),Zi(7,"button",12),Hg("mouseenter",function(){return n.hoveringConnect.set(true)})("mouseleave",function(){return n.hoveringConnect.set(false)})("click",function(){return n.connect()}),Zi(8,"div",13)(9,"h2"),oC(10,1),Wl(),Zi(11,"p"),oC(12,2),Wl()()(),Zi(13,"div",14)(14,"sh-checkbox",15),lm("checkedChange",function(c){return qC(n.hasConnectionLink,c)||(n.hasConnectionLink=c),c}),Wl(),Zi(15,"span"),oC(16,3),Wl(),Zi(17,"sh-icon",16),HC(18," information "),Wl()()()(),Zi(19,"section",17),Ig(20,"img",18),Wl(),Zi(21,"sh-dialog",19),lm("isOpenChange",function(c){return qC(n.skipDialogOpen,c)||(n.skipDialogOpen=c),c}),Zi(22,"header",20)(23,"h3"),oC(24,4),Wl()(),Zi(25,"div",21)(26,"h4",22),HC(27," You can use Duplicati without a Console connection, but connecting to the Console will expand the capabilities of Duplicati. "),Wl(),Zi(28,"div",23),pT(29,J,5,1,"div",11,fT),Wl()(),Zi(31,"footer",24)(32,"button",25),Hg("click",function(){return n.skipDialogOpen.set(false)}),oC(33,5),Wl(),Zi(34,"button",25),Hg("click",function(){return n.setWelcomeShown()}),oC(35,6),Wl()()()),o&2&&(bE(5),hT(n.primaryBenefits),bE(9),cm("checked",n.hasConnectionLink),bE(3),vg("shTooltip","Connection links are used for Enterprise and large-scale installations"),bE(2),Kg("hovering",n.hoveringConnect()),bE(2),cm("isOpen",n.skipDialogOpen),vg("options",XC(6,D)),bE(8),hT(n.secondaryBenefits));},dependencies:[v$1,U,de,N,at],styles:["[_nghost-%COMP%]{display:grid;grid-template-columns:1fr 2fr;grid-template-rows:1fr;height:100vh;overflow:hidden;padding:2rem}@media only screen and (max-width:768px){[_nghost-%COMP%]{display:flex;flex-direction:column-reverse;height:auto;padding:4rem 1rem;gap:2rem}}.left[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:center}@media only screen and (max-width:768px){.left[_ngcontent-%COMP%]{align-items:flex-start}}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1rem}@media only screen and (max-width:768px){.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%]{width:100%}}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] sh-divider[_ngcontent-%COMP%]{width:100%}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:1.5rem 0}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;color:var(--base-11)}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1.25rem;flex-shrink:0}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.875rem}.right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 2rem 0}.right.hovering[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-color:var(--primary-8)}.right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:90%;max-height:90%;object-fit:contain;border:1px solid var(--base-3);border-radius:var(--shape-2);box-shadow:var(--box-shadow-20);transition:border-color .2s ease-in-out}.connect[_ngcontent-%COMP%]{height:auto;padding:2rem}.without-connecting[_ngcontent-%COMP%]{text-decoration:underline;cursor:pointer;margin:0}.without-connecting[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.dialog-benefits-header[_ngcontent-%COMP%]{margin-bottom:1rem}.dialog-benefits[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;margin-bottom:2rem}.dialog-benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:.5rem;color:var(--base-11)}.dialog-benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1.25rem;flex-shrink:0}.dialog-benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.875rem}.connection-link-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem}"]})};export{T as default};
@@ -0,0 +1,2 @@
1
+ import {T,a7 as D,E as E1,N as Nt,g as gw,a1 as pT,a2 as hT,e as ee,ax as W,a6 as be,ai as fe$1,ab as J,D as D$1,G as Ge,ad as sy,au as h,aA as N,v,u as ue$1,al as dm,Z as Zi,H as HC,W as Wl,l as lT,w as Hg,o as oC,am as GC,b as bE,x as xC,J as im,c as uT,d as Ig,z as vg,h as aC,ap as zC,aa as Yl,F as Fg,j as jg,as as Yp,i as ET,P as Pd,L as Ld,aR as zl,aS as Ql}from'./main-2ZYVV4C4.js';import {d}from'./chunk-BGuvkLC9.js';function re(i,t){if(i&1&&(Zi(0,"div",11),HC(1),Wl()),i&2){aC();let e=zC(0);bE(),Yl(" ",e.Message," ");}}function ce(i,t){if(i&1&&(Zi(0,"div"),Fg(1,1),Ig(2,"a",15),jg(),Wl()),i&2){let e=aC();bE(2),vg("href",e.downloadLink(),Yp);}}function le(i,t){if(i&1){let e=ET();Zi(0,"button",14),Hg("click",function(){Pd(e);let o=aC(),l=zC(0);return Ld(o.doRepair(l.BackupID))}),oC(1,2),Wl();}}function _e(i,t){if(i&1){let e=ET();Zi(0,"button",14),Hg("click",function(){Pd(e);let o=aC(),l=zC(0);return Ld(o.doDownloadBugreport(l))}),oC(1,3),Wl();}}function se(i,t){if(i&1&&Ig(0,"sh-progress-bar",17),i&2){let e=aC(2);vg("value",e.serverState()?.UpdateDownloadProgress);}}function de(i,t){if(i&1){let e=ET();Zi(0,"div",11),zl(1),oC(2,4),Ql(),Zi(3,"a",16),HC(4),Wl(),lT(5,se,1,1,"sh-progress-bar",17),Zi(6,"button",14),Hg("click",function(){Pd(e);let o=aC();return Ld(o.doShowUpdate())}),oC(7,5),Wl()();}if(i&2){let e=aC(),n=zC(0);bE(3),vg("href",e.serverState()?.UpdateDownloadLink,Yp),bE(),im(n.Message),bE(),uT(e.serverState()?.UpdaterState==="Downloading"?5:-1);}}function Ne(i,t){if(i&1){let e=ET();Zi(0,"button",14),Hg("click",function(){Pd(e);let o=aC(),l=zC(0);return Ld(o.doShowLog(l.BackupID))}),oC(1,6),Wl();}}function Te(i,t){if(i&1){let e=ET();Zi(0,"button",14),Hg("click",function(){Pd(e);let o=aC();return Ld(o.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),oC(1,7),Wl();}}function Ce(i,t){if(i&1){let e=ET();Zi(0,"button",14),Hg("click",function(){Pd(e);let o=aC();return Ld(o.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),oC(1,8),Wl();}}var pe={Error:"error",Warning:"warn",Information:"primary"},x=class i{#e=T(ee);#a=T(W);#r=T(be);#t=T(fe$1);#i=T(D);#n=T(J);#c=T(D$1);#o=Ge(null);serverState=this.#i.serverState;index=E1.required();notification=E1.required();downloadLink=Nt(()=>this.#o()||this.notification().DownloadLink||"");deleteNotificationByIndex(){this.#i.deleteNotification(this.index());}deleteAllNotifications(){this.#i.deleteAllNotifications();}getAlertType(t){return t&&pe[t]||"primary"}doShowLog(t){sy(()=>this.#n.getApiV1BackupByIdIsactive({path:{id:t}})).subscribe({next:e=>{this.#e.navigate(["/backup/"+t+"/log"]);},error:e=>{if(e.status===404){let n={title:$localize`Error`,message:$localize`The backup is missing, has it been deleted?`,confirmText:$localize`OK`,cancelText:null};parseInt(t)+""!=t&&(n={title:$localize`Error`,message:$localize`The backup was temporary and does not exist anymore, so the log data is lost`,confirmText:$localize`OK`,cancelText:null}),this.#r.open(h,{maxWidth:"550px",width:"100%",data:n});}else this.#t.error($localize`Failed to find backup: `+e.message);}});}doRepair(t){sy(()=>this.#n.postApiV1BackupByIdRepair({path:{id:t}})).subscribe({next:()=>{this.#t.success($localize`Backup repaired`),this.#e.navigate(["./"],{onSameUrlNavigation:"reload",relativeTo:this.#a});},error:e=>{this.#t.error($localize`Failed to repair backup: `+e.message);}});}doShowUpdate(){this.#e.navigate(["/about/changelog"]);}doShowLink(t){window.open(t,"_blank");}doDownloadBugreport(t){let e=t.Action.slice(19);sy(()=>this.#n.postApiV1AuthIssuetokenByOperation({path:{operation:"bugreport"}})).subscribe({next:n=>{if(!n.Token){this.#t.error("Failed to get bug report URL: No token generated");return}let o=N(),l=this.#c.xsrfQueryParam(),m=`${location.origin}${o}/api/v1/bugreport/${e}?token=${n.Token}${l?`&${l}`:""}`;t.DownloadLink=m,this.#o.set(m),this.triggerDownload(m);},error:n=>{this.#t.error(`Failed to get bug report URL: ${n.message}`);}});}triggerDownload(t){let e=document.createElement("a");e.href=t,e.download="",e.style.display="none",document.body.appendChild(e);try{e.click();}catch{}document.body.removeChild(e);}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=gw({type:i,selectors:[["app-notification"]],inputs:{index:[1,"index"],notification:[1,"notification"]},decls:16,vars:12,consts:()=>{let t;t=$localize`Dismiss`;let e;e=$localize` If the backup file was not downloaded automatically, ${"\uFFFD#2\uFFFD"}:START_LINK:right click and choose "Save as …"${"\uFFFD/#2\uFFFD"}:CLOSE_LINK:`;let n;n=$localize`Repair`;let o;o=$localize`Download`;let l;l=$localize`New update found:`;let m;m=$localize`Show Update`;let L;L=$localize`Show Log`;let $;$=$localize` Show Help `;let w;return w=$localize` Show Help `,[t,e,n,o,l,m,L,$,w,["ship-alert-title",""],["ship-alert-content","",1,"content"],[1,"message"],[1,"sub-actions"],["shButton","",1,"small","outlined"],["shButton","",1,"small","outlined",3,"click"],["target","_blank",3,"href"],[3,"href"],[3,"value"]]},template:function(e,n){if(e&1&&(dm(0),Zi(1,"sh-alert")(2,"div",9),HC(3),Wl(),Zi(4,"div",10),lT(5,re,2,1,"div",11),lT(6,ce,3,1,"div"),Zi(7,"div",12),lT(8,le,2,0,"button",13),lT(9,_e,2,0,"button",13),lT(10,de,8,3,"div",11),lT(11,Ne,2,0,"button",13),lT(12,Te,2,0,"button",13),lT(13,Ce,2,0,"button",13),Zi(14,"button",14),Hg("click",function(){return n.deleteNotificationByIndex()}),oC(15,0),Wl()()()()),e&2){let o=GC(n.notification());bE(),xC(n.getAlertType(o.Type)),bE(2),im(o.Title),bE(2),uT(o.Action!=="update:new"&&o.Action!=="update:manual"?5:-1),bE(),uT(n.downloadLink()?6:-1),bE(2),uT(o.Message?.includes("please run repair")?8:-1),bE(),uT(o.Action?.startsWith("bug-report:created:")&&!n.downloadLink()?9:-1),bE(),uT(o.Action==="update:new"?10:-1),bE(),uT(o.Action==="backup:show-log"?11:-1),bE(),uT(o.Action==="config:issue:unencrypted-database"?12:-1),bE(),uT(o.Action==="config:issue:windows-folder-used"?13:-1);}},dependencies:[d,v,ue$1],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.message[_ngcontent-%COMP%]{max-height:12.5rem;overflow:auto}.sub-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem}"]})};var Ie=(i,t)=>t.ID;function fe(i,t){if(i&1&&Ig(0,"app-notification",1),i&2){let e=t.$implicit,n=t.$index;vg("index",n)("notification",e);}}function ue(i,t){i&1&&(Zi(0,"div",2)(1,"p"),oC(2,0),Wl()());}var ne=class i{#e=T(D);notificationFilterPredicate=E1();notifications=Nt(()=>{let t=this.notificationFilterPredicate()?.predicate,e=this.#e.notifications();return typeof t!="function"?e:e.filter(t)});static \u0275fac=function(e){return new(e||i)};static \u0275cmp=gw({type:i,selectors:[["app-notifications"]],inputs:{notificationFilterPredicate:[1,"notificationFilterPredicate"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`No more notifications`,[t,[3,"index","notification"],[1,"notification-list"]]},template:function(e,n){e&1&&pT(0,fe,1,2,"app-notification",1,Ie,false,ue,3,0,"div",2),e&2&&hT(n.notifications());},dependencies:[x],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;justify-content:flex-end}.notification-list[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"]})};
2
+ export{ne as n,x};
@@ -0,0 +1,2 @@
1
+ import {R}from'./chunk-D9jPw9Ov.js';import {br as x,T,a6 as be,ab as J,f,k,bk as B,I,G as Ge,N as Nt,Q as Qa,ad as sy,au as h,a_ as ee}from'./main-2ZYVV4C4.js';var C=new x("WindowToken",{providedIn:"root",factory:()=>typeof window<"u"?window:{}});var v=class a{#c=T(C);#g=T(be);#t=T(J);#o=T(f);#l=T(k);#n=T(B);#u=T(R);#m=T(I);constructor(){this.#l.subscribe("remotecontrol");}repeatRegisterTimer=null;#r=null;#s=0;#f=5;#h=2e3;pendingRefresh=false;state=Ge("unknown");claimUrl=Ge(null);registerUrl=Ge("");customRegisterUrl=Ge("");statusMessage=Nt(()=>{let e=this.state();return e==="connecting"?$localize`Console connection is enabled but not connected`:e==="connected"?$localize`Connected to console`:e==="registering"?$localize`Registering machine...`:e==="registeringfaulted"?$localize`Registration failed`:e==="registered"?$localize`Registered, waiting for accept`:e==="disabled"?$localize`Console connection is configured but not enabled`:e==="unknown"?$localize`...loading...`:$localize`Console connection is not set up`});sysInfoEffect=Qa(()=>{let e=this.#o.systemInfo();e&&this.registerUrl.set(e.RemoteControlRegistrationUrl??"");});remoteEffect=Qa(()=>{let e=this.#l.remoteControlState();e&&this.#e(e);});relayEffect=Qa(()=>{this.#m.relayIsEnabled()&&this.state.set("connected");});pendingRefreshEffect=Qa(()=>{this.#n.isConnectionMethodSet()&&this.pendingRefresh&&(this.pendingRefresh=false,this.refreshRemoteControlStatus());});#a=Nt(()=>{let e=this.#n.getConnectionMethod()==="websocket",i=this.#o.hasWsRemoteControl();return e&&i});#d(e){e.RegistrationUrl&&this.claimUrl.set(e.RegistrationUrl),e.IsConnected?this.state.set("connected"):e.IsEnabled?this.state.set("connecting"):e.CanEnable?this.state.set("disabled"):e.IsRegisteringFaulted?this.state.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");}#e(e){if(this.#s=0,this.#d(e),this.#a())return;let i=this.state();this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),i==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{sy(()=>this.#t.postApiV1RemotecontrolRegisterWait()).subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},5e3)),(i==="connecting"||i==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{sy(()=>this.#t.getApiV1RemotecontrolStatus()).subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},5e3)),e.IsRegistering&&e.CanEnable&&sy(()=>this.#t.deleteApiV1RemotecontrolRegister()).subscribe({next:t=>this.#e(t)});}#i(e){if(this.#r!==null&&(clearTimeout(this.#r),this.#r=null),this.#s>=this.#f){this.state.set("registeringfaulted"),this.#s=0;return}let i=this.#h*Math.pow(2,this.#s);this.#s++,this.#r=setTimeout(()=>{this.#r=null,sy(()=>this.#t.getApiV1RemotecontrolStatus()).subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},i);}refreshRemoteControlStatus(){if(!this.#a()){if(!this.#n.isConnectionMethodSet()){this.pendingRefresh=true;return}sy(()=>this.#t.getApiV1RemotecontrolStatus()).subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}}beginRemoteRegistration(e=false){this.state.set("registering"),sy(()=>this.#t.postApiV1RemotecontrolRegister({body:{RegistrationUrl:e?this.customRegisterUrl():this.registerUrl()}})).subscribe({next:i=>this.#e(i),error:i=>this.#i(i)});}cancelRemoteRegistration(){sy(()=>this.#t.deleteApiV1RemotecontrolRegister()).subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}enableRemoteControl(){sy(()=>this.#t.postApiV1RemotecontrolEnable()).subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}disableRemoteControl(){sy(()=>this.#t.postApiV1RemotecontrolDisable()).subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}deleteRemoteControl(){let e=this;this.#g.open(h,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete the console registration?`,confirmText:$localize`Delete registration`,cancelText:$localize`Cancel`},closed:i=>{i&&sy(()=>e.#t.deleteApiV1RemotecontrolRegistration()).subscribe({next:t=>e.#e(t),error:t=>e.#i(t)});}});}openConsole(e="/app/machines",i){let t=this.#u.serverSettings(),w=this.#o.systemInfo(),o="https://app.duplicati.com",g=w?.RemoteControlDashboardUrl??"";if(g.length>0&&(o=g),t&&t["remote-control-dashboard-url"]&&(o=t["remote-control-dashboard-url"]),o=new URL(o).origin+e,i){let T=new URLSearchParams(i);o+=`?${T.toString()}`;}this.#c.open(o,"_blank");}static \u0275fac=function(i){return new(i||a)};static \u0275prov=ee({token:a,factory:a.\u0275fac,providedIn:"root"})};
2
+ export{C,v};
@@ -1,2 +1,2 @@
1
- import {ba as ue,E as E1,bb as ce,T,q as qe,z as za,h as hw,bc as sg,S as aC,Y as cC,f as NC}from'./main-3NL5M6JB.js';var m=["*"],w=(()=>{class i extends ue{constructor(){super("[value], [step], [routerLinkActive], button, a","active",{hostRole:"tablist",itemRole:"tab"}),this.color=E1(null),this.hostClasses=ce("stepper",{color:this.color});let s=T(qe);if(za(()=>{this.items().forEach(e=>{if(!e.querySelector(".sh-radio")){let t=document.createElement("div");t.className="sh-radio";let r=document.createElement("div");r.className="radio sh-sheet",t.append(r),e.prepend(t);}});}),za(()=>{this.items(),this.updateProgress();}),typeof MutationObserver<"u"){let e=new MutationObserver(()=>{this.updateProgress();});e.observe(this.hostElement,{attributes:true,subtree:true,attributeFilter:["class"]}),s.onDestroy(()=>{e.disconnect();});}}updateProgress(){let s=Array.from(this.hostElement.querySelectorAll("[value], [step], [routerLinkActive], button, a")),e=s.findIndex(f=>f.classList.contains(this.activeClass));e===-1&&(e=0);let t=s.length,r=0;t>1&&(r=e/(t-1)*100),this.hostElement.style.setProperty("--stepper-progress",`${r}%`);}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=hw({type:i,selectors:[["sh-stepper"]],hostVars:2,hostBindings:function(e,t){e&2&&NC(t.hostClasses());},inputs:{color:[1,"color"]},features:[sg],ngContentSelectors:m,decls:1,vars:0,template:function(e,t){e&1&&(aC(),cC(0));},styles:[`.sh-radio,sh-radio{--radiod-c: var(--base-8);--radiod-o: 0;--radio-bc: var(--base-4);display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.sh-radio:focus-visible>.radio,.sh-radio:has(input:focus-visible)>.radio,sh-radio:focus-visible>.radio,sh-radio:has(input:focus-visible)>.radio{outline:2px solid var(--primary-8);outline-offset:2px}.sh-radio>input,sh-radio>input{appearance:none;position:absolute;inset:0;cursor:pointer}.sh-radio>input:focus,.sh-radio>input:focus-visible,sh-radio>input:focus,sh-radio>input:focus-visible{outline:none}.sh-radio:has(>input:not(.internal-input))>input.internal-input,sh-radio:has(>input:not(.internal-input))>input.internal-input{display:none}.sh-radio:has(input[disabled]),.sh-radio[disabled]:not([disabled=false]),sh-radio:has(input[disabled]),sh-radio[disabled]:not([disabled=false]){opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:initial}.sh-radio:has(input:checked),.sh-radio.active,sh-radio:has(input:checked),sh-radio.active{--radiod-o: 1}.sh-radio .radio,sh-radio .radio{display:flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;cursor:pointer;position:relative;border-radius:50%}.sh-radio .radio:after,sh-radio .radio:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;width:.375rem;height:.375rem;background-color:var(--radiod-c);opacity:var(--radiod-o);transition:opacity 125ms linear}.sh-radio.primary,sh-radio.primary{--radiod-c: var(--primary-8)}.sh-radio.accent,sh-radio.accent{--radiod-c: var(--accent-8)}.sh-radio.warn,sh-radio.warn{--radiod-c: var(--warn-8)}.sh-radio.error,sh-radio.error{--radiod-c: var(--error-8)}.sh-radio.success,sh-radio.success{--radiod-c: var(--success-8)}.sh-radio.flat,.sh-radio.raised,sh-radio.flat,sh-radio.raised{--radiod-c: #fff}.sh-radio.raised:not(:has(input:checked)):not(.active) .radio,.sh-radio.flat:not(:has(input:checked)):not(.active) .radio,sh-radio.raised:not(:has(input:checked)):not(.active) .radio,sh-radio.flat:not(:has(input:checked)):not(.active) .radio{background:transparent;border:var(--border-10);border-color:var(--radio-bc)}sh-stepper{--step-track-bg: var(--base-3);--step-c: var(--base-6);--step-radio-cbg: var(--base-1);--step-radio-c: var(--base-g2);--step-active-c: var(--base-8);display:flex;flex-wrap:nowrap;width:100%;position:relative}sh-stepper.primary{--step-c: var(--primary-6);--step-radio-cbg: var(--primary-1);--step-radio-c: var(--primary-g2);--step-active-c: var(--primary-8)}sh-stepper.accent{--step-c: var(--accent-6);--step-radio-cbg: var(--accent-1);--step-radio-c: var(--accent-g2);--step-active-c: var(--accent-8)}sh-stepper.warn{--step-c: var(--warn-6);--step-radio-cbg: var(--warn-1);--step-radio-c: var(--warn-g2);--step-active-c: var(--warn-8)}sh-stepper.error{--step-c: var(--error-6);--step-radio-cbg: var(--error-1);--step-radio-c: var(--error-g2);--step-active-c: var(--error-8)}sh-stepper.success{--step-c: var(--success-6);--step-radio-cbg: var(--success-1);--step-radio-c: var(--success-g2);--step-active-c: var(--success-8)}sh-stepper button{background:transparent;border:0;padding:0}sh-stepper button,sh-stepper [routerLinkActive],sh-stepper [step],sh-stepper [value]{flex:2 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.5rem;position:relative;color:var(--base-8);cursor:pointer;-webkit-user-select:none;user-select:none;outline:none;z-index:1}sh-stepper button:focus-visible .sh-radio,sh-stepper [routerLinkActive]:focus-visible .sh-radio,sh-stepper [step]:focus-visible .sh-radio,sh-stepper [value]:focus-visible .sh-radio{outline:2px solid var(--primary-8);outline-offset:2px;border-radius:50%}sh-stepper button:first-child,sh-stepper [routerLinkActive]:first-child,sh-stepper [step]:first-child,sh-stepper [value]:first-child{align-items:flex-start;flex:1 0}sh-stepper button:last-child,sh-stepper [routerLinkActive]:last-child,sh-stepper [step]:last-child,sh-stepper [value]:last-child{align-items:flex-end;flex:1 0;text-align:end}sh-stepper button:not(.active) .sh-radio,sh-stepper [routerLinkActive]:not(.active) .sh-radio,sh-stepper [step]:not(.active) .sh-radio,sh-stepper [value]:not(.active) .sh-radio{z-index:10}sh-stepper button:has(~button.active) .sh-radio,sh-stepper button:has(~[step].active) .sh-radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio,sh-stepper button:has(~[value].active) .sh-radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio,sh-stepper [step]:has(~button.active) .sh-radio,sh-stepper [step]:has(~[step].active) .sh-radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [step]:has(~[value].active) .sh-radio,sh-stepper [value]:has(~button.active) .sh-radio,sh-stepper [value]:has(~[step].active) .sh-radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [value]:has(~[value].active) .sh-radio{--radiod-o: 1}sh-stepper button:has(~button.active) .sh-radio .radio,sh-stepper button:has(~[step].active) .sh-radio .radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper button:has(~[value].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio .radio,sh-stepper [step]:has(~button.active) .sh-radio .radio,sh-stepper [step]:has(~[step].active) .sh-radio .radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [step]:has(~[value].active) .sh-radio .radio,sh-stepper [value]:has(~button.active) .sh-radio .radio,sh-stepper [value]:has(~[step].active) .sh-radio .radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [value]:has(~[value].active) .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper button .sh-radio .radio,sh-stepper [routerLinkActive] .sh-radio .radio,sh-stepper [step] .sh-radio .radio,sh-stepper [value] .sh-radio .radio{--radiod-c: var(--step-radio-cbg);width:1rem;height:1rem}sh-stepper button.active,sh-stepper [routerLinkActive].active,sh-stepper [step].active,sh-stepper [value].active{color:var(--step-active-c);outline:none}sh-stepper button.active .sh-radio,sh-stepper [routerLinkActive].active .sh-radio,sh-stepper [step].active .sh-radio,sh-stepper [value].active .sh-radio{z-index:0;--radiod-o: 1}sh-stepper button.active .sh-radio .radio,sh-stepper [routerLinkActive].active .sh-radio .radio,sh-stepper [step].active .sh-radio .radio,sh-stepper [value].active .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper:before{content:"";position:absolute;top:.375rem;left:0;z-index:0;right:0;height:.25rem;background-color:var(--step-track-bg)}sh-stepper:after{content:"";position:absolute;top:.375rem;left:0;z-index:0;width:var(--stepper-progress, 0%);height:.25rem;background-color:var(--step-active-c);transition:width .15s ease-out}
1
+ import {bc as ue,E as E1,bd as ce,T,q as qe,Q as Qa,g as gw,be as sg,S as lC,Y as uC,x as xC}from'./main-2ZYVV4C4.js';var m=["*"],w=(()=>{class i extends ue{constructor(){super("[value], [step], [routerLinkActive], button, a","active",{hostRole:"tablist",itemRole:"tab"}),this.color=E1(null),this.hostClasses=ce("stepper",{color:this.color});let s=T(qe);if(Qa(()=>{this.items().forEach(e=>{if(!e.querySelector(".sh-radio")){let t=document.createElement("div");t.className="sh-radio";let r=document.createElement("div");r.className="radio sh-sheet",t.append(r),e.prepend(t);}});}),Qa(()=>{this.items(),this.updateProgress();}),typeof MutationObserver<"u"){let e=new MutationObserver(()=>{this.updateProgress();});e.observe(this.hostElement,{attributes:true,subtree:true,attributeFilter:["class"]}),s.onDestroy(()=>{e.disconnect();});}}updateProgress(){let s=Array.from(this.hostElement.querySelectorAll("[value], [step], [routerLinkActive], button, a")),e=s.findIndex(f=>f.classList.contains(this.activeClass));e===-1&&(e=0);let t=s.length,r=0;t>1&&(r=e/(t-1)*100),this.hostElement.style.setProperty("--stepper-progress",`${r}%`);}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=gw({type:i,selectors:[["sh-stepper"]],hostVars:2,hostBindings:function(e,t){e&2&&xC(t.hostClasses());},inputs:{color:[1,"color"]},features:[sg],ngContentSelectors:m,decls:1,vars:0,template:function(e,t){e&1&&(lC(),uC(0));},styles:[`.sh-radio,sh-radio{--radiod-c: var(--base-8);--radiod-o: 0;--radio-bc: var(--base-4);display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.sh-radio:focus-visible>.radio,.sh-radio:has(input:focus-visible)>.radio,sh-radio:focus-visible>.radio,sh-radio:has(input:focus-visible)>.radio{outline:2px solid var(--primary-8);outline-offset:2px}.sh-radio>input,sh-radio>input{appearance:none;position:absolute;inset:0;cursor:pointer}.sh-radio>input:focus,.sh-radio>input:focus-visible,sh-radio>input:focus,sh-radio>input:focus-visible{outline:none}.sh-radio:has(>input:not(.internal-input))>input.internal-input,sh-radio:has(>input:not(.internal-input))>input.internal-input{display:none}.sh-radio:has(input[disabled]),.sh-radio[disabled]:not([disabled=false]),sh-radio:has(input[disabled]),sh-radio[disabled]:not([disabled=false]){opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:initial}.sh-radio:has(input:checked),.sh-radio.active,sh-radio:has(input:checked),sh-radio.active{--radiod-o: 1}.sh-radio .radio,sh-radio .radio{display:flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;cursor:pointer;position:relative;border-radius:50%}.sh-radio .radio:after,sh-radio .radio:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;width:.375rem;height:.375rem;background-color:var(--radiod-c);opacity:var(--radiod-o);transition:opacity 125ms linear}.sh-radio.primary,sh-radio.primary{--radiod-c: var(--primary-8)}.sh-radio.accent,sh-radio.accent{--radiod-c: var(--accent-8)}.sh-radio.warn,sh-radio.warn{--radiod-c: var(--warn-8)}.sh-radio.error,sh-radio.error{--radiod-c: var(--error-8)}.sh-radio.success,sh-radio.success{--radiod-c: var(--success-8)}.sh-radio.flat,.sh-radio.raised,sh-radio.flat,sh-radio.raised{--radiod-c: #fff}.sh-radio.raised:not(:has(input:checked)):not(.active) .radio,.sh-radio.flat:not(:has(input:checked)):not(.active) .radio,sh-radio.raised:not(:has(input:checked)):not(.active) .radio,sh-radio.flat:not(:has(input:checked)):not(.active) .radio{background:transparent;border:var(--border-10);border-color:var(--radio-bc)}sh-stepper{--step-track-bg: var(--base-3);--step-c: var(--base-6);--step-radio-cbg: var(--base-1);--step-radio-c: var(--base-g2);--step-active-c: var(--base-8);display:flex;flex-wrap:nowrap;width:100%;position:relative}sh-stepper.primary{--step-c: var(--primary-6);--step-radio-cbg: var(--primary-1);--step-radio-c: var(--primary-g2);--step-active-c: var(--primary-8)}sh-stepper.accent{--step-c: var(--accent-6);--step-radio-cbg: var(--accent-1);--step-radio-c: var(--accent-g2);--step-active-c: var(--accent-8)}sh-stepper.warn{--step-c: var(--warn-6);--step-radio-cbg: var(--warn-1);--step-radio-c: var(--warn-g2);--step-active-c: var(--warn-8)}sh-stepper.error{--step-c: var(--error-6);--step-radio-cbg: var(--error-1);--step-radio-c: var(--error-g2);--step-active-c: var(--error-8)}sh-stepper.success{--step-c: var(--success-6);--step-radio-cbg: var(--success-1);--step-radio-c: var(--success-g2);--step-active-c: var(--success-8)}sh-stepper button{background:transparent;border:0;padding:0}sh-stepper button,sh-stepper [routerLinkActive],sh-stepper [step],sh-stepper [value]{flex:2 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.5rem;position:relative;color:var(--base-8);cursor:pointer;-webkit-user-select:none;user-select:none;outline:none;z-index:1}sh-stepper button:focus-visible .sh-radio,sh-stepper [routerLinkActive]:focus-visible .sh-radio,sh-stepper [step]:focus-visible .sh-radio,sh-stepper [value]:focus-visible .sh-radio{outline:2px solid var(--primary-8);outline-offset:2px;border-radius:50%}sh-stepper button:first-child,sh-stepper [routerLinkActive]:first-child,sh-stepper [step]:first-child,sh-stepper [value]:first-child{align-items:flex-start;flex:1 0}sh-stepper button:last-child,sh-stepper [routerLinkActive]:last-child,sh-stepper [step]:last-child,sh-stepper [value]:last-child{align-items:flex-end;flex:1 0;text-align:end}sh-stepper button:not(.active) .sh-radio,sh-stepper [routerLinkActive]:not(.active) .sh-radio,sh-stepper [step]:not(.active) .sh-radio,sh-stepper [value]:not(.active) .sh-radio{z-index:10}sh-stepper button:has(~button.active) .sh-radio,sh-stepper button:has(~[step].active) .sh-radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio,sh-stepper button:has(~[value].active) .sh-radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio,sh-stepper [step]:has(~button.active) .sh-radio,sh-stepper [step]:has(~[step].active) .sh-radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [step]:has(~[value].active) .sh-radio,sh-stepper [value]:has(~button.active) .sh-radio,sh-stepper [value]:has(~[step].active) .sh-radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [value]:has(~[value].active) .sh-radio{--radiod-o: 1}sh-stepper button:has(~button.active) .sh-radio .radio,sh-stepper button:has(~[step].active) .sh-radio .radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper button:has(~[value].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio .radio,sh-stepper [step]:has(~button.active) .sh-radio .radio,sh-stepper [step]:has(~[step].active) .sh-radio .radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [step]:has(~[value].active) .sh-radio .radio,sh-stepper [value]:has(~button.active) .sh-radio .radio,sh-stepper [value]:has(~[step].active) .sh-radio .radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [value]:has(~[value].active) .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper button .sh-radio .radio,sh-stepper [routerLinkActive] .sh-radio .radio,sh-stepper [step] .sh-radio .radio,sh-stepper [value] .sh-radio .radio{--radiod-c: var(--step-radio-cbg);width:1rem;height:1rem}sh-stepper button.active,sh-stepper [routerLinkActive].active,sh-stepper [step].active,sh-stepper [value].active{color:var(--step-active-c);outline:none}sh-stepper button.active .sh-radio,sh-stepper [routerLinkActive].active .sh-radio,sh-stepper [step].active .sh-radio,sh-stepper [value].active .sh-radio{z-index:0;--radiod-o: 1}sh-stepper button.active .sh-radio .radio,sh-stepper [routerLinkActive].active .sh-radio .radio,sh-stepper [step].active .sh-radio .radio,sh-stepper [value].active .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper:before{content:"";position:absolute;top:.375rem;left:0;z-index:0;right:0;height:.25rem;background-color:var(--step-track-bg)}sh-stepper:after{content:"";position:absolute;top:.375rem;left:0;z-index:0;width:var(--stepper-progress, 0%);height:.25rem;background-color:var(--step-active-c);transition:width .15s ease-out}
2
2
  `],encapsulation:2});}}return i})();export{w};
@@ -1,8 +1,8 @@
1
- import {L as L$1}from'./chunk-DGvC49aU.js';import {T,ab as C$1,c6 as je$1,by as x$1,aG as pt$1,h as hw,V as Ul,n as nC,X as Wl,W as Eg,C as CE,aq as Tg,aD as YC,aj as l,ai as m,c7 as zp}from'./main-3NL5M6JB.js';function j(){return {async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}var R=j();function Te(n){R=n;}var P={exec:()=>null};function p(n,e=""){let r=typeof n=="string"?n:n.source,s={replace:(t,l)=>{let i=typeof l=="string"?l:l.source;return i=i.replace(x.caret,"$1"),r=r.replace(t,i),s},getRegex:()=>new RegExp(r,e)};return s}var Ne=(()=>{try{return !!new RegExp("(?<=1)(?<!1)")}catch{return false}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},Oe=/^(?:[ \t]*(?:\n|$))+/,Ze=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,De=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,E=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ge=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Q=/(?:[*+-]|\d{1,9}[.)])/,ze=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ae=p(ze).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),He=p(ze).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),F=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,je=/^[^\n]+/,U=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Qe=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Fe=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Q).getRegex(),q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",X=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ue=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",X).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e=p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),Xe=p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_e).getRegex(),W={blockquote:Xe,code:Ze,def:Qe,fences:De,heading:Ge,hr:E,html:Ue,lheading:Ae,list:Fe,newline:Oe,paragraph:_e,table:P,text:je},me=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),We=m(l({},W),{lheading:He,table:me,paragraph:p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",me).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()}),Ve=m(l({},W),{html:p(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",X).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(F).replace("hr",E).replace("heading",` *#{1,6} *[^
2
- ]`).replace("lheading",Ae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Je=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ke=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ce=/^( {2,}|\\)\n(?!\s*$)/,Ye=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,N=/[\p{P}\p{S}]/u,V=/[\s\p{P}\p{S}]/u,Pe=/[^\s\p{P}\p{S}]/u,et=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,V).getRegex(),Ee=/(?!~)[\p{P}\p{S}]/u,tt=/(?!~)[\s\p{P}\p{S}]/u,rt=/(?:[^\s\p{P}\p{S}]|~)/u,nt=p(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ne?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ve=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,st=p(ve,"u").replace(/punct/g,N).getRegex(),it=p(ve,"u").replace(/punct/g,Ee).getRegex(),Ie="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",lt=p(Ie,"gu").replace(/notPunctSpace/g,Pe).replace(/punctSpace/g,V).replace(/punct/g,N).getRegex(),at=p(Ie,"gu").replace(/notPunctSpace/g,rt).replace(/punctSpace/g,tt).replace(/punct/g,Ee).getRegex(),ot=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pe).replace(/punctSpace/g,V).replace(/punct/g,N).getRegex(),ct=p(/\\(punct)/,"gu").replace(/punct/g,N).getRegex(),ht=p(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),pt=p(X).replace("(?:-->|$)","-->").getRegex(),ut=p("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",pt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),L=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,gt=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",L).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Le=p(/^!?\[(label)\]\[(ref)\]/).replace("label",L).replace("ref",U).getRegex(),Be=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",U).getRegex(),kt=p("reflink|nolink(?!\\()","g").replace("reflink",Le).replace("nolink",Be).getRegex(),we=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,J={_backpedal:P,anyPunctuation:ct,autolink:ht,blockSkip:nt,br:Ce,code:Ke,del:P,emStrongLDelim:st,emStrongRDelimAst:lt,emStrongRDelimUnd:ot,escape:Je,link:gt,nolink:Be,punctuation:et,reflink:Le,reflinkSearch:kt,tag:ut,text:Ye,url:P},dt=m(l({},J),{link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",L).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",L).getRegex()}),D=m(l({},J),{emStrongRDelimAst:at,emStrongLDelim:it,url:p(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",we).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:p(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",we).getRegex()}),ft=m(l({},D),{br:p(Ce).replace("{2,}","*").getRegex(),text:p(D.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),I={normal:W,gfm:We,pedantic:Ve},A={normal:J,gfm:D,breaks:ft,pedantic:dt},xt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ye=n=>xt[n];function S(n,e){if(e){if(x.escapeTest.test(n))return n.replace(x.escapeReplace,ye)}else if(x.escapeTestNoEncode.test(n))return n.replace(x.escapeReplaceNoEncode,ye);return n}function Se(n){try{n=encodeURI(n).replace(x.percentDecode,"%");}catch{return null}return n}function $e(n,e){let r=n.replace(x.findPipe,(l,i,o)=>{let a=false,h=i;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}),s=r.split(x.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;t<s.length;t++)s[t]=s[t].trim().replace(x.slashPipe,"|");return s}function _(n,e,r){let s=n.length;if(s===0)return "";let t=0;for(;t<s;){let l=n.charAt(s-t-1);if(l===e&&true)t++;else break}return n.slice(0,s-t)}function bt(n,e){if(n.indexOf(e[1])===-1)return -1;let r=0;for(let s=0;s<n.length;s++)if(n[s]==="\\")s++;else if(n[s]===e[0])r++;else if(n[s]===e[1]&&(r--,r<0))return s;return r>0?-2:-1}function Re(n,e,r,s,t){let l=e.href,i=e.title||null,o=n[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=true;let a={type:n[0].charAt(0)==="!"?"image":"link",raw:r,href:l,title:i,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=false,a}function mt(n,e,r){let s=n.match(r.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
1
+ import {L as L$1}from'./chunk-Cm7JSdTO.js';import {T,ab as J$1,c7 as je$1,br as x$1,ad as sy,aI as pt$1,g as gw,U as ql,o as oC,X as Gl,V as Eg,b as bE,ar as Tg,aF as JC,ak as l,aj as m,c8 as Qp}from'./main-2ZYVV4C4.js';function j(){return {async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}var R=j();function ze(n){R=n;}var P={exec:()=>null};function p(n,e=""){let r=typeof n=="string"?n:n.source,s={replace:(t,l)=>{let i=typeof l=="string"?l:l.source;return i=i.replace(x.caret,"$1"),r=r.replace(t,i),s},getRegex:()=>new RegExp(r,e)};return s}var Oe=(()=>{try{return !!new RegExp("(?<=1)(?<!1)")}catch{return false}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},Ze=/^(?:[ \t]*(?:\n|$))+/,De=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ge=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,E=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,He=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Q=/(?:[*+-]|\d{1,9}[.)])/,Ae=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_e=p(Ae).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),je=p(Ae).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),F=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Qe=/^[^\n]+/,U=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Fe=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ue=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Q).getRegex(),q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",X=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Xe=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",X).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ce=p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),We=p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ce).getRegex(),W={blockquote:We,code:De,def:Fe,fences:Ge,heading:He,hr:E,html:Xe,lheading:_e,list:Ue,newline:Ze,paragraph:Ce,table:P,text:Qe},we=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),Ve=m(l({},W),{lheading:je,table:we,paragraph:p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",we).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()}),Je=m(l({},W),{html:p(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",X).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(F).replace("hr",E).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",_e).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Ke=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ye=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Pe=/^( {2,}|\\)\n(?!\s*$)/,et=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,N=/[\p{P}\p{S}]/u,V=/[\s\p{P}\p{S}]/u,Ee=/[^\s\p{P}\p{S}]/u,tt=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,V).getRegex(),ve=/(?!~)[\p{P}\p{S}]/u,rt=/(?!~)[\s\p{P}\p{S}]/u,nt=/(?:[^\s\p{P}\p{S}]|~)/u,st=p(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Oe?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ie=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,it=p(Ie,"u").replace(/punct/g,N).getRegex(),lt=p(Ie,"u").replace(/punct/g,ve).getRegex(),Le="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",at=p(Le,"gu").replace(/notPunctSpace/g,Ee).replace(/punctSpace/g,V).replace(/punct/g,N).getRegex(),ot=p(Le,"gu").replace(/notPunctSpace/g,nt).replace(/punctSpace/g,rt).replace(/punct/g,ve).getRegex(),ct=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ee).replace(/punctSpace/g,V).replace(/punct/g,N).getRegex(),ht=p(/\\(punct)/,"gu").replace(/punct/g,N).getRegex(),pt=p(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ut=p(X).replace("(?:-->|$)","-->").getRegex(),gt=p("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ut).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),L=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,kt=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",L).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Be=p(/^!?\[(label)\]\[(ref)\]/).replace("label",L).replace("ref",U).getRegex(),Me=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",U).getRegex(),dt=p("reflink|nolink(?!\\()","g").replace("reflink",Be).replace("nolink",Me).getRegex(),ye=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,J={_backpedal:P,anyPunctuation:ht,autolink:pt,blockSkip:st,br:Pe,code:Ye,del:P,emStrongLDelim:it,emStrongRDelimAst:at,emStrongRDelimUnd:ct,escape:Ke,link:kt,nolink:Me,punctuation:tt,reflink:Be,reflinkSearch:dt,tag:gt,text:et,url:P},ft=m(l({},J),{link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",L).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",L).getRegex()}),D=m(l({},J),{emStrongRDelimAst:ot,emStrongLDelim:lt,url:p(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ye).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:p(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ye).getRegex()}),xt=m(l({},D),{br:p(Pe).replace("{2,}","*").getRegex(),text:p(D.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),I={normal:W,gfm:Ve,pedantic:Je},A={normal:J,gfm:D,breaks:xt,pedantic:ft},bt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Se=n=>bt[n];function S(n,e){if(e){if(x.escapeTest.test(n))return n.replace(x.escapeReplace,Se)}else if(x.escapeTestNoEncode.test(n))return n.replace(x.escapeReplaceNoEncode,Se);return n}function $e(n){try{n=encodeURI(n).replace(x.percentDecode,"%");}catch{return null}return n}function Re(n,e){let r=n.replace(x.findPipe,(l,i,o)=>{let a=false,h=i;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}),s=r.split(x.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;t<s.length;t++)s[t]=s[t].trim().replace(x.slashPipe,"|");return s}function _(n,e,r){let s=n.length;if(s===0)return "";let t=0;for(;t<s;){let l=n.charAt(s-t-1);if(l===e&&true)t++;else break}return n.slice(0,s-t)}function mt(n,e){if(n.indexOf(e[1])===-1)return -1;let r=0;for(let s=0;s<n.length;s++)if(n[s]==="\\")s++;else if(n[s]===e[0])r++;else if(n[s]===e[1]&&(r--,r<0))return s;return r>0?-2:-1}function Te(n,e,r,s,t){let l=e.href,i=e.title||null,o=n[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=true;let a={type:n[0].charAt(0)==="!"?"image":"link",raw:r,href:l,title:i,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=false,a}function wt(n,e,r){let s=n.match(r.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
3
3
  `).map(l=>{let i=l.match(r.other.beginningSpace);if(i===null)return l;let[o]=i;return o.length>=t.length?l.slice(t.length):l}).join(`
4
4
  `)}var B=class{options;rules;lexer;constructor(n){this.options=n||R;}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return {type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let r=e[0].replace(this.rules.other.codeRemoveIndent,"");return {type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:_(r,`
5
- `)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let r=e[0],s=mt(r,e[3]||"",this.rules);return {type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(n){let e=this.rules.block.heading.exec(n);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let s=_(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim());}return {type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return {type:"hr",raw:_(e[0],`
5
+ `)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let r=e[0],s=wt(r,e[3]||"",this.rules);return {type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(n){let e=this.rules.block.heading.exec(n);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let s=_(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim());}return {type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return {type:"hr",raw:_(e[0],`
6
6
  `)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let r=_(e[0],`
7
7
  `).split(`
8
8
  `),s="",t="",l=[];for(;r.length>0;){let i=false,o=[],a;for(a=0;a<r.length;a++)if(this.rules.other.blockquoteStart.test(r[a]))o.push(r[a]),i=true;else if(!i)o.push(r[a]);else break;r=r.slice(a);let h=o.join(`
@@ -17,13 +17,13 @@ ${c}`:c;let k=this.lexer.state.top;if(this.lexer.state.top=true,this.lexer.block
17
17
  `);continue}}return {type:"blockquote",raw:s,tokens:l,text:t}}}list(n){let e=this.rules.block.list.exec(n);if(e){let r=e[1].trim(),s=r.length>1,t={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:false,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let l=this.rules.other.listItemRegex(r),i=false;for(;n;){let a=false,h="",c="";if(!(e=l.exec(n))||this.rules.block.hr.test(n))break;h=e[0],n=n.substring(h.length);let k=e[2].split(`
18
18
  `,1)[0].replace(this.rules.other.listReplaceTabs,O=>" ".repeat(3*O.length)),u=n.split(`
19
19
  `,1)[0],f=!k.trim(),d=0;if(this.options.pedantic?(d=2,c=k.trimStart()):f?d=e[1].length+1:(d=e[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,c=k.slice(d),d+=e[1].length),f&&this.rules.other.blankLine.test(u)&&(h+=u+`
20
- `,n=n.substring(u.length+1),a=true),!a){let O=this.rules.other.nextBulletRegex(d),re=this.rules.other.hrRegex(d),ne=this.rules.other.fencesBeginRegex(d),se=this.rules.other.headingBeginRegex(d),qe=this.rules.other.htmlBeginRegex(d);for(;n;){let Z=n.split(`
21
- `,1)[0],z;if(u=Z,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),z=u):z=u.replace(this.rules.other.tabCharGlobal," "),ne.test(u)||se.test(u)||qe.test(u)||O.test(u)||re.test(u))break;if(z.search(this.rules.other.nonSpaceChar)>=d||!u.trim())c+=`
20
+ `,n=n.substring(u.length+1),a=true),!a){let O=this.rules.other.nextBulletRegex(d),re=this.rules.other.hrRegex(d),ne=this.rules.other.fencesBeginRegex(d),se=this.rules.other.headingBeginRegex(d),Ne=this.rules.other.htmlBeginRegex(d);for(;n;){let Z=n.split(`
21
+ `,1)[0],z;if(u=Z,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),z=u):z=u.replace(this.rules.other.tabCharGlobal," "),ne.test(u)||se.test(u)||Ne.test(u)||O.test(u)||re.test(u))break;if(z.search(this.rules.other.nonSpaceChar)>=d||!u.trim())c+=`
22
22
  `+z.slice(d);else {if(f||k.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ne.test(k)||se.test(k)||re.test(k))break;c+=`
23
23
  `+u;}!f&&!u.trim()&&(f=true),h+=Z+`
24
- `,n=n.substring(Z.length+1),k=z.slice(d);}}t.loose||(i?t.loose=true:this.rules.other.doubleBlankLine.test(h)&&(i=true));let m=null,te;this.options.gfm&&(m=this.rules.other.listIsTask.exec(c),m&&(te=m[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),t.items.push({type:"list_item",raw:h,task:!!m,checked:te,loose:false,text:c,tokens:[]}),t.raw+=h;}let o=t.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let a=0;a<t.items.length;a++)if(this.lexer.state.top=false,t.items[a].tokens=this.lexer.blockTokens(t.items[a].text,[]),!t.loose){let h=t.items[a].tokens.filter(k=>k.type==="space"),c=h.length>0&&h.some(k=>this.rules.other.anyLine.test(k.raw));t.loose=c;}if(t.loose)for(let a=0;a<t.items.length;a++)t.items[a].loose=true;return t}}html(n){let e=this.rules.block.html.exec(n);if(e)return {type:"html",block:true,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(n){let e=this.rules.block.def.exec(n);if(e){let r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return {type:"def",tag:r,raw:e[0],href:s,title:t}}}table(n){let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=$e(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
- `):[],l={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===s.length){for(let i of s)this.rules.other.tableAlignRight.test(i)?l.align.push("right"):this.rules.other.tableAlignCenter.test(i)?l.align.push("center"):this.rules.other.tableAlignLeft.test(i)?l.align.push("left"):l.align.push(null);for(let i=0;i<r.length;i++)l.header.push({text:r[i],tokens:this.lexer.inline(r[i]),header:true,align:l.align[i]});for(let i of t)l.rows.push($e(i,l.header.length).map((o,a)=>({text:o,tokens:this.lexer.inline(o),header:false,align:l.align[a]})));return l}}lheading(n){let e=this.rules.block.lheading.exec(n);if(e)return {type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(n){let e=this.rules.block.paragraph.exec(n);if(e){let r=e[1].charAt(e[1].length-1)===`
26
- `?e[1].slice(0,-1):e[1];return {type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return {type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return {type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);if(e)return !this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=true:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=false),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=true:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=false),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:false,text:e[0]}}link(n){let e=this.rules.inline.link.exec(n);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let l=_(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else {let l=bt(e[2],"()");if(l===-2)return;if(l>-1){let i=(e[0].indexOf("!")===0?5:4)+e[1].length+l;e[2]=e[2].substring(0,l),e[0]=e[0].substring(0,i).trim(),e[3]="";}}let s=e[2],t="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],t=l[3]);}else t=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),Re(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let r;if((r=this.rules.inline.reflink.exec(n))||(r=this.rules.inline.nolink.exec(n))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[s.toLowerCase()];if(!t){let l=r[0].charAt(0);return {type:"text",raw:l,text:l}}return Re(r,t,r[0],this.lexer,this.rules)}}emStrong(n,e,r=""){let s=this.rules.inline.emStrongLDelim.exec(n);if(!(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!r||this.rules.inline.punctuation.exec(r))){let t=[...s[0]].length-1,l,i,o=t,a=0,h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*n.length+t);(s=h.exec(e))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(i=[...l].length,s[3]||s[4]){o+=i;continue}else if((s[5]||s[6])&&t%3&&!((t+i)%3)){a+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+a);let c=[...s[0]][0].length,k=n.slice(0,t+s.index+c+i);if(Math.min(t,i)%2){let f=k.slice(1,-1);return {type:"em",raw:k,text:f,tokens:this.lexer.inlineTokens(f)}}let u=k.slice(2,-2);return {type:"strong",raw:k,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),t=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&t&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return {type:"br",raw:e[0]}}del(n){let e=this.rules.inline.del.exec(n);if(e)return {type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let r,s;return e[2]==="@"?(r=e[1],s="mailto:"+r):(r=e[1],s=r),{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(n){let e;if(e=this.rules.inline.url.exec(n)){let r,s;if(e[2]==="@")r=e[0],s="mailto:"+r;else {let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);r=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0];}return {type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let r=this.lexer.state.inRawBlock;return {type:"text",raw:e[0],text:e[0],escaped:r}}}},w=class G{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||R,this.options.tokenizer=this.options.tokenizer||new B,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:false,inRawBlock:false,top:true};let r={other:x,block:I.normal,inline:A.normal};this.options.pedantic?(r.block=I.pedantic,r.inline=A.pedantic):this.options.gfm&&(r.block=I.gfm,this.options.breaks?r.inline=A.breaks:r.inline=A.gfm),this.tokenizer.rules=r;}static get rules(){return {block:I,inline:A}}static lex(e,r){return new G(r).lex(e)}static lexInline(e,r){return new G(r).inlineTokens(e)}lex(e){e=e.replace(x.carriageReturn,`
24
+ `,n=n.substring(Z.length+1),k=z.slice(d);}}t.loose||(i?t.loose=true:this.rules.other.doubleBlankLine.test(h)&&(i=true));let m=null,te;this.options.gfm&&(m=this.rules.other.listIsTask.exec(c),m&&(te=m[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),t.items.push({type:"list_item",raw:h,task:!!m,checked:te,loose:false,text:c,tokens:[]}),t.raw+=h;}let o=t.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let a=0;a<t.items.length;a++)if(this.lexer.state.top=false,t.items[a].tokens=this.lexer.blockTokens(t.items[a].text,[]),!t.loose){let h=t.items[a].tokens.filter(k=>k.type==="space"),c=h.length>0&&h.some(k=>this.rules.other.anyLine.test(k.raw));t.loose=c;}if(t.loose)for(let a=0;a<t.items.length;a++)t.items[a].loose=true;return t}}html(n){let e=this.rules.block.html.exec(n);if(e)return {type:"html",block:true,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(n){let e=this.rules.block.def.exec(n);if(e){let r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return {type:"def",tag:r,raw:e[0],href:s,title:t}}}table(n){let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=Re(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],l={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===s.length){for(let i of s)this.rules.other.tableAlignRight.test(i)?l.align.push("right"):this.rules.other.tableAlignCenter.test(i)?l.align.push("center"):this.rules.other.tableAlignLeft.test(i)?l.align.push("left"):l.align.push(null);for(let i=0;i<r.length;i++)l.header.push({text:r[i],tokens:this.lexer.inline(r[i]),header:true,align:l.align[i]});for(let i of t)l.rows.push(Re(i,l.header.length).map((o,a)=>({text:o,tokens:this.lexer.inline(o),header:false,align:l.align[a]})));return l}}lheading(n){let e=this.rules.block.lheading.exec(n);if(e)return {type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(n){let e=this.rules.block.paragraph.exec(n);if(e){let r=e[1].charAt(e[1].length-1)===`
26
+ `?e[1].slice(0,-1):e[1];return {type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return {type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return {type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);if(e)return !this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=true:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=false),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=true:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=false),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:false,text:e[0]}}link(n){let e=this.rules.inline.link.exec(n);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let l=_(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else {let l=mt(e[2],"()");if(l===-2)return;if(l>-1){let i=(e[0].indexOf("!")===0?5:4)+e[1].length+l;e[2]=e[2].substring(0,l),e[0]=e[0].substring(0,i).trim(),e[3]="";}}let s=e[2],t="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],t=l[3]);}else t=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),Te(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let r;if((r=this.rules.inline.reflink.exec(n))||(r=this.rules.inline.nolink.exec(n))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[s.toLowerCase()];if(!t){let l=r[0].charAt(0);return {type:"text",raw:l,text:l}}return Te(r,t,r[0],this.lexer,this.rules)}}emStrong(n,e,r=""){let s=this.rules.inline.emStrongLDelim.exec(n);if(!(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!r||this.rules.inline.punctuation.exec(r))){let t=[...s[0]].length-1,l,i,o=t,a=0,h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*n.length+t);(s=h.exec(e))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(i=[...l].length,s[3]||s[4]){o+=i;continue}else if((s[5]||s[6])&&t%3&&!((t+i)%3)){a+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+a);let c=[...s[0]][0].length,k=n.slice(0,t+s.index+c+i);if(Math.min(t,i)%2){let f=k.slice(1,-1);return {type:"em",raw:k,text:f,tokens:this.lexer.inlineTokens(f)}}let u=k.slice(2,-2);return {type:"strong",raw:k,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),t=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&t&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return {type:"br",raw:e[0]}}del(n){let e=this.rules.inline.del.exec(n);if(e)return {type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let r,s;return e[2]==="@"?(r=e[1],s="mailto:"+r):(r=e[1],s=r),{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(n){let e;if(e=this.rules.inline.url.exec(n)){let r,s;if(e[2]==="@")r=e[0],s="mailto:"+r;else {let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);r=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0];}return {type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let r=this.lexer.state.inRawBlock;return {type:"text",raw:e[0],text:e[0],escaped:r}}}},w=class G{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||R,this.options.tokenizer=this.options.tokenizer||new B,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:false,inRawBlock:false,top:true};let r={other:x,block:I.normal,inline:A.normal};this.options.pedantic?(r.block=I.pedantic,r.inline=A.pedantic):this.options.gfm&&(r.block=I.gfm,this.options.breaks?r.inline=A.breaks:r.inline=A.gfm),this.tokenizer.rules=r;}static get rules(){return {block:I,inline:A}}static lex(e,r){return new G(r).lex(e)}static lexInline(e,r){return new G(r).inlineTokens(e)}lex(e){e=e.replace(x.carriageReturn,`
27
27
  `),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens);}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],s=false){for(this.options.pedantic&&(e=e.replace(x.tabCharGlobal," ").replace(x.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(i=>(t=i.call({lexer:this},e,r))?(e=e.substring(t.raw.length),r.push(t),true):false))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let i=r.at(-1);t.raw.length===1&&i!==void 0?i.raw+=`
28
28
  `:r.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let i=r.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
29
29
  `)?"":`
@@ -55,7 +55,7 @@ ${this.parser.parse(n)}</blockquote>
55
55
  `}tablerow({text:n}){return `<tr>
56
56
  ${n}</tr>
57
57
  `}tablecell(n){let e=this.parser.parseInline(n.tokens),r=n.header?"th":"td";return (n.align?`<${r} align="${n.align}">`:`<${r}>`)+e+`</${r}>
58
- `}strong({tokens:n}){return `<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return `<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return `<code>${S(n,true)}</code>`}br(n){return "<br>"}del({tokens:n}){return `<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:r}){let s=this.parser.parseInline(r),t=Se(n);if(t===null)return s;n=t;let l='<a href="'+n+'"';return e&&(l+=' title="'+S(e)+'"'),l+=">"+s+"</a>",l}image({href:n,title:e,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let t=Se(n);if(t===null)return S(r);n=t;let l=`<img src="${n}" alt="${r}"`;return e&&(l+=` title="${S(e)}"`),l+=">",l}text(n){return "tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:S(n.text)}},K=class{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return ""+n}image({text:n}){return ""+n}br(){return ""}},y=class H{options;renderer;textRenderer;constructor(e){this.options=e||R,this.options.renderer=this.options.renderer||new M,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new K;}static parse(e,r){return new H(r).parse(e)}static parseInline(e,r){return new H(r).parseInline(e)}parse(e,r=true){let s="";for(let t=0;t<e.length;t++){let l=e[t];if(this.options.extensions?.renderers?.[l.type]){let o=l,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==false||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){s+=a||"";continue}}let i=l;switch(i.type){case "space":{s+=this.renderer.space(i);continue}case "hr":{s+=this.renderer.hr(i);continue}case "heading":{s+=this.renderer.heading(i);continue}case "code":{s+=this.renderer.code(i);continue}case "table":{s+=this.renderer.table(i);continue}case "blockquote":{s+=this.renderer.blockquote(i);continue}case "list":{s+=this.renderer.list(i);continue}case "html":{s+=this.renderer.html(i);continue}case "def":{s+=this.renderer.def(i);continue}case "paragraph":{s+=this.renderer.paragraph(i);continue}case "text":{let o=i,a=this.renderer.text(o);for(;t+1<e.length&&e[t+1].type==="text";)o=e[++t],a+=`
59
- `+this.renderer.text(o);r?s+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:true}]}):s+=a;continue}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(e,r=this.renderer){let s="";for(let t=0;t<e.length;t++){let l=e[t];if(this.options.extensions?.renderers?.[l.type]){let o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==false||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){s+=o||"";continue}}let i=l;switch(i.type){case "escape":{s+=r.text(i);break}case "html":{s+=r.html(i);break}case "link":{s+=r.link(i);break}case "image":{s+=r.image(i);break}case "strong":{s+=r.strong(i);break}case "em":{s+=r.em(i);break}case "codespan":{s+=r.codespan(i);break}case "br":{s+=r.br(i);break}case "del":{s+=r.del(i);break}case "text":{s+=r.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},C=class{options;block;constructor(n){this.options=n||R;}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}emStrongMask(n){return n}provideLexer(){return this.block?w.lex:w.lexInline}provideParser(){return this.block?y.parse:y.parseInline}},wt=class{defaults=j();options=this.setOptions;parse=this.parseMarkdown(true);parseInline=this.parseMarkdown(false);Parser=y;Renderer=M;TextRenderer=K;Lexer=w;Tokenizer=B;Hooks=C;constructor(...n){this.use(...n);}walkTokens(n,e){let r=[];for(let s of n)switch(r=r.concat(e.call(this,s)),s.type){case "table":{let t=s;for(let l of t.header)r=r.concat(this.walkTokens(l.tokens,e));for(let l of t.rows)for(let i of l)r=r.concat(this.walkTokens(i.tokens,e));break}case "list":{let t=s;r=r.concat(this.walkTokens(t.items,e));break}default:{let t=s;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(l=>{let i=t[l].flat(1/0);r=r.concat(this.walkTokens(i,e));}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)));}}return r}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(r=>{let s=l({},r);if(s.async=this.defaults.async||s.async||false,r.extensions&&(r.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let l=e.renderers[t.name];l?e.renderers[t.name]=function(...i){let o=t.renderer.apply(this,i);return o===false&&(o=l.apply(this,i)),o}:e.renderers[t.name]=t.renderer;}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=e[t.level];l?l.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]));}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens);}),s.extensions=e),r.renderer){let t=this.defaults.renderer||new M(this.defaults);for(let l in r.renderer){if(!(l in t))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let i=l,o=r.renderer[i],a=t[i];t[i]=(...h)=>{let c=o.apply(t,h);return c===false&&(c=a.apply(t,h)),c||""};}s.renderer=t;}if(r.tokenizer){let t=this.defaults.tokenizer||new B(this.defaults);for(let l in r.tokenizer){if(!(l in t))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let i=l,o=r.tokenizer[i],a=t[i];t[i]=(...h)=>{let c=o.apply(t,h);return c===false&&(c=a.apply(t,h)),c};}s.tokenizer=t;}if(r.hooks){let t=this.defaults.hooks||new C;for(let l in r.hooks){if(!(l in t))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let i=l,o=r.hooks[i],a=t[i];C.passThroughHooks.has(l)?t[i]=h=>{if(this.defaults.async&&C.passThroughHooksRespectAsync.has(l))return (async()=>{let k=await o.call(t,h);return a.call(t,k)})();let c=o.call(t,h);return a.call(t,c)}:t[i]=(...h)=>{if(this.defaults.async)return (async()=>{let k=await o.apply(t,h);return k===false&&(k=await a.apply(t,h)),k})();let c=o.apply(t,h);return c===false&&(c=a.apply(t,h)),c};}s.hooks=t;}if(r.walkTokens){let t=this.defaults.walkTokens,l=r.walkTokens;s.walkTokens=function(i){let o=[];return o.push(l.call(this,i)),t&&(o=o.concat(t.call(this,i))),o};}this.defaults=l(l({},this.defaults),s);}),this}setOptions(n){return this.defaults=l(l({},this.defaults),n),this}lexer(n,e){return w.lex(n,e??this.defaults)}parser(n,e){return y.parse(n,e??this.defaults)}parseMarkdown(n){return (e,r)=>{let s=l({},r),t=l(l({},this.defaults),s),l$1=this.onError(!!t.silent,!!t.async);if(this.defaults.async===true&&s.async===false)return l$1(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return l$1(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return l$1(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=n),t.async)return (async()=>{let i=t.hooks?await t.hooks.preprocess(e):e,o=await(t.hooks?await t.hooks.provideLexer():n?w.lex:w.lexInline)(i,t),a=t.hooks?await t.hooks.processAllTokens(o):o;t.walkTokens&&await Promise.all(this.walkTokens(a,t.walkTokens));let h=await(t.hooks?await t.hooks.provideParser():n?y.parse:y.parseInline)(a,t);return t.hooks?await t.hooks.postprocess(h):h})().catch(l$1);try{t.hooks&&(e=t.hooks.preprocess(e));let i=(t.hooks?t.hooks.provideLexer():n?w.lex:w.lexInline)(e,t);t.hooks&&(i=t.hooks.processAllTokens(i)),t.walkTokens&&this.walkTokens(i,t.walkTokens);let o=(t.hooks?t.hooks.provideParser():n?y.parse:y.parseInline)(i,t);return t.hooks&&(o=t.hooks.postprocess(o)),o}catch(i){return l$1(i)}}}onError(n,e){return r=>{if(r.message+=`
60
- Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error occurred:</p><pre>"+S(r.message+"",true)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(r);throw r}}},$=new wt;function g(n,e){return $.parse(n,e)}g.options=g.setOptions=function(n){return $.setOptions(n),g.defaults=$.defaults,Te(g.defaults),g};g.getDefaults=j;g.defaults=R;g.use=function(...n){return $.use(...n),g.defaults=$.defaults,Te(g.defaults),g};g.walkTokens=function(n,e){return $.walkTokens(n,e)};g.parseInline=$.parseInline;g.Parser=y;g.parser=y.parse;g.Renderer=M;g.TextRenderer=K;g.Lexer=w;g.lexer=w.lex;g.Tokenizer=B;g.Hooks=C;g.parse=g;g.options;g.setOptions;g.use;g.walkTokens;g.parseInline;y.parse;w.lex;var Y=new x$1("Marked"),Me={provide:Y,useFactory:()=>g};var ee=class n{#e=T(C$1);#t=T(je$1);#r=T(Y);changelog=L$1(this.#e.getApiV1Changelog().pipe(pt$1(e=>{let s=this.#t.bypassSecurityTrustHtml(e.Changelog??"").toString();return s.startsWith("SafeValue must use [property]=binding: ")&&(s=s.replace("SafeValue must use [property]=binding: ","")),this.#r.parse(s.replace(/^[\u200B\u200C\u200D\u200E\u200F\uFEFF]/,""))})));static \u0275fac=function(r){return new(r||n)};static \u0275cmp=hw({type:n,selectors:[["app-changelog"]],features:[YC([Me])],decls:3,vars:1,consts:()=>{let e;return e=$localize`Changelog`,[e,[1,"markdown-output",3,"innerHTML"]]},template:function(r,s){r&1&&(Ul(0,"h3"),nC(1,0),Wl(),Eg(2,"div",1)),r&2&&(CE(2),Tg("innerHTML",s.changelog(),zp));},styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}"]})};
58
+ `}strong({tokens:n}){return `<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return `<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return `<code>${S(n,true)}</code>`}br(n){return "<br>"}del({tokens:n}){return `<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:r}){let s=this.parser.parseInline(r),t=$e(n);if(t===null)return s;n=t;let l='<a href="'+n+'"';return e&&(l+=' title="'+S(e)+'"'),l+=">"+s+"</a>",l}image({href:n,title:e,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let t=$e(n);if(t===null)return S(r);n=t;let l=`<img src="${n}" alt="${r}"`;return e&&(l+=` title="${S(e)}"`),l+=">",l}text(n){return "tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:S(n.text)}},K=class{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return ""+n}image({text:n}){return ""+n}br(){return ""}},y=class H{options;renderer;textRenderer;constructor(e){this.options=e||R,this.options.renderer=this.options.renderer||new M,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new K;}static parse(e,r){return new H(r).parse(e)}static parseInline(e,r){return new H(r).parseInline(e)}parse(e,r=true){let s="";for(let t=0;t<e.length;t++){let l=e[t];if(this.options.extensions?.renderers?.[l.type]){let o=l,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==false||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){s+=a||"";continue}}let i=l;switch(i.type){case "space":{s+=this.renderer.space(i);continue}case "hr":{s+=this.renderer.hr(i);continue}case "heading":{s+=this.renderer.heading(i);continue}case "code":{s+=this.renderer.code(i);continue}case "table":{s+=this.renderer.table(i);continue}case "blockquote":{s+=this.renderer.blockquote(i);continue}case "list":{s+=this.renderer.list(i);continue}case "html":{s+=this.renderer.html(i);continue}case "def":{s+=this.renderer.def(i);continue}case "paragraph":{s+=this.renderer.paragraph(i);continue}case "text":{let o=i,a=this.renderer.text(o);for(;t+1<e.length&&e[t+1].type==="text";)o=e[++t],a+=`
59
+ `+this.renderer.text(o);r?s+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:true}]}):s+=a;continue}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(e,r=this.renderer){let s="";for(let t=0;t<e.length;t++){let l=e[t];if(this.options.extensions?.renderers?.[l.type]){let o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==false||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){s+=o||"";continue}}let i=l;switch(i.type){case "escape":{s+=r.text(i);break}case "html":{s+=r.html(i);break}case "link":{s+=r.link(i);break}case "image":{s+=r.image(i);break}case "strong":{s+=r.strong(i);break}case "em":{s+=r.em(i);break}case "codespan":{s+=r.codespan(i);break}case "br":{s+=r.br(i);break}case "del":{s+=r.del(i);break}case "text":{s+=r.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},C=class{options;block;constructor(n){this.options=n||R;}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}emStrongMask(n){return n}provideLexer(){return this.block?w.lex:w.lexInline}provideParser(){return this.block?y.parse:y.parseInline}},yt=class{defaults=j();options=this.setOptions;parse=this.parseMarkdown(true);parseInline=this.parseMarkdown(false);Parser=y;Renderer=M;TextRenderer=K;Lexer=w;Tokenizer=B;Hooks=C;constructor(...n){this.use(...n);}walkTokens(n,e){let r=[];for(let s of n)switch(r=r.concat(e.call(this,s)),s.type){case "table":{let t=s;for(let l of t.header)r=r.concat(this.walkTokens(l.tokens,e));for(let l of t.rows)for(let i of l)r=r.concat(this.walkTokens(i.tokens,e));break}case "list":{let t=s;r=r.concat(this.walkTokens(t.items,e));break}default:{let t=s;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(l=>{let i=t[l].flat(1/0);r=r.concat(this.walkTokens(i,e));}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)));}}return r}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(r=>{let s=l({},r);if(s.async=this.defaults.async||s.async||false,r.extensions&&(r.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let l=e.renderers[t.name];l?e.renderers[t.name]=function(...i){let o=t.renderer.apply(this,i);return o===false&&(o=l.apply(this,i)),o}:e.renderers[t.name]=t.renderer;}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=e[t.level];l?l.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]));}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens);}),s.extensions=e),r.renderer){let t=this.defaults.renderer||new M(this.defaults);for(let l in r.renderer){if(!(l in t))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let i=l,o=r.renderer[i],a=t[i];t[i]=(...h)=>{let c=o.apply(t,h);return c===false&&(c=a.apply(t,h)),c||""};}s.renderer=t;}if(r.tokenizer){let t=this.defaults.tokenizer||new B(this.defaults);for(let l in r.tokenizer){if(!(l in t))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let i=l,o=r.tokenizer[i],a=t[i];t[i]=(...h)=>{let c=o.apply(t,h);return c===false&&(c=a.apply(t,h)),c};}s.tokenizer=t;}if(r.hooks){let t=this.defaults.hooks||new C;for(let l in r.hooks){if(!(l in t))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let i=l,o=r.hooks[i],a=t[i];C.passThroughHooks.has(l)?t[i]=h=>{if(this.defaults.async&&C.passThroughHooksRespectAsync.has(l))return (async()=>{let k=await o.call(t,h);return a.call(t,k)})();let c=o.call(t,h);return a.call(t,c)}:t[i]=(...h)=>{if(this.defaults.async)return (async()=>{let k=await o.apply(t,h);return k===false&&(k=await a.apply(t,h)),k})();let c=o.apply(t,h);return c===false&&(c=a.apply(t,h)),c};}s.hooks=t;}if(r.walkTokens){let t=this.defaults.walkTokens,l=r.walkTokens;s.walkTokens=function(i){let o=[];return o.push(l.call(this,i)),t&&(o=o.concat(t.call(this,i))),o};}this.defaults=l(l({},this.defaults),s);}),this}setOptions(n){return this.defaults=l(l({},this.defaults),n),this}lexer(n,e){return w.lex(n,e??this.defaults)}parser(n,e){return y.parse(n,e??this.defaults)}parseMarkdown(n){return (e,r)=>{let s=l({},r),t=l(l({},this.defaults),s),l$1=this.onError(!!t.silent,!!t.async);if(this.defaults.async===true&&s.async===false)return l$1(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return l$1(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return l$1(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=n),t.async)return (async()=>{let i=t.hooks?await t.hooks.preprocess(e):e,o=await(t.hooks?await t.hooks.provideLexer():n?w.lex:w.lexInline)(i,t),a=t.hooks?await t.hooks.processAllTokens(o):o;t.walkTokens&&await Promise.all(this.walkTokens(a,t.walkTokens));let h=await(t.hooks?await t.hooks.provideParser():n?y.parse:y.parseInline)(a,t);return t.hooks?await t.hooks.postprocess(h):h})().catch(l$1);try{t.hooks&&(e=t.hooks.preprocess(e));let i=(t.hooks?t.hooks.provideLexer():n?w.lex:w.lexInline)(e,t);t.hooks&&(i=t.hooks.processAllTokens(i)),t.walkTokens&&this.walkTokens(i,t.walkTokens);let o=(t.hooks?t.hooks.provideParser():n?y.parse:y.parseInline)(i,t);return t.hooks&&(o=t.hooks.postprocess(o)),o}catch(i){return l$1(i)}}}onError(n,e){return r=>{if(r.message+=`
60
+ Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error occurred:</p><pre>"+S(r.message+"",true)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(r);throw r}}},$=new yt;function g(n,e){return $.parse(n,e)}g.options=g.setOptions=function(n){return $.setOptions(n),g.defaults=$.defaults,ze(g.defaults),g};g.getDefaults=j;g.defaults=R;g.use=function(...n){return $.use(...n),g.defaults=$.defaults,ze(g.defaults),g};g.walkTokens=function(n,e){return $.walkTokens(n,e)};g.parseInline=$.parseInline;g.Parser=y;g.parser=y.parse;g.Renderer=M;g.TextRenderer=K;g.Lexer=w;g.lexer=w.lex;g.Tokenizer=B;g.Hooks=C;g.parse=g;g.options;g.setOptions;g.use;g.walkTokens;g.parseInline;y.parse;w.lex;var Y=new x$1("Marked"),qe={provide:Y,useFactory:()=>g};var ee=class n{#e=T(J$1);#t=T(je$1);#r=T(Y);changelog=L$1(sy(()=>this.#e.getApiV1Changelog()).pipe(pt$1(e=>{let s=this.#t.bypassSecurityTrustHtml(e.Changelog??"").toString();return s.startsWith("SafeValue must use [property]=binding: ")&&(s=s.replace("SafeValue must use [property]=binding: ","")),this.#r.parse(s.replace(/^[\u200B\u200C\u200D\u200E\u200F\uFEFF]/,""))})));static \u0275fac=function(r){return new(r||n)};static \u0275cmp=gw({type:n,selectors:[["app-changelog"]],features:[JC([qe])],decls:3,vars:1,consts:()=>{let e;return e=$localize`Changelog`,[e,[1,"markdown-output",3,"innerHTML"]]},template:function(r,s){r&1&&(ql(0,"h3"),oC(1,0),Gl(),Eg(2,"div",1)),r&2&&(bE(2),Tg("innerHTML",s.changelog(),Qp));},styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}"]})};
61
61
  export{ee as default};
@@ -0,0 +1 @@
1
+ import {d}from'./chunk-BGuvkLC9.js';import {L}from'./chunk-Cm7JSdTO.js';import {T,ab as J$1,bk as B$1,f,G as Ge,N as Nt,ad as sy,aI as pt,C as Zu,g as gw,v,a as N,l as lT,Z as Zi,o as oC,W as Wl,H as HC,c as uT,b as bE,av as Vg,aw as iC,J as im,d as Ig,i as ET,w as Hg,P as Pd,h as aC,L as Ld,K as Kg,F as Fg,j as jg,z as vg,as as Yp}from'./main-2ZYVV4C4.js';function V(n,t){n&1&&Ig(0,"sh-progress-bar",3);}function B(n,t){if(n&1&&(Zi(0,"a",7),Fg(1,2),Ig(2,"sh-icon"),jg(),Wl()),n&2){let e=aC(2);vg("href",e.serverState()?.UpdateDownloadLink,Yp),bE(2),Vg(e.serverState()?.UpdatedVersion),iC(1);}}function J(n,t){if(n&1){let e=ET();Zi(0,"button",6),Hg("click",function(){Pd(e);let s=aC();return Ld(s.checkForUpdates())}),HC(1,"Check for updates"),Wl(),lT(2,B,3,2,"a",7);}if(n&2){let e=aC();Kg("loading",e.checkingForUpdates()),bE(2),uT(e.serverState()?.UpdateDownloadLink?2:-1);}}function X(n,t){if(n&1){let e=ET();Zi(0,"button",6),Hg("click",function(){Pd(e);let s=aC();return Ld(s.checkForUpdates())}),HC(1,"Checking for updates \u2026"),Wl();}}function z(n,t){n&1&&Ig(0,"sh-progress-bar",3);}var A=class n{#e=T(J$1);#n=T(B$1);#t=T(f);isLoading=Ge(true);checkingForUpdates=Ge(false);serverState=this.#n.serverState;duplicatiVersion=Nt(()=>this.#t.systemInfo()?.ServerVersionName??"Unknown");generalInfo=L(sy(()=>this.#e.getApiV1Acknowledgements()).pipe(pt(t=>t.Acknowledgements),Zu(()=>this.isLoading.set(false))));checkForUpdates(){this.checkingForUpdates.set(true),sy(()=>this.#e.postApiV1UpdatesCheck()).pipe(Zu(()=>this.checkingForUpdates.set(false))).subscribe();}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=gw({type:n,selectors:[["app-general"]],decls:12,vars:5,consts:()=>{let t;t=$localize`General`;let e;e=$localize`You're running Duplicati with - ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let i;return i=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:download${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Download update - ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[t,e,i,[1,"indeterminate","primary"],[1,"actions"],["shButton",""],["shButton","",3,"click"],["shButton","","target","_blank",1,"primary","raised",3,"href"]]},template:function(e,i){e&1&&(lT(0,V,1,0,"sh-progress-bar",3),Zi(1,"section")(2,"h3"),oC(3,0),Wl(),Zi(4,"p"),oC(5,1),Wl(),Zi(6,"div",4),lT(7,J,3,3)(8,X,2,0,"button",5),lT(9,z,1,0,"sh-progress-bar",3),Wl(),Zi(10,"div"),HC(11),Wl()()),e&2&&(uT(i.isLoading()?0:-1),bE(5),Vg(i.duplicatiVersion()),iC(5),bE(2),uT(i.serverState()?.UpdaterState==="Waiting"?7:i.serverState()?.UpdaterState==="Checking"?8:-1),bE(2),uT(i.serverState()?.UpdaterState==="Downloading"?9:-1),bE(2),im(i.generalInfo()));},dependencies:[d,v,N],styles:["[_nghost-%COMP%]{display:block;position:relative;padding:0 2.5rem}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}sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};export{A as default};