@duplicati/ngclient 0.0.24 → 0.0.25
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/chunk-2TLPGRQA.js +1 -0
- package/chunk-2WWTJWN7.js +1 -0
- package/{chunk-NVZUM7FG.js → chunk-43IGTI7W.js} +1 -1
- package/{chunk-RHGRQONA.js → chunk-4X4FROQQ.js} +1 -1
- package/{chunk-GO7CLBZY.js → chunk-56SGMJT3.js} +1 -1
- package/{chunk-MJCUB3L3.js → chunk-647BVHNL.js} +1 -1
- package/{chunk-OSB5J6SK.js → chunk-67F45CIQ.js} +1 -1
- package/{chunk-SRW3NRX3.js → chunk-6SKK76PT.js} +1 -1
- package/{chunk-NYFN2CT6.js → chunk-7TGAK2FS.js} +1 -1
- package/{chunk-NAPR7ILQ.js → chunk-7UN5GSLX.js} +1 -1
- package/chunk-ANRVMVA2.js +7 -0
- package/{chunk-CESPRUJX.js → chunk-B7BKD6BW.js} +1 -1
- package/{chunk-T2ZGAXWS.js → chunk-CYXH6TL7.js} +1 -1
- package/chunk-D4OIIBBT.js +1 -0
- package/chunk-D5XBMU7U.js +1 -0
- package/{chunk-GTGXQQJJ.js → chunk-DC5NQO2Y.js} +1 -1
- package/{chunk-NAZLO3UY.js → chunk-E6PE2QMZ.js} +1 -1
- package/chunk-EF6PZOYI.js +1 -0
- package/chunk-EUKWBJHZ.js +1 -0
- package/{chunk-4C6SJEAP.js → chunk-JBKTYIJI.js} +1 -1
- package/{chunk-CUYURNCB.js → chunk-KJNFJK32.js} +1 -1
- package/{chunk-Z3RCJ5NZ.js → chunk-KM4HDQ4D.js} +1 -1
- package/chunk-KMTWZOSJ.js +1 -0
- package/chunk-KOPVATUY.js +1 -0
- package/{chunk-P6347OTT.js → chunk-KOXLMQOL.js} +1 -1
- package/{chunk-2653SOTQ.js → chunk-LKYD5PU5.js} +1 -1
- package/chunk-LSSI4MGJ.js +1 -0
- package/{chunk-637GTPYL.js → chunk-MW756ZMH.js} +1 -1
- package/{chunk-KJQLPHGM.js → chunk-ND2MJYUF.js} +1 -1
- package/chunk-NNYK7AHA.js +1 -0
- package/{chunk-JRKR54DW.js → chunk-OGV5E7WV.js} +1 -1
- package/{chunk-YBWO6L26.js → chunk-OLXQO3ZT.js} +1 -1
- package/{chunk-EOYIT7GV.js → chunk-OUZOHOAK.js} +1 -1
- package/{chunk-VJDUCP4Z.js → chunk-OYOFQEI3.js} +1 -1
- package/chunk-PBQATFTG.js +1 -0
- package/chunk-QM3Q3TUI.js +1 -0
- package/{chunk-3XQGPHYU.js → chunk-QQ7JWBVZ.js} +1 -1
- package/{chunk-AEQ7QJXE.js → chunk-RH4RL6FL.js} +1 -1
- package/{chunk-SRX3KYGO.js → chunk-RPNE5OZL.js} +1 -1
- package/{chunk-JE2I63Y6.js → chunk-TUN6QDZQ.js} +1 -1
- package/{chunk-KV674FA2.js → chunk-UAAHGB26.js} +1 -1
- package/{chunk-TNE7LVPH.js → chunk-UXD4TQLV.js} +1 -1
- package/{chunk-2MDIWOW5.js → chunk-WCMY57ZO.js} +1 -1
- package/{chunk-HJUBM7Q5.js → chunk-WVXHNI46.js} +1 -1
- package/{chunk-4JYRDCTW.js → chunk-XCCXG27R.js} +1 -1
- package/chunk-ZO7IMOR6.js +1 -0
- package/index.html +1 -1
- package/{main-WZ7WTPZS.js → main-B5HGTFQ3.js} +1 -1
- package/package.json +1 -1
- package/chunk-2EGLLTER.js +0 -1
- package/chunk-3UHRO33D.js +0 -1
- package/chunk-4HGECFGT.js +0 -1
- package/chunk-4NLCRQLQ.js +0 -1
- package/chunk-67JGZ4NF.js +0 -7
- package/chunk-BTF6XTSM.js +0 -1
- package/chunk-C3SI6ECZ.js +0 -1
- package/chunk-NILUA3YB.js +0 -1
- package/chunk-RNJMBZB7.js +0 -1
- package/chunk-SGZGAY7X.js +0 -1
- package/chunk-VA5L4XPW.js +0 -1
- package/chunk-VXKI3RQB.js +0 -1
- package/chunk-X2IPCPJN.js +0 -1
- package/chunk-ZLOKN5SO.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as ae}from"./chunk-VXKI3RQB.js";import{a as re}from"./chunk-NAZLO3UY.js";import{a as I,f as ce,k as de,l as pe,n as ue,t as he}from"./chunk-3UHRO33D.js";import{k as le}from"./chunk-JE2I63Y6.js";import{$ as N,$a as Z,Bb as y,Cb as d,Db as A,Eb as S,F as j,Mb as K,Nb as ne,Ob as Q,Pb as m,Ra as c,Rb as U,X as Y,Xb as B,Ya as T,Za as R,Zb as D,_b as oe,dc as se,eb as _,ja as k,jb as $,ka as M,kb as z,lb as C,ob as b,qb as ee,qc as V,rb as te,sb as r,sc as F,tb as a,ub as ie,v as X,va as L,wa as g,xb as q,yb as E}from"./chunk-67JGZ4NF.js";import{a as P,b as x}from"./chunk-7CGTOI24.js";var be=["treeContainer"],Pe=["formRef"],xe=[[["label"]],[["label"]],[["input"]]],Te=["label","label","input"],ye=(n,t)=>t.id,Se=n=>({children:n,level:0}),ge=n=>({$implicit:n}),we=(n,t)=>({children:n,level:t});function ke(n,t){if(n&1){let e=E();r(0,"spk-button-group")(1,"button",10),y("click",function(){k(e);let s=d();return M(s.pathDiscoveryMethod.set("browse"))}),m(2," Browser path "),a(),r(3,"button",10),y("click",function(){k(e);let s=d();return M(s.pathDiscoveryMethod.set("path"))}),m(4," Manually type path "),a()()}if(n&2){let e=d();c(),C("active",e.pathDiscoveryMethod()==="browse"),c(2),C("active",e.pathDiscoveryMethod()==="path")}}function Me(n,t){n&1&&ie(0,"spk-progress-bar",6)}function Fe(n,t){n&1&&(r(0,"spk-icon",13),m(1,"folder-open"),a())}function Oe(n,t){n&1&&(r(0,"spk-icon"),m(1,"file"),a())}function Ne(n,t){n&1&&(r(0,"spk-icon",13),m(1,"folder"),a())}function Ee(n,t){if(n&1&&_(0,Fe,2,0,"spk-icon",13)(1,Oe,2,0,"spk-icon")(2,Ne,2,0,"spk-icon",13),n&2){let e=d(2).$implicit;b(e.children.length?0:e.cls==="file"?1:2)}}function Ae(n,t){n&1&&(r(0,"spk-icon",13),m(1,"desktop-tower"),a())}function Be(n,t){n&1&&q(0)}function De(n,t){if(n&1&&_(0,Be,1,0,"ng-container",7),n&2){let e=d(2).$implicit,i=d().$implicit;d();let s=Q(7);$("ngTemplateOutlet",s)("ngTemplateOutletContext",D(5,ge,oe(2,we,e.children,i.level+1)))}}function Ve(n,t){if(n&1){let e=E();r(0,"div",11,3),y("click",function(){k(e);let s=d().$implicit,l=d(2);return M(l.toggleNode(s.id,s))}),r(2,"div",12),_(3,Ee,3,1)(4,Ae,2,0,"spk-icon",13),a(),r(5,"div",14),y("click",function(s){k(e);let l=d().$implicit,o=d(2);return M(o.toggleSelectedNode(s,l))}),m(6),a()(),_(7,De,1,7,"ng-container")}if(n&2){let e=d().$implicit;C("accepted",e.accepted===!0)("active",e.isSelected)("open",e.children.length)("usually-hidden",e.hidden),c(3),b(e.id!=="/"?3:4),c(3),U(" ",e.text," "),c(),b(e.children.length>0?7:-1)}}function Ie(n,t){if(n&1&&_(0,Ve,8,11),n&2){let e=t.$implicit,i=d(2);b(e.hidden&&i._showHiddenNodes()||!e.hidden?0:-1)}}function We(n,t){if(n&1&&(r(0,"spk-list"),ee(1,Ie,1,1,null,null,ye),a()),n&2){let e=t.$implicit;z("padding-left",e.level*.5,"rem"),c(),te(e.children)}}function He(n,t){n&1&&q(0)}function je(n,t){if(n&1){let e=E();r(0,"spk-toggle",15),y("click",function(){k(e);let s=d();return M(s._showHiddenNodes.set(!s._showHiddenNodes()))}),m(1),a()}if(n&2){let e=d();C("active",e._showHiddenNodes()),c(),U(" Show hidden ",e.showFiles()?"files":"folders"," ")}}var G=class n{#t=Y(re);multiSelect=g(!1);disabled=g(!1);showFiles=g(!1);selectFiles=g(!1);accepts=g(null);startingPath=g(null);rootPath=g(void 0);backupSettings=g(null);showHiddenNodes=g(!1);includes=L();excludes=L();_showHiddenNodes=T(!1);showHiddenNodesEffect=F(()=>this._showHiddenNodes.set(this.showHiddenNodes()),{allowSignalWrites:!0});treeContainerRef=R("treeContainer");formRef=R("formRef");pathDiscoveryMethod=T("browse");isLoading=T(!1);currentPath=T("/");#e=T(null);treeSearchQuery=T("");treeNodes=T([]);isByBackupSettings=V(()=>this.rootPath()&&this.backupSettings()?.id&&this.backupSettings()?.time);searchableTreeNodes=V(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});treeStructure=V(()=>{let t=this.searchableTreeNodes(),e=new Map,i=this.rootPath(),s=this.accepts(),l=i?{id:i,resolvedpath:i,text:i?.replaceAll("/",""),parentPath:"",children:[],isSelected:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],isSelected:!1};s&&(l.accepted=!0),e.set("/",l);for(let o of t){let p=o.id.replace(i??"","").split("/").filter(Boolean),u="",f=l;for(let O of p){if(u+="/"+O,!e.has(u)){let v={id:o.id,isSelected:o.isSelected,parentPath:u,resolvedpath:o.id?.startsWith("%")?o.resolvedpath+"/":u,hidden:o.hidden,text:o.text,cls:o.cls,children:[]};s&&(v.accepted=this.matchAccepts(s,v)),e.set(u,v),f.children.push(v)}f=e.get(u)}}return[l]});pathDiscoveryMethodEffect=F(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();if(t==="browse"&&e)if(this.multiSelect()){let i=e.value.split("\0");this.treeNodes.update(s=>s.map(l=>x(P({},l),{isSelected:typeof l.id=="string"&&i.includes(l.id)})))}else this.treeNodes.update(i=>i.map(s=>x(P({},s),{isSelected:s.id===e.value})))},{allowSignalWrites:!0});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let i=t.split(",");if(i.length===0)return!0;let s="."+e.id.slice(e.id.indexOf("."));return s?i.some(l=>s.endsWith(l)):!1}#a(){let t=this.treeContainerRef()?.nativeElement.querySelectorAll(".active");t&&t.length>0&&t[0].scrollIntoView({behavior:"smooth",block:"center"})}currentPathEffect=F(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))},{allowSignalWrites:!0});selectedPathsEffect=F(()=>{if(this.multiSelect()){let t=this.treeNodes().filter(o=>o.isSelected),e=this.treeNodes().filter(o=>!o.isSelected&&t.some(h=>o.id?.startsWith(h.id))),i=t.filter(o=>!t.some(h=>o.id!==h.id&&o.id?.startsWith(h.id))).map(o=>o.id),s=e.filter(o=>!e.some(h=>o.id!==h.id&&o.id?.startsWith(h.id))).map(o=>`-${o.id}`);this.excludes.emit(s);let l=[...i,...s];this.currentPath.set(l.join("\0"))}else{let t=this.treeNodes().find(i=>i.isSelected),e=t?.resolvedpath;this.currentPath.set(t?.id??"")}},{allowSignalWrites:!0});inputValueChangeAbortController=null;inputRefEffect=F(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#o(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(t),t.autocomplete="off")},{allowSignalWrites:!0});ngOnInit(){let t=this.startingPath();t?(this.currentPath.set(t),this.#r(t)):this.#n(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/")return;if(t.stopPropagation(),this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}this.accepts()&&!e.accepted||(this.multiSelect()?this.treeNodes.update(s=>s.map(l=>l.id?.startsWith(e.id)?x(P({},l),{isSelected:!e.isSelected}):l)):this.treeNodes.update(s=>s.map(l=>l.id===e.id?x(P({},l),{isSelected:!e.isSelected}):x(P({},l),{isSelected:!1}))))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(i=>i.filter(s=>!s.id?.startsWith(e.id)||s.id===e.id)):this.#n(e,t))}#o(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#s(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#l(t){let e=this.backupSettings(),i={id:e.id,time:e.time,prefixOnly:!1,folderContents:!0};return t&&(i.filter="@"+t),this.#t.getApiV1BackupByIdFiles(i)}#i(t){return this.isByBackupSettings()?this.#l(t):this.#s(t)}#r(t){let e=t.split("\0").filter(o=>o.startsWith("-")).map(o=>o.slice(1,-1)),i=t.split("\0").filter(o=>!o.startsWith("-")).filter(Boolean),s=i.map(o=>o.split("/").filter(Boolean)),l=[this.rootPath()??"/"];s.forEach(o=>{o.forEach((h,p)=>{let u=o.slice(0,p+1).join("/"),f=u.startsWith("%")?u:"/"+u;l.includes(f)||l.push(f)})}),this.isLoading.set(!0),X([...l.map(o=>this.#i(o))]).pipe(j(()=>this.isLoading.set(!1))).subscribe({next:o=>{this.treeNodes.update(h=>{let p=o.flatMap(f=>f.map(O=>{let v=O.id,W=v&&v.split("/").filter(Boolean).slice(0,-1).join("/"),H="/"+(v&&v.split("/").filter(Boolean).join("/")),me=i.findIndex(w=>this.multiSelect()?H.startsWith(w):H===w)>-1,fe=i.findIndex(w=>w===v)>-1,_e=e.findIndex(w=>w===H)>-1;return x(P({},O),{parentPath:W.startsWith("%")?W:"/"+W,isSelected:me&&!_e||fe})}));return[...new Map([...h,...p].map(f=>[f.resolvedpath??f.id,f])).values()]})}})}#n(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(j(()=>this.isLoading.set(!1))).subscribe({next:i=>{let s=this.isByBackupSettings()?i.Files.map(l=>({text:l.Path.split("/").filter(o=>o!=="").pop(),id:l.Path,cls:l.Path.endsWith("/")?"folder":"file",leaf:t!==null,resolvedpath:l.Path,hidden:!1})):i;this.treeNodes.update(l=>{let o=s.map(p=>{let u=p.id.startsWith("%")&&p.id.endsWith("%")||p.id.endsWith("/")?"folder":"file";return x(P({},p),{cls:u,parentPath:e,isSelected:(this.multiSelect()&&t?.isSelected)??!1})});return[...new Map([...l,...o].map(p=>[p.resolvedpath??p.id,p])).values()]})}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-file-tree"]],viewQuery:function(e,i){e&1&&(K(i.treeContainerRef,be,5),K(i.formRef,Pe,5)),e&2&&ne(2)},hostVars:2,hostBindings:function(e,i){e&2&&C("disabled",i.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"],showHiddenNodes:[1,"showHiddenNodes"]},outputs:{includes:"includes",excludes:"excludes"},standalone:!0,features:[B],ngContentSelectors:Te,decls:15,vars:15,consts:[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"],[1,"primary","raised","browse-files-toggle",3,"click"]],template:function(e,i){if(e&1&&(A(xe),_(0,ke,5,4,"spk-button-group"),r(1,"div",4),S(2,0,["ngProjectAs","label",5,["label"]]),r(3,"div",5,0),_(5,Me,1,0,"spk-progress-bar",6)(6,We,3,2,"ng-template",null,1,se)(8,He,1,0,"ng-container",7),a(),_(9,je,2,3,"spk-toggle",8),a(),r(10,"div",9,2)(12,"spk-form-field"),S(13,1,["ngProjectAs","label",5,["label"]]),S(14,2,["ngProjectAs","input",5,["input"]]),a()()),e&2){let s=Q(7);b(i.multiSelect()?-1:0),c(),C("hidden",i.pathDiscoveryMethod()!=="browse"),c(2),C("visualize-accepted",i.accepts()),c(2),b(i.isLoading()?5:-1),c(3),$("ngTemplateOutlet",s)("ngTemplateOutletContext",D(13,ge,D(11,Se,i.treeStructure()))),c(),b(i.accepts()?-1:9),c(),C("hidden",i.pathDiscoveryMethod()!=="path")}},dependencies:[ce,he,I,de,pe,ue,le,ae],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-level-10);position:relative}.browse-files[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:.25rem;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:var(--base-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};var Le=[[["","title",""]],"*"],Re=["[title]","*"];function $e(n,t){n&1&&m(0,"Title")}function qe(n,t){n&1&&(r(0,"spk-icon"),m(1,"caret-down"),a())}var J=class n{isActive=Z(!1);disallowToggle=g(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(e,i){e&2&&C("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},standalone:!0,features:[B],ngContentSelectors:Re,decls:6,vars:1,consts:[[3,"click"],[1,"content"]],template:function(e,i){e&1&&(A(Le),r(0,"h3",0),y("click",function(){return i.disallowToggle()||i.toggle()}),S(1,0,null,$e,1,0),_(3,qe,2,0,"spk-icon"),a(),r(4,"div",1),S(5,1),a()),e&2&&(c(3),b(i.disallowToggle()?-1:3))},dependencies:[I],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);padding:1rem;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})};export{G as a,J as b};
|
|
1
|
+
import{r as ae}from"./chunk-KMTWZOSJ.js";import{a as re}from"./chunk-E6PE2QMZ.js";import{a as I,f as ce,k as de,l as pe,n as ue,t as he}from"./chunk-EF6PZOYI.js";import{k as le}from"./chunk-TUN6QDZQ.js";import{Ab as y,Bb as d,Cb as A,Db as S,E as j,Lb as K,Mb as ne,Nb as Q,Ob as m,Qa as c,Qb as U,W as Y,Wb as B,Xa as T,Ya as R,Yb as D,Zb as oe,_ as N,_a as Z,cc as se,db as _,ia as k,ib as $,ja as M,jb as z,kb as C,nb as b,pb as ee,pc as V,qb as te,rb as r,rc as F,sb as a,tb as ie,ua as L,v as X,va as g,wb as q,xb as E}from"./chunk-ANRVMVA2.js";import{a as P,b as x}from"./chunk-7CGTOI24.js";var be=["treeContainer"],Pe=["formRef"],xe=[[["label"]],[["label"]],[["input"]]],Te=["label","label","input"],ye=(n,t)=>t.id,Se=n=>({children:n,level:0}),ge=n=>({$implicit:n}),we=(n,t)=>({children:n,level:t});function ke(n,t){if(n&1){let e=E();r(0,"spk-button-group")(1,"button",10),y("click",function(){k(e);let s=d();return M(s.pathDiscoveryMethod.set("browse"))}),m(2," Browser path "),a(),r(3,"button",10),y("click",function(){k(e);let s=d();return M(s.pathDiscoveryMethod.set("path"))}),m(4," Manually type path "),a()()}if(n&2){let e=d();c(),C("active",e.pathDiscoveryMethod()==="browse"),c(2),C("active",e.pathDiscoveryMethod()==="path")}}function Me(n,t){n&1&&ie(0,"spk-progress-bar",6)}function Fe(n,t){n&1&&(r(0,"spk-icon",13),m(1,"folder-open"),a())}function Oe(n,t){n&1&&(r(0,"spk-icon"),m(1,"file"),a())}function Ne(n,t){n&1&&(r(0,"spk-icon",13),m(1,"folder"),a())}function Ee(n,t){if(n&1&&_(0,Fe,2,0,"spk-icon",13)(1,Oe,2,0,"spk-icon")(2,Ne,2,0,"spk-icon",13),n&2){let e=d(2).$implicit;b(e.children.length?0:e.cls==="file"?1:2)}}function Ae(n,t){n&1&&(r(0,"spk-icon",13),m(1,"desktop-tower"),a())}function Be(n,t){n&1&&q(0)}function De(n,t){if(n&1&&_(0,Be,1,0,"ng-container",7),n&2){let e=d(2).$implicit,i=d().$implicit;d();let s=Q(7);$("ngTemplateOutlet",s)("ngTemplateOutletContext",D(5,ge,oe(2,we,e.children,i.level+1)))}}function Ve(n,t){if(n&1){let e=E();r(0,"div",11,3),y("click",function(){k(e);let s=d().$implicit,l=d(2);return M(l.toggleNode(s.id,s))}),r(2,"div",12),_(3,Ee,3,1)(4,Ae,2,0,"spk-icon",13),a(),r(5,"div",14),y("click",function(s){k(e);let l=d().$implicit,o=d(2);return M(o.toggleSelectedNode(s,l))}),m(6),a()(),_(7,De,1,7,"ng-container")}if(n&2){let e=d().$implicit;C("accepted",e.accepted===!0)("active",e.isSelected)("open",e.children.length)("usually-hidden",e.hidden),c(3),b(e.id!=="/"?3:4),c(3),U(" ",e.text," "),c(),b(e.children.length>0?7:-1)}}function Ie(n,t){if(n&1&&_(0,Ve,8,11),n&2){let e=t.$implicit,i=d(2);b(e.hidden&&i._showHiddenNodes()||!e.hidden?0:-1)}}function We(n,t){if(n&1&&(r(0,"spk-list"),ee(1,Ie,1,1,null,null,ye),a()),n&2){let e=t.$implicit;z("padding-left",e.level*.5,"rem"),c(),te(e.children)}}function He(n,t){n&1&&q(0)}function je(n,t){if(n&1){let e=E();r(0,"spk-toggle",15),y("click",function(){k(e);let s=d();return M(s._showHiddenNodes.set(!s._showHiddenNodes()))}),m(1),a()}if(n&2){let e=d();C("active",e._showHiddenNodes()),c(),U(" Show hidden ",e.showFiles()?"files":"folders"," ")}}var G=class n{#t=Y(re);multiSelect=g(!1);disabled=g(!1);showFiles=g(!1);selectFiles=g(!1);accepts=g(null);startingPath=g(null);rootPath=g(void 0);backupSettings=g(null);showHiddenNodes=g(!1);includes=L();excludes=L();_showHiddenNodes=T(!1);showHiddenNodesEffect=F(()=>this._showHiddenNodes.set(this.showHiddenNodes()),{allowSignalWrites:!0});treeContainerRef=R("treeContainer");formRef=R("formRef");pathDiscoveryMethod=T("browse");isLoading=T(!1);currentPath=T("/");#e=T(null);treeSearchQuery=T("");treeNodes=T([]);isByBackupSettings=V(()=>this.rootPath()&&this.backupSettings()?.id&&this.backupSettings()?.time);searchableTreeNodes=V(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});treeStructure=V(()=>{let t=this.searchableTreeNodes(),e=new Map,i=this.rootPath(),s=this.accepts(),l=i?{id:i,resolvedpath:i,text:i?.replaceAll("/",""),parentPath:"",children:[],isSelected:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],isSelected:!1};s&&(l.accepted=!0),e.set("/",l);for(let o of t){let p=o.id.replace(i??"","").split("/").filter(Boolean),u="",f=l;for(let O of p){if(u+="/"+O,!e.has(u)){let v={id:o.id,isSelected:o.isSelected,parentPath:u,resolvedpath:o.id?.startsWith("%")?o.resolvedpath+"/":u,hidden:o.hidden,text:o.text,cls:o.cls,children:[]};s&&(v.accepted=this.matchAccepts(s,v)),e.set(u,v),f.children.push(v)}f=e.get(u)}}return[l]});pathDiscoveryMethodEffect=F(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();if(t==="browse"&&e)if(this.multiSelect()){let i=e.value.split("\0");this.treeNodes.update(s=>s.map(l=>x(P({},l),{isSelected:typeof l.id=="string"&&i.includes(l.id)})))}else this.treeNodes.update(i=>i.map(s=>x(P({},s),{isSelected:s.id===e.value})))},{allowSignalWrites:!0});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let i=t.split(",");if(i.length===0)return!0;let s="."+e.id.slice(e.id.indexOf("."));return s?i.some(l=>s.endsWith(l)):!1}#a(){let t=this.treeContainerRef()?.nativeElement.querySelectorAll(".active");t&&t.length>0&&t[0].scrollIntoView({behavior:"smooth",block:"center"})}currentPathEffect=F(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))},{allowSignalWrites:!0});selectedPathsEffect=F(()=>{if(this.multiSelect()){let t=this.treeNodes().filter(o=>o.isSelected),e=this.treeNodes().filter(o=>!o.isSelected&&t.some(h=>o.id?.startsWith(h.id))),i=t.filter(o=>!t.some(h=>o.id!==h.id&&o.id?.startsWith(h.id))).map(o=>o.id),s=e.filter(o=>!e.some(h=>o.id!==h.id&&o.id?.startsWith(h.id))).map(o=>`-${o.id}`);this.excludes.emit(s);let l=[...i,...s];this.currentPath.set(l.join("\0"))}else{let t=this.treeNodes().find(i=>i.isSelected),e=t?.resolvedpath;this.currentPath.set(t?.id??"")}},{allowSignalWrites:!0});inputValueChangeAbortController=null;inputRefEffect=F(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#o(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(t),t.autocomplete="off")},{allowSignalWrites:!0});ngOnInit(){let t=this.startingPath();t?(this.currentPath.set(t),this.#r(t)):this.#n(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/")return;if(t.stopPropagation(),this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}this.accepts()&&!e.accepted||(this.multiSelect()?this.treeNodes.update(s=>s.map(l=>l.id?.startsWith(e.id)?x(P({},l),{isSelected:!e.isSelected}):l)):this.treeNodes.update(s=>s.map(l=>l.id===e.id?x(P({},l),{isSelected:!e.isSelected}):x(P({},l),{isSelected:!1}))))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(i=>i.filter(s=>!s.id?.startsWith(e.id)||s.id===e.id)):this.#n(e,t))}#o(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#s(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#l(t){let e=this.backupSettings(),i={id:e.id,time:e.time,prefixOnly:!1,folderContents:!0};return t&&(i.filter="@"+t),this.#t.getApiV1BackupByIdFiles(i)}#i(t){return this.isByBackupSettings()?this.#l(t):this.#s(t)}#r(t){let e=t.split("\0").filter(o=>o.startsWith("-")).map(o=>o.slice(1,-1)),i=t.split("\0").filter(o=>!o.startsWith("-")).filter(Boolean),s=i.map(o=>o.split("/").filter(Boolean)),l=[this.rootPath()??"/"];s.forEach(o=>{o.forEach((h,p)=>{let u=o.slice(0,p+1).join("/"),f=u.startsWith("%")?u:"/"+u;l.includes(f)||l.push(f)})}),this.isLoading.set(!0),X([...l.map(o=>this.#i(o))]).pipe(j(()=>this.isLoading.set(!1))).subscribe({next:o=>{this.treeNodes.update(h=>{let p=o.flatMap(f=>f.map(O=>{let v=O.id,W=v&&v.split("/").filter(Boolean).slice(0,-1).join("/"),H="/"+(v&&v.split("/").filter(Boolean).join("/")),me=i.findIndex(w=>this.multiSelect()?H.startsWith(w):H===w)>-1,fe=i.findIndex(w=>w===v)>-1,_e=e.findIndex(w=>w===H)>-1;return x(P({},O),{parentPath:W.startsWith("%")?W:"/"+W,isSelected:me&&!_e||fe})}));return[...new Map([...h,...p].map(f=>[f.resolvedpath??f.id,f])).values()]})}})}#n(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(j(()=>this.isLoading.set(!1))).subscribe({next:i=>{let s=this.isByBackupSettings()?i.Files.map(l=>({text:l.Path.split("/").filter(o=>o!=="").pop(),id:l.Path,cls:l.Path.endsWith("/")?"folder":"file",leaf:t!==null,resolvedpath:l.Path,hidden:!1})):i;this.treeNodes.update(l=>{let o=s.map(p=>{let u=p.id.startsWith("%")&&p.id.endsWith("%")||p.id.endsWith("/")?"folder":"file";return x(P({},p),{cls:u,parentPath:e,isSelected:(this.multiSelect()&&t?.isSelected)??!1})});return[...new Map([...l,...o].map(p=>[p.resolvedpath??p.id,p])).values()]})}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-file-tree"]],viewQuery:function(e,i){e&1&&(K(i.treeContainerRef,be,5),K(i.formRef,Pe,5)),e&2&&ne(2)},hostVars:2,hostBindings:function(e,i){e&2&&C("disabled",i.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"],showHiddenNodes:[1,"showHiddenNodes"]},outputs:{includes:"includes",excludes:"excludes"},standalone:!0,features:[B],ngContentSelectors:Te,decls:15,vars:15,consts:[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"],[1,"primary","raised","browse-files-toggle",3,"click"]],template:function(e,i){if(e&1&&(A(xe),_(0,ke,5,4,"spk-button-group"),r(1,"div",4),S(2,0,["ngProjectAs","label",5,["label"]]),r(3,"div",5,0),_(5,Me,1,0,"spk-progress-bar",6)(6,We,3,2,"ng-template",null,1,se)(8,He,1,0,"ng-container",7),a(),_(9,je,2,3,"spk-toggle",8),a(),r(10,"div",9,2)(12,"spk-form-field"),S(13,1,["ngProjectAs","label",5,["label"]]),S(14,2,["ngProjectAs","input",5,["input"]]),a()()),e&2){let s=Q(7);b(i.multiSelect()?-1:0),c(),C("hidden",i.pathDiscoveryMethod()!=="browse"),c(2),C("visualize-accepted",i.accepts()),c(2),b(i.isLoading()?5:-1),c(3),$("ngTemplateOutlet",s)("ngTemplateOutletContext",D(13,ge,D(11,Se,i.treeStructure()))),c(),b(i.accepts()?-1:9),c(),C("hidden",i.pathDiscoveryMethod()!=="path")}},dependencies:[ce,he,I,de,pe,ue,le,ae],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-level-10);position:relative}.browse-files[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:.25rem;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:var(--base-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};var Le=[[["","title",""]],"*"],Re=["[title]","*"];function $e(n,t){n&1&&m(0,"Title")}function qe(n,t){n&1&&(r(0,"spk-icon"),m(1,"caret-down"),a())}var J=class n{isActive=Z(!1);disallowToggle=g(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(e,i){e&2&&C("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},standalone:!0,features:[B],ngContentSelectors:Re,decls:6,vars:1,consts:[[3,"click"],[1,"content"]],template:function(e,i){e&1&&(A(Le),r(0,"h3",0),y("click",function(){return i.disallowToggle()||i.toggle()}),S(1,0,null,$e,1,0),_(3,qe,2,0,"spk-icon"),a(),r(4,"div",1),S(5,1),a()),e&2&&(c(3),b(i.disallowToggle()?-1:3))},dependencies:[I],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);padding:1rem;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})};export{G as a,J as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as a,d as b}from"./chunk-WVXHNI46.js";import"./chunk-QQ7JWBVZ.js";import"./chunk-OYOFQEI3.js";import"./chunk-KJNFJK32.js";import"./chunk-KMTWZOSJ.js";import"./chunk-E6PE2QMZ.js";import"./chunk-EF6PZOYI.js";import"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";export{a as createRestoreSelectFilesForm,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as x,b as E,d as B,e as M,g as w,k as A,n as N,q as P,s as T}from"./chunk-KMTWZOSJ.js";import{a as q}from"./chunk-2TLPGRQA.js";import{a as I}from"./chunk-E6PE2QMZ.js";import{a as L,c as R,g as V,k as j,t as G,v as O}from"./chunk-EF6PZOYI.js";import{W as v,X as D}from"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import{Ab as g,E as b,Ob as n,Qa as m,W as s,Wb as _,Xa as f,Xb as F,_ as h,db as S,ib as d,kb as y,nb as C,rb as i,sb as e,tb as u}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var z=()=>["/"];function H(c,o){c&1&&(i(0,"spk-form-field")(1,"label",13),n(2,"Passphrase"),e(),u(3,"input",14),e())}var p=new P,k=class c{#e=s(R);#t=s(I);#o=s(q);#r=s(v);isImporting=f(!1);isSecureFile=f(!1);importForm=p.group({config:p.control(""),cmdline:p.control(!1),importMetadata:p.control(!1),direct:p.control(!1),passphrase:p.control("")});selectedFile=f(null);onFileDropped(o){let t=o.target?.files?.item(0);if(t){let a=new FileReader;this.isSecureFile.set(t.type!=="application/json"),a.onload=this.#i.bind(this),a.readAsArrayBuffer(t)}}#i(o){let r=o.target?.result;this.importForm.patchValue({config:this.#n(r)})}#n(o){let r=new Uint8Array(o),t=r.byteLength,a="";for(let l=0;l<t;l++)a+=String.fromCharCode(r[l]);return btoa(a)}submit(){this.isImporting.set(!0),this.#t.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(b(()=>this.isImporting.set(!1))).subscribe({next:o=>{let r=this.#o.addDraftBackup(o.data);this.#r.navigate(["/backup-draft",r])},error:o=>{this.#e.error(o.message)}})}static \u0275fac=function(r){return new(r||c)};static \u0275cmp=h({type:c,selectors:[["app-import"]],standalone:!0,features:[_],decls:28,vars:7,consts:[[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","importMetadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","formControlName","passphrase"]],template:function(r,t){r&1&&(i(0,"header")(1,"h3"),n(2," Import backup configuration "),i(3,"div",0)(4,"button",1)(5,"spk-icon"),n(6,"arrow-left"),e(),n(7," Back "),e(),i(8,"button",2),g("click",function(){return t.submit()}),i(9,"spk-icon"),n(10,"download-simple"),e(),n(11," Import "),e()()()(),i(12,"form",3)(13,"spk-form-field",4),g("fileDropped",function(l){return t.onFileDropped(l)}),i(14,"label",5),n(15,"Select a configuration file"),e(),i(16,"input",6),g("change",function(l){return t.onFileDropped(l)}),e(),i(17,"spk-icon",7),n(18,"upload"),e()(),S(19,H,4,0,"spk-form-field"),i(20,"spk-toggle",8)(21,"label",9),n(22,"Import Metadata"),e(),u(23,"input",10),e(),i(24,"spk-toggle",8)(25,"label",11),n(26,"Save now"),e(),u(27,"input",12),e()()),r&2&&(m(4),d("routerLink",F(6,z)),m(4),y("loader",t.isImporting()),d("disabled",t.isImporting()),m(4),d("formGroup",t.importForm),m(7),C(t.isSecureFile()?19:-1))},dependencies:[T,w,E,x,B,M,A,N,D,O,j,L,V,G],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{k as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m,b as u}from"./chunk-
|
|
1
|
+
import{a as m,b as u}from"./chunk-KJNFJK32.js";import{D as l,K as f,W as b,Wa as v,b as d,fa as I,ga as y,k as j,n as h,na as S,pc as V,q as c,qc as w}from"./chunk-ANRVMVA2.js";function z(e,n,o){!n&&y(e);let i=n??b(S);return o?I(i,o):i}function C(...e){let{normalizedSources:n,hasInitValue:o,operator:i,options:r}=E(e),s=z(C,r?.injector);return o?u(c(n).pipe(i),{initialValue:r.initialValue,injector:s}):u(c(n).pipe(i),{injector:s,requireSync:!0})}function E(e){if(!e||!e.length||typeof e[0]!="object")throw new TypeError("derivedFrom needs sources");let n=typeof e[1]=="function";if(e.length==3&&!n)throw new TypeError("derivedFrom needs pipeable operator as a second argument");n||e.splice(1,0,d);let[o,i,r]=e,s=r?.initialValue!==void 0;return{normalizedSources:Object.entries(o).reduce((p,[a,t])=>{if(v(t))p[a]=m(t,{injector:r?.injector}).pipe(f(w(t)));else if(h(t))p[a]=t.pipe(l());else if(typeof t=="function"){let A=V(t);p[a]=m(A,{injector:r?.injector}).pipe(f(t()))}else p[a]=j(t).pipe(l());return p},Array.isArray(o)?[]:{}),operator:i,hasInitValue:s,options:r}}export{C as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b}from"./chunk-
|
|
1
|
+
import{b}from"./chunk-KJNFJK32.js";import{a as u}from"./chunk-E6PE2QMZ.js";import{m as f}from"./chunk-TUN6QDZQ.js";import{$b as m,Ob as n,Pb as l,Qa as p,W as a,Wb as c,_ as s,ac as d,rb as t,sb as i}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var r=class o{#e=a(u);licenses=b(this.#e.getApiV1Licenses());static \u0275fac=function(e){return new(e||o)};static \u0275cmp=s({type:o,selectors:[["app-libraries"]],standalone:!0,features:[c],decls:5,vars:3,template:function(e,C){e&1&&(t(0,"h3"),n(1,"Libraries"),i(),t(2,"pre"),n(3),m(4,"json"),i()),e&2&&(p(3),l(d(4,1,C.licenses())))},dependencies:[f],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-E6PE2QMZ.js";import{E as i,N as r,Q as n,W as a,Xa as o,pc as f}from"./chunk-ANRVMVA2.js";var l=class t{#e=a(c);isLoaded=o(!1);systemInfo=o(null);backendModules=f(()=>this.systemInfo()?.BackendModules??[]);preload(s=!1){let e=this.#e.getApiV1Systeminfo().pipe(r(m=>this.systemInfo.set(m)),i(()=>this.isLoaded.set(!0)));if(s)return e;e.subscribe()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})};export{l as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Ab as E,Ba as te,F as ze,M as Ve,P as ee,R as b,Sa as Z,U as S,W as A,Wa as He,X as C,ba as Ge,ca as we,d as ye,da as Ye,fa as We,ga as Ze,ia as Ke,k as Ue,l as Ee,mc as qe,p as W,qa as Xe,ra as Je,sa as Fe,w as $e,z as je,zb as I}from"./chunk-67JGZ4NF.js";import{a as me}from"./chunk-7CGTOI24.js";var rt=null;function Ce(){return rt}function Dr(e){rt??=e}var Qe=class{};var K=new S(""),_e=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>C(_t),providedIn:"platform"})}}return e})(),pr=new S(""),_t=(()=>{class e extends _e{constructor(){super(),this._doc=C(K),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ce().getBaseHref(this._doc)}onPopState(t){let r=Ce().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){let r=Ce().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Ie(e,n){if(e.length==0)return n;if(n.length==0)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,t==2?e+n.substring(1):t==1?e+n:e+"/"+n}function et(e){let n=e.match(/#|\?|$/),t=n&&n.index||e.length,r=t-(e[t-1]==="/"?1:0);return e.slice(0,r)+e.slice(t)}function L(e){return e&&e[0]!=="?"?"?"+e:e}var he=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>C(It),providedIn:"root"})}}return e})(),it=new S(""),It=(()=>{class e extends he{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??C(K).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ie(this._baseHref,t)}path(t=!1){let r=this._platformLocation.pathname+L(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(r){return new(r||e)(A(_e),A(it,8))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),mr=(()=>{class e extends he{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(t){let r=Ie(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(r){return new(r||e)(A(_e),A(it,8))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),Rt=(()=>{class e{constructor(t){this._subject=new Je,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;let r=this._locationStrategy.getBaseHref();this._basePath=Ot(et(tt(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+L(r))}normalize(t){return e.stripTrailingSlash(Pt(this._basePath,tt(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}static{this.normalizeQueryParams=L}static{this.joinWithSlash=Ie}static{this.stripTrailingSlash=et}static{this.\u0275fac=function(r){return new(r||e)(A(he))}}static{this.\u0275prov=b({token:e,factory:()=>Mt(),providedIn:"root"})}}return e})();function Mt(){return new Rt(A(he))}function Pt(e,n){if(!e||!n.startsWith(e))return n;let t=n.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:n}function tt(e){return e.replace(/\/index.html$/,"")}function Ot(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var v=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(v||{}),f=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(f||{}),T=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(T||{}),x={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Lt(e){return I(e)[E.LocaleId]}function Nt(e,n,t){let r=I(e),i=[r[E.DayPeriodsFormat],r[E.DayPeriodsStandalone]],o=R(i,n);return R(o,t)}function Bt(e,n,t){let r=I(e),i=[r[E.DaysFormat],r[E.DaysStandalone]],o=R(i,n);return R(o,t)}function kt(e,n,t){let r=I(e),i=[r[E.MonthsFormat],r[E.MonthsStandalone]],o=R(i,n);return R(o,t)}function xt(e,n){let r=I(e)[E.Eras];return R(r,n)}function ne(e,n){let t=I(e);return R(t[E.DateFormat],n)}function re(e,n){let t=I(e);return R(t[E.TimeFormat],n)}function ie(e,n){let r=I(e)[E.DateTimeFormat];return R(r,n)}function fe(e,n){let t=I(e),r=t[E.NumberSymbols][n];if(typeof r>"u"){if(n===x.CurrencyDecimal)return t[E.NumberSymbols][x.Decimal];if(n===x.CurrencyGroup)return t[E.NumberSymbols][x.Group]}return r}function st(e){if(!e[E.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[E.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ut(e){let n=I(e);return st(n),(n[E.ExtraData][2]||[]).map(r=>typeof r=="string"?Ae(r):[Ae(r[0]),Ae(r[1])])}function $t(e,n,t){let r=I(e);st(r);let i=[r[E.ExtraData][0],r[E.ExtraData][1]],o=R(i,n)||[];return R(o,t)||[]}function R(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Ae(e){let[n,t]=e.split(":");return{hours:+n,minutes:+t}}var jt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,se={},zt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,N=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(N||{}),l=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(l||{}),c=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(c||{});function Vt(e,n,t,r){let i=qt(e);n=O(t,n)||n;let s=[],u;for(;n;)if(u=zt.exec(n),u){s=s.concat(u.slice(1));let D=s.pop();if(!D)break;n=D}else{s.push(n);break}let a=i.getTimezoneOffset();r&&(a=at(r,a),i=Ht(i,r,!0));let p="";return s.forEach(D=>{let y=Xt(D);p+=y?y(i,t,a):D==="''"?"'":D.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),p}function le(e,n,t){let r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function O(e,n){let t=Lt(e);if(se[t]??={},se[t][n])return se[t][n];let r="";switch(n){case"shortDate":r=ne(e,T.Short);break;case"mediumDate":r=ne(e,T.Medium);break;case"longDate":r=ne(e,T.Long);break;case"fullDate":r=ne(e,T.Full);break;case"shortTime":r=re(e,T.Short);break;case"mediumTime":r=re(e,T.Medium);break;case"longTime":r=re(e,T.Long);break;case"fullTime":r=re(e,T.Full);break;case"short":let i=O(e,"shortTime"),o=O(e,"shortDate");r=oe(ie(e,T.Short),[i,o]);break;case"medium":let s=O(e,"mediumTime"),u=O(e,"mediumDate");r=oe(ie(e,T.Medium),[s,u]);break;case"long":let a=O(e,"longTime"),p=O(e,"longDate");r=oe(ie(e,T.Long),[a,p]);break;case"full":let D=O(e,"fullTime"),y=O(e,"fullDate");r=oe(ie(e,T.Full),[D,y]);break}return r&&(se[t][n]=r),r}function oe(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return n!=null&&r in n?n[r]:t})),e}function M(e,n,t="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,o=t));let s=String(e);for(;s.length<n;)s="0"+s;return r&&(s=s.slice(s.length-n)),o+s}function Gt(e,n){return M(e,3).substring(0,n)}function w(e,n,t=0,r=!1,i=!1){return function(o,s){let u=Yt(e,o);if((t>0||u>-t)&&(u+=t),e===l.Hours)u===0&&t===-12&&(u=12);else if(e===l.FractionalSeconds)return Gt(u,n);let a=fe(s,x.MinusSign);return M(u,n,a,r,i)}}function Yt(e,n){switch(e){case l.FullYear:return n.getFullYear();case l.Month:return n.getMonth();case l.Date:return n.getDate();case l.Hours:return n.getHours();case l.Minutes:return n.getMinutes();case l.Seconds:return n.getSeconds();case l.FractionalSeconds:return n.getMilliseconds();case l.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function g(e,n,t=v.Format,r=!1){return function(i,o){return Wt(i,o,e,n,t,r)}}function Wt(e,n,t,r,i,o){switch(t){case c.Months:return kt(n,i,r)[e.getMonth()];case c.Days:return Bt(n,i,r)[e.getDay()];case c.DayPeriods:let s=e.getHours(),u=e.getMinutes();if(o){let p=Ut(n),D=$t(n,i,r),y=p.findIndex(_=>{if(Array.isArray(_)){let[m,P]=_,d=s>=m.hours&&u>=m.minutes,h=s<P.hours||s===P.hours&&u<P.minutes;if(m.hours<P.hours){if(d&&h)return!0}else if(d||h)return!0}else if(_.hours===s&&_.minutes===u)return!0;return!1});if(y!==-1)return D[y]}return Nt(n,i,r)[s<12?0:1];case c.Eras:return xt(n,r)[e.getFullYear()<=0?0:1];default:let a=t;throw new Error(`unexpected translation type ${a}`)}}function ae(e){return function(n,t,r){let i=-1*r,o=fe(t,x.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case N.Short:return(i>=0?"+":"")+M(s,2,o)+M(Math.abs(i%60),2,o);case N.ShortGMT:return"GMT"+(i>=0?"+":"")+M(s,1,o);case N.Long:return"GMT"+(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);case N.Extended:return r===0?"Z":(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}var Zt=0,ce=4;function Kt(e){let n=le(e,Zt,1).getDay();return le(e,0,1+(n<=ce?ce:ce+7)-n)}function ot(e){let n=e.getDay(),t=n===0?-3:ce-n;return le(e.getFullYear(),e.getMonth(),e.getDate()+t)}function be(e,n=!1){return function(t,r){let i;if(n){let o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();i=1+Math.floor((s+o)/7)}else{let o=ot(t),s=Kt(o.getFullYear()),u=o.getTime()-s.getTime();i=1+Math.round(u/6048e5)}return M(i,e,fe(r,x.MinusSign))}}function ue(e,n=!1){return function(t,r){let o=ot(t).getFullYear();return M(o,e,fe(r,x.MinusSign),n)}}var ve={};function Xt(e){if(ve[e])return ve[e];let n;switch(e){case"G":case"GG":case"GGG":n=g(c.Eras,f.Abbreviated);break;case"GGGG":n=g(c.Eras,f.Wide);break;case"GGGGG":n=g(c.Eras,f.Narrow);break;case"y":n=w(l.FullYear,1,0,!1,!0);break;case"yy":n=w(l.FullYear,2,0,!0,!0);break;case"yyy":n=w(l.FullYear,3,0,!1,!0);break;case"yyyy":n=w(l.FullYear,4,0,!1,!0);break;case"Y":n=ue(1);break;case"YY":n=ue(2,!0);break;case"YYY":n=ue(3);break;case"YYYY":n=ue(4);break;case"M":case"L":n=w(l.Month,1,1);break;case"MM":case"LL":n=w(l.Month,2,1);break;case"MMM":n=g(c.Months,f.Abbreviated);break;case"MMMM":n=g(c.Months,f.Wide);break;case"MMMMM":n=g(c.Months,f.Narrow);break;case"LLL":n=g(c.Months,f.Abbreviated,v.Standalone);break;case"LLLL":n=g(c.Months,f.Wide,v.Standalone);break;case"LLLLL":n=g(c.Months,f.Narrow,v.Standalone);break;case"w":n=be(1);break;case"ww":n=be(2);break;case"W":n=be(1,!0);break;case"d":n=w(l.Date,1);break;case"dd":n=w(l.Date,2);break;case"c":case"cc":n=w(l.Day,1);break;case"ccc":n=g(c.Days,f.Abbreviated,v.Standalone);break;case"cccc":n=g(c.Days,f.Wide,v.Standalone);break;case"ccccc":n=g(c.Days,f.Narrow,v.Standalone);break;case"cccccc":n=g(c.Days,f.Short,v.Standalone);break;case"E":case"EE":case"EEE":n=g(c.Days,f.Abbreviated);break;case"EEEE":n=g(c.Days,f.Wide);break;case"EEEEE":n=g(c.Days,f.Narrow);break;case"EEEEEE":n=g(c.Days,f.Short);break;case"a":case"aa":case"aaa":n=g(c.DayPeriods,f.Abbreviated);break;case"aaaa":n=g(c.DayPeriods,f.Wide);break;case"aaaaa":n=g(c.DayPeriods,f.Narrow);break;case"b":case"bb":case"bbb":n=g(c.DayPeriods,f.Abbreviated,v.Standalone,!0);break;case"bbbb":n=g(c.DayPeriods,f.Wide,v.Standalone,!0);break;case"bbbbb":n=g(c.DayPeriods,f.Narrow,v.Standalone,!0);break;case"B":case"BB":case"BBB":n=g(c.DayPeriods,f.Abbreviated,v.Format,!0);break;case"BBBB":n=g(c.DayPeriods,f.Wide,v.Format,!0);break;case"BBBBB":n=g(c.DayPeriods,f.Narrow,v.Format,!0);break;case"h":n=w(l.Hours,1,-12);break;case"hh":n=w(l.Hours,2,-12);break;case"H":n=w(l.Hours,1);break;case"HH":n=w(l.Hours,2);break;case"m":n=w(l.Minutes,1);break;case"mm":n=w(l.Minutes,2);break;case"s":n=w(l.Seconds,1);break;case"ss":n=w(l.Seconds,2);break;case"S":n=w(l.FractionalSeconds,1);break;case"SS":n=w(l.FractionalSeconds,2);break;case"SSS":n=w(l.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=ae(N.Short);break;case"ZZZZZ":n=ae(N.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=ae(N.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=ae(N.Long);break;default:return null}return ve[e]=n,n}function at(e,n){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function Jt(e,n){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+n),e}function Ht(e,n,t){let r=t?-1:1,i=e.getTimezoneOffset(),o=at(n,i);return Jt(e,r*(o-i))}function qt(e){if(nt(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,o=1,s=1]=e.split("-").map(u=>+u);return le(i,o-1,s)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(jt))return Qt(r)}let n=new Date(e);if(!nt(n))throw new Error(`Unable to convert "${e}" into a date`);return n}function Qt(e){let n=new Date(0),t=0,r=0,i=e[8]?n.setUTCFullYear:n.setFullYear,o=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-t,u=Number(e[5]||0)-r,a=Number(e[6]||0),p=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return o.call(n,s,u,a,p),n}function nt(e){return e instanceof Date&&!isNaN(e.valueOf())}function ut(e,n){n=encodeURIComponent(n);for(let t of e.split(";")){let r=t.indexOf("="),[i,o]=r==-1?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}var yr=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static{this.\u0275fac=function(r){return new(r||e)(Z(He))}}static{this.\u0275dir=Ge({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ke]})}}return e})();function en(e,n){return new ee(2100,!1)}var tn="mediumDate",nn=new S(""),rn=new S(""),Er=(()=>{class e{constructor(t,r,i){this.locale=t,this.defaultTimezone=r,this.defaultOptions=i}transform(t,r,i,o){if(t==null||t===""||t!==t)return null;try{let s=r??this.defaultOptions?.dateFormat??tn,u=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Vt(t,s,o||this.locale,u)}catch(s){throw en(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(Z(qe,16),Z(nn,24),Z(rn,24))}}static{this.\u0275pipe=we({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var wr=(()=>{class e{transform(t){return JSON.stringify(t,null,2)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275pipe=we({name:"json",type:e,pure:!1,standalone:!0})}}return e})();var sn="browser",on="server";function an(e){return e===sn}function un(e){return e===on}var Fr=(()=>{class e{static{this.\u0275prov=b({token:e,providedIn:"root",factory:()=>an(C(te))?new Se(C(K),window):new Te})}}return e})(),Se=class{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let t=cn(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function cn(e,n){let t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}var Te=class{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}},de=class{};var J=class{},H=class{},B=class e{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
|
|
1
|
+
import{Aa as te,E as ze,L as Ve,O as ee,Q as b,Ra as Z,T as S,V as A,Va as He,W as C,aa as Ge,ba as we,ca as Ye,d as ye,ea as We,fa as Ze,ha as Ke,k as Ue,l as Ee,lc as qe,p as W,pa as Xe,qa as Je,ra as Fe,w as $e,yb as I,z as je,zb as E}from"./chunk-ANRVMVA2.js";import{a as me}from"./chunk-7CGTOI24.js";var rt=null;function Ce(){return rt}function Dr(e){rt??=e}var Qe=class{};var K=new S(""),_e=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>C(_t),providedIn:"platform"})}}return e})(),pr=new S(""),_t=(()=>{class e extends _e{constructor(){super(),this._doc=C(K),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ce().getBaseHref(this._doc)}onPopState(t){let r=Ce().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){let r=Ce().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Ie(e,n){if(e.length==0)return n;if(n.length==0)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,t==2?e+n.substring(1):t==1?e+n:e+"/"+n}function et(e){let n=e.match(/#|\?|$/),t=n&&n.index||e.length,r=t-(e[t-1]==="/"?1:0);return e.slice(0,r)+e.slice(t)}function L(e){return e&&e[0]!=="?"?"?"+e:e}var he=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>C(It),providedIn:"root"})}}return e})(),it=new S(""),It=(()=>{class e extends he{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??C(K).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ie(this._baseHref,t)}path(t=!1){let r=this._platformLocation.pathname+L(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(r){return new(r||e)(A(_e),A(it,8))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),mr=(()=>{class e extends he{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(t){let r=Ie(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(r){return new(r||e)(A(_e),A(it,8))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),Rt=(()=>{class e{constructor(t){this._subject=new Je,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;let r=this._locationStrategy.getBaseHref();this._basePath=Ot(et(tt(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+L(r))}normalize(t){return e.stripTrailingSlash(Pt(this._basePath,tt(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}static{this.normalizeQueryParams=L}static{this.joinWithSlash=Ie}static{this.stripTrailingSlash=et}static{this.\u0275fac=function(r){return new(r||e)(A(he))}}static{this.\u0275prov=b({token:e,factory:()=>Mt(),providedIn:"root"})}}return e})();function Mt(){return new Rt(A(he))}function Pt(e,n){if(!e||!n.startsWith(e))return n;let t=n.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:n}function tt(e){return e.replace(/\/index.html$/,"")}function Ot(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var v=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(v||{}),f=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(f||{}),T=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(T||{}),x={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Lt(e){return I(e)[E.LocaleId]}function Nt(e,n,t){let r=I(e),i=[r[E.DayPeriodsFormat],r[E.DayPeriodsStandalone]],o=R(i,n);return R(o,t)}function Bt(e,n,t){let r=I(e),i=[r[E.DaysFormat],r[E.DaysStandalone]],o=R(i,n);return R(o,t)}function kt(e,n,t){let r=I(e),i=[r[E.MonthsFormat],r[E.MonthsStandalone]],o=R(i,n);return R(o,t)}function xt(e,n){let r=I(e)[E.Eras];return R(r,n)}function ne(e,n){let t=I(e);return R(t[E.DateFormat],n)}function re(e,n){let t=I(e);return R(t[E.TimeFormat],n)}function ie(e,n){let r=I(e)[E.DateTimeFormat];return R(r,n)}function fe(e,n){let t=I(e),r=t[E.NumberSymbols][n];if(typeof r>"u"){if(n===x.CurrencyDecimal)return t[E.NumberSymbols][x.Decimal];if(n===x.CurrencyGroup)return t[E.NumberSymbols][x.Group]}return r}function st(e){if(!e[E.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[E.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ut(e){let n=I(e);return st(n),(n[E.ExtraData][2]||[]).map(r=>typeof r=="string"?Ae(r):[Ae(r[0]),Ae(r[1])])}function $t(e,n,t){let r=I(e);st(r);let i=[r[E.ExtraData][0],r[E.ExtraData][1]],o=R(i,n)||[];return R(o,t)||[]}function R(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Ae(e){let[n,t]=e.split(":");return{hours:+n,minutes:+t}}var jt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,se={},zt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,N=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(N||{}),l=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(l||{}),c=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(c||{});function Vt(e,n,t,r){let i=qt(e);n=O(t,n)||n;let s=[],u;for(;n;)if(u=zt.exec(n),u){s=s.concat(u.slice(1));let D=s.pop();if(!D)break;n=D}else{s.push(n);break}let a=i.getTimezoneOffset();r&&(a=at(r,a),i=Ht(i,r,!0));let p="";return s.forEach(D=>{let y=Xt(D);p+=y?y(i,t,a):D==="''"?"'":D.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),p}function le(e,n,t){let r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function O(e,n){let t=Lt(e);if(se[t]??={},se[t][n])return se[t][n];let r="";switch(n){case"shortDate":r=ne(e,T.Short);break;case"mediumDate":r=ne(e,T.Medium);break;case"longDate":r=ne(e,T.Long);break;case"fullDate":r=ne(e,T.Full);break;case"shortTime":r=re(e,T.Short);break;case"mediumTime":r=re(e,T.Medium);break;case"longTime":r=re(e,T.Long);break;case"fullTime":r=re(e,T.Full);break;case"short":let i=O(e,"shortTime"),o=O(e,"shortDate");r=oe(ie(e,T.Short),[i,o]);break;case"medium":let s=O(e,"mediumTime"),u=O(e,"mediumDate");r=oe(ie(e,T.Medium),[s,u]);break;case"long":let a=O(e,"longTime"),p=O(e,"longDate");r=oe(ie(e,T.Long),[a,p]);break;case"full":let D=O(e,"fullTime"),y=O(e,"fullDate");r=oe(ie(e,T.Full),[D,y]);break}return r&&(se[t][n]=r),r}function oe(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return n!=null&&r in n?n[r]:t})),e}function M(e,n,t="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,o=t));let s=String(e);for(;s.length<n;)s="0"+s;return r&&(s=s.slice(s.length-n)),o+s}function Gt(e,n){return M(e,3).substring(0,n)}function w(e,n,t=0,r=!1,i=!1){return function(o,s){let u=Yt(e,o);if((t>0||u>-t)&&(u+=t),e===l.Hours)u===0&&t===-12&&(u=12);else if(e===l.FractionalSeconds)return Gt(u,n);let a=fe(s,x.MinusSign);return M(u,n,a,r,i)}}function Yt(e,n){switch(e){case l.FullYear:return n.getFullYear();case l.Month:return n.getMonth();case l.Date:return n.getDate();case l.Hours:return n.getHours();case l.Minutes:return n.getMinutes();case l.Seconds:return n.getSeconds();case l.FractionalSeconds:return n.getMilliseconds();case l.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function g(e,n,t=v.Format,r=!1){return function(i,o){return Wt(i,o,e,n,t,r)}}function Wt(e,n,t,r,i,o){switch(t){case c.Months:return kt(n,i,r)[e.getMonth()];case c.Days:return Bt(n,i,r)[e.getDay()];case c.DayPeriods:let s=e.getHours(),u=e.getMinutes();if(o){let p=Ut(n),D=$t(n,i,r),y=p.findIndex(_=>{if(Array.isArray(_)){let[m,P]=_,d=s>=m.hours&&u>=m.minutes,h=s<P.hours||s===P.hours&&u<P.minutes;if(m.hours<P.hours){if(d&&h)return!0}else if(d||h)return!0}else if(_.hours===s&&_.minutes===u)return!0;return!1});if(y!==-1)return D[y]}return Nt(n,i,r)[s<12?0:1];case c.Eras:return xt(n,r)[e.getFullYear()<=0?0:1];default:let a=t;throw new Error(`unexpected translation type ${a}`)}}function ae(e){return function(n,t,r){let i=-1*r,o=fe(t,x.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case N.Short:return(i>=0?"+":"")+M(s,2,o)+M(Math.abs(i%60),2,o);case N.ShortGMT:return"GMT"+(i>=0?"+":"")+M(s,1,o);case N.Long:return"GMT"+(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);case N.Extended:return r===0?"Z":(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}var Zt=0,ce=4;function Kt(e){let n=le(e,Zt,1).getDay();return le(e,0,1+(n<=ce?ce:ce+7)-n)}function ot(e){let n=e.getDay(),t=n===0?-3:ce-n;return le(e.getFullYear(),e.getMonth(),e.getDate()+t)}function be(e,n=!1){return function(t,r){let i;if(n){let o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();i=1+Math.floor((s+o)/7)}else{let o=ot(t),s=Kt(o.getFullYear()),u=o.getTime()-s.getTime();i=1+Math.round(u/6048e5)}return M(i,e,fe(r,x.MinusSign))}}function ue(e,n=!1){return function(t,r){let o=ot(t).getFullYear();return M(o,e,fe(r,x.MinusSign),n)}}var ve={};function Xt(e){if(ve[e])return ve[e];let n;switch(e){case"G":case"GG":case"GGG":n=g(c.Eras,f.Abbreviated);break;case"GGGG":n=g(c.Eras,f.Wide);break;case"GGGGG":n=g(c.Eras,f.Narrow);break;case"y":n=w(l.FullYear,1,0,!1,!0);break;case"yy":n=w(l.FullYear,2,0,!0,!0);break;case"yyy":n=w(l.FullYear,3,0,!1,!0);break;case"yyyy":n=w(l.FullYear,4,0,!1,!0);break;case"Y":n=ue(1);break;case"YY":n=ue(2,!0);break;case"YYY":n=ue(3);break;case"YYYY":n=ue(4);break;case"M":case"L":n=w(l.Month,1,1);break;case"MM":case"LL":n=w(l.Month,2,1);break;case"MMM":n=g(c.Months,f.Abbreviated);break;case"MMMM":n=g(c.Months,f.Wide);break;case"MMMMM":n=g(c.Months,f.Narrow);break;case"LLL":n=g(c.Months,f.Abbreviated,v.Standalone);break;case"LLLL":n=g(c.Months,f.Wide,v.Standalone);break;case"LLLLL":n=g(c.Months,f.Narrow,v.Standalone);break;case"w":n=be(1);break;case"ww":n=be(2);break;case"W":n=be(1,!0);break;case"d":n=w(l.Date,1);break;case"dd":n=w(l.Date,2);break;case"c":case"cc":n=w(l.Day,1);break;case"ccc":n=g(c.Days,f.Abbreviated,v.Standalone);break;case"cccc":n=g(c.Days,f.Wide,v.Standalone);break;case"ccccc":n=g(c.Days,f.Narrow,v.Standalone);break;case"cccccc":n=g(c.Days,f.Short,v.Standalone);break;case"E":case"EE":case"EEE":n=g(c.Days,f.Abbreviated);break;case"EEEE":n=g(c.Days,f.Wide);break;case"EEEEE":n=g(c.Days,f.Narrow);break;case"EEEEEE":n=g(c.Days,f.Short);break;case"a":case"aa":case"aaa":n=g(c.DayPeriods,f.Abbreviated);break;case"aaaa":n=g(c.DayPeriods,f.Wide);break;case"aaaaa":n=g(c.DayPeriods,f.Narrow);break;case"b":case"bb":case"bbb":n=g(c.DayPeriods,f.Abbreviated,v.Standalone,!0);break;case"bbbb":n=g(c.DayPeriods,f.Wide,v.Standalone,!0);break;case"bbbbb":n=g(c.DayPeriods,f.Narrow,v.Standalone,!0);break;case"B":case"BB":case"BBB":n=g(c.DayPeriods,f.Abbreviated,v.Format,!0);break;case"BBBB":n=g(c.DayPeriods,f.Wide,v.Format,!0);break;case"BBBBB":n=g(c.DayPeriods,f.Narrow,v.Format,!0);break;case"h":n=w(l.Hours,1,-12);break;case"hh":n=w(l.Hours,2,-12);break;case"H":n=w(l.Hours,1);break;case"HH":n=w(l.Hours,2);break;case"m":n=w(l.Minutes,1);break;case"mm":n=w(l.Minutes,2);break;case"s":n=w(l.Seconds,1);break;case"ss":n=w(l.Seconds,2);break;case"S":n=w(l.FractionalSeconds,1);break;case"SS":n=w(l.FractionalSeconds,2);break;case"SSS":n=w(l.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=ae(N.Short);break;case"ZZZZZ":n=ae(N.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=ae(N.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=ae(N.Long);break;default:return null}return ve[e]=n,n}function at(e,n){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function Jt(e,n){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+n),e}function Ht(e,n,t){let r=t?-1:1,i=e.getTimezoneOffset(),o=at(n,i);return Jt(e,r*(o-i))}function qt(e){if(nt(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,o=1,s=1]=e.split("-").map(u=>+u);return le(i,o-1,s)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(jt))return Qt(r)}let n=new Date(e);if(!nt(n))throw new Error(`Unable to convert "${e}" into a date`);return n}function Qt(e){let n=new Date(0),t=0,r=0,i=e[8]?n.setUTCFullYear:n.setFullYear,o=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-t,u=Number(e[5]||0)-r,a=Number(e[6]||0),p=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return o.call(n,s,u,a,p),n}function nt(e){return e instanceof Date&&!isNaN(e.valueOf())}function ut(e,n){n=encodeURIComponent(n);for(let t of e.split(";")){let r=t.indexOf("="),[i,o]=r==-1?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}var yr=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static{this.\u0275fac=function(r){return new(r||e)(Z(He))}}static{this.\u0275dir=Ge({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ke]})}}return e})();function en(e,n){return new ee(2100,!1)}var tn="mediumDate",nn=new S(""),rn=new S(""),Er=(()=>{class e{constructor(t,r,i){this.locale=t,this.defaultTimezone=r,this.defaultOptions=i}transform(t,r,i,o){if(t==null||t===""||t!==t)return null;try{let s=r??this.defaultOptions?.dateFormat??tn,u=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Vt(t,s,o||this.locale,u)}catch(s){throw en(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(Z(qe,16),Z(nn,24),Z(rn,24))}}static{this.\u0275pipe=we({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var wr=(()=>{class e{transform(t){return JSON.stringify(t,null,2)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275pipe=we({name:"json",type:e,pure:!1,standalone:!0})}}return e})();var sn="browser",on="server";function an(e){return e===sn}function un(e){return e===on}var Fr=(()=>{class e{static{this.\u0275prov=b({token:e,providedIn:"root",factory:()=>an(C(te))?new Se(C(K),window):new Te})}}return e})(),Se=class{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let t=cn(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function cn(e,n){let t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}var Te=class{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}},de=class{};var J=class{},H=class{},B=class e{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
|
|
2
2
|
`).forEach(t=>{let r=t.indexOf(":");if(r>0){let i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){let t=new e;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){let t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,t);let i=(n.op==="a"?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":let o=n.value;if(!o)this.headers.delete(t),this.normalizedNames.delete(t);else{let s=this.headers.get(t);if(!s)return;s=s.filter(u=>o.indexOf(u)===-1),s.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}break}}setHeaderEntries(n,t){let r=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}};var Me=class{encodeKey(n){return ct(n)}encodeValue(n){return ct(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function dn(e,n){let t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,u]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],a=t.get(s)||[];a.push(u),t.set(s,a)}),t}var hn=/%(\d[a-f0-9])/gi,fn={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ct(e){return encodeURIComponent(e).replace(hn,(n,t)=>fn[t]??n)}function ge(e){return`${e}`}var $=class e{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Me,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=dn(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{let r=n.fromObject[t],i=Array.isArray(r)?r.map(ge):[ge(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){let t=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let t=new e({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let t=(n.op==="a"?this.map.get(n.param):void 0)||[];t.push(ge(n.value)),this.map.set(n.param,t);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(ge(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Pe=class{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function gn(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function lt(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function dt(e){return typeof Blob<"u"&&e instanceof Blob}function ht(e){return typeof FormData<"u"&&e instanceof FormData}function Dn(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var X=class e{constructor(n,t,r,i){this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase();let o;if(gn(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new B,this.context??=new Pe,!this.params)this.params=new $,this.urlWithParams=t;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=t;else{let u=t.indexOf("?"),a=u===-1?"?":u<t.length-1?"&":"";this.urlWithParams=t+a+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||lt(this.body)||dt(this.body)||ht(this.body)||Dn(this.body)?this.body:this.body instanceof $?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ht(this.body)?null:dt(this.body)?this.body.type||null:lt(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof $?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(n={}){let t=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,o=n.transferCache??this.transferCache,s=n.body!==void 0?n.body:this.body,u=n.withCredentials??this.withCredentials,a=n.reportProgress??this.reportProgress,p=n.headers||this.headers,D=n.params||this.params,y=n.context??this.context;return n.setHeaders!==void 0&&(p=Object.keys(n.setHeaders).reduce((_,m)=>_.set(m,n.setHeaders[m]),p)),n.setParams&&(D=Object.keys(n.setParams).reduce((_,m)=>_.set(m,n.setParams[m]),D)),new e(t,r,s,{params:D,headers:p,context:y,reportProgress:a,responseType:i,withCredentials:u,transferCache:o})}},j=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(j||{}),q=class{constructor(n,t=200,r="OK"){this.headers=n.headers||new B,this.status=n.status!==void 0?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},De=class e extends q{constructor(n={}){super(n),this.type=j.ResponseHeader}clone(n={}){return new e({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Q=class e extends q{constructor(n={}){super(n),this.type=j.Response,this.body=n.body!==void 0?n.body:null}clone(n={}){return new e({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},U=class extends q{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},pt=200,pn=204;function Re(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var mn=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof X)o=t;else{let a;i.headers instanceof B?a=i.headers:a=new B(i.headers);let p;i.params&&(i.params instanceof $?p=i.params:p=new $({fromObject:i.params})),o=new X(t,r,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:p,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=Ee(o).pipe(je(a=>this.handler.handle(a)));if(t instanceof X||i.observe==="events")return s;let u=s.pipe($e(a=>a instanceof Q));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(W(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return u.pipe(W(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return u.pipe(W(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return u.pipe(W(a=>a.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new $().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,Re(i,r))}post(t,r,i={}){return this.request("POST",t,Re(i,r))}put(t,r,i={}){return this.request("PUT",t,Re(i,r))}static{this.\u0275fac=function(r){return new(r||e)(A(J))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),yn=/^\)\]\}',?\n/,En="X-Request-URL";function ft(e){if(e.url)return e.url;let n=En.toLocaleLowerCase();return e.headers.get(n)}var Oe=(()=>{class e{constructor(){this.fetchImpl=C(Le,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=C(Fe)}handle(t){return new ye(r=>{let i=new AbortController;return this.doRequest(t,i.signal,r).then(Ne,o=>r.error(new U({error:o}))),()=>i.abort()})}async doRequest(t,r,i){let o=this.createRequestInit(t),s;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,me({signal:r},o)));wn(m),i.next({type:j.Sent}),s=await m}catch(m){i.error(new U({error:m,status:m.status??0,statusText:m.statusText,url:t.urlWithParams,headers:m.headers}));return}let u=new B(s.headers),a=s.statusText,p=ft(s)??t.urlWithParams,D=s.status,y=null;if(t.reportProgress&&i.next(new De({headers:u,status:D,statusText:a,url:p})),s.body){let m=s.headers.get("content-length"),P=[],d=s.body.getReader(),h=0,k,V,F=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:z,value:Y}=await d.read();if(z)break;if(P.push(Y),h+=Y.length,t.reportProgress){V=t.responseType==="text"?(V??"")+(k??=new TextDecoder).decode(Y,{stream:!0}):void 0;let xe=()=>i.next({type:j.DownloadProgress,total:m?+m:void 0,loaded:h,partialText:V});F?F.run(xe):xe()}}});let G=this.concatChunks(P,h);try{let z=s.headers.get("Content-Type")??"";y=this.parseBody(t,G,z)}catch(z){i.error(new U({error:z,headers:new B(s.headers),status:s.status,statusText:s.statusText,url:ft(s)??t.urlWithParams}));return}}D===0&&(D=y?pt:0),D>=200&&D<300?(i.next(new Q({body:y,headers:u,status:D,statusText:a,url:p})),i.complete()):i.error(new U({error:y,headers:u,status:D,statusText:a,url:p}))}parseBody(t,r,i){switch(t.responseType){case"json":let o=new TextDecoder().decode(r).replace(yn,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((o,s)=>r[o]=s.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){let o=t.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){let i=new Uint8Array(r),o=0;for(let s of t)i.set(s,o),o+=s.length;return i}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),Le=class{};function Ne(){}function wn(e){e.then(Ne,Ne)}function Fn(e,n){return n(e)}function Cn(e,n,t){return(r,i)=>Ze(t,()=>n(r,o=>e(o,i)))}var Be=new S(""),An=new S(""),bn=new S("",{providedIn:"root",factory:()=>!0});var gt=(()=>{class e extends J{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=C(Xe),this.contributeToStability=C(bn)}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Be),...this.injector.get(An,[])]));this.chain=r.reduceRight((i,o)=>Cn(i,o,this.injector),Fn)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(ze(()=>this.pendingTasks.remove(r)))}else return this.chain(t,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(A(H),A(We))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})();var vn=/^\)\]\}',?\n/;function Sn(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Dt=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new ee(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Ue(r.\u0275loadImpl()):Ee(null)).pipe(Ve(()=>new ye(o=>{let s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((d,h)=>s.setRequestHeader(d,h.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let d=t.detectContentTypeHeader();d!==null&&s.setRequestHeader("Content-Type",d)}if(t.responseType){let d=t.responseType.toLowerCase();s.responseType=d!=="json"?d:"text"}let u=t.serializeBody(),a=null,p=()=>{if(a!==null)return a;let d=s.statusText||"OK",h=new B(s.getAllResponseHeaders()),k=Sn(s)||t.url;return a=new De({headers:h,status:s.status,statusText:d,url:k}),a},D=()=>{let{headers:d,status:h,statusText:k,url:V}=p(),F=null;h!==pn&&(F=typeof s.response>"u"?s.responseText:s.response),h===0&&(h=F?pt:0);let G=h>=200&&h<300;if(t.responseType==="json"&&typeof F=="string"){let z=F;F=F.replace(vn,"");try{F=F!==""?JSON.parse(F):null}catch(Y){F=z,G&&(G=!1,F={error:Y,text:F})}}G?(o.next(new Q({body:F,headers:d,status:h,statusText:k,url:V||void 0})),o.complete()):o.error(new U({error:F,headers:d,status:h,statusText:k,url:V||void 0}))},y=d=>{let{url:h}=p(),k=new U({error:d,status:s.status||0,statusText:s.statusText||"Unknown Error",url:h||void 0});o.error(k)},_=!1,m=d=>{_||(o.next(p()),_=!0);let h={type:j.DownloadProgress,loaded:d.loaded};d.lengthComputable&&(h.total=d.total),t.responseType==="text"&&s.responseText&&(h.partialText=s.responseText),o.next(h)},P=d=>{let h={type:j.UploadProgress,loaded:d.loaded};d.lengthComputable&&(h.total=d.total),o.next(h)};return s.addEventListener("load",D),s.addEventListener("error",y),s.addEventListener("timeout",y),s.addEventListener("abort",y),t.reportProgress&&(s.addEventListener("progress",m),u!==null&&s.upload&&s.upload.addEventListener("progress",P)),s.send(u),o.next({type:j.Sent}),()=>{s.removeEventListener("error",y),s.removeEventListener("abort",y),s.removeEventListener("load",D),s.removeEventListener("timeout",y),t.reportProgress&&(s.removeEventListener("progress",m),u!==null&&s.upload&&s.upload.removeEventListener("progress",P)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(A(de))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),mt=new S(""),Tn="XSRF-TOKEN",_n=new S("",{providedIn:"root",factory:()=>Tn}),In="X-XSRF-TOKEN",Rn=new S("",{providedIn:"root",factory:()=>In}),pe=class{},Mn=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=ut(t,this.cookieName),this.lastCookieString=t),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(A(K),A(te),A(_n))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})();function Pn(e,n){let t=e.url.toLowerCase();if(!C(mt)||e.method==="GET"||e.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return n(e);let r=C(pe).getToken(),i=C(Rn);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var ke=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(ke||{});function yt(e,n){return{\u0275kind:e,\u0275providers:n}}function xr(...e){let n=[mn,Dt,gt,{provide:J,useExisting:gt},{provide:H,useFactory:()=>C(Oe,{optional:!0})??C(Dt)},{provide:Be,useValue:Pn,multi:!0},{provide:mt,useValue:!0},{provide:pe,useClass:Mn}];for(let t of e)n.push(...t.\u0275providers);return Ye(n)}function Ur(e){return yt(ke.Interceptors,e.map(n=>({provide:Be,useValue:n,multi:!0})))}function $r(){return yt(ke.Fetch,[Oe,{provide:H,useExisting:Oe}])}export{Ce as a,Dr as b,Qe as c,K as d,pr as e,he as f,It as g,mr as h,Rt as i,ut as j,yr as k,Er as l,wr as m,sn as n,an as o,un as p,Fr as q,de as r,B as s,Q as t,mn as u,xr as v,Ur as w,$r as x};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,b as J}from"./chunk-DNHLTHLR.js";import{b as W}from"./chunk-
|
|
1
|
+
import{a as b,b as J}from"./chunk-DNHLTHLR.js";import{b as W}from"./chunk-KJNFJK32.js";import{a as R,b as j,c as x,d as M,e as O,g as A,k as I,n as L,q as V,s as $}from"./chunk-KMTWZOSJ.js";import{a as Q}from"./chunk-2TLPGRQA.js";import{a as D}from"./chunk-E6PE2QMZ.js";import{a as G,f as U,g as q,k as z,t as H}from"./chunk-EF6PZOYI.js";import{H as P,W as T,X as N}from"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import{u as B}from"./chunk-TUN6QDZQ.js";import{Ab as f,E as g,L as w,Ob as i,Qa as p,Rb as v,W as s,Wb as _,Xa as d,Xb as F,_ as C,db as S,ib as k,kb as u,nb as E,pc as h,rb as r,sb as n,tb as l}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var Y=()=>["/"];function Z(c,e){c&1&&(r(0,"spk-form-field")(1,"label",9),i(2,"Password"),n(),l(3,"input",10),n(),r(4,"spk-form-field")(5,"label",11),i(6,"Repeat password"),n(),l(7,"input",12),n())}var m=new V,y=class c{#t=s(D);#e=s(P);#o=s(T);#n=s(B);#i=s(Q);isExporting=d(!1);exportType=d("file");exportedCmd=d(null);exportForm=m.group({exportPasswords:m.control(!0),encryption:m.control(!1,[x.required,J()]),password:m.control("",[b(e=>e?.value.encryption,[x.required])]),repeatPassword:m.control("",[b(e=>e?.value.encryption,[x.required])])});exportFormSignal=W(this.exportForm.valueChanges);encryptionFieldSignal=h(()=>this.exportFormSignal()?.encryption??!1);activeBackup=h(()=>this.#i.backups().find(e=>e.Backup?.ID===this.#e.snapshot.params.id));submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(w(e=>{let a=o=>{let t=Object.entries(o);return t?"?"+t.map(([K,X])=>`${K}=${X}`).join("&"):""};return this.#n.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${a({exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0,token:e.Token})}`,{responseType:"blob"})}),g(()=>this.isExporting.set(!1))).subscribe({next:e=>{let o=this.activeBackup()?.Backup?.Name??"Backup",t=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(e,`${o}.${t}`),this.#o.navigate(["/"])},error:e=>{console.log("err",e)}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(g(()=>this.isExporting.set(!1))).subscribe({next:e=>{console.log("res",e),this.exportedCmd.set(e.Command??null)},error:e=>{console.log("err",e)}})}downloadFile(e,a){let o=window.URL.createObjectURL(e),t=document.createElement("a");t.href=o,t.download=a,t.click(),window.URL.revokeObjectURL(o)}static \u0275fac=function(a){return new(a||c)};static \u0275cmp=C({type:c,selectors:[["app-export"]],standalone:!0,features:[_],decls:31,vars:12,consts:[[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["spk-button","",1,"raised","primary",3,"click"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],["type","checkbox","formControlName","encryption"],["for","password"],["type","password","id","password","formControlName","password"],["for","repeatPassword"],["type","password","id","repeatPassword","formControlName","repeatPassword"]],template:function(a,o){if(a&1&&(r(0,"header")(1,"h3"),i(2," Export backup configuration "),r(3,"div",0)(4,"button",1)(5,"spk-icon"),i(6,"arrow-left"),n(),i(7," Back "),n(),r(8,"button",2),f("click",function(){return o.submit()}),r(9,"spk-icon"),i(10,"export"),n(),i(11," Export "),n()()(),r(12,"p"),i(13),n()(),r(14,"form",3)(15,"spk-button-group")(16,"button",4),f("click",function(){return o.exportType.set("cmd")}),r(17,"spk-icon"),i(18,"terminal-window"),n(),i(19," As command line "),n(),r(20,"button",4),f("click",function(){return o.exportType.set("file")}),r(21,"spk-icon"),i(22,"file"),n(),i(23," To file "),n()(),r(24,"spk-toggle",5),i(25," Export passwords "),l(26,"input",6),n(),r(27,"spk-toggle",7),i(28," Encrypt file "),l(29,"input",8),n(),S(30,Z,8,0),n()),a&2){let t;p(4),k("routerLink",F(11,Y)),p(4),u("loading",o.isExporting()),p(5),v("#",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.ID,": ",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.Name,""),p(),k("formGroup",o.exportForm),p(2),u("active",o.exportType()==="cmd"),p(4),u("active",o.exportType()==="file"),p(10),E(o.encryptionFieldSignal()?30:-1)}},dependencies:[$,A,j,R,M,O,I,L,N,U,H,G,z,q],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as c}from"./chunk-
|
|
1
|
+
import{g as c}from"./chunk-EF6PZOYI.js";import{K as l,X as m,Y as p}from"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import{Ob as n,Wb as s,_ as a,rb as e,sb as t,tb as u}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var i=class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=a({type:r,selectors:[["app-about"]],standalone:!0,features:[s],decls:13,vars:0,consts:[[1,"nav"],["spk-button","","routerLink","/about/general","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/changelog","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/libraries","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/system-info","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/logs","routerLinkActive","primary",1,"raised"]],template:function(o,b){o&1&&(e(0,"div",0)(1,"button",1),n(2,"General"),t(),e(3,"button",2),n(4,"Changelog"),t(),e(5,"button",3),n(6,"Libraries"),t(),e(7,"button",4),n(8,"System info"),t(),e(9,"button",5),n(10,"Logs"),t()(),e(11,"section"),u(12,"router-outlet"),t())},dependencies:[c,l,m,p],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0;padding:2.5rem}.nav[_ngcontent-%COMP%]{display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as L,b as te,c as ne,d as f,j as re,n as oe,p as P,r as se}from"./chunk-JE2I63Y6.js";import{Aa as z,Ba as w,Ca as _,Da as g,Ea as v,Fa as G,Ga as Y,Ha as K,Ia as q,Ja as W,Ka as X,La as J,Ma as m,P as y,Qa as M,R as l,U as O,Ua as Q,W as a,_ as E,ea as $,oc as ee,sa as S,ta as I,ya as Z,za as N}from"./chunk-67JGZ4NF.js";import{a as b,b as V}from"./chunk-7CGTOI24.js";var j=class extends ne{constructor(){super(...arguments),this.supportsDOMEvents=!0}},x=class r extends j{static makeCurrent(){te(new r)}onAndCancel(n,e,t){return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=pe();return e==null?null:me(e)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return re(document.cookie,n)}},T=null;function pe(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function me(r){return new URL(r,document.baseURI).pathname}var ye=(()=>{class r{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),U=new O(""),ue=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static{this.\u0275fac=function(t){return new(t||r)(a(U),a(S))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),C=class{constructor(n){this._doc=n}},H="ng-app-id",de=(()=>{class r{constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=P(s),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(o=>o.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${H}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(o=>{o.textContent!=null&&t.set(o.textContent,o)}),t}return null}changeUsageCount(e,t){let o=this.styleRef;if(o.has(e)){let s=o.get(e);return s.usage+=t,s.usage}return o.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let o=this.styleNodesInDOM,s=o?.get(t);if(s?.parentNode===e)return o.delete(t),s.removeAttribute(H),s;{let i=this.doc.createElement("style");return this.nonce&&i.setAttribute("nonce",this.nonce),i.textContent=t,this.platformIsServer&&i.setAttribute(H,this.appId),e.appendChild(i),i}}addStyleToHost(e,t){let o=this.getStyleElement(e,t),s=this.styleRef,i=s.get(t)?.elements;i?i.push(o):s.set(t,{elements:[o],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||r)(a(f),a(N),a(_,8),a(w))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),k={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},B=/%COMP%/g,le="%COMP%",ge=`_nghost-${le}`,ve=`_ngcontent-${le}`,Ee=!0,Se=new O("",{providedIn:"root",factory:()=>Ee});function we(r){return ve.replace(B,r)}function Me(r){return ge.replace(B,r)}function fe(r,n){return n.map(e=>e.replace(B,r))}var ie=(()=>{class r{constructor(e,t,o,s,i,c,u,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=c,this.ngZone=u,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=P(c),this.defaultRenderer=new D(e,i,u,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===E.ShadowDom&&(t=V(b({},t),{encapsulation:E.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof A?o.applyToHost(e):o instanceof R&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,c=this.ngZone,u=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(t.encapsulation){case E.Emulated:s=new A(u,d,t,this.appId,h,i,c,p);break;case E.ShadowDom:return new F(u,d,e,t,i,c,this.nonce,p);default:s=new R(u,d,t,h,i,c,p);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||r)(a(ue),a(de),a(N),a(Se),a(f),a(w),a(S),a(_))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),D=class{constructor(n,e,t,o){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(k[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ae(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(ae(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=k[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=k[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(M.DashCase|M.Important)?n.style.setProperty(e,t,o&M.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&M.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t){if(typeof n=="string"&&(n=L().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(t))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function ae(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var F=class extends D{constructor(n,e,t,o,s,i,c,u){super(n,s,i,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=fe(o.id,o.styles);for(let h of d){let p=document.createElement("style");c&&p.setAttribute("nonce",c),p.textContent=h,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},R=class extends D{constructor(n,e,t,o,s,i,c,u){super(n,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=u?fe(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},A=class extends R{constructor(n,e,t,o,s,i,c,u){let d=o+"-"+t.id;super(n,e,t,s,i,c,u,d),this.contentAttr=we(d),this.hostAttr=Me(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Te=(()=>{class r extends C{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),ce=["alt","control","meta","shift"],De={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Re={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},Ce=(()=>{class r extends C{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o){let s=r.parseEventName(t),i=r.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>L().onAndCancel(e,s.domEventName,i))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),i="code."),ce.forEach(d=>{let h=t.indexOf(d);h>-1&&(t.splice(h,1),i+=d+".")}),i+=s,t.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=i,u}static matchEventFullKeyCode(e,t){let o=De[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ce.forEach(i=>{if(i!==o){let c=Re[i];c(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})();function ft(r,n){return ee(b({rootComponent:r},Ae(n)))}function Ae(r){return{appProviders:[..._e,...r?.providers??[]],platformProviders:Ne}}function be(){x.makeCurrent()}function Oe(){return new I}function Ie(){return Z(document),document}var Ne=[{provide:w,useValue:oe},{provide:z,useValue:be,multi:!0},{provide:f,useFactory:Ie,deps:[]}];var _e=[{provide:$,useValue:"root"},{provide:I,useFactory:Oe,deps:[]},{provide:U,useClass:Te,multi:!0,deps:[f,S,w]},{provide:U,useClass:Ce,multi:!0,deps:[f]},ie,de,ue,{provide:Q,useExisting:ie},{provide:se,useClass:ye,deps:[]},[]];var ht=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Le=(()=>{class r{static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=a(Pe),o},providedIn:"root"})}}return r})(),Pe=(()=>{class r extends Le{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case m.NONE:return t;case m.HTML:return v(t,"HTML")?g(t):J(this._doc,String(t)).toString();case m.STYLE:return v(t,"Style")?g(t):t;case m.SCRIPT:if(v(t,"Script"))return g(t);throw new y(5200,!1);case m.URL:return v(t,"URL")?g(t):X(String(t));case m.RESOURCE_URL:if(v(t,"ResourceURL"))return g(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return G(e)}bypassSecurityTrustStyle(e){return Y(e)}bypassSecurityTrustScript(e){return K(e)}bypassSecurityTrustUrl(e){return q(e)}bypassSecurityTrustResourceUrl(e){return W(e)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{ft as a,ht as b,Le as c};
|
|
1
|
+
import{a as L,b as te,c as ne,d as f,j as re,n as oe,p as P,r as se}from"./chunk-TUN6QDZQ.js";import{Aa as w,Ba as _,Ca as g,Da as v,Ea as G,Fa as Y,Ga as K,Ha as q,Ia as W,Ja as X,Ka as J,La as m,O as y,Pa as M,Q as l,T as O,Ta as Q,V as a,Z as E,da as $,nc as ee,ra as S,sa as I,xa as Z,ya as N,za as z}from"./chunk-ANRVMVA2.js";import{a as b,b as V}from"./chunk-7CGTOI24.js";var j=class extends ne{constructor(){super(...arguments),this.supportsDOMEvents=!0}},x=class r extends j{static makeCurrent(){te(new r)}onAndCancel(n,e,t){return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=pe();return e==null?null:me(e)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return re(document.cookie,n)}},T=null;function pe(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function me(r){return new URL(r,document.baseURI).pathname}var ye=(()=>{class r{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),U=new O(""),ue=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static{this.\u0275fac=function(t){return new(t||r)(a(U),a(S))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),C=class{constructor(n){this._doc=n}},H="ng-app-id",de=(()=>{class r{constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=P(s),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(o=>o.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${H}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(o=>{o.textContent!=null&&t.set(o.textContent,o)}),t}return null}changeUsageCount(e,t){let o=this.styleRef;if(o.has(e)){let s=o.get(e);return s.usage+=t,s.usage}return o.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let o=this.styleNodesInDOM,s=o?.get(t);if(s?.parentNode===e)return o.delete(t),s.removeAttribute(H),s;{let i=this.doc.createElement("style");return this.nonce&&i.setAttribute("nonce",this.nonce),i.textContent=t,this.platformIsServer&&i.setAttribute(H,this.appId),e.appendChild(i),i}}addStyleToHost(e,t){let o=this.getStyleElement(e,t),s=this.styleRef,i=s.get(t)?.elements;i?i.push(o):s.set(t,{elements:[o],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||r)(a(f),a(N),a(_,8),a(w))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),k={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},B=/%COMP%/g,le="%COMP%",ge=`_nghost-${le}`,ve=`_ngcontent-${le}`,Ee=!0,Se=new O("",{providedIn:"root",factory:()=>Ee});function we(r){return ve.replace(B,r)}function Me(r){return ge.replace(B,r)}function fe(r,n){return n.map(e=>e.replace(B,r))}var ie=(()=>{class r{constructor(e,t,o,s,i,c,u,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=c,this.ngZone=u,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=P(c),this.defaultRenderer=new D(e,i,u,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===E.ShadowDom&&(t=V(b({},t),{encapsulation:E.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof A?o.applyToHost(e):o instanceof R&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,c=this.ngZone,u=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(t.encapsulation){case E.Emulated:s=new A(u,d,t,this.appId,h,i,c,p);break;case E.ShadowDom:return new F(u,d,e,t,i,c,this.nonce,p);default:s=new R(u,d,t,h,i,c,p);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||r)(a(ue),a(de),a(N),a(Se),a(f),a(w),a(S),a(_))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),D=class{constructor(n,e,t,o){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(k[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ae(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(ae(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=k[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=k[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(M.DashCase|M.Important)?n.style.setProperty(e,t,o&M.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&M.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t){if(typeof n=="string"&&(n=L().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(t))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function ae(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var F=class extends D{constructor(n,e,t,o,s,i,c,u){super(n,s,i,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=fe(o.id,o.styles);for(let h of d){let p=document.createElement("style");c&&p.setAttribute("nonce",c),p.textContent=h,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},R=class extends D{constructor(n,e,t,o,s,i,c,u){super(n,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=u?fe(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},A=class extends R{constructor(n,e,t,o,s,i,c,u){let d=o+"-"+t.id;super(n,e,t,s,i,c,u,d),this.contentAttr=we(d),this.hostAttr=Me(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Te=(()=>{class r extends C{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),ce=["alt","control","meta","shift"],De={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Re={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},Ce=(()=>{class r extends C{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o){let s=r.parseEventName(t),i=r.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>L().onAndCancel(e,s.domEventName,i))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),i="code."),ce.forEach(d=>{let h=t.indexOf(d);h>-1&&(t.splice(h,1),i+=d+".")}),i+=s,t.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=i,u}static matchEventFullKeyCode(e,t){let o=De[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ce.forEach(i=>{if(i!==o){let c=Re[i];c(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})();function ft(r,n){return ee(b({rootComponent:r},Ae(n)))}function Ae(r){return{appProviders:[..._e,...r?.providers??[]],platformProviders:Ne}}function be(){x.makeCurrent()}function Oe(){return new I}function Ie(){return Z(document),document}var Ne=[{provide:w,useValue:oe},{provide:z,useValue:be,multi:!0},{provide:f,useFactory:Ie,deps:[]}];var _e=[{provide:$,useValue:"root"},{provide:I,useFactory:Oe,deps:[]},{provide:U,useClass:Te,multi:!0,deps:[f,S,w]},{provide:U,useClass:Ce,multi:!0,deps:[f]},ie,de,ue,{provide:Q,useExisting:ie},{provide:se,useClass:ye,deps:[]},[]];var ht=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Le=(()=>{class r{static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=a(Pe),o},providedIn:"root"})}}return r})(),Pe=(()=>{class r extends Le{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case m.NONE:return t;case m.HTML:return v(t,"HTML")?g(t):J(this._doc,String(t)).toString();case m.STYLE:return v(t,"Style")?g(t):t;case m.SCRIPT:if(v(t,"Script"))return g(t);throw new y(5200,!1);case m.URL:return v(t,"URL")?g(t):X(String(t));case m.RESOURCE_URL:if(v(t,"ResourceURL"))return g(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return G(e)}bypassSecurityTrustStyle(e){return Y(e)}bypassSecurityTrustScript(e){return K(e)}bypassSecurityTrustUrl(e){return q(e)}bypassSecurityTrustResourceUrl(e){return W(e)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{ft as a,ht as b,Le as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ve}from"./chunk-
|
|
1
|
+
import{a as ve}from"./chunk-QQ7JWBVZ.js";import{a as L,b as be}from"./chunk-OYOFQEI3.js";import{b as q}from"./chunk-KJNFJK32.js";import{a as ce,b as V,d as E,e as T,g as P,h as ue,i as de,k as R,n as N,o as fe,p as ge,q as I,s as B}from"./chunk-KMTWZOSJ.js";import{a as O}from"./chunk-E6PE2QMZ.js";import{a as D,g as M,n as he,o as Fe,q as Se,t as Ce}from"./chunk-EF6PZOYI.js";import{H as w,W as C}from"./chunk-2WWTJWN7.js";import{l as _}from"./chunk-TUN6QDZQ.js";import{$b as ae,Ab as S,B as Y,Bb as W,E as j,K as Z,L as ee,Ob as r,Q as te,Qa as c,Rb as se,Vb as le,W as p,Wb as x,Xa as d,_ as k,bc as pe,c as K,db as $,ia as f,ib as u,ja as g,kb as ie,l as Q,nb as J,ob as oe,p as U,pb as ne,pc as me,qb as re,rb as o,sb as n,tb as m,ub as h,v as X,vb as F,xb as y}from"./chunk-ANRVMVA2.js";function Oe(l,t){l&1&&m(0,"spk-progress-bar",3)}function Ve(l,t){if(l&1&&(o(0,"option",10),r(1),ae(2,"date"),n()),l&2){let e=t.$implicit;u("value",e.Version),c(),se("",e.Version,": ",pe(2,3,e.Time,"d MMM y, h:mm"),"")}}function Ee(l,t){if(l&1&&(o(0,"app-file-tree",11)(1,"label",12),r(2,"Path"),n(),m(3,"input",13),n()),l&2){let e=W(2);u("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Te(l,t){if(l&1&&(o(0,"spk-select",7),m(1,"input",8),h(2,9),ne(3,Ve,3,6,"option",10,oe),F(),n(),$(5,Ee,4,4,"app-file-tree",11)),l&2){let e=W();u("displayFn",e.displayFn()),c(3),re(e.versionOptions()),c(2),J(e.rootPathLoaded()?5:-1)}}var A=new I,ye=()=>A.group({filesToRestore:A.control(""),selectedOption:A.control(null),passphrase:A.control(null)}),z=class l{#t=p(O);#e=p(b);#i=p(C);#o=p(w);#n=p(_);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;backupSettings=me(()=>{let t=this.backupId(),e=this.selectFilesFormSignal()?.selectedOption;if(typeof e!="number"||!t)return null;let s=this.versionOptions()?.find(a=>a.Version===e)?.Time??null;return s?{id:t,time:s}:null});rootPathLoaded=d(!1);rootPath=ve([this.selectFilesFormSignal,this.backupId],K(Z([null,null]),ee(([t,e])=>{let i=t?.selectedOption,s=e;if(typeof i!="number"||!s)return Q("/");let a=this.versionOptions()?.find(G=>G.Version===i);return this.#t.getApiV1BackupByIdFiles({id:s,time:a?.Time??"",prefixOnly:!1,folderContents:!0}).pipe(U(G=>(this.rootPathLoaded.set(!0),G.Files[0].Path)))})));displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let i=t?.find(s=>s.Version?.toString()===e);return i?`${i.Version}: ${this.#n.transform(i.Time,"d MMM y, h:mm")}`:""}}next(){this.#i.navigate(["options"],{relativeTo:this.#o.parent})}exit(){this.#e.exit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-select-files"]],standalone:!0,features:[le([_]),x],decls:15,vars:2,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn"],["type","number","placeholder","Select an option...","formControlName","selectedOption"],["options",""],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]],template:function(e,i){if(e&1){let s=y();o(0,"form",1,0),S("submit",function(){return f(s),g(i.next())}),o(2,"h3",2),r(3,"Select files"),n(),$(4,Oe,1,0,"spk-progress-bar",3)(5,Te,6,2),o(6,"div",4)(7,"button",5),S("click",function(){return f(s),g(i.exit())}),o(8,"spk-icon"),r(9,"arrow-left"),n(),r(10," Exit "),n(),o(11,"button",6)(12,"spk-icon"),r(13,"arrow-right"),n(),r(14," Continue "),n()()()}e&2&&(u("formGroup",i.selectFilesForm),c(4),J(i.versionOptionsLoading()?4:5))},dependencies:[B,P,fe,ge,V,ue,E,T,R,N,_,L,M,D,Se,he],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var b=class l{#t=p(C);#e=p(O);backupId=d(null);backup=d(null);selectFilesForm=ye();optionsForm=xe();optionsFormSignal=q(this.optionsForm.valueChanges);selectFilesFormSignal=q(this.selectFilesForm.valueChanges);versionOptionsLoading=d(!1);versionOptions=d([]);isSubmitting=d(!1);init(t){this.backupId.set(t),this.#i(t,!0)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,i=this.selectFilesForm.value,s=this.versionOptions()?.find(a=>a.Version===i.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:i.filesToRestore?.split("\0").map(a=>`${a}*`)??[],passphrase:i.passphrase??null,time:s?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(j(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:a=>{console.error("restore error",a)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}#i(t,e=!1){this.versionOptionsLoading.set(!0),X([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t})]).pipe(Y(1),j(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([i,s])=>{this.versionOptions.set(s),this.backup.set(i),e&&this.selectFilesForm.controls.selectedOption.setValue(s[0].Version)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||l)};static \u0275prov=te({token:l,factory:l.\u0275fac,providedIn:"root"})};var v=new I,xe=()=>v.group({restoreFrom:v.control("orignal"),restoreFromPath:v.control(""),handleExisting:v.control("overwrite"),permissions:v.control(!1)}),H=class l{#t=p(b);#e=p(C);#i=p(w);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#i.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-options"]],standalone:!0,features:[x],decls:41,vars:6,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]],template:function(e,i){if(e&1){let s=y();o(0,"form",1,0),S("submit",function(){return f(s),g(i.submit())}),o(2,"h3",2),r(3,"Restore options"),n(),o(4,"app-toggle-card",3),h(5,4),r(6,"Where do you want to restore files from?"),F(),o(7,"spk-radio",5),r(8," Original location "),m(9,"input",6),n(),o(10,"spk-radio",5),r(11," Pick location "),m(12,"input",7),n(),o(13,"app-file-tree",8)(14,"label",9),r(15,"Path"),n(),m(16,"input",10),n()(),o(17,"app-toggle-card",3),h(18,4),r(19,"How do you want to handle existing files?"),F(),o(20,"spk-radio",5),r(21," Overwrite "),m(22,"input",11),n(),o(23,"spk-radio",5),r(24," Save different versions with timestamp in file name "),m(25,"input",12),n()(),o(26,"app-toggle-card"),h(27,4),r(28,"Permissions"),F(),o(29,"spk-toggle",13),r(30," Restore read/write permissions "),m(31,"input",14),n()(),o(32,"div",15)(33,"button",16),S("click",function(){return f(s),g(i.goBack())}),o(34,"spk-icon"),r(35,"arrow-left"),n(),r(36," Go back "),n(),o(37,"button",17)(38,"spk-icon"),r(39,"arrow-right"),n(),r(40," Submit "),n()()()}if(e&2){let s;u("formGroup",i.optionsForm),c(4),u("disallowToggle",!0),c(9),u("disabled",((s=i.optionsFormSignal())==null?null:s.restoreFrom)!=="pickLocation"),c(4),u("disallowToggle",!0),c(20),ie("loader",i.isSubmitting())}},dependencies:[B,P,V,ce,de,E,T,R,N,be,L,Ce,Fe,M,D],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{xe as a,H as b,ye as c,z as d,b as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-647BVHNL.js";import{W as s,ba as i}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var a=class r{#t=s(o);transform(t,...e){if(!t)return"";let n=t.split(".")[0],p=parseInt(n.split(":")[0])??0,u=parseInt(n.split(":")[1])??0,m=parseInt(n.split(":")[2])??0;return this.#t.duration({hours:p,minutes:u,seconds:m}).humanize()}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=i({name:"durationFormat",type:r,pure:!0,standalone:!0})};export{a as DurationFormatPipe};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c}from"./chunk-7TGAK2FS.js";import"./chunk-OYOFQEI3.js";import"./chunk-DNHLTHLR.js";import"./chunk-KJNFJK32.js";import"./chunk-RPNE5OZL.js";import"./chunk-KMTWZOSJ.js";import"./chunk-E6PE2QMZ.js";import"./chunk-EF6PZOYI.js";import"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
|
package/index.html
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
<style>:root{--font-size:16px;font-size:var(--font-size)}html body{--sparkle-light:initial;--sparkle-dark: ;color-scheme:light dark;--primary-50:#eff6ff;--primary-rgb-50:239,246,255;--primary-contrast-50:var(--dark-primary-text);--primary-100:#dbeafe;--primary-rgb-100:219,234,254;--primary-contrast-100:var(--dark-primary-text);--primary-200:#bfdbfe;--primary-rgb-200:191,219,254;--primary-contrast-200:var(--dark-primary-text);--primary-300:#93c5fd;--primary-rgb-300:147,197,253;--primary-contrast-300:var(--dark-primary-text);--primary-400:#60a5fa;--primary-rgb-400:96,165,250;--primary-contrast-400:var(--dark-primary-text);--primary-500:#3b82f6;--primary-rgb-500:59,130,246;--primary-contrast-500:var(--light-primary-text);--primary-600:#2563eb;--primary-rgb-600:37,99,235;--primary-contrast-600:var(--light-primary-text);--primary-700:#1d4ed8;--primary-rgb-700:29,78,216;--primary-contrast-700:var(--light-primary-text);--primary-800:#1e40af;--primary-rgb-800:30,64,175;--primary-contrast-800:var(--light-primary-text);--primary-900:#1e3a8a;--primary-rgb-900:30,58,138;--primary-contrast-900:var(--light-primary-text);--primary-950:#172554;--primary-rgb-950:23,37,84;--primary-contrast-950:var(--light-primary-text);--accent-50:#f5f3ff;--accent-rgb-50:245,243,255;--accent-contrast-50:var(--dark-primary-text);--accent-100:#ede9fe;--accent-rgb-100:237,233,254;--accent-contrast-100:var(--dark-primary-text);--accent-200:#ddd6fe;--accent-rgb-200:221,214,254;--accent-contrast-200:var(--dark-primary-text);--accent-300:#c4b5fd;--accent-rgb-300:196,181,253;--accent-contrast-300:var(--dark-primary-text);--accent-400:#a78bfa;--accent-rgb-400:167,139,250;--accent-contrast-400:var(--dark-primary-text);--accent-500:#8b5cf6;--accent-rgb-500:139,92,246;--accent-contrast-500:var(--light-primary-text);--accent-600:#7c3aed;--accent-rgb-600:124,58,237;--accent-contrast-600:var(--light-primary-text);--accent-700:#6d28d9;--accent-rgb-700:109,40,217;--accent-contrast-700:var(--light-primary-text);--accent-800:#5b21b6;--accent-rgb-800:91,33,182;--accent-contrast-800:var(--light-primary-text);--accent-900:#4c1d95;--accent-rgb-900:76,29,149;--accent-contrast-900:var(--light-primary-text);--accent-950:#2e1065;--accent-rgb-950:46,16,101;--accent-contrast-950:var(--light-primary-text);--tertiary-50:#fffbeb;--tertiary-rgb-50:255,251,235;--tertiary-contrast-50:var(--dark-primary-text);--tertiary-100:#fef3c7;--tertiary-rgb-100:254,243,199;--tertiary-contrast-100:var(--dark-primary-text);--tertiary-200:#fde68a;--tertiary-rgb-200:253,230,138;--tertiary-contrast-200:var(--dark-primary-text);--tertiary-300:#fcd34d;--tertiary-rgb-300:252,211,77;--tertiary-contrast-300:var(--dark-primary-text);--tertiary-400:#fbbf24;--tertiary-rgb-400:251,191,36;--tertiary-contrast-400:var(--light-primary-text);--tertiary-500:#f59e0b;--tertiary-rgb-500:245,158,11;--tertiary-contrast-500:var(--light-primary-text);--tertiary-600:#d97706;--tertiary-rgb-600:217,119,6;--tertiary-contrast-600:var(--light-primary-text);--tertiary-700:#b45309;--tertiary-rgb-700:180,83,9;--tertiary-contrast-700:var(--light-primary-text);--tertiary-800:#92400e;--tertiary-rgb-800:146,64,14;--tertiary-contrast-800:var(--light-primary-text);--tertiary-900:#78350f;--tertiary-rgb-900:120,53,15;--tertiary-contrast-900:var(--light-primary-text);--tertiary-950:#451a03;--tertiary-rgb-950:69,26,3;--tertiary-contrast-950:var(--light-primary-text);--grey-50:#fafafa;--grey-rgb-50:250,250,250;--grey-contrast-50:var(--dark-primary-text);--grey-100:#f4f4f5;--grey-rgb-100:244,244,245;--grey-contrast-100:var(--dark-primary-text);--grey-200:#e4e4e7;--grey-rgb-200:228,228,231;--grey-contrast-200:var(--dark-primary-text);--grey-300:#d4d4d8;--grey-rgb-300:212,212,216;--grey-contrast-300:var(--dark-primary-text);--grey-400:#a1a1aa;--grey-rgb-400:161,161,170;--grey-contrast-400:var(--dark-primary-text);--grey-500:#71717a;--grey-rgb-500:113,113,122;--grey-contrast-500:var(--light-primary-text);--grey-600:#52525b;--grey-rgb-600:82,82,91;--grey-contrast-600:var(--light-primary-text);--grey-700:#3f3f46;--grey-rgb-700:63,63,70;--grey-contrast-700:var(--light-primary-text);--grey-750:#2f2f31;--grey-rgb-750:47,47,49;--grey-contrast-750:var(--light-primary-text);--grey-800:#27272a;--grey-rgb-800:39,39,42;--grey-contrast-800:var(--light-primary-text);--grey-900:#18181b;--grey-rgb-900:24,24,27;--grey-contrast-900:var(--light-primary-text);--grey-950:#09090b;--grey-rgb-950:9,9,11;--grey-contrast-950:var(--light-primary-text);--warn-50:#fef2f2;--warn-rgb-50:254,242,242;--warn-contrast-50:var(--dark-primary-text);--warn-100:#fee2e2;--warn-rgb-100:254,226,226;--warn-contrast-100:var(--dark-primary-text);--warn-200:#fecaca;--warn-rgb-200:254,202,202;--warn-contrast-200:var(--dark-primary-text);--warn-300:#fca5a5;--warn-rgb-300:252,165,165;--warn-contrast-300:var(--dark-primary-text);--warn-400:#f87171;--warn-rgb-400:248,113,113;--warn-contrast-400:var(--light-primary-text);--warn-500:#ef4444;--warn-rgb-500:239,68,68;--warn-contrast-500:var(--light-primary-text);--warn-600:#dc2626;--warn-rgb-600:220,38,38;--warn-contrast-600:var(--light-primary-text);--warn-700:#b91c1c;--warn-rgb-700:185,28,28;--warn-contrast-700:var(--light-primary-text);--warn-800:#991b1b;--warn-rgb-800:153,27,27;--warn-contrast-800:var(--light-primary-text);--warn-900:#7f1d1d;--warn-rgb-900:127,29,29;--warn-contrast-900:var(--light-primary-text);--warn-950:#450a0a;--warn-rgb-950:69,10,10;--warn-contrast-950:var(--light-primary-text);--success-50:#ecfdf5;--success-rgb-50:236,253,245;--success-contrast-50:var(--dark-primary-text);--success-100:#d1fae5;--success-rgb-100:209,250,229;--success-contrast-100:var(--dark-primary-text);--success-200:#a7f3d0;--success-rgb-200:167,243,208;--success-contrast-200:var(--dark-primary-text);--success-300:#6ee7b7;--success-rgb-300:110,231,183;--success-contrast-300:var(--dark-primary-text);--success-400:#34d399;--success-rgb-400:52,211,153;--success-contrast-400:var(--light-primary-text);--success-500:#10b981;--success-rgb-500:16,185,129;--success-contrast-500:var(--light-primary-text);--success-600:#059669;--success-rgb-600:5,150,105;--success-contrast-600:var(--light-primary-text);--success-700:#047857;--success-rgb-700:4,120,87;--success-contrast-700:var(--light-primary-text);--success-800:#065f46;--success-rgb-800:6,95,70;--success-contrast-800:var(--light-primary-text);--success-900:#064e3b;--success-rgb-900:6,78,59;--success-contrast-900:var(--light-primary-text);--success-950:#022c22;--success-rgb-950:2,44,34;--success-contrast-950:var(--light-primary-text);--display-10:600 5rem / normal Inter Tight, sans-serif;--display-20:600 4.5rem / normal Inter Tight, sans-serif;--display-30:600 4rem / normal Inter Tight, sans-serif;--display-40:600 3.5rem / normal Inter Tight, sans-serif;--display-50:600 3rem / normal Inter Tight, sans-serif;--title-10:500 2.5rem / normal Inter Tight, sans-serif;--title-20:500 2rem / normal Inter Tight, sans-serif;--title-30:500 1.5rem / normal Inter Tight, sans-serif;--title-10B:600 2.5rem / normal Inter Tight, sans-serif;--title-20B:600 2rem / normal Inter Tight, sans-serif;--title-30B:600 1.5rem / normal Inter Tight, sans-serif;--paragraph-10:500 1.125rem / normal Inter Tight, sans-serif;--paragraph-20:500 1rem / normal Inter Tight, sans-serif;--paragraph-30:500 .875rem / normal Inter Tight, sans-serif;--paragraph-40:500 .75rem / normal Inter Tight, sans-serif;--paragraph-10B:600 1.125rem / normal Inter Tight, sans-serif;--paragraph-20B:600 1rem / normal Inter Tight, sans-serif;--paragraph-30B:600 .875rem / normal Inter Tight, sans-serif;--paragraph-40B:600 .75rem / normal Inter Tight, sans-serif;--shape-1:.25rem;--shape-2:.5rem;--shape-3:.75rem;--shape-4:1rem;--shape-5:1.25rem;--box-shadow-10:0 1px 2px 0 rgba(18, 18, 23, .07);--box-shadow-20:0 1px 3px 0 rgba(18, 18, 23, .1);--box-shadow-30:0 1px 4px -1px rgba(18, 18, 23, .08);--box-shadow-35:0 4px 6px -1px rgba(18, 18, 23, .08);--box-shadow-40:0 10px 15px -3px rgba(18, 18, 23, .08);--box-shadow-50:0 20px 25px -5px rgba(18, 18, 23, .1);--box-shadow-60:0 25px 50px -12px rgba(18, 18, 23, .25);--base-level-10:var(--sparkle-light, #fff) var(--sparkle-dark, var(--grey-950));--base-level-20:var(--sparkle-light, var(--grey-50)) var(--sparkle-dark, var(--grey-900));--base-level-30:var(--sparkle-light, var(--grey-100)) var(--sparkle-dark, var(--grey-900));--base-level-30R:var(--sparkle-light, var(--grey-900)) var(--sparkle-dark, var(--grey-100));--base-level-40:var(--sparkle-light, var(--grey-200)) var(--sparkle-dark, var(--grey-700));--base-level-50:var(--sparkle-light, var(--grey-300)) var(--sparkle-dark, var(--grey-800));--base-level-60:var(--sparkle-light, var(--grey-500)) var(--sparkle-dark, var(--grey-400));--base-level-60R:var(--sparkle-light, var(--grey-400)) var(--sparkle-dark, var(--grey-500));--base-level-70:var(--sparkle-light, var(--grey-900)) var(--sparkle-dark, #fff);--base-level-70R:var(--sparkle-light, #fff) var(--sparkle-dark, var(--grey-900));--base-gradient-20:linear-gradient(180deg, var(--grey-400) 0%, var(--grey-500) 50%);--base-gradient-30:linear-gradient(180deg, var(--grey-300) 0%, var(--grey-500) 50%);--base-gradient-60:linear-gradient(180deg, var(--grey-700) 0%, var(--grey-900) 50%);--base-gradient-70:linear-gradient(180deg, var(--grey-600) 0%, var(--grey-900) 50%);--primary-level-20:var(--sparkle-light, var(--primary-50)) var(--sparkle-dark, var(--primary-950));--primary-level-30:var(--sparkle-light, var(--primary-100)) var(--sparkle-dark, var(--primary-900));--primary-level-40:var(--sparkle-light, var(--primary-200)) var(--sparkle-dark, var(--primary-800));--primary-level-50:var(--sparkle-light, var(--primary-300)) var(--sparkle-dark, var(--primary-800));--primary-level-50R:var(--sparkle-light, var(--primary-800)) var(--sparkle-dark, var(--primary-300));--primary-level-80:var(--sparkle-light, var(--primary-900)) var(--sparkle-dark, var(--primary-300));--primary-gradient-20:linear-gradient(180deg, var(--primary-400) 0%, var(--primary-500) 50%);--primary-gradient-30:linear-gradient(180deg, var(--primary-300) 0%, var(--primary-500) 50%);--accent-level-20:var(--sparkle-light, var(--accent-50)) var(--sparkle-dark, var(--accent-950));--accent-level-30:var(--sparkle-light, var(--accent-100)) var(--sparkle-dark, var(--accent-900));--accent-level-40:var(--sparkle-light, var(--accent-200)) var(--sparkle-dark, var(--accent-800));--accent-level-50:var(--sparkle-light, var(--accent-300)) var(--sparkle-dark, var(--accent-800));--accent-level-50R:var(--sparkle-light, var(--accent-800)) var(--sparkle-dark, var(--accent-300));--accent-level-80:var(--sparkle-light, var(--accent-900)) var(--sparkle-dark, var(--accent-300));--accent-gradient-20:linear-gradient(180deg, var(--accent-400) 0%, var(--accent-500) 50%);--accent-gradient-30:linear-gradient(180deg, var(--accent-300) 0%, var(--accent-500) 50%);--tertiary-level-20:var(--sparkle-light, var(--tertiary-50)) var(--sparkle-dark, var(--tertiary-950));--tertiary-level-30:var(--sparkle-light, var(--tertiary-100)) var(--sparkle-dark, var(--tertiary-900));--tertiary-level-40:var(--sparkle-light, var(--tertiary-200)) var(--sparkle-dark, var(--tertiary-800));--tertiary-level-50:var(--sparkle-light, var(--tertiary-300)) var(--sparkle-dark, var(--tertiary-800));--tertiary-level-50R:var(--sparkle-light, var(--tertiary-800)) var(--sparkle-dark, var(--tertiary-300));--tertiary-level-80:var(--sparkle-light, var(--tertiary-900)) var(--sparkle-dark, var(--tertiary-300));--tertiary-gradient-20:linear-gradient(180deg, var(--tertiary-400) 0%, var(--tertiary-500) 50%);--tertiary-gradient-30:linear-gradient(180deg, var(--tertiary-300) 0%, var(--tertiary-500) 50%);--warn-level-20:var(--sparkle-light, var(--warn-50)) var(--sparkle-dark, var(--warn-950));--warn-level-30:var(--sparkle-light, var(--warn-100)) var(--sparkle-dark, var(--warn-900));--warn-level-40:var(--sparkle-light, var(--warn-200)) var(--sparkle-dark, var(--warn-800));--warn-level-50:var(--sparkle-light, var(--warn-300)) var(--sparkle-dark, var(--warn-800));--warn-level-50R:var(--sparkle-light, var(--warn-800)) var(--sparkle-dark, var(--warn-300));--warn-level-80:var(--sparkle-light, var(--warn-900)) var(--sparkle-dark, var(--warn-300));--warn-gradient-20:linear-gradient(180deg, var(--warn-400) 0%, var(--warn-500) 50%);--warn-gradient-30:linear-gradient(180deg, var(--warn-300) 0%, var(--warn-500) 50%);--success-level-20:var(--sparkle-light, var(--success-50)) var(--sparkle-dark, var(--success-950));--success-level-30:var(--sparkle-light, var(--success-100)) var(--sparkle-dark, var(--success-900));--success-level-40:var(--sparkle-light, var(--success-200)) var(--sparkle-dark, var(--success-800));--success-level-50:var(--sparkle-light, var(--success-300)) var(--sparkle-dark, var(--success-800));--success-level-50R:var(--sparkle-light, var(--success-800)) var(--sparkle-dark, var(--success-300));--success-level-80:var(--sparkle-light, var(--success-900)) var(--sparkle-dark, var(--success-300));--success-gradient-20:linear-gradient(180deg, var(--success-400) 0%, var(--success-500) 50%);--success-gradient-30:linear-gradient(180deg, var(--success-300) 0%, var(--success-500) 50%);--dark-primary-text:var(--grey-900);--light-primary-text:#fff}*{box-sizing:border-box}html,body,app-root{width:100vw;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--base-level-20)}body{margin:0;font:var(--paragraph-30);color:var(--base-level-70)}</style><link rel="stylesheet" href="styles-LL6J7JBI.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-LL6J7JBI.css"></noscript></head>
|
|
21
21
|
<body>
|
|
22
22
|
<app-root></app-root>
|
|
23
|
-
<link rel="modulepreload" href="chunk-
|
|
23
|
+
<link rel="modulepreload" href="chunk-RPNE5OZL.js"><link rel="modulepreload" href="chunk-6SKK76PT.js"><link rel="modulepreload" href="chunk-67F45CIQ.js"><link rel="modulepreload" href="chunk-E6PE2QMZ.js"><link rel="modulepreload" href="chunk-EF6PZOYI.js"><link rel="modulepreload" href="chunk-2WWTJWN7.js"><link rel="modulepreload" href="chunk-WCMY57ZO.js"><link rel="modulepreload" href="chunk-TUN6QDZQ.js"><link rel="modulepreload" href="chunk-647BVHNL.js"><link rel="modulepreload" href="chunk-ANRVMVA2.js"><script src="main-B5HGTFQ3.js" type="module"></script></body>
|
|
24
24
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ee}from"./chunk-
|
|
1
|
+
import{a as ee}from"./chunk-RPNE5OZL.js";import{a as w}from"./chunk-6SKK76PT.js";import{a as S}from"./chunk-67F45CIQ.js";import{d as Y}from"./chunk-E6PE2QMZ.js";import{c as te}from"./chunk-EF6PZOYI.js";import{H as _,K as Z,W as R,ba as Q,la as X}from"./chunk-2WWTJWN7.js";import{a as q}from"./chunk-WCMY57ZO.js";import{s as K,t as $,v as G,w as z,x as B}from"./chunk-TUN6QDZQ.js";import{b as oe}from"./chunk-647BVHNL.js";import{E as C,J as L,L as j,N as P,Q as h,T as W,W as s,Wb as U,Xa as c,_ as F,d as x,kc as D,m as A,rc as J,tb as H,x as V,y as E}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var ne={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var m=new W("ENVIRONMENT");var I=class o{#o=s(Y);isLoaded=c(!1);webmodules=c(null);preload(e=!1){let t=this.#o.getApiV1Webmodules().pipe(P(n=>this.webmodules.set(n)),C(()=>this.isLoaded.set(!0)));if(e)return t;t.subscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})};var re=[{path:"",children:[{path:"login",canActivate:[()=>s(w).token()!==null?s(R).navigate(["/"]):!0],loadComponent:()=>import("./chunk-OLXQO3ZT.js")},{path:"logout",loadComponent:()=>import("./chunk-CYXH6TL7.js")},{path:"",canActivate:[()=>V(s(ee).preload(!0),s(I).preload(!0))],loadComponent:()=>import("./chunk-7UN5GSLX.js"),children:[{path:"",loadComponent:()=>import("./chunk-DC5NQO2Y.js")},{path:"add-backup",loadComponent:()=>import("./chunk-43IGTI7W.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-UAAHGB26.js")},{path:"backup/import",loadComponent:()=>import("./chunk-QM3Q3TUI.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-B7BKD6BW.js"),loadChildren:()=>import("./chunk-EUKWBJHZ.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-B7BKD6BW.js"),loadChildren:()=>import("./chunk-EUKWBJHZ.js")},{path:"restore",loadComponent:()=>import("./chunk-56SGMJT3.js")},{path:"restore-flow/:id",loadComponent:()=>import("./chunk-LKYD5PU5.js"),children:[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"select-files",loadComponent:()=>import("./chunk-PBQATFTG.js")},{path:"options",loadComponent:()=>import("./chunk-D5XBMU7U.js")}]},{path:"settings",loadComponent:()=>import("./chunk-OGV5E7WV.js")},{path:"about",loadComponent:()=>import("./chunk-UXD4TQLV.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-OUZOHOAK.js")},{path:"changelog",loadComponent:()=>import("./chunk-KOXLMQOL.js")},{path:"libraries",loadComponent:()=>import("./chunk-RH4RL6FL.js")},{path:"system-info",loadComponent:()=>import("./chunk-MW756ZMH.js")},{path:"logs",loadComponent:()=>import("./chunk-JBKTYIJI.js")}]}]}]}];var M=null,se=(o,e)=>{let t=s(w),n=s(R),p=s(m),i=s(te),l=o;return t.token()&&o.url.startsWith(p.baseUrl)&&(l=o.clone({headers:o.headers.set("Authorization",`Bearer ${t.token()}`)})),e(l).pipe(E(r=>{if(i.error(r.message),r.status===401&&!M&&(M=t.refreshToken().pipe(L())),r.status===401)return M.pipe(j(()=>e(o.clone({headers:o.headers.set("Authorization",`Bearer ${t.token()}`)}))),E(g=>(n.navigate(["/logout"]),A(()=>g))),C(()=>M=null));let a=`Error Code: ${r.status}, Message: ${r.message}`;return A(()=>({error:r,message:a}))}))};var ce="1.0.0",ie="portal-proxy-client",le=1,T=class o{#o=1e3;#n=s(m);#e=c("disconnected");#l=c(this.#o);#i=c(!1);#r=c(!1);#a=c(null);isConnectedToMachineServer=this.#r.asReadonly();wsState=this.#e.asReadonly();#p=[];#s={};#t=null;#m=new TextDecoder("utf-8");#c=null;#d=J(()=>{let e=this.#i(),t=this.#l(),n=this.#a();if(!n||!e||!t||t<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(n)},t)});utf8Atob(e){let t=Uint8Array.from(atob(e),p=>p.charCodeAt(0)),n=this.#m.decode(t);return n?JSON.parse(n):null}connectToMachineServer(e,t){let n=t?.reconnect??!1;this.#t&&this.wsState()==="authenticated"&&!n||(this.#t&&this.wsState()!=="authenticated"&&this.#t.close(),this.#t=new WebSocket(this.#n.machineServerUrl),this.#t.onopen=()=>{this.#e.set("connect"),this.#r.set(!0),this.#i.set(!1),this.#a.set(null)},this.#t.onclose=()=>{this.#e.set("disconnected"),this.#r.set(!1),this.#a.set(e),this.#i.set(!0)},this.#t.onerror=()=>{this.#e.set("error")},this.#t.onmessage=p=>{let i=JSON.parse(p.data);if(this.wsState()==="connect"){if(i.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${i.type}'`);return}let r={token:e,publicKey:"",clientVersion:ce,protocolVersion:le},a=this.createResponse(i,"authportal",r);this.#e.set("welcome"),this.#t?.send(a)}else if(this.wsState()==="welcome"){if(i.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${i.type}'`);return}var l=JSON.parse(i.payload??"");if(l.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#e.set("authenticated"),this.#r.set(!0);this.#p.length>0;){let r=this.#p.pop();r&&this.#s[r.messageId]&&this.activateCommand(r)}}else if(this.wsState()==="authenticated"){if(i.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${i.type}'`);return}let r=this.#s[i.messageId];if(r){if(i.errorMessage){r.reject(i.errorMessage);return}else{let a=JSON.parse(i.payload??"");a.body=a?.body==null?null:this.utf8Atob(a.body),r.resolve(a)}delete this.#s[i.messageId],window.clearTimeout(r.timer)}}})}disconnectFromMachineServer(e=null){e&&console.error(e),this.#t?.close(),this.#t=null,this.#e.set("disconnected"),this.#r.set(!1)}createResponse(e,t,n){let p={from:ie,to:e.from,type:t,messageId:e.messageId,payload:JSON.stringify(n)};return JSON.stringify(p)}sendCommand(e,t,n,p,i,l,r=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(e),new Promise((a,g)=>{let d=crypto.randomUUID(),y={from:ie,to:t,type:"command",messageId:d,payload:JSON.stringify({method:n,path:p,body:i,headers:l})},b={resolve:a,reject:g,timer:window.setTimeout(()=>{let v=this.#s[d];v&&(delete this.#s[d],v.reject("Timeout"))},r)};this.#s[d]=b,this.#r()?this.activateCommand(y):this.#p.push(y)})}activateCommand(e){this.#t?.send(JSON.stringify(e))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})};var f=class o{#o=c(null);config=this.#o.asReadonly();parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#e(),this.parentIframeListner=new AbortController,this.#n("connected"),window.addEventListener("message",e=>{if(e.data.startsWith("access:")){let t=e.data.replace("access:",""),n=JSON.parse(t);if(!n?.accessToken||!n?.clientId){this.#n("error:invalid-config");return}if(typeof n.clientId!="string"){this.#n("error:invalid-config");return}if(typeof n.accessToken!="string"){this.#n("error:invalid-config");return}console.info("postMessage config set"),this.#o.set(n)}},{signal:this.parentIframeListner.signal})}#n(e){window.parent.postMessage(e,"*")}#e(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(e){this.#o.set(e)}clearConfig(){this.#o.set(null)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})};function me(o){if(typeof o!="string")return null;let t=new TextEncoder().encode(o);return window.btoa(String.fromCharCode(...t))}var ae=(o,e)=>{let n=s(f).config(),p=s(m);if(n===null)return e(o);let i=s(T),l=me(o.body),r={};o.headers.keys().forEach(u=>{r[u]=o.headers.get(u)??""});let a=o.headers.get("timeout"),g=a!==null?parseInt(a):p.defaultTimeout,d=i.sendCommand(n.accessToken,n.clientId,o.method,o.url,l,r,g);return new x(u=>{d.then(y=>{let b=new K;r!=null&&Object.keys(r).forEach(N=>{b.set(N,r[N])});let v=new $({body:y.body,status:y.code,statusText:"OK",headers:b});u.next(v),u.complete()})})};var pe={providers:[D(),Q(re,X()),G(B(),z([ae,se])),S,{provide:m,useValue:ne},oe]};var k=class o{#o=s(S);#n=s(_);#e=s(f);sub=null;ngOnInit(){this.#e.fetchConfig(),this.sub=this.#n.queryParams.subscribe(({accessToken:e,clientId:t})=>{e?.length&&t?.length&&this.#e.setConfig({accessToken:e,clientId:t})}),this.#o.clearAllNotCurrentVersion()}ngOnDestroy(){this.sub?.unsubscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=F({type:o,selectors:[["app-root"]],standalone:!0,features:[U],decls:1,vars:0,template:function(t,n){t&1&&H(0,"router-outlet")},dependencies:[Z],encapsulation:2})};q(k,pe).catch(o=>console.error(o));
|
package/package.json
CHANGED
package/chunk-2EGLLTER.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-NAZLO3UY.js";import{B as a,D as u,F as i,O as r,R as n,X as l,Ya as s}from"./chunk-67JGZ4NF.js";var k=class p{#s=l(o);#p=null;#t=s([]);#e=s([]);#a=s(!1);#i=s(!1);#r=s(null);backups=this.#e.asReadonly();backupsLoading=this.#a.asReadonly();startingBackup=this.#i.asReadonly();deletingBackup=this.#r.asReadonly();draftBackups=this.#t.asReadonly();addDraftBackup(t){let e=crypto.randomUUID();return this.#t.set([...this.#t(),{id:e,data:t}]),e}removeDraftBackupById(t){this.#t.set(this.#t().filter(e=>e.id!==t))}getBackupById(t){return this.#e().find(e=>e.Backup?.ID===t)??null}getBackups(t=!1){let e=this.#p,c=Date.now(),d=e&&c-e<15*60*1e3;!1||!t&&d&&this.#e().length||(this.#p=c,this.#a.set(!0),this.#s.getApiV1Backups().pipe(a(1),u(1e3),r(B=>this.#e.set(B)),i(()=>this.#a.set(!1))).subscribe())}startBackup(t){this.#i.set(!0),this.#s.postApiV1BackupByIdStart({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#i.set(!1))).subscribe()}deleteBackup(t){this.#r.set(t),this.#s.deleteApiV1BackupById({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#r.set(null))).subscribe()}static \u0275fac=function(e){return new(e||p)};static \u0275prov=n({token:p,factory:p.\u0275fac,providedIn:"root"})};export{k as a};
|