@duplicati/ngclient 0.0.98 → 0.0.99
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.
- package/assets/spk.woff2 +0 -0
- package/chunk-22CSSCKZ.js +1 -0
- package/chunk-23KHTRDM.js +1 -0
- package/chunk-2SGDSXNW.js +1 -0
- package/chunk-2ZK7AAG4.js +1 -0
- package/chunk-36ZZ3COU.js +1 -0
- package/{chunk-L7XUXGTC.js → chunk-3IZBE2NA.js} +1 -1
- package/chunk-3NDOYD25.js +1 -0
- package/chunk-3UJUWE5B.js +1 -0
- package/chunk-3V622MYY.js +1 -0
- package/chunk-436ZVGPO.js +1 -0
- package/chunk-47OESBLR.js +1 -0
- package/{chunk-VGNOUHVL.js → chunk-4FF7PF7J.js} +1 -1
- package/chunk-54SNAQYD.js +1 -0
- package/chunk-7NPADQLG.js +1 -0
- package/chunk-AKXOFDEQ.js +8 -0
- package/chunk-AMJ2CM2Q.js +1 -0
- package/chunk-ASEBN4DE.js +1 -0
- package/chunk-BKWTKAB4.js +1 -0
- package/{chunk-QZEFXB74.js → chunk-BWYJMRKB.js} +1 -1
- package/chunk-CEOO3F5U.js +1 -0
- package/chunk-D5WIWFNP.js +1 -0
- package/{chunk-FXYF7V3T.js → chunk-DJWNLIDJ.js} +1 -1
- package/chunk-DRBDCRHV.js +1 -0
- package/{chunk-PQ6MLKHT.js → chunk-E2LHQGCK.js} +1 -1
- package/chunk-EKIFJPZJ.js +1 -0
- package/{chunk-RIM5NXPM.js → chunk-EO2PLY2Q.js} +1 -1
- package/chunk-EQCQL7A4.js +1 -0
- package/{chunk-PZY4BMZL.js → chunk-FDMBNUIK.js} +1 -1
- package/{chunk-I5VNBLZK.js → chunk-FKTH6XCB.js} +1 -1
- package/chunk-FQPH5MIV.js +2 -0
- package/chunk-FRXAEGHW.js +1 -0
- package/chunk-GNTO7EKM.js +1 -0
- package/chunk-H6IX2D2G.js +1 -0
- package/chunk-I3TLRILF.js +1 -0
- package/{chunk-SBHSCERN.js → chunk-I457VUEG.js} +1 -1
- package/{chunk-J242X4NN.js → chunk-ISRMJKPG.js} +1 -1
- package/chunk-J6XKFGF5.js +2 -0
- package/chunk-JIPY2BNJ.js +1 -0
- package/{chunk-BSJ6OMWB.js → chunk-JJQARMUD.js} +1 -1
- package/{chunk-VDB64BFB.js → chunk-K3CYM6ID.js} +1 -1
- package/{chunk-H5SFF5D7.js → chunk-KABJYPCP.js} +1 -1
- package/chunk-LU4LP7JL.js +3 -0
- package/chunk-M7VDIUGU.js +1 -0
- package/{chunk-46YKZZQG.js → chunk-MEQPT4C3.js} +1 -1
- package/chunk-MYK7A3PZ.js +1 -0
- package/{chunk-Z5KSF3LW.js → chunk-NFME267J.js} +1 -1
- package/chunk-O6GWHO26.js +1 -0
- package/chunk-OH33D663.js +1 -0
- package/{chunk-3UY6NFJH.js → chunk-PFAU4FFV.js} +1 -1
- package/chunk-PGUALKQ6.js +1 -0
- package/{chunk-UNV7VK4Z.js → chunk-PX6A6XCQ.js} +1 -1
- package/chunk-QMMXH5TN.js +1 -0
- package/chunk-QRVYPTC6.js +8 -0
- package/chunk-RHW5QVAY.js +1 -0
- package/chunk-SFWQDWHT.js +1 -0
- package/chunk-UJZB6UQE.js +1 -0
- package/chunk-UXWTPWS6.js +1 -0
- package/chunk-VP44CSPI.js +1 -0
- package/{chunk-FYKL2LOY.js → chunk-VRGLHRK2.js} +1 -1
- package/{chunk-BCSA6WFY.js → chunk-WCLOWI5G.js} +1 -1
- package/chunk-WSLU6K4D.js +1 -0
- package/chunk-WVVXCHHS.js +1 -0
- package/chunk-X4FOF7ZO.js +1 -0
- package/chunk-XGARKXE4.js +7 -0
- package/chunk-XH2A67YP.js +1 -0
- package/chunk-XITZBHPE.js +1 -0
- package/chunk-XQKR67WI.js +1 -0
- package/chunk-YPSSTA3J.js +1 -0
- package/chunk-ZDBNCA7O.js +1 -0
- package/chunk-ZHAXIU33.js +1 -0
- package/chunk-ZP273LXY.js +1 -0
- package/index.html +2 -2
- package/main-73DNRGWN.js +1 -0
- package/package.json +1 -1
- package/{styles-GQ3J35VN.css → styles-2KPDWK5U.css} +1 -1
- package/chunk-25TWFWOC.js +0 -1
- package/chunk-2X7AJBJY.js +0 -1
- package/chunk-3CRLUTKZ.js +0 -6
- package/chunk-3WHFK5U5.js +0 -1
- package/chunk-5CB3EQEQ.js +0 -1
- package/chunk-5WXAGJAM.js +0 -3
- package/chunk-64CRTZO6.js +0 -1
- package/chunk-6LVF5Q7U.js +0 -1
- package/chunk-7I2OB6KM.js +0 -1
- package/chunk-AKURWKKM.js +0 -1
- package/chunk-BGEONYDG.js +0 -1
- package/chunk-BUHABQCR.js +0 -1
- package/chunk-C36EIFZ5.js +0 -1
- package/chunk-C4WJIBJ4.js +0 -1
- package/chunk-E5PZ2WTR.js +0 -1
- package/chunk-ERQAUCCL.js +0 -1
- package/chunk-F2L6ATMF.js +0 -1
- package/chunk-FXQBVRVU.js +0 -1
- package/chunk-GY445E4I.js +0 -1
- package/chunk-HJXCC47N.js +0 -6
- package/chunk-I6XPZQ7N.js +0 -1
- package/chunk-IN4ROBMK.js +0 -1
- package/chunk-KA2H467C.js +0 -1
- package/chunk-KCEYQGRU.js +0 -1
- package/chunk-KW2XPLTZ.js +0 -1
- package/chunk-LDGR7NUE.js +0 -1
- package/chunk-LLNGOQQI.js +0 -1
- package/chunk-NQYRWS7A.js +0 -1
- package/chunk-OL234C52.js +0 -1
- package/chunk-OLIPUVMA.js +0 -1
- package/chunk-ORIEYVVO.js +0 -1
- package/chunk-QQKVF4B4.js +0 -1
- package/chunk-R2D3CVSD.js +0 -1
- package/chunk-RKFABCKT.js +0 -2
- package/chunk-RNQH6BGW.js +0 -1
- package/chunk-RY7J7BHG.js +0 -7
- package/chunk-SHATBKDA.js +0 -1
- package/chunk-TDXJNPMY.js +0 -1
- package/chunk-TGK3F3XP.js +0 -1
- package/chunk-U7C24GJ2.js +0 -1
- package/chunk-W4U2FPZX.js +0 -1
- package/chunk-W6TPRQIT.js +0 -1
- package/chunk-XA4UOPDI.js +0 -1
- package/chunk-XQCRX6RA.js +0 -2
- package/chunk-YQ7U7A2N.js +0 -1
- package/chunk-Z2LU6ASK.js +0 -1
- package/chunk-ZDCJ72UD.js +0 -1
- package/chunk-ZDMCLDW7.js +0 -1
- package/chunk-ZUX7IMN4.js +0 -1
- package/chunk-ZV72G3X3.js +0 -1
- package/main-F254FFHF.js +0 -1
package/chunk-HJXCC47N.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{g as Jt}from"./chunk-YQ7U7A2N.js";import{a as qt,b as Qt,c as Zt,p as tt}from"./chunk-3CRLUTKZ.js";import{a as jt}from"./chunk-J242X4NN.js";import"./chunk-DNHLTHLR.js";import"./chunk-F2L6ATMF.js";import"./chunk-KA2H467C.js";import{a as Xt}from"./chunk-Z2LU6ASK.js";import"./chunk-BCSA6WFY.js";import{a as U}from"./chunk-UNV7VK4Z.js";import"./chunk-TGK3F3XP.js";import"./chunk-TDXJNPMY.js";import"./chunk-ZDCJ72UD.js";import"./chunk-AKURWKKM.js";import{b as wt,c as vt,e as Pt,f as Vt,g as Mt,i as bt,j as Gt,m as Bt,n as Lt,o as Ut,p as Ht,q as Kt,r as Wt,t as zt}from"./chunk-BSJ6OMWB.js";import"./chunk-W4U2FPZX.js";import{b as Dt,d as St}from"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import{a as Ot,b as xt,d as Rt,e as Nt,l as kt,o as ht,p as It,s as yt,y as $t,z as At}from"./chunk-3WHFK5U5.js";import{b as Et}from"./chunk-64CRTZO6.js";import{c as ft}from"./chunk-VDB64BFB.js";import{ia as gt}from"./chunk-ERQAUCCL.js";import{Ab as l,Bb as r,Cb as d,D as ot,Db as w,Eb as v,Fb as M,Gb as S,Lc as K,Mb as O,Mc as Ct,Nb as x,Ob as b,Pb as q,Qb as j,Ra as o,Rb as H,Sb as f,Tb as p,Wb as h,X as I,Ya as rt,Yb as st,Zb as T,ca as C,cc as pt,da as g,db as lt,dc as _t,ec as P,fc as _,gc as Q,ha as at,hc as D,ib as m,ic as ct,kc as mt,lc as Ft,mc as ut,nc as Z,oc as J,pc as Y,qc as dt,rb as c,rc as Tt,sa as R,sc as G,tb as X,uc as B,wb as u,xb as y,yb as $,yc as L,zb as A}from"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";var Yt=["formRef"],te=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),ee=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),ne=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),ie=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),oe=()=>({maxWidth:"700px",width:"100%"});function ae(n,i){n&1&&(O(0,5,2),d(1,"spk-icon"),x())}function re(n,i){n&1&&b(0,5,3)}function le(n,i){if(n&1){let t=S();O(0,5,1),l(1,"button",21),f("click",function(){C(t);let a=p();return g(a.testDestination())}),m(2,ae,2,0)(3,re,1,0),r(),x()}if(n&2){let t=p();o(),X("success",t.successfulTest()),o(),u(t.successfulTest()?2:3)}}function se(n,i){if(n&1){let t=S();l(0,"p",27),f("click",function(){C(t);let a=p();return g(a.removeDestinationFormGroup(a.destinationCount()-1))}),O(1,8),d(2,"span",28),x(),r()}}function pe(n,i){if(n&1){let t=S();l(0,"div",34),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addDestinationFormGroup(a.key))}),l(1,"h3"),_(2),r(),l(3,"p"),_(4),r()()}if(n&2){let t=i.$implicit;o(2),Q(t.displayName),o(2),Q(t.description)}}function _e(n,i){if(n&1){let t=S();l(0,"button",35,1),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addDestinationFormGroup(a.key))}),_(2),r()}if(n&2){let t=i.$implicit;o(2),D(" ",t.displayName," ")}}function ce(n,i){if(n&1&&(l(0,"div",29),$(1,pe,5,2,"div",30,y),r(),l(3,"spk-menu",31)(4,"button",32),b(5,9),r(),w(6,20),$(7,_e,3,1,"button",33,y),v(),r()),n&2){let t=p();o(),A(t.destinationTypeOptionsFocused()),o(2),c("searchable",!0),o(4),A(t.destinationTypeOptionsNotFocused())}}function me(n,i){n&1&&M(0)}function Fe(n,i){if(n&1&&m(0,me,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,te,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function ue(n,i){n&1&&M(0)}function de(n,i){if(n&1&&m(0,ue,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,ee,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function Te(n,i){if(n&1){let t=S();O(0,10,1),l(1,"button",35,1),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addAdvancedFormPair(a,0))}),r(),x()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function Ce(n,i){n&1&&M(0)}function ge(n,i){if(n&1&&m(0,Ce,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,ne,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function fe(n,i){if(n&1){let t=S();O(0,11,1),l(1,"button",35,1),f("click",function(){let a=C(t).$implicit,s=p(2);return g(s.addHttpOption(a,0))}),r(),x()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function De(n,i){n&1&&M(0)}function Se(n,i){if(n&1&&m(0,De,1,0,"ng-container",40),n&2){let t,e=i.$implicit,a=i.$index;p();let s=P(29),F=p();c("ngTemplateOutlet",s)("ngTemplateOutletContext",G(7,z,B(2,ie,a,e,(t=F.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,F.destinationFormPair().oauthField)))}}function Ee(n,i){if(n&1&&(l(0,"spk-tooltip",49)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Oe(n,i){if(n&1&&(l(0,"app-file-tree",43)(1,"label",48),_(2),m(3,Ee,3,1,"spk-tooltip",49),r(),d(4,"input",50),r()),n&2){let t,e=p().$implicit,a=p(2);c("startingPath",a.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),h("formControlName",e.formView.name)}}function xe(n,i){if(n&1&&(l(0,"spk-tooltip",49)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Re(n,i){if(n&1&&(l(0,"app-file-tree",44)(1,"label",48),_(2),m(3,xe,3,1,"spk-tooltip",49),r(),d(4,"input",50),r()),n&2){let t,e=p().$implicit,a=p(2);c("hideShortcuts",!0)("startingPath",a.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),h("formControlName",e.formView.name)}}function Ne(n,i){if(n&1&&(l(0,"spk-tooltip",49)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function ke(n,i){n&1&&(l(0,"spk-icon",52),_(1,"link"),r())}function he(n,i){n&1&&(l(0,"spk-icon",52),_(1,"envelope"),r())}function Ie(n,i){n&1&&(l(0,"spk-icon",52),_(1,"textbox"),r())}function ye(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",48),_(2),m(3,Ne,3,1,"spk-tooltip",49),r(),d(4,"input",51),m(5,ke,2,0,"spk-icon",52)(6,he,2,0,"spk-icon",52)(7,Ie,2,0,"spk-icon",52),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),h("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),u(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function $e(n,i){if(n&1){let t=S();l(0,"span",56),f("click",function(){C(t);let a=p(2).$implicit,s=p(2);return g(s.oauthStartTokenCreation(a.destinationType))}),_(1,"AuthID"),r()}}function Ae(n,i){n&1&&(l(0,"spk-icon",52),_(1,"password"),r())}function we(n,i){if(n&1){let t=S();l(0,"spk-icon",57),f("click",function(){C(t);let a=p(2).$implicit;return g(a.formView.showPassword=!a.formView.showPassword)}),_(1," eye "),r()}}function ve(n,i){if(n&1){let t=S();l(0,"spk-icon",57),f("click",function(){C(t);let a=p(2).$implicit;return g(a.formView.showPassword=!a.formView.showPassword)}),_(1," eye-slash "),r()}}function Pe(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",48),_(2),r(),d(3,"input",53),m(4,$e,2,0,"span",54)(5,Ae,2,0,"spk-icon",52)(6,we,2,0,"spk-icon",55)(7,ve,2,0,"spk-icon",55),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),h("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),u(e.oauthField===e.formView.name?4:5),o(2),u(e.formView.showPassword?6:7)}}function Ve(n,i){if(n&1&&(l(0,"spk-tooltip",49)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(3).$implicit;c("message",t.formView.longDescription)}}function Me(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;D(" ",t," ")}}function be(n,i){if(n&1&&(l(0,"spk-select",58)(1,"label",48),_(2),m(3,Ve,3,1,"spk-tooltip",49),r(),d(4,"input",50),r(),m(5,Me,1,1,"ng-template",null,3,L)),n&2){let t,e=P(6);p();let a=Y(0),s=p().$implicit;c("options",a)("isClearable",!1)("optionTemplate",e),o(),T("for","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),o(),D(" ",(t=s.formView.shortDescription)!==null&&t!==void 0?t:s.formView.name," "),o(),u(s.formView.longDescription?3:-1),o(),T("id","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),h("formControlName",s.formView.name)}}function Ge(n,i){if(n&1&&(Z(0),m(1,be,7,14)),n&2){let t=p().$implicit,e=J(t.formView.loadOptions?t.formView.loadOptions(p(2).injector)():t.formView.options);o(),u(e?1:-1)}}function Be(n,i){if(n&1&&(l(0,"spk-tooltip",49)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(3).$implicit;c("message",t.formView.longDescription)}}function Le(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;ct(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ue(n,i){if(n&1&&(l(0,"spk-select",60)(1,"label",48),_(2),m(3,Be,3,1,"spk-tooltip",49),r(),d(4,"input",50),r(),m(5,Le,1,2,"ng-template",null,4,L)),n&2){let t,e=P(6);p();let a=Y(0),s=p().$implicit;c("options",a)("asFreeText",!0)("inlineSearch",!0)("optionTemplate",e),o(),T("for","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),o(),D(" ",(t=s.formView.shortDescription)!==null&&t!==void 0?t:s.formView.name," "),o(),u(s.formView.longDescription?3:-1),o(),T("id","destination-",s.formGroupName,"-",s.index,"-",s.asHttpOptions?"http":"other",""),h("formControlName",s.formView.name)}}function He(n,i){n&1&&d(0,"spk-progress-bar",59)}function Ke(n,i){if(n&1&&(Z(0),m(1,Ue,7,15)(2,He,1,0,"spk-progress-bar",59)),n&2){let t=p().$implicit,e=J(t.formView.loadOptions?t.formView.loadOptions(p(2).injector)():t.formView.options);o(),u(e?1:2)}}function We(n,i){if(n&1&&(l(0,"spk-tooltip",49)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function ze(n,i){if(n&1&&(l(0,"div",45)(1,"label",48),_(2),m(3,We,3,1,"spk-tooltip",49),r(),l(4,"div",61)(5,"spk-form-field"),d(6,"input",62),l(7,"spk-icon",52),_(8,"resize"),r()(),l(9,"spk-select",63),d(10,"input",64),r()()()),n&2){let t,e=p().$implicit,a=p(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(3),c("options",a.sizeOptions())("inlineSearch",!0)}}function Xe(n,i){if(n&1&&(l(0,"spk-tooltip",49)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function qe(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",48),_(2),m(3,Xe,3,1,"spk-tooltip",49),r(),d(4,"input",65),l(5,"spk-icon",52),_(6,"numpad"),r()()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),h("formControlName",e.formView.name)}}function je(n,i){if(n&1&&(l(0,"spk-tooltip",49)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Qe(n,i){if(n&1&&(l(0,"spk-toggle",46)(1,"label",48),_(2),m(3,je,3,1,"spk-tooltip",49),r(),d(4,"input",66),r()),n&2){let t,e=p().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),h("formControlName",e.formView.name)}}function Ze(n,i){if(n&1&&(l(0,"spk-tooltip",49)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Je(n,i){if(n&1&&_(0),n&2){let t=i.$implicit;D(" ",t," ")}}function Ye(n,i){if(n&1&&(l(0,"spk-select",67)(1,"label",48),_(2),m(3,Ze,3,1,"spk-tooltip",49),r(),d(4,"input",68),r(),m(5,Je,1,1,"ng-template",null,4,L)),n&2){let t,e=P(6),a=p().$implicit;c("options",a.formView.options)("selectMultiple",!0)("optionTemplate",e),o(),st("for","destination-",a.formGroupName,"-",a.index,""),o(),D(" ",(t=a.formView.shortDescription)!==null&&t!==void 0?t:a.formView.name," "),o(),u(a.formView.longDescription?3:-1),o(),h("formControlName",a.formView.name)}}function tn(n,i){if(n&1&&(l(0,"spk-tooltip",49)(1,"spk-icon"),_(2,"question"),r()()),n&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function en(n,i){if(n&1&&(l(0,"app-timespan",47)(1,"label",48),_(2),m(3,tn,3,1,"spk-tooltip",49),r()()),n&2){let t,e=p().$implicit;c("formControlName",e.formView.name)("customId","destination-"+e.formGroupName+"-"+e.index+"-"+(e.asHttpOptions?"http":"other")),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),D(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),u(e.formView.longDescription?3:-1)}}function nn(n,i){if(n&1){let t=S();l(0,"button",69),f("click",function(){C(t);let a=p().$implicit,s=p(2);return g(s.removeFormView(a.formView,0))}),l(1,"spk-icon"),_(2,"x-circle"),r()()}}function on(n,i){if(n&1&&(l(0,"div",41),w(1,42),m(2,Oe,5,17,"app-file-tree",43)(3,Re,5,13,"app-file-tree",44)(4,ye,8,13,"spk-form-field")(5,Pe,8,13,"spk-form-field")(6,Ge,2,2)(7,Ke,3,2)(8,ze,11,13,"div",45)(9,qe,7,11,"spk-form-field")(10,Qe,5,11,"spk-toggle",46)(11,Ye,7,9)(12,en,4,8,"app-timespan",47),v(),m(13,nn,3,0,"button",32),r()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),u(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"||t.formView.type==="DateTime"?12:-1),o(11),u(t.formGroupName==="advanced"?13:-1)}}function an(n,i){if(n&1&&(w(0,22)(1,36),$(2,Fe,1,9,"ng-container",null,y),$(4,de,1,9,"ng-container",null,y),l(6,"app-toggle-card",37),w(7,38),O(8,10),l(9,"spk-menu",31)(10,"button",39),d(11,"spk-icon"),r(),w(12,20),$(13,Te,3,1,"button",33,y),v(),r(),x(),v(),$(15,ge,1,9,"ng-container",null,y),r(),l(17,"app-toggle-card",37),w(18,38),O(19,11),l(20,"spk-menu",31)(21,"button",39),d(22,"spk-icon"),r(),w(23,20),$(24,fe,3,1,"button",33,y),v(),r(),x(),v(),$(26,Se,1,9,"ng-container",null,y),r(),m(28,on,14,5,"ng-template",null,2,L),v()()),n&2){let t=p();o(2),A(t.destinationFormPair().custom),o(2),A(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(3),c("searchable",!0),o(),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),A(t.notSelectedAdvancedFormPair()),o(2),A(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(3),c("searchable",!0),o(),c("disabled",t.notSelectedHttpOptions().length===0),o(3),A(t.notSelectedHttpOptions()),o(2),A(t.selectedHttpOptions())}}function rn(n,i){if(n&1){let t=S();l(0,"spk-dialog",70),ut("isOpenChange",function(a){C(t);let s=p();return Ft(s.targetUrlDialogOpen,a)||(s.targetUrlDialogOpen=a),g(a)}),l(1,"header",71)(2,"h2"),b(3,12),r(),l(4,"spk-alert",72),b(5,13),r()(),l(6,"div",73)(7,"spk-form-field"),d(8,"textarea",74),r()(),l(9,"footer",75)(10,"button",24),f("click",function(){C(t);let a=p();return g(a.closeTargetUrlDialog(!1))}),_(11,"Cancel"),r(),l(12,"button",76),f("click",function(){C(t);let a=p();return g(a.closeTargetUrlDialog(!0))}),O(13,14),d(14,"spk-icon"),x(),r()()()}if(n&2){let t=p();mt("isOpen",t.targetUrlDialogOpen),c("options",Tt(3,oe)),o(8),c("formControl",t.targetUrlCtrl)}}var ln=["Bytes","KB","MB","GB","TB","PB"],W=new Wt,wn=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),vn=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),et=class n{#l=I(St);#s=I(Dt);#p=I(ft);#t=I(tt);#i=I(Et);#e=I(Nt);#n=I(Jt);injector=I(at);formRef=rt.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=R(ln);successfulTest=R(!1);destinationTypeOptionsInFocus=R(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=R(Zt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(a=>a.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=Ct(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Mt;targetUrlInitial=R(null);targetUrlDialogOpen=R(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:a=>{let s=a.error.error.Error;if(s==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:F=>{F&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),s.startsWith("incorrect-cert:")){let F=s.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
|
|
2
|
-
If this is a self-signed certificate, you can choose to trust this certificate.
|
|
3
|
-
The server reported the certificate hash: ${F}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:E=>{E&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",F)}})}if(s.startsWith("incorrect-host-key:")){let F=s.split('incorrect-host-key:"')[1].split('",')[0],E=s.split('accepted-host-key:"')[1].split('",')[0];E?this.#e.open(U,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
|
|
4
|
-
otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
|
|
5
|
-
Do you want to REPLACE your CURRENT host key ${E}
|
|
6
|
-
with the REPORTED host key: ${F}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:N=>{N&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,F)}}):this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Approve host key?`,message:$localize`No certificate was specified, please verify that the reported host key is correct: ${F}`,confirmText:"Approve",cancelText:"Cancel"},closed:N=>{N&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,F)}})}}})}mapToTargetUrl(i){return Qt(i.value)}removeDestinationFormGroup(i){this.destinationForm.controls.destinations.removeAt(i)}displayFn(i){let t=this.destinationOptions().find(e=>e.Key===i);return t?`${t.DisplayName}`:""}goBack(){this.#n.exit()}next(){this.#l.navigate(["encryption"],{relativeTo:this.#s.parent})}#o=R("https://duplicati-oauth-handler.appspot.com/").asReadonly();#a=R(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#r=R(!1);#_=R(null);keyCreation(){}oauthStartTokenCreation(i){this.#r.set(!0);let t=450,e=600,a=this.#o()+"?type="+i+"&token="+this.#a(),s=screen.width/2-t/2,F=screen.height/2-e/2,E=window.open(a,"_blank","height="+e+",width="+t+",menubar=0,status=0,titlebar=0,toolbar=0,left="+s+",top="+F);E?.addEventListener("blur",N=>{console.log("event blur",N)}),E?.addEventListener("beforeunload",N=>{console.log("event beforeunload",N),this.#p.get(this.#o()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#a()}}).pipe(ot(()=>this.#r.set(!1))).subscribe({next:V=>{console.log("res",V),V?.authid&&this.#_.set(V.authid)}})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=lt({type:n,selectors:[["app-restore-destination"]],viewQuery:function(t,e){t&1&&pt(e.formRef,Yt,5),t&2&&_t()},features:[dt([tt])],decls:24,vars:6,consts:()=>{let i;i=$localize` Backup placement ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"\uFFFD*6:1\uFFFD"}:START_BLOCK_IF_1:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON:${"\uFFFD*2:2\uFFFD"}:START_BLOCK_IF: Connected ${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*3:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:dots-three-vertical${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:link${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,i=H(i);let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Exit `;let e;e=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let a;a=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let s;s=$localize`Other destinations`;let F;F=$localize` Advanced options ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#10\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#12\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*14:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*14:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_MENU:`,F=H(F);let E;E=$localize` Http options ${"\uFFFD#20\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#21\uFFFD"}:START_TAG_BUTTON: Add http option ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#23\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*25:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*25:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#23\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_MENU:`,E=H(E);let N;N=$localize`Select an option...`;let V;V=$localize`Edit target URL`;let nt;nt=$localize` Be careful, this will overwrite everything you have in your destination. `;let it;return it=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["option",""],["fieldTemplate",""],["enumOptionTemplate",""],["optionTemplate",""],i,t,e,a,s,F,E,V,nt,it,[3,"submit","formGroup"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile"],[3,"searchable"],["spk-button","","type","button",1,"outlined"],["type","button"],[1,"tile",3,"click"],["type","button",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","hideShortcuts","showHiddenNodes","selectFiles"],[3,"hideShortcuts","startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[3,"formControlName","customId"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],[3,"type","id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],[1,"indeterminate","primary"],["label","key","value","value",3,"options","asFreeText","inlineSearch","optionTemplate"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["placeholder",N,3,"options","inlineSearch"],["type","text","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"formControl"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,e){if(t&1){let a=S();l(0,"form",15,0),f("submit",function(){return C(a),g(e.next())}),l(2,"header")(3,"h3",16),O(4,5),l(5,"div",17),m(6,le,4,3,"button",18),l(7,"spk-menu")(8,"button",19),d(9,"spk-icon"),r(),w(10,20),l(11,"button",21),f("click",function(){return C(a),g(e.openTargetUrlDialog())}),d(12,"spk-icon"),r(),v(),r()(),x(),r(),m(13,se,3,0,"p"),r(),m(14,ce,9,1)(15,an,30,6,"ng-container",22),l(16,"div",23)(17,"button",24),f("click",function(){return C(a),g(e.goBack())}),O(18,6),d(19,"spk-icon"),x(),r(),l(20,"button",25),O(21,7),d(22,"spk-icon"),x(),r()()(),m(23,rn,15,4,"spk-dialog",26)}if(t&2){let a;c("formGroup",e.destinationForm),o(6),u(e.destinationCount()>0?6:-1),o(7),u(e.destinationCount()>0?13:-1),o(),u(e.destinationCount()===0?14:-1),o(),u(!((a=e.destinationFormSignal())==null||a.destinations==null)&&a.destinations.length?15:-1),o(8),u(e.targetUrlDialogOpen()?23:-1)}},dependencies:[zt,bt,vt,Gt,wt,Pt,Vt,Bt,Lt,Kt,Ut,Ht,gt,kt,ht,Ot,$t,At,Rt,xt,yt,It,qt,jt,Xt],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1);background-color:var(--base-level-20);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{wn as createDestinationForm,vn as createDestinationFormGroup,et as default};
|
package/chunk-I6XPZQ7N.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as g}from"./chunk-3CRLUTKZ.js";import"./chunk-J242X4NN.js";import"./chunk-DNHLTHLR.js";import{a as k}from"./chunk-F2L6ATMF.js";import"./chunk-KA2H467C.js";import"./chunk-Z2LU6ASK.js";import"./chunk-BCSA6WFY.js";import"./chunk-UNV7VK4Z.js";import{a as I}from"./chunk-5CB3EQEQ.js";import"./chunk-TGK3F3XP.js";import"./chunk-TDXJNPMY.js";import"./chunk-ZDCJ72UD.js";import{a as N}from"./chunk-AKURWKKM.js";import"./chunk-BSJ6OMWB.js";import"./chunk-W4U2FPZX.js";import{b as P,c as h,e as E,f as B}from"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import{p as $,q as M,u as b}from"./chunk-3WHFK5U5.js";import{b as O}from"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-QZEFXB74.js";import{Ab as s,Bb as p,C as m,Cb as n,Mb as d,Mc as A,Nb as c,Ra as r,X as l,db as f,ib as C,qc as R,rb as u,tc as _,wb as D}from"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";var K=(i,e)=>[i,e,"general"],L=(i,e)=>[i,e,"destination"],v=(i,e)=>[i,e,"source-data"],G=(i,e)=>[i,e,"schedule"],y=(i,e)=>[i,e,"options"];function U(i,e){i&1&&n(0,"spk-progress-bar",6)}function X(i,e){i&1&&(s(0,"section"),n(1,"router-outlet"),p())}var T=class i{#t=l(P);#e=l(g);#a=l(N);#i=l(O);isDraft=this.#e.isDraft;backupId=this.#e.backupId;finishedLoading=this.#e.finishedLoading;#o=k(this.#t.params);#n=k(this.#t.url);paramsChanged=A(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(m(1)).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(e.Backup),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup)),this.#e.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=f({type:i,selectors:[["app-backup"]],features:[R([g])],decls:20,vars:21,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,F,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(n(0,"app-status-bar"),s(1,"header")(2,"spk-stepper")(3,"div",5),d(4,0),n(5,"spk-radio"),c(),p(),s(6,"div",5),d(7,1),n(8,"spk-radio"),c(),p(),s(9,"div",5),d(10,2),n(11,"spk-radio"),c(),p(),s(12,"div",5),d(13,3),n(14,"spk-radio"),c(),p(),s(15,"div",5),d(16,4),n(17,"spk-radio"),c(),p()()(),C(18,U,1,0,"spk-progress-bar",6)(19,X,2,0,"section")),a&2&&(r(3),u("routerLink",_(6,K,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(9,L,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(12,v,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(15,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(18,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),D(t.finishedLoading()?19:18))},dependencies:[h,E,B,I,M,b,$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] spk-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"],changeDetection:0})};export{T as default};
|
package/chunk-IN4ROBMK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as W}from"./chunk-YQ7U7A2N.js";import"./chunk-J242X4NN.js";import{a as E}from"./chunk-F2L6ATMF.js";import"./chunk-Z2LU6ASK.js";import"./chunk-BCSA6WFY.js";import{a as G}from"./chunk-5CB3EQEQ.js";import"./chunk-TGK3F3XP.js";import"./chunk-TDXJNPMY.js";import"./chunk-ZDCJ72UD.js";import"./chunk-AKURWKKM.js";import"./chunk-BSJ6OMWB.js";import"./chunk-W4U2FPZX.js";import{b as $,c as P,e as L,f as M}from"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import{q as N,u as I}from"./chunk-3WHFK5U5.js";import"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-QZEFXB74.js";import{Ab as o,Bb as i,Cb as n,Mb as F,Mc as A,Nb as r,Ra as R,Tb as u,X as T,db as m,ib as f,rb as _,rc as p,sc as l,wb as C}from"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";var y=()=>["/restore-from-files/destination"],v=()=>["/restore-from-files/encryption"],h=()=>["/restore-from-files/select-files"],K=()=>["/restore-from-files/options"],X=e=>["/restore-draft",e],w=e=>["/restore-draft",e,"options"],b=e=>["/restore",e],x=e=>["/restore",e,"options"];function z(e,a){e&1&&(o(0,"div",8),F(1,0),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,1),n(5,"spk-radio"),r(),i(),o(6,"div",8),F(7,2),n(8,"spk-radio"),r(),i(),o(9,"div",8),F(10,3),n(11,"spk-radio"),r(),i()),e&2&&(_("routerLink",p(4,y)),R(3),_("routerLink",p(5,v)),R(3),_("routerLink",p(6,h)),R(3),_("routerLink",p(7,K)))}function j(e,a){if(e&1&&(o(0,"div",8),F(1,4),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,5),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,X,t.backupId())),R(3),_("routerLink",l(4,w,t.backupId()))}}function B(e,a){if(e&1&&(o(0,"div",8),F(1,6),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,7),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,b,t.backupId())),R(3),_("routerLink",l(4,x,t.backupId()))}}var c=class e{#t=T($);#e=T(W);#i=E(this.#t.params);#o=E(this.#t.url);backupId=this.#e.backupId;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;paramsChanged=A(()=>{let a=this.#i()?.id,t=!!this.#o()?.find(d=>d.path==="restore-draft"),s=!!this.#o()?.find(d=>d.path==="restore-from-files");this.#e.init(a,s,s||t)});static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["app-restore-flow"]],decls:7,vars:1,consts:()=>{let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Encryption `;let s;s=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let d;d=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let O;O=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let g;g=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let k;k=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let D;return D=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[a,t,s,d,O,g,k,D,["step","","routerLinkActive","active",3,"routerLink"]]},template:function(t,s){t&1&&(n(0,"app-status-bar"),o(1,"spk-stepper"),f(2,z,12,8)(3,j,6,6)(4,B,6,6),i(),o(5,"section"),n(6,"router-outlet"),i()),t&2&&(R(2),C(s.isFileRestore()?2:s.isDraft()?3:4))},dependencies:[I,N,G,P,L,M],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{c as default};
|
package/chunk-KA2H467C.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as le}from"./chunk-Z2LU6ASK.js";import{a as Y}from"./chunk-BCSA6WFY.js";import{b as ee,c as te,e as ie,h as ne,j as oe,s as re}from"./chunk-BSJ6OMWB.js";import{a as U,g as X,l as H,o as j,s as Z,x as J,y as Q,z as W}from"./chunk-3WHFK5U5.js";import{Ab as p,Bb as a,Cb as v,Db as L,Eb as P,Gb as S,Lc as k,Mb as b,Nb as D,Ob as q,Ra as l,Sb as g,Tb as s,X as B,Yb as C,_a as G,ca as d,da as u,db as K,ec as A,fc as m,gc as z,hc as T,ib as x,pa as E,rb as c,sa as V,wb as f,xb as M,yb as h,yc as R,zb as $}from"./chunk-RY7J7BHG.js";import{a as I,b as w}from"./chunk-7CGTOI24.js";function se(n,o){if(n&1){let e=S();p(0,"button",14),g("click",function(){d(e);let i=s();return u(i.addFreeTextSetting())}),b(1,5),v(2,"spk-icon"),D(),a()}}function pe(n,o){if(n&1){let e=S();p(0,"button",16,0),g("click",function(){let i=d(e).$implicit,r=s(2);return u(r.addSetting(i))}),m(2),a()}if(n&2){let e=o.$implicit;l(2),z(e.name)}}function _e(n,o){if(n&1&&(p(0,"h3",7),m(1),a(),h(2,pe,3,1,"button",15,M)),n&2){let e=o.$implicit;l(),z(e.displayName),l(),$(e.options)}}function me(n,o){n&1&&(p(0,"div",12),m(1,"Add a setting above to get started."),a())}function ce(n,o){if(n&1){let e=S();p(0,"div",17)(1,"label"),m(2),a(),p(3,"div",22)(4,"spk-form-field")(5,"input",23),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateFreeTextSettingName(r,i))}),a(),p(6,"spk-icon",24),m(7,"rectangle-dashed"),a()(),p(8,"spk-form-field")(9,"input",23),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateSettingValue(r,i))}),a(),p(10,"spk-icon",24),m(11,"textbox"),a()()()()}if(n&2){let e=s().$implicit;l(2),T(" ",e.FormView.shortDescription," "),l(3),c("ngModel",e.Name),l(4),c("ngModel",e.Value())}}function de(n,o){if(n&1&&(p(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function ue(n,o){if(n&1){let e=S();p(0,"app-file-tree",18)(1,"label",25),m(2),x(3,de,3,1,"spk-tooltip",26),a(),p(4,"input",27),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateSettingValue(r,i))}),a()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;c("startingPath",t.Value())("accepts",t.FormView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),l(),C("for","destination-",t.Name,"-",i,""),l(),T(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function ge(n,o){if(n&1&&(p(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function Ce(n,o){if(n&1){let e=S();p(0,"app-file-tree",19)(1,"label",25),m(2),x(3,ge,3,1,"spk-tooltip",26),a(),p(4,"input",27),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateSettingValue(r,i))}),a()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;c("startingPath",t.Value()),l(),C("for","destination-",t.Name,"-",i,""),l(),T(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function xe(n,o){if(n&1&&(p(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function Se(n,o){n&1&&(p(0,"spk-icon",24),m(1,"link"),a())}function fe(n,o){n&1&&(p(0,"spk-icon",24),m(1,"textbox"),a())}function Te(n,o){if(n&1){let e=S();p(0,"spk-form-field")(1,"label",25),m(2),x(3,xe,3,1,"spk-tooltip",26),a(),p(4,"input",27),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateSettingValue(r,i))}),a(),x(5,Se,2,0,"spk-icon",24)(6,fe,2,0,"spk-icon",24),a()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;l(),C("for","destination-",t.Name,"-",i,""),l(),T(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value()),l(),f(t.FormView.type==="Path"?5:6)}}function Fe(n,o){if(n&1){let e=S();p(0,"spk-icon",30),g("click",function(){d(e);let i=s(2).$implicit;return u(i.showPassword=!i.showPassword)}),m(1," eye "),a()}}function Oe(n,o){if(n&1){let e=S();p(0,"spk-icon",30),g("click",function(){d(e);let i=s(2).$implicit;return u(i.showPassword=!i.showPassword)}),m(1," eye-slash "),a()}}function Ve(n,o){if(n&1){let e=S();p(0,"spk-form-field")(1,"label",25),m(2),a(),p(3,"input",28),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateSettingValue(r,i))}),a(),p(4,"spk-icon",24),m(5,"password"),a(),x(6,Fe,2,0,"spk-icon",29)(7,Oe,2,0,"spk-icon",29),a()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;l(),C("for","destination-",t.Name,"-",i,""),l(),T(" ",t.FormView.shortDescription," "),l(),C("id","destination-",t.Name,"-",i,""),c("type",t.showPassword?"text":"password")("ngModel",t.Value()),l(3),f(t.showPassword?6:7)}}function Ie(n,o){if(n&1&&(p(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function we(n,o){if(n&1&&m(0),n&2){let e=o.$implicit;T(" ",e," ")}}function ye(n,o){if(n&1){let e=S();p(0,"spk-select",31)(1,"label",25),m(2),x(3,Ie,3,1,"spk-tooltip",26),a(),p(4,"input",27),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateSettingValue(r,i))}),a()(),x(5,we,1,1,"ng-template",null,1,R)}if(n&2){let e=A(6),t=s(),i=t.$implicit,r=t.$index;c("options",i.FormView.options)("isClearable",!1)("optionTemplate",e),l(),C("for","destination-",i.Name,"-",r,""),l(),T(" ",i.FormView.shortDescription," "),l(),f(i.FormView.longDescription?3:-1),l(),C("id","destination-",i.Name,"-",r,""),c("ngModel",i.Value())}}function Ne(n,o){if(n&1&&(p(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function ke(n,o){if(n&1){let e=S();p(0,"div",17)(1,"label",25),m(2),x(3,Ne,3,1,"spk-tooltip",26),a(),p(4,"div",22)(5,"spk-form-field")(6,"input",32),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateSizeSetting(r,i,"size"))}),a(),p(7,"spk-icon",24),m(8,"resize"),a()(),p(9,"spk-select",33)(10,"input",23),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateSizeSetting(r,i,"unit"))}),a()()()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index,r=s();l(),C("for","destination-",t.Name,"-",i,""),l(),T(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(3),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.size()),l(3),c("options",r.sizeOptions())("isClearable",!1),l(),c("ngModel",t.unit())}}function Me(n,o){if(n&1&&(p(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function he(n,o){if(n&1){let e=S();p(0,"spk-form-field")(1,"label",25),m(2),x(3,Me,3,1,"spk-tooltip",26),a(),p(4,"input",32),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateSettingValue(r,i))}),a(),p(5,"spk-icon",24),m(6,"numpad"),a()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;l(),C("for","destination-",t.Name,"-",i,""),l(),T(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function $e(n,o){if(n&1&&(p(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function Pe(n,o){if(n&1){let e=S();p(0,"spk-toggle",20)(1,"label",25),m(2),x(3,$e,3,1,"spk-tooltip",26),a(),p(4,"input",34),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateSettingValue(r,i))}),a()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;l(),C("for","destination-",t.Name,"-",i,""),l(),T(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function Ee(n,o){if(n&1&&(p(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function ve(n,o){if(n&1&&m(0),n&2){let e=o.$implicit;T(" ",e," ")}}function Le(n,o){if(n&1){let e=S();p(0,"spk-select",35)(1,"label",25),m(2),x(3,Ee,3,1,"spk-tooltip",26),a(),p(4,"input",36),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateSettingValue(r,i))}),a()(),x(5,ve,1,1,"ng-template",null,2,R)}if(n&2){let e=A(6),t=s(),i=t.$implicit,r=t.$index;c("options",i.FormView.options)("selectMultiple",!0)("optionTemplate",e),l(),C("for","destination-",i.Name,"-",r,""),l(),T(" ",i.FormView.shortDescription," "),l(),f(i.FormView.longDescription?3:-1),l(),c("ngModel",i.Value())}}function be(n,o){if(n&1&&(p(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function De(n,o){if(n&1&&m(0),n&2){let e=o.$implicit;T(" ",e.label," ")}}function Ae(n,o){if(n&1){let e=S();p(0,"div",17)(1,"label",25),m(2),x(3,be,3,1,"spk-tooltip",26),a(),p(4,"div",22)(5,"spk-form-field")(6,"input",32),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateTimespanSetting(r,i,"timespan"))}),a(),p(7,"spk-icon",24),m(8,"resize"),a()(),p(9,"spk-select",37)(10,"input",23),g("ngModelChange",function(i){d(e);let r=s().$implicit,_=s();return u(_.updateTimespanSetting(r,i,"unit"))}),a(),x(11,De,1,1,"ng-template"),a()()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index,r=s();l(),C("for","destination-",t.Name,"-",i,""),l(),T(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(3),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.timespan()),l(3),c("options",r.timeOptions())("isClearable",!1),l(),c("ngModel",t.unit())}}function ze(n,o){if(n&1){let e=S();p(0,"div",13),x(1,ce,12,3,"div",17)(2,ue,5,14,"app-file-tree",18)(3,Ce,5,10,"app-file-tree",19)(4,Te,7,10,"spk-form-field")(5,Ve,8,10,"spk-form-field")(6,ye,7,12)(7,ke,11,12,"div",17)(8,he,7,9,"spk-form-field")(9,Pe,5,9,"spk-toggle",20)(10,Le,7,9)(11,Ae,12,12,"div",17),p(12,"button",21),g("click",function(){let i=d(e).$implicit,r=s();return u(r.removeSetting(i))}),p(13,"spk-icon"),m(14,"x-bold"),a()()()}if(n&2){let e=o.$implicit;l(),f(e.FormView.type==="FreeText"?1:e.FormView.type==="FileTree"?2:e.FormView.type==="FolderTree"?3:e.FormView.type==="String"||e.FormView.type==="Path"||e.FormView.type==="Decimal"?4:e.FormView.type==="Password"?5:e.FormView.type==="Enumeration"?6:e.FormView.type==="Size"?7:e.FormView.type==="Integer"?8:e.FormView.type==="Boolean"?9:e.FormView.type==="Flags"?10:e.FormView.type==="Timespan"||e.FormView.type==="DateTime"?11:-1)}}var Re=["Bytes","KB","MB","GB","TB","PB"],Be=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],ae=class n{#e=B(Y);options=G.required();hiddenOptions=E([]);hasFreeTextSettings=E(!1);allOptionsGrouped=this.#e.allOptionsGrouped;allOptions=this.#e.allOptions;sizeOptions=V(Re);timeOptions=V(Be);selectedSettings=k(()=>{let o=this.hiddenOptions();return this.options().map(t=>{let i=this.allOptions().find(r=>r.name===t.Name);if(i&&!o.includes(i.name)){if(i.type==="Size"){let F=t.Value?.replace(/[0-9]/g,""),O=t.Value?.replace(/[^0-9]/g,""),y=V(F&&F!==""?F:"MB"),N=V(O&&O!==""?parseInt(O):"");return w(I({},t),{Value:k(()=>N()+y()),unit:y,size:N,FormView:i})}if(i.type==="Timespan"||i.type=="DateTime"){let F=t.Value?.replace(/[0-9]/g,""),O=t.Value?.replace(/[^0-9]/g,""),y=V(F&&F!==""?F:"s"),N=V(O&&O!==""?parseInt(O):"");return w(I({},t),{Value:k(()=>N()+y()),unit:y,timespan:N,FormView:i})}let r=t.Value??"";i.type==="Boolean"&&(r=r&&r.toLowerCase()==="true"||!1),i.type==="Integer"&&(r=parseInt(r)||0);let _=V(r);return w(I({},t),{Value:_,FormView:i})}else if(this.hasFreeTextSettings())return w(I({},t),{Value:V(t.Value),FormView:{name:t.Name,type:"FreeText",shortDescription:"Custom settings argument",longDescription:"Custom settings argument"}});return null}).filter(t=>t!==null)});nonSelectedOptionsGrouped=k(()=>{let o=this.options().map(t=>t.Name),e=this.hiddenOptions();return this.allOptionsGrouped().map(t=>w(I({},t),{options:t.options.filter(i=>!o.includes(i.name)&&!e.includes(i.name))})).filter(t=>t.options.length>0)});addFreeTextSetting(){this.hasFreeTextSettings()&&this.options.update(o=>[...o,{Filter:null,Name:"",Value:""}])}addSetting(o){this.options.update(e=>{let t=o.defaultValue??"";return o.type==="Boolean"&&(t=t.toLowerCase()==="true"||!1),o.type==="Integer"&&(t=parseInt(t)||0),[...e,{Name:o.name,Value:t}]})}updateSettingValue(o,e){this.options.update(t=>{let i=[...t],r=i.findIndex(_=>_.Name===o.Name);return o.FormView.type==="Boolean"?(i[r].Value=e?"True":"False",i):o.FormView.type==="Integer"?(i[r].Value=e.toString(),i):(i[r].Value=e,i)})}updateFreeTextSettingName(o,e){this.options.update(t=>{let i=[...t],r=i.findIndex(_=>_.Name===o.Name);return i[r].Name=e,i})}updateSizeSetting(o,e,t){let i=o;this.options.update(r=>{let _=[...r],F=_.findIndex(O=>O.Name===i.Name);return t==="size"&&(_[F].Value=`${e}${i.unit()}`),t==="unit"&&(_[F].Value=`${i.size()}${e}`),_})}updateTimespanSetting(o,e,t){let i=o;this.options.update(r=>{let _=[...r],F=_.findIndex(O=>O.Name===i.Name);return t==="timespan"&&(_[F].Value=`${e}${i.unit()}`),t==="unit"&&(_[F].Value=`${i.timespan()}${e}`),_})}removeSetting(o){this.options.update(e=>e.filter(t=>t.Name!==o.Name))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=K({type:n,selectors:[["app-options-list"]],inputs:{options:[1,"options"],hiddenOptions:[1,"hiddenOptions"],hasFreeTextSettings:[1,"hasFreeTextSettings"]},outputs:{options:"optionsChange"},decls:16,vars:4,consts:()=>{let o;o=$localize`Advanced options`;let e;e=$localize` Add advanced option ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let t;t=$localize` New custom option ${"\uFFFD#2\uFFFD"}:START_TAG_SPK_ICON:pen${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let i;i=$localize`Select an item...`;let r;return r=$localize`Select an item...`,[["option",""],["enumOptionTemplate",""],["optionTemplate",""],o,e,t,[3,"disallowToggle"],["title",""],[1,"actions"],["spk-button","","type","button",1,"outlined","small"],[3,"searchable"],["menu",""],[1,"placeholder"],[1,"field-row"],["spk-button","","type","button",1,"outlined","small",3,"click"],["type","button"],["type","button",3,"click"],[1,"form-column"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"primary","raised"],["spk-button","","type","button",1,"outlined","remove-btn",3,"click"],[1,"form-row"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[3,"for"],[1,"primary",3,"message"],["type","text",3,"ngModelChange","id","ngModel"],["autocomplete","off",3,"ngModelChange","type","id","ngModel"],["suffix","",1,"clickable"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],["type","number",3,"ngModelChange","id","ngModel"],["placeholder",i,3,"options","isClearable"],["type","checkbox",3,"ngModelChange","id","ngModel"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"ngModelChange","ngModel"],["placeholder",r,"value","value","label","label",3,"options","isClearable"]]},template:function(e,t){e&1&&(p(0,"spk-toggle-card",6),L(1,7)(2),q(3,3),P(),p(4,"div",8),x(5,se,3,0,"button",9),p(6,"spk-menu",10)(7,"button",9),b(8,4),v(9,"spk-icon"),D(),a(),L(10,11),h(11,_e,4,1,null,null,M),P(),a()(),P(),x(13,me,2,0,"div",12),h(14,ze,15,1,"div",13,M),a()),e&2&&(c("disallowToggle",!0),l(5),f(t.hasFreeTextSettings()?5:-1),l(),c("searchable",!0),l(5),$(t.nonSelectedOptionsGrouped()),l(2),f(t.selectedSettings().length===0?13:-1),l(),$(t.selectedSettings()))},dependencies:[re,te,oe,ee,ie,ne,le,J,H,X,j,W,U,Z,Q],styles:["[_nghost-%COMP%]{display:block}spk-select[_ngcontent-%COMP%]{--miw: p2r(120)}spk-toggle[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.placeholder[_ngcontent-%COMP%]{color:var(--base-level-60R);text-align:center;padding:2rem 1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:center;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;gap:.25rem;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end}"],changeDetection:0})};export{ae as a};
|
package/chunk-KCEYQGRU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as a,h as b,i as c}from"./chunk-3CRLUTKZ.js";import"./chunk-J242X4NN.js";import"./chunk-DNHLTHLR.js";import"./chunk-F2L6ATMF.js";import"./chunk-KA2H467C.js";import"./chunk-Z2LU6ASK.js";import"./chunk-BCSA6WFY.js";import"./chunk-UNV7VK4Z.js";import"./chunk-BSJ6OMWB.js";import"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import"./chunk-3WHFK5U5.js";import"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
|
package/chunk-KW2XPLTZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-7CGTOI24.js";var o=[{path:"",loadComponent:()=>import("./chunk-46YKZZQG.js"),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import("./chunk-XQCRX6RA.js")},{path:"live",loadComponent:()=>import("./chunk-RKFABCKT.js")}]}],t=o;export{t as default};
|
package/chunk-LDGR7NUE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as a,e as b,f as c}from"./chunk-3CRLUTKZ.js";import"./chunk-J242X4NN.js";import"./chunk-DNHLTHLR.js";import"./chunk-F2L6ATMF.js";import"./chunk-KA2H467C.js";import"./chunk-Z2LU6ASK.js";import"./chunk-BCSA6WFY.js";import"./chunk-UNV7VK4Z.js";import"./chunk-BSJ6OMWB.js";import"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import"./chunk-3WHFK5U5.js";import"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
|
package/chunk-LLNGOQQI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as R,b as oe}from"./chunk-DNHLTHLR.js";import{a as te}from"./chunk-F2L6ATMF.js";import{a as j}from"./chunk-AKURWKKM.js";import{b as V,c as q,d as S,e as H,f as Q,i as W,n as J,q as Y,r as Z,t as ee}from"./chunk-BSJ6OMWB.js";import{b,d as w,e as B}from"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import{a as G,f as L,g as K,l as U,y as z}from"./chunk-3WHFK5U5.js";import{b as v}from"./chunk-64CRTZO6.js";import{c as h}from"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import{Ab as r,Bb as n,Cb as a,D as E,L as M,Lc as O,Mb as l,Nb as c,Ob as f,Ra as s,Sb as P,X as _,db as I,fc as k,ib as x,ic as y,rb as C,rc as X,sa as T,tb as g,wb as D}from"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";var ne=()=>["/"];function ie(d,e){d&1&&(r(0,"spk-form-field")(1,"label",17),f(2,6),n(),a(3,"input",18),n(),r(4,"spk-form-field")(5,"label",19),f(6,7),n(),a(7,"input",20),n())}var u=new Z,N=class d{#t=_(v);#e=_(b);#o=_(w);#n=_(h);#i=_(j);isExporting=T(!1);exportType=T("file");exportedCmd=T(null);exportForm=u.group({exportPasswords:u.control(!0),encryption:u.control(!1,[S.required,oe()]),password:u.control("",[R(e=>e?.value.encryption,[S.required])]),repeatPassword:u.control("",[R(e=>e?.value.encryption,[S.required])])});exportFormSignal=te(this.exportForm.valueChanges);encryptionFieldSignal=O(()=>this.exportFormSignal()?.encryption??!1);activeBackup=O(()=>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(M(e=>{let i=o=>{let t=Object.entries(o);return t?"?"+t.map(([F,m])=>`${F}=${m}`).join("&"):""};return this.#n.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${i({exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0,token:e.Token})}`,{responseType:"blob"})}),E(()=>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=>{}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(E(()=>this.isExporting.set(!1))).subscribe({next:e=>{this.exportedCmd.set(e.Command??null)},error:e=>{}})}downloadFile(e,i){let o=window.URL.createObjectURL(e),t=document.createElement("a");t.href=o,t.download=i,t.click(),window.URL.revokeObjectURL(o)}static \u0275fac=function(i){return new(i||d)};static \u0275cmp=I({type:d,selectors:[["app-export"]],decls:27,vars:12,consts:()=>{let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;i=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let o;o=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SPK_ICON: As command line `;let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:file${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: To file `;let F;F=$localize` Export passwords ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let m;m=$localize` Encrypt file ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let A;A=$localize`Password`;let $;return $=$localize`Repeat password`,[e,i,o,t,F,m,A,$,[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(i,o){if(i&1&&(r(0,"header")(1,"h3"),k(2," Export backup configuration "),r(3,"div",8)(4,"button",9),l(5,0),a(6,"spk-icon"),c(),n(),r(7,"button",10),P("click",function(){return o.submit()}),l(8,1),a(9,"spk-icon"),c(),n()()(),r(10,"p"),k(11),n()(),r(12,"form",11)(13,"spk-button-group")(14,"button",12),P("click",function(){return o.exportType.set("cmd")}),l(15,2),a(16,"spk-icon"),c(),n(),r(17,"button",12),P("click",function(){return o.exportType.set("file")}),l(18,3),a(19,"spk-icon"),c(),n()(),r(20,"spk-toggle",13),l(21,4),a(22,"input",14),c(),n(),r(23,"spk-toggle",15),l(24,5),a(25,"input",16),c(),n(),x(26,ie,8,0),n()),i&2){let t;s(4),C("routerLink",X(11,ne)),s(3),g("loading",o.isExporting()),s(4),y("#",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.ID,": ",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.Name,""),s(),C("formGroup",o.exportForm),s(2),g("active",o.exportType()==="cmd"),s(3),g("active",o.exportType()==="file"),s(9),D(o.encryptionFieldSignal()?26:-1)}},dependencies:[ee,W,q,V,H,Q,J,Y,B,L,z,G,U,K],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{N as default};
|
package/chunk-NQYRWS7A.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as xr}from"./chunk-2X7AJBJY.js";import{j as vt,n as _e}from"./chunk-ERQAUCCL.js";import{$ as _,$b as Tr,Ac as gt,B as ut,C as ee,Cb as Dr,D as Pe,E as H,Ec as Le,F as ct,G as or,I as sr,Ic as ke,K as ar,L as x,M as ur,N as S,O as w,Pa as vr,Pc as Er,R as b,Sb as Mr,T as cr,U as P,V as lt,Va as pt,W as ht,Wa as j,X as g,Xa as mr,Y as lr,_ as je,_b as Or,ab as yr,ac as Ur,b as er,ba as Ne,c as tr,cb as Rr,db as Sr,e as it,f as ot,fa as dt,fb as $e,g as V,ga as hr,h as M,ha as dr,ia as fr,j as k,ja as pr,jb as Cr,k as O,ka as te,kb as wr,l as d,m as de,mb as br,n as rr,nb as Ir,o as nr,p as m,pa as gr,q as xe,qa as ft,qb as Ar,r as T,s as st,t as ir,u as at,w as X,y as J,z as fe}from"./chunk-RY7J7BHG.js";import{a as l,b as I}from"./chunk-7CGTOI24.js";var p="primary",Oe=Symbol("RouteTitle"),Ct=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Ct(t)}function yn(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let o=0;o<n.length;o++){let s=n[o],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function Rn(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!L(t[e],r[e]))return!1;return!0}function L(t,r){let e=t?wt(t):void 0,n=r?wt(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!qr(t[i],r[i]))return!1;return!0}function wt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function qr(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function Br(t){return t.length>0?t[t.length-1]:null}function W(t){return rr(t)?t:wr(t)?O(Promise.resolve(t)):d(t)}var Sn={exact:Hr,subset:Wr},Vr={exact:Cn,subset:wn,ignored:()=>!0};function Pr(t,r,e){return Sn[e.paths](t.root,r.root,e.matrixParams)&&Vr[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Cn(t,r){return L(t,r)}function Hr(t,r,e){if(!Q(t.segments,r.segments)||!qe(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Hr(t.children[n],r.children[n],e))return!1;return!0}function wn(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>qr(t[e],r[e]))}function Wr(t,r,e){return Gr(t,r,r.segments,e)}function Gr(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!Q(i,e)||r.hasChildren()||!qe(i,e,n))}else if(t.segments.length===e.length){if(!Q(t.segments,e)||!qe(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Wr(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Q(t.segments,i)||!qe(t.segments,i,n)||!t.children[p]?!1:Gr(t.children[p],r,o,n)}}function qe(t,r,e){return r.every((n,i)=>Vr[e](t[i].parameters,n.parameters))}var F=class{root;queryParams;fragment;_queryParamMap;constructor(r=new v([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return An.serialize(this)}},v=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Be(this)}},G=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return Kr(this)}};function bn(t,r){return Q(t,r)&&t.every((e,n)=>L(e.parameters,r[n].parameters))}function Q(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function In(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var Qt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>new Re,providedIn:"root"})}return t})(),Re=class{parse(r){let e=new It(r);return new F(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${pe(r.root,!0)}`,n=On(r.queryParams),i=typeof r.fragment=="string"?`#${Dn(r.fragment)}`:"";return`${e}${n}${i}`}},An=new Re;function Be(t){return t.segments.map(r=>Kr(r)).join("/")}function pe(t,r){if(!t.hasChildren())return Be(t);if(r){let e=t.children[p]?pe(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${pe(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=In(t,(n,i)=>i===p?[pe(t.children[p],!1)]:[`${i}:${pe(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${Be(t)}/${e[0]}`:`${Be(t)}/(${e.join("//")})`}}function Qr(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ze(t){return Qr(t).replace(/%3B/gi,";")}function Dn(t){return encodeURI(t)}function bt(t){return Qr(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(t){return decodeURIComponent(t)}function jr(t){return Ve(t.replace(/\+/g,"%20"))}function Kr(t){return`${bt(t.path)}${Mn(t.parameters)}`}function Mn(t){return Object.entries(t).map(([r,e])=>`;${bt(r)}=${bt(e)}`).join("")}function On(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${ze(e)}=${ze(i)}`).join("&"):`${ze(e)}=${ze(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Tn=/^[^\/()?;#]+/;function mt(t){let r=t.match(Tn);return r?r[0]:""}var Un=/^[^\/()?;=#]+/;function En(t){let r=t.match(Un);return r?r[0]:""}var xn=/^[^=?&#]+/;function Pn(t){let r=t.match(xn);return r?r[0]:""}var jn=/^[^&#]+/;function Nn(t){let r=t.match(jn);return r?r[0]:""}var It=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[p]=new v(r,e)),n}parseSegment(){let r=mt(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new G(Ve(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=En(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=mt(this.remaining);i&&(n=i,this.capture(n))}r[Ve(e)]=Ve(n)}parseQueryParam(r){let e=Pn(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=Nn(this.remaining);s&&(n=s,this.capture(n))}let i=jr(e),o=jr(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=mt(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new v([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new w(4011,!1)}};function Zr(t){return t.segments.length>0?new v([],{[p]:t}):t}function Yr(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=Yr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))r[s]=u;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new v(t.segments,r);return $n(e)}function $n(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new v(t.segments.concat(r.segments),r.children)}return t}function K(t){return t instanceof F}function Ln(t,r,e=null,n=null){let i=Xr(t);return Jr(i,r,e,n)}function Xr(t){let r;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new v(o.url,s);return o===t&&(r=u),u}let n=e(t.root),i=Zr(n);return r??i}function Jr(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return yt(i,i,i,e,n);let o=kn(r);if(o.toRoot())return yt(i,i,new v([],{}),e,n);let s=_n(o,i,t),u=s.processChildren?ve(s.segmentGroup,s.index,o.commands):tn(s.segmentGroup,s.index,o.commands);return yt(i,s.segmentGroup,u,e,n)}function He(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Se(t){return typeof t=="object"&&t!=null&&t.outlets}function yt(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`});let s;t===r?s=e:s=en(t,r,e);let u=Zr(Yr(s));return new F(u,o,i)}function en(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=en(o,r,e)}),new v(t.segments,n)}var We=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&He(n[0]))throw new w(4003,!1);let i=n.find(Se);if(i&&i!==Br(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function kn(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new We(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new We(e,r,n)}var ie=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function _n(t,r,e){if(t.isAbsolute)return new ie(r,!0,0);if(!e)return new ie(r,!1,NaN);if(e.parent===null)return new ie(e,!0,0);let n=He(t.commands[0])?0:1,i=e.segments.length-1+n;return zn(e,i,t.numberOfDoubleDots)}function zn(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new ie(n,!1,i-o)}function Fn(t){return Se(t[0])?t[0].outlets:{[p]:t}}function tn(t,r,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return ve(t,r,e);let n=qn(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new v(t.segments.slice(n.pathIndex),t.children),ve(o,0,i)}else return n.match&&i.length===0?new v(t.segments,{}):n.match&&!t.hasChildren()?At(t,r,e):n.match?ve(t,0,i):At(t,r,e)}function ve(t,r,e){if(e.length===0)return new v(t.segments,{});{let n=Fn(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ve(t.children[p],r,e);return new v(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=tn(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function qn(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],u=e[n];if(Se(u))break;let a=`${u}`,c=n<e.length-1?e[n+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!$r(a,c,s))return o;n+=2}else{if(!$r(a,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function At(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(Se(o)){let a=Bn(o.outlets);return new v(n,a)}if(i===0&&He(e[0])){let a=t.segments[r];n.push(new G(a.path,Nr(e[0]))),i++;continue}let s=Se(o)?o.outlets[p]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&He(u)?(n.push(new G(s,Nr(u))),i+=2):(n.push(new G(s,{})),i++)}return new v(n,{})}function Bn(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=At(new v([],{}),0,n))}),r}function Nr(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function $r(t,r,e){return t==e.path&&L(r,e.parameters)}var me="imperative",R=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(R||{}),U=class{id;url;constructor(r,e){this.id=r,this.url=e}},Ce=class extends U{type=R.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},q=class extends U{urlAfterRedirects;type=R.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},D=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(D||{}),Dt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Dt||{}),z=class extends U{reason;code;type=R.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Z=class extends U{reason;code;type=R.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},we=class extends U{error;target;type=R.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ge=class extends U{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mt=class extends U{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ot=class extends U{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Tt=class extends U{urlAfterRedirects;state;type=R.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ut=class extends U{urlAfterRedirects;state;type=R.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Et=class{route;type=R.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},xt=class{route;type=R.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Pt=class{snapshot;type=R.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jt=class{snapshot;type=R.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nt=class{snapshot;type=R.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$t=class{snapshot;type=R.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var be=class{},ue=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Vn(t,r){return t.providers&&!t._injector&&(t._injector=Rr(t.providers,r,`Route: ${t.path}`)),t._injector??r}function N(t){return t.outlet||p}function Hn(t,r){let e=t.filter(n=>N(n)===r);return e.push(...t.filter(n=>N(n)!==r)),e}function Te(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Lt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Te(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new et(this.rootInjector)}},et=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Lt(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(ht(je))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qe=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=kt(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=kt(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=_t(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return _t(r,this._root).map(e=>e.value)}};function kt(t,r){if(t===r.value)return r;for(let e of r.children){let n=kt(t,e);if(n)return n}return null}function _t(t,r){if(t===r.value)return[r];for(let e of r.children){let n=_t(t,e);if(n.length)return n.unshift(r),n}return[]}var A=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ne(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Ke=class extends Qe{snapshot;constructor(r,e){super(r),this.snapshot=e,Kt(this,r)}toString(){return this.snapshot.toString()}};function rn(t){let r=Wn(t),e=new M([new G("",{})]),n=new M({}),i=new M({}),o=new M({}),s=new M(""),u=new Y(e,n,o,s,i,p,t,r.root);return u.snapshot=r.root,new Ke(new A(u,[]),r)}function Wn(t){let r={},e={},n={},i="",o=new oe([],r,n,i,e,p,t,null,{});return new Ye("",new A(o,[]))}var Y=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,u,a){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[Oe]))??d(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(m(r=>ae(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(r=>ae(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ze(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:l(l({},r.params),t.params),data:l(l({},r.data),t.data),resolve:l(l(l(l({},t.data),r.data),i?.data),t._resolvedData)}:n={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&on(i)&&(n.resolve[Oe]=i.title),n}var oe=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Oe]}constructor(r,e,n,i,o,s,u,a,c){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},Ye=class extends Qe{url;constructor(r,e){super(e),this.url=r,Kt(this,e)}toString(){return nn(this._root)}};function Kt(t,r){r.value._routerState=t,r.children.forEach(e=>Kt(t,e))}function nn(t){let r=t.children.length>0?` { ${t.children.map(nn).join(", ")} } `:"";return`${t.value}${r}`}function Rt(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,L(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),L(r.params,e.params)||t.paramsSubject.next(e.params),Rn(r.url,e.url)||t.urlSubject.next(e.url),L(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function zt(t,r){let e=L(t.params,r.params)&&bn(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||zt(t.parent,r.parent))}function on(t){return typeof t.title=="string"||t.title===null}var Gn=new P(""),Qn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new te;deactivateEvents=new te;attachEvents=new te;detachEvents=new te;routerOutletData=gr(void 0);parentContexts=g(et);location=g(mr);changeDetector=g(Le);inputBinder=g(tt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new Ft(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ne]})}return t})(),Ft=class t{route;childContexts;parent;outletData;__ngOutletInjector(r){return new t(this.route,this.childContexts,r,this.outletData)}constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===Y?this.route:r===et?this.childContexts:r===Gn?this.outletData:this.parent.get(r,e)}},tt=new P(""),Lr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=xe([n.queryParams,n.params,n.data]).pipe(x(([o,s,u],a)=>(u=l(l(l({},o),s),u),a===0?d(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=Er(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})();function Kn(t,r,e){let n=Ie(t,r._root,e?e._root:void 0);return new Ke(n,r)}function Ie(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Zn(t,r,e);return new A(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(u=>Ie(t,u)),s}}let n=Yn(r.value),i=r.children.map(o=>Ie(t,o));return new A(n,i)}}function Zn(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ie(t,n,i);return Ie(t,n)})}function Yn(t){return new Y(new M(t.url),new M(t.params),new M(t.queryParams),new M(t.fragment),new M(t.data),t.outlet,t.component,t)}var Ae=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},sn="ngNavigationCancelingError";function Xe(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=K(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=an(!1,D.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function an(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[sn]=!0,e.cancellationCode=r,e}function Xn(t){return un(t)&&K(t.url)}function un(t){return!!t&&t[sn]}var Jn=(t,r,e,n)=>m(i=>(new qt(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),qt=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Rt(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ne(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:u})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=ne(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new $t(o.value.snapshot))}),r.children.length&&this.forwardEvent(new jt(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(Rt(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Rt(u.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Je=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},se=class{component;route;constructor(r,e){this.component=r,this.route=e}};function ei(t,r,e){let n=t._root,i=r?r._root:null;return ge(n,i,e,[n.value])}function ti(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function le(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!cr(t)?t:r.get(t):n}function ge(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ne(r);return t.children.forEach(s=>{ri(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>ye(u,e.getContext(s),i)),i}function ri(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=ni(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Je(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ge(t,r,u?u.children:null,n,i):ge(t,r,e,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new se(u.outlet.component,s))}else s&&ye(r,u,i),i.canActivateChecks.push(new Je(n)),o.component?ge(t,null,u?u.children:null,n,i):ge(t,null,e,n,i);return i}function ni(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!Q(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Q(t.url,r.url)||!L(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zt(t,r)||!L(t.queryParams,r.queryParams);case"paramsChange":default:return!zt(t,r)}}function ye(t,r,e){let n=ne(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?ye(s,r.children.getContext(o),e):ye(s,null,e):ye(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new se(r.outlet.component,i)):e.canDeactivateChecks.push(new se(null,i)):e.canDeactivateChecks.push(new se(null,i))}function Ue(t){return typeof t=="function"}function ii(t){return typeof t=="boolean"}function oi(t){return t&&Ue(t.canLoad)}function si(t){return t&&Ue(t.canActivate)}function ai(t){return t&&Ue(t.canActivateChild)}function ui(t){return t&&Ue(t.canDeactivate)}function ci(t){return t&&Ue(t.canMatch)}function cn(t){return t instanceof nr||t?.name==="EmptyError"}var Fe=Symbol("INITIAL_VALUE");function ce(){return x(t=>xe(t.map(r=>r.pipe(ee(1),ar(Fe)))).pipe(m(r=>{for(let e of r)if(e!==!0){if(e===Fe)return Fe;if(e===!1||li(e))return e}return!0}),X(r=>r!==Fe),ee(1)))}function li(t){return K(t)||t instanceof Ae}function hi(t,r){return T(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?d(I(l({},e),{guardsResult:!0})):di(s,n,i,t).pipe(T(u=>u&&ii(u)?fi(n,o,t,r):d(u)),m(u=>I(l({},e),{guardsResult:u})))})}function di(t,r,e,n){return O(t).pipe(T(i=>yi(i.component,i.route,e,r,n)),H(i=>i!==!0,!0))}function fi(t,r,e,n){return O(r).pipe(fe(i=>ir(gi(i.route.parent,n),pi(i.route,n),mi(t,i.path,e),vi(t,i.route,e))),H(i=>i!==!0,!0))}function pi(t,r){return t!==null&&r&&r(new Nt(t)),d(!0)}function gi(t,r){return t!==null&&r&&r(new Pt(t)),d(!0)}function vi(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return d(!0);let i=n.map(o=>at(()=>{let s=Te(r)??e,u=le(o,s),a=si(u)?u.canActivate(r,t):_(s,()=>u(r,t));return W(a).pipe(H())}));return d(i).pipe(ce())}function mi(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>ti(s)).filter(s=>s!==null).map(s=>at(()=>{let u=s.guards.map(a=>{let c=Te(s.node)??e,h=le(a,c),f=ai(h)?h.canActivateChild(n,t):_(c,()=>h(n,t));return W(f).pipe(H())});return d(u).pipe(ce())}));return d(o).pipe(ce())}function yi(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return d(!0);let s=o.map(u=>{let a=Te(r)??i,c=le(u,a),h=ui(c)?c.canDeactivate(t,r,e,n):_(a,()=>c(t,r,e,n));return W(h).pipe(H())});return d(s).pipe(ce())}function Ri(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return d(!0);let o=i.map(s=>{let u=le(s,t),a=oi(u)?u.canLoad(r,e):_(t,()=>u(r,e));return W(a)});return d(o).pipe(ce(),ln(n))}function ln(t){return tr(S(r=>{if(typeof r!="boolean")throw Xe(t,r)}),m(r=>r===!0))}function Si(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return d(!0);let o=i.map(s=>{let u=le(s,t),a=ci(u)?u.canMatch(r,e):_(t,()=>u(r,e));return W(a)});return d(o).pipe(ce(),ln(n))}var De=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},Me=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function re(t){return de(new De(t))}function Ci(t){return de(new w(4e3,!1))}function wi(t){return de(an(!1,D.GuardRejected))}var Bt=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return d(n);if(i.numberOfChildren>1||!i.children[p])return Ci(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,n,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:h,url:f,outlet:y,params:$,data:C,title:B}=i,E=_(o,()=>u({params:$,data:C,queryParams:a,fragment:c,routeConfig:h,url:f,outlet:y,title:B}));if(E instanceof F)throw new Me(E);e=E}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new Me(s);return s}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new F(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);n[i]=e[u]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(r,a,n,i)}),new v(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},Vt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function bi(t,r,e,n,i){let o=hn(t,r,e);return o.matched?(n=Vn(r,n),Si(n,r,e,i).pipe(m(s=>s===!0?o:l({},Vt)))):d(o)}function hn(t,r,e){if(r.path==="**")return Ii(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},Vt):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||yn)(e,t,r);if(!i)return l({},Vt);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ii(t){return{matched:!0,parameters:t.length>0?Br(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function kr(t,r,e,n){return e.length>0&&Mi(t,e,n)?{segmentGroup:new v(r,Di(n,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Oi(t,e,n)?{segmentGroup:new v(t.segments,Ai(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function Ai(t,r,e,n){let i={};for(let o of e)if(rt(t,r,o)&&!n[N(o)]){let s=new v([],{});i[N(o)]=s}return l(l({},n),i)}function Di(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&N(n)!==p){let i=new v([],{});e[N(n)]=i}return e}function Mi(t,r,e){return e.some(n=>rt(t,r,n)&&N(n)!==p)}function Oi(t,r,e){return e.some(n=>rt(t,r,n))}function rt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ti(t,r,e){return r.length===0&&!t.children[e]}var Ht=class{};function Ui(t,r,e,n,i,o,s="emptyOnly"){return new Wt(t,r,e,n,i,s,o).recognize()}var Ei=31,Wt=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,u){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new Bt(this.urlSerializer,this.urlTree)}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}recognize(){let r=kr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(m(({children:e,rootSnapshot:n})=>{let i=new A(n,e),o=new Ye("",i),s=Ln(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new oe([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(m(n=>({children:n,rootSnapshot:e})),J(n=>{if(n instanceof Me)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof De?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,o):this.processSegment(r,e,n,n.segments,i,!0,o).pipe(m(s=>s instanceof A?[s]:[]))}processChildren(r,e,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return O(o).pipe(fe(s=>{let u=n.children[s],a=Hn(e,s);return this.processSegmentGroup(r,a,u,s,i)}),sr((s,u)=>(s.push(...u),s)),ut(null),or(),T(s=>{if(s===null)return re(n);let u=dn(s);return xi(u),d(u)}))}processSegment(r,e,n,i,o,s,u){return O(e).pipe(fe(a=>this.processSegmentAgainstRoute(a._injector??r,e,a,n,i,o,s,u).pipe(J(c=>{if(c instanceof De)return d(null);throw c}))),H(a=>!!a),J(a=>{if(cn(a))return Ti(n,i,o)?d(new Ht):re(n);throw a}))}processSegmentAgainstRoute(r,e,n,i,o,s,u,a){return N(n)!==s&&(s===p||!rt(i,o,n))?re(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,a):re(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,u){let{matched:a,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:y}=hn(e,i,o);if(!a)return re(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ei&&(this.allowRedirects=!1));let $=new oe(o,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,_r(i),N(i),i.component??i._loadedComponent??null,i,zr(i)),C=Ze($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(C.params),$.data=Object.freeze(C.data);let B=this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,$,r);return this.applyRedirects.lineralizeSegments(i,B).pipe(T(E=>this.processSegment(r,n,e,E.concat(y),s,!1,u)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let u=bi(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),u.pipe(x(a=>a.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:c})=>{let h=n._loadedInjector??r,{parameters:f,consumedSegments:y,remainingSegments:$}=a,C=new oe(y,f,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,_r(n),N(n),n.component??n._loadedComponent??null,n,zr(n)),B=Ze(C,s,this.paramsInheritanceStrategy);C.params=Object.freeze(B.params),C.data=Object.freeze(B.data);let{segmentGroup:E,slicedSegments:he}=kr(e,y,$,c);if(he.length===0&&E.hasChildren())return this.processChildren(h,c,E,C).pipe(m(Ee=>new A(C,Ee)));if(c.length===0&&he.length===0)return d(new A(C,[]));let mn=N(n)===o;return this.processSegment(h,c,E,he,mn?p:o,!0,C).pipe(m(Ee=>new A(C,Ee instanceof A?[Ee]:[])))}))):re(e)))}getChildConfig(r,e,n){return e.children?d({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):Ri(r,e,n,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(r,e).pipe(S(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):wi(e))):d({routes:[],injector:r})}};function xi(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function Pi(t){let r=t.value.routeConfig;return r&&r.path===""}function dn(t){let r=[],e=new Set;for(let n of t){if(!Pi(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=dn(n.children);r.push(new A(n.value,i))}return r.filter(n=>!e.has(n))}function _r(t){return t.data||{}}function zr(t){return t.resolve||{}}function ji(t,r,e,n,i,o){return T(s=>Ui(t,r,e,n,s.extractedUrl,i,o).pipe(m(({state:u,tree:a})=>I(l({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function Ni(t,r){return T(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of fn(a))s.add(c);let u=0;return O(s).pipe(fe(a=>o.has(a)?$i(a,n,t,r):(a.data=Ze(a,a.parent,t).resolve,d(void 0))),S(()=>u++),ct(1),T(a=>u===s.size?d(e):k))})}function fn(t){let r=t.children.map(e=>fn(e)).flat();return[t,...r]}function $i(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!on(i)&&(o[Oe]=i.title),Li(o,t,r,n).pipe(m(s=>(t._resolvedData=s,t.data=Ze(t,t.parent,e).resolve,null)))}function Li(t,r,e,n){let i=wt(t);if(i.length===0)return d({});let o={};return O(i).pipe(T(s=>ki(t[s],r,e,n).pipe(H(),S(u=>{if(u instanceof Ae)throw Xe(new Re,u);o[s]=u}))),ct(1),m(()=>o),J(s=>cn(s)?k:de(s)))}function ki(t,r,e,n){let i=Te(r)??n,o=le(t,i),s=o.resolve?o.resolve(r,e):_(i,()=>o(r,e));return W(s)}function St(t){return x(r=>{let e=t(r);return e?O(e).pipe(m(()=>r)):d(r)})}var pn=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(e){return e.data[Oe]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(_i),providedIn:"root"})}return t})(),_i=(()=>{class t extends pn{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(ht(xr))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zt=new P("",{providedIn:"root",factory:()=>({})}),zi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Sr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Dr(0,"router-outlet")},dependencies:[Qn],encapsulation:2})}return t})();function Yt(t){let r=t.children&&t.children.map(Yt),e=r?I(l({},t),{children:r}):l({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=zi),e}var Xt=new P(""),Fi=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(gt);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return d(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=W(e.loadComponent()).pipe(m(gn),S(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Pe(()=>{this.componentLoaders.delete(e)})),i=new ot(n,()=>new V).pipe(it());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return d({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=qi(n,this.compiler,e,this.onLoadEndListener).pipe(Pe(()=>{this.childrenLoaders.delete(n)})),s=new ot(o,()=>new V).pipe(it());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qi(t,r,e,n){return W(t.loadChildren()).pipe(m(gn),T(i=>i instanceof yr||Array.isArray(i)?d(i):O(r.compileModuleAsync(i))),m(i=>{n&&n(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(Xt,[],{optional:!0,self:!0}).flat()),{routes:s.map(Yt),injector:o}}))}function Bi(t){return t&&typeof t=="object"&&"default"in t}function gn(t){return Bi(t)?t.default:t}var Jt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Vi),providedIn:"root"})}return t})(),Vi=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hi=new P("");var Wi=new P(""),Gi=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new V;transitionAbortSubject=new V;configLoader=g(Fi);environmentInjector=g(je);destroyRef=g(fr);urlSerializer=g(Qt);rootContexts=g(et);location=g(_e);inputBindingEnabled=g(tt,{optional:!0})!==null;titleStrategy=g(pn);options=g(Zt,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(Jt);createViewTransition=g(Hi,{optional:!0});navigationErrorHandler=g(Wi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Et(i)),n=i=>this.events.next(new xt(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(I(l(l({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,i){return this.transitions=new M({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:me,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),m(o=>I(l({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),x(o=>{let s=!1,u=!1;return d(o).pipe(x(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",D.SupersededByNewNavigation),k;this.currentTransition=o,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?I(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&h!=="reload"){let f="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.rawUrl),f,Dt.IgnoredSameUrlNavigation)),a.resolve(!1),k}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return d(a).pipe(x(f=>{let y=this.transitions?.getValue();return this.events.next(new Ce(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),y!==this.transitions?.getValue()?k:Promise.resolve(f)}),ji(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),S(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=I(l({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let y=new Ge(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:y,source:$,restoredState:C,extras:B}=a,E=new Ce(f,this.urlSerializer.serialize(y),$,C);this.events.next(E);let he=rn(this.rootComponentType).snapshot;return this.currentTransition=o=I(l({},a),{targetSnapshot:he,urlAfterRedirects:y,extras:I(l({},B),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,d(o)}else{let f="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.extractedUrl),f,Dt.IgnoredByUrlHandlingStrategy)),a.resolve(!1),k}}),S(a=>{let c=new Mt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=o=I(l({},a),{guards:ei(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),hi(this.environmentInjector,a=>this.events.next(a)),S(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Xe(this.urlSerializer,a.guardsResult);let c=new Ot(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",D.GuardRejected),!1)),St(a=>{if(a.guards.canActivateChecks.length)return d(a).pipe(S(c=>{let h=new Tt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),x(c=>{let h=!1;return d(c).pipe(Ni(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",D.NoDataFromResolver)}}))}),S(c=>{let h=new Ut(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),St(a=>{let c=h=>{let f=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(h.routeConfig).pipe(S(y=>{h.component=y}),m(()=>{})));for(let y of h.children)f.push(...c(y));return f};return xe(c(a.targetSnapshot.root)).pipe(ut(null),ee(1))}),St(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,h=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return h?O(h).pipe(m(()=>o)):d(o)}),m(a=>{let c=Kn(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=I(l({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),S(()=>{this.events.next(new be)}),Jn(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ee(1),S({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),ur(this.transitionAbortSubject.pipe(S(a=>{throw a}))),Pe(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",D.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(this.destroyed)return o.resolve(!1),k;if(u=!0,un(a))this.events.next(new z(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),Xn(a)?this.events.next(new ue(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new we(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let h=_(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(h instanceof Ae){let{message:f,cancellationCode:y}=Xe(this.urlSerializer,h);this.events.next(new z(o.id,this.urlSerializer.serialize(o.extractedUrl),f,y)),this.events.next(new ue(h.redirectTo,h.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(h){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(h)}}return k}))}))}cancelNavigationTransition(e,n,i){let o=new z(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qi(t){return t!==me}var Ki=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Zi),providedIn:"root"})}return t})(),Gt=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Zi=(()=>{class t extends Gt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=dt(t)))(i||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Yi),providedIn:"root"})}return t})(),Yi=(()=>{class t extends vn{location=g(_e);urlSerializer=g(Qt);options=g(Zt,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=g(Jt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new F;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=rn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&e(n.url,n.state)})}handleRouterEvent(e,n){if(e instanceof Ce)this.stateMemento=this.createStateMemento();else if(e instanceof Z)this.rawUrlTree=n.initialUrl;else if(e instanceof Ge){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??i,n)}}else e instanceof be?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):e instanceof z&&(e.code===D.GuardRejected||e.code===D.NoDataFromResolver)?this.restoreHistory(n):e instanceof we?this.restoreHistory(n,!0):e instanceof q&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let i=e instanceof F?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let o=this.browserPageId,s=l(l({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(i,"",s)}else{let o=l(l({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=dt(t)))(i||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xi(t,r){t.events.pipe(X(e=>e instanceof q||e instanceof z||e instanceof we||e instanceof Z),m(e=>e instanceof q||e instanceof Z?0:(e instanceof z?e.code===D.Redirect||e.code===D.SupersededByNewNavigation:!1)?2:1),X(e=>e!==2),ee(1)).subscribe(()=>{r()})}var Ji={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},nt=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(Cr);stateManager=g(vn);options=g(Zt,{optional:!0})||{};pendingTasks=g(pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(Gi);urlSerializer=g(Qt);location=g(_e);urlHandlingStrategy=g(Jt);_events=new V;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(Ki);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(Xt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(tt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new er;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof z&&n.code!==D.Redirect&&n.code!==D.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof q)this.navigated=!0;else if(n instanceof ue){let s=n.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),a=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Qi(i.source)},s);this.scheduleNavigation(u,me,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ro(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),me,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",n)},0)})}navigateToSyncWithBrowser(e,n,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=l({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,n,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Yt),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=n,c=a?this.currentUrlTree.fragment:s,h=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":h=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let y=i?i.snapshot:this.routerState.snapshot.root;f=Xr(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Jr(f,e,h,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=K(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,me,null,n)}navigate(e,n={skipLocationChange:!1}){return to(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=l({},Ji):n===!1?i=l({},eo):i=n,K(e))return Pr(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Pr(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((f,y)=>{u=f,a=y});let h=this.pendingTasks.add();return Xi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function to(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new w(4008,!1)}function ro(t){return!(t instanceof be)&&!(t instanceof ue)}var Fr=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new V;constructor(e,n,i,o,s,u){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof q&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(K(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:vr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:K(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(j(nt),j(Y),hr("tabindex"),j(pt),j(ft),j(vt))};static \u0275dir=$e({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Mr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Ar("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ke],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ke],replaceUrl:[2,"replaceUrl","replaceUrl",ke],routerLink:"routerLink"},features:[Ne]})}return t})(),Go=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new te;constructor(e,n,i,o,s){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof q&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(st()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(e).pipe(st()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=no(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(j(nt),j(ft),j(pt),j(Le),j(Fr,8))};static \u0275dir=$e({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&Or(o,Fr,5),n&2){let s;Tr(s=Ur())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ne]})}return t})();function no(t){return!!t.paths}var io=new P("");function Qo(t,...r){return lr([{provide:Xt,multi:!0,useValue:t},[],{provide:Y,useFactory:oo,deps:[nt]},{provide:br,multi:!0,useFactory:ao},r.map(e=>e.\u0275providers)])}function oo(t){return t.routerState.root}function so(t,r){return{\u0275kind:t,\u0275providers:r}}function ao(){let t=g(dr);return r=>{let e=t.get(Ir);if(r!==e.components[0])return;let n=t.get(nt),i=t.get(uo);t.get(co)===1&&n.initialNavigation(),t.get(lo,null,lt.Optional)?.setUpPreloading(),t.get(io,null,lt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var uo=new P("",{factory:()=>new V}),co=new P("",{providedIn:"root",factory:()=>1});var lo=new P("");function Ko(){return so(8,[Lr,{provide:tt,useExisting:Lr}])}export{q as a,Y as b,Qn as c,nt as d,Fr as e,Go as f,Qo as g,Ko as h};
|
package/chunk-OL234C52.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as $}from"./chunk-F2L6ATMF.js";import{a as R}from"./chunk-5CB3EQEQ.js";import"./chunk-TGK3F3XP.js";import"./chunk-TDXJNPMY.js";import"./chunk-ZDCJ72UD.js";import"./chunk-AKURWKKM.js";import"./chunk-BSJ6OMWB.js";import"./chunk-W4U2FPZX.js";import{b as A,e as N}from"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import{a as B,g as O}from"./chunk-3WHFK5U5.js";import{b as k}from"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-QZEFXB74.js";import{Ab as F,Bb as a,Cb as r,Lc as M,Mb as _,Nb as c,Ob as u,Ra as i,Rb as T,Sb as I,X as m,db as C,fc as E,hc as L,ib as p,sa as l,wb as s,xb as f,yb as S,zb as g}from"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
|
package/chunk-OLIPUVMA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a,d as b}from"./chunk-YQ7U7A2N.js";import"./chunk-J242X4NN.js";import"./chunk-F2L6ATMF.js";import"./chunk-Z2LU6ASK.js";import"./chunk-BCSA6WFY.js";import"./chunk-TGK3F3XP.js";import"./chunk-TDXJNPMY.js";import"./chunk-ZDCJ72UD.js";import"./chunk-AKURWKKM.js";import"./chunk-BSJ6OMWB.js";import"./chunk-W4U2FPZX.js";import"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import"./chunk-3WHFK5U5.js";import"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";export{a as createEncryptionForm,b as default};
|
package/chunk-ORIEYVVO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as _e}from"./chunk-3CRLUTKZ.js";import"./chunk-J242X4NN.js";import"./chunk-DNHLTHLR.js";import{a as oe}from"./chunk-F2L6ATMF.js";import"./chunk-KA2H467C.js";import"./chunk-Z2LU6ASK.js";import{a as Nt}from"./chunk-FXYF7V3T.js";import{a as J}from"./chunk-BCSA6WFY.js";import{a as Et}from"./chunk-I5VNBLZK.js";import"./chunk-UNV7VK4Z.js";import{a as ft}from"./chunk-5CB3EQEQ.js";import"./chunk-TGK3F3XP.js";import"./chunk-TDXJNPMY.js";import"./chunk-ZDCJ72UD.js";import"./chunk-AKURWKKM.js";import{c as Y,e as ee,f as pt,h as te,i as St,l as gt,n as Tt,o as ut,q as mt,r as Ct,s as ne,t as ie}from"./chunk-BSJ6OMWB.js";import{a as ot}from"./chunk-W4U2FPZX.js";import"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import{a as j,b as K,g as Q,k as st,l as Z,p as rt,q as lt,r as at,s as _t,y as dt,z as ct}from"./chunk-3WHFK5U5.js";import{b as A}from"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-QZEFXB74.js";import{Ab as i,Bb as o,Cb as M,D as R,Gb as O,Lc as k,Mb as B,Mc as L,Nb as H,Oa as Ke,Ob as l,Pb as le,Qb as ae,R as U,Ra as a,Rb as Ye,Sb as S,Tb as p,Wb as et,X as u,Ya as Qe,c as je,ca as m,cc as tt,da as C,db as w,dc as nt,fc as I,gc as W,hc as q,ib as E,kc as y,l as $,lc as G,mc as v,ob as Ze,pb as Je,qc as it,rb as N,rc as D,sa as d,tb as f,wb as T,y as b}from"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";var F=class s{#e=u(A);#i=oe(this.#e.getApiV1Serversettings());#t=d(void 0);serverSettings=k(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:t=>{this.#t.set(t)}})}withRefresh(){return je(R(()=>this.refreshServerSettings()))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=U({token:s,factory:s.\u0275fac,providedIn:"root"})};var Pt=["formRef"],Ot=()=>[import("./chunk-QQKVF4B4.js").then(s=>s.OptionsListComponent)],Rt=()=>["--no-encryption","--exclude-files-attributes","--skip-files-larger-than","dblock-size","no-encryption"];function It(s,t){s&1&&(i(0,"spk-alert",3),l(1,1),o())}function yt(s,t){if(s&1){let e=O();i(0,"app-options-list",5),v("optionsChange",function(r){m(e);let c=p();return G(c.settings,r)||(c.settings=r),C(r)}),o()}if(s&2){let e=p();y("options",e.settings),N("hasFreeTextSettings",!0)("hiddenOptions",D(3,Rt))}}var Gt=["Bytes","KB","MB","GB","TB","PB"],X=class s{#e=u(_e);#i=u(F);#t=u(A);formRef=Qe.required("formRef");optionsForm=this.#e.optionsForm;settings=this.#e.settings;isSubmitting=d(!1);isLoadingOptions=d(!0);saved=d(!1);sizeOptions=d(Gt);lastRecievedServerSettings=d({});serverSettingsEffect=L(()=>{let t=this.#i.serverSettings();if(t===void 0)return;this.lastRecievedServerSettings.set(t),this.isLoadingOptions.set(!0);let e=Object.entries(t);e.forEach(([n,r],c)=>{if(n.startsWith("--")){let h=n.replace("--","");this.settings.update(g=>(g.some(P=>P.Name===h)||g.push({Name:h,Value:r}),g))}c===e.length-1&&this.isLoadingOptions.set(!1)})});submit(){this.isSubmitting.set(!0);let t=this.settings(),e=this.lastRecievedServerSettings(),n=t.map(g=>g.Name),c=Object.keys(e).filter(g=>!n.includes(g.replace("--",""))),h=t.reduce((g,P)=>(g[`--${P.Name}`]=P.Value,g),{});c.forEach(g=>{h[g]=null}),this.#t.patchApiV1Serversettings({requestBody:h}).pipe(R(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.#i.refreshServerSettings(),this.saved.set(!0),setTimeout(()=>{this.saved.set(!1)},3e3)}})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&tt(n.formRef,Pt,5),e&2&&nt()},features:[it([_e])],decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPK_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["spk-button","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings","hiddenOptions"]]},template:function(e,n){e&1&&(i(0,"div",2),E(1,It,2,0,"spk-alert",3),i(2,"button",4),S("click",function(){return n.submit()}),B(3,0),M(4,"spk-icon"),H(),o()(),E(5,yt,1,4),Ze(6,5,Ot)),e&2&&(a(),T(n.saved()?1:-1),a(),f("loader",n.isSubmitting()),a(4),Je(!n.isLoadingOptions()))},dependencies:[ie,Q,j,K],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var x=class s{#e=u(A);#i=u(J);repeatRegisterTimer=null;state=d("unknown");claimUrl=d(null);registerUrl=d("");status=k(()=>{let t=this.state();return t==="enabled"?"Remote control is enabled but not connected":t==="connected"?"Remote control is connected":t==="registering"?"Registering machine...":t==="registeringfaulted"?"Registration failed":t==="registered"?"Registered, waiting for accept":t==="disabled"?"Remote control is configured but not enabled":t==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=L(()=>{let t=this.#i.systemInfo();t&&this.registerUrl.set(t.RemoteControlRegistrationUrl??"")});#t(t){t.RegistrationUrl&&this.claimUrl.set(t.RegistrationUrl),t.IsConnected?this.state.set("connected"):t.IsEnabled?this.state.set("enabled"):t.CanEnable?this.state.set("disabled"):t.IsRegisteringFaulted?this.state.set("registeringfaulted"):t.IsRegistering?t.RegistrationUrl!=null&&t.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),t.IsRegistering&&t.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(t){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}deleteRemoteControl(){let t=this;confirm("Are you sure you want to delete the remote control registration?")&&t.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>t.#t(e),error:e=>t.#n(e)})}static \u0275fac=function(e){return new(e||s)};static \u0275prov=U({token:s,factory:s.\u0275fac,providedIn:"root"})};function At(s,t){if(s&1){let e=O();i(0,"spk-form-field",10)(1,"input",11),v("ngModelChange",function(r){m(e);let c=p(2);return G(c.registerUrl,r)||(c.registerUrl=r),C(r)}),o()(),i(2,"button",12),S("click",function(){m(e);let r=p(2);return C(r.register())}),l(3,0),o()}if(s&2){let e=p(2);a(),y("ngModel",e.registerUrl)}}function $t(s,t){if(s&1&&(i(0,"div",8)(1,"label"),l(2,1),o(),i(3,"a",13),I(4),o()()),s&2){let e=p(2);a(3),et("href",e.claimUrl(),Ke),a(),W(e.claimUrl())}}function bt(s,t){s&1&&(i(0,"div",8)(1,"label"),l(2,2),o()())}function wt(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let r=p(2);return C(r.cancel())}),l(1,3),o()}}function kt(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let r=p(2);return C(r.disable())}),l(1,4),o()}}function Lt(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let r=p(2);return C(r.enable())}),l(1,5),o(),i(2,"button",14),S("click",function(){m(e);let r=p(2);return C(r.delete())}),l(3,6),o()}}function Ft(s,t){if(s&1&&(i(0,"div",7),E(1,At,4,1)(2,$t,5,2,"div",8)(3,bt,3,0,"div",8)(4,wt,2,0,"button",9)(5,kt,2,0,"button",9)(6,Lt,4,0),o()),s&2){let e=p();a(),T(e.state()==="inactive"?1:-1),a(),T(e.state()==="registered"?2:-1),a(),T(e.state()==="registering"?3:-1),a(),T(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),a(),T(e.state()==="connected"||e.state()==="enabled"?5:-1),a(),T(e.state()==="disabled"?6:-1)}}var re=class s{#e=u(x);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let r;r=$localize`Cancel registration`;let c;c=$localize`Disable remote control`;let h;h=$localize`Enable remote control`;let g;return g=$localize`Delete remote control setup`,[t,e,n,r,c,h,g,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","error",3,"click"]]},template:function(e,n){e&1&&E(0,Ft,7,6,"div",7),e&2&&T(n.state()!=="unknown"?0:-1)},dependencies:[ne,Y,ee,te,Z],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var ht=()=>({standalone:!0});function xt(s,t){s&1&&(i(0,"spk-icon",75),I(1,"check"),o())}function Dt(s,t){s&1&&(i(0,"spk-icon",76),I(1,"prohibit"),o())}function Xt(s,t){if(s&1){let e=O();i(0,"button",80),S("click",function(){m(e);let r=p(2);return C(r.updatePassphrase())}),l(1,37),o()}if(s&2){let e=p(2);f("loader",e.isUpdating())}}function zt(s,t){if(s&1){let e=O();i(0,"spk-tooltip",79)(1,"button",81),S("click",function(){m(e);let r=p(2);return C(r.updatePassphrase())}),l(2,38),o()()}if(s&2){let e=p(2);a(),f("loader",e.isUpdating()),N("disabled",!0)}}function Vt(s,t){if(s&1){let e=O();i(0,"spk-form-field")(1,"label",71),l(2,34),o(),i(3,"input",72),v("ngModelChange",function(r){m(e);let c=p();return G(c.passphrase,r)||(c.passphrase=r),C(r)}),o()(),i(4,"spk-form-field")(5,"label",73),l(6,35),o(),i(7,"input",74),v("ngModelChange",function(r){m(e);let c=p();return G(c.repeatPassphrase,r)||(c.repeatPassphrase=r),C(r)}),o(),E(8,xt,2,0,"spk-icon",75)(9,Dt,2,0,"spk-icon",76),o(),i(10,"div",52)(11,"button",77),S("click",function(){m(e);let r=p();return C(r.cancelPasswordChange())}),l(12,36),o(),E(13,Xt,2,2,"button",78)(14,zt,3,3,"spk-tooltip",79),o()}if(s&2){let e=p();a(3),y("ngModel",e.passphrase),a(4),N("disabled",e.passphrase().length===0),y("ngModel",e.repeatPassphrase),a(),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),a(3),f("loader",e.isUpdating()),a(2),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function Ut(s,t){s&1&&(i(0,"spk-icon",82),I(1,"check"),o())}function Bt(s,t){if(s&1){let e=O();i(0,"div",52)(1,"button",77),S("click",function(){m(e);let r=p();return C(r.openPassphraseForm())}),l(2,39),o(),E(3,Ut,2,0,"spk-icon",82),o()}if(s&2){let e=p();a(3),T(e.passwordUpdated()?3:-1)}}function Ht(s,t){if(s&1){let e=O();i(0,"spk-form-field")(1,"label",83),l(2,40),o(),i(3,"textarea",84),v("ngModelChange",function(r){m(e);let c=p();return G(c.allowedHostnames,r)||(c.allowedHostnames=r),C(r)}),o()(),i(4,"spk-alert",85),l(5,41),o(),i(6,"button",80),S("click",function(){m(e);let r=p();return C(r.updateAllowedHostnames())}),l(7,42),o()}if(s&2){let e=p();a(3),y("ngModel",e.allowedHostnames),a(3),f("loader",e.updatingAllowedHosts())}}function Wt(s,t){s&1&&M(0,"spk-progress-bar",57)}function qt(s,t){if(s&1&&I(0),s&2){let e,n=p();q(" ",(e=n.sysinfo())==null?null:e.ServerVersion," ")}}function jt(s,t){s&1&&M(0,"spk-progress-bar",57)}function Kt(s,t){if(s&1&&I(0),s&2){let e=t.$implicit;q(" ",e.label," ")}}function Qt(s,t){if(s&1&&I(0),s&2){let e=t.$implicit;q(" ",e.label," ")}}var z=new Ct,Zt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Jt=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],Yt=[{value:"id",label:$localize`Backup ID`},{value:"name",label:$localize`Backup name`},{value:"lastrun",label:$localize`Last run time`},{value:"nextrun",label:$localize`Next run time`},{value:"schedule",label:$localize`Is scheduled`},{value:"backend",label:$localize`Destination type`},{value:"sourcesize",label:$localize`Source size`},{value:"destinationsize",label:$localize`Destination size`},{value:"duration",label:$localize`Duration`},{value:"-id",label:$localize`Backup ID (decending)`},{value:"-name",label:$localize`Backup name (decending)`},{value:"-lastrun",label:$localize`Last run time (decending)`},{value:"-nextrun",label:$localize`Next run time (decending)`},{value:"-schedule",label:$localize`Is scheduled (decending)`},{value:"-backend",label:$localize`Destination type (decending)`},{value:"-sourcesize",label:$localize`Source size (decending)`},{value:"-destinationsize",label:$localize`Destination size (decending)`},{value:"-duration",label:$localize`Duration (decending)`}],de=class s{#e=u(Et);#i=u(J);#t=u(A);#n=u(F);#r=u(x);#o=u(ot);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=d("list");previousLang=this.#s;langCtrl=d(this.#s);sortOrderCtrl=d("");remoteControlStatus=this.#r.status;settingsForm=z.group({pauseSettings:z.group({time:z.control(0),timeType:z.control("s")}),usageStatistics:z.control("")});updatingChannel=d(!1);updateChannel=d("");prevSortOrder=d("");updatingSortOrder=d(!1);setNewChannel(t){let e=this.updateChannel();this.updateChannel.set(t),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":t}}).pipe(this.#n.withRefresh(),R(()=>this.updatingChannel.set(!1)),b(()=>(this.updateChannel.set(e),$(null)))).subscribe()}allowRemoteAccess=d(!1);allowedHostnames=d("");loadedAllowedHostnames=d("");updatingRemoteAccess=d(!1);updatingAllowedHosts=d(!1);updateRemoteAccess(){let t=this.allowRemoteAccess(),e=!t;this.allowRemoteAccess.set(e),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(this.#n.withRefresh(),R(()=>this.updatingRemoteAccess.set(!1)),b(()=>(this.allowRemoteAccess.set(t),$(null)))).subscribe()}updateAllowedHostnames(){let t=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(this.#n.withRefresh(),R(()=>this.updatingAllowedHosts.set(!1)),b(()=>(this.allowedHostnames.set(t),$(null)))).subscribe()}updateSortOrder(t){let n=t[0]?.value??"";if(!n||n===""||n===this.prevSortOrder())return;let r=this.prevSortOrder();this.updatingSortOrder.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"backup-list-sort-order":n}}).pipe(this.#n.withRefresh(),R(()=>this.updatingSortOrder.set(!1)),b(()=>(this.sortOrderCtrl.set(r),$(null)))).subscribe()}updatingDisableTrayIconLogin=d(!1);disableTrayIconLogin=d(!1);saveDisableTrayIconLogin(){let t=this.disableTrayIconLogin(),e=!t;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(this.#n.withRefresh(),R(()=>this.updatingDisableTrayIconLogin.set(!1)),b(()=>(this.disableTrayIconLogin.set(t),$(null)))).subscribe()}showPassphraseForm=d(!1);isUpdating=d(!1);passphrase=d("");repeatPassphrase=d("");passwordUpdated=d(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(this.#n.withRefresh(),R(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}sortOptions=d(Yt);languageOptions=d(Nt);usageStatisticsOptions=d(Jt);timeTypeOptions=d(Zt);timeTypeSignal=oe(this.pauseSettings.controls.timeType.valueChanges);timeRange=k(()=>this.timeTypeSignal()==="h"?[0,24]:[0,60]);updateLocale(t){let n=t[0]?.value??"";!n||n===""||n===this.previousLang||(this.#o.setItem("locale",n),window.location.reload())}submit(){let t=this.pauseSettings.value,e=`${t.time}${t.timeType}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=L(()=>{let t=this.#n.serverSettings();if(t===void 0)return;let e=t["startup-delay"],n=e.slice(-1),r=e.slice(0,-1),c=["s","m","h"];this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"]),this.prevSortOrder.set(t["backup-list-sort-order"]),this.sortOrderCtrl.set(this.prevSortOrder()),console.log(t["usage-reporter-level"]),queueMicrotask(()=>{this.settingsForm.patchValue({pauseSettings:{time:parseInt(r==""?"0":r),timeType:c.includes(n)?n:"s"},usageStatistics:t["usage-reporter-level"]??""})})});setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-settings"]],decls:144,vars:46,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize` Save changes `;let r;r=$localize`Remote access control`;let c;c=$localize`Color theme`;let h;h=$localize`Customize your application theme`;let g;g=$localize`Passwords`;let P;P=$localize`Change server passphrase`;let ce;ce=$localize`Language`;let pe;pe=$localize`Select a language for the platform`;let Se;Se=$localize`Allow remote access (requires restart)`;let ge;ge=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let Te;Te=$localize`Allow remote access`;let ue;ue=$localize`Prevent tray icon automatic log-in`;let me;me=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let Ce;Ce=$localize`Prevent tray icon automatic log-in`;let Ee;Ee=$localize`Backup list sort order`;let fe;fe=$localize`Choose the order to display backups on the starting page in`;let Ne;Ne=$localize`Update channel`;let Me;Me=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let he;he=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Pe;Pe=$localize`Stable`;let Oe;Oe=$localize`Official releases`;let Re;Re=$localize`Beta`;let Ie;Ie=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let ye;ye=$localize` Experimental `;let Ge;Ge=$localize`Specific builds for developers only. Not for use with important data.`;let ve;ve=$localize`Canary`;let Ae;Ae=$localize`Individual builds for developers only. Not for use with important data.`;let $e;$e=$localize`Pause after startup or hibernation`;let be;be=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let we;we=$localize`Usage statistics`;let V;V=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#131\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#131\uFFFD"}:CLOSE_LINK:${"[\uFFFD#132\uFFFD\uFFFD/#132\uFFFD|\uFFFD#133\uFFFD\uFFFD/#133\uFFFD]"}:LINE_BREAK:${"[\uFFFD#132\uFFFD\uFFFD/#132\uFFFD|\uFFFD#133\uFFFD\uFFFD/#133\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,V=Ye(V);let ke;ke=$localize`Advanced options`;let Le;Le=$localize`Enter new password`;let Fe;Fe=$localize`Repeat password`;let xe;xe=$localize`Password have to be filled and have to match`;let De;De=$localize`Passphrase`;let Xe;Xe=$localize`Repeat passphrase`;let ze;ze=$localize`Cancel`;let Ve;Ve=$localize` Update passphrase `;let Ue;Ue=$localize` Update passphrase `;let Be;Be=$localize`Change password`;let He;He=$localize`Allowed hostnames`;let We;We=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let qe;return qe=$localize` Update allowed hostnames `,[t,e,n,r,c,h,g,P,ce,pe,Se,ge,Te,ue,me,Ce,Ee,fe,Ne,Me,he,Pe,Oe,Re,Ie,ye,Ge,ve,Ae,$e,be,we,V,ke,De,Xe,ze,Ve,Ue,Be,He,We,qe,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"click","disabled"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"selectedOptionsChange","options","isClearable","inlineSearch"],["type","text",3,"ngModel","ngModelOptions"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[1,"raised","primary",3,"unit"],["type","range","formControlName","time",3,"min","max"],["label","label","value","value",3,"options","isClearable"],["type","text","formControlName","timeType"],["href","#"],["label","label","value","value",3,"options"],["type","text","formControlName","usageStatistics"],[1,"advanced-settings"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",Le,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",Fe,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",xe,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"]]},template:function(e,n){if(e&1&&(M(0,"app-status-bar"),i(1,"div",43)(2,"header")(3,"div",44)(4,"h2"),l(5,0),o(),i(6,"p"),l(7,1),o()(),i(8,"button",45),S("click",function(){return n.submit()}),l(9,2),o()(),i(10,"section")(11,"div",46)(12,"h3"),l(13,3),o(),i(14,"p"),I(15),o()(),i(16,"div",47),M(17,"app-remote-control"),o()(),i(18,"section")(19,"div",46)(20,"h3"),l(21,4),o(),i(22,"p"),l(23,5),o()(),i(24,"div",47)(25,"div",48)(26,"img",49),S("click",function(){return n.setLightMode()}),o(),i(27,"img",50),S("click",function(){return n.setDarkMode()}),o()()()(),i(28,"section")(29,"div",46)(30,"h3"),l(31,6),o(),i(32,"p"),l(33,7),o()(),i(34,"div",51),E(35,Vt,15,7)(36,Bt,4,1,"div",52),o()(),i(37,"section")(38,"div",46)(39,"h3"),l(40,8),o(),i(41,"p"),l(42,9),o()(),i(43,"div",47)(44,"spk-select",53),S("selectedOptionsChange",function(c){return n.updateLocale(c)}),M(45,"input",54),o()()(),i(46,"section")(47,"div",46)(48,"h3"),l(49,10),o(),i(50,"p"),l(51,11),o()(),i(52,"div",55)(53,"spk-toggle",56),S("click",function(){return n.updateRemoteAccess()}),i(54,"label"),l(55,12),o()(),E(56,Ht,8,3),o()(),i(57,"section")(58,"div",46)(59,"h3"),l(60,13),o(),i(61,"p"),l(62,14),o()(),i(63,"div",47)(64,"spk-toggle",56),S("click",function(){return n.saveDisableTrayIconLogin()}),i(65,"label"),l(66,15),o()()()(),i(67,"section")(68,"div",46)(69,"h3"),l(70,16),o(),i(71,"p"),l(72,17),o(),E(73,Wt,1,0,"spk-progress-bar",57),o(),i(74,"div",47)(75,"spk-select",53),S("selectedOptionsChange",function(c){return n.updateSortOrder(c)}),M(76,"input",54),o()()(),i(77,"section")(78,"div",46)(79,"h3"),l(80,18),o(),i(81,"p"),E(82,qt,1,1),o(),E(83,jt,1,0,"spk-progress-bar",57),o(),i(84,"div",58)(85,"div",59),S("click",function(){return n.setNewChannel("")}),i(86,"spk-radio",60),l(87,19),o(),i(88,"p"),l(89,20),o()(),i(90,"div",59),S("click",function(){return n.setNewChannel("stable")}),i(91,"spk-radio",60),l(92,21),o(),i(93,"p"),l(94,22),o()(),i(95,"div",59),S("click",function(){return n.setNewChannel("beta")}),i(96,"spk-radio",60),l(97,23),o(),i(98,"p"),l(99,24),o()(),i(100,"div",59),S("click",function(){return n.setNewChannel("experimental")}),i(101,"spk-radio",60),l(102,25),o(),i(103,"p"),l(104,26),o()(),i(105,"div",59),S("click",function(){return n.setNewChannel("canary")}),i(106,"spk-radio",60),l(107,27),o(),i(108,"p"),l(109,28),o()()()()(),M(110,"spk-divider"),i(111,"form",61),S("submit",function(){return n.submit()}),i(112,"section")(113,"div",46)(114,"h3"),l(115,29),o(),i(116,"p"),l(117,30),o()(),i(118,"div",47)(119,"div",62)(120,"spk-range-slider",63),M(121,"input",64),o(),i(122,"spk-select",65),M(123,"input",66),E(124,Kt,1,1,"ng-template"),o()()()(),i(125,"section")(126,"div",46)(127,"h3"),l(128,31),o(),i(129,"p"),B(130,32),M(131,"a",67)(132,"br")(133,"br"),H(),o()(),i(134,"div",47)(135,"spk-select",68),M(136,"input",69),E(137,Qt,1,1,"ng-template"),o()()()(),i(138,"div",43)(139,"section")(140,"div",70)(141,"h3"),l(142,33),o(),M(143,"app-advanced-options-settings"),o()()()),e&2){let r,c,h,g;a(8),N("disabled",n.settingsForm.untouched),a(7),W(n.remoteControlStatus()),a(11),f("active",!n.isDarkMode()),a(),f("active",n.isDarkMode()),a(8),T(n.showPassphraseForm()?35:36),a(9),N("options",n.languageOptions())("isClearable",!1)("inlineSearch",!0),a(),N("ngModel",n.langCtrl())("ngModelOptions",D(44,ht)),a(8),f("active",n.allowRemoteAccess()),a(3),T(n.allowRemoteAccess()?56:-1),a(8),f("active",n.disableTrayIconLogin()),a(9),T(n.updatingSortOrder()?73:-1),a(2),N("options",n.sortOptions())("isClearable",!1)("inlineSearch",!0),a(),N("ngModel",n.sortOrderCtrl())("ngModelOptions",D(45,ht)),a(6),T(n.updateChannel()!==""&&((r=n.sysinfo())!=null&&r.ServerVersion)?82:-1),a(),T(n.updatingChannel()?83:-1),a(3),f("active",n.updateChannel()===""),a(),le((c=n.sysinfo())==null?null:c.DefaultUpdateChannel),ae(87),a(2),le((h=n.sysinfo())==null?null:h.ServerVersionType),ae(89),a(2),f("active",n.updateChannel()==="stable"),a(5),f("active",n.updateChannel()==="beta"),a(5),f("active",n.updateChannel()==="experimental"),a(5),f("active",n.updateChannel()==="canary"),a(5),N("formGroup",n.settingsForm),a(9),N("unit",(g=n.timeTypeSignal())!==null&&g!==void 0?g:""),a(),N("min",n.timeRange()[0])("max",n.timeRange()[1]),a(),N("options",n.timeTypeOptions())("isClearable",!1),a(13),N("options",n.usageStatisticsOptions())}},dependencies:[ne,St,Y,gt,ee,pt,te,ie,Tt,mt,ut,ft,re,X,Q,lt,at,rt,dt,ct,Z,j,st,K,_t],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}"],changeDetection:0})};export{de as default};
|
package/chunk-QQKVF4B4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-KA2H467C.js";import"./chunk-Z2LU6ASK.js";import"./chunk-BCSA6WFY.js";import"./chunk-BSJ6OMWB.js";import"./chunk-3WHFK5U5.js";import"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";export{a as OptionsListComponent};
|
package/chunk-R2D3CVSD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-7CGTOI24.js";var t=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-HJXCC47N.js")},{path:"encryption",loadComponent:()=>import("./chunk-OLIPUVMA.js")},{path:"select-files",loadComponent:()=>import("./chunk-25TWFWOC.js")},{path:"options",loadComponent:()=>import("./chunk-C4WJIBJ4.js")}],o=t;export{o as default};
|
package/chunk-RKFABCKT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as R}from"./chunk-SBHSCERN.js";import{a as k,n as w,v as A}from"./chunk-3WHFK5U5.js";import"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import{pa as N}from"./chunk-ERQAUCCL.js";import{Ab as o,Bb as i,Cb as P,Gb as h,Ob as g,Ra as l,Sb as G,Tb as r,X as x,ca as O,da as E,db as M,fc as _,gc as m,hc as s,ib as L,rb as I,sa as f,sb as T,tb as b,vc as y,wb as p,xb as C,xc as $,yb as u,zb as S}from"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";function V(t,n){t&1&&(o(0,"div",4),g(1,0),i())}function B(t,n){if(t&1&&(o(0,"li"),_(1),i()),t&2){let e=n.$implicit;l(),m(e)}}function D(t,n){if(t&1&&(o(0,"code")(1,"ol",15),u(2,B,2,1,"li",null,C),i()()),t&2){let e=r(2).$implicit,a=r(2);l(2),S(a.breakIntoLines(e.Exception))}}function F(t,n){if(t&1&&(o(0,"li"),_(1),i()),t&2){let e=n.$implicit;l(),m(e)}}function U(t,n){if(t&1&&(o(0,"code")(1,"ol",15),u(2,F,2,1,"li",null,C),i()()),t&2){let e=r(2).$implicit,a=r(2);l(2),S(a.breakIntoLines(e.Message))}}function X(t,n){if(t&1&&(o(0,"tr")(1,"td",12)(2,"spk-list",13)(3,"div",14),_(4),i(),o(5,"div",14),_(6),i(),o(7,"div",14),_(8),i(),o(9,"div",14),_(10),i(),o(11,"div",14),_(12),i()(),L(13,D,4,0,"code")(14,U,4,0,"code"),i()()),t&2){let e=r().$implicit;l(4),s("ID: ",e.ID,""),l(2),s("Type: ",e.Type,""),l(2),s("Tag: ",e.Tag,""),l(2),s("TaskID: ",e.TaskID,""),l(2),s("MessageID: ",e.MessageID,""),l(),p(e.Exception?13:-1),l(),p(e.Message?14:-1)}}function z(t,n){if(t&1){let e=h();o(0,"tr",10),G("click",function(){let d=O(e).$index,c=r(2);return E(c.toggleRow(d))}),o(1,"td"),_(2),y(3,"date"),i(),o(4,"td"),_(5),i(),o(6,"td",8)(7,"button",11)(8,"spk-icon"),_(9,"caret-down"),i()()()(),L(10,X,15,7,"tr")}if(t&2){let e=n.$implicit,a=n.$index,d=r(2);l(2),m($(3,5,e.When,"MMM dd. hh:mm")),l(3),m(d.subStringMessage(e.Message)),l(2),b("rotated-icon",a===d.openRowIndex()),l(3),p(a===d.openRowIndex()?10:-1)}}function j(t,n){if(t&1&&(o(0,"spk-table",6)(1,"tr",7)(2,"th"),g(3,1),i(),o(4,"th"),g(5,2),i(),P(6,"th",8),i(),u(7,z,11,8,null,null,C),o(9,"div",9),g(10,3),i()()),t&2){let e=r();T("grid-template-columns","auto 1fr auto"),I("data",e.logs())("loading",e.logsLoading()),l(7),S(e.logs())}}var v=class t{#e=x(R);logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;openRowIndex=f(null);toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){return n?n.split(`
|
|
2
|
-
`):[]}subStringMessage(n){return n?n.substring(0,80)+"...":""}ngOnDestroy(){this.#e.destroy()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["app-logs-live"]],decls:2,vars:1,consts:()=>{let n;n=$localize`Live logs are disabled`;let e;e=$localize`When`;let a;a=$localize`Message`;let d;return d=$localize`No data available`,[n,e,a,d,[1,"live-view-disabled"],[3,"data","loading","grid-template-columns"],[3,"data","loading"],["table-header",""],[1,"sticky-end"],["table-no-rows",""],[3,"click"],["spk-button","","type","button",1,"outlined","small"],[1,"expanded-cell"],[1,"primary"],["item",""],[1,"line-numbers-ol"]]},template:function(e,a){e&1&&L(0,V,2,0,"div",4)(1,j,11,4,"spk-table",5),e&2&&p(a.logLevel()==="Disabled"?0:1)},dependencies:[A,k,w,N],styles:["[_nghost-%COMP%]{display:block}.live-view-disabled[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:18.75rem;width:100%;background-color:var(--base-level-20);border:1px solid var(--base-level-30);border-radius:var(--shape-2);font:var(--paragraph-20)}.expanded-cell[_ngcontent-%COMP%]{height:auto;grid-column:1/-1;white-space:pre-wrap;display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}spk-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre;max-width:100%}"],changeDetection:0})};export{v as default};
|
package/chunk-RNQH6BGW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-XA4UOPDI.js";import"./chunk-QZEFXB74.js";import"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";export{a as DurationFormatPipe};
|