@duplicati/ngclient 0.0.28 → 0.0.29

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 (67) hide show
  1. package/assets/spk.woff2 +0 -0
  2. package/{chunk-B7SRENJI.js → chunk-2WU6GJ2L.js} +1 -1
  3. package/{chunk-6TFXXYVK.js → chunk-3IEVUFHW.js} +1 -1
  4. package/chunk-3LDFRXNZ.js +1 -0
  5. package/{chunk-ZAREJJZA.js → chunk-4KO6DAFG.js} +1 -1
  6. package/{chunk-DESW2TCQ.js → chunk-57EM3QNL.js} +1 -1
  7. package/{chunk-UMY3Y7LR.js → chunk-5NGUXCQH.js} +1 -1
  8. package/{chunk-2PUTRWRI.js → chunk-5XF5JD57.js} +1 -1
  9. package/{chunk-47O5BYLZ.js → chunk-6IDRMU4P.js} +1 -1
  10. package/{chunk-YDJZQ6GS.js → chunk-6V6L7ZNP.js} +1 -1
  11. package/{chunk-L7M2MTRL.js → chunk-6ZKECEPL.js} +1 -1
  12. package/{chunk-UPIWGO32.js → chunk-7JE7D2ZI.js} +1 -1
  13. package/{chunk-T6ENXWPD.js → chunk-7SDO46CK.js} +1 -1
  14. package/{chunk-ZVT4YXH5.js → chunk-B5E33CXC.js} +1 -1
  15. package/chunk-BP3UCGO5.js +1 -0
  16. package/{chunk-3EBWYIH7.js → chunk-BREOPUVA.js} +1 -1
  17. package/chunk-CEFENMMO.js +1 -0
  18. package/{chunk-LUAN4O53.js → chunk-CRF5AN7X.js} +1 -1
  19. package/{chunk-WV3AOW4R.js → chunk-DFGOAXZ2.js} +1 -1
  20. package/{chunk-AIQQJSGP.js → chunk-DTFSSXIP.js} +1 -1
  21. package/chunk-EPBET4G4.js +1 -0
  22. package/chunk-FTPIALBZ.js +2 -0
  23. package/chunk-G76L6TQ6.js +1 -0
  24. package/{chunk-2SYB6ABM.js → chunk-GQI6XZIF.js} +1 -1
  25. package/{chunk-C5O62M3L.js → chunk-I5C7ICSO.js} +1 -1
  26. package/{chunk-RJDP2FPE.js → chunk-ILNG56CV.js} +6 -6
  27. package/{chunk-RMZR2OAY.js → chunk-ITR23I5T.js} +1 -1
  28. package/{chunk-GAJ43GZE.js → chunk-KQWAEJSA.js} +1 -1
  29. package/chunk-L5ZD3XGL.js +1 -0
  30. package/{chunk-57W6Z6XZ.js → chunk-LESUULT7.js} +1 -1
  31. package/chunk-M3D5CWEA.js +1 -0
  32. package/{chunk-VAAI6C2V.js → chunk-MLIDBHU2.js} +1 -1
  33. package/{chunk-GBWXFIBZ.js → chunk-P3FQ2AHT.js} +1 -1
  34. package/{chunk-C4S5PKAB.js → chunk-PMQQNQUC.js} +1 -1
  35. package/{chunk-HH2EA6LF.js → chunk-PRRWBIUL.js} +1 -1
  36. package/chunk-PWCYVE3X.js +2 -0
  37. package/{chunk-TLFDZKKI.js → chunk-RNQMP76A.js} +1 -1
  38. package/{chunk-5X5UJ7CP.js → chunk-S57FCDO6.js} +1 -1
  39. package/chunk-SJGIDZMQ.js +1 -0
  40. package/{chunk-MFLGWG77.js → chunk-SNV5NHOU.js} +1 -1
  41. package/chunk-UAIXGIJV.js +1 -0
  42. package/chunk-UHDKSMMI.js +1 -0
  43. package/{chunk-BVTTY2FQ.js → chunk-VKC5JNTF.js} +1 -1
  44. package/chunk-VWW2CUXB.js +1 -0
  45. package/{chunk-4Y76KESB.js → chunk-WARSRDZI.js} +1 -1
  46. package/{chunk-4SJ35CHE.js → chunk-WKUHBDJS.js} +1 -1
  47. package/{chunk-BR45PK72.js → chunk-WRY3VN45.js} +1 -1
  48. package/{chunk-PD6257G7.js → chunk-WW3OAVSF.js} +1 -1
  49. package/{chunk-RONXYSR4.js → chunk-WWJLZQVS.js} +1 -1
  50. package/index.html +2 -2
  51. package/{main-YA4MEBAC.js → main-U3DYJNKX.js} +1 -1
  52. package/package.json +1 -1
  53. package/styles-67FI3DMG.css +1 -0
  54. package/chunk-CGWELGPM.js +0 -1
  55. package/chunk-DOGZZDWG.js +0 -1
  56. package/chunk-EPVXOSHI.js +0 -1
  57. package/chunk-FAAAWY76.js +0 -1
  58. package/chunk-MHCUWVA2.js +0 -1
  59. package/chunk-P7LAQN3J.js +0 -1
  60. package/chunk-QL753AWG.js +0 -1
  61. package/chunk-QNP3LI3Y.js +0 -1
  62. package/chunk-SDVRKDZS.js +0 -1
  63. package/chunk-UGZKHGQT.js +0 -1
  64. package/chunk-UVZO552H.js +0 -1
  65. package/chunk-VJACGH6X.js +0 -1
  66. package/chunk-ZAVS5NW7.js +0 -1
  67. package/styles-QLKBXZ7T.css +0 -1
@@ -0,0 +1 @@
1
+ import{a as y}from"./chunk-RNQMP76A.js";import"./chunk-B5E33CXC.js";import"./chunk-VKC5JNTF.js";import"./chunk-WARSRDZI.js";import{sa as l}from"./chunk-57EM3QNL.js";import{Eb as t,Fb as n,Ra as p,X as m,cc as o,dc as f,fb as a,pc as r,qc as c}from"./chunk-ILNG56CV.js";import"./chunk-7CGTOI24.js";var i=class s{#e=m(y);systemInfo=this.#e.systemInfo;static \u0275fac=function(e){return new(e||s)};static \u0275cmp=a({type:s,selectors:[["app-system-info"]],decls:5,vars:3,template:function(e,g){e&1&&(t(0,"h3"),o(1,"System info"),n(),t(2,"pre"),o(3),r(4,"json"),n()),e&2&&(p(3),f(c(4,1,g.systemInfo())))},dependencies:[l],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:p2r(0 0 20)}"],changeDetection:0})};export{i as default};
@@ -1 +1 @@
1
- import{e as v}from"./chunk-YDJZQ6GS.js";import"./chunk-GBWXFIBZ.js";import"./chunk-2PUTRWRI.js";import"./chunk-TLFDZKKI.js";import"./chunk-ZVT4YXH5.js";import"./chunk-6TFXXYVK.js";import"./chunk-BVTTY2FQ.js";import{o as g,s as C}from"./chunk-QL753AWG.js";import{H as d,L as f,Y as k,Z as w}from"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import{Eb as o,Fb as n,Gb as i,Ra as s,X as r,cc as a,fb as u,lc as c,vb as p}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var S=e=>["/restore-flow",e,"select-files"],R=e=>["/restore-flow",e,"options"],m=class e{#t=r(d);#e=r(v);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=u({type:e,selectors:[["app-restore-flow"]],decls:9,vars:6,consts:[["step","","routerLinkActive","active",3,"routerLink"]],template:function(t,l){t&1&&(o(0,"spk-stepper")(1,"div",0),i(2,"spk-radio"),a(3," Select files "),n(),o(4,"div",0),i(5,"spk-radio"),a(6," Options "),n()(),o(7,"section"),i(8,"router-outlet"),n()),t&2&&(s(),p("routerLink",c(2,S,l.backupId())),s(3),p("routerLink",c(4,R,l.backupId())))},dependencies:[C,g,f,k,w],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{m as default};
1
+ import{e as v}from"./chunk-6V6L7ZNP.js";import"./chunk-P3FQ2AHT.js";import"./chunk-5XF5JD57.js";import"./chunk-RNQMP76A.js";import"./chunk-B5E33CXC.js";import"./chunk-3IEVUFHW.js";import"./chunk-VKC5JNTF.js";import{o as g,s as C}from"./chunk-UHDKSMMI.js";import{H as d,L as f,Y as k,Z as w}from"./chunk-WW3OAVSF.js";import"./chunk-2WU6GJ2L.js";import"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import{Eb as o,Fb as n,Gb as i,Ra as s,X as r,cc as a,fb as u,mc as c,vb as p}from"./chunk-ILNG56CV.js";import"./chunk-7CGTOI24.js";var S=e=>["/restore-flow",e,"select-files"],R=e=>["/restore-flow",e,"options"],m=class e{#t=r(d);#e=r(v);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=u({type:e,selectors:[["app-restore-flow"]],decls:9,vars:6,consts:[["step","","routerLinkActive","active",3,"routerLink"]],template:function(t,l){t&1&&(o(0,"spk-stepper")(1,"div",0),i(2,"spk-radio"),a(3," Select files "),n(),o(4,"div",0),i(5,"spk-radio"),a(6," Options "),n()(),o(7,"section"),i(8,"router-outlet"),n()),t&2&&(s(),p("routerLink",c(2,S,l.backupId())),s(3),p("routerLink",c(4,R,l.backupId())))},dependencies:[C,g,f,k,w],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{m as default};
@@ -0,0 +1 @@
1
+ import{g as a,h as b,i as c}from"./chunk-I5C7ICSO.js";import"./chunk-5XF5JD57.js";import"./chunk-DNHLTHLR.js";import"./chunk-RNQMP76A.js";import"./chunk-B5E33CXC.js";import"./chunk-3IEVUFHW.js";import"./chunk-VKC5JNTF.js";import"./chunk-UHDKSMMI.js";import"./chunk-WW3OAVSF.js";import"./chunk-2WU6GJ2L.js";import"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import"./chunk-ILNG56CV.js";import"./chunk-7CGTOI24.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
@@ -1 +1 @@
1
- import{a as b,b as W}from"./chunk-DNHLTHLR.js";import{b as D}from"./chunk-ZVT4YXH5.js";import{a as R,b as j,c as x,d as M,e as O,h as A,l as I,o as L,r as V,t as $}from"./chunk-6TFXXYVK.js";import{a as Q}from"./chunk-2SYB6ABM.js";import{a as N}from"./chunk-BVTTY2FQ.js";import{a as G,f as U,g as q,k as z,t as H}from"./chunk-QL753AWG.js";import{H as B,X as P,Y as T}from"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import{c as F}from"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import{Ab as E,Dc as h,E as g,Eb as r,Fb as n,Gb as l,L as w,Qb as f,Ra as a,X as s,Za as d,cc as i,fb as C,fc as v,kc as _,lb as S,vb as k,xb as u}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var X=()=>["/"];function Y(c,e){c&1&&(r(0,"spk-form-field")(1,"label",9),i(2,"Password"),n(),l(3,"input",10),n(),r(4,"spk-form-field")(5,"label",11),i(6,"Repeat password"),n(),l(7,"input",12),n())}var m=new V,y=class c{#t=s(N);#e=s(B);#o=s(P);#n=s(F);#i=s(Q);isExporting=d(!1);exportType=d("file");exportedCmd=d(null);exportForm=m.group({exportPasswords:m.control(!0),encryption:m.control(!1,[x.required,W()]),password:m.control("",[b(e=>e?.value.encryption,[x.required])]),repeatPassword:m.control("",[b(e=>e?.value.encryption,[x.required])])});exportFormSignal=D(this.exportForm.valueChanges);encryptionFieldSignal=h(()=>this.exportFormSignal()?.encryption??!1);activeBackup=h(()=>this.#i.backups().find(e=>e.Backup?.ID===this.#e.snapshot.params.id));submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(w(e=>{let p=o=>{let t=Object.entries(o);return t?"?"+t.map(([J,K])=>`${J}=${K}`).join("&"):""};return this.#n.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${p({exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0,token:e.Token})}`,{responseType:"blob"})}),g(()=>this.isExporting.set(!1))).subscribe({next:e=>{let o=this.activeBackup()?.Backup?.Name??"Backup",t=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(e,`${o}.${t}`),this.#o.navigate(["/"])},error:e=>{console.log("err",e)}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(g(()=>this.isExporting.set(!1))).subscribe({next:e=>{console.log("res",e),this.exportedCmd.set(e.Command??null)},error:e=>{console.log("err",e)}})}downloadFile(e,p){let o=window.URL.createObjectURL(e),t=document.createElement("a");t.href=o,t.download=p,t.click(),window.URL.revokeObjectURL(o)}static \u0275fac=function(p){return new(p||c)};static \u0275cmp=C({type:c,selectors:[["app-export"]],decls:31,vars:12,consts:[[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["spk-button","",1,"raised","primary",3,"click"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],["type","checkbox","formControlName","encryption"],["for","password"],["type","password","id","password","formControlName","password"],["for","repeatPassword"],["type","password","id","repeatPassword","formControlName","repeatPassword"]],template:function(p,o){if(p&1&&(r(0,"header")(1,"h3"),i(2," Export backup configuration "),r(3,"div",0)(4,"button",1)(5,"spk-icon"),i(6,"arrow-left"),n(),i(7," Back "),n(),r(8,"button",2),f("click",function(){return o.submit()}),r(9,"spk-icon"),i(10,"export"),n(),i(11," Export "),n()()(),r(12,"p"),i(13),n()(),r(14,"form",3)(15,"spk-button-group")(16,"button",4),f("click",function(){return o.exportType.set("cmd")}),r(17,"spk-icon"),i(18,"terminal-window"),n(),i(19," As command line "),n(),r(20,"button",4),f("click",function(){return o.exportType.set("file")}),r(21,"spk-icon"),i(22,"file"),n(),i(23," To file "),n()(),r(24,"spk-toggle",5),i(25," Export passwords "),l(26,"input",6),n(),r(27,"spk-toggle",7),i(28," Encrypt file "),l(29,"input",8),n(),S(30,Y,8,0),n()),p&2){let t;a(4),k("routerLink",_(11,X)),a(4),u("loading",o.isExporting()),a(5),v("#",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.ID,": ",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.Name,""),a(),k("formGroup",o.exportForm),a(2),u("active",o.exportType()==="cmd"),a(4),u("active",o.exportType()==="file"),a(10),E(o.encryptionFieldSignal()?30:-1)}},dependencies:[$,A,j,R,M,O,I,L,T,U,H,G,z,q],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}"],changeDetection:0})};export{y as default};
1
+ import{a as b,b as W}from"./chunk-DNHLTHLR.js";import{b as D}from"./chunk-B5E33CXC.js";import{a as R,b as j,c as x,d as M,e as O,h as A,l as I,o as L,r as V,t as $}from"./chunk-3IEVUFHW.js";import{a as Q}from"./chunk-GQI6XZIF.js";import{a as N}from"./chunk-VKC5JNTF.js";import{a as G,f as U,g as q,k as z,v as H}from"./chunk-UHDKSMMI.js";import{H as B,X as P,Y as T}from"./chunk-WW3OAVSF.js";import"./chunk-2WU6GJ2L.js";import{c as F}from"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import{Ab as E,E as g,Eb as r,Ec as h,Fb as n,Gb as l,L as w,Qb as f,Ra as a,X as s,Za as d,cc as i,fb as C,fc as v,lb as S,lc as _,vb as k,xb as u}from"./chunk-ILNG56CV.js";import"./chunk-7CGTOI24.js";var X=()=>["/"];function Y(c,e){c&1&&(r(0,"spk-form-field")(1,"label",9),i(2,"Password"),n(),l(3,"input",10),n(),r(4,"spk-form-field")(5,"label",11),i(6,"Repeat password"),n(),l(7,"input",12),n())}var m=new V,y=class c{#t=s(N);#e=s(B);#o=s(P);#n=s(F);#i=s(Q);isExporting=d(!1);exportType=d("file");exportedCmd=d(null);exportForm=m.group({exportPasswords:m.control(!0),encryption:m.control(!1,[x.required,W()]),password:m.control("",[b(e=>e?.value.encryption,[x.required])]),repeatPassword:m.control("",[b(e=>e?.value.encryption,[x.required])])});exportFormSignal=D(this.exportForm.valueChanges);encryptionFieldSignal=h(()=>this.exportFormSignal()?.encryption??!1);activeBackup=h(()=>this.#i.backups().find(e=>e.Backup?.ID===this.#e.snapshot.params.id));submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(w(e=>{let p=o=>{let t=Object.entries(o);return t?"?"+t.map(([J,K])=>`${J}=${K}`).join("&"):""};return this.#n.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${p({exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0,token:e.Token})}`,{responseType:"blob"})}),g(()=>this.isExporting.set(!1))).subscribe({next:e=>{let o=this.activeBackup()?.Backup?.Name??"Backup",t=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(e,`${o}.${t}`),this.#o.navigate(["/"])},error:e=>{console.log("err",e)}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(g(()=>this.isExporting.set(!1))).subscribe({next:e=>{console.log("res",e),this.exportedCmd.set(e.Command??null)},error:e=>{console.log("err",e)}})}downloadFile(e,p){let o=window.URL.createObjectURL(e),t=document.createElement("a");t.href=o,t.download=p,t.click(),window.URL.revokeObjectURL(o)}static \u0275fac=function(p){return new(p||c)};static \u0275cmp=C({type:c,selectors:[["app-export"]],decls:31,vars:12,consts:[[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["spk-button","",1,"raised","primary",3,"click"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],["type","checkbox","formControlName","encryption"],["for","password"],["type","password","id","password","formControlName","password"],["for","repeatPassword"],["type","password","id","repeatPassword","formControlName","repeatPassword"]],template:function(p,o){if(p&1&&(r(0,"header")(1,"h3"),i(2," Export backup configuration "),r(3,"div",0)(4,"button",1)(5,"spk-icon"),i(6,"arrow-left"),n(),i(7," Back "),n(),r(8,"button",2),f("click",function(){return o.submit()}),r(9,"spk-icon"),i(10,"export"),n(),i(11," Export "),n()()(),r(12,"p"),i(13),n()(),r(14,"form",3)(15,"spk-button-group")(16,"button",4),f("click",function(){return o.exportType.set("cmd")}),r(17,"spk-icon"),i(18,"terminal-window"),n(),i(19," As command line "),n(),r(20,"button",4),f("click",function(){return o.exportType.set("file")}),r(21,"spk-icon"),i(22,"file"),n(),i(23," To file "),n()(),r(24,"spk-toggle",5),i(25," Export passwords "),l(26,"input",6),n(),r(27,"spk-toggle",7),i(28," Encrypt file "),l(29,"input",8),n(),S(30,Y,8,0),n()),p&2){let t;a(4),k("routerLink",_(11,X)),a(4),u("loading",o.isExporting()),a(5),v("#",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.ID,": ",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.Name,""),a(),k("formGroup",o.exportForm),a(2),u("active",o.exportType()==="cmd"),a(4),u("active",o.exportType()==="file"),a(10),E(o.encryptionFieldSignal()?30:-1)}},dependencies:[$,A,j,R,M,O,I,L,T,U,H,G,z,q],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}"],changeDetection:0})};export{y as default};
@@ -1 +1 @@
1
- import{a as f,b as u}from"./chunk-ZVT4YXH5.js";import{D as l,Dc as V,Ec as w,K as m,X as b,Ya as v,b as d,ba as I,ca as y,ja as S,k as j,n as h,q as c}from"./chunk-RJDP2FPE.js";function z(e,n,i){!n&&y(e);let r=n??b(S);return i?I(r,i):r}function C(...e){let{normalizedSources:n,hasInitValue:i,operator:r,options:o}=E(e),s=z(C,o?.injector);return i?u(c(n).pipe(r),{initialValue:o.initialValue,injector:s}):u(c(n).pipe(r),{injector:s,requireSync:!0})}function E(e){if(!e||!e.length||typeof e[0]!="object")throw new TypeError("derivedFrom needs sources");let n=typeof e[1]=="function";if(e.length==3&&!n)throw new TypeError("derivedFrom needs pipeable operator as a second argument");n||e.splice(1,0,d);let[i,r,o]=e,s=!!o&&"initialValue"in o;return{normalizedSources:Object.entries(i).reduce((p,[a,t])=>{if(v(t))p[a]=f(t,{injector:o?.injector}).pipe(m(w(t)));else if(h(t))p[a]=t.pipe(l());else if(typeof t=="function"){let A=V(t);p[a]=f(A,{injector:o?.injector}).pipe(m(t()))}else p[a]=j(t).pipe(l());return p},Array.isArray(i)?[]:{}),operator:r,hasInitValue:s,options:o}}export{C as a};
1
+ import{a as f,b as u}from"./chunk-B5E33CXC.js";import{D as l,Ec as V,Fc as w,K as m,X as b,Ya as v,b as d,ba as I,ca as y,ja as S,k as j,n as h,q as c}from"./chunk-ILNG56CV.js";function z(e,n,i){!n&&y(e);let r=n??b(S);return i?I(r,i):r}function C(...e){let{normalizedSources:n,hasInitValue:i,operator:r,options:o}=E(e),s=z(C,o?.injector);return i?u(c(n).pipe(r),{initialValue:o.initialValue,injector:s}):u(c(n).pipe(r),{injector:s,requireSync:!0})}function E(e){if(!e||!e.length||typeof e[0]!="object")throw new TypeError("derivedFrom needs sources");let n=typeof e[1]=="function";if(e.length==3&&!n)throw new TypeError("derivedFrom needs pipeable operator as a second argument");n||e.splice(1,0,d);let[i,r,o]=e,s=!!o&&"initialValue"in o;return{normalizedSources:Object.entries(i).reduce((p,[a,t])=>{if(v(t))p[a]=f(t,{injector:o?.injector}).pipe(m(w(t)));else if(h(t))p[a]=t.pipe(l());else if(typeof t=="function"){let A=V(t);p[a]=f(A,{injector:o?.injector}).pipe(m(t()))}else p[a]=j(t).pipe(l());return p},Array.isArray(i)?[]:{}),operator:r,hasInitValue:s,options:o}}export{C as a};
@@ -1 +1 @@
1
- import{a as W}from"./chunk-LUAN4O53.js";import{a as j}from"./chunk-2SYB6ABM.js";import"./chunk-BVTTY2FQ.js";import{a as M,g as v,h as V,j as A,m as z,n as R}from"./chunk-QL753AWG.js";import{Y as h}from"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-AIQQJSGP.js";import{Ab as d,Bb as F,Cb as H,Db as T,Eb as i,Fb as o,Gb as _,Hb as L,Ib as w,Kb as I,Qb as g,Ra as c,Rb as p,X as P,cc as t,ea as x,ec as m,fa as C,fb as y,kc as B,lb as u,lc as b,oc as S,pc as N,qc as $,sb as E,tb as O,vb as s,xb as f}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var q=()=>[h,v,M,A,z,import("./chunk-RMZR2OAY.js").then(e=>e.DatePipe),import("./chunk-UPIWGO32.js").then(e=>e.DurationFormatPipe)],G=()=>["/add-backup"],J=()=>["/restore"],K=e=>["/backup",e],Q=e=>["/backup",e,"export"];function U(e,l){if(e&1&&(t(0),S(1,"durationFormat")),e&2){let n=p().$implicit;m(" - (took ",N(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDuration),") ")}}function X(e,l){e&1&&t(0," N/A ")}function Y(e,l){if(e&1&&t(0),e&2){let n=p().$implicit;m(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceSizeString," ")}}function Z(e,l){e&1&&t(0," N/A ")}function ee(e,l){if(e&1&&t(0),e&2){let n=p().$implicit;m(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetSizeString," ")}}function te(e,l){e&1&&t(0," N/A ")}function ne(e,l){if(e&1&&(i(0,"spk-chip",9),t(1),o()),e&2){let n=p().$implicit;c(),m("",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount," Version")}}function ie(e,l){e&1&&(i(0,"spk-chip",10),t(1,"No version yet"),o())}function ae(e,l){if(e&1){let n=I();i(0,"div",8)(1,"div",3)(2,"h3"),t(3),i(4,"spk-icon"),t(5,"database"),o()(),i(6,"p")(7,"span"),t(8,"Last successful backup:"),o(),t(9),S(10,"date"),u(11,U,2,3)(12,X,1,0),o(),i(13,"p")(14,"span"),t(15,"Source:"),o(),u(16,Y,1,1)(17,Z,1,0),o(),i(18,"p")(19,"span"),t(20,"Destination:"),o(),u(21,ee,1,1)(22,te,1,0),o()(),u(23,ne,2,1,"spk-chip",9)(24,ie,2,0,"spk-chip",10),i(25,"div",11)(26,"button",12),g("click",function(){let r=x(n).$implicit,k=p(3);return C(k.startBackup(r.Backup==null?null:r.Backup.ID))}),i(27,"spk-icon"),t(28,"play-circle"),o(),t(29," Start "),o(),i(30,"button",13)(31,"spk-icon"),t(32,"pencil-simple"),o()(),i(33,"spk-menu",14)(34,"button",4)(35,"spk-icon"),t(36,"dots-three-vertical"),o()(),L(37,15),i(38,"button",16,0),t(40," Export "),i(41,"spk-icon"),t(42,"export"),o()(),i(43,"button",17,0),g("click",function(){let r=x(n).$implicit,k=p(3);return C(k.deleteBackup(r.Backup==null?null:r.Backup.ID))}),t(45," Delete "),i(46,"spk-icon"),t(47,"x-circle"),o()(),w(),o()()()}if(e&2){let n,a=l.$implicit,r=p(3);c(3),m(" ",(n=a.Backup==null?null:a.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"," "),c(6),m(" ",$(10,13,a.Backup==null||a.Backup.Metadata==null?null:a.Backup.Metadata.LastBackupDate,"short")," "),c(2),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.LastBackupDuration?11:12),c(5),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.SourceSizeString?16:17),c(5),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.TargetSizeString?21:22),c(2),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.BackupListCount?23:24),c(3),f("loader",r.startingBackup()),c(4),s("routerLink",b(16,K,a.Backup==null?null:a.Backup.ID)),c(3),s("right",!0),c(5),s("routerLink",b(18,Q,a.Backup==null?null:a.Backup.ID)),c(5),f("loader",r.deletingBackup()===(a.Backup==null?null:a.Backup.ID))}}function oe(e,l){if(e&1&&H(0,ae,48,20,"div",8,F),e&2){let n=p(2);T(n.backups())}}function le(e,l){e&1&&t(0," No backups founds ")}function ce(e,l){if(e&1&&u(0,oe,2,0)(1,le,1,0),e&2){let n=p();d(n.backups().length?0:1)}}function pe(e,l){e&1&&(i(0,"div",18),_(1,"spk-progress-bar",19),i(2,"div",3)(3,"h3"),t(4,"Loading backups..."),o()()())}var D=class e{#e=P(j);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;ngOnInit(){this.#e.getBackups(!0)}startBackup(l){this.#e.startBackup(l)}deleteBackup(l){l&&window.confirm("Are you sure you want to delete this backup?")&&this.#e.deleteBackup(l)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=y({type:e,selectors:[["app-home"]],decls:33,vars:5,consts:[["option",""],[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["spk-button","",3,"routerLink"],[3,"right"],["menu",""],[3,"routerLink"],[3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]],template:function(n,a){n&1&&(_(0,"app-status-bar"),i(1,"section")(2,"header")(3,"spk-card",1),_(4,"img",2),i(5,"div",3)(6,"h3"),t(7,"Backups"),o(),i(8,"p"),t(9,"Backups are stored in the cloud and can be restored at any time."),o()(),i(10,"button",4),t(11," Add "),i(12,"spk-icon"),t(13,"plus"),o()()(),i(14,"spk-card",1),_(15,"img",5),i(16,"div",3)(17,"h3"),t(18,"Restores"),o(),i(19,"p"),t(20,"Restores are stored in the cloud and can be restored at any time."),o()(),i(21,"button",4),t(22," Start "),i(23,"spk-icon"),t(24,"arrow-right"),o()()()(),i(25,"div",6)(26,"h2"),t(27,"My backups"),o(),i(28,"div",7),u(29,ce,2,1)(30,pe,5,0),E(31,29,q,null,30),o()()()),n&2&&(c(3),s("routerLink",B(3,G)),c(11),s("routerLink",B(4,J)),c(17),O(!a.backupsLoading()))},dependencies:[h,W,V,v,M,R],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{D as default};
1
+ import{a as W}from"./chunk-CRF5AN7X.js";import{a as j}from"./chunk-GQI6XZIF.js";import"./chunk-VKC5JNTF.js";import{a as M,g as v,h as V,j as A,m as z,n as R}from"./chunk-UHDKSMMI.js";import{Y as h}from"./chunk-WW3OAVSF.js";import"./chunk-2WU6GJ2L.js";import"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import"./chunk-DTFSSXIP.js";import{Ab as d,Bb as F,Cb as H,Db as T,Eb as i,Fb as o,Gb as _,Hb as L,Ib as w,Kb as I,Qb as g,Ra as c,Rb as p,X as P,cc as t,ea as x,ec as m,fa as C,fb as y,lb as u,lc as B,mc as b,pc as S,qc as N,rc as $,sb as E,tb as O,vb as s,xb as f}from"./chunk-ILNG56CV.js";import"./chunk-7CGTOI24.js";var q=()=>[h,v,M,A,z,import("./chunk-ITR23I5T.js").then(e=>e.DatePipe),import("./chunk-7JE7D2ZI.js").then(e=>e.DurationFormatPipe)],G=()=>["/add-backup"],J=()=>["/restore"],K=e=>["/backup",e],Q=e=>["/backup",e,"export"];function U(e,l){if(e&1&&(t(0),S(1,"durationFormat")),e&2){let n=p().$implicit;m(" - (took ",N(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDuration),") ")}}function X(e,l){e&1&&t(0," N/A ")}function Y(e,l){if(e&1&&t(0),e&2){let n=p().$implicit;m(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceSizeString," ")}}function Z(e,l){e&1&&t(0," N/A ")}function ee(e,l){if(e&1&&t(0),e&2){let n=p().$implicit;m(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetSizeString," ")}}function te(e,l){e&1&&t(0," N/A ")}function ne(e,l){if(e&1&&(i(0,"spk-chip",9),t(1),o()),e&2){let n=p().$implicit;c(),m("",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount," Version")}}function ie(e,l){e&1&&(i(0,"spk-chip",10),t(1,"No version yet"),o())}function ae(e,l){if(e&1){let n=I();i(0,"div",8)(1,"div",3)(2,"h3"),t(3),i(4,"spk-icon"),t(5,"database"),o()(),i(6,"p")(7,"span"),t(8,"Last successful backup:"),o(),t(9),S(10,"date"),u(11,U,2,3)(12,X,1,0),o(),i(13,"p")(14,"span"),t(15,"Source:"),o(),u(16,Y,1,1)(17,Z,1,0),o(),i(18,"p")(19,"span"),t(20,"Destination:"),o(),u(21,ee,1,1)(22,te,1,0),o()(),u(23,ne,2,1,"spk-chip",9)(24,ie,2,0,"spk-chip",10),i(25,"div",11)(26,"button",12),g("click",function(){let r=x(n).$implicit,k=p(3);return C(k.startBackup(r.Backup==null?null:r.Backup.ID))}),i(27,"spk-icon"),t(28,"play-circle"),o(),t(29," Start "),o(),i(30,"button",13)(31,"spk-icon"),t(32,"pencil-simple"),o()(),i(33,"spk-menu",14)(34,"button",4)(35,"spk-icon"),t(36,"dots-three-vertical"),o()(),L(37,15),i(38,"button",16,0),t(40," Export "),i(41,"spk-icon"),t(42,"export"),o()(),i(43,"button",17,0),g("click",function(){let r=x(n).$implicit,k=p(3);return C(k.deleteBackup(r.Backup==null?null:r.Backup.ID))}),t(45," Delete "),i(46,"spk-icon"),t(47,"x-circle"),o()(),w(),o()()()}if(e&2){let n,a=l.$implicit,r=p(3);c(3),m(" ",(n=a.Backup==null?null:a.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"," "),c(6),m(" ",$(10,13,a.Backup==null||a.Backup.Metadata==null?null:a.Backup.Metadata.LastBackupDate,"short")," "),c(2),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.LastBackupDuration?11:12),c(5),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.SourceSizeString?16:17),c(5),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.TargetSizeString?21:22),c(2),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.BackupListCount?23:24),c(3),f("loader",r.startingBackup()),c(4),s("routerLink",b(16,K,a.Backup==null?null:a.Backup.ID)),c(3),s("right",!0),c(5),s("routerLink",b(18,Q,a.Backup==null?null:a.Backup.ID)),c(5),f("loader",r.deletingBackup()===(a.Backup==null?null:a.Backup.ID))}}function oe(e,l){if(e&1&&H(0,ae,48,20,"div",8,F),e&2){let n=p(2);T(n.backups())}}function le(e,l){e&1&&t(0," No backups founds ")}function ce(e,l){if(e&1&&u(0,oe,2,0)(1,le,1,0),e&2){let n=p();d(n.backups().length?0:1)}}function pe(e,l){e&1&&(i(0,"div",18),_(1,"spk-progress-bar",19),i(2,"div",3)(3,"h3"),t(4,"Loading backups..."),o()()())}var D=class e{#e=P(j);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;ngOnInit(){this.#e.getBackups(!0)}startBackup(l){this.#e.startBackup(l)}deleteBackup(l){l&&window.confirm("Are you sure you want to delete this backup?")&&this.#e.deleteBackup(l)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=y({type:e,selectors:[["app-home"]],decls:33,vars:5,consts:[["option",""],[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["spk-button","",3,"routerLink"],[3,"right"],["menu",""],[3,"routerLink"],[3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]],template:function(n,a){n&1&&(_(0,"app-status-bar"),i(1,"section")(2,"header")(3,"spk-card",1),_(4,"img",2),i(5,"div",3)(6,"h3"),t(7,"Backups"),o(),i(8,"p"),t(9,"Backups are stored in the cloud and can be restored at any time."),o()(),i(10,"button",4),t(11," Add "),i(12,"spk-icon"),t(13,"plus"),o()()(),i(14,"spk-card",1),_(15,"img",5),i(16,"div",3)(17,"h3"),t(18,"Restores"),o(),i(19,"p"),t(20,"Restores are stored in the cloud and can be restored at any time."),o()(),i(21,"button",4),t(22," Start "),i(23,"spk-icon"),t(24,"arrow-right"),o()()()(),i(25,"div",6)(26,"h2"),t(27,"My backups"),o(),i(28,"div",7),u(29,ce,2,1)(30,pe,5,0),E(31,29,q,null,30),o()()()),n&2&&(c(3),s("routerLink",B(3,G)),c(11),s("routerLink",B(4,J)),c(17),O(!a.backupsLoading()))},dependencies:[h,W,V,v,M,R],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{D as default};
@@ -1 +1 @@
1
- import{a as I,b as x,d as E,e as B,h as M,l as w,o as A,r as N,t as P}from"./chunk-6TFXXYVK.js";import{a as O}from"./chunk-2SYB6ABM.js";import{a as D}from"./chunk-BVTTY2FQ.js";import{a as T,c as L,g as R,k as V,t as j,v as G}from"./chunk-QL753AWG.js";import{X as F,Y as v}from"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import{Ab as C,E as b,Eb as i,Fb as e,Gb as u,Qb as g,Ra as m,X as s,Za as f,cc as n,fb as h,kc as _,lb as S,vb as d,xb as y}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var q=()=>["/"];function z(c,o){c&1&&(i(0,"spk-form-field")(1,"label",13),n(2,"Passphrase"),e(),u(3,"input",14),e())}var p=new N,k=class c{#e=s(L);#t=s(D);#o=s(O);#r=s(F);isImporting=f(!1);isSecureFile=f(!1);importForm=p.group({config:p.control(""),cmdline:p.control(!1),importMetadata:p.control(!1),direct:p.control(!1),passphrase:p.control("")});selectedFile=f(null);onFileDropped(o){let t=o.target?.files?.item(0);if(t){let a=new FileReader;this.isSecureFile.set(t.type!=="application/json"),a.onload=this.#i.bind(this),a.readAsArrayBuffer(t)}}#i(o){let r=o.target?.result;this.importForm.patchValue({config:this.#n(r)})}#n(o){let r=new Uint8Array(o),t=r.byteLength,a="";for(let l=0;l<t;l++)a+=String.fromCharCode(r[l]);return btoa(a)}submit(){this.isImporting.set(!0),this.#t.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(b(()=>this.isImporting.set(!1))).subscribe({next:o=>{let r=this.#o.addDraftBackup(o.data);this.#r.navigate(["/backup-draft",r])},error:o=>{this.#e.error(o.message)}})}static \u0275fac=function(r){return new(r||c)};static \u0275cmp=h({type:c,selectors:[["app-import"]],decls:28,vars:7,consts:[[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","importMetadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","formControlName","passphrase"]],template:function(r,t){r&1&&(i(0,"header")(1,"h3"),n(2," Import backup configuration "),i(3,"div",0)(4,"button",1)(5,"spk-icon"),n(6,"arrow-left"),e(),n(7," Back "),e(),i(8,"button",2),g("click",function(){return t.submit()}),i(9,"spk-icon"),n(10,"download-simple"),e(),n(11," Import "),e()()()(),i(12,"form",3)(13,"spk-form-field",4),g("fileDropped",function(l){return t.onFileDropped(l)}),i(14,"label",5),n(15,"Select a configuration file"),e(),i(16,"input",6),g("change",function(l){return t.onFileDropped(l)}),e(),i(17,"spk-icon",7),n(18,"upload"),e()(),S(19,z,4,0,"spk-form-field"),i(20,"spk-toggle",8)(21,"label",9),n(22,"Import Metadata"),e(),u(23,"input",10),e(),i(24,"spk-toggle",8)(25,"label",11),n(26,"Save now"),e(),u(27,"input",12),e()()),r&2&&(m(4),d("routerLink",_(6,q)),m(4),y("loader",t.isImporting()),d("disabled",t.isImporting()),m(4),d("formGroup",t.importForm),m(7),C(t.isSecureFile()?19:-1))},dependencies:[P,M,x,I,E,B,w,A,v,G,V,T,R,j],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}"],changeDetection:0})};export{k as default};
1
+ import{a as I,b as x,d as E,e as B,h as M,l as w,o as A,r as N,t as P}from"./chunk-3IEVUFHW.js";import{a as O}from"./chunk-GQI6XZIF.js";import{a as D}from"./chunk-VKC5JNTF.js";import{a as T,c as L,g as R,k as V,v as j,x as G}from"./chunk-UHDKSMMI.js";import{X as F,Y as v}from"./chunk-WW3OAVSF.js";import"./chunk-2WU6GJ2L.js";import"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import{Ab as C,E as b,Eb as i,Fb as e,Gb as u,Qb as g,Ra as m,X as s,Za as f,cc as n,fb as h,lb as S,lc as _,vb as d,xb as y}from"./chunk-ILNG56CV.js";import"./chunk-7CGTOI24.js";var q=()=>["/"];function z(c,o){c&1&&(i(0,"spk-form-field")(1,"label",13),n(2,"Passphrase"),e(),u(3,"input",14),e())}var p=new N,k=class c{#e=s(L);#t=s(D);#o=s(O);#r=s(F);isImporting=f(!1);isSecureFile=f(!1);importForm=p.group({config:p.control(""),cmdline:p.control(!1),importMetadata:p.control(!1),direct:p.control(!1),passphrase:p.control("")});selectedFile=f(null);onFileDropped(o){let t=o.target?.files?.item(0);if(t){let a=new FileReader;this.isSecureFile.set(t.type!=="application/json"),a.onload=this.#i.bind(this),a.readAsArrayBuffer(t)}}#i(o){let r=o.target?.result;this.importForm.patchValue({config:this.#n(r)})}#n(o){let r=new Uint8Array(o),t=r.byteLength,a="";for(let l=0;l<t;l++)a+=String.fromCharCode(r[l]);return btoa(a)}submit(){this.isImporting.set(!0),this.#t.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(b(()=>this.isImporting.set(!1))).subscribe({next:o=>{let r=this.#o.addDraftBackup(o.data);this.#r.navigate(["/backup-draft",r])},error:o=>{this.#e.error(o.message)}})}static \u0275fac=function(r){return new(r||c)};static \u0275cmp=h({type:c,selectors:[["app-import"]],decls:28,vars:7,consts:[[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","importMetadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","formControlName","passphrase"]],template:function(r,t){r&1&&(i(0,"header")(1,"h3"),n(2," Import backup configuration "),i(3,"div",0)(4,"button",1)(5,"spk-icon"),n(6,"arrow-left"),e(),n(7," Back "),e(),i(8,"button",2),g("click",function(){return t.submit()}),i(9,"spk-icon"),n(10,"download-simple"),e(),n(11," Import "),e()()()(),i(12,"form",3)(13,"spk-form-field",4),g("fileDropped",function(l){return t.onFileDropped(l)}),i(14,"label",5),n(15,"Select a configuration file"),e(),i(16,"input",6),g("change",function(l){return t.onFileDropped(l)}),e(),i(17,"spk-icon",7),n(18,"upload"),e()(),S(19,z,4,0,"spk-form-field"),i(20,"spk-toggle",8)(21,"label",9),n(22,"Import Metadata"),e(),u(23,"input",10),e(),i(24,"spk-toggle",8)(25,"label",11),n(26,"Save now"),e(),u(27,"input",12),e()()),r&2&&(m(4),d("routerLink",_(6,q)),m(4),y("loader",t.isImporting()),d("disabled",t.isImporting()),m(4),d("formGroup",t.importForm),m(7),C(t.isSecureFile()?19:-1))},dependencies:[P,M,x,I,E,B,w,A,v,G,V,T,R,j],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}"],changeDetection:0})};export{k as default};
@@ -0,0 +1,2 @@
1
+ import{b as j}from"./chunk-B5E33CXC.js";import{a as $}from"./chunk-VKC5JNTF.js";import{a as q,d as z,g as A}from"./chunk-UHDKSMMI.js";import"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import{Ab as I,Bb as D,Cb as M,Db as P,Eb as t,Fb as s,Gb as T,Gc as U,Kb as u,Oa as k,Qb as _,Ra as l,Rb as f,Ub as E,X as S,Za as g,cc as o,dc as b,ea as d,ec as C,fa as m,fb as O,fc as V,gc as F,hc as W,ic as B,jc as J,lb as w,lc as N,p as L,vb as y}from"./chunk-ILNG56CV.js";import{a as h,b as x}from"./chunk-7CGTOI24.js";var G=()=>({maxWidth:"700px",width:"100%"});function H(c,i){if(c&1&&(t(0,"a",7)(1,"spk-icon"),o(2,"link"),s()()),c&2){let e=f().$implicit;E("href",e.Url,k)}}function K(c,i){if(c&1){let e=u();t(0,"div",0)(1,"h4"),o(2),w(3,H,3,1,"a",7),s(),t(4,"p"),o(5),T(6,"br"),t(7,"i"),o(8),s()(),t(9,"div",8)(10,"button",9),_("click",function(){let r=d(e).$implicit,a=f();return m(a.openLicense(r))}),o(11," Details "),t(12,"spk-icon"),o(13,"arrow-square-in"),s()()()()}if(c&2){let e=i.$implicit;l(2),V(" ",e.Title," - ",e.data==null?null:e.data.license," "),l(),I(e.Url?3:-1),l(2),C(" ",e.data==null?null:e.data.description," "),l(3),b(e.data==null?null:e.data.notes)}}var v=class c{#e=S($);licenses=j(this.#e.getApiV1Licenses().pipe(L(i=>i.map(e=>x(h({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=g(!1);dialogLicense=g(null);#t=U(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(i){this.dialogLicense.set(i)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(i){let e=i.split(`
2
+ `),n="";for(let r=0;r<e.length;r++)n+=`<li>${e[r]}</li>`;return n}static \u0275fac=function(e){return new(e||c)};static \u0275cmp=O({type:c,selectors:[["app-libraries"]],decls:15,vars:5,consts:[[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["spk-button","","type","button",3,"click"],[3,"href"],[1,"actions"],["spk-button","",3,"click"]],template:function(e,n){if(e&1){let r=u();t(0,"h3"),o(1,"Libraries"),s(),M(2,K,14,5,"div",0,D),t(4,"spk-dialog",1),B("isOpenChange",function(p){return d(r),W(n.dialogIsOpen,p)||(n.dialogIsOpen=p),m(p)}),t(5,"header",2)(6,"h3"),o(7),s()(),t(8,"div",3),J(9),t(10,"div",4),o(11),s()(),t(12,"footer",5)(13,"button",6),_("click",function(){return d(r),m(n.dialogLicense.set(null))}),o(14,"Close"),s()()()}if(e&2){let r,a;l(2),P(n.licenses()),l(2),F("isOpen",n.dialogIsOpen),y("options",N(4,G)),l(3),b((r=n.dialogLicense())==null?null:r.Title);let p=(a=(a=n.dialogLicense())==null?null:a.License)!==null&&a!==void 0?a:"";l(4),C(" ",p," ")}},dependencies:[q,A,z],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-level-40);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-level-40)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-level-10);color:var(--base-level-70);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-level-40)}"],changeDetection:0})};export{v as default};
@@ -1 +1 @@
1
- import{b as p}from"./chunk-ZVT4YXH5.js";import{a as f}from"./chunk-BVTTY2FQ.js";import{Dc as l,E as s,N as i,R as n,X as a,Za as o}from"./chunk-RJDP2FPE.js";var m=class t{#e=a(f);isLoaded=o(!1);systemInfo=o(null);filterGroups=p(this.#e.getApiV1SysteminfoFiltergroups());backendModules=l(()=>this.systemInfo()?.BackendModules??[]);preload(r=!1){let e=this.#e.getApiV1Systeminfo().pipe(i(c=>this.systemInfo.set(c)),s(()=>this.isLoaded.set(!0)));if(r)return e;e.subscribe()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})};export{m as a};
1
+ import{b as p}from"./chunk-B5E33CXC.js";import{a as f}from"./chunk-VKC5JNTF.js";import{E as s,Ec as l,N as i,R as n,X as a,Za as o}from"./chunk-ILNG56CV.js";var m=class t{#e=a(f);isLoaded=o(!1);systemInfo=o(null);filterGroups=p(this.#e.getApiV1SysteminfoFiltergroups());backendModules=l(()=>this.systemInfo()?.BackendModules??[]);preload(r=!1){let e=this.#e.getApiV1Systeminfo().pipe(i(c=>this.systemInfo.set(c)),s(()=>this.isLoaded.set(!0)));if(r)return e;e.subscribe()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})};export{m as a};
@@ -1 +1 @@
1
- import{a as k}from"./chunk-LUAN4O53.js";import"./chunk-2SYB6ABM.js";import"./chunk-BVTTY2FQ.js";import{a as l,g as u,h as g}from"./chunk-QL753AWG.js";import{Y as s}from"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-AIQQJSGP.js";import{Eb as e,Fb as n,Gb as a,Ra as o,cc as t,fb as d,kc as r,vb as p}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var b=()=>["/backup/new"],C=()=>["/backup/import"],c=class m{static \u0275fac=function(i){return new(i||m)};static \u0275cmp=d({type:m,selectors:[["app-add-backup"]],decls:25,vars:4,consts:[[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]],template:function(i,x){i&1&&(a(0,"app-status-bar"),e(1,"section")(2,"h2"),t(3,"Add a new backup"),n(),e(4,"div",0)(5,"spk-card",1),a(6,"img",2),e(7,"h3"),t(8,"New backup"),n(),e(9,"p"),t(10,"Configure a new backup. Choose your destination, source data and schedule."),n(),e(11,"button",3),t(12," Add a new backup "),e(13,"spk-icon"),t(14,"plus"),n()()(),e(15,"spk-card",1),a(16,"img",2),e(17,"h3"),t(18,"Import from file"),n(),e(19,"p"),t(20,"Import backup configuration from a file. During import you can adjust the setings."),n(),e(21,"button",3),t(22," Import from file "),e(23,"spk-icon"),t(24,"upload-simple"),n()()()()()),i&2&&(o(11),p("routerLink",r(2,b)),o(10),p("routerLink",r(3,C)))},dependencies:[k,u,g,l,s],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:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{c as default};
1
+ import{a as k}from"./chunk-CRF5AN7X.js";import"./chunk-GQI6XZIF.js";import"./chunk-VKC5JNTF.js";import{a as l,g as u,h as g}from"./chunk-UHDKSMMI.js";import{Y as s}from"./chunk-WW3OAVSF.js";import"./chunk-2WU6GJ2L.js";import"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import"./chunk-DTFSSXIP.js";import{Eb as e,Fb as n,Gb as a,Ra as o,cc as t,fb as d,lc as r,vb as p}from"./chunk-ILNG56CV.js";import"./chunk-7CGTOI24.js";var b=()=>["/backup/new"],C=()=>["/backup/import"],c=class m{static \u0275fac=function(i){return new(i||m)};static \u0275cmp=d({type:m,selectors:[["app-add-backup"]],decls:25,vars:4,consts:[[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]],template:function(i,x){i&1&&(a(0,"app-status-bar"),e(1,"section")(2,"h2"),t(3,"Add a new backup"),n(),e(4,"div",0)(5,"spk-card",1),a(6,"img",2),e(7,"h3"),t(8,"New backup"),n(),e(9,"p"),t(10,"Configure a new backup. Choose your destination, source data and schedule."),n(),e(11,"button",3),t(12," Add a new backup "),e(13,"spk-icon"),t(14,"plus"),n()()(),e(15,"spk-card",1),a(16,"img",2),e(17,"h3"),t(18,"Import from file"),n(),e(19,"p"),t(20,"Import backup configuration from a file. During import you can adjust the setings."),n(),e(21,"button",3),t(22," Import from file "),e(23,"spk-icon"),t(24,"upload-simple"),n()()()()()),i&2&&(o(11),p("routerLink",r(2,b)),o(10),p("routerLink",r(3,C)))},dependencies:[k,u,g,l,s],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:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{c as default};
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-6V6L7ZNP.js";import"./chunk-P3FQ2AHT.js";import"./chunk-5XF5JD57.js";import"./chunk-RNQMP76A.js";import"./chunk-B5E33CXC.js";import"./chunk-3IEVUFHW.js";import"./chunk-VKC5JNTF.js";import"./chunk-UHDKSMMI.js";import"./chunk-WW3OAVSF.js";import"./chunk-2WU6GJ2L.js";import"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import"./chunk-ILNG56CV.js";import"./chunk-7CGTOI24.js";export{a as createRestoreOptionsForm,b as default};
@@ -1 +1 @@
1
- import{a as C}from"./chunk-L7M2MTRL.js";import"./chunk-ZAREJJZA.js";import"./chunk-BVTTY2FQ.js";import{g as b}from"./chunk-QL753AWG.js";import"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import{Ab as f,Eb as e,Fb as o,Gb as c,Ra as m,Sb as h,Tb as l,X as p,cc as i,fb as s,lb as u}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var y=["*",[["","footer",""]]],_=["*","[footer]"],r=class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=s({type:t,selectors:[["app-custom-card"]],ngContentSelectors:_,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(n,d){n&1&&(h(y),e(0,"div",0),c(1,"img",1),e(2,"header")(3,"div",2),c(4,"img",3),i(5," Duplicati "),o()(),e(6,"main"),l(7),e(8,"footer"),l(9,1),o()()(),c(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-level-20)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:480px;width:100%;position:relative;z-index:100;background-color:var(--base-level-10);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-level-30);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:480px;transform:translateY(-285px);left:0;right:0;z-index:-2;background:radial-gradient(rgba(var(--primary-rgb-100),1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:480px;width:100%;transform:translateY(-285px);left:0;right:0;z-index:-1;mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:12px;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:10px}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:28px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-level-60R);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function M(t,a){t&1&&(e(0,"h3"),i(1,"Logging out..."),o())}function O(t,a){t&1&&(e(0,"h3"),i(1,"You have successfully logged out your being redirected to login page."),o(),e(2,"button",0),i(3,"Go to login page"),o())}var g=class t{#e=p(C);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=s({type:t,selectors:[["app-logout"]],decls:3,vars:1,consts:[["spk-button","","routerLink","/",1,"raised","primary"]],template:function(n,d){n&1&&(e(0,"app-custom-card"),u(1,M,2,0,"h3")(2,O,4,0),o()),n&2&&(m(),f(d.isLoggingOut()?1:2))},dependencies:[r,b],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{g as default};
1
+ import{a as C}from"./chunk-6ZKECEPL.js";import"./chunk-4KO6DAFG.js";import"./chunk-VKC5JNTF.js";import{g as b}from"./chunk-UHDKSMMI.js";import"./chunk-WW3OAVSF.js";import"./chunk-2WU6GJ2L.js";import"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import{Ab as f,Eb as e,Fb as o,Gb as c,Ra as m,Sb as h,Tb as l,X as p,cc as i,fb as s,lb as u}from"./chunk-ILNG56CV.js";import"./chunk-7CGTOI24.js";var y=["*",[["","footer",""]]],_=["*","[footer]"],r=class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=s({type:t,selectors:[["app-custom-card"]],ngContentSelectors:_,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(n,d){n&1&&(h(y),e(0,"div",0),c(1,"img",1),e(2,"header")(3,"div",2),c(4,"img",3),i(5," Duplicati "),o()(),e(6,"main"),l(7),e(8,"footer"),l(9,1),o()()(),c(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-level-20)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:480px;width:100%;position:relative;z-index:100;background-color:var(--base-level-10);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-level-30);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:480px;transform:translateY(-285px);left:0;right:0;z-index:-2;background:radial-gradient(rgba(var(--primary-rgb-100),1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:480px;width:100%;transform:translateY(-285px);left:0;right:0;z-index:-1;mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:12px;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:10px}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:28px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-level-60R);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function M(t,a){t&1&&(e(0,"h3"),i(1,"Logging out..."),o())}function O(t,a){t&1&&(e(0,"h3"),i(1,"You have successfully logged out your being redirected to login page."),o(),e(2,"button",0),i(3,"Go to login page"),o())}var g=class t{#e=p(C);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=s({type:t,selectors:[["app-logout"]],decls:3,vars:1,consts:[["spk-button","","routerLink","/",1,"raised","primary"]],template:function(n,d){n&1&&(e(0,"app-custom-card"),u(1,M,2,0,"h3")(2,O,4,0),o()),n&2&&(m(),f(d.isLoggingOut()?1:2))},dependencies:[r,b],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{g as default};
@@ -0,0 +1 @@
1
+ import"./chunk-7CGTOI24.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-BP3UCGO5.js")},{path:"destination",loadComponent:()=>import("./chunk-EPBET4G4.js")},{path:"source-data",loadComponent:()=>import("./chunk-CEFENMMO.js")},{path:"schedule",loadComponent:()=>import("./chunk-3LDFRXNZ.js")},{path:"options",loadComponent:()=>import("./chunk-M3D5CWEA.js")}];export{o as default};
@@ -0,0 +1 @@
1
+ import{$a as oe,$b as V,Ab as O,Bb as le,Cb as ae,Db as ce,Eb as r,Ec as b,Fb as l,Gb as P,Gc as E,Hc as Z,Kb as T,Qb as S,R as U,Ra as y,Rb as C,Sb as v,Tb as a,Wa as ne,X as F,Ya as N,Za as h,_a as M,_b as pe,ab as R,ac as H,bc as de,cc as k,dc as ue,ea as d,ec as X,fa as u,fb as g,gc as z,hb as se,hc as G,ic as K,lb as x,lc as J,pa as Q,qa as j,ra as p,rb as re,sa as B,vb as $,wb as I,xb as L,yb as Y,zb as q}from"./chunk-ILNG56CV.js";import{a as A,b as W,c as ie}from"./chunk-7CGTOI24.js";var w=["*"],Ce=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],_e=["[icon]","[title]","*","[content]"];function Se(n,_){n&1&&(r(0,"spk-icon",3),k(1,"info"),l())}function ye(n,_){n&1&&(r(0,"spk-icon",3),k(1,"info"),l())}function ke(n,_){n&1&&(r(0,"spk-icon",3),k(1,"check-circle"),l())}function De(n,_){n&1&&(r(0,"spk-icon",3),k(1,"warning-octagon"),l())}function be(n,_){n&1&&(r(0,"spk-icon",3),k(1,"warning"),l())}function we(n,_){n&1&&(r(0,"spk-icon",3),k(1,"question"),l())}function Oe(n,_){if(n&1){let e=T();r(0,"spk-icon",7),S("click",function(){d(e);let i=C();return u(i.removeAlert())}),k(1,"plus"),l()}}var Ee=["dialogRef"];function xe(n,_){if(n&1){let e=T();r(0,"div",4),S("click",function(){d(e);let i=C();return u(i.isOpen.set(!1))}),l()}}var Te=["spk-button",""],Me=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Ie=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],he=["triggerRef"],Ve=["popoverRef"],Ae=[[["","trigger",""]],"*"],Fe=["[trigger]","*"];var Re=["inputWrap"];var Pe=()=>({closeOnButton:!1,closeOnEsc:!0});var je=["option"],He=["*",[["","menu",""]]],Be=["*","[menu]"];var Le=["optionsRef"],We=["formFieldWrapper"],qe=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],Ue=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"],Qe=()=>({closeOnButton:!1,closeOnEsc:!1});function Ne(n,_){if(n&1){let e=T();r(0,"spk-chip",12),S("click",function(i){let o=d(e).$implicit,s=C(3);return u(s.toggleOption(o,i))}),k(1),r(2,"spk-icon"),k(3,"x-circle"),l()()}if(n&2){let e,t=_.$implicit,i=C(3);q(i.chipClass()),y(),X(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function $e(n,_){if(n&1&&ae(0,Ne,4,3,"spk-chip",11,le),n&2){let e=C(2);ce(e.inputValue().split(","))}}function Ye(n,_){if(n&1&&(r(0,"div",6),x(1,$e,2,0),l()),n&2){let e=C();y(),O(e.inputValue().length>0?1:-1)}}function Xe(n,_){if(n&1&&(r(0,"div",6),k(1),l()),n&2){let e=C();y(),ue(e._displayValue())}}function ze(n,_){if(n&1){let e=T();r(0,"div",13),S("click",function(i){d(e);let o=C();return u(o.deselect(i))}),a(1,3),r(2,"spk-icon",14),k(3,"x-circle"),l()()}}function Ge(n,_){n&1&&(r(0,"div",8),a(1,4),r(2,"spk-icon",14),k(3,"magnifying-glass"),l()())}function Ke(n,_){if(n&1&&(r(0,"div",15),a(1,5),r(2,"spk-icon",14),k(3,"caret-down"),l()()),n&2){let e=C();L("open",e.isOpen())}}var Je=["dragImageElement"],Ze=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],et=["[sidenav]","[sidenav-closed-topbar]","*"];function tt(n,_){n&1&&P(0,"div",1,0)}function it(n,_){if(n&1){let e=T();r(0,"div",7),S("drop",function(i){d(e);let o=C();return u(o.drop(i))})("dragover",function(i){d(e);let o=C();return u(o.dragOver(i))})("dragenter",function(){d(e);let i=C();return u(i.dragEnter())})("dragleave",function(){d(e);let i=C();return u(i.dragLeave())}),l()}}function nt(n,_){if(n&1){let e=T();r(0,"div",8),S("dragstart",function(i){d(e);let o=C();return u(o.dragStart(i))})("dragend",function(i){d(e);let o=C();return u(o.dragEnd(i))})("drag",function(i){d(e);let o=C();return u(o.drag(i))})("touchstart",function(i){d(e);let o=C();return u(o.touchStart(i))})("touchmove",function(i){d(e);let o=C();return u(o.touchMove(i))})("touchend",function(i){d(e);let o=C();return u(o.touchEnd(i))})("touchcancel",function(i){d(e);let o=C();return u(o.touchCancel(i))}),l()}}var ot=[[["","table-header",""]],"*",[["","table-no-rows",""]]],st=["[table-header]","*","[table-no-rows]"];function rt(n,_){n&1&&P(0,"spk-progress-bar",0)}function lt(n,_){n&1&&(r(0,"div",1),a(1,2),l())}var at=["tooltipRef"],ee=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-icon"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Ft=(()=>{class n{constructor(){this._el=F(B),this.alertService=p(null),this.type=p("error"),this.id=p(null)}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-alert"]],hostVars:2,hostBindings:function(t,i){t&2&&q(i.type())},inputs:{alertService:[1,"alertService"],type:[1,"type"],id:[1,"id"]},ngContentSelectors:_e,decls:17,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,i){if(t&1&&(v(Ce),r(0,"div",1)(1,"div",2,0),a(3),l(),r(4,"div",2),x(5,Se,2,0,"spk-icon",3)(6,ye,2,0,"spk-icon",3)(7,ke,2,0,"spk-icon",3)(8,De,2,0,"spk-icon",3)(9,be,2,0,"spk-icon",3)(10,we,2,0,"spk-icon",3),l(),r(11,"div",4),a(12,1),a(13,2),l(),x(14,Oe,2,0,"spk-icon",5),r(15,"div",6),a(16,3),l()()),t&2){let o,s=de(2);y(),I("display",s.children.length?"block":"none"),y(4),O((o=i.type())==="primary"?5:o==="accent"?6:o==="success"?7:o==="error"?8:o==="warning"?9:10),y(9),O(i.id()?14:-1)}},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})();var Rt=(()=>{class n{constructor(){this.alertHistory=h([]),this.alertHistoryIsOpen=h(!1),this.alertHistoryIsHidden=h(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warning",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=crypto.randomUUID();this.alertHistory.update(i=>[W(A({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>W(A({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>W(A({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>W(A({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ct={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},pt=(()=>{class n{constructor(){this.dialogRef=M("dialogRef"),this.isOpen=R(!1),this.options=p(),this.closed=j(),this.defaultOptionMerge=b(()=>A(A({},ct),this.options())),this.abortController=null,this.isOpenEffect=E(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&V(i.dialogRef,Ee,5),t&2&&H()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:w,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(v(),r(0,"dialog",1,0)(2,"div",2),a(3),l(),x(4,xe,1,0,"div",3),l()),t&2){let o,s,c,f;I("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(c=i.defaultOptionMerge().maxHeight)!==null&&c!==void 0?c:"")("height",(f=i.defaultOptionMerge().height)!==null&&f!==void 0?f:""),y(4),O(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Pt=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#t=F(re),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#t;open(e,t){let i=this.#t.injector,o=this.#c(),te=t||{},{data:s,closed:c}=te,f=ie(te,["data","closed"]);this.compRef&&this.#r(),this.insertedCompRef=Z(e,{environmentInjector:i}),this.compRef=Z(pt,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let D=this.insertedCompRef.instance?.data,m=this.insertedCompRef.instance?.closed;if(s){if(N(D))this.insertedCompRef.setInput("data",s);else if(!N(D))throw new Error("data is not an input signal on the passed component")}m instanceof Q&&(this.closedFieldSub=m.subscribe((...ve)=>{c?.(...ve),this.#r()})),this.#t.attachView(this.insertedCompRef.hostView),this.#t.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",f),this.compRef.instance.closed.subscribe(()=>ge());let me=this;function ge(){m&&m instanceof Q?m.emit(!1):c?.(void 0),me.#r()}return this.insertedCompRef.instance}#c(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#r(){this.insertedCompRef&&(this.#t.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#t.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#r()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),jt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-button-group"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),dt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["","spk-button",""]],attrs:Te,ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Ht=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-card"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Bt=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},ngContentSelectors:w,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(v(),r(0,"div",0)(1,"spk-icon",1),k(2,"check"),l(),r(3,"spk-icon",2),k(4,"minus"),l()(),a(5))},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})(),ut=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-chip"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),ht=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let c=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},f=function(){window.setTimeout(c,0)};var i=c,o=f;let s=this.#e.nativeElement.querySelector("textarea");s.addEventListener("change",c),s.addEventListener("cut",f),s.addEventListener("paste",f),s.addEventListener("drop",f),s.addEventListener("keydown",f),s.focus(),s.select(),c()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},ngContentSelectors:Ie,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(v(Me),a(0),r(1,"div",0)(2,"div",1),a(3,1),a(4,2),l(),P(5,"div",2),a(6,3),a(7,4),a(8,5),P(9,"div",3),a(10,6),l(),r(11,"div",4)(12,"div",5),a(13,7),l(),r(14,"div",6),a(15,8),l()())},encapsulation:2,changeDetection:0})}}return n})(),ft={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},fe=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.disableOpenByClick=p(!1),this.isOpen=R(!1),this.options=p(),this.closed=j(),this.defaultOptionMerge=b(()=>A(A({},ft),this.options())),this.triggerRef=M.required("triggerRef"),this.popoverRef=M.required("popoverRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.openAbort=null,this.isCalculatingPosition=b(()=>{let e=this.popoverRef()?.nativeElement;return this.isOpen()?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,e?.showPopover(),document.addEventListener("keydown",i=>{i.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&i.preventDefault(),i.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{capture:!0,signal:this.abortController?.signal}),!0):(e.hidePopover(),this.abortController?.abort(),this.openAbort?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=E(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}#t(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,f=s+t.width>window.innerWidth,D=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(D),this._right.set(f);else{if(this.above()){let m=e.top-t.height-this.#e;m>=0&&(c=m)}else D&&(c=e.top-t.height-this.#e);if(this.right()){let m=e.right-t.width;m>=0&&(s=m)}else f&&(c=D?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(V(i.triggerRef,he,5),V(i.popoverRef,Ve,5)),t&2&&H(2)},hostVars:4,hostBindings:function(t,i){t&2&&L("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Fe,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(t,i){if(t&1){let o=T();v(Ae),r(0,"div",2,0),S("click",function(c){return d(o),u(i.toggleIsOpen(c))}),r(2,"div",3),a(3),l(),r(4,"button",4),k(5,"Open popover"),l()(),r(6,"div",5,1)(8,"div",6),S("click",function(c){return d(o),u(i.isOpen()&&i.eventClose(c))}),l(),a(9,1),l()}t&2&&(I("anchor-name",i.id()),y(6),Y(i.menuStyle()),I("position-anchor",i.id()))},dependencies:[dt],encapsulation:2,changeDetection:0})}}return n})();var Lt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-list"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Wt=(()=>{class n{constructor(){this.above=p(!1),this.right=p(!1),this.keepClickedOptionActive=p(!1),this.isOpen=R(!1),this.closed=j(),this.activeOptionIndex=h(-1),this.options=oe("option"),this.optionsEl=b(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=E(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&pe(o,i.options,je,4),t&2&&H()},hostBindings:function(t,i){t&1&&S("keydown",function(s){return i.onKeyDown(s)})},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Be,decls:6,vars:6,consts:[["formFieldWrapper",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"options",3,"click"]],template:function(t,i){if(t&1){let o=T();v(He),r(0,"spk-popover",1,0),K("isOpenChange",function(c){return d(o),G(i.isOpen,c)||(i.isOpen=c),u(c)}),S("closed",function(){return d(o),u(i.close("fromPopover"))}),r(2,"div",2),S("click",function(){return d(o),u(i.isOpen.set(!0))}),a(3),l(),r(4,"div",3),S("click",function(){return d(o),u(i.close("active"))}),a(5,1),l()()}t&2&&(z("isOpen",i.isOpen),$("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",J(5,Pe)))},dependencies:[fe],encapsulation:2,changeDetection:0})}}return n})(),mt=(()=>{class n{constructor(){this.value=p(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&P(0,"div",0),t&2&&I("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),qt=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},ngContentSelectors:w,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(v(),P(0,"div",0),a(1))},encapsulation:2,changeDetection:0})}}return n})();var Ut=(()=>{class n{constructor(){this.value=p(null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),gt=["primary","accent","tertiary","warn","success"],Qt=(()=>{class n{constructor(){this.#e=F(ne),this.#t=F(B),this.#c=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"&&t.target instanceof HTMLElement){let i=[...Array.from(t.addedNodes),...Array.from(t.removedNodes)];for(let o=0;o<i.length;o++){let s=i[o];(s.nodeName==="OPTION"||s.nodeName==="SPK-OPTION")&&this.#s.set(!this.#s())}}}),this.optionsRef=M("optionsRef"),this.formFieldWrapperRef=M.required("formFieldWrapper"),this.inputWrapRef=M.required("inputWrap"),this.inputValue=R(""),this.readonly=p(!1),this.isFreeText=p(!1),this.selectMultiple=p(!1),this.hideClearButton=p(!1),this.displayValue=p(""),this.displayFn=p(e=>`${e}`),this.above=p(!1),this.right=p(!1),this.#r=h(!1),this.#s=h(!1),this.#i=h(null),this.#l=h(null),this.#a=h(!1),this.#n=h(-1),this.isOpen=h(!1),this._isOpen=h(!1),this.#h=E(()=>{this._isOpen.set(this.isOpen()&&this.#o().length>0)}),this.isSearchInput=b(()=>this.#i()?.type==="search"),this.optionsEl=b(()=>this.optionsRef()?.nativeElement),this.#o=b(()=>{this.#s();let e=this.optionsRef()?.nativeElement.querySelectorAll("option"),t=this.optionsRef()?.nativeElement.querySelectorAll("spk-option");return e?.length?Array.from(e):t?.length?Array.from(t):[]}),this.chipClass=b(()=>Array.from(this.#t.nativeElement.classList).filter(e=>gt.includes(e)).join(" ")),this._displayValue=b(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=b(()=>this.#l()?this.#o().find(e=>(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))===this.#l()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#f=E(()=>{this.#r();let e=this.#t.nativeElement.querySelector("input");e&&(this.#y(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#d()}),this.#i.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#m=E(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#i();e&&e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.#o().length-1?this.#n.set(this.#u()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.#o().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#n()>-1&&this.selected(this.getOptionElement(this.#n()))):t.key==="Tab"?this.close(!0):(this.#n.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal})}),this.#g=E(()=>{this.isOpen()&&this.#S()}),this.#v=E(()=>{let e=this.inputValue();this.#i()&&(this.#i().value=e??"",this.#i().dispatchEvent(new Event("input")))}),this.#p=new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#r.set(!this.#r())})}#e;#t;#c;#r;#s;#i;#l;#a;#n;#h;#o;#f;#m;#g;#v;ngOnInit(){this.#p.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.#o()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#i()&&(this.#i().value="",this.#i().dispatchEvent(new Event("input"))),this.#n.set(this.#u()),this.#a.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#i()?.blur())}selected(e){if(!e)return;let t=(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))??"",i=this.#o().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.#o().length;o++){let s=this.#o()[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#a.set(!1),this.#l.set(null),this.selectMultiple()?this.#i()?.focus():(this.isOpen.set(!1),this.#i()?.blur())}calculateSelectedOptions(){setTimeout(()=>{let e=this.#o(),i=this.#i()?.value;for(let o=0;o<e.length;o++){let s=e[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){this.#s.set(!this.#s());let t=this.#l();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#a.set(!1),e||this.#i()?.blur(),this.#c.disconnect(),this.#_()}open(e){e.preventDefault(),!this.isOpen()&&(this.#c.observe(this.optionsEl(),{childList:!0,subtree:!0}),this.isSearchInput()&&!this.#a()&&!this.isFreeText()?(this.#l.set(this.inputValue()),this.inputValue.set(""),this.#i().focus(),this.#i().value="",this.#i().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#i().focus(),this.#s.set(!this.#s()),this.isOpen.set(!0),this.#a.set(!0),this.#C(),this.#d())}#C(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsEl()?.addEventListener("click",e=>{if(!e.target)return;this.#s.set(!this.#s());let t=e.target.closest("option"),i=e.target.closest("spk-option"),o=t||i;this.#o().indexOf(o)>-1&&this.selected(o)},{signal:this.clickController?.signal})}#_(){this.clickController&&this.clickController.abort()}#S(){for(let e=0;e<this.#o().length;e++){let t=this.#o()[e];this.#e.removeClass(t,"focused"),this.#n()===e&&(this.#e.addClass(t,"focused"),t.scrollIntoView({block:"center"}))}}#d(){let e=this.#i();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.#o();for(let o=0;o<i.length;o++){let s=i[o].getAttribute("ng-reflect-value");s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#u(){let e=this.#o();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#p;#y(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),this.#p.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-select"]],viewQuery:function(t,i){t&1&&(V(i.optionsRef,Le,5),V(i.formFieldWrapperRef,We,5),V(i.inputWrapRef,Re,5)),t&2&&H(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange"},ngContentSelectors:Ue,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=T();v(qe),r(0,"spk-popover",3,0),K("isOpenChange",function(c){return d(o),G(i.isOpen,c)||(i.isOpen=c),u(c)}),S("closed",function(){return d(o),u(i.close())}),r(2,"spk-form-field",4),S("click",function(c){return d(o),u(i.open(c))}),a(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),x(6,Ye,2,1,"div",6)(7,Xe,2,1,"div",6),a(8,1),l(),x(9,ze,4,0,"div",7)(10,Ge,4,0,"div",8)(11,Ke,4,2,"div",9),l(),r(12,"div",10,2),a(14,2),l()()}t&2&&(z("isOpen",i.isOpen),$("disableOpenByClick",!0)("options",J(7,Qe)),y(2),q(i.readonly()?"readonly":""),y(4),O(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),y(3),O((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[ht,ee,ut,fe],encapsulation:2,changeDetection:0})}}return n})(),Nt=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=p(!1),this.isOpen=R(!1),this.type=p(""),this.dragImageElement=M.required("dragImageElement"),this.dragIsEnding=h(!1),this.dragIsOnScreen=h(!0),this.isDragging=h(!1),this.dragPositionX=h(0),this.dragActualPositionX=b(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=b(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=E(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#t(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#t(e)}#t(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#t(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&V(i.dragImageElement,Je,5),t&2&&H()},hostVars:10,hostBindings:function(t,i){t&2&&L("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:et,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(v(Ze),x(0,tt,2,0,"div",1)(1,it,1,0,"div",2),r(2,"div",3),a(3),l(),r(4,"div",4),x(5,nt,1,0,"div",5),r(6,"div",6),a(7,1),l(),r(8,"main"),a(9,2),l()()),t&2&&(O(i.type()==="overlay"?0:-1),y(),O(i.type()==="overlay"&&i.isDragging()?1:-1),y(3),I("transform",i.draggingStyle()),y(),O(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var $t=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-stepper"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})();var Yt=(()=>{class n{constructor(){this.tableColumns=p([]),this.loading=p(!1),this.columnSizes=b(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=p([]),this.dataChange=j(),this.#e=null,this.#t=h(!1),this.sortByColumn=R(null),this.e=E(()=>{let e=this.sortByColumn();if(e===null)return this.#t()||(this.#e=this.data(),this.#t.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let t=e.startsWith("-")?e.slice(1):e,i=e.startsWith("-"),o=this.data().sort((s,c)=>{let f=s[t],D=c[t],m=0;return typeof f=="number"&&typeof D=="number"&&(m=f-D),f instanceof Date&&D instanceof Date&&(m=f.getTime()-D.getTime()),typeof f=="string"&&typeof D=="string"&&(m=f.localeCompare(D,void 0,{sensitivity:"base"})),i?-m:m});this.dataChange.emit(o)})}#e;#t;toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-table"]],hostVars:2,hostBindings:function(t,i){t&2&&I("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:st,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(v(ot),r(0,"thead"),a(1),x(2,rt,1,0,"spk-progress-bar",0),l(),r(3,"tbody"),a(4,1),l(),x(5,lt,2,0,"div",1)),t&2&&(y(2),O(i.loading()?2:-1),y(3),O(i.loading()?-1:5))},dependencies:[mt],encapsulation:2,changeDetection:0})}}return n})(),Xt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-tabs"]],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})();var zt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-toggle"]],ngContentSelectors:w,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(v(),r(0,"div",0),P(1,"div",1),l(),a(2))},encapsulation:2,changeDetection:0})}}return n})(),Gt=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=p(!1),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.message=p.required(),this.isOpen=R(!1),this.closed=j(),this.triggerRef=M.required("triggerRef"),this.tooltipRef=M.required("tooltipRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.isCalculatingPosition=b(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=E(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#t(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,f=s+t.width>window.innerWidth,D=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(D),this._right.set(f);else{if(this.above()){let m=e.top-t.height-this.#e;m>=0&&(c=m)}else D&&(c=e.top-t.height-this.#e);if(this.right()){let m=e.right-t.width;m>=0&&(s=m)}else f&&(c=D?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(V(i.triggerRef,he,5),V(i.tooltipRef,at,5)),t&2&&H(2)},hostVars:6,hostBindings:function(t,i){t&2&&L("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:w,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=T();v(),r(0,"div",2,0),S("mouseover",function(){return d(o),u(i.isOpen.set(!0))})("mouseout",function(){return d(o),u(i.isOpen.set(!1))}),a(2),l(),r(3,"div",3,1),k(5),l()}t&2&&(I("anchor-name",i.id()),y(3),Y(i.menuStyle()),I("position-anchor",i.id()),y(2),X(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})(),Kt=(()=>{class n{constructor(){this.filesOver=h(!1),this.filesDropped=j()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=se({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&S("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&L("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{ee as a,Ft as b,Rt as c,pt as d,Pt as e,jt as f,dt as g,Ht as h,Bt as i,ut as j,ht as k,Lt as l,Wt as m,mt as n,qt as o,Ut as p,Qt as q,Nt as r,$t as s,Yt as t,Xt as u,zt as v,Gt as w,Kt as x};
@@ -1 +1 @@
1
- import{a as v,c as d}from"./chunk-4Y76KESB.js";import{L as R,R as u,W as c,l as I,m as B,p as V,v as T,y as f}from"./chunk-RJDP2FPE.js";import{a as b,b as D}from"./chunk-7CGTOI24.js";var k=class{_fns;constructor(){this._fns=[]}eject(e){let p=this._fns.indexOf(e);p!==-1&&(this._fns=[...this._fns.slice(0,p),...this._fns.slice(p+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new k}};var y=class extends Error{url;status;statusText;body;request;constructor(e,p,i){super(i),this.name="ApiError",this.url=p.url,this.status=p.status,this.statusText=p.statusText,this.body=p.body,this.request=e}};var m=r=>typeof r=="string",P=r=>m(r)&&r!=="",S=r=>r instanceof Blob,O=r=>r instanceof FormData,w=r=>{try{return btoa(r)}catch{return Buffer.from(r).toString("base64")}},F=r=>{let e=[],p=(a,n)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(n))}`)},i=(a,n)=>{n!=null&&(n instanceof Date?p(a,n.toISOString()):Array.isArray(n)?n.forEach(o=>i(a,o)):typeof n=="object"?Object.entries(n).forEach(([o,l])=>i(`${a}[${o}]`,l)):p(a,n))};return Object.entries(r).forEach(([a,n])=>i(a,n)),e.length?`?${e.join("&")}`:""},U=(r,e)=>{let p=r.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",r.VERSION).replace(/{(.*?)}/g,(n,o)=>e.path?.hasOwnProperty(o)?p(String(e.path[o])):n),a=r.BASE+i;return e.query?a+F(e.query):a},N=r=>{if(r.formData){let e=new FormData,p=(i,a)=>{m(a)||S(a)?e.append(i,a):e.append(i,JSON.stringify(a))};return Object.entries(r.formData).filter(([,i])=>i!=null).forEach(([i,a])=>{Array.isArray(a)?a.forEach(n=>p(i,n)):p(i,a)}),e}},g=async(r,e)=>typeof e=="function"?e(r):e,H=(r,e)=>T({token:g(e,r.TOKEN),username:g(e,r.USERNAME),password:g(e,r.PASSWORD),additionalHeaders:g(e,r.HEADERS)}).pipe(V(({token:p,username:i,password:a,additionalHeaders:n})=>{let o=Object.entries(b(b({Accept:"application/json"},n),e.headers)).filter(([,l])=>l!=null).reduce((l,[A,h])=>D(b({},l),{[A]:String(h)}),{});if(P(p)&&(o.Authorization=`Bearer ${p}`),P(i)&&P(a)){let l=w(`${i}:${a}`);o.Authorization=`Basic ${l}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:S(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":m(e.body)?o["Content-Type"]="text/plain":O(e.body)||(o["Content-Type"]="application/json")),new v(o)})),M=r=>{if(r.body)return r.mediaType?.includes("application/json")||r.mediaType?.includes("+json")?JSON.stringify(r.body):m(r.body)||S(r.body)||O(r.body)?r.body:JSON.stringify(r.body)},$=(r,e,p,i,a,n,o)=>p.request(e.method,i,{headers:o,body:a??n,withCredentials:r.WITH_CREDENTIALS,observe:"response"}),z=(r,e)=>{if(e){let p=r.headers.get(e);if(m(p))return p}},W=r=>{if(r.status!==204&&r.body!==null)return r.body},K=(r,e)=>{let i=b({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},r.errors)[e.status];if(i)throw new y(r,e,i);if(!e.ok){let a=e.status??"unknown",n=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new y(r,e,`Generic Error: status: ${a}; status text: ${n}; body: ${o}`)}},s=(r,e,p)=>{let i=U(r,p),a=N(p),n=M(p);return H(r,p).pipe(R(o=>$(r,p,e,i,n,a,o)),R(async o=>{for(let L of r.interceptors.response._fns)o=await L(o);let l=W(o),A=z(o,p.responseHeader),h=l;return p.responseTransformer&&o.ok&&(h=await p.responseTransformer(l)),{url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:A??h}}),f(o=>o.status?I({url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):B(()=>o)),V(o=>(K(p,o),o.body)),f(o=>B(()=>o)))};var G=class r{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},x=class r{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(){return s(t,this.http,{method:"GET",url:"/api/v1/backups"})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1CaptchaByToken(e){return s(t,this.http,{method:"GET",url:"/api/v1/captcha/{token}",path:{token:e.token}})}postApiV1CaptchaByToken(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha/{token}",path:{token:e.token},body:e.requestBody,mediaType:"application/json"})}postApiV1Captcha(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha",body:e.requestBody,mediaType:"application/json"})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1Mssql(){return s(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopaftercurrentfile(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopaftercurrentfile",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopnow(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopnow",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,"captcha-token":e.captchaToken,"captcha-answer":e.captchaAnswer,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},C=class r{constructor(e){this.http=e}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},E=class r{constructor(e){this.http=e}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},j=class r{constructor(e){this.http=e}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},q=class r{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})};export{x as a,C as b,E as c,q as d};
1
+ import{a as v,c as d}from"./chunk-WARSRDZI.js";import{L as R,R as u,W as c,l as I,m as B,p as V,v as T,y as f}from"./chunk-ILNG56CV.js";import{a as b,b as D}from"./chunk-7CGTOI24.js";var k=class{_fns;constructor(){this._fns=[]}eject(e){let p=this._fns.indexOf(e);p!==-1&&(this._fns=[...this._fns.slice(0,p),...this._fns.slice(p+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new k}};var y=class extends Error{url;status;statusText;body;request;constructor(e,p,i){super(i),this.name="ApiError",this.url=p.url,this.status=p.status,this.statusText=p.statusText,this.body=p.body,this.request=e}};var m=r=>typeof r=="string",P=r=>m(r)&&r!=="",S=r=>r instanceof Blob,O=r=>r instanceof FormData,w=r=>{try{return btoa(r)}catch{return Buffer.from(r).toString("base64")}},F=r=>{let e=[],p=(a,n)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(n))}`)},i=(a,n)=>{n!=null&&(n instanceof Date?p(a,n.toISOString()):Array.isArray(n)?n.forEach(o=>i(a,o)):typeof n=="object"?Object.entries(n).forEach(([o,l])=>i(`${a}[${o}]`,l)):p(a,n))};return Object.entries(r).forEach(([a,n])=>i(a,n)),e.length?`?${e.join("&")}`:""},U=(r,e)=>{let p=r.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",r.VERSION).replace(/{(.*?)}/g,(n,o)=>e.path?.hasOwnProperty(o)?p(String(e.path[o])):n),a=r.BASE+i;return e.query?a+F(e.query):a},N=r=>{if(r.formData){let e=new FormData,p=(i,a)=>{m(a)||S(a)?e.append(i,a):e.append(i,JSON.stringify(a))};return Object.entries(r.formData).filter(([,i])=>i!=null).forEach(([i,a])=>{Array.isArray(a)?a.forEach(n=>p(i,n)):p(i,a)}),e}},g=async(r,e)=>typeof e=="function"?e(r):e,H=(r,e)=>T({token:g(e,r.TOKEN),username:g(e,r.USERNAME),password:g(e,r.PASSWORD),additionalHeaders:g(e,r.HEADERS)}).pipe(V(({token:p,username:i,password:a,additionalHeaders:n})=>{let o=Object.entries(b(b({Accept:"application/json"},n),e.headers)).filter(([,l])=>l!=null).reduce((l,[A,h])=>D(b({},l),{[A]:String(h)}),{});if(P(p)&&(o.Authorization=`Bearer ${p}`),P(i)&&P(a)){let l=w(`${i}:${a}`);o.Authorization=`Basic ${l}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:S(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":m(e.body)?o["Content-Type"]="text/plain":O(e.body)||(o["Content-Type"]="application/json")),new v(o)})),M=r=>{if(r.body)return r.mediaType?.includes("application/json")||r.mediaType?.includes("+json")?JSON.stringify(r.body):m(r.body)||S(r.body)||O(r.body)?r.body:JSON.stringify(r.body)},$=(r,e,p,i,a,n,o)=>p.request(e.method,i,{headers:o,body:a??n,withCredentials:r.WITH_CREDENTIALS,observe:"response"}),z=(r,e)=>{if(e){let p=r.headers.get(e);if(m(p))return p}},W=r=>{if(r.status!==204&&r.body!==null)return r.body},K=(r,e)=>{let i=b({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},r.errors)[e.status];if(i)throw new y(r,e,i);if(!e.ok){let a=e.status??"unknown",n=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new y(r,e,`Generic Error: status: ${a}; status text: ${n}; body: ${o}`)}},s=(r,e,p)=>{let i=U(r,p),a=N(p),n=M(p);return H(r,p).pipe(R(o=>$(r,p,e,i,n,a,o)),R(async o=>{for(let L of r.interceptors.response._fns)o=await L(o);let l=W(o),A=z(o,p.responseHeader),h=l;return p.responseTransformer&&o.ok&&(h=await p.responseTransformer(l)),{url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:A??h}}),f(o=>o.status?I({url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):B(()=>o)),V(o=>(K(p,o),o.body)),f(o=>B(()=>o)))};var G=class r{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},x=class r{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(){return s(t,this.http,{method:"GET",url:"/api/v1/backups"})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1CaptchaByToken(e){return s(t,this.http,{method:"GET",url:"/api/v1/captcha/{token}",path:{token:e.token}})}postApiV1CaptchaByToken(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha/{token}",path:{token:e.token},body:e.requestBody,mediaType:"application/json"})}postApiV1Captcha(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha",body:e.requestBody,mediaType:"application/json"})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1Mssql(){return s(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopaftercurrentfile(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopaftercurrentfile",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopnow(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopnow",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,"captcha-token":e.captchaToken,"captcha-answer":e.captchaAnswer,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},C=class r{constructor(e){this.http=e}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},E=class r{constructor(e){this.http=e}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},j=class r{constructor(e){this.http=e}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},q=class r{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})};export{x as a,C as b,E as c,q as d};
@@ -0,0 +1 @@
1
+ import{u as s}from"./chunk-UHDKSMMI.js";import{L as m,Y as u,Z as c}from"./chunk-WW3OAVSF.js";import"./chunk-2WU6GJ2L.js";import"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import{Eb as e,Fb as t,Gb as l,cc as n,fb as a}from"./chunk-ILNG56CV.js";import"./chunk-7CGTOI24.js";var i=class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=a({type:r,selectors:[["app-about"]],decls:13,vars:0,consts:[[1,"primary"],["tab","","routerLink","/about/general","routerLinkActive","active"],["tab","","routerLink","/about/changelog","routerLinkActive","active"],["tab","","routerLink","/about/libraries","routerLinkActive","active"],["tab","","routerLink","/about/system-info","routerLinkActive","active"],["tab","","routerLink","/about/logs","routerLinkActive","active"]],template:function(o,b){o&1&&(e(0,"spk-tabs",0)(1,"button",1),n(2,"General"),t(),e(3,"button",2),n(4,"Changelog"),t(),e(5,"button",3),n(6,"Libraries"),t(),e(7,"button",4),n(8,"System info"),t(),e(9,"button",5),n(10,"Logs"),t()(),e(11,"section"),l(12,"router-outlet"),t())},dependencies:[s,m,u,c],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0;padding:2.5rem}.nav[_ngcontent-%COMP%]{display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{i as default};
@@ -1,2 +1,2 @@
1
- import{Ga as ue,X as he,e as de}from"./chunk-DESW2TCQ.js";import{E as ne,L as re,O as te,R as O,U as N,W as w,X as m,_ as se,aa as oe,ba as ie,d as S,k as Q,l as X,la as ae,na as ce,p as x,w as H,wa as le,z as ee}from"./chunk-RJDP2FPE.js";import{a as Z}from"./chunk-7CGTOI24.js";var F=class{},L=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
1
+ import{Ga as ue,X as he,e as de}from"./chunk-57EM3QNL.js";import{E as ne,L as re,O as te,R as O,U as N,W as w,X as m,_ as se,aa as oe,ba as ie,d as S,k as Q,l as X,la as ae,na as ce,p as x,w as H,wa as le,z as ee}from"./chunk-ILNG56CV.js";import{a as Z}from"./chunk-7CGTOI24.js";var F=class{},L=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
2
2
  `).forEach(n=>{let t=n.indexOf(":");if(t>0){let s=n.slice(0,t),i=n.slice(t+1).trim();this.addHeaderEntry(s,i)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,t)=>{this.addHeaderEntry(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new r;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,n);let s=(e.op==="a"?this.headers.get(n):void 0)||[];s.push(...t),this.headers.set(n,s);break;case"d":let i=e.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(d=>i.indexOf(d)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}break}}addHeaderEntry(e,n){let t=e.toLowerCase();this.maybeSetNormalizedName(e,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}setHeaderEntries(e,n){let t=(Array.isArray(n)?n:[n]).map(i=>i.toString()),s=e.toLowerCase();this.headers.set(s,t),this.maybeSetNormalizedName(e,s)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var C=class{encodeKey(e){return fe(e)}encodeValue(e){return fe(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Re(r,e){let n=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let i=s.indexOf("="),[o,d]=i==-1?[e.decodeKey(s),""]:[e.decodeKey(s.slice(0,i)),e.decodeValue(s.slice(i+1))],a=n.get(o)||[];a.push(d),n.set(o,a)}),n}var Pe=/%(\d[a-f0-9])/gi,Ne={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function fe(r){return encodeURIComponent(r).replace(Pe,(e,n)=>Ne[n]??e)}function _(r){return`${r}`}var v=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new C,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Re(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let t=e.fromObject[n],s=Array.isArray(t)?t.map(_):[_(t)];this.map.set(n,s)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(t=>{let s=e[t];Array.isArray(s)?s.forEach(i=>{n.push({param:t,value:i,op:"a"})}):n.push({param:t,value:s,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new r({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(_(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],s=t.indexOf(_(e.value));s!==-1&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var V=class{map=new Map;set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Ae(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function pe(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function ye(r){return typeof Blob<"u"&&r instanceof Blob}function me(r){return typeof FormData<"u"&&r instanceof FormData}function Oe(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var k=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,n,t,s){this.url=n,this.method=e.toUpperCase();let i;if(Ae(this.method)||s?(this.body=t!==void 0?t:null,i=s):i=t,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new g,this.context??=new V,!this.params)this.params=new v,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let d=n.indexOf("?"),a=d===-1?"?":d<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||pe(this.body)||ye(this.body)||me(this.body)||Oe(this.body)?this.body:this.body instanceof v?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||me(this.body)?null:ye(this.body)?this.body.type||null:pe(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof v?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let n=e.method||this.method,t=e.url||this.url,s=e.responseType||this.responseType,i=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,d=e.withCredentials??this.withCredentials,a=e.reportProgress??this.reportProgress,f=e.headers||this.headers,p=e.params||this.params,y=e.context??this.context;return e.setHeaders!==void 0&&(f=Object.keys(e.setHeaders).reduce((R,h)=>R.set(h,e.setHeaders[h]),f)),e.setParams&&(p=Object.keys(e.setParams).reduce((R,h)=>R.set(h,e.setParams[h]),p)),new r(n,t,o,{params:p,headers:f,context:y,reportProgress:a,responseType:s,withCredentials:d,transferCache:i})}},b=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(b||{}),j=class{headers;status;statusText;url;ok;type;constructor(e,n=200,t="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},B=class r extends j{constructor(e={}){super(e)}type=b.ResponseHeader;clone(e={}){return new r({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},U=class r extends j{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=b.Response;clone(e={}){return new r({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},E=class extends j{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Ee=200,Ie=204;function J(r,e){return{body:e,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var Me=(()=>{class r{handler;constructor(n){this.handler=n}request(n,t,s={}){let i;if(n instanceof k)i=n;else{let a;s.headers instanceof g?a=s.headers:a=new g(s.headers);let f;s.params&&(s.params instanceof v?f=s.params:f=new v({fromObject:s.params})),i=new k(n,t,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:f,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let o=X(i).pipe(ee(a=>this.handler.handle(a)));if(n instanceof k||s.observe==="events")return o;let d=o.pipe(H(a=>a instanceof U));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return d.pipe(x(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return d.pipe(x(a=>a.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,t={}){return this.request("DELETE",n,t)}get(n,t={}){return this.request("GET",n,t)}head(n,t={}){return this.request("HEAD",n,t)}jsonp(n,t){return this.request("JSONP",n,{params:new v().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,t={}){return this.request("OPTIONS",n,t)}patch(n,t,s={}){return this.request("PATCH",n,J(s,t))}post(n,t,s={}){return this.request("POST",n,J(s,t))}put(n,t,s={}){return this.request("PUT",n,J(s,t))}static \u0275fac=function(t){return new(t||r)(w(F))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),De=/^\)\]\}',?\n/,xe="X-Request-URL";function ge(r){if(r.url)return r.url;let e=xe.toLocaleLowerCase();return r.headers.get(e)}var $=(()=>{class r{fetchImpl=m(G,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(ce);handle(n){return new S(t=>{let s=new AbortController;return this.doRequest(n,s.signal,t).then(W,i=>t.error(new E({error:i}))),()=>s.abort()})}async doRequest(n,t,s){let i=this.createRequestInit(n),o;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,Z({signal:t},i)));ke(h),s.next({type:b.Sent}),o=await h}catch(h){s.error(new E({error:h,status:h.status??0,statusText:h.statusText,url:n.urlWithParams,headers:h.headers}));return}let d=new g(o.headers),a=o.statusText,f=ge(o)??n.urlWithParams,p=o.status,y=null;if(n.reportProgress&&s.next(new B({headers:d,status:p,statusText:a,url:f})),o.body){let h=o.headers.get("content-length"),I=[],c=o.body.getReader(),l=0,T,A,u=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:P,value:D}=await c.read();if(P)break;if(I.push(D),l+=D.length,n.reportProgress){A=n.responseType==="text"?(A??"")+(T??=new TextDecoder).decode(D,{stream:!0}):void 0;let Y=()=>s.next({type:b.DownloadProgress,total:h?+h:void 0,loaded:l,partialText:A});u?u.run(Y):Y()}}});let M=this.concatChunks(I,l);try{let P=o.headers.get("Content-Type")??"";y=this.parseBody(n,M,P)}catch(P){s.error(new E({error:P,headers:new g(o.headers),status:o.status,statusText:o.statusText,url:ge(o)??n.urlWithParams}));return}}p===0&&(p=y?Ee:0),p>=200&&p<300?(s.next(new U({body:y,headers:d,status:p,statusText:a,url:f})),s.complete()):s.error(new E({error:y,headers:d,status:p,statusText:a,url:f}))}parseBody(n,t,s){switch(n.responseType){case"json":let i=new TextDecoder().decode(t).replace(De,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:s});case"arraybuffer":return t.buffer}}createRequestInit(n){let t={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((i,o)=>t[i]=o.join(",")),n.headers.has("Accept")||(t.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(t["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:t,credentials:s}}concatChunks(n,t){let s=new Uint8Array(t),i=0;for(let o of n)s.set(o,i),i+=o.length;return s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),G=class{};function W(){}function ke(r){r.then(W,W)}function Fe(r,e){return e(r)}function Le(r,e,n){return(t,s)=>ie(n,()=>e(t,i=>r(i,s)))}var K=new N(""),je=new N(""),Ue=new N("",{providedIn:"root",factory:()=>!0});var Te=(()=>{class r extends F{backend;injector;chain=null;pendingTasks=m(ae);contributeToStability=m(Ue);constructor(n,t){super(),this.backend=n,this.injector=t}handle(n){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(K),...this.injector.get(je,[])]));this.chain=t.reduceRight((s,i)=>Le(s,i,this.injector),Fe)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(ne(()=>this.pendingTasks.remove(t)))}else return this.chain(n,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||r)(w(L),w(oe))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();var _e=/^\)\]\}',?\n/;function Be(r){return"responseURL"in r&&r.responseURL?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):null}var we=(()=>{class r{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new te(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?Q(t.\u0275loadImpl()):X(null)).pipe(re(()=>new S(i=>{let o=t.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((c,l)=>o.setRequestHeader(c,l.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let c=n.detectContentTypeHeader();c!==null&&o.setRequestHeader("Content-Type",c)}if(n.responseType){let c=n.responseType.toLowerCase();o.responseType=c!=="json"?c:"text"}let d=n.serializeBody(),a=null,f=()=>{if(a!==null)return a;let c=o.statusText||"OK",l=new g(o.getAllResponseHeaders()),T=Be(o)||n.url;return a=new B({headers:l,status:o.status,statusText:c,url:T}),a},p=()=>{let{headers:c,status:l,statusText:T,url:A}=f(),u=null;l!==Ie&&(u=typeof o.response>"u"?o.responseText:o.response),l===0&&(l=u?Ee:0);let M=l>=200&&l<300;if(n.responseType==="json"&&typeof u=="string"){let P=u;u=u.replace(_e,"");try{u=u!==""?JSON.parse(u):null}catch(D){u=P,M&&(M=!1,u={error:D,text:u})}}M?(i.next(new U({body:u,headers:c,status:l,statusText:T,url:A||void 0})),i.complete()):i.error(new E({error:u,headers:c,status:l,statusText:T,url:A||void 0}))},y=c=>{let{url:l}=f(),T=new E({error:c,status:o.status||0,statusText:o.statusText||"Unknown Error",url:l||void 0});i.error(T)},R=!1,h=c=>{R||(i.next(f()),R=!0);let l={type:b.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),n.responseType==="text"&&o.responseText&&(l.partialText=o.responseText),i.next(l)},I=c=>{let l={type:b.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),i.next(l)};return o.addEventListener("load",p),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),n.reportProgress&&(o.addEventListener("progress",h),d!==null&&o.upload&&o.upload.addEventListener("progress",I)),o.send(d),i.next({type:b.Sent}),()=>{o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",p),o.removeEventListener("timeout",y),n.reportProgress&&(o.removeEventListener("progress",h),d!==null&&o.upload&&o.upload.removeEventListener("progress",I)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(t){return new(t||r)(w(ue))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),ve=new N(""),ze="XSRF-TOKEN",Se=new N("",{providedIn:"root",factory:()=>ze}),Xe="X-XSRF-TOKEN",Je=new N("",{providedIn:"root",factory:()=>Xe}),z=class{},Ce=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,t,s){this.doc=n,this.platform=t,this.cookieName=s}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=he(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(t){return new(t||r)(w(de),w(le),w(Se))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();function Ve(r,e){let n=r.url.toLowerCase();if(!m(ve)||r.method==="GET"||r.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(r);let t=m(z).getToken(),s=m(Je);return t!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,t)})),e(r)}var q=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(q||{});function be(r,e){return{\u0275kind:r,\u0275providers:e}}function pn(...r){let e=[Me,we,Te,{provide:F,useExisting:Te},{provide:L,useFactory:()=>m($,{optional:!0})??m(we)},{provide:K,useValue:Ve,multi:!0},{provide:ve,useValue:!0},{provide:z,useClass:Ce}];for(let n of r)e.push(...n.\u0275providers);return se(e)}function yn(r){return be(q.Interceptors,r.map(e=>({provide:K,useValue:e,multi:!0})))}function mn(){return be(q.Fetch,[$,{provide:L,useExisting:$}])}export{g as a,U as b,Me as c,pn as d,yn as e,mn as f};
@@ -1,4 +1,4 @@
1
- import{b as de}from"./chunk-ZVT4YXH5.js";import{a as ke}from"./chunk-BVTTY2FQ.js";import{c as fe}from"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import{Eb as ce,Fb as he,Gb as pe,Na as ie,Ra as le,U as re,X as M,cc as ue,fb as oe,jc as ge,p as se,vb as ae}from"./chunk-RJDP2FPE.js";import{a as m,b as z}from"./chunk-7CGTOI24.js";function Q(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var S=Q();function Te(a){S=a}var P={exec:()=>null};function f(a,e=""){let t=typeof a=="string"?a:a.source,n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(b.caret,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}var b={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:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i")},Be=/^(?:[ \t]*(?:\n|$))+/,Pe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ve=/^ {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+|$)/,Ee=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,$e=/(?:[*+-]|\d{1,9}[.)])/,Re=f(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,$e).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/).getRegex(),G=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,qe=/^[^\n]+/,U=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Me=f(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),De=f(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,$e).getRegex(),N="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",W=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ze=f("^ {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",W).replace("tag",N).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Se=f(G).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",N).getRegex(),Ne=f(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Se).getRegex(),X={blockquote:Ne,code:Pe,def:Me,fences:ve,heading:Ee,hr:E,html:Ze,lheading:Re,list:De,newline:Be,paragraph:Se,table:P,text:qe},xe=f("^ *([^\\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",N).getRegex(),je=z(m({},X),{table:xe,paragraph:f(G).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xe).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",N).getRegex()}),Oe=z(m({},X),{html:f(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",W).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:f(G).replace("hr",E).replace("heading",` *#{1,6} *[^
1
+ import{b as de}from"./chunk-B5E33CXC.js";import{a as ke}from"./chunk-VKC5JNTF.js";import{c as fe}from"./chunk-2WU6GJ2L.js";import"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import{Eb as ce,Fb as he,Gb as pe,Na as ie,Ra as le,U as re,X as M,cc as ue,fb as oe,kc as ge,p as se,vb as ae}from"./chunk-ILNG56CV.js";import{a as m,b as z}from"./chunk-7CGTOI24.js";function Q(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var S=Q();function Te(a){S=a}var P={exec:()=>null};function f(a,e=""){let t=typeof a=="string"?a:a.source,n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(b.caret,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}var b={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:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i")},Be=/^(?:[ \t]*(?:\n|$))+/,Pe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ve=/^ {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+|$)/,Ee=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,$e=/(?:[*+-]|\d{1,9}[.)])/,Re=f(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,$e).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/).getRegex(),G=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,qe=/^[^\n]+/,U=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Me=f(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),De=f(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,$e).getRegex(),N="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",W=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ze=f("^ {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",W).replace("tag",N).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Se=f(G).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",N).getRegex(),Ne=f(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Se).getRegex(),X={blockquote:Ne,code:Pe,def:Me,fences:ve,heading:Ee,hr:E,html:Ze,lheading:Re,list:De,newline:Be,paragraph:Se,table:P,text:qe},xe=f("^ *([^\\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",N).getRegex(),je=z(m({},X),{table:xe,paragraph:f(G).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xe).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",N).getRegex()}),Oe=z(m({},X),{html:f(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",W).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:f(G).replace("hr",E).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",Re).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),ze=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,He=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ae=/^( {2,}|\\)\n(?!\s*$)/,Fe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,q=new RegExp("\\p{P}\\p{S}","u"),Qe=f(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,q).getRegex(),Ge=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Ue=f(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,q).getRegex(),We=f("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,q).getRegex(),Xe=f("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,q).getRegex(),Ve=f(/\\([punct])/,"gu").replace(/punct/g,q).getRegex(),Je=f(/^<(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(),Ke=f(W).replace("(?:-->|$)","-->").getRegex(),Ye=f("^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",Ke).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Z=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,et=f(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Z).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ce=f(/^!?\[(label)\]\[(ref)\]/).replace("label",Z).replace("ref",U).getRegex(),Ie=f(/^!?\[(ref)\](?:\[\])?/).replace("ref",U).getRegex(),tt=f("reflink|nolink(?!\\()","g").replace("reflink",Ce).replace("nolink",Ie).getRegex(),V={_backpedal:P,anyPunctuation:Ve,autolink:Je,blockSkip:Ge,br:Ae,code:He,del:P,emStrongLDelim:Ue,emStrongRDelimAst:We,emStrongRDelimUnd:Xe,escape:ze,link:et,nolink:Ie,punctuation:Qe,reflink:Ce,reflinkSearch:tt,tag:Ye,text:Fe,url:P},nt=z(m({},V),{link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",Z).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Z).getRegex()}),H=z(m({},V),{escape:f(ze).replace("])","~|])").getRegex(),url:f(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),st=z(m({},H),{br:f(Ae).replace("{2,}","*").getRegex(),text:f(H.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),D={normal:X,gfm:je,pedantic:Oe},L={normal:V,gfm:H,breaks:st,pedantic:nt},rt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},be=a=>rt[a];function $(a,e){if(e){if(b.escapeTest.test(a))return a.replace(b.escapeReplace,be)}else if(b.escapeTestNoEncode.test(a))return a.replace(b.escapeReplaceNoEncode,be);return a}function me(a){try{a=encodeURI(a).replace(b.percentDecode,"%")}catch{return null}return a}function we(a,e){let t=a.replace(b.findPipe,(i,r,l)=>{let o=!1,c=r;for(;--c>=0&&l[c]==="\\";)o=!o;return o?"|":" |"}),n=t.split(b.splitPipe),s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(b.slashPipe,"|");return n}function B(a,e,t){let n=a.length;if(n===0)return"";let s=0;for(;s<n;){let i=a.charAt(n-s-1);if(i===e&&!t)s++;else if(i!==e&&t)s++;else break}return a.slice(0,n-s)}function it(a,e){if(a.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<a.length;n++)if(a[n]==="\\")n++;else if(a[n]===e[0])t++;else if(a[n]===e[1]&&(t--,t<0))return n;return-1}function ye(a,e,t,n,s){let i=e.href,r=e.title||null,l=a[1].replace(s.other.outputLinkReplace,"$1");if(a[0].charAt(0)!=="!"){n.state.inLink=!0;let o={type:"link",raw:t,href:i,title:r,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,o}return{type:"image",raw:t,href:i,title:r,text:l}}function lt(a,e,t){let n=a.match(t.other.indentCodeCompensation);if(n===null)return e;let s=n[1];return e.split(`
3
3
  `).map(i=>{let r=i.match(t.other.beginningSpace);if(r===null)return i;let[l]=r;return l.length>=s.length?i.slice(s.length):i}).join(`
4
4
  `)}var C=class{options;rules;lexer;constructor(e){this.options=e||S}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:B(n,`
@@ -1 +1 @@
1
- import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,la,m,ma,n,na,o,oa,p,pa,q,qa,r,ra,s,sa,t,ta,u,ua,v,va,w,wa,x,y,z}from"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";export{H as ActivatedRoute,I as ActivatedRouteSnapshot,C as ActivationEnd,B as ActivationStart,V as BaseRouteReuseStrategy,A as ChildActivationEnd,z as ChildActivationStart,F as ChildrenOutletContexts,O as DefaultTitleStrategy,h as DefaultUrlSerializer,j as EventType,u as GuardsCheckEnd,t as GuardsCheckStart,p as NavigationCancel,n as NavigationCancellationCode,m as NavigationEnd,r as NavigationError,q as NavigationSkipped,o as NavigationSkippedCode,l as NavigationStart,aa as NoPreloading,E as OutletContext,a as PRIMARY_OUTLET,$ as PreloadAllModules,_ as PreloadingStrategy,P as ROUTER_CONFIGURATION,qa as ROUTER_INITIALIZER,K as ROUTER_OUTLET_DATA,R as ROUTES,M as RedirectCommand,w as ResolveEnd,v as ResolveStart,y as RouteConfigLoadEnd,x as RouteConfigLoadStart,U as RouteReuseStrategy,X as Router,k as RouterEvent,Y as RouterLink,Z as RouterLinkActive,Y as RouterLinkWithHref,pa as RouterModule,L as RouterOutlet,ba as RouterPreloader,G as RouterState,J as RouterStateSnapshot,s as RoutesRecognized,D as Scroll,N as TitleStrategy,T as UrlHandlingStrategy,f as UrlSegment,e as UrlSegmentGroup,g as UrlSerializer,d as UrlTree,wa as VERSION,b as convertToParamMap,i as createUrlTreeFromSnapshot,c as defaultUrlMatcher,sa as mapToCanActivate,ta as mapToCanActivateChild,ua as mapToCanDeactivate,ra as mapToCanMatch,va as mapToResolve,ca as provideRouter,da as provideRoutes,ma as withComponentInputBinding,ha as withDebugTracing,ga as withDisabledInitialNavigation,fa as withEnabledBlockingInitialNavigation,ka as withHashLocation,ea as withInMemoryScrolling,la as withNavigationErrorHandler,ia as withPreloading,ja as withRouterConfig,na as withViewTransitions,Q as \u0275EmptyOutletComponent,oa as \u0275ROUTER_PROVIDERS,W as \u0275afterNextNavigation,S as \u0275loadChildren};
1
+ import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,la,m,ma,n,na,o,oa,p,pa,q,qa,r,ra,s,sa,t,ta,u,ua,v,va,w,wa,x,y,z}from"./chunk-WW3OAVSF.js";import"./chunk-2WU6GJ2L.js";import"./chunk-WARSRDZI.js";import"./chunk-57EM3QNL.js";import"./chunk-ILNG56CV.js";import"./chunk-7CGTOI24.js";export{H as ActivatedRoute,I as ActivatedRouteSnapshot,C as ActivationEnd,B as ActivationStart,V as BaseRouteReuseStrategy,A as ChildActivationEnd,z as ChildActivationStart,F as ChildrenOutletContexts,O as DefaultTitleStrategy,h as DefaultUrlSerializer,j as EventType,u as GuardsCheckEnd,t as GuardsCheckStart,p as NavigationCancel,n as NavigationCancellationCode,m as NavigationEnd,r as NavigationError,q as NavigationSkipped,o as NavigationSkippedCode,l as NavigationStart,aa as NoPreloading,E as OutletContext,a as PRIMARY_OUTLET,$ as PreloadAllModules,_ as PreloadingStrategy,P as ROUTER_CONFIGURATION,qa as ROUTER_INITIALIZER,K as ROUTER_OUTLET_DATA,R as ROUTES,M as RedirectCommand,w as ResolveEnd,v as ResolveStart,y as RouteConfigLoadEnd,x as RouteConfigLoadStart,U as RouteReuseStrategy,X as Router,k as RouterEvent,Y as RouterLink,Z as RouterLinkActive,Y as RouterLinkWithHref,pa as RouterModule,L as RouterOutlet,ba as RouterPreloader,G as RouterState,J as RouterStateSnapshot,s as RoutesRecognized,D as Scroll,N as TitleStrategy,T as UrlHandlingStrategy,f as UrlSegment,e as UrlSegmentGroup,g as UrlSerializer,d as UrlTree,wa as VERSION,b as convertToParamMap,i as createUrlTreeFromSnapshot,c as defaultUrlMatcher,sa as mapToCanActivate,ta as mapToCanActivateChild,ua as mapToCanDeactivate,ra as mapToCanMatch,va as mapToResolve,ca as provideRouter,da as provideRoutes,ma as withComponentInputBinding,ha as withDebugTracing,ga as withDisabledInitialNavigation,fa as withEnabledBlockingInitialNavigation,ka as withHashLocation,ea as withInMemoryScrolling,la as withNavigationErrorHandler,ia as withPreloading,ja as withRouterConfig,na as withViewTransitions,Q as \u0275EmptyOutletComponent,oa as \u0275ROUTER_PROVIDERS,W as \u0275afterNextNavigation,S as \u0275loadChildren};