@duplicati/ngclient 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/spk.woff2 +0 -0
- package/chunk-2LTGXEZS.js +1 -0
- package/{chunk-V7LHB36E.js → chunk-3B6RZWP4.js} +1 -1
- package/chunk-3DBUGAIF.js +1 -0
- package/chunk-3SP3MQEU.js +1 -0
- package/chunk-4OR2MBXM.js +1 -0
- package/{chunk-P4AWKIXG.js → chunk-6PJU5W5X.js} +1 -1
- package/chunk-74EYKZJR.js +1 -0
- package/chunk-7CGTOI24.js +1 -0
- package/chunk-7ROMUYYO.js +1 -0
- package/chunk-7YI4IDWY.js +1 -0
- package/chunk-7YM6RN2G.js +1 -0
- package/chunk-A2PI66LB.js +1 -0
- package/chunk-AVWHS36O.js +1 -0
- package/chunk-B42N6RQ3.js +1 -0
- package/{chunk-K4KGTWQK.js → chunk-BDBR5EDG.js} +1 -1
- package/{chunk-K3HFPUKT.js → chunk-BRVLVIBB.js} +1 -1
- package/chunk-CWAAKGM6.js +1 -0
- package/chunk-DNHLTHLR.js +1 -0
- package/chunk-ER25OIRY.js +1 -0
- package/chunk-HAOKXZHF.js +1 -0
- package/{chunk-TIGGJ4KF.js → chunk-ICCENBZO.js} +1 -1
- package/chunk-KLPRJO2S.js +1 -0
- package/chunk-MYQPVSUP.js +1 -0
- package/chunk-NGPWOMCW.js +8 -0
- package/chunk-NSHVJHI5.js +1 -0
- package/chunk-NVFX5EQI.js +1 -0
- package/{chunk-AVFON3HN.js → chunk-OI46JH74.js} +2 -2
- package/{chunk-5Y47Y3RB.js → chunk-Q3B3QVNE.js} +1 -1
- package/chunk-QROBYUJD.js +2 -0
- package/{chunk-JDCFQ6PF.js → chunk-QVTIOQU4.js} +1 -1
- package/{chunk-DMP4KFQP.js → chunk-RH5CENQ7.js} +1 -1
- package/chunk-RIVCLGIC.js +1 -0
- package/chunk-RK3NUMZK.js +1 -0
- package/chunk-RL7JYJ4S.js +1 -0
- package/chunk-S4UXVQU2.js +1 -0
- package/chunk-SS4RWMEQ.js +1 -0
- package/chunk-SWUZR64I.js +1 -0
- package/chunk-TXPM7OPP.js +1 -0
- package/chunk-VJK4WSMT.js +1 -0
- package/chunk-WH7DPJOS.js +1 -0
- package/chunk-WQPTWFXA.js +1 -0
- package/chunk-XYN4OGS4.js +1 -0
- package/chunk-ZBL4ZWSP.js +1 -0
- package/chunk-ZUISIMKR.js +1 -0
- package/chunk-ZUVMWAQY.js +1 -0
- package/index.html +2 -2
- package/main-RMFQXRTZ.js +1 -0
- package/package.json +1 -1
- package/styles-GLYEHLO7.css +1 -0
- package/chunk-2AXNYUNT.js +0 -2
- package/chunk-4KQ5PO6F.js +0 -1
- package/chunk-4W77W5ES.js +0 -1
- package/chunk-5FHN6XPA.js +0 -1
- package/chunk-5SGHSZAK.js +0 -1
- package/chunk-6XCCSABS.js +0 -1
- package/chunk-AFUS3PYG.js +0 -1
- package/chunk-BQJJKX7Q.js +0 -1
- package/chunk-C52YH32J.js +0 -1
- package/chunk-CHPE3R64.js +0 -1
- package/chunk-CMP3TWYX.js +0 -1
- package/chunk-H2IAZHJK.js +0 -1
- package/chunk-IYC3FMCU.js +0 -1
- package/chunk-JCO3FLHD.js +0 -1
- package/chunk-JZTRJKNF.js +0 -1
- package/chunk-KCVUEWQV.js +0 -1
- package/chunk-L4EVZZOM.js +0 -1
- package/chunk-LPWDGHUL.js +0 -1
- package/chunk-MVPI7URN.js +0 -1
- package/chunk-NN636EFZ.js +0 -1
- package/chunk-RBNO3K72.js +0 -8
- package/chunk-RUP4GIVS.js +0 -1
- package/chunk-S3XM5X3R.js +0 -1
- package/chunk-SYBUINNV.js +0 -1
- package/chunk-VG4KZKV3.js +0 -1
- package/chunk-VSPW7AWV.js +0 -1
- package/chunk-WU4K3UNC.js +0 -1
- package/chunk-X2SVHSJM.js +0 -1
- package/chunk-XJ2LABT6.js +0 -1
- package/chunk-ZL5O2DGZ.js +0 -1
- package/chunk-ZYCMR5VM.js +0 -1
- package/main-BZZ56FAH.js +0 -1
- package/styles-7MWOIMAV.css +0 -1
package/chunk-AFUS3PYG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as Nr}from"./chunk-L4EVZZOM.js";import{$ as jt,A as J,B as ft,C as ce,D as tt,E as or,G as Nt,H,I as le,J as ar,Jb as Tr,K as ur,L as cr,M as x,Ma as mr,N as lr,O as R,P as w,Pa as P,R as b,Ra as ge,Sa as yr,Sb as Or,T as hr,Tb as Er,U as $,Ub as Ur,V as he,Vb as xr,W as de,Wb as ve,X as g,Ya as Cr,Yb as kt,Z as dr,Za as Rr,_a as Sr,_b as _t,a as l,ab as wr,b as I,ba as fr,cc as Pr,d as er,da as $t,ea as k,f as rr,ga as Lt,h as se,hc as me,i as oe,ic as zt,j as B,k as D,ka as fe,la as pr,lb as br,m as V,ma as gr,n as T,o as f,oa as vr,p as dt,pa as et,q as nr,qb as Ir,r as ir,s as m,t as Pt,u as O,ua as pe,v as ae,w as sr,x as ue,xb as Ar,yb as Mr,z as X,zb as Dr}from"./chunk-RBNO3K72.js";var p="primary",Ot=Symbol("RouteTitle"),we=class{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function at(e){return new we(e)}function Rn(e,r,t){let n=t.path.split("/");if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.length<e.length))return null;let i={};for(let s=0;s<n.length;s++){let o=n[s],u=e[s];if(o[0]===":")i[o.substring(1)]=u;else if(o!==u.path)return null}return{consumed:e.slice(0,n.length),posParams:i}}function Sn(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!L(e[t],r[t]))return!1;return!0}function L(e,r){let t=e?be(e):void 0,n=r?be(r):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let s=0;s<t.length;s++)if(i=t[s],!Vr(e[i],r[i]))return!1;return!0}function be(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Vr(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;let t=[...e].sort(),n=[...r].sort();return t.every((i,s)=>n[s]===i)}else return e===r}function Hr(e){return e.length>0?e[e.length-1]:null}function W(e){return nr(e)?e:Er(e)?T(Promise.resolve(e)):f(e)}var wn={exact:Gr,subset:Qr},Wr={exact:bn,subset:In,ignored:()=>!0};function jr(e,r,t){return wn[t.paths](e.root,r.root,t.matrixParams)&&Wr[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function bn(e,r){return L(e,r)}function Gr(e,r,t){if(!Q(e.segments,r.segments)||!Bt(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!Gr(e.children[n],r.children[n],t))return!1;return!0}function In(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>Vr(e[t],r[t]))}function Qr(e,r,t){return Kr(e,r,r.segments,t)}function Kr(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!Q(i,t)||r.hasChildren()||!Bt(i,t,n))}else if(e.segments.length===t.length){if(!Q(e.segments,t)||!Bt(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!Qr(e.children[i],r.children[i],n))return!1;return!0}else{let i=t.slice(0,e.segments.length),s=t.slice(e.segments.length);return!Q(e.segments,i)||!Bt(e.segments,i,n)||!e.children[p]?!1:Kr(e.children[p],r,s,n)}}function Bt(e,r,t){return r.every((n,i)=>Wr[t](e[i].parameters,n.parameters))}var z=class{constructor(r=new v([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=at(this.queryParams),this._queryParamMap}toString(){return Dn.serialize(this)}},v=class{constructor(r,t){this.segments=r,this.children=t,this.parent=null,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vt(this)}},G=class{constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=at(this.parameters),this._parameterMap}toString(){return Yr(this)}};function An(e,r){return Q(e,r)&&e.every((t,n)=>L(t.parameters,r[n].parameters))}function Q(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function Mn(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===p&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==p&&(t=t.concat(r(i,n)))}),t}var Ke=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>new Rt,providedIn:"root"})}}return e})(),Rt=class{parse(r){let t=new Ae(r);return new z(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${pt(r.root,!0)}`,n=En(r.queryParams),i=typeof r.fragment=="string"?`#${Tn(r.fragment)}`:"";return`${t}${n}${i}`}},Dn=new Rt;function Vt(e){return e.segments.map(r=>Yr(r)).join("/")}function pt(e,r){if(!e.hasChildren())return Vt(e);if(r){let t=e.children[p]?pt(e.children[p],!1):"",n=[];return Object.entries(e.children).forEach(([i,s])=>{i!==p&&n.push(`${i}:${pt(s,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=Mn(e,(n,i)=>i===p?[pt(e.children[p],!1)]:[`${i}:${pt(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[p]!=null?`${Vt(e)}/${t[0]}`:`${Vt(e)}/(${t.join("//")})`}}function Zr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ft(e){return Zr(e).replace(/%3B/gi,";")}function Tn(e){return encodeURI(e)}function Ie(e){return Zr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ht(e){return decodeURIComponent(e)}function $r(e){return Ht(e.replace(/\+/g,"%20"))}function Yr(e){return`${Ie(e.path)}${On(e.parameters)}`}function On(e){return Object.entries(e).map(([r,t])=>`;${Ie(r)}=${Ie(t)}`).join("")}function En(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${Ft(t)}=${Ft(i)}`).join("&"):`${Ft(t)}=${Ft(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var Un=/^[^\/()?;#]+/;function ye(e){let r=e.match(Un);return r?r[0]:""}var xn=/^[^\/()?;=#]+/;function Pn(e){let r=e.match(xn);return r?r[0]:""}var Nn=/^[^=?&#]+/;function jn(e){let r=e.match(Nn);return r?r[0]:""}var $n=/^[^&#]+/;function Ln(e){let r=e.match($n);return r?r[0]:""}var Ae=class{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(t).length>0)&&(n[p]=new v(r,t)),n}parseSegment(){let r=ye(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new G(Ht(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=Pn(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=ye(this.remaining);i&&(n=i,this.capture(n))}r[Ht(t)]=Ht(n)}parseQueryParam(r){let t=jn(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let o=Ln(this.remaining);o&&(n=o,this.capture(n))}let i=$r(t),s=$r(n);if(r.hasOwnProperty(i)){let o=r[i];Array.isArray(o)||(o=[o],r[i]=o),o.push(s)}else r[i]=s}parseParens(r){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=ye(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=p);let o=this.parseChildren();t[s]=Object.keys(o).length===1?o[p]:new v([],o),this.consumeOptional("//")}return t}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new w(4011,!1)}};function Xr(e){return e.segments.length>0?new v([],{[p]:e}):e}function Jr(e){let r={};for(let[n,i]of Object.entries(e.children)){let s=Jr(i);if(n===p&&s.segments.length===0&&s.hasChildren())for(let[o,u]of Object.entries(s.children))r[o]=u;else(s.segments.length>0||s.hasChildren())&&(r[n]=s)}let t=new v(e.segments,r);return kn(t)}function kn(e){if(e.numberOfChildren===1&&e.children[p]){let r=e.children[p];return new v(e.segments.concat(r.segments),r.children)}return e}function K(e){return e instanceof z}function _n(e,r,t=null,n=null){let i=tn(e);return en(i,r,t,n)}function tn(e){let r;function t(s){let o={};for(let a of s.children){let c=t(a);o[a.outlet]=c}let u=new v(s.url,o);return s===e&&(r=u),u}let n=t(e.root),i=Xr(n);return r??i}function en(e,r,t,n){let i=e;for(;i.parent;)i=i.parent;if(r.length===0)return Ce(i,i,i,t,n);let s=zn(r);if(s.toRoot())return Ce(i,i,new v([],{}),t,n);let o=Fn(s,i,e),u=o.processChildren?mt(o.segmentGroup,o.index,s.commands):nn(o.segmentGroup,o.index,s.commands);return Ce(i,o.segmentGroup,u,t,n)}function Wt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function St(e){return typeof e=="object"&&e!=null&&e.outlets}function Ce(e,r,t,n,i){let s={};n&&Object.entries(n).forEach(([a,c])=>{s[a]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`});let o;e===r?o=t:o=rn(e,r,t);let u=Xr(Jr(o));return new z(u,s,i)}function rn(e,r,t){let n={};return Object.entries(e.children).forEach(([i,s])=>{s===r?n[i]=t:n[i]=rn(s,r,t)}),new v(e.segments,n)}var Gt=class{constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&Wt(n[0]))throw new w(4003,!1);let i=n.find(St);if(i&&i!==Hr(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function zn(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Gt(!0,0,e);let r=0,t=!1,n=e.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let u={};return Object.entries(s.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?t=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,s]},[]);return new Gt(t,r,n)}var it=class{constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function Fn(e,r,t){if(e.isAbsolute)return new it(r,!0,0);if(!t)return new it(r,!1,NaN);if(t.parent===null)return new it(t,!0,0);let n=Wt(e.commands[0])?0:1,i=t.segments.length-1+n;return qn(t,i,e.numberOfDoubleDots)}function qn(e,r,t){let n=e,i=r,s=t;for(;s>i;){if(s-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new it(n,!1,i-s)}function Bn(e){return St(e[0])?e[0].outlets:{[p]:e}}function nn(e,r,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return mt(e,r,t);let n=Vn(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let s=new v(e.segments.slice(0,n.pathIndex),{});return s.children[p]=new v(e.segments.slice(n.pathIndex),e.children),mt(s,0,i)}else return n.match&&i.length===0?new v(e.segments,{}):n.match&&!e.hasChildren()?Me(e,r,t):n.match?mt(e,0,i):Me(e,r,t)}function mt(e,r,t){if(t.length===0)return new v(e.segments,{});{let n=Bn(t),i={};if(Object.keys(n).some(s=>s!==p)&&e.children[p]&&e.numberOfChildren===1&&e.children[p].segments.length===0){let s=mt(e.children[p],r,t);return new v(e.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=nn(e.children[s],r,o))}),Object.entries(e.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new v(e.segments,i)}}function Vn(e,r,t){let n=0,i=r,s={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return s;let o=e.segments[i],u=t[n];if(St(u))break;let a=`${u}`,c=n<t.length-1?t[n+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!kr(a,c,o))return s;n+=2}else{if(!kr(a,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Me(e,r,t){let n=e.segments.slice(0,r),i=0;for(;i<t.length;){let s=t[i];if(St(s)){let a=Hn(s.outlets);return new v(n,a)}if(i===0&&Wt(t[0])){let a=e.segments[r];n.push(new G(a.path,Lr(t[0]))),i++;continue}let o=St(s)?s.outlets[p]:`${s}`,u=i<t.length-1?t[i+1]:null;o&&u&&Wt(u)?(n.push(new G(o,Lr(u))),i+=2):(n.push(new G(o,{})),i++)}return new v(n,{})}function Hn(e){let r={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=Me(new v([],{}),0,n))}),r}function Lr(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function kr(e,r,t){return e==t.path&&L(r,t.parameters)}var yt="imperative",C=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(C||{}),E=class{constructor(r,t){this.id=r,this.url=t}},wt=class extends E{constructor(r,t,n="imperative",i=null){super(r,t),this.type=C.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},F=class extends E{constructor(r,t,n){super(r,t),this.urlAfterRedirects=n,this.type=C.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},M=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(M||{}),De=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(De||{}),_=class extends E{constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i,this.type=C.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Z=class extends E{constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i,this.type=C.NavigationSkipped}},bt=class extends E{constructor(r,t,n,i){super(r,t),this.error=n,this.target=i,this.type=C.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Qt=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Te=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Oe=class extends E{constructor(r,t,n,i,s){super(r,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s,this.type=C.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ee=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ue=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xe=class{constructor(r){this.route=r,this.type=C.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Pe=class{constructor(r){this.route=r,this.type=C.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ne=class{constructor(r){this.snapshot=r,this.type=C.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},je=class{constructor(r){this.snapshot=r,this.type=C.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$e=class{constructor(r){this.snapshot=r,this.type=C.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Le=class{constructor(r){this.snapshot=r,this.type=C.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var It=class{},ut=class{constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function Wn(e,r){return e.providers&&!e._injector&&(e._injector=Sr(e.providers,r,`Route: ${e.path}`)),e._injector??r}function N(e){return e.outlet||p}function Gn(e,r){let t=e.filter(n=>N(n)===r);return t.push(...e.filter(n=>N(n)!==r)),t}function Et(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let r=e.parent;r;r=r.parent){let t=r.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var ke=class{get injector(){return Et(this.route?.snapshot)??this.rootInjector}set injector(r){}constructor(r){this.rootInjector=r,this.outlet=null,this.route=null,this.children=new ee(this.rootInjector),this.attachRef=null}},ee=(()=>{class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new ke(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static{this.\u0275fac=function(n){return new(n||e)(de($t))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Kt=class{constructor(r){this._root=r}get root(){return this._root.value}parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=_e(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=_e(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=ze(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return ze(r,this._root).map(t=>t.value)}};function _e(e,r){if(e===r.value)return r;for(let t of r.children){let n=_e(e,t);if(n)return n}return null}function ze(e,r){if(e===r.value)return[r];for(let t of r.children){let n=ze(e,t);if(n.length)return n.unshift(r),n}return[]}var A=class{constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function nt(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Zt=class extends Kt{constructor(r,t){super(r),this.snapshot=t,Ze(this,r)}toString(){return this.snapshot.toString()}};function sn(e){let r=Qn(e),t=new D([new G("",{})]),n=new D({}),i=new D({}),s=new D({}),o=new D(""),u=new Y(t,n,s,o,i,p,e,r.root);return u.snapshot=r.root,new Zt(new A(u,[]),r)}function Qn(e){let r={},t={},n={},i="",s=new st([],r,n,i,t,p,e,null,{});return new Xt("",new A(s,[]))}var Y=class{constructor(r,t,n,i,s,o,u,a){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[Ot]))??f(void 0),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(m(r=>at(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(r=>at(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Yt(e,r,t="emptyOnly"){let n,{routeConfig:i}=e;return r!==null&&(t==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:l(l({},r.params),e.params),data:l(l({},r.data),e.data),resolve:l(l(l(l({},e.data),r.data),i?.data),e._resolvedData)}:n={params:l({},e.params),data:l({},e.data),resolve:l(l({},e.data),e._resolvedData??{})},i&&an(i)&&(n.resolve[Ot]=i.title),n}var st=class{get title(){return this.data?.[Ot]}constructor(r,t,n,i,s,o,u,a,c){this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=u,this.routeConfig=a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=at(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=at(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},Xt=class extends Kt{constructor(r,t){super(t),this.url=r,Ze(this,t)}toString(){return on(this._root)}};function Ze(e,r){r.value._routerState=e,r.children.forEach(t=>Ze(e,t))}function on(e){let r=e.children.length>0?` { ${e.children.map(on).join(", ")} } `:"";return`${e.value}${r}`}function Re(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,L(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),L(r.params,t.params)||e.paramsSubject.next(t.params),Sn(r.url,t.url)||e.urlSubject.next(t.url),L(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Fe(e,r){let t=L(e.params,r.params)&&An(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||Fe(e.parent,r.parent))}function an(e){return typeof e.title=="string"||e.title===null}var Kn=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=p,this.activateEvents=new et,this.deactivateEvents=new et,this.attachEvents=new et,this.detachEvents=new et,this.parentContexts=g(ee),this.location=g(yr),this.changeDetector=g(kt),this.inputBinder=g(re,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=t;let i=this.location,o=t.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new qe(t,u,i.injector);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=jt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Lt]})}}return e})(),qe=class e{__ngOutletInjector(r){return new e(this.route,this.childContexts,r)}constructor(r,t,n){this.route=r,this.childContexts=t,this.parent=n}get(r,t){return r===Y?this.route:r===ee?this.childContexts:this.parent.get(r,t)}},re=new $(""),_r=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=Pt([n.queryParams,n.params,n.data]).pipe(x(([s,o,u],a)=>(u=l(l(l({},s),o),u),a===0?f(u):Promise.resolve(u)))).subscribe(s=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let o=Pr(n.component);if(!o){this.unsubscribeFromRouteData(t);return}for(let{templateName:u}of o.inputs)t.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(t,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})();function Zn(e,r,t){let n=At(e,r._root,t?t._root:void 0);return new Zt(n,r)}function At(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=Yn(e,r,t);return new A(n,i)}else{if(e.shouldAttach(r.value)){let s=e.retrieve(r.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=r.value,o.children=r.children.map(u=>At(e,u)),o}}let n=Xn(r.value),i=r.children.map(s=>At(e,s));return new A(n,i)}}function Yn(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return At(e,n,i);return At(e,n)})}function Xn(e){return new Y(new D(e.url),new D(e.params),new D(e.queryParams),new D(e.fragment),new D(e.data),e.outlet,e.component,e)}var Mt=class{constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},un="ngNavigationCancelingError";function Jt(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=K(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=cn(!1,M.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function cn(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[un]=!0,t.cancellationCode=r,t}function Jn(e){return ln(e)&&K(e.url)}function ln(e){return!!e&&e[un]}var ti=(e,r,t,n)=>m(i=>(new Be(r,i.targetRouterState,i.currentRouterState,t,n).activate(e),i)),Be=class{constructor(r,t,n,i,s){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),Re(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let i=nt(t);r.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(r,t,n){let i=r.value,s=t?t.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(r,t,o.children)}else this.deactivateChildRoutes(r,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,s=nt(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:o,route:r,contexts:u})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,s=nt(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let i=nt(t);r.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Le(s.value.snapshot))}),r.children.length&&this.forwardEvent(new je(r.value.snapshot))}activateRoutes(r,t,n){let i=r.value,s=t?t.value:null;if(Re(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,o.children)}else this.activateChildRoutes(r,t,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),Re(u.route.value),this.activateChildRoutes(r,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(r,null,o.children)}else this.activateChildRoutes(r,null,n)}},te=class{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ot=class{constructor(r,t){this.component=r,this.route=t}};function ei(e,r,t){let n=e._root,i=r?r._root:null;return gt(n,i,t,[n.value])}function ri(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function lt(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!hr(e)?e:r.get(e):n}function gt(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=nt(r);return e.children.forEach(o=>{ni(o,s[o.value.outlet],t,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,u])=>Ct(u,t.getContext(o),i)),i}function ni(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=r?r.value:null,u=t?t.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=ii(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new te(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?gt(e,r,u?u.children:null,n,i):gt(e,r,t,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new ot(u.outlet.component,o))}else o&&Ct(r,u,i),i.canActivateChecks.push(new te(n)),s.component?gt(e,null,u?u.children:null,n,i):gt(e,null,t,n,i);return i}function ii(e,r,t){if(typeof t=="function")return t(e,r);switch(t){case"pathParamsChange":return!Q(e.url,r.url);case"pathParamsOrQueryParamsChange":return!Q(e.url,r.url)||!L(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fe(e,r)||!L(e.queryParams,r.queryParams);case"paramsChange":default:return!Fe(e,r)}}function Ct(e,r,t){let n=nt(e),i=e.value;Object.entries(n).forEach(([s,o])=>{i.component?r?Ct(o,r.children.getContext(s),t):Ct(o,null,t):Ct(o,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new ot(r.outlet.component,i)):t.canDeactivateChecks.push(new ot(null,i)):t.canDeactivateChecks.push(new ot(null,i))}function Ut(e){return typeof e=="function"}function si(e){return typeof e=="boolean"}function oi(e){return e&&Ut(e.canLoad)}function ai(e){return e&&Ut(e.canActivate)}function ui(e){return e&&Ut(e.canActivateChild)}function ci(e){return e&&Ut(e.canDeactivate)}function li(e){return e&&Ut(e.canMatch)}function hn(e){return e instanceof ir||e?.name==="EmptyError"}var qt=Symbol("INITIAL_VALUE");function ct(){return x(e=>Pt(e.map(r=>r.pipe(tt(1),cr(qt)))).pipe(m(r=>{for(let t of r)if(t!==!0){if(t===qt)return qt;if(t===!1||hi(t))return t}return!0}),X(r=>r!==qt),tt(1)))}function hi(e){return K(e)||e instanceof Mt}function di(e,r){return O(t=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=t;return o.length===0&&s.length===0?f(I(l({},t),{guardsResult:!0})):fi(o,n,i,e).pipe(O(u=>u&&si(u)?pi(n,s,e,r):f(u)),m(u=>I(l({},t),{guardsResult:u})))})}function fi(e,r,t,n){return T(e).pipe(O(i=>Ci(i.component,i.route,t,r,n)),H(i=>i!==!0,!0))}function pi(e,r,t,n){return T(r).pipe(ft(i=>sr(vi(i.route.parent,n),gi(i.route,n),yi(e,i.path,t),mi(e,i.route,t))),H(i=>i!==!0,!0))}function gi(e,r){return e!==null&&r&&r(new $e(e)),f(!0)}function vi(e,r){return e!==null&&r&&r(new Ne(e)),f(!0)}function mi(e,r,t){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(s=>ue(()=>{let o=Et(r)??t,u=lt(s,o),a=ai(u)?u.canActivate(r,e):k(o,()=>u(r,e));return W(a).pipe(H())}));return f(i).pipe(ct())}function yi(e,r,t){let n=r[r.length-1],s=r.slice(0,r.length-1).reverse().map(o=>ri(o)).filter(o=>o!==null).map(o=>ue(()=>{let u=o.guards.map(a=>{let c=Et(o.node)??t,h=lt(a,c),d=ui(h)?h.canActivateChild(n,e):k(c,()=>h(n,e));return W(d).pipe(H())});return f(u).pipe(ct())}));return f(s).pipe(ct())}function Ci(e,r,t,n,i){let s=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(u=>{let a=Et(r)??i,c=lt(u,a),h=ci(c)?c.canDeactivate(e,r,t,n):k(a,()=>c(e,r,t,n));return W(h).pipe(H())});return f(o).pipe(ct())}function Ri(e,r,t,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let s=i.map(o=>{let u=lt(o,e),a=oi(u)?u.canLoad(r,t):k(e,()=>u(r,t));return W(a)});return f(s).pipe(ct(),dn(n))}function dn(e){return rr(R(r=>{if(typeof r!="boolean")throw Jt(e,r)}),m(r=>r===!0))}function Si(e,r,t,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let s=i.map(o=>{let u=lt(o,e),a=li(u)?u.canMatch(r,t):k(e,()=>u(r,t));return W(a)});return f(s).pipe(ct(),dn(n))}var Dt=class{constructor(r){this.segmentGroup=r||null}},Tt=class extends Error{constructor(r){super(),this.urlTree=r}};function rt(e){return dt(new Dt(e))}function wi(e){return dt(new w(4e3,!1))}function bi(e){return dt(cn(!1,M.GuardRejected))}var Ve=class{constructor(r,t){this.urlSerializer=r,this.urlTree=t}lineralizeSegments(r,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return f(n);if(i.numberOfChildren>1||!i.children[p])return wi(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,t,n,i,s){if(typeof t!="string"){let u=t,{queryParams:a,fragment:c,routeConfig:h,url:d,outlet:y,params:j,data:S,title:q}=i,U=k(s,()=>u({params:j,data:S,queryParams:a,fragment:c,routeConfig:h,url:d,outlet:y,title:q}));if(U instanceof z)throw new Tt(U);t=U}let o=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),r,n);if(t[0]==="/")throw new Tt(o);return o}applyRedirectCreateUrlTree(r,t,n,i){let s=this.createSegmentGroup(r,t.root,n,i);return new z(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let u=s.substring(1);n[i]=t[u]}else n[i]=s}),n}createSegmentGroup(r,t,n,i){let s=this.createSegments(r,t.segments,n,i),o={};return Object.entries(t.children).forEach(([u,a])=>{o[u]=this.createSegmentGroup(r,a,n,i)}),new v(s,o)}createSegments(r,t,n,i){return t.map(s=>s.path[0]===":"?this.findPosParam(r,s,i):this.findOrReturn(s,n))}findPosParam(r,t,n){let i=n[t.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,t){let n=0;for(let i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}},He={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ii(e,r,t,n,i){let s=fn(e,r,t);return s.matched?(n=Wn(r,n),Si(n,r,t,i).pipe(m(o=>o===!0?s:l({},He)))):f(s)}function fn(e,r,t){if(r.path==="**")return Ai(t);if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?l({},He):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Rn)(t,e,r);if(!i)return l({},He);let s={};Object.entries(i.posParams??{}).forEach(([u,a])=>{s[u]=a.path});let o=i.consumed.length>0?l(l({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function Ai(e){return{matched:!0,parameters:e.length>0?Hr(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function zr(e,r,t,n){return t.length>0&&Ti(e,t,n)?{segmentGroup:new v(r,Di(n,new v(t,e.children))),slicedSegments:[]}:t.length===0&&Oi(e,t,n)?{segmentGroup:new v(e.segments,Mi(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function Mi(e,r,t,n){let i={};for(let s of t)if(ne(e,r,s)&&!n[N(s)]){let o=new v([],{});i[N(s)]=o}return l(l({},n),i)}function Di(e,r){let t={};t[p]=r;for(let n of e)if(n.path===""&&N(n)!==p){let i=new v([],{});t[N(n)]=i}return t}function Ti(e,r,t){return t.some(n=>ne(e,r,n)&&N(n)!==p)}function Oi(e,r,t){return t.some(n=>ne(e,r,n))}function ne(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Ei(e,r,t){return r.length===0&&!e.children[t]}var We=class{};function Ui(e,r,t,n,i,s,o="emptyOnly"){return new Ge(e,r,t,n,i,o,s).recognize()}var xi=31,Ge=class{constructor(r,t,n,i,s,o,u){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=u,this.applyRedirects=new Ve(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}recognize(){let r=zr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(m(({children:t,rootSnapshot:n})=>{let i=new A(n,t),s=new Xt("",i),o=_n(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(r){let t=new st([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,t).pipe(m(n=>({children:n,rootSnapshot:t})),J(n=>{if(n instanceof Tt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Dt?this.noMatchError(n):n}))}processSegmentGroup(r,t,n,i,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,t,n,s):this.processSegment(r,t,n,n.segments,i,!0,s).pipe(m(o=>o instanceof A?[o]:[]))}processChildren(r,t,n,i){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return T(s).pipe(ft(o=>{let u=n.children[o],a=Gn(t,o);return this.processSegmentGroup(r,a,u,o,i)}),ur((o,u)=>(o.push(...u),o)),ce(null),ar(),O(o=>{if(o===null)return rt(n);let u=pn(o);return Pi(u),f(u)}))}processSegment(r,t,n,i,s,o,u){return T(t).pipe(ft(a=>this.processSegmentAgainstRoute(a._injector??r,t,a,n,i,s,o,u).pipe(J(c=>{if(c instanceof Dt)return f(null);throw c}))),H(a=>!!a),J(a=>{if(hn(a))return Ei(n,i,s)?f(new We):rt(n);throw a}))}processSegmentAgainstRoute(r,t,n,i,s,o,u,a){return N(n)!==o&&(o===p||!ne(i,s,n))?rt(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,s,o,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,t,n,s,o,a):rt(i)}expandSegmentAgainstRouteUsingRedirect(r,t,n,i,s,o,u){let{matched:a,parameters:c,consumedSegments:h,positionalParamSegments:d,remainingSegments:y}=fn(t,i,s);if(!a)return rt(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xi&&(this.allowRedirects=!1));let j=new st(s,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Fr(i),N(i),i.component??i._loadedComponent??null,i,qr(i)),S=Yt(j,u,this.paramsInheritanceStrategy);j.params=Object.freeze(S.params),j.data=Object.freeze(S.data);let q=this.applyRedirects.applyRedirectCommands(h,i.redirectTo,d,j,r);return this.applyRedirects.lineralizeSegments(i,q).pipe(O(U=>this.processSegment(r,n,t,U.concat(y),o,!1,u)))}matchSegmentAgainstRoute(r,t,n,i,s,o){let u=Ii(t,n,i,r,this.urlSerializer);return n.path==="**"&&(t.children={}),u.pipe(x(a=>a.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:c})=>{let h=n._loadedInjector??r,{parameters:d,consumedSegments:y,remainingSegments:j}=a,S=new st(y,d,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Fr(n),N(n),n.component??n._loadedComponent??null,n,qr(n)),q=Yt(S,o,this.paramsInheritanceStrategy);S.params=Object.freeze(q.params),S.data=Object.freeze(q.data);let{segmentGroup:U,slicedSegments:ht}=zr(t,y,j,c);if(ht.length===0&&U.hasChildren())return this.processChildren(h,c,U,S).pipe(m(xt=>new A(S,xt)));if(c.length===0&&ht.length===0)return f(new A(S,[]));let Cn=N(n)===s;return this.processSegment(h,c,U,ht,Cn?p:s,!0,S).pipe(m(xt=>new A(S,xt instanceof A?[xt]:[])))}))):rt(t)))}getChildConfig(r,t,n){return t.children?f({routes:t.children,injector:r}):t.loadChildren?t._loadedRoutes!==void 0?f({routes:t._loadedRoutes,injector:t._loadedInjector}):Ri(r,t,n,this.urlSerializer).pipe(O(i=>i?this.configLoader.loadChildren(r,t).pipe(R(s=>{t._loadedRoutes=s.routes,t._loadedInjector=s.injector})):bi(t))):f({routes:[],injector:r})}};function Pi(e){e.sort((r,t)=>r.value.outlet===p?-1:t.value.outlet===p?1:r.value.outlet.localeCompare(t.value.outlet))}function Ni(e){let r=e.value.routeConfig;return r&&r.path===""}function pn(e){let r=[],t=new Set;for(let n of e){if(!Ni(n)){r.push(n);continue}let i=r.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):r.push(n)}for(let n of t){let i=pn(n.children);r.push(new A(n.value,i))}return r.filter(n=>!t.has(n))}function Fr(e){return e.data||{}}function qr(e){return e.resolve||{}}function ji(e,r,t,n,i,s){return O(o=>Ui(e,r,t,n,o.extractedUrl,i,s).pipe(m(({state:u,tree:a})=>I(l({},o),{targetSnapshot:u,urlAfterRedirects:a}))))}function $i(e,r){return O(t=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=t;if(!i.length)return f(t);let s=new Set(i.map(a=>a.route)),o=new Set;for(let a of s)if(!o.has(a))for(let c of gn(a))o.add(c);let u=0;return T(o).pipe(ft(a=>s.has(a)?Li(a,n,e,r):(a.data=Yt(a,a.parent,e).resolve,f(void 0))),R(()=>u++),le(1),O(a=>u===o.size?f(t):V))})}function gn(e){let r=e.children.map(t=>gn(t)).flat();return[e,...r]}function Li(e,r,t,n){let i=e.routeConfig,s=e._resolve;return i?.title!==void 0&&!an(i)&&(s[Ot]=i.title),ki(s,e,r,n).pipe(m(o=>(e._resolvedData=o,e.data=Yt(e,e.parent,t).resolve,null)))}function ki(e,r,t,n){let i=be(e);if(i.length===0)return f({});let s={};return T(i).pipe(O(o=>_i(e[o],r,t,n).pipe(H(),R(u=>{if(u instanceof Mt)throw Jt(new Rt,u);s[o]=u}))),le(1),or(s),J(o=>hn(o)?V:dt(o)))}function _i(e,r,t,n){let i=Et(r)??n,s=lt(e,i),o=s.resolve?s.resolve(r,t):k(i,()=>s(r,t));return W(o)}function Se(e){return x(r=>{let t=e(r);return t?T(t).pipe(m(()=>r)):f(r)})}var vn=(()=>{class e{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(s=>s.outlet===p);return n}getResolvedTitleForRoute(t){return t.data[Ot]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(zi),providedIn:"root"})}}return e})(),zi=(()=>{class e extends vn{constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static{this.\u0275fac=function(n){return new(n||e)(de(Nr))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ye=new $("",{providedIn:"root",factory:()=>({})}),Fi=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=dr({type:e,selectors:[["ng-component"]],standalone:!0,features:[Tr],decls:1,vars:0,template:function(n,i){n&1&&br(0,"router-outlet")},dependencies:[Kn],encapsulation:2})}}return e})();function Xe(e){let r=e.children&&e.children.map(Xe),t=r?I(l({},e),{children:r}):l({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==p&&(t.component=Fi),t}var Je=new $(""),qi=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(ve)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return f(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=W(t.loadComponent()).pipe(m(mn),R(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),Nt(()=>{this.componentLoaders.delete(t)})),i=new oe(n,()=>new B).pipe(se());return this.componentLoaders.set(t,i),i}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=Bi(n,this.compiler,t,this.onLoadEndListener).pipe(Nt(()=>{this.childrenLoaders.delete(n)})),o=new oe(s,()=>new B).pipe(se());return this.childrenLoaders.set(n,o),o}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Bi(e,r,t,n){return W(e.loadChildren()).pipe(m(mn),O(i=>i instanceof Rr||Array.isArray(i)?f(i):T(r.compileModuleAsync(i))),m(i=>{n&&n(e);let s,o,u=!1;return Array.isArray(i)?(o=i,u=!0):(s=i.create(t).injector,o=s.get(Je,[],{optional:!0,self:!0}).flat()),{routes:o.map(Xe),injector:s}}))}function Vi(e){return e&&typeof e=="object"&&"default"in e}function mn(e){return Vi(e)?e.default:e}var tr=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Hi),providedIn:"root"})}}return e})(),Hi=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Wi=new $("");var Gi=new $(""),Qi=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new B,this.transitionAbortSubject=new B,this.configLoader=g(qi),this.environmentInjector=g($t),this.urlSerializer=g(Ke),this.rootContexts=g(ee),this.location=g(zt),this.inputBindingEnabled=g(re,{optional:!0})!==null,this.titleStrategy=g(vn),this.options=g(Ye,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(tr),this.createViewTransition=g(Wi,{optional:!0}),this.navigationErrorHandler=g(Gi,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let t=i=>this.events.next(new xe(i)),n=i=>this.events.next(new Pe(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;this.transitions?.next(I(l(l({},this.transitions.value),t),{id:n}))}setupNavigations(t,n,i){return this.transitions=new D({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:yt,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(s=>s.id!==0),m(s=>I(l({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),x(s=>{let o=!1,u=!1;return f(s).pipe(x(a=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",M.SupersededByNewNavigation),V;this.currentTransition=s,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?I(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&h!=="reload"){let d="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.rawUrl),d,De.IgnoredSameUrlNavigation)),a.resolve(!1),V}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(x(d=>{let y=this.transitions?.getValue();return this.events.next(new wt(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),y!==this.transitions?.getValue()?V:Promise.resolve(d)}),ji(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),R(d=>{s.targetSnapshot=d.targetSnapshot,s.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=I(l({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let y=new Qt(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:y,source:j,restoredState:S,extras:q}=a,U=new wt(d,this.urlSerializer.serialize(y),j,S);this.events.next(U);let ht=sn(this.rootComponentType).snapshot;return this.currentTransition=s=I(l({},a),{targetSnapshot:ht,urlAfterRedirects:y,extras:I(l({},q),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(s)}else{let d="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.extractedUrl),d,De.IgnoredByUrlHandlingStrategy)),a.resolve(!1),V}}),R(a=>{let c=new Te(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=s=I(l({},a),{guards:ei(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),di(this.environmentInjector,a=>this.events.next(a)),R(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Jt(this.urlSerializer,a.guardsResult);let c=new Oe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",M.GuardRejected),!1)),Se(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(R(c=>{let h=new Ee(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),x(c=>{let h=!1;return f(c).pipe($i(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",M.NoDataFromResolver)}}))}),R(c=>{let h=new Ue(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),Se(a=>{let c=h=>{let d=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(h.routeConfig).pipe(R(y=>{h.component=y}),m(()=>{})));for(let y of h.children)d.push(...c(y));return d};return Pt(c(a.targetSnapshot.root)).pipe(ce(null),tt(1))}),Se(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:a,targetSnapshot:c}=s,h=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return h?T(h).pipe(m(()=>s)):f(s)}),m(a=>{let c=Zn(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=I(l({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),R(()=>{this.events.next(new It)}),ti(this.rootContexts,t.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),tt(1),R({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new F(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),lr(this.transitionAbortSubject.pipe(R(a=>{throw a}))),Nt(()=>{!o&&!u&&this.cancelNavigationTransition(s,"",M.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(u=!0,ln(a))this.events.next(new _(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),Jn(a)?this.events.next(new ut(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let c=new bt(s.id,this.urlSerializer.serialize(s.extractedUrl),a,s.targetSnapshot??void 0);try{let h=k(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(h instanceof Mt){let{message:d,cancellationCode:y}=Jt(this.urlSerializer,h);this.events.next(new _(s.id,this.urlSerializer.serialize(s.extractedUrl),d,y)),this.events.next(new ut(h.redirectTo,h.navigationBehaviorOptions))}else{this.events.next(c);let d=t.errorHandler(a);s.resolve(!!d)}}catch(h){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(h)}}return V}))}))}cancelNavigationTransition(t,n,i){let s=new _(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(s),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ki(e){return e!==yt}var Zi=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Yi),providedIn:"root"})}}return e})(),Qe=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}},Yi=(()=>{class e extends Qe{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fe(e)))(i||e)}})()}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),yn=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Xi),providedIn:"root"})}}return e})(),Xi=(()=>{class e extends yn{constructor(){super(...arguments),this.location=g(zt),this.urlSerializer=g(Ke),this.options=g(Ye,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(tr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new z,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=sn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&t(n.url,n.state)})}handleRouterEvent(t,n){if(t instanceof wt)this.stateMemento=this.createStateMemento();else if(t instanceof Z)this.rawUrlTree=n.initialUrl;else if(t instanceof Qt){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??i,n)}}else t instanceof It?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):t instanceof _&&(t.code===M.GuardRejected||t.code===M.NoDataFromResolver)?this.restoreHistory(n):t instanceof bt?this.restoreHistory(n,!0):t instanceof F&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,n){let i=t instanceof z?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let s=this.browserPageId,o=l(l({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(i,"",o)}else{let s=l(l({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===t.finalUrl&&s===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fe(e)))(i||e)}})()}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vt=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(vt||{});function Ji(e,r){e.events.pipe(X(t=>t instanceof F||t instanceof _||t instanceof bt||t instanceof Z),m(t=>t instanceof F||t instanceof Z?vt.COMPLETE:(t instanceof _?t.code===M.Redirect||t.code===M.SupersededByNewNavigation:!1)?vt.REDIRECTING:vt.FAILED),X(t=>t!==vt.REDIRECTING),tt(1)).subscribe(()=>{r()})}function ts(e){throw e}var es={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},rs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ie=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(Or),this.stateManager=g(yn),this.options=g(Ye,{optional:!0})||{},this.pendingTasks=g(vr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(Qi),this.urlSerializer=g(Ke),this.location=g(zt),this.urlHandlingStrategy=g(tr),this._events=new B,this.errorHandler=this.options.errorHandler||ts,this.navigated=!1,this.routeReuseStrategy=g(Zi),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(Je,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(re,{optional:!0}),this.eventsSubscription=new er,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(n,s),n instanceof _&&n.code!==M.Redirect&&n.code!==M.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof F)this.navigated=!0;else if(n instanceof ut){let o=n.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),a=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Ki(i.source)},o);this.scheduleNavigation(u,yt,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}is(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),yt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",n)},0)})}navigateToSyncWithBrowser(t,n,i){let s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){let a=l({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(s.state=a)}let u=this.parseUrl(t);this.scheduleNavigation(u,n,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Xe),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:u,preserveFragment:a}=n,c=a?this.currentUrlTree.fragment:o,h=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":h=l(l({},this.currentUrlTree.queryParams),s);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=s||null}h!==null&&(h=this.removeEmptyProps(h));let d;try{let y=i?i.snapshot:this.routerState.snapshot.root;d=tn(y)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),d=this.currentUrlTree.root}return en(d,t,h,c??null)}navigateByUrl(t,n={skipLocationChange:!1}){let i=K(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,yt,null,n)}navigate(t,n={skipLocationChange:!1}){return ns(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=l({},es):n===!1?i=l({},rs):i=n,K(t))return jr(this.currentUrlTree,t,i);let s=this.parseUrl(t);return jr(this.currentUrlTree,s,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,s])=>(s!=null&&(n[i]=s),n),{})}scheduleNavigation(t,n,i,s,o){if(this.disposed)return Promise.resolve(!1);let u,a,c;o?(u=o.resolve,a=o.reject,c=o.promise):c=new Promise((d,y)=>{u=d,a=y});let h=this.pendingTasks.add();return Ji(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:s,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ns(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new w(4008,!1)}function is(e){return!(e instanceof It)&&!(e instanceof ut)}var Br=(()=>{class e{constructor(t,n,i,s,o,u){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=u,this.href=null,this.onChanges=new B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let a=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof F&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(K(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,s,o){let u=this.urlTree;if(u===null||this.isAnchorElement&&(t!==0||n||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let n=this.href===null?null:mr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(t,n){let i=this.renderer,s=this.el.nativeElement;n!==null?i.setAttribute(s,t,n):i.removeAttribute(s,t)}get urlTree(){return this.routerLinkInput===null?null:K(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(n){return new(n||e)(P(ie),P(Y),pr("tabindex"),P(ge),P(pe),P(me))}}static{this.\u0275dir=jt({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Ir("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),n&2&&wr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",_t],skipLocationChange:[2,"skipLocationChange","skipLocationChange",_t],replaceUrl:[2,"replaceUrl","replaceUrl",_t],routerLink:"routerLink"},standalone:!0,features:[Cr,Lt]})}}return e})(),Qs=(()=>{class e{get isActive(){return this._isActive}constructor(t,n,i,s,o){this.router=t,this.element=n,this.renderer=i,this.cdr=s,this.link=o,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new et,this.routerEventsSubscription=t.events.subscribe(u=>{u instanceof F&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(ae()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=T(t).pipe(ae()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(t){let n=Array.isArray(t)?t:t.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(n=>{t?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let n=ss(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?t.isActive(s,n):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static{this.\u0275fac=function(n){return new(n||e)(P(ie),P(pe),P(ge),P(kt),P(Br,8))}}static{this.\u0275dir=jt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,s){if(n&1&&Ar(s,Br,5),n&2){let o;Mr(o=Dr())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Lt]})}}return e})();function ss(e){return!!e.paths}var os=new $("");function Ks(e,...r){return fr([{provide:Je,multi:!0,useValue:e},[],{provide:Y,useFactory:as,deps:[ie]},{provide:Ur,multi:!0,useFactory:cs},r.map(t=>t.\u0275providers)])}function as(e){return e.routerState.root}function us(e,r){return{\u0275kind:e,\u0275providers:r}}function cs(){let e=g(gr);return r=>{let t=e.get(xr);if(r!==t.components[0])return;let n=e.get(ie),i=e.get(ls);e.get(hs)===1&&n.initialNavigation(),e.get(ds,null,he.Optional)?.setUpPreloading(),e.get(os,null,he.Optional)?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ls=new $("",{factory:()=>new B}),hs=new $("",{providedIn:"root",factory:()=>1});var ds=new $("");function Zs(){return us(8,[_r,{provide:re,useExisting:_r}])}export{Y as a,Kn as b,ie as c,Br as d,Qs as e,Ks as f,Zs as g};
|
package/chunk-BQJJKX7Q.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as a,h as b,i as c}from"./chunk-JZTRJKNF.js";import"./chunk-CHPE3R64.js";import"./chunk-P4AWKIXG.js";import"./chunk-C52YH32J.js";import"./chunk-TIGGJ4KF.js";import"./chunk-KCVUEWQV.js";import"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import"./chunk-SYBUINNV.js";import"./chunk-RBNO3K72.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
|
package/chunk-C52YH32J.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as l,$b as O,Ib as p,P as j,Pa as o,Q as f,R as ie,Ra as A,S as B,Tb as Ve,U as C,Ua as N,X as ye,Xa as u,_ as U,a as c,ac as m,b as h,db as re,dc as se,ga as ne,j as ge,ka as V,ma as Ce,n as me,pa as S,qb as g,s as _e,ua as b,y as ve}from"./chunk-RBNO3K72.js";var Oe=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(n){return new(n||i)(o(A),o(b))}}static{this.\u0275dir=l({type:i})}}return i})(),I=(()=>{class i extends Oe{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})(),D=new C(""),st={provide:D,useExisting:f(()=>ot),multi:!0},ot=(()=>{class i extends I{writeValue(e){this.setProperty("checked",e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[p([st]),u]})}}return i})(),at={provide:D,useExisting:f(()=>xe),multi:!0};function lt(){let i=se()?se().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var ut=new C(""),xe=(()=>{class i extends Oe{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!lt())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(n){return new(n||i)(o(A),o(b),o(ut,8))}}static{this.\u0275dir=l({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&g("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[p([at]),u]})}}return i})();function _(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function Pe(i){return i!=null&&typeof i.length=="number"}var K=new C(""),J=new C(""),ct=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,De=class{static min(t){return dt(t)}static max(t){return ht(t)}static required(t){return ft(t)}static requiredTrue(t){return pt(t)}static email(t){return gt(t)}static minLength(t){return mt(t)}static maxLength(t){return _t(t)}static pattern(t){return vt(t)}static nullValidator(t){return ke(t)}static compose(t){return Ue(t)}static composeAsync(t){return Le(t)}};function dt(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<i?{min:{min:i,actual:t.value}}:null}}function ht(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function ft(i){return _(i.value)?{required:!0}:null}function pt(i){return i.value===!0?null:{required:!0}}function gt(i){return _(i.value)||ct.test(i.value)?null:{email:!0}}function mt(i){return t=>_(t.value)||!Pe(t.value)?null:t.value.length<i?{minlength:{requiredLength:i,actualLength:t.value.length}}:null}function _t(i){return t=>Pe(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}function vt(i){if(!i)return ke;let t,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(_(n.value))return null;let r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function ke(i){return null}function Ge(i){return i!=null}function Re(i){return Ve(i)?me(i):i}function Te(i){let t={};return i.forEach(e=>{t=e!=null?c(c({},t),e):t}),Object.keys(t).length===0?null:t}function je(i,t){return t.map(e=>e(i))}function yt(i){return!i.validate}function Be(i){return i.map(t=>yt(t)?t:e=>t.validate(e))}function Ue(i){if(!i)return null;let t=i.filter(Ge);return t.length==0?null:function(e){return Te(je(e,t))}}function He(i){return i!=null?Ue(Be(i)):null}function Le(i){if(!i)return null;let t=i.filter(Ge);return t.length==0?null:function(e){let n=je(e,t).map(Re);return ve(n).pipe(_e(Te))}}function $e(i){return i!=null?Le(Be(i)):null}function be(i,t){return i===null?[t]:Array.isArray(i)?[...i,t]:[i,t]}function We(i){return i._rawValidators}function qe(i){return i._rawAsyncValidators}function oe(i){return i?Array.isArray(i)?i:[i]:[]}function $(i,t){return Array.isArray(i)?i.includes(t):i===t}function Ae(i,t){let e=oe(t);return oe(i).forEach(r=>{$(e,r)||e.push(r)}),e}function Me(i,t){return oe(t).filter(e=>!$(i,e))}var W=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=He(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=$e(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},d=class extends W{get formDirective(){return null}get path(){return null}},F=class extends W{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},q=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Ct={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},mi=h(c({},Ct),{"[class.ng-submitted]":"isSubmitted"}),_i=(()=>{class i extends q{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(F,2))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&re("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[u]})}}return i})(),vi=(()=>{class i extends q{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(d,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&re("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[u]})}}return i})();var x="VALID",H="INVALID",M="PENDING",P="DISABLED",v=class{},z=class extends v{constructor(t,e){super(),this.value=t,this.source=e}},k=class extends v{constructor(t,e){super(),this.pristine=t,this.source=e}},G=class extends v{constructor(t,e){super(),this.touched=t,this.source=e}},E=class extends v{constructor(t,e){super(),this.status=t,this.source=e}},ae=class extends v{constructor(t){super(),this.source=t}},le=class extends v{constructor(t){super(),this.source=t}};function de(i){return(Q(i)?i.validators:i)||null}function Vt(i){return Array.isArray(i)?He(i):i||null}function he(i,t){return(Q(t)?t.asyncValidators:i)||null}function Dt(i){return Array.isArray(i)?$e(i):i||null}function Q(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function ze(i,t,e){let n=i.controls;if(!(t?Object.keys(n):n).length)throw new j(1e3,"");if(!n[e])throw new j(1001,"")}function Ze(i,t,e){i._forEachChild((n,r)=>{if(e[r]===void 0)throw new j(1002,"")})}var w=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=O(()=>this.statusReactive()),this.statusReactive=N(void 0),this._pristine=O(()=>this.pristineReactive()),this.pristineReactive=N(!0),this._touched=O(()=>this.touchedReactive()),this.touchedReactive=N(!1),this._events=new ge,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return m(this.statusReactive)}set status(t){m(()=>this.statusReactive.set(t))}get valid(){return this.status===x}get invalid(){return this.status===H}get pending(){return this.status==M}get disabled(){return this.status===P}get enabled(){return this.status!==P}get pristine(){return m(this.pristineReactive)}set pristine(t){m(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(t){m(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ae(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ae(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Me(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Me(t,this._rawAsyncValidators))}hasValidator(t){return $(this._rawValidators,t)}hasAsyncValidator(t){return $(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(h(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new G(!0,n))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:n})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n),e&&t.emitEvent!==!1&&this._events.next(new G(!1,n))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(h(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new k(!1,n))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),e&&t.emitEvent!==!1&&this._events.next(new k(!0,n))}markAsPending(t={}){this.status=M;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new E(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(h(c({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=P,this.errors=null,this._forEachChild(r=>{r.disable(h(c({},t),{onlySelf:!0}))}),this._updateValue();let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new z(this.value,n)),this._events.next(new E(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(h(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=x,this._forEachChild(n=>{n.enable(h(c({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(h(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===x||this.status===M)&&this._runAsyncValidator(n,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new z(this.value,e)),this._events.next(new E(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(h(c({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?P:x}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=M,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Re(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(t,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,n){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||n)&&this._events.next(new E(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,n)}_initObservables(){this.valueChanges=new S,this.statusChanges=new S}_calculateStatus(){return this._allControlsDisabled()?P:this.errors?H:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(M)?M:this._anyControlsHaveStatus(H)?H:x}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new k(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new G(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Q(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Vt(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Dt(this._rawAsyncValidators)}},Z=class extends w{constructor(t,e,n){super(de(e),he(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Ze(this,!0,t),Object.keys(t).forEach(n=>{ze(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(n=>{let r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,s)=>{n=e(n,r,s)}),n}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ue=class extends Z{};var ee=new C("CallSetDisabledState",{providedIn:"root",factory:()=>R}),R="always";function fe(i,t){return[...t.path,i]}function Ee(i,t,e=R){pe(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(i.disabled),At(i,t),Et(i,t),Mt(i,t),bt(i,t)}function Fe(i,t,e=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Y(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function X(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function bt(i,t){if(t.valueAccessor.setDisabledState){let e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function pe(i,t){let e=We(i);t.validator!==null?i.setValidators(be(e,t.validator)):typeof e=="function"&&i.setValidators([e]);let n=qe(i);t.asyncValidator!==null?i.setAsyncValidators(be(n,t.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();X(t._rawValidators,r),X(t._rawAsyncValidators,r)}function Y(i,t){let e=!1;if(i!==null){if(t.validator!==null){let r=We(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=!0,i.setValidators(s))}}if(t.asyncValidator!==null){let r=qe(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=!0,i.setAsyncValidators(s))}}}let n=()=>{};return X(t._rawValidators,n),X(t._rawAsyncValidators,n),e}function At(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Xe(i,t)})}function Mt(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Xe(i,t),i.updateOn!=="submit"&&i.markAsTouched()})}function Xe(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Et(i,t){let e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function Ft(i,t){i==null,pe(i,t)}function wt(i,t){return Y(i,t)}function It(i,t){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function St(i){return Object.getPrototypeOf(i.constructor)===I}function Nt(i,t){i._syncPendingControls(),t.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Ot(i,t){if(!t)return null;Array.isArray(t);let e,n,r;return t.forEach(s=>{s.constructor===xe?e=s:St(s)?n=s:r=s}),r||n||e||null}function xt(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function we(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Ie(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var L=class extends w{constructor(t=null,e,n){super(de(e),he(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Q(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ie(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){we(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){we(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Ie(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Pt=i=>i instanceof L,kt=(()=>{class i extends d{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return fe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})();var Ci=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=l({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return i})(),Gt={provide:D,useExisting:f(()=>Rt),multi:!0},Rt=(()=>{class i extends I{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&g("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[p([Gt]),u]})}}return i})(),Tt={provide:D,useExisting:f(()=>Bt),multi:!0};var jt=(()=>{class i{constructor(){this._accessors=[]}add(e,n){this._accessors.push([e,n])}remove(e){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===e){this._accessors.splice(n,1);return}}select(e){this._accessors.forEach(n=>{this._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}_isSameGroup(e,n){return e[0].control?e[0]._parent===n._control._parent&&e[1].name===n.name:!1}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=ie({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Bt=(()=>{class i extends I{constructor(e,n,r,s){super(e,n),this._registry=r,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=ye(ee,{optional:!0})??R}ngOnInit(){this._control=this._injector.get(F),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(n){return new(n||i)(o(A),o(b),o(jt),o(Ce))}}static{this.\u0275dir=l({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[p([Tt]),u]})}}return i})();var Ye=new C("");var Ut={provide:d,useExisting:f(()=>Ke)},Ke=(()=>{class i extends d{get submitted(){return m(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,n,r){super(),this.callSetDisabledState=r,this._submitted=O(()=>this._submittedReactive()),this._submittedReactive=N(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new S,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Y(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Ee(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Fe(e.control||null,e,!1),xt(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Nt(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ae(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new le(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(Fe(n||null,e),Pt(r)&&(Ee(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);Ft(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&wt(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){pe(this.form,this),this._oldForm&&Y(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(n){return new(n||i)(o(K,10),o(J,10),o(ee,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&g("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p([Ut]),u,ne]})}}return i})(),Ht={provide:d,useExisting:f(()=>Je)},Je=(()=>{class i extends kt{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){et(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(d,13),o(K,10),o(J,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[p([Ht]),u]})}}return i})(),Lt={provide:d,useExisting:f(()=>Qe)},Qe=(()=>{class i extends d{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return fe(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){et(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(d,13),o(K,10),o(J,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[p([Lt]),u]})}}return i})();function et(i){return!(i instanceof Je)&&!(i instanceof Ke)&&!(i instanceof Qe)}var $t={provide:F,useExisting:f(()=>Wt)},Wt=(()=>{class i extends F{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new S,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Ot(this,s)}ngOnChanges(e){this._added||this._setUpControl(),It(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return fe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(n){return new(n||i)(o(d,13),o(K,10),o(J,10),o(D,10),o(Ye,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[p([$t]),u,ne]})}}return i})(),qt={provide:D,useExisting:f(()=>it),multi:!0};function tt(i,t){return i==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function zt(i){return i.split(":")[0]}var it=(()=>{class i extends I{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n=this._getOptionId(e),r=tt(n,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=n=>{this.value=this._getOptionValue(n),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),e))return n;return null}_getOptionValue(e){let n=zt(e);return this._optionMap.has(n)?this._optionMap.get(n):e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[p([qt]),u]})}}return i})(),Vi=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(tt(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(o(b),o(A),o(it,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})(),Zt={provide:D,useExisting:f(()=>nt),multi:!0};function Se(i,t){return i==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function Xt(i){return i.split(":")[0]}var nt=(()=>{class i extends I{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));n=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else n=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(e){this.onChange=n=>{let r=[],s=n.selectedOptions;if(s!==void 0){let a=s;for(let y=0;y<a.length;y++){let T=a[y],te=this._getOptionValue(T.value);r.push(te)}}else{let a=n.options;for(let y=0;y<a.length;y++){let T=a[y];if(T.selected){let te=this._getOptionValue(T.value);r.push(te)}}}this.value=r,e(r)}}_registerOption(e){let n=(this._idCounter++).toString();return this._optionMap.set(n,e),n}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,e))return n;return null}_getOptionValue(e){let n=Xt(e);return this._optionMap.has(n)?this._optionMap.get(n)._value:e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[p([Zt]),u]})}}return i})(),Di=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Se(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Se(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(o(b),o(A),o(nt,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})();var rt=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=U({type:i})}static{this.\u0275inj=B({})}}return i})(),ce=class extends w{constructor(t,e,n){super(de(e),he(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Ze(this,!1,t),t.forEach((n,r)=>{ze(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Ne(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var bi=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),s={};return Ne(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new Z(r,s)}record(e,n=null){let r=this._reduceControls(e);return new ue(r,n)}control(e,n,r){let s={};return this.useNonNullable?(Ne(n)?s=n:(s.validators=n,s.asyncValidators=r),new L(e,h(c({},s),{nonNullable:!0}))):new L(e,n,r)}array(e,n,r){let s=e.map(a=>this._createControl(a));return new ce(s,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof L)return e;if(e instanceof w)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(n,r,s)}else return this.control(e)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=ie({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ai=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:ee,useValue:e.callSetDisabledState??R}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=U({type:i})}static{this.\u0275inj=B({imports:[rt]})}}return i})(),Mi=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Ye,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:ee,useValue:e.callSetDisabledState??R}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=U({type:i})}static{this.\u0275inj=B({imports:[rt]})}}return i})();export{ot as a,xe as b,De as c,_i as d,vi as e,Ci as f,Rt as g,Bt as h,Ke as i,Je as j,Qe as k,Wt as l,Vi as m,Di as n,bi as o,Ai as p,Mi as q};
|
package/chunk-CHPE3R64.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as se}from"./chunk-C52YH32J.js";import{a as I,c as re,h as ae,i as ce,q as de}from"./chunk-KCVUEWQV.js";import{a as pe}from"./chunk-SYBUINNV.js";import{$a as g,$b as V,Ab as K,Bb as ie,Cb as Q,Db as h,Fb as U,G as W,Jb as B,Lb as D,Mb as ne,Oa as d,Rb as oe,Ua as T,Va as H,Wa as Z,X as Y,Z as O,a as C,b as v,bb as $,bc as E,cb as z,db as f,fb as b,ha as k,hb as ee,ia as w,ib as te,jb as r,kb as a,lc as le,ob as q,pb as N,qb as P,rb as p,sa as R,sb as A,ta as _,tb as y,y as X}from"./chunk-RBNO3K72.js";var Ce=["treeContainer"],ve=["formRef"],Te=[[["label"]],[["label"]],[["input"]]],be=["label","label","input"],Pe=(n,e)=>e.id,xe=n=>({children:n,level:0}),ue=n=>({$implicit:n}),ye=(n,e)=>({children:n,level:e});function Se(n,e){if(n&1){let t=N();r(0,"spk-button-group")(1,"button",8),P("click",function(){k(t);let o=p();return w(o.pathDiscoveryMethod.set("browse"))}),h(2," Browser path "),a(),r(3,"button",8),P("click",function(){k(t);let o=p();return w(o.pathDiscoveryMethod.set("path"))}),h(4," Manually type path "),a()()}if(n&2){let t=p();d(),f("active",t.pathDiscoveryMethod()==="browse"),d(2),f("active",t.pathDiscoveryMethod()==="path")}}function ke(n,e){n&1&&(r(0,"spk-icon",11),h(1,"folder-open"),a())}function we(n,e){n&1&&(r(0,"spk-icon"),h(1,"file"),a())}function Fe(n,e){n&1&&(r(0,"spk-icon",11),h(1,"folder"),a())}function Me(n,e){if(n&1&&g(0,ke,2,0,"spk-icon",11)(1,we,2,0,"spk-icon")(2,Fe,2,0,"spk-icon",11),n&2){let t=p(2).$implicit;b(t.children.length?0:t.cls==="file"?1:2)}}function Ee(n,e){n&1&&(r(0,"spk-icon",11),h(1,"desktop-tower"),a())}function Oe(n,e){n&1&&q(0)}function Ne(n,e){if(n&1&&g(0,Oe,1,0,"ng-container",6),n&2){let t=p(2).$implicit,i=p().$implicit;p();let o=Q(6);$("ngTemplateOutlet",o)("ngTemplateOutletContext",D(5,ue,ne(2,ye,t.children,i.level+1)))}}function Ae(n,e){if(n&1){let t=N();r(0,"div",9,3),P("click",function(o){k(t);let s=p().$implicit,l=p(2);return w(s.id!=="/"&&l.toggleNode(o,s.id,s))}),r(2,"div",10),g(3,Me,3,1)(4,Ee,2,0,"spk-icon",11),a(),r(5,"div",12),P("click",function(o){k(t);let s=p().$implicit,l=p(2);return w(s.id!=="/"&&l.toggleSelectedNode(o,s))}),h(6),a()(),g(7,Ne,1,7,"ng-container")}if(n&2){let t=p().$implicit;f("active",t.isSelected)("open",t.children.length)("usually-hidden",t.hidden),d(3),b(t.id!=="/"?3:4),d(3),U(" ",t.text," "),d(),b(t.children.length>0?7:-1)}}function Be(n,e){if(n&1&&g(0,Ae,8,9),n&2){let t=e.$implicit,i=p(2);b(t.hidden&&i.showHiddenFiles()||!t.hidden?0:-1)}}function De(n,e){if(n&1&&(r(0,"spk-list"),ee(1,Be,1,1,null,null,Pe),a()),n&2){let t=e.$implicit;z("padding-left",t.level*.5,"rem"),d(),te(t.children)}}function Ve(n,e){n&1&&q(0)}var G=class n{#t=Y(pe);multiSelect=_(!1);disabled=_(!1);showFiles=_(!1);startingPath=_(null);rootPath=_(void 0);backupSettings=_(null);includes=R();excludes=R();treeContainerRef=H("treeContainer");formRef=H("formRef");pathDiscoveryMethod=T("browse");isLoading=T(!1);showHiddenFiles=T(!1);currentPath=T("/");#e=T(null);treeSearchQuery=T("");treeNodes=T([]);isByBackupSettings=V(()=>this.rootPath()&&this.backupSettings()?.id&&this.backupSettings()?.time);searchableTreeNodes=V(()=>{let e=this.treeSearchQuery();return e?this.treeNodes().filter(t=>t.text?.toLowerCase().includes(e.toLowerCase())):this.treeNodes()});treeStructure=V(()=>{let e=this.searchableTreeNodes(),t=new Map,i=this.rootPath(),o=i?{id:i,resolvedpath:i,text:i?.replaceAll("/",""),parentPath:"",children:[],isSelected:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],isSelected:!1};t.set("/",o);for(let s of e){let u=s.id.replace(i??"","").split("/").filter(Boolean),c="",x=o;for(let m of u){if(c+="/"+m,!t.has(c)){let F={id:s.id,isSelected:s.isSelected,parentPath:c,resolvedpath:s.id?.startsWith("%")?s.resolvedpath+"/":c,hidden:s.hidden,text:s.text,cls:s.cls,children:[]};t.set(c,F),x.children.push(F)}x=t.get(c)}}return[o]});pathDiscoveryMethodEffect=E(()=>{let e=this.pathDiscoveryMethod(),t=this.#e();if(e==="browse"&&t)if(this.multiSelect()){let i=t.value.split("\0");this.treeNodes.update(o=>o.map(s=>v(C({},s),{isSelected:typeof s.id=="string"&&i.includes(s.id)})))}else this.treeNodes.update(i=>i.map(o=>v(C({},o),{isSelected:o.id===t.value})))},{allowSignalWrites:!0});#a(){let e=this.treeContainerRef()?.nativeElement.querySelectorAll(".active");e&&e.length>0&&e[0].scrollIntoView({behavior:"smooth",block:"center"})}currentPathEffect=E(()=>{let e=this.#e();e&&(e.value=this.currentPath(),e.dispatchEvent(new Event("input")))},{allowSignalWrites:!0});selectedPathsEffect=E(()=>{if(this.multiSelect()){let e=this.treeNodes().filter(l=>l.isSelected),t=this.treeNodes().filter(l=>!l.isSelected&&e.some(u=>l.id?.startsWith(u.id))),i=e.filter(l=>!e.some(u=>l.id!==u.id&&l.id?.startsWith(u.id))).map(l=>l.id),o=t.filter(l=>!t.some(u=>l.id!==u.id&&l.id?.startsWith(u.id))).map(l=>`-${l.id}`);this.excludes.emit(o);let s=[...i,...o];this.currentPath.set(s.join("\0"))}else{let e=this.treeNodes().find(i=>i.isSelected),t=e?.resolvedpath;this.currentPath.set(e?.id??"")}},{allowSignalWrites:!0});inputValueChangeAbortController=null;inputRefEffect=E(()=>{let e=this.formRef()?.nativeElement?.querySelector("input");e&&(this.#o(e),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,e.addEventListener("inputValueChanged",t=>{this.currentPath.set(t.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(e),e.autocomplete="off")},{allowSignalWrites:!0});ngOnInit(){let e=this.startingPath();e?(this.currentPath.set(e),this.#r(e)):this.#n(null,this.rootPath())}toggleSelectedNode(e,t){e.stopPropagation(),this.multiSelect()?this.treeNodes.update(i=>i.map(o=>o.id?.startsWith(t.id)?v(C({},o),{isSelected:!t.isSelected}):o)):this.treeNodes.update(i=>i.map(o=>o.id===t.id?v(C({},o),{isSelected:!t.isSelected}):v(C({},o),{isSelected:!1})))}toggleNode(e,t,i=null){e.stopPropagation(),i?.children.length?this.treeNodes.update(o=>o.filter(s=>!s.id?.startsWith(i.id)||s.id===i.id)):this.#n(i,t)}#o(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}})),t}}),e}#l(e){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:e},onlyFolders:!this.showFiles()})}#s(e){let t=this.backupSettings(),i={id:t.id,time:t.time,prefixOnly:!1,folderContents:!0};return e&&(i.filter="@"+e),this.#t.getApiV1BackupByIdFiles(i)}#i(e){return this.isByBackupSettings()?this.#s(e):this.#l(e)}#r(e){let t=e.split("\0").filter(l=>l.startsWith("-")).map(l=>l.slice(1,-1)),i=e.split("\0").filter(l=>!l.startsWith("-")).filter(Boolean),o=i.map(l=>l.split("/").filter(Boolean)),s=[this.rootPath()??"/"];o.forEach(l=>{l.forEach((u,c)=>{let x=l.slice(0,c+1).join("/"),m=x.startsWith("%")?x:"/"+x;s.includes(m)||s.push(m)})}),this.isLoading.set(!0),X([...s.map(l=>this.#i(l))]).pipe(W(()=>this.isLoading.set(!1))).subscribe({next:l=>{this.treeNodes.update(u=>{let c=l.flatMap(m=>m.map(F=>{let M=F.id,j=M&&M.split("/").filter(Boolean).slice(0,-1).join("/"),L="/"+(M&&M.split("/").filter(Boolean).join("/")),he=i.findIndex(S=>this.multiSelect()?L.startsWith(S):L===S)>-1,me=i.findIndex(S=>S===M)>-1,ge=t.findIndex(S=>S===L)>-1;return v(C({},F),{parentPath:j.startsWith("%")?j:"/"+j,isSelected:he&&!ge||me})}));return[...new Map([...u,...c].map(m=>[m.resolvedpath??m.id,m])).values()]})}})}#n(e=null,t="/"){this.isLoading.set(!0),this.#i(t).pipe(W(()=>this.isLoading.set(!1))).subscribe({next:i=>{let o=this.isByBackupSettings()?i.Files.map(s=>({text:s.Path.split("/").filter(l=>l!=="").pop(),id:s.Path,cls:s.Path.endsWith("/")?"folder":"file",leaf:e!==null,resolvedpath:s.Path,hidden:!1})):i;this.treeNodes.update(s=>{let l=o.map(c=>v(C({},c),{parentPath:t,isSelected:(this.multiSelect()&&e?.isSelected)??!1}));return[...new Map([...s,...l].map(c=>[c.resolvedpath??c.id,c])).values()]})}})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=O({type:n,selectors:[["app-file-tree"]],viewQuery:function(t,i){t&1&&(K(i.treeContainerRef,Ce,5),K(i.formRef,ve,5)),t&2&&ie(2)},hostVars:2,hostBindings:function(t,i){t&2&&f("disabled",i.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"]},outputs:{includes:"includes",excludes:"excludes"},standalone:!0,features:[B],ngContentSelectors:be,decls:15,vars:14,consts:[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],[1,"section"],[1,"browse-files"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"click"],["type","button",3,"click"],["spk-action-item","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"]],template:function(t,i){if(t&1){let o=N();A(Te),g(0,Se,5,4,"spk-button-group"),r(1,"div",4),y(2,0,["ngProjectAs","label",5,["label"]]),r(3,"div",5,0),g(5,De,3,2,"ng-template",null,1,oe)(7,Ve,1,0,"ng-container",6),a(),r(8,"spk-toggle",7),P("click",function(){return k(o),w(i.showHiddenFiles.set(!i.showHiddenFiles()))}),h(9),a()(),r(10,"div",null,2)(12,"spk-form-field"),y(13,1,["ngProjectAs","label",5,["label"]]),y(14,2,["ngProjectAs","input",5,["input"]]),a()()}if(t&2){let o=Q(6);b(i.multiSelect()?-1:0),d(),f("hidden",i.pathDiscoveryMethod()!=="browse"),d(6),$("ngTemplateOutlet",o)("ngTemplateOutletContext",D(12,ue,D(10,xe,i.treeStructure()))),d(),f("active",i.showHiddenFiles()),d(),U(" Show hidden ",i.showFiles()?"files":"folders"," "),d(3),f("hidden",i.pathDiscoveryMethod()!=="path")}},dependencies:[re,de,I,ae,ce,le,se],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}.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}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:0;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [spk-action-item][_ngcontent-%COMP%]{padding:0;gap:.25rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [spk-action-item].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [spk-action-item][_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%] [spk-action-item][_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 Ie=[[["","title",""]],"*"],je=["[title]","*"];function Le(n,e){n&1&&h(0,"Title")}function We(n,e){n&1&&(r(0,"spk-icon"),h(1,"caret-down"),a())}var J=class n{isActive=Z(!1);disallowToggle=_(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=O({type:n,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(t,i){t&2&&f("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},standalone:!0,features:[B],ngContentSelectors:je,decls:6,vars:1,consts:[[3,"click"],[1,"content"]],template:function(t,i){t&1&&(A(Ie),r(0,"h3",0),P("click",function(){return i.disallowToggle()||i.toggle()}),y(1,0,null,Le,1,0),g(3,We,2,0,"spk-icon"),a(),r(4,"div",1),y(5,1),a()),t&2&&(d(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}"],changeDetection:0})};export{G as a,J as b};
|
package/chunk-CMP3TWYX.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as y}from"./chunk-RUP4GIVS.js";import"./chunk-V7LHB36E.js";import"./chunk-WU4K3UNC.js";import{n as d}from"./chunk-JZTRJKNF.js";import"./chunk-CHPE3R64.js";import"./chunk-P4AWKIXG.js";import"./chunk-C52YH32J.js";import"./chunk-TIGGJ4KF.js";import{l as g,p as h}from"./chunk-KCVUEWQV.js";import{a as v,b as C,d as f,e as S}from"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import"./chunk-SYBUINNV.js";import{Db as r,Ib as k,Jb as b,Lb as p,Oa as a,X as s,Z as l,bb as o,jb as n,kb as i,lb as t}from"./chunk-RBNO3K72.js";var I=e=>["/backup",e,"general"],L=e=>["/backup",e,"destination"],F=e=>["/backup",e,"source-data"],_=e=>["/backup",e,"schedule"],D=e=>["/backup",e,"options"],m=class e{#t=s(v);#e=s(d);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(u){return new(u||e)};static \u0275cmp=l({type:e,selectors:[["app-create-edit-backup"]],standalone:!0,features:[k([d]),b],decls:19,vars:15,consts:[["spk-step","","routerLinkActive","active",3,"routerLink"]],template:function(u,c){u&1&&(t(0,"app-status-bar"),n(1,"spk-stepper")(2,"div",0),t(3,"spk-radio"),r(4," General "),i(),n(5,"div",0),t(6,"spk-radio"),r(7," Destination "),i(),n(8,"div",0),t(9,"spk-radio"),r(10," Source Data "),i(),n(11,"div",0),t(12,"spk-radio"),r(13," Schedule "),i(),n(14,"div",0),t(15,"spk-radio"),r(16," Options "),i()(),n(17,"section"),t(18,"router-outlet"),i()),u&2&&(a(2),o("routerLink",p(5,I,c.backupId())),a(3),o("routerLink",p(7,L,c.backupId())),a(3),o("routerLink",p(9,F,c.backupId())),a(3),o("routerLink",p(11,_,c.backupId())),a(3),o("routerLink",p(13,D,c.backupId())))},dependencies:[C,f,S,y,g,h],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{m as default};
|
package/chunk-H2IAZHJK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-TIGGJ4KF.js";import"./chunk-SYBUINNV.js";import{Db as o,Eb as f,Jb as r,Oa as p,Ob as c,Pb as l,X as a,Z as m,jb as t,kb as n,nc as y}from"./chunk-RBNO3K72.js";var s=class i{#e=a(d);systemInfo=this.#e.systemInfo;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=m({type:i,selectors:[["app-system-info"]],standalone:!0,features:[r],decls:5,vars:3,template:function(e,S){e&1&&(t(0,"h3"),o(1,"System info"),n(),t(2,"pre"),o(3),c(4,"json"),n()),e&2&&(p(3),f(l(4,1,S.systemInfo())))},dependencies:[y],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{s as default};
|
package/chunk-IYC3FMCU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as a,m as b}from"./chunk-JZTRJKNF.js";import"./chunk-CHPE3R64.js";import"./chunk-P4AWKIXG.js";import"./chunk-C52YH32J.js";import"./chunk-TIGGJ4KF.js";import"./chunk-KCVUEWQV.js";import"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import"./chunk-SYBUINNV.js";import"./chunk-RBNO3K72.js";export{a as createSourceDataForm,b as default};
|
package/chunk-JCO3FLHD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a,d as b}from"./chunk-DMP4KFQP.js";import"./chunk-5Y47Y3RB.js";import"./chunk-CHPE3R64.js";import"./chunk-P4AWKIXG.js";import"./chunk-C52YH32J.js";import"./chunk-KCVUEWQV.js";import"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import"./chunk-SYBUINNV.js";import"./chunk-RBNO3K72.js";export{a as createRestoreSelectFilesForm,b as default};
|
package/chunk-JZTRJKNF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Ue,b as ge}from"./chunk-CHPE3R64.js";import{b as Se}from"./chunk-P4AWKIXG.js";import{a as we,b as H,c as he,d as Y,e as Z,f as J,g as ue,i as X,j as _e,k as Le,l as ee,m as te,n as ne,o as I,q as ie}from"./chunk-C52YH32J.js";import{a as Ce}from"./chunk-TIGGJ4KF.js";import{a as oe,d as fe,f as ft,h as ae,j as ze,m as Ct,n as re,q as De}from"./chunk-KCVUEWQV.js";import{a as K,c as M}from"./chunk-AFUS3PYG.js";import{a as gt}from"./chunk-SYBUINNV.js";import{$a as f,$b as W,Ab as j,Bb as q,Cb as xe,D as lt,Db as l,Eb as G,Fb as A,G as ye,Hb as ct,Jb as Q,L as st,Lb as Be,Nb as $e,Oa as s,R as be,Rb as dt,Ua as S,Va as U,X as h,Z as z,a as se,ab as $,b as Me,bb as d,c as rt,db as mt,fb as _,gb as w,ha as C,hb as D,ia as g,ib as T,jb as a,kb as o,lb as p,lc as ut,mb as k,nb as v,ob as Re,pb as b,qb as y,rb as m,ub as me,uc as _t,vb as O,wb as pt}from"./chunk-RBNO3K72.js";var je=class t{fromString(n){if(!n)return null;let e=n.match(/(\d+)([smhDWMY])/);return e&&{value:parseInt(e[1]),unit:e[2]}}toString(n,e){return`${n}${e}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=be({token:t,factory:t.\u0275fac,providedIn:"root"})};var ve=new I,Pe={file:{customFields:{path:{type:"file-tree",name:"path",shortDescription:"File path",longDescription:"The path to store the backup",formElement:t=>ve.control(t??"")}}},ssh:{customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"The server to connect to",formElement:t=>ve.control(t??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"The port to connect to",formElement:t=>ve.control(t??"")},path:{type:"Path",name:"path",shortDescription:"File path on the server",longDescription:"File path on the server",formElement:t=>ve.control(t??"")}},dynamicFields:["auth-username"]},s3:{customFields:{path:{type:"Path",name:"path",shortDescription:"File path on the server",longDescription:"File path on the server",formElement:t=>ve.control(t??"")},bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:t=>ve.control(t??"")}},dynamicFields:["use-ssl","s3-server-name","auth-username","auth-password"]},gcs:{dynamicFields:["gcs-location","gcs-storage-class","authid"]},googledrive:{oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"File path on the server",longDescription:"File path on the server",formElement:t=>ve.control(t??"")}},dynamicFields:["authid"]}};function Te(t,n){let e={},i={};return n.searchParams.forEach((r,c)=>{Pe[t].dynamicFields?.includes(c)?i[c]=decodeURIComponent(r):e[c]=decodeURIComponent(r)}),{advanced:e,dynamic:i}}function Ie(t){let n=t.map(([e,i])=>`${e}=${i?encodeURIComponent(i.toString()):""}`).join("&");return n?"?"+n:""}var Ee={file:{to:t=>{let n=Ie([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.path}${n}`},from:(t,n,e)=>{let i=e.indexOf("file:///")===0,r=e.split(i?"///":"//")[1].substring(0,1)+n.hostname.substring(1);return se({destinationType:t,custom:{path:`${i?"/":""}${r}${n.pathname}`}},Te(t,n))}},ssh:{to:t=>{let n=Ie([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.server}${t.custom.port?":"+t.custom.port:""}${t.custom.path.startsWith("/")?t.custom.path:"/"+t.custom.path}${n}`},from:(t,n,e)=>se({destinationType:t,custom:{server:n.hostname,port:n.port,path:n.pathname}},Te(t,n))},s3:{to:t=>{let n=Ie([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.bucket}${t.custom.path}${n}`},from:(t,n,e)=>se({destinationType:t,custom:{path:n.pathname,bucket:n.hostname}},Te(t,n))},gcs:{to:t=>{let n=t.dynamic["gcs-location"]??"";delete t.dynamic["gcs-location"];let e=Ie([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${n}${e}`},from:(t,n,e)=>{let{advanced:i,dynamic:r}=Te(t,n);return{destinationType:t,advanced:i,dynamic:Me(se({},r),{"gcs-location":n.hostname+n.pathname})}}},googledrive:{to:t=>{let n=t.custom.path,e=Ie([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${n}${e}`},from:(t,n,e)=>{let i=e.replace("googledrive://","");return se({destinationType:t,custom:{path:i}},Te(t,n))}},fallbackMapper:{to:t=>"",from:(t,n,e)=>se({destinationType:t},Te(t,n))}};function Oe(t){let n=t.destinationType;return!n||!Ee.hasOwnProperty(n)?Ee.fallbackMapper.to(t)??"":Ee[n].to(t)??""}function yt(t){let n=URL.canParse(t),e=t.split("://")[0],i="http://"+t.split("://")[1],r=new URL(i);if(!Ee.hasOwnProperty(e))return Ee.fallbackMapper.from(e,r);if(!n)throw new Error("Invalid target path");return Ee[e].from(e,r,t)}var Dt=/[a-zA-Z0-9_\-\+\.]/,qe=class t{generate(n,e=Dt){let i=this;return Array.apply(null,{length:n}).map(()=>{let r;for(;;)if(r=String.fromCharCode(i.#e()),e.test(r))return r},this).join("")}#e(){if(window.crypto&&window.crypto.getRandomValues){let n=new Uint8Array(1);return window.crypto.getRandomValues(n),n[0]}else if(window.msCrypto&&window.msCrypto.getRandomValues){let n=new Uint8Array(1);return window.msCrypto.getRandomValues(n),n[0]}else return Math.floor(Math.random()*256)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=be({token:t,factory:t.\u0275fac,providedIn:"root"})};function Ye(t,n,e="conditional"){return i=>{if(!i.parent)return null;let r=null;if(t(i.parent)&&(r=(Array.isArray(n)?n:[n]).find(F=>F(i)!==null)??null),e&&r){let c={};c[e]=r,r=c}return r}}function xt(){return t=>(t.parent&&Object.values(t.parent.controls).forEach(n=>{n!==t&&n.updateValueAndValidity()}),null)}var Tt=["formRef"];function Et(t,n){if(t&1&&(a(0,"option",14),l(1),o()),t&2){let e=n.$implicit;d("value",e.Key),s(),G(e.DisplayName)}}function Ot(t,n){t&1&&(a(0,"spk-icon"),l(1,"eye-slash"),o(),l(2," hide "))}function Nt(t,n){t&1&&(a(0,"spk-icon"),l(1,"eye"),o(),l(2," show "))}function Vt(t,n){t&1&&(a(0,"spk-icon",23),l(1,"check"),o())}function Pt(t,n){t&1&&(a(0,"spk-icon"),l(1,"copy"),o())}function It(t,n){if(t&1){let e=b();a(0,"button",22),y("click",function(){C(e);let r=m(3);return g(r.copyPassword())}),f(1,Vt,2,0,"spk-icon",23)(2,Pt,2,0,"spk-icon"),l(3),o()}if(t&2){let e=m(3);s(),_(e.copiedPassword()?1:2),s(2),A(" ",e.copiedPassword()?"Copied":"Copy"," password ")}}function Gt(t,n){if(t&1){let e=b();a(0,"div",15)(1,"spk-form-field")(2,"label",16),l(3,"Create a password"),o(),p(4,"input",17),o(),a(5,"spk-form-field"),p(6,"input",18),o(),a(7,"div",19)(8,"button",20),y("click",function(){C(e);let r=m(2);return g(r.showPassword.set(!r.showPassword()))}),f(9,Ot,3,0)(10,Nt,3,0),o(),a(11,"button",20),y("click",function(){C(e);let r=m(2);return g(r.generatePassword())}),a(12,"spk-icon"),l(13,"password"),o(),l(14," Generate password "),o(),f(15,It,4,2,"button",21),o()()}if(t&2){let e=m(2);s(4),d("type",e.showPassword()?"text":"password"),s(2),d("type",e.showPassword()?"text":"password"),s(3),_(e.showPassword()?9:10),s(6),_(e.showCopyPassword()?15:-1)}}function At(t,n){if(t&1&&(a(0,"spk-select",10)(1,"label",11),l(2,"Encryption"),o(),p(3,"input",12),k(4,13),D(5,Et,2,2,"option",14,w),v(),o(),f(7,Gt,16,4,"div",15)),t&2){let e,i=m();d("displayValue",i.displayFn((e=i.generalForm.value.encryption)!==null&&e!==void 0?e:"")),s(5),T(i.encryptionOptions()),s(2),_(i.encryptionFieldSignal()!=="none"?7:-1)}}var Ne=new I,ht=(t={name:"",description:"",encryption:"none",password:"",repeatPassword:""})=>Ne.group({name:Ne.control(t.name,[he.required]),description:Ne.control(t.description),encryption:Ne.control(t.encryption,[he.required,xt()]),password:Ne.control(t.password,[Ye(n=>n?.value.encryption!=="none",[he.required])]),repeatPassword:Ne.control(t.repeatPassword,[Ye(n=>n?.value.encryption!=="none",[he.required])])}),Je={Key:"none",DisplayName:"None"},Ze=class t{#e=h(M);#t=h(K);#n=h(qe);#i=h(R);#o=h(Ce);formRef=U.required("formRef");generalForm=this.#i.generalForm;encryptionFieldSignal=this.#i.encryptionFieldSignal;encryptionOptions=this.#i.encryptionOptions;isNew=this.#i.isNew;showPassword=S(!1);copiedPassword=S(!1);showCopyPassword=S(!1);ngOnInit(){this.formRef().nativeElement.focus()}exit(){this.#i.exit()}async copyPassword(){let n=this.generalForm.controls.password.value;await this.#a(n??""),this.copiedPassword.set(!0)}async#a(n){try{await navigator.clipboard.writeText(n)}catch{try{let i=document.createElement("textarea");i.value=n,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i)}catch(i){console.error("Failed to copy text: ",i)}}}displayFn(n){let e=this.#o.systemInfo()?.EncryptionModules??[],i=[Je,...e].find(r=>r.Key===n);return i?`${i.DisplayName}`:""}generatePassword(){this.copiedPassword.set(!1);let n=this.#n.generate(16);this.generalForm.controls.password.setValue(n),this.generalForm.controls.repeatPassword.setValue(n),this.showCopyPassword.set(!0)}next(){this.#e.navigate(["destination"],{relativeTo:this.#t.parent})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=z({type:t,selectors:[["app-general"]],viewQuery:function(e,i){e&1&&j(i.formRef,Tt,5),e&2&&q()},standalone:!0,features:[Q],decls:23,vars:4,consts:[["formRef",""],["autocomplete","off",3,"submit","formGroup"],[1,"title-30"],["for","backupName"],["type","text","tabindex","1","placeholder","Your backup name","formControlName","name"],["for","backupDescription"],["id","backupDescription","tabindex","2","placeholder","Your backup description","formControlName","description"],[1,"form-actions"],["spk-button","",3,"click"],["spk-button","","type","submit",1,"raised","primary",3,"disabled"],[3,"displayValue"],["for","encryption"],["type","text","id","encryption","tabindex","3","placeholder","Encryption","formControlName","encryption"],["options",""],[3,"value"],[1,"passwords"],["for","password"],["id","password","tabindex","4","placeholder","Password","formControlName","password",3,"type"],["id","repeatPassword","tabindex","5","placeholder","Repeat password","formControlName","repeatPassword",3,"type"],[1,"password-actions"],["spk-button","","type","button",1,"small",3,"click"],["spk-button","","type","button",1,"small","copy"],["spk-button","","type","button",1,"small","copy",3,"click"],[1,"spk-success"]],template:function(e,i){if(e&1){let r=b();a(0,"form",1,0),y("submit",function(){return C(r),g(i.next())}),a(2,"h3",2),l(3,"General backup settings"),o(),a(4,"spk-form-field")(5,"label",3),l(6,"Backup name"),o(),p(7,"input",4),o(),a(8,"spk-form-field")(9,"label",5),l(10,"Backup description"),o(),p(11,"textarea",6),o(),f(12,At,8,2),a(13,"div",7)(14,"button",8),y("click",function(){return C(r),g(i.exit())}),a(15,"spk-icon"),l(16,"arrow-left"),o(),l(17," Exit "),o(),a(18,"div")(19,"button",9)(20,"spk-icon"),l(21,"arrow-right"),o(),l(22," Continue "),o()()()()}e&2&&(d("formGroup",i.generalForm),s(12),_(i.isNew()?12:-1),s(6),$("spk-tooltip-primary",i.generalForm.valid&&i.encryptionFieldSignal()==="none"||i.copiedPassword()?void 0:"Remember to copy the password"),s(),d("disabled",i.generalForm.invalid||i.encryptionFieldSignal()!=="none"&&i.showCopyPassword()&&!i.copiedPassword()))},dependencies:[ie,J,te,ne,H,Y,Z,X,ee,ae,re,fe,oe],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.copy[_ngcontent-%COMP%] spk-icon.spk-success[_ngcontent-%COMP%]{color:var(--success-500)}"],changeDetection:0})};var Mt=["formRef"];function Rt(t,n){if(t&1&&(a(0,"option",9),l(1),o()),t&2){let e=n.$implicit;d("value",e),s(),G(e)}}function Bt(t,n){if(t&1&&(a(0,"option",9),l(1),o()),t&2){let e=n.$implicit;d("value",e),s(),G(e)}}function $t(t,n){if(t&1){let e=b();a(0,"button",22),y("click",function(){let r=C(e).$implicit,c=m();return g(c.addNewOption(r))}),l(1),o()}if(t&2){let e=n.$implicit;s(),G(e.Name)}}function Lt(t,n){t&1&&(a(0,"label",23),l(1,"Name"),o())}function zt(t,n){t&1&&(a(0,"label",25),l(1,"Value"),o())}function Ut(t,n){if(t&1){let e=b();a(0,"div",18)(1,"spk-form-field"),f(2,Lt,2,0,"label",23),p(3,"input",24),o(),a(4,"spk-form-field"),f(5,zt,2,0,"label",25),p(6,"input",26),o(),a(7,"button",27),y("click",function(){let r=C(e).$index,c=m();return g(c.optionsForm.controls.advancedOptions.removeAt(r))}),a(8,"spk-icon"),l(9,"x-circle"),o()()()}if(t&2){let e=n.$implicit,i=n.$index;d("formGroup",e),s(2),_(i===0?2:-1),s(3),_(i===0?5:-1)}}var pe=new I,jt=["Bytes","KB","MB","GB","TB","PB"],qt=["Local folder","Local drive","Remote drive","Cloud drive"],St=(t={remoteVolumeSize:0,size:"GB",backupRetention:"Local folder",advancedOptions:[]})=>pe.group({remoteVolumeSize:pe.group({size:pe.control(t.remoteVolumeSize),unit:pe.control(t.size)}),backupRetention:pe.control(t.backupRetention),advancedOptions:pe.array([])}),et=(t,n)=>pe.group({name:pe.control(t),value:pe.control(n)}),Xe=class t{#e=h(Ce);#t=h(R);#n=h(M);#i=h(K);formRef=U.required("formRef");optionsForm=this.#t.optionsForm;sizeOptions=S(jt);rentationOptions=S(qt);selectionAdvancedOptions=Se(this.optionsForm.controls.advancedOptions.valueChanges.pipe(st([])));advancedOptions=S(this.#e.systemInfo()?.Options??[]);nonSelectedAdvancedOptions=W(()=>this.advancedOptions().filter(n=>this.selectionAdvancedOptions()?.findIndex(e=>e.name===n.Name)===-1));addNewOption(n){this.optionsForm.controls.advancedOptions.push(et(n.Name,n.DefaultValue))}displayFn(){let n=this.advancedOptions();return e=>{let i=n.find(r=>r.Name===e);return i?`${i.Name}`:""}}goBack(){this.#n.navigate(["schedule"],{relativeTo:this.#i.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=z({type:t,selectors:[["app-options"]],viewQuery:function(e,i){e&1&&j(i.formRef,Mt,5),e&2&&q()},standalone:!0,features:[Q],decls:49,vars:2,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["type","text","placeholder","Select an option...","formControlName","unit"],["options",""],[3,"value"],["href","#",1,"spk-primary"],["type","text","placeholder","Local folder or drive","formControlName","backupRetention"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small"],["menu",""],["spk-menu-item","","type","button"],["formArrayName","advancedOptions"],[1,"advanced-option",3,"formGroup"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["spk-menu-item","","type","button",3,"click"],["for","name"],["type","text","id","name","formControlName","name"],["for","value"],["type","text","id","value","formControlName","value"],["spk-button","","type","button",1,"icon",3,"click"]],template:function(e,i){if(e&1){let r=b();a(0,"form",1,0),y("submit",function(){return C(r),g(i.submit())}),a(2,"h3",2),l(3,"Options"),o(),a(4,"div",3)(5,"div",4)(6,"spk-form-field")(7,"label",5),l(8,"Remote volume size"),o(),p(9,"input",6),o(),a(10,"spk-select"),p(11,"input",7),k(12,8),D(13,Rt,2,2,"option",9,w),v(),o()(),a(15,"p"),l(16," The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. "),a(17,"a",10),l(18,"Read more"),o()()(),a(19,"spk-select")(20,"label",5),l(21,"Backup retention"),o(),p(22,"input",11),k(23,8),D(24,Bt,2,2,"option",9,w),v(),o(),a(26,"app-toggle-card",12),k(27,13),l(28," Advanced options "),a(29,"spk-menu")(30,"button",14),l(31," Add advanced option "),a(32,"spk-icon"),l(33,"plus"),o()(),k(34,15),D(35,$t,2,1,"button",16,w),v(),o(),v(),k(37,17),D(38,Ut,10,3,"div",18,w),v(),o(),a(40,"div",19)(41,"button",20),y("click",function(){return C(r),g(i.goBack())}),a(42,"spk-icon"),l(43,"arrow-left"),o(),l(44," Go back "),o(),a(45,"button",21)(46,"spk-icon"),l(47,"arrow-right"),o(),l(48," Submit "),o()()()}e&2&&(d("formGroup",i.optionsForm),s(13),T(i.sizeOptions()),s(11),T(i.rentationOptions()),s(2),d("disallowToggle",!0),s(9),T(i.nonSelectedAdvancedOptions()),s(3),T(i.optionsForm.controls.advancedOptions.controls))},dependencies:[ie,J,te,ne,H,ue,Y,Z,X,ee,_e,Le,ze,re,fe,oe,ae,ge],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var Qt=["formRef"];function Wt(t,n){if(t&1&&(a(0,"option",24),l(1),o()),t&2){let e=n.$implicit;d("value",e.key),s(),G(e.label)}}function Kt(t,n){if(t&1){let e=b();a(0,"div",11)(1,"spk-form-field")(2,"label",12),l(3,"Next time"),o(),a(4,"input",13,1),y("focus",function(){C(e);let r=xe(5);return g(r.showPicker())}),o(),a(6,"spk-icon",14),l(7,"clock"),o()(),a(8,"spk-form-field"),p(9,"label",15),a(10,"input",16,2),y("focus",function(){C(e);let r=xe(11);return g(r.showPicker())}),o(),a(12,"spk-icon",14),l(13,"calendar"),o()()(),k(14,17),a(15,"div",18)(16,"spk-form-field")(17,"label",19),l(18,"Run again every"),o(),p(19,"input",20),o(),a(20,"spk-select",21),p(21,"input",22),k(22,23),D(23,Wt,2,2,"option",24,w),v(),o()(),a(25,"app-toggle-card",25),k(26,26),l(27,"Allowed days"),v(),a(28,"div",27)(29,"spk-toggle",6),l(30," Monday "),p(31,"input",28),o(),a(32,"spk-toggle",6),l(33," Tuesday "),p(34,"input",29),o(),a(35,"spk-toggle",6),l(36," Wednesday "),p(37,"input",30),o(),a(38,"spk-toggle",6),l(39," Thursday "),p(40,"input",31),o(),a(41,"spk-toggle",6),l(42," Friday "),p(43,"input",32),o(),a(44,"spk-toggle",6),l(45," Saturday "),p(46,"input",33),o(),a(47,"spk-toggle",6),l(48," Sunday "),p(49,"input",34),o()()(),v()}if(t&2){let e=m();s(20),d("displayFn",e.displayFn),s(3),T(e.unitOptions),s(2),d("disallowToggle",!0)}}var V=new I,kt=[{key:"s",label:"Seconds"},{key:"m",label:"Minutes"},{key:"h",label:"Hours"},{key:"D",label:"Days"},{key:"W",label:"Weeks"},{key:"M",label:"Months"},{key:"Y",label:"Years"}],vt=(t={autoRun:!1,nextTime:{time:"13:00",date:new Date().toISOString().split("T")[0]},runAgain:{repeatValue:1,repeatUnit:"D",allowedDays:{mon:!1,tue:!1,wed:!1,thu:!1,fri:!1,sat:!1,sun:!1}}})=>V.group({autoRun:V.control(t.autoRun),nextTime:V.group({time:V.control(t.nextTime.time),date:V.control(t.nextTime.date)}),runAgain:V.group({repeatValue:V.control(t.runAgain.repeatValue),repeatUnit:V.control(t.runAgain.repeatUnit),allowedDays:V.group({mon:V.control(t.runAgain.allowedDays.mon),tue:V.control(t.runAgain.allowedDays.tue),wed:V.control(t.runAgain.allowedDays.wed),thu:V.control(t.runAgain.allowedDays.thu),fri:V.control(t.runAgain.allowedDays.fri),sat:V.control(t.runAgain.allowedDays.sat),sun:V.control(t.runAgain.allowedDays.sun)})})}),tt=class t{#e=h(R);#t=h(M);#n=h(K);formRef=U.required("formRef");scheduleForm=this.#e.scheduleForm;scheduleFormSignal=this.#e.scheduleFormSignal;unitOptions=kt;displayFn(n){let e=kt.find(i=>i.key===n);return e?`${e.label}`:""}goBack(){this.#t.navigate(["source-data"],{relativeTo:this.#n.parent})}next(){this.#t.navigate(["options"],{relativeTo:this.#n.parent})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=z({type:t,selectors:[["app-schedule"]],viewQuery:function(e,i){e&1&&j(i.formRef,Qt,5),e&2&&q()},standalone:!0,features:[Q],decls:20,vars:2,consts:[["formRef",""],["timeRef",""],["dateRef",""],[3,"submit","formGroup"],[1,"title-30"],[1,"toggle-wrap"],[1,"raised","primary"],["type","checkbox","formControlName","autoRun"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["formGroupName","nextTime",1,"row-inputs"],["for","time"],["type","time","id","time","formControlName","time",3,"focus"],["spkSuffix",""],["for","date"],["type","date","id","date","formControlName","date",3,"focus"],["formGroupName","runAgain"],[1,"row-inputs"],["for","repeatValue"],["type","number","id","repeatValue","formControlName","repeatValue"],[3,"displayFn"],["type","text","id","repeatUnit","formControlName","repeatUnit"],["options",""],[3,"value"],["formGroupName","allowedDays",3,"disallowToggle"],["title",""],[1,"days-wrap"],["type","checkbox","formControlName","mon"],["type","checkbox","formControlName","tue"],["type","checkbox","formControlName","wed"],["type","checkbox","formControlName","thu"],["type","checkbox","formControlName","fri"],["type","checkbox","formControlName","sat"],["type","checkbox","formControlName","sun"]],template:function(e,i){if(e&1){let r=b();a(0,"form",3,0),y("submit",function(){return C(r),g(i.next())}),a(2,"h3",4),l(3,"Schedule"),o(),a(4,"div",5)(5,"spk-toggle",6),l(6," Automatically run backups "),p(7,"input",7),o(),a(8,"p"),l(9,"If a date was missed, the job will run as soon as possible."),o()(),f(10,Kt,50,2),a(11,"div",8)(12,"button",9),y("click",function(){return C(r),g(i.goBack())}),a(13,"spk-icon"),l(14,"arrow-left"),o(),l(15," Go back "),o(),a(16,"button",10)(17,"spk-icon"),l(18,"arrow-right"),o(),l(19," Continue "),o()()()}if(e&2){let r;d("formGroup",i.scheduleForm),s(10),_((r=i.scheduleFormSignal())!=null&&r.autoRun?-1:10)}},dependencies:[ie,J,te,ne,H,ue,we,Y,Z,X,ee,_e,ae,re,De,oe,fe,ge],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.toggle-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.days-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var Ht=["formRef"];function Yt(t,n){if(t&1&&(a(0,"option",21),l(1),o()),t&2){let e=n.$implicit;d("value",e),s(),G(e)}}function Zt(t,n){if(t&1&&(a(0,"div",14)(1,"spk-form-field"),p(2,"input",18),o(),a(3,"spk-select"),p(4,"input",19),k(5,20),D(6,Yt,2,2,"option",21,w),v(),o()()),t&2){let e=m(2);s(6),T(e.sizeOptions())}}function Jt(t,n){if(t&1){let e=b();a(0,"form",2,0),y("submit",function(){C(e);let r=m();return g(r.next())}),a(2,"h3",3),l(3,"Source Data"),o(),a(4,"app-file-tree",4)(5,"label",5),l(6,"Folder path"),o(),p(7,"input",6),o(),a(8,"app-toggle-card",7),k(9,8),l(10,"Exclude"),v(),a(11,"spk-toggle",9),l(12," Hidden files "),p(13,"input",10),o(),a(14,"spk-toggle",9),l(15," System files "),p(16,"input",11),o(),a(17,"spk-toggle",9),l(18," Temporary files "),p(19,"input",12),o(),a(20,"spk-toggle",13),y("click",function(){C(e);let r=m();return g(r.toggleFilesLargerThan())}),l(21," Files larger than "),o(),f(22,Zt,8,0,"div",14),o(),a(23,"div",15)(24,"button",16),y("click",function(){C(e);let r=m();return g(r.goBack())}),a(25,"spk-icon"),l(26,"arrow-left"),o(),l(27," Go back "),o(),a(28,"button",17)(29,"spk-icon"),l(30,"arrow-right"),o(),l(31," Continue "),o()()()}if(t&2){let e=m();d("formGroup",e.sourceDataForm),s(4),d("multiSelect",!0)("startingPath",e.getPath()),s(4),d("isActive",!0),s(12),mt("active",e.filesLargerThan()),s(2),_(e.filesLargerThan()?22:-1)}}var ce=new I,Xt=["Bytes","KB","MB","GB","TB","PB"],en=["Contains","Does not contain","Is greater than","Is less than"];var Ft=(t={path:"",excludes:{hidden:!1,system:!1,temporary:!1,filesLargerThan:null}})=>ce.group({path:ce.control(t.path),excludes:ce.group({hidden:ce.control(t.excludes.hidden),system:ce.control(t.excludes.system),temporary:ce.control(t.excludes.temporary),filesLargerThan:ce.group({size:ce.control(null),unit:ce.control(null)})})}),nt=class t{#e=h(R);#t=h(M);#n=h(K);formRef=U.required("formRef");sourceDataForm=this.#e.sourceDataForm;sourceDataFormSignal=this.#e.sourceDataFormSignal;destinationIsLoaded=this.#e.destinationIsLoaded;filesLargerThan=W(()=>this.sourceDataFormSignal()?.excludes?.filesLargerThan?.size!==null);sizeOptions=S(Xt);expressionOptions=S(en);getPath(){return this.sourceDataForm.value.path??null}toggleFilesLargerThan(){this.sourceDataForm.controls.excludes.value.filesLargerThan?.size===null?this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:50,unit:"MB"}):this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:null,unit:null})}goBack(){this.#t.navigate(["destination"],{relativeTo:this.#n.parent})}next(){this.#t.navigate(["schedule"],{relativeTo:this.#n.parent})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=z({type:t,selectors:[["app-source-data"]],viewQuery:function(e,i){e&1&&j(i.formRef,Ht,5),e&2&&q()},standalone:!0,features:[Q],decls:1,vars:1,consts:[["formRef",""],[3,"formGroup"],[3,"submit","formGroup"],[1,"title-30"],[3,"multiSelect","startingPath"],["for","path"],["type","text","id","path","tabindex","4","placeholder","Path","formControlName","path"],["formGroupName","excludes",3,"isActive"],["title",""],[1,"raised","primary"],["type","checkbox","placeholder","Hidden files","formControlName","hidden"],["type","checkbox","placeholder","System files","formControlName","system"],["type","checkbox","placeholder","Temporary files","formControlName","temporary"],[1,"raised","primary",3,"click"],["formGroupName","filesLargerThan",1,"row-inputs"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["type","number","formControlName","size"],["type","text","formControlName","unit","placeholder","Select an option..."],["options",""],[3,"value"]],template:function(e,i){e&1&&f(0,Jt,32,7,"form",1),e&2&&_(i.destinationIsLoaded()?0:-1)},dependencies:[ie,J,te,ne,H,ue,we,Y,Z,X,ee,_e,ae,oe,fe,re,De,Ue,ge],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}.row-inputs[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr min-content;gap:.5rem}.filter-inputs[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:flex-end}.filter-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.filter-inputs[_ngcontent-%COMP%] .filter-removal[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;flex:0 0}"],changeDetection:0})};var L=new I,R=class t{#e=h(M);#t=h(Ce);#n=h(gt);#i=h(je);destinationOptions=this.#t.backendModules;backupId=S(null);isSubmitting=S(!1);loadingBackup=S(!1);loadingDefaults=S(!0);destinationIsLoaded=S(!1);isNew=W(()=>this.backupId()==="new");backupDefaults=S(null);generalForm=ht();sourceDataForm=Ft();scheduleForm=vt();destinationForm=bt();optionsForm=St();selectedAdvancedFormPair=S([]);notSelectedAdvancedFormPair=S([]);destinationFormPair=S({oauthField:null,custom:[],dynamic:[],advanced:[]});sourceDataFormSignal=Se(this.sourceDataForm.valueChanges);destinationFormSignal=Se(this.destinationForm.valueChanges);encryptionFieldSignal=Se(this.generalForm.controls.encryption.valueChanges);scheduleFormSignal=Se(this.scheduleForm.valueChanges);encryptionOptions=W(()=>{let n=this.#t.systemInfo()?.EncryptionModules??[];return[Je,...n]});init(n="new"){this.backupId.set(n),n!=="new"?this.getBackup(n):this.getDefaults()}submit(){this.isSubmitting.set(!0);let n=this.#m(),e=this.backupId();e==="new"||!e?this.#n.postApiV1Backups({requestBody:n}).pipe(ye(()=>this.isSubmitting.set(!1))).subscribe({next:i=>{console.log("submitted res",i),this.exit()},error:i=>{console.error("submitted error",i)}}):this.#n.putApiV1BackupById({id:e,requestBody:n}).pipe(ye(()=>this.isSubmitting.set(!1))).subscribe({next:i=>{console.log("submitted res",i),this.exit()},error:i=>{console.error("submitted error",i)}})}exit(){this.#d(),this.#e.navigate(["/"])}getDefaults(){this.loadingDefaults.set(!0),this.#n.getApiV1Backupdefaults().pipe(lt(1),ye(()=>this.loadingDefaults.set(!1))).subscribe({next:n=>{this.#r(n.Schedule),this.#s(n.Backup),this.backupDefaults.set(n),this.destinationIsLoaded.set(!0)}})}getBackup(n){this.loadingBackup.set(!0),this.#n.getApiV1BackupById({id:n}).pipe(ye(()=>this.loadingBackup.set(!1))).subscribe({next:e=>{this.#r(e.Schedule??null),e.Backup&&(this.#l(e.Backup),this.#a(e.Backup),this.#o(e.Backup),this.#s(e.Backup)),this.destinationIsLoaded.set(!0)}})}#o(n){let e=n.Sources??"",i=n.Filters?.map(N=>`${N.Include?"":"-"}${N.Expression}`)??[],r=n.Settings?.find(N=>N.Name==="--exclude-files-attributes")?.Value??"",c=n.Settings?.find(N=>N.Name==="--skip-files-larger-than")??null,F=c?.Value.replace(/[0-9]/g,"")??null,B=c?.Value.replace(/[^0-9]/g,"")??null,le={path:[...e,...i].join("\0"),excludes:{hiddenFiles:r.includes("hidden"),systemFiles:r.includes("system"),tempFiles:r.includes("temporary"),filesLargerThan:F&&B?{size:parseInt(B),unit:F.toUpperCase()}:null}};this.sourceDataForm.patchValue(le)}#a(n){let e=n.TargetURL?yt(n.TargetURL):null;e&&this.addDestinationFormGroup(e.destinationType,{custom:e.custom,dynamic:e.dynamic,advanced:e.advanced})}#l(n){let e=n.Settings?.find(r=>r.Name==="encryption-module"),i=e?.Value&&e.Value.length?e.Value:"none";this.generalForm.patchValue({name:n.Name??"",description:n.Description??"",encryption:i})}#r(n){if(!n){this.scheduleForm.patchValue({autoRun:!0});return}let e=this.#i.fromString(n.Repeat)??null,r={nextTime:this.#c(n.Time),runAgain:{repeatValue:e?.value??1,repeatUnit:e?.unit??"D",allowedDays:{mon:n.AllowedDays?.includes("mon")??!1,tue:n.AllowedDays?.includes("tue")??!1,wed:n.AllowedDays?.includes("wed")??!1,thu:n.AllowedDays?.includes("thu")??!1,fri:n.AllowedDays?.includes("fri")??!1,sat:n.AllowedDays?.includes("sat")??!1,sun:n.AllowedDays?.includes("sun")??!1}}};this.scheduleForm.patchValue(r)}#s(n){let e=["--no-encryption","--exclude-files-attributes","--skip-files-larger-than"];n.Settings?.forEach(i=>{if(i.Name==="encryption-module")return this.generalForm.controls.encryption.setValue(i.Value??"None");i.Name&&e.includes(i.Name)||i.Name&&i.Value&&this.optionsForm.controls.advancedOptions.push(et(i.Name,i.Value))})}mapPub(){this.#m()}#m(){let n=this.generalForm.value,e=this.optionsForm.value,i=this.scheduleForm.value,r=this.sourceDataForm.value,F=this.destinationForm.value.destinations?.length?this.#p(this.destinationForm.controls.destinations):[],B=null;i.runAgain?.repeatUnit&&i.runAgain?.repeatValue&&(B=this.#i.toString(i.runAgain.repeatValue,i.runAgain.repeatUnit));let le=i.runAgain?.allowedDays?Object.entries(i.runAgain?.allowedDays).filter(([x,E])=>E).map(([x,E])=>x):[],N=r.path?.split("\0")??[],Ge=e.advancedOptions?.map(x=>({Name:x.name??null,Value:x.value&&x.value.length?x.value.toString():null}))??[],Fe=[n.encryption==="none"?{Name:"--no-encryption",Value:"True"}:{Name:"encryption-module",Value:n.encryption??null},...Ge.filter(x=>x.Name&&x.Value)],P=Object.entries(r.excludes??{}).filter(([x,E])=>E&&x!=="filesLargerThan").map(([x])=>x),u=r.excludes?.filesLargerThan;return P.length&&Fe.push({Name:"--exclude-files-attributes",Value:P.join(",")}),u&&u.size!==null&&u.unit!==null&&Fe.push({Name:"--skip-files-larger-than",Value:`${u.size}${u.unit}`}),{Backup:{Name:n.name,Description:n.description,TargetURL:F[0]??null,Sources:N.filter(x=>!x.startsWith("-")),Settings:Fe,Filters:N.filter(x=>x.startsWith("-")).map((x,E)=>({Order:E,Include:!1,Expression:x.slice(1)}))},Schedule:i.autoRun?null:{Repeat:B,Time:i.nextTime?.date?new Date(`${i.nextTime.date}T${i.nextTime?.time||"00:00:00"}`).toISOString():null,AllowedDays:le}}}#p(n){return n.controls.map(e=>{if(!e.controls.advanced)return Oe(e.value);let i=Object.keys(e.controls.advanced.controls).filter(r=>e.controls.advanced.controls[r].dirty);return Oe(Me(se({},e.value),{advanced:i.reduce((r,c)=>(r[c]=e.controls.advanced.controls[c].value,r),{})}))})}#c(n){if(!n||n?.indexOf("T")===-1)return{time:n??"13:00"};let e=new Date(n),i={time:`${(""+e.getHours()).padStart(2,"0")}:${(""+e.getMinutes()).padStart(2,"0")}`};return n.indexOf("T")!==-1&&(i.date=e.toISOString().split("T")[0]),i}addDestinationFormGroup(n,e){let i=this.destinationOptions().find(P=>P.Key===n);if(!i||!i.Options)return;let r=Pe.hasOwnProperty(n)&&Pe[n],c=r&&r.customFields?r.customFields:{},F=r&&r.dynamicFields?r.dynamicFields:[],B=r&&r.advancedFields?r.advancedFields:[],le=r&&r.oauthField?r.oauthField:null;this.destinationFormPair.set({oauthField:le,custom:[],dynamic:[],advanced:[]}),this.selectedAdvancedFormPair.set([]);let N=L.group({}),Ge=L.group({}),He=L.group({});if(c)for(n in c){let Fe=c[n],{formElement:P}=Fe,u=rt(Fe,["formElement"]);N.addControl(n,P(e?.custom[n])),this.destinationFormPair.update(x=>(x.custom.push(u),x))}for(let P=0;P<i.Options.length;P++){let u=i.Options[P];if(u.Deprecated)continue;let x=F.includes(u.Name),E=x?Ge:He;this.destinationFormPair.update(Ve=>(Ve[x?"dynamic":"advanced"].push({name:u.Name,type:u.Type,shortDescription:u.ShortDescription??void 0,longDescription:u.LongDescription??void 0,options:u.ValidValues}),Ve));let de=(x?e?.dynamic[u.Name]:e?.advanced[u.Name])??u.DefaultValue;if(u.Type==="String"||u.Type==="Password"||u.Type==="Enumeration"||u.Type==="Path"){E.addControl(u.Name,L.control(de));continue}if(u.Type==="Size"){let Ve=de.replace(/[0-9]/g,""),at=de.replace(/[^0-9]/g,"");E.addControl(u.Name,L.group({size:L.control(at?parseInt(at):50),unit:L.control(Ve?Ve.toUpperCase():"MB")}))}if(u.Type==="Integer"){E.addControl(u.Name,L.control(de?parseInt(de):0));continue}if(u.Type==="Boolean"){E.addControl(u.Name,L.control(de==="true"));continue}if(u.Type==="Flags"){E.addControl(u.Name,L.control(de??""));continue}u.Type==="Timespan"&&E.addControl(u.Name,L.control(de,[he.pattern(/([-+]?\d{1,3}[smhDWMY])+/)]))}this.destinationForm.controls.destinations.length!==0&&this.destinationForm.controls.destinations.removeAt(0),this.destinationFormPair.update(P=>({oauthField:P.oauthField,custom:P.custom,dynamic:P.dynamic.sort((u,x)=>F.indexOf(u.name)-F.indexOf(x.name)),advanced:P.advanced.sort((u,x)=>{let E=B.indexOf(u.name),Ae=B.indexOf(x.name);return E===-1&&Ae!==-1?1:E!==-1&&Ae===-1?-1:E-Ae})})),this.notSelectedAdvancedFormPair.set(this.destinationFormPair().advanced),this.destinationForm.controls.destinations.push(wt({key:i.Key,customGroup:N,dynamicGroup:Ge,advancedGroup:He}))}#d(){this.generalForm.reset(),this.sourceDataForm.reset(),this.scheduleForm.reset(),this.destinationForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=be({token:t,factory:t.\u0275fac,providedIn:"root"})};var tn=["formRef"],nn=(t,n,e,i)=>({destination:t,destinationType:n,index:e,formGroupName:"custom",oauthField:i}),ot=t=>({$implicit:t}),on=(t,n,e,i)=>({destination:t,destinationType:n,index:e,formGroupName:"dynamic",oauthField:i}),an=(t,n,e,i)=>({destination:t,destinationType:n,index:e,formGroupName:"advanced",oauthField:i});function rn(t,n){if(t&1){let e=b();a(0,"p",9),y("click",function(){C(e);let r=m(2);return g(r.removeDestinationFormGroup(r.destinationCount()-1))}),l(1," Wanna select another destination? "),a(2,"span",10),l(3,"Click here"),o()()}}function ln(t,n){if(t&1){let e=b();a(0,"div",11)(1,"div",12),y("click",function(){C(e);let r=m(2);return g(r.addDestinationFormGroup("file"))}),a(2,"h3"),l(3,"File system"),o(),a(4,"p"),l(5,"Store backups on your local file system."),o()(),a(6,"div",12),y("click",function(){C(e);let r=m(2);return g(r.addDestinationFormGroup("gcs"))}),a(7,"h3"),l(8,"Google Cloud Storage"),o(),a(9,"p"),l(10,"Store backups in Google Cloud Storage."),o()(),a(11,"div",12),y("click",function(){C(e);let r=m(2);return g(r.addDestinationFormGroup("s3"))}),a(12,"h3"),l(13,"S3 compatible bucket"),o(),a(14,"p"),l(15,"Store backups in any S3 compatible bucket."),o()(),a(16,"div",12),y("click",function(){C(e);let r=m(2);return g(r.addDestinationFormGroup("ssh"))}),a(17,"h3"),l(18,"SSH"),o(),a(19,"p"),l(20,"Store backups in SSH."),o()(),a(21,"div",12),y("click",function(){C(e);let r=m(2);return g(r.addDestinationFormGroup("googledrive"))}),a(22,"h3"),l(23,"Google Drive"),o(),a(24,"p"),l(25,"Store backups in Google Drive."),o()()(),a(26,"p"),l(27,"More destinations are coming soon."),o()}}function sn(t,n){t&1&&Re(0)}function mn(t,n){if(t&1&&f(0,sn,1,0,"ng-container",15),t&2){let e,i=n.$implicit,r=n.$index;m(2);let c=xe(6),F=m(2);d("ngTemplateOutlet",c)("ngTemplateOutletContext",Be(7,ot,$e(2,nn,i,(e=F.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,r,F.destinationFormPair().oauthField)))}}function pn(t,n){if(t&1&&(k(0),D(1,mn,1,9,"ng-container",null,w),v()),t&2){let e=m(3);s(),T(e.destinationFormPair().custom)}}function cn(t,n){t&1&&Re(0)}function dn(t,n){if(t&1&&f(0,cn,1,0,"ng-container",15),t&2){let e,i=n.$implicit,r=n.$index;m(2);let c=xe(6),F=m(2);d("ngTemplateOutlet",c)("ngTemplateOutletContext",Be(7,ot,$e(2,on,i,(e=F.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,r,F.destinationFormPair().oauthField)))}}function un(t,n){if(t&1&&(k(0),D(1,dn,1,9,"ng-container",null,w),v()),t&2){let e=m(3);s(),T(e.destinationFormPair().dynamic)}}function _n(t,n){if(t&1){let e=b();a(0,"button",20),y("click",function(){let r=C(e).$implicit,c=m(4);return g(c.addAdvancedFormPair(r))}),l(1),o()}if(t&2){let e=n.$implicit;s(),A(" ",e.name," ")}}function fn(t,n){t&1&&Re(0)}function Cn(t,n){if(t&1&&f(0,fn,1,0,"ng-container",15),t&2){let e,i=n.$implicit,r=n.$index;m(2);let c=xe(6),F=m(2);d("ngTemplateOutlet",c)("ngTemplateOutletContext",Be(7,ot,$e(2,an,i,(e=F.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,r,F.destinationFormPair().oauthField)))}}function gn(t,n){if(t&1&&(a(0,"app-toggle-card",14),k(1,16),l(2," Advanced options "),a(3,"spk-menu")(4,"button",17),l(5," Add advanced option "),a(6,"spk-icon"),l(7,"plus"),o()(),k(8,18),D(9,_n,2,1,"button",19,w),v(),o(),v(),k(11),D(12,Cn,1,9,"ng-container",null,w),v(),o()),t&2){let e=m(3);d("disallowToggle",!0),s(9),T(e.notSelectedAdvancedFormPair()),s(3),T(e.selectedAdvancedFormPair())}}function yn(t,n){if(t&1&&(a(0,"spk-icon",27),l(1," question "),o()),t&2){let e=m(2).$implicit;$("spk-tooltip-primary",e.destination.longDescription)}}function xn(t,n){if(t&1&&(a(0,"app-file-tree",22)(1,"label",26),l(2),f(3,yn,2,1,"spk-icon",27),o(),p(4,"input",28),o()),t&2){let e,i=m().$implicit,r=m(3);d("startingPath",r.getFormFieldValue(i.index,i.formGroupName,i.destination.name)),s(),pt("for","destination-",i.formGroupName,"-",i.formGroupName,"-",i.index,""),s(),A(" ",(e=i.destination.shortDescription)!==null&&e!==void 0?e:i.destination.name," "),s(),_(i.destination.longDescription?3:-1),s(),O("id","destination-",i.formGroupName,"-",i.index,""),me("formControlName",i.destination.name)}}function hn(t,n){if(t&1&&(a(0,"spk-icon",27),l(1," question "),o()),t&2){let e=m(2).$implicit;$("spk-tooltip-primary",e.destination.longDescription)}}function Sn(t,n){t&1&&(a(0,"spk-icon",29),l(1,"link"),o())}function kn(t,n){t&1&&(a(0,"spk-icon",29),l(1,"textbox"),o())}function vn(t,n){if(t&1&&(a(0,"spk-form-field")(1,"label",26),l(2),f(3,hn,2,1,"spk-icon",27),o(),p(4,"input",28),f(5,Sn,2,0,"spk-icon",29)(6,kn,2,0,"spk-icon",29),o()),t&2){let e,i=m().$implicit;s(),O("for","destination-",i.formGroupName,"-",i.index,""),s(),A(" ",(e=i.destination.shortDescription)!==null&&e!==void 0?e:i.destination.name," "),s(),_(i.destination.longDescription?3:-1),s(),O("id","destination-",i.formGroupName,"-",i.index,""),me("formControlName",i.destination.name),s(),_(i.destination.type==="Path"?5:6)}}function Fn(t,n){if(t&1){let e=b();a(0,"span",33),y("click",function(){C(e);let r=m(2).$implicit,c=m(3);return g(c.oauthStartTokenCreation(r.destinationType))}),l(1,"AuthID"),o()}}function bn(t,n){t&1&&(a(0,"spk-icon",29),l(1,"password"),o())}function wn(t,n){if(t&1){let e=b();a(0,"spk-icon",34),y("click",function(){C(e);let r=m(2).$implicit;return g(r.destination.showPassword=!r.destination.showPassword)}),l(1," eye "),o()}}function Dn(t,n){if(t&1){let e=b();a(0,"spk-icon",34),y("click",function(){C(e);let r=m(2).$implicit;return g(r.destination.showPassword=!r.destination.showPassword)}),l(1," eye-slash "),o()}}function Tn(t,n){if(t&1&&(a(0,"spk-form-field")(1,"label",26),l(2),o(),p(3,"input",30),f(4,Fn,2,0,"span",31)(5,bn,2,0,"spk-icon",29)(6,wn,2,0,"spk-icon",32)(7,Dn,2,0,"spk-icon",32),o()),t&2){let e,i=m().$implicit;s(),O("for","destination-",i.formGroupName,"-",i.index,""),s(),ct(" ",(e=i.destination.shortDescription)!==null&&e!==void 0?e:i.destination.name," -- ",i.oauthField," ",i.destinationType," ",i.destination.name," "),s(),O("id","destination-",i.formGroupName,"-",i.index,""),me("formControlName",i.destination.name),d("type",i.destination.showPassword?"text":"password"),s(),_(i.oauthField===i.destination.name?4:5),s(2),_(i.destination.showPassword?6:7)}}function En(t,n){if(t&1&&(a(0,"spk-icon",27),l(1," question "),o()),t&2){let e=m(2).$implicit;$("spk-tooltip-primary",e.destination.longDescription)}}function On(t,n){if(t&1&&(a(0,"option",37),l(1),o()),t&2){let e=n.$implicit;d("value",e),s(),G(e)}}function Nn(t,n){if(t&1&&(a(0,"spk-select")(1,"label",26),l(2),f(3,En,2,1,"spk-icon",27),o(),p(4,"input",35),k(5,36),D(6,On,2,2,"option",37,w),v(),o()),t&2){let e,i=m().$implicit;s(),O("for","destination-",i.formGroupName,"-",i.index,""),s(),A(" ",(e=i.destination.shortDescription)!==null&&e!==void 0?e:i.destination.name," "),s(),_(i.destination.longDescription?3:-1),s(),O("id","destination-",i.formGroupName,"-",i.index,""),me("formControlName",i.destination.name),s(2),T(i.destination.options)}}function Vn(t,n){if(t&1&&(a(0,"spk-icon",27),l(1," question "),o()),t&2){let e=m(2).$implicit;$("spk-tooltip-primary",e.destination.longDescription)}}function Pn(t,n){if(t&1&&(a(0,"option",37),l(1),o()),t&2){let e=n.$implicit;d("value",e),s(),G(e)}}function In(t,n){if(t&1&&(a(0,"div",23)(1,"label",26),l(2),f(3,Vn,2,1,"spk-icon",27),o(),a(4,"div",38)(5,"spk-form-field"),p(6,"input",39),a(7,"spk-icon",29),l(8,"resize"),o()(),a(9,"spk-select"),p(10,"label")(11,"input",40),k(12,36),D(13,Pn,2,2,"option",37,w),v(),o()()()),t&2){let e,i=m().$implicit,r=m(3);d("formGroupName",i.destination.name),s(),O("for","destination-",i.formGroupName,"-",i.index,""),s(),A(" ",(e=i.destination.shortDescription)!==null&&e!==void 0?e:i.destination.name," "),s(),_(i.destination.longDescription?3:-1),s(3),O("id","destination-",i.formGroupName,"-",i.index,""),s(7),T(r.sizeOptions())}}function Gn(t,n){if(t&1&&(a(0,"spk-icon",27),l(1," question "),o()),t&2){let e=m(2).$implicit;$("spk-tooltip-primary",e.destination.longDescription)}}function An(t,n){if(t&1&&(a(0,"spk-form-field")(1,"label",26),l(2),f(3,Gn,2,1,"spk-icon",27),o(),p(4,"input",41),a(5,"spk-icon",29),l(6,"numpad"),o()()),t&2){let e,i=m().$implicit;s(),O("for","destination-",i.formGroupName,"-",i.index,""),s(),A(" ",(e=i.destination.shortDescription)!==null&&e!==void 0?e:i.destination.name," "),s(),_(i.destination.longDescription?3:-1),s(),O("id","destination-",i.formGroupName,"-",i.index,""),me("formControlName",i.destination.name)}}function Mn(t,n){if(t&1&&(a(0,"spk-icon",27),l(1," question "),o()),t&2){let e=m(2).$implicit;$("spk-tooltip-primary",e.destination.longDescription)}}function Rn(t,n){if(t&1&&(a(0,"spk-toggle",24)(1,"label",26),l(2),f(3,Mn,2,1,"spk-icon",27),o(),p(4,"input",42),o()),t&2){let e,i=m().$implicit;s(),O("for","destination-",i.formGroupName,"-",i.index,""),s(),A(" ",(e=i.destination.shortDescription)!==null&&e!==void 0?e:i.destination.name," "),s(),_(i.destination.longDescription?3:-1),s(),O("id","destination-",i.formGroupName,"-",i.index,""),me("formControlName",i.destination.name)}}function Bn(t,n){if(t&1&&(a(0,"spk-icon",27),l(1," question "),o()),t&2){let e=m(2).$implicit;$("spk-tooltip-primary",e.destination.longDescription)}}function $n(t,n){t&1&&(a(0,"spk-option",44),l(1,"None"),o()),t&2&&d("value","None")}function Ln(t,n){if(t&1&&(a(0,"spk-option",37),l(1),p(2,"spk-checkbox",45),o()),t&2){let e=m().$implicit;d("value",e),s(),A(" ",e," ")}}function zn(t,n){if(t&1&&f(0,$n,2,1,"spk-option",44)(1,Ln,3,2,"spk-option",37),t&2){let e=n.$implicit;_(e==="None"?0:1)}}function Un(t,n){if(t&1&&(a(0,"spk-select",25)(1,"label",26),l(2),f(3,Bn,2,1,"spk-icon",27),o(),p(4,"input",43),k(5,36),D(6,zn,2,1,null,null,w),v(),o()),t&2){let e,i=m().$implicit;d("selectMultiple",!0),s(),O("for","destination-",i.formGroupName,"-",i.index,""),s(),A(" ",(e=i.destination.shortDescription)!==null&&e!==void 0?e:i.destination.name," "),s(),_(i.destination.longDescription?3:-1),s(),me("formControlName",i.destination.name),s(2),T(i.destination.options)}}function jn(t,n){if(t&1&&(a(0,"spk-icon",27),l(1," question "),o()),t&2){let e=m(2).$implicit;$("spk-tooltip-primary",e.destination.longDescription)}}function qn(t,n){if(t&1&&(a(0,"spk-form-field")(1,"label",26),l(2),f(3,jn,2,1,"spk-icon",27),o(),p(4,"input",28)(5,"span",46),o()),t&2){let e,i=m().$implicit;s(),O("for","destination-",i.formGroupName,"-",i.index,""),s(),A(" ",(e=i.destination.shortDescription)!==null&&e!==void 0?e:i.destination.name," "),s(),_(i.destination.longDescription?3:-1),s(),O("id","destination-",i.formGroupName,"-",i.index,""),me("formControlName",i.destination.name)}}function Qn(t,n){if(t&1&&(k(0,21),f(1,xn,5,11,"app-file-tree",22)(2,vn,7,10,"spk-form-field")(3,Tn,8,14,"spk-form-field")(4,Nn,8,9,"spk-select")(5,In,15,9,"div",23)(6,An,7,9,"spk-form-field")(7,Rn,5,9,"spk-toggle",24)(8,Un,8,7,"spk-select",25)(9,qn,6,9,"spk-form-field"),v()),t&2){let e=n.$implicit;d("formGroupName",e.formGroupName),s(),_(e.destination.type==="file-tree"?1:e.destination.type==="String"||e.destination.type==="Path"?2:e.destination.type==="Password"?3:e.destination.type==="Enumeration"?4:e.destination.type==="Size"?5:e.destination.type==="Integer"?6:e.destination.type==="Boolean"?7:e.destination.type==="Flags"?8:e.destination.type==="Timespan"?9:-1)}}function Wn(t,n){if(t&1&&(k(0,5)(1,13),f(2,pn,3,0,"ng-container")(3,un,3,0,"ng-container")(4,gn,14,1,"app-toggle-card",14)(5,Qn,10,2,"ng-template",null,1,dt),v()()),t&2){let e=m(2);s(2),_(e.destinationFormPair().custom.length?2:-1),s(),_(e.destinationFormPair().dynamic.length?3:-1),s(),_(e.destinationFormPair().advanced.length?4:-1)}}function Kn(t,n){if(t&1){let e=b();a(0,"form",3,0),y("submit",function(){C(e);let r=m();return g(r.next())}),a(2,"header")(3,"h3",4),l(4,"Backup destination"),o(),f(5,rn,4,0,"p"),o(),f(6,ln,28,0)(7,Wn,7,3,"ng-container",5),a(8,"div",6)(9,"button",7),y("click",function(){C(e);let r=m();return g(r.goBack())}),a(10,"spk-icon"),l(11,"arrow-left"),o(),l(12," Go back "),o(),a(13,"button",8)(14,"spk-icon"),l(15,"arrow-right"),o(),l(16," Continue "),o()()()}if(t&2){let e,i=m();d("formGroup",i.destinationForm),s(5),_(i.destinationCount()>0?5:-1),s(),_(i.destinationCount()===0?6:-1),s(),_(!((e=i.destinationFormSignal())==null||e.destinations==null)&&e.destinations.length?7:-1)}}var Hn=["Bytes","KB","MB","GB","TB","PB"],Ke=new I,bt=(t={destinations:[]})=>Ke.group({destinations:Ke.array(t.destinations)}),wt=({key:t,customGroup:n,dynamicGroup:e,advancedGroup:i})=>Ke.group({destinationType:Ke.control(t),custom:n,dynamic:e,advanced:i}),it=class t{#e=h(M);#t=h(K);#n=h(Ce);#i=h(_t);#o=h(R);formRef=U.required("formRef");sysIsLoaded=this.#n.isLoaded;destinationIsLoaded=this.#o.destinationIsLoaded;destinationForm=this.#o.destinationForm;destinationFormPair=this.#o.destinationFormPair;selectedAdvancedFormPair=this.#o.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#o.notSelectedAdvancedFormPair;destinationOptions=this.#o.destinationOptions;destinationFormSignal=this.#o.destinationFormSignal;destinationCount=W(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=S(Hn);getFormFieldValue(n,e,i){return((this.destinationForm.controls.destinations.controls?.[n]).controls?.[e]).controls[i].value}addDestinationFormGroup(n){this.#o.addDestinationFormGroup(n)}addAdvancedFormPair(n){this.selectedAdvancedFormPair.update(e=>(e.push(n),e)),this.notSelectedAdvancedFormPair.update(e=>(e=e.filter(i=>i.name!==n.name),e))}targetUrl=W(()=>{let n=this.destinationFormSignal()?.destinations?.[0];return n?Oe(n):""});mapToTargetUrl(n){return Oe(n.value)}removeDestinationFormGroup(n){this.destinationForm.controls.destinations.removeAt(n)}displayFn(n){let e=this.destinationOptions().find(i=>i.Key===n);return e?`${e.DisplayName}`:""}goBack(){this.#e.navigate(["general"],{relativeTo:this.#t.parent})}next(){this.#e.navigate(["source-data"],{relativeTo:this.#t.parent})}#a=S("https://duplicati-oauth-handler.appspot.com/").asReadonly();#l=S(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#r=S(!1);#s=S(null);keyCreation(){}oauthStartTokenCreation(n){this.#r.set(!0);let e=450,i=600,r=this.#a()+"?type="+n+"&token="+this.#l(),c=screen.width/2-e/2,F=screen.height/2-i/2,B=window.open(r,"_blank","height="+i+",width="+e+",menubar=0,status=0,titlebar=0,toolbar=0,left="+c+",top="+F);B?.addEventListener("blur",le=>{console.log("event blur",le)}),B?.addEventListener("beforeunload",le=>{console.log("event beforeunload",le),this.#i.get(this.#a()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#l()}}).pipe(ye(()=>this.#r.set(!1))).subscribe({next:N=>{console.log("res",N),N?.authid&&this.#s.set(N.authid)}})})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=z({type:t,selectors:[["app-destination"]],viewQuery:function(e,i){e&1&&j(i.formRef,tn,5),e&2&&q()},standalone:!0,features:[Q],decls:1,vars:1,consts:[["formRef",""],["fieldTemplate",""],[3,"formGroup"],[3,"submit","formGroup"],[1,"title-30"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile",3,"click"],["formGroupName","0"],[3,"disallowToggle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title",""],["spk-button","","type","button",1,"outlined","small"],["menu",""],["spk-menu-item","","type","button"],["spk-menu-item","","type","button",3,"click"],[3,"formGroupName"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],[3,"for"],["spk-tooltip-right",""],["type","text",3,"id","formControlName"],["spkPrefix",""],[3,"type","id","formControlName"],["spkPrefix","",1,"link"],["spkSuffix","",1,"clickable"],["spkPrefix","",1,"link",3,"click"],["spkSuffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],["options",""],[3,"value"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"],["spkError",""]],template:function(e,i){e&1&&f(0,Kn,17,4,"form",2),e&2&&_(i.destinationOptions().length&&i.sysIsLoaded()&&i.destinationIsLoaded()?0:-1)},dependencies:[ie,J,te,ne,H,ue,we,Y,Z,X,ee,_e,Le,ut,ae,re,ze,ft,Ct,oe,De,ge,Ue],styles:["[_nghost-%COMP%]{display:block}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1);background-color:var(--base-level-20);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[spkprefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}"],changeDetection:0})};export{bt as a,wt as b,it as c,ht as d,Je as e,Ze as f,St as g,et as h,Xe as i,vt as j,tt as k,Ft as l,nt as m,R as n};
|
package/chunk-KCVUEWQV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$a as I,$b as k,Ab as V,Bb as L,Db as b,Eb as J,Fb as K,Jb as m,Oa as _,R as $,Ra as U,Ua as c,Va as F,Wa as D,X as T,Z as f,a as B,b as R,bb as X,bc as O,cb as W,db as H,eb as q,fb as A,gb as z,ha as d,hb as G,ia as u,ib as Y,jb as l,kb as a,kc as Z,lb as M,ma as Q,pb as E,qb as S,rb as p,sa as N,sb as g,ta as v,tb as r,ua as P}from"./chunk-RBNO3K72.js";var y=["*"];var te=["spk-button",""],ie=["inputWrap"];var ne=[[["label"]],[["","spkPrefix",""]],[["","spkTextPrefix",""]],[["input"]],[["textarea"]],[["","spkTextSuffix",""]],[["","spkSuffix",""]],[["","spkError",""]],[["","spkHint",""]]],oe=["label","[spkPrefix]","[spkTextPrefix]","input","textarea","[spkTextSuffix]","[spkSuffix]","[spkError]","[spkHint]"],se=["actionRef"],re=["menuRef"],le=["*",[["","menu",""]]],ae=["*","[menu]"];var ce=["optionsRef"],pe=["formFieldWrapper"],de=[[["label"]],[["input"]],[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]],[["","placeholder-text",""]],[["","options",""]]],ue=["label","input","[deselect-indicator]","[search-indicator]","[open-indicator]","[placeholder-text]","[options]"];function he(n,x){if(n&1){let e=E();l(0,"spk-chip",11),S("click",function(i){let o=d(e).$implicit,s=p(3);return u(s.toggleOption(o,i))}),b(1),l(2,"spk-icon"),b(3,"x-circle"),a()()}if(n&2){let e,t=x.$implicit,i=p(3);X("ngClass",i.chipClass()),_(),K(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function fe(n,x){if(n&1&&G(0,he,4,2,"spk-chip",10,z),n&2){let e=p(2);Y(e.inputValue().split(","))}}function me(n,x){if(n&1&&(l(0,"div",5),I(1,fe,2,0),a()),n&2){let e=p();_(),A(e.inputValue().length>0?1:-1)}}function ge(n,x){if(n&1&&(l(0,"div",5),b(1),a()),n&2){let e=p();_(),J(e._displayValue())}}function ve(n,x){if(n&1){let e=E();l(0,"div",12),S("click",function(i){d(e);let o=p();return u(o.deselect(i))}),r(1,2),l(2,"spk-icon",13),b(3,"x-circle"),a()()}}function Se(n,x){n&1&&(l(0,"div",7),r(1,3),l(2,"spk-icon",13),b(3,"magnifying-glass"),a()())}function Ce(n,x){if(n&1&&(l(0,"div",14),r(1,4),l(2,"spk-icon",13),b(3,"caret-down"),a()()),n&2){let e=p();H("open",e.isOpen())}}function _e(n,x){if(n&1){let e=E();l(0,"div",15,2)(2,"div",16),S("click",function(){d(e);let i=p();return u(i.close())}),a(),l(3,"div",17)(4,"div",18),r(5,5),a(),r(6,6),a()()}if(n&2){let e=p();q(e.optionsStyle()),H("active",e.delayedIsOpen())}}var ke=["dragImageElement"],ye=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],xe=["[sidenav]","[sidenav-closed-topbar]","*"];function we(n,x){if(n&1){let e=E();l(0,"div",7),S("drop",function(i){d(e);let o=p();return u(o.drop(i))})("dragover",function(i){d(e);let o=p();return u(o.dragOver(i))})("dragenter",function(){d(e);let i=p();return u(i.dragEnter())})("dragleave",function(){d(e);let i=p();return u(i.dragLeave())}),a()}}function De(n,x){if(n&1){let e=E();l(0,"div",8),S("dragstart",function(i){d(e);let o=p();return u(o.dragStart(i))})("dragend",function(i){d(e);let o=p();return u(o.dragEnd(i))})("drag",function(i){d(e);let o=p();return u(o.drag(i))})("touchstart",function(i){d(e);let o=p();return u(o.touchStart(i))})("touchmove",function(i){d(e);let o=p();return u(o.touchMove(i))})("touchend",function(i){d(e);let o=p();return u(o.touchEnd(i))})("touchcancel",function(i){d(e);let o=p();return u(o.touchCancel(i))}),a()}}var ee=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-icon"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})();var Ye=(()=>{class n{constructor(){this.alertHistory=c([]),this.alertHistoryIsOpen=c(!1),this.alertHistoryIsHidden=c(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warning",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=crypto.randomUUID();this.alertHistory.update(i=>[R(B({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>R(B({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>R(B({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>R(B({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Je=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-button-group"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})(),Ke=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["","spk-button",""]],standalone:!0,features:[m],attrs:te,ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})(),Ze=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-card"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})(),et=(()=>{class n{#e=T(P);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},standalone:!0,features:[m],ngContentSelectors:y,decls:4,vars:0,consts:[[1,"box"],[1,"inherit"]],template:function(t,i){t&1&&(g(),l(0,"div",0)(1,"spk-icon",1),b(2,"check"),a()(),r(3))},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})(),Ee=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-chip"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})();var be=(()=>{class n{#e=T(P);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let h=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},w=function(){window.setTimeout(h,0)};var i=h,o=w;let s=this.#e.nativeElement.querySelector("textarea");s.addEventListener("change",h),s.addEventListener("cut",w),s.addEventListener("paste",w),s.addEventListener("drop",w),s.addEventListener("keydown",w),s.focus(),s.select(),h()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},standalone:!0,features:[m],ngContentSelectors:oe,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-spacer"],[1,"suffix-spacer"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(g(ne),r(0),l(1,"div",0)(2,"div",1),r(3,1),r(4,2),a(),M(5,"div",2),r(6,3),r(7,4),r(8,5),M(9,"div",3),r(10,6),a(),l(11,"div",4)(12,"div",5),r(13,7),a(),l(14,"div",6),r(15,8),a()())},encapsulation:2,changeDetection:0})}}return n})(),tt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-list"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})(),it=(()=>{class n{constructor(){this.injector=T(Q),this.#e=8,this.above=v(!1),this.right=v(!1),this.closeAction=N(),this.isActive=D(!1),this.optionInFocus=D(null),this.actionRef=F.required("actionRef"),this.menuRef=F.required("menuRef"),this.menuEl=k(()=>this.menuRef()?.nativeElement),this.menuStyle=c({left:"0px",top:"0px"}),this.optionsElTrigger=c(!1),this.options=k(()=>{let e=this.menuEl().querySelectorAll("[option]:not([disabled])");return this.optionsElTrigger(),this.isActive(),Array.from(e)}),this.#t=c(null),this.optionElementInFocus=D(null),this.#l=c(null),this.selectedOption=D(null),this.selectedOptionIndex=D(null),this.#r=document.getElementsByTagName("body")[0],this.optionInFocusEffect=O(()=>{if(this.optionInFocus()===null&&this.#t()){this.#t()?.classList.remove("focused");return}if(this.options().length===0||this.optionInFocus()===null)return;let e=this.options().at(this.optionInFocus());this.#t()&&this.#t()?.classList.remove("focused"),e?(e.classList.add("focused"),e.scrollIntoView({block:"nearest"}),this.#t.set(e),this.optionElementInFocus.set(e)):this.optionElementInFocus.set(null)},{allowSignalWrites:!0,injector:this.injector}),this.controller=null,this.whenActive=O(()=>{this.isActive()?(this.setNewController(),this.#a(),this.calculateMenuPosition(),setTimeout(()=>{let e=this.options().findIndex(t=>t.getAttribute("value")===this.selectedOption()?.getAttribute("value"));this.optionInFocus()===null&&this.optionInFocus.set(e>-1?e:0)},0),window.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:this.controller?.signal}),window.addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:this.controller?.signal}),window.addEventListener("keydown",e=>{e.key==="ArrowDown"?this.optionInFocus()===null||this.optionInFocus()===this.options().length-1?this.optionInFocus.set(0):this.optionInFocus.set(this.optionInFocus()+1):e.key==="ArrowUp"?this.optionInFocus()===null||this.optionInFocus()===0?this.optionInFocus.set(this.options().length-1):this.optionInFocus.set(this.optionInFocus()-1):e.key==="Enter"?(this.optionElementInFocus()&&this.selectOption(this.optionElementInFocus()),this.close("selected")):e.key==="Escape"?this.close("closed"):setTimeout(()=>{this.optionInFocus.set(0),this.optionsElTrigger.set(!this.optionsElTrigger())},0)},{signal:this.controller?.signal})):this.#s()},{allowSignalWrites:!0,injector:this.injector})}#e;#t;#l;#r;setNewController(){this.controller?.abort(),this.controller=new AbortController}deselectOption(){this.#l.set(null),this.selectedOption.set(null),this.selectedOptionIndex.set(null)}setSelectedOption(e){let t=this.options().find(i=>i.hasAttribute("value")&&i.getAttribute("value")===e);t&&this.selectOption(t)}selectOption(e){this.selectedOption()&&this.#l.set(this.selectedOption()),this.selectedOption.set(e),this.selectedOptionIndex.set(this.options().indexOf(e)),e.dispatchEvent(new Event("click",{bubbles:!0,cancelable:!0}))}selectCurrentOption(){let e=this.selectedOptionIndex(),t=this.options().at(e);t&&this.selectOption(t)}#a(){this.#r.appendChild(this.menuEl())}#s(){this.#r.removeChild(this.menuEl())}ngOnInit(){this.#a()}toggle(){this.isActive.set(!this.isActive())}close(e="closed"){this.controller?.abort(),this.isActive.set(!1),this.closeAction.emit(e)}calculateMenuPosition(){if(this.isActive()){let e=this.actionRef()?.nativeElement.getBoundingClientRect(),t=this.menuEl().getBoundingClientRect(),i=e.left,o=e.bottom,s=i,h=o+this.#e,w=s+t.width>window.innerWidth,j=h+t.height>window.innerHeight;if(this.above()){let C=e.top-t.height-this.#e;C>=0&&(h=C)}else j&&(h=e.top-t.height-this.#e);if(this.right()){let C=e.right-t.width;C>=0&&(s=C)}else w&&(h=j?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:h+"px"})}}ngOnDestroy(){this.#r.contains(this.menuEl())&&this.#s()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-menu"]],viewQuery:function(t,i){t&1&&(V(i.actionRef,se,5),V(i.menuRef,re,5)),t&2&&L(2)},hostVars:2,hostBindings:function(t,i){t&2&&H("active",i.isActive())},inputs:{above:[1,"above"],right:[1,"right"],isActive:[1,"isActive"],optionInFocus:[1,"optionInFocus"],optionElementInFocus:[1,"optionElementInFocus"],selectedOption:[1,"selectedOption"],selectedOptionIndex:[1,"selectedOptionIndex"]},outputs:{closeAction:"closeAction",isActive:"isActiveChange",optionInFocus:"optionInFocusChange",optionElementInFocus:"optionElementInFocusChange",selectedOption:"selectedOptionChange",selectedOptionIndex:"selectedOptionIndexChange"},standalone:!0,features:[m],ngContentSelectors:ae,decls:8,vars:4,consts:[["actionRef",""],["menuRef",""],[1,"action",3,"click"],[1,"sparkle-popup-menu"],[1,"sparkle-menu-backdrop",3,"click"],[1,"sparkle-options",3,"click"]],template:function(t,i){if(t&1){let o=E();g(le),l(0,"div",2,0),S("click",function(){return d(o),u(i.toggle())}),r(2),a(),l(3,"div",3,1)(5,"div",4),S("click",function(){return d(o),u(i.close("closed"))}),a(),l(6,"div",5),S("click",function(){return d(o),u(i.close("selected"))}),r(7,1),a()()}t&2&&(_(3),q(i.menuStyle()),H("active",i.isActive()))},encapsulation:2,changeDetection:0})}}return n})(),nt=(()=>{class n{constructor(){this.value=v(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},standalone:!0,features:[m],decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&M(0,"div",0),t&2&&W("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),ot=(()=>{class n{#e=T(P);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},standalone:!0,features:[m],ngContentSelectors:y,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(g(),M(0,"div",0),r(1))},encapsulation:2,changeDetection:0})}}return n})();var st=(()=>{class n{constructor(){this.value=v(null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})(),Oe=["primary","accent","tertiary","warn","success"],rt=(()=>{class n{constructor(){this.#e=8,this.#t=T(U),this.#l=document.getElementsByTagName("body")[0],this.#r=T(P),this.optionsRef=F("optionsRef"),this.formFieldWrapperRef=F.required("formFieldWrapper"),this.inputWrapRef=F.required("inputWrap"),this.inputValue=D(""),this.selectMultiple=v(!1),this.hideClearButton=v(!1),this.displayValue=v(""),this.displayFn=v(null),this.above=v(!1),this.right=v(!1),this.#a=c(!1),this.#s=c(!1),this.#i=c(null),this.#c=c(""),this.#d=c(-1),this.#p=c(!1),this.#n=c(-1),this.isOpen=c(!1),this.delayedIsOpen=c(!1),this.optionsStyle=c({left:"0px",top:"0px"}),this.isSearchInput=k(()=>this.#i()?.type==="search"),this.optionsEl=k(()=>this.optionsRef()?.nativeElement),this.#o=k(()=>{this.#s();let e=this.optionsRef()?.nativeElement.querySelectorAll("option"),t=this.optionsRef()?.nativeElement.querySelectorAll("spk-option");return e?.length?Array.from(e):t?.length?Array.from(t):[]}),this.chipClass=k(()=>Array.from(this.#r.nativeElement.classList).filter(e=>Oe.includes(e)).join(" ")),this._displayValue=k(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=k(()=>this.#c()?this.#o().find(e=>e.getAttribute("value")===this.#c()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#g=O(()=>{this.#a();let e=this.#r.nativeElement.querySelector("input");e&&(this.#D(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#f()}),this.#i.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))},{allowSignalWrites:!0}),this.#v=O(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#i();e&&(e.addEventListener("focus",t=>this.open(t),{signal:this.inputController?.signal}),e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.#o().length-1?this.#n.set(this.#d()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.#o().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?this.#n()>-1&&this.selected(this.getOptionElement(this.#n())):t.key==="Tab"&&this.close(!0)},{signal:this.inputController?.signal}))}),this.#S=O(()=>{this.isOpen()&&this.#y(),setTimeout(()=>{this.delayedIsOpen.set(this.isOpen())},0)}),this.#C=O(()=>{let e=this.inputValue();this.#i()&&(this.#i().value=e??"",this.#i().dispatchEvent(new Event("input")))},{allowSignalWrites:!0}),this.#u=new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#a.set(!this.#a()),t.type==="attributes"&&t.attributeName})}#e;#t;#l;#r;#a;#s;#i;#c;#d;#p;#n;#o;#g;#v;#S;#C;ngOnInit(){this.#m(),this.#u.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.#o()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#i()&&(this.#i().value="",this.#i().dispatchEvent(new Event("input"))),this.#n.set(this.#d()),this.#p.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#i()?.blur())}selected(e){if(!e)return;let t=(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))??"",i=this.#o().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.#o().length;o++){let s=this.#o()[o];s.getAttribute("value")===t?this.#t.setAttribute(s,"selected","selected"):this.#t.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#t.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#t.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#p.set(!1),this.selectMultiple()?setTimeout(()=>this.#i()?.focus()):(this.isOpen.set(!1),this.#i()?.blur())}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){this.isSearchInput()&&this.#c()&&setTimeout(()=>this.inputValue.set(this.#c())),this.#w(),this.isOpen.set(!1),this.#p.set(!1),e||this.#i()?.blur(),this.#b(),this.#k()}open(e){e.preventDefault(),this.isOpen.set(!0),this.#m(),this.isSearchInput()&&!this.#p()?(this.#c.set(this.inputValue()),this.inputValue.set(""),this.#i().focus(),this.#i().value="",this.#i().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#i().focus(),this.#p.set(!0),this.#E(),this.#_(),this.#s.set(!this.#s()),this.#f()}#_(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,window.addEventListener("click",e=>{if(!e.target)return;let t=e.target.closest("option"),i=e.target.closest("spk-option"),o=t||i;this.#o().indexOf(o)>-1&&this.selected(o)},{signal:this.clickController?.signal})}#k(){this.clickController&&this.clickController.abort()}#y(){for(let e=0;e<this.#o().length;e++){let t=this.#o()[e];this.#t.removeClass(t,"focused"),this.#n()===e&&(this.#t.addClass(t,"focused"),t.scrollIntoView({block:"center"}))}}#f(){let e=this.#i();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.#o();for(let o=0;o<i.length;o++){let s=i[o].getAttribute("ng-reflect-value");s&&t.includes(s)?this.#t.setAttribute(i[o],"selected","selected"):this.#t.removeAttribute(i[o],"selected")}})}#m(){setTimeout(()=>{this.optionsEl()&&(this.#t.appendChild(this.#l,this.optionsEl()),this.#d.set(this.#x()),this.#s.set(!this.#s()))})}#x(){let e=this.#o();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#w(){setTimeout(()=>{this.optionsEl()&&(this.#t.removeChild(this.#l,this.optionsEl()),this.#s.set(!this.#s()))})}#u;#D(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}#E(){this.optionsOpenController=new AbortController,setTimeout(()=>this.#h()),window.addEventListener("resize",()=>this.#h(),{signal:this.optionsOpenController?.signal}),window.addEventListener("scroll",()=>this.#h(),{signal:this.optionsOpenController?.signal})}#b(){this.optionsOpenController&&this.optionsOpenController.abort()}#h(){if(this.optionsEl()){let e=this.formFieldWrapperRef()?.nativeElement.getBoundingClientRect(),t=this.optionsEl().getBoundingClientRect(),i=e.left,o=e.bottom,s=i,h=o+this.#e,w=s+t.width>window.innerWidth,j=h+t.height>window.innerHeight;if(this.above()){let C=e.top-t.height-this.#e;C>=0&&(h=C)}else j&&(h=e.top-t.height-this.#e);if(this.right()){let C=e.right-t.width;C>=0&&(s=C)}else w&&(h=j?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.optionsStyle.set({left:s+"px",top:h+"px"})}}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),this.#u.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-select"]],viewQuery:function(t,i){t&1&&(V(i.optionsRef,ce,5),V(i.formFieldWrapperRef,pe,5),V(i.inputWrapRef,ie,5)),t&2&&L(3)},inputs:{inputValue:[1,"inputValue"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange"},standalone:!0,features:[m],ngContentSelectors:ue,decls:13,vars:3,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["spkSuffix","",1,"deselect-indicator"],["spkSuffix","",1,"search-indicator"],["spkSuffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-popup-menu",3,"active","style"],[1,"small","simple",3,"ngClass"],[1,"small","simple",3,"click","ngClass"],["spkSuffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["spkSuffix","",1,"select-open-indicator"],[1,"sparkle-popup-menu"],[1,"sparkle-options-backdrop",3,"click"],[1,"sparkle-options"],[1,"sparkle-options-placerholder"]],template:function(t,i){if(t&1){let o=E();g(de),l(0,"div",null,0)(2,"spk-form-field",3),S("click",function(h){return d(o),u(i.open(h))}),r(3,0,["ngProjectAs","label",5,["label"]]),l(4,"div",4,1),I(6,me,2,1,"div",5)(7,ge,2,1,"div",5),r(8,1),a(),I(9,ve,4,0,"div",6)(10,Se,4,0,"div",7)(11,Ce,4,2,"div",8),a()(),I(12,_e,7,4,"div",9)}t&2&&(_(6),A(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),_(3),A((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11),_(3),A(i.isOpen()?12:-1))},dependencies:[be,ee,Ee,Z],encapsulation:2,changeDetection:0})}}return n})(),lt=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=v(!1),this.isOpen=D(!1),this.type=v(""),this.dragImageElement=F.required("dragImageElement"),this.dragIsEnding=c(!1),this.dragIsOnScreen=c(!0),this.isDragging=c(!1),this.dragPositionX=c(0),this.dragActualPositionX=k(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=k(()=>this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()&&this.type()==="overlay"?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=O(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#t(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#t(e)}#t(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#t(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&V(i.dragImageElement,ke,5),t&2&&L()},hostVars:8,hostBindings:function(t,i){t&2&&H("open",i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},standalone:!0,features:[m],ngContentSelectors:xe,decls:11,vars:4,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(g(ye),M(0,"div",1,0),I(2,we,1,0,"div",2),l(3,"div",3),r(4),a(),l(5,"div",4),I(6,De,1,0,"div",5),l(7,"div",6),r(8,1),a(),l(9,"main"),r(10,2),a()()),t&2&&(_(2),A(i.isDragging()?2:-1),_(3),W("transform",i.draggingStyle()),_(),A(i.disableDrag()?-1:6))},encapsulation:2,changeDetection:0})}}return n})();var at=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-stepper"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})();var ct=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-toggle"]],standalone:!0,features:[m],ngContentSelectors:y,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(g(),l(0,"div",0),M(1,"div",1),a(),r(2))},encapsulation:2,changeDetection:0})}}return n})();export{ee as a,Ye as b,Je as c,Ke as d,Ze as e,et as f,Ee as g,be as h,tt as i,it as j,nt as k,ot as l,st as m,rt as n,lt as o,at as p,ct as q};
|