@duplicati/ngclient 0.0.172 → 0.0.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-XTYBRFP6.js → chunk-25DBPKN6.js} +1 -1
- package/chunk-262ZXUG6.js +2 -0
- package/chunk-2ICSZKZG.js +1 -0
- package/chunk-3CJTIOP4.js +1 -0
- package/{chunk-DU5QSRYH.js → chunk-3JUUD7DI.js} +1 -1
- package/chunk-4WH4HUUV.js +1 -0
- package/{chunk-I5AKUAZF.js → chunk-4Y6Y4CDL.js} +1 -1
- package/chunk-56FBKSBN.js +1 -0
- package/chunk-5PCGCIX3.js +1 -0
- package/chunk-6CK3Q22R.js +1 -0
- package/{chunk-47AUYCMN.js → chunk-6FL3SK75.js} +1 -1
- package/{chunk-CCM2D4BF.js → chunk-6KLZAB4D.js} +1 -1
- package/{chunk-ZV7VPSMZ.js → chunk-6KSFCVWH.js} +1 -1
- package/chunk-6TMGVMHJ.js +1 -0
- package/chunk-7CGTOI24.js +1 -0
- package/{chunk-4PMLRVX5.js → chunk-7MMXN2DH.js} +1 -1
- package/chunk-7TAHV52M.js +1 -0
- package/chunk-AA6WAAN2.js +1 -0
- package/chunk-AEAAMLWV.js +1 -0
- package/{chunk-L4GZJLYK.js → chunk-AGPZBYW6.js} +1 -1
- package/{chunk-D2DI6ZER.js → chunk-AJXTVI3H.js} +1 -1
- package/chunk-AYN5EDSZ.js +1 -0
- package/{chunk-KBGIIJMM.js → chunk-BKANUILG.js} +1 -1
- package/chunk-BUO6CCKF.js +1 -0
- package/chunk-C7IZTEYJ.js +1 -0
- package/chunk-CGG7XWW2.js +1 -0
- package/{chunk-T6C2OUI5.js → chunk-CGKL2MHM.js} +1 -1
- package/{chunk-FCZXIW2B.js → chunk-CHUTAXTB.js} +1 -1
- package/chunk-CRO4IG3E.js +1 -0
- package/{chunk-AFUSUOJX.js → chunk-CXKDYRDJ.js} +1 -1
- package/{chunk-PDBKO5D5.js → chunk-D7TCA6E7.js} +1 -1
- package/chunk-DJRFN4KK.js +1 -0
- package/{chunk-PJAWWLYW.js → chunk-DTKWQFAK.js} +1 -1
- package/{chunk-X5FW56GT.js → chunk-EG6HQDBF.js} +1 -1
- package/chunk-ENWZTNAT.js +1 -0
- package/{chunk-W4QCGFNO.js → chunk-EWA2R7BT.js} +1 -1
- package/chunk-F2W6D4CD.js +1 -0
- package/chunk-F4FNPZVZ.js +1 -0
- package/chunk-F72THCQ7.js +2 -0
- package/{chunk-I2RHQQ3J.js → chunk-FBWFZMGL.js} +1 -1
- package/{chunk-4L4YRYBK.js → chunk-FCU2VKGV.js} +1 -1
- package/chunk-FIBRO5I3.js +2 -0
- package/chunk-FXF5TO2Q.js +2 -0
- package/{chunk-GS5QK7LF.js → chunk-GMNCWLGX.js} +1 -1
- package/chunk-GO4NSDR6.js +1 -0
- package/chunk-HCDAB4DC.js +1 -0
- package/chunk-HLHTRPKF.js +1 -0
- package/chunk-HQINXCW3.js +1 -0
- package/{chunk-XY6KVQXK.js → chunk-IH4WNUW5.js} +1 -1
- package/{chunk-HJRYTTGO.js → chunk-INXCIKUQ.js} +1 -1
- package/chunk-IUKASMIE.js +2 -0
- package/chunk-KJKCHREZ.js +1 -0
- package/{chunk-LJQN4G2O.js → chunk-L4FZSDG5.js} +1 -1
- package/chunk-L63XTN4Q.js +1 -0
- package/{chunk-M77IE672.js → chunk-LF24JF3M.js} +1 -1
- package/chunk-LUQFHR44.js +1 -0
- package/chunk-MN7DCJNE.js +1 -0
- package/{chunk-XE5OMGTJ.js → chunk-NEV6JB5M.js} +1 -1
- package/chunk-NQHKAZPY.js +1 -0
- package/chunk-NXRFZLMT.js +2 -0
- package/chunk-O4RGYUZV.js +1 -0
- package/{chunk-RKMVTPJD.js → chunk-ON2XDVR2.js} +1 -1
- package/{chunk-MZMEFIHU.js → chunk-OWEK4OHZ.js} +1 -1
- package/chunk-PF2QQ2YW.js +1 -0
- package/{chunk-TJ3WIU6Q.js → chunk-QWNOPLJC.js} +1 -1
- package/chunk-RMOTUTEQ.js +1 -0
- package/chunk-RYXU2QDS.js +1 -0
- package/{chunk-UTONS2P4.js → chunk-SD4AWG7T.js} +1 -1
- package/{chunk-CSY4BFC4.js → chunk-SGUIYI7M.js} +1 -1
- package/chunk-T5LLH46J.js +1 -0
- package/chunk-TGIQ4T6L.js +1 -0
- package/{chunk-BTVYI2KD.js → chunk-TJYZBTTS.js} +1 -1
- package/chunk-TTRWYCMU.js +1 -0
- package/chunk-TWKF3RAH.js +1 -0
- package/chunk-U3FKLHQB.js +1 -0
- package/{chunk-RECKKS2S.js → chunk-U63HBLGG.js} +1 -1
- package/chunk-W57PSM7O.js +2 -0
- package/chunk-WILUKPQ3.js +1 -0
- package/{chunk-FVVMRBPU.js → chunk-WJCV4TPS.js} +1 -1
- package/{chunk-N6SGM2XM.js → chunk-WYAWO5P3.js} +2 -2
- package/{chunk-66KMXCBD.js → chunk-XPW2U645.js} +1 -1
- package/chunk-XQN4YWSA.js +3 -0
- package/chunk-XYHHESIX.js +4 -0
- package/{chunk-646U6U3M.js → chunk-YAPF7WXQ.js} +1 -1
- package/chunk-ZG53MWIX.js +1 -0
- package/{chunk-PG2PHQWA.js → chunk-ZG7PE3JF.js} +1 -1
- package/chunk-ZT73LBZD.js +1 -0
- package/chunk-ZZLGO36S.js +1 -0
- package/index.html +2 -2
- package/{main-X4XGDJTL.js → main-TXK3N3TI.js} +1 -1
- package/package.json +1 -1
- package/styles-CY5DE4O7.css +1 -0
- package/chunk-3L2HST7Q.js +0 -1
- package/chunk-3T4NJWLA.js +0 -1
- package/chunk-4BGVLUYV.js +0 -2
- package/chunk-4FD362Y4.js +0 -1
- package/chunk-4MEL5WTX.js +0 -1
- package/chunk-5BMTCVLS.js +0 -1
- package/chunk-5H3KA3BL.js +0 -1
- package/chunk-5K64UNNB.js +0 -2
- package/chunk-5PLFBSYN.js +0 -1
- package/chunk-5SNEZYDF.js +0 -1
- package/chunk-6DB3NZXR.js +0 -1
- package/chunk-7KUVROHU.js +0 -1
- package/chunk-7WIBNC6L.js +0 -1
- package/chunk-ABJWT6DQ.js +0 -1
- package/chunk-AGFUNVOJ.js +0 -1
- package/chunk-CBL5TPIR.js +0 -1
- package/chunk-DY7VFO2O.js +0 -1
- package/chunk-ES5NR2JV.js +0 -3
- package/chunk-EUDKD2JW.js +0 -1
- package/chunk-F2QQDU4N.js +0 -1
- package/chunk-FAM42SZT.js +0 -4
- package/chunk-HFDNVEKY.js +0 -2
- package/chunk-HJ5IWG4Y.js +0 -1
- package/chunk-I6BGE5RS.js +0 -1
- package/chunk-IZQG3EV6.js +0 -1
- package/chunk-L7A3FH7R.js +0 -1
- package/chunk-LEYS7OLH.js +0 -1
- package/chunk-LEZL7BSL.js +0 -1
- package/chunk-LFRGO2IP.js +0 -1
- package/chunk-LFVCKT5O.js +0 -1
- package/chunk-MP7JKTLP.js +0 -1
- package/chunk-NHRDYV7W.js +0 -1
- package/chunk-NOHHRZSK.js +0 -2
- package/chunk-OLOFMEQN.js +0 -1
- package/chunk-PD5WNPQM.js +0 -1
- package/chunk-RNNVKT2R.js +0 -1
- package/chunk-S5O366BO.js +0 -2
- package/chunk-TZP7VKPA.js +0 -1
- package/chunk-UCP4VAJ4.js +0 -1
- package/chunk-UNGFQSCM.js +0 -1
- package/chunk-UPGTBICK.js +0 -2
- package/chunk-VKR5DJQG.js +0 -1
- package/chunk-VO42K6TQ.js +0 -1
- package/chunk-VOYMNW22.js +0 -1
- package/chunk-W2UO5LKI.js +0 -2
- package/chunk-WEFZF25L.js +0 -1
- package/chunk-XDECUOQ5.js +0 -1
- package/chunk-Y7PF5UJZ.js +0 -1
- package/chunk-YRYV3RWO.js +0 -1
- package/chunk-ZOO7P75U.js +0 -1
- package/chunk-ZTCP7QD2.js +0 -1
- package/styles-XWAP6FKR.css +0 -1
- /package/{chunk-FPPZ4BUR.js → chunk-QF5K4MHH.js} +0 -0
- /package/{polyfills-S663R3NQ.js → polyfills-7RKI4BGK.js} +0 -0
package/chunk-LEYS7OLH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-EUDKD2JW.js";var o=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-I6BGE5RS.js")},{path:"encryption",loadComponent:()=>import("./chunk-7WIBNC6L.js")},{path:"select-files",loadComponent:()=>import("./chunk-UNGFQSCM.js")},{path:"options",loadComponent:()=>import("./chunk-3T4NJWLA.js")},{path:":taskid/progress",loadComponent:()=>import("./chunk-HJRYTTGO.js")}],t=o;export{t as default};
|
package/chunk-LEZL7BSL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as Hr}from"./chunk-4MEL5WTX.js";import{h as Br,k as rt}from"./chunk-6DB3NZXR.js";import{$ as Sr,B as G,C as ee,E as Ut,F as le,Fb as _r,H as Ye,I as Q,J as Pt,K as vr,Lc as $r,M as mr,O as Rr,P as A,Pa as Ar,Q as _t,Qc as Y,R as S,S as C,V as m,Va as jt,Vc as zr,Wa as x,X as yr,Xa as Tr,Xc as Fr,Y as D,Z as K,Zb as xr,_ as d,_a as Er,ab as Xe,ad as et,ba as te,bb as Or,ca as _,cc as Lr,d as lr,db as Te,dc as jr,e as hr,ec as kr,ed as tt,f as dr,g as Dt,h as Nt,hd as qr,i as z,ia as Cr,j as M,jb as re,ka as wr,l as F,m as w,ma as Ze,mb as Mr,n as h,nb as Dr,o as be,oa as Je,p as fr,pa as br,pb as Nr,q as pr,qb as Ur,r as v,ra as Ae,s as Qe,sa as xt,t as I,ta as Ir,tb as Pr,u as Ie,ua as Lt,v as gr,w as Ke,z as q}from"./chunk-FAM42SZT.js";import{a as l,b as P}from"./chunk-EUDKD2JW.js";var f="primary",Fe=Symbol("RouteTitle"),qt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function oe(t){return new qt(t)}function Jr(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Fn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!j(t[e],n[e]))return!1;return!0}function j(t,n){let e=t?Bt(t):void 0,r=n?Bt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Xr(t[i],n[i]))return!1;return!0}function Bt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Xr(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function en(t){return t.length>0?t[t.length-1]:null}function V(t){return fr(t)?t:Dr(t)?w(Promise.resolve(t)):h(t)}var qn={exact:rn,subset:nn},tn={exact:Bn,subset:Hn,ignored:()=>!0};function Vr(t,n,e){return qn[e.paths](t.root,n.root,e.matrixParams)&&tn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Bn(t,n){return j(t,n)}function rn(t,n,e){if(!ne(t.segments,n.segments)||!ot(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!rn(t.children[r],n.children[r],e))return!1;return!0}function Hn(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Xr(t[e],n[e]))}function nn(t,n,e){return on(t,n,n.segments,e)}function on(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ne(i,e)||n.hasChildren()||!ot(i,e,r))}else if(t.segments.length===e.length){if(!ne(t.segments,e)||!ot(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!nn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ne(t.segments,i)||!ot(t.segments,i,r)||!t.children[f]?!1:on(t.children[f],n,o,r)}}function ot(t,n,e){return n.every((r,i)=>tn[e](t[i].parameters,r.parameters))}var $=class{root;queryParams;fragment;_queryParamMap;constructor(n=new g([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){return Gn.serialize(this)}},g=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return st(this)}},Z=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=oe(this.parameters),this._parameterMap}toString(){return an(this)}};function Vn(t,n){return ne(t,n)&&t.every((e,r)=>j(e.parameters,n[r].parameters))}function ne(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function Wn(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var qe=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>new se,providedIn:"root"})}return t})(),se=class{parse(n){let e=new Vt(n);return new $(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Ee(n.root,!0)}`,r=Yn(n.queryParams),i=typeof n.fragment=="string"?`#${Qn(n.fragment)}`:"";return`${e}${r}${i}`}},Gn=new se;function st(t){return t.segments.map(n=>an(n)).join("/")}function Ee(t,n){if(!t.hasChildren())return st(t);if(n){let e=t.children[f]?Ee(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${Ee(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=Wn(t,(r,i)=>i===f?[Ee(t.children[f],!1)]:[`${i}:${Ee(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${st(t)}/${e[0]}`:`${st(t)}/(${e.join("//")})`}}function sn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nt(t){return sn(t).replace(/%3B/gi,";")}function Qn(t){return encodeURI(t)}function Ht(t){return sn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function at(t){return decodeURIComponent(t)}function Wr(t){return at(t.replace(/\+/g,"%20"))}function an(t){return`${Ht(t.path)}${Kn(t.parameters)}`}function Kn(t){return Object.entries(t).map(([n,e])=>`;${Ht(n)}=${Ht(e)}`).join("")}function Yn(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${nt(e)}=${nt(i)}`).join("&"):`${nt(e)}=${nt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Zn=/^[^\/()?;#]+/;function kt(t){let n=t.match(Zn);return n?n[0]:""}var Jn=/^[^\/()?;=#]+/;function Xn(t){let n=t.match(Jn);return n?n[0]:""}var ei=/^[^=?&#]+/;function ti(t){let n=t.match(ei);return n?n[0]:""}var ri=/^[^&#]+/;function ni(t){let n=t.match(ri);return n?n[0]:""}var Vt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new g([],{}):new g([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new g(n,e)),r}parseSegment(){let n=kt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(n),new Z(at(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Xn(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=kt(this.remaining);i&&(r=i,this.capture(r))}n[at(e)]=at(r)}parseQueryParam(n){let e=ti(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=ni(this.remaining);s&&(r=s,this.capture(r))}let i=Wr(e),o=Wr(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=kt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=f);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[f]:new g([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new C(4011,!1)}};function un(t){return t.segments.length>0?new g([],{[f]:t}):t}function cn(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=cn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new g(t.segments,n);return ii(e)}function ii(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new g(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof $}function ln(t,n,e=null,r=null){let i=hn(t);return dn(i,n,e,r)}function hn(t){let n;function e(o){let s={};for(let u of o.children){let c=e(u);s[u.outlet]=c}let a=new g(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=un(r);return n??i}function dn(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return $t(i,i,i,e,r);let o=oi(n);if(o.toRoot())return $t(i,i,new g([],{}),e,r);let s=si(o,i,t),a=s.processChildren?Me(s.segmentGroup,s.index,o.commands):pn(s.segmentGroup,s.index,o.commands);return $t(i,s.segmentGroup,a,e,r)}function ut(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ue(t){return typeof t=="object"&&t!=null&&t.outlets}function $t(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(p=>`${p}`):`${c}`});let s;t===n?s=e:s=fn(t,n,e);let a=un(cn(s));return new $(a,o,i)}function fn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=fn(o,n,e)}),new g(t.segments,r)}var ct=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ut(r[0]))throw new C(4003,!1);let i=r.find(Ue);if(i&&i!==en(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function oi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ct(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ct(e,n,r)}var fe=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function si(t,n,e){if(t.isAbsolute)return new fe(n,!0,0);if(!e)return new fe(n,!1,NaN);if(e.parent===null)return new fe(e,!0,0);let r=ut(t.commands[0])?0:1,i=e.segments.length-1+r;return ai(e,i,t.numberOfDoubleDots)}function ai(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new fe(r,!1,i-o)}function ui(t){return Ue(t[0])?t[0].outlets:{[f]:t}}function pn(t,n,e){if(t??=new g([],{}),t.segments.length===0&&t.hasChildren())return Me(t,n,e);let r=ci(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new g(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new g(t.segments.slice(r.pathIndex),t.children),Me(o,0,i)}else return r.match&&i.length===0?new g(t.segments,{}):r.match&&!t.hasChildren()?Wt(t,n,e):r.match?Me(t,0,i):Wt(t,n,e)}function Me(t,n,e){if(e.length===0)return new g(t.segments,{});{let r=ui(e),i={};if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=Me(t.children[f],n,e);return new g(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=pn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new g(t.segments,i)}}function ci(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(Ue(a))break;let u=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Qr(u,c,s))return o;r+=2}else{if(!Qr(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Wt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Ue(o)){let u=li(o.outlets);return new g(r,u)}if(i===0&&ut(e[0])){let u=t.segments[n];r.push(new Z(u.path,Gr(e[0]))),i++;continue}let s=Ue(o)?o.outlets[f]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&ut(a)?(r.push(new Z(s,Gr(a))),i+=2):(r.push(new Z(s,{})),i++)}return new g(r,{})}function li(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Wt(new g([],{}),0,r))}),n}function Gr(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Qr(t,n,e){return t==e.path&&j(n,e.parameters)}var De="imperative",R=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(R||{}),O=class{id;url;constructor(n,e){this.id=n,this.url=e}},ae=class extends O{type=R.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},N=class extends O{urlAfterRedirects;type=R.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},b=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(b||{}),Pe=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Pe||{}),k=class extends O{reason;code;type=R.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},B=class extends O{reason;code;type=R.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ge=class extends O{error;target;type=R.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},_e=class extends O{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lt=class extends O{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ht=class extends O{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},dt=class extends O{urlAfterRedirects;state;type=R.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class extends O{urlAfterRedirects;state;type=R.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class{route;type=R.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},gt=class{route;type=R.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},vt=class{snapshot;type=R.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=R.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rt=class{snapshot;type=R.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=R.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var xe=class{},ve=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function hi(t){return!(t instanceof xe)&&!(t instanceof ve)}function di(t,n){return t.providers&&!t._injector&&(t._injector=Xe(t.providers,n,`Route: ${t.path}`)),t._injector??n}function L(t){return t.outlet||f}function fi(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}function ye(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var St=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ye(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Se(this.rootInjector)}},Se=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new St(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(K(te))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ct=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Gt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Gt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Qt(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Qt(n,this._root).map(e=>e.value)}};function Gt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Gt(t,e);if(r)return r}return null}function Qt(t,n){if(t===n.value)return[n];for(let e of n.children){let r=Qt(t,e);if(r.length)return r.unshift(n),r}return[]}var E=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function de(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Le=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,rr(this,n)}toString(){return this.snapshot.toString()}};function gn(t){let n=pi(t),e=new M([new Z("",{})]),r=new M({}),i=new M({}),o=new M({}),s=new M(""),a=new H(e,r,o,s,i,f,t,n.root);return a.snapshot=n.root,new Le(new E(a,[]),n)}function pi(t){let n={},e={},r={},o=new ie([],n,r,"",e,f,t,null,{});return new je("",new E(o,[]))}var H=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,u){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(v(c=>c[Fe]))??h(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(n=>oe(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(n=>oe(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function wt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),t.params),data:l(l({},n.data),t.data),resolve:l(l(l(l({},t.data),n.data),i?.data),t._resolvedData)}:r={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&mn(i)&&(r.resolve[Fe]=i.title),r}var ie=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Fe]}constructor(n,e,r,i,o,s,a,u,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,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??=oe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},je=class extends Ct{url;constructor(n,e){super(e),this.url=n,rr(this,e)}toString(){return vn(this._root)}};function rr(t,n){n.value._routerState=t,n.children.forEach(e=>rr(t,e))}function vn(t){let n=t.children.length>0?` { ${t.children.map(vn).join(", ")} } `:"";return`${t.value}${n}`}function zt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,j(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),j(n.params,e.params)||t.paramsSubject.next(e.params),Fn(n.url,e.url)||t.urlSubject.next(e.url),j(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Kt(t,n){let e=j(t.params,n.params)&&Vn(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Kt(t.parent,n.parent))}function mn(t){return typeof t.title=="string"||t.title===null}var Rn=new D(""),nr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new re;deactivateEvents=new re;attachEvents=new re;detachEvents=new re;routerOutletData=Fr(void 0);parentContexts=d(Se);location=d(Tr);changeDetector=d(et);inputBinder=d(Be,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new Yt(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Te({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ae]})}return t})(),Yt=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===H?this.route:n===Se?this.childContexts:n===Rn?this.outletData:this.parent.get(n,e)}},Be=new D(""),ir=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Qe([r.queryParams,r.params,r.data]).pipe(A(([o,s,a],u)=>(a=l(l(l({},o),s),a),u===0?h(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=qr(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),or=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Or({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&_r(0,"router-outlet")},dependencies:[nr],encapsulation:2})}return t})();function sr(t){let n=t.children&&t.children.map(sr),e=n?P(l({},t),{children:n}):l({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=or),e}function gi(t,n,e){let r=ke(t,n._root,e?e._root:void 0);return new Le(r,n)}function ke(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=vi(t,n,e);return new E(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ke(t,a)),s}}let r=mi(n.value),i=n.children.map(o=>ke(t,o));return new E(r,i)}}function vi(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return ke(t,r,i);return ke(t,r)})}function mi(t){return new H(new M(t.url),new M(t.params),new M(t.queryParams),new M(t.fragment),new M(t.data),t.outlet,t.component,t)}var me=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},yn="ngNavigationCancelingError";function bt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Sn(!1,b.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Sn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[yn]=!0,e.cancellationCode=n,e}function Ri(t){return Cn(t)&&J(t.url)}function Cn(t){return!!t&&t[yn]}var yi=(t,n,e,r)=>v(i=>(new Zt(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),Zt=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),zt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=de(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=de(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=de(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=de(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new mt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(zt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),zt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},It=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},pe=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Si(t,n,e){let r=t._root,i=n?n._root:null;return Oe(r,i,e,[r.value])}function Ci(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ce(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!yr(t)?t:n.get(t):r}function Oe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=de(n);return t.children.forEach(s=>{wi(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ne(a,e.getContext(s),i)),i}function wi(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=bi(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new It(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Oe(t,n,a?a.children:null,r,i):Oe(t,n,e,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new pe(a.outlet.component,s))}else s&&Ne(n,a,i),i.canActivateChecks.push(new It(r)),o.component?Oe(t,null,a?a.children:null,r,i):Oe(t,null,e,r,i);return i}function bi(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!ne(t.url,n.url);case"pathParamsOrQueryParamsChange":return!ne(t.url,n.url)||!j(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kt(t,n)||!j(t.queryParams,n.queryParams);case"paramsChange":default:return!Kt(t,n)}}function Ne(t,n,e){let r=de(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ne(s,n.children.getContext(o),e):Ne(s,null,e):Ne(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new pe(n.outlet.component,i)):e.canDeactivateChecks.push(new pe(null,i)):e.canDeactivateChecks.push(new pe(null,i))}function He(t){return typeof t=="function"}function Ii(t){return typeof t=="boolean"}function Ai(t){return t&&He(t.canLoad)}function Ti(t){return t&&He(t.canActivate)}function Ei(t){return t&&He(t.canActivateChild)}function Oi(t){return t&&He(t.canDeactivate)}function Mi(t){return t&&He(t.canMatch)}function wn(t){return t instanceof pr||t?.name==="EmptyError"}var it=Symbol("INITIAL_VALUE");function Re(){return A(t=>Qe(t.map(n=>n.pipe(le(1),Rr(it)))).pipe(v(n=>{for(let e of n)if(e!==!0){if(e===it)return it;if(e===!1||Di(e))return e}return!0}),q(n=>n!==it),le(1)))}function Di(t){return J(t)||t instanceof me}function Ni(t,n){return I(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?h(P(l({},e),{guardsResult:!0})):Ui(s,r,i,t).pipe(I(a=>a&&Ii(a)?Pi(r,o,t,n):h(a)),v(a=>P(l({},e),{guardsResult:a})))})}function Ui(t,n,e,r){return w(t).pipe(I(i=>ki(i.component,i.route,e,n,r)),Q(i=>i!==!0,!0))}function Pi(t,n,e,r){return w(n).pipe(ee(i=>gr(xi(i.route.parent,r),_i(i.route,r),ji(t,i.path,e),Li(t,i.route,e))),Q(i=>i!==!0,!0))}function _i(t,n){return t!==null&&n&&n(new Rt(t)),h(!0)}function xi(t,n){return t!==null&&n&&n(new vt(t)),h(!0)}function Li(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return h(!0);let i=r.map(o=>Ke(()=>{let s=ye(n)??e,a=Ce(o,s),u=Ti(a)?a.canActivate(n,t):_(s,()=>a(n,t));return V(u).pipe(Q())}));return h(i).pipe(Re())}function ji(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Ci(s)).filter(s=>s!==null).map(s=>Ke(()=>{let a=s.guards.map(u=>{let c=ye(s.node)??e,p=Ce(u,c),y=Ei(p)?p.canActivateChild(r,t):_(c,()=>p(r,t));return V(y).pipe(Q())});return h(a).pipe(Re())}));return h(o).pipe(Re())}function ki(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return h(!0);let s=o.map(a=>{let u=ye(n)??i,c=Ce(a,u),p=Oi(c)?c.canDeactivate(t,n,e,r):_(u,()=>c(t,n,e,r));return V(p).pipe(Q())});return h(s).pipe(Re())}function $i(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return h(!0);let o=i.map(s=>{let a=Ce(s,t),u=Ai(a)?a.canLoad(n,e):_(t,()=>a(n,e));return V(u)});return h(o).pipe(Re(),bn(r))}function bn(t){return hr(S(n=>{if(typeof n!="boolean")throw bt(t,n)}),v(n=>n===!0))}function zi(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return h(!0);let o=i.map(s=>{let a=Ce(s,t),u=Mi(a)?a.canMatch(n,e):_(t,()=>a(n,e));return V(u)});return h(o).pipe(Re(),bn(r))}var $e=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},ze=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function he(t){return be(new $e(t))}function Fi(t){return be(new C(4e3,!1))}function qi(t){return be(Sn(!1,b.GuardRejected))}var Jt=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return h(r);if(i.numberOfChildren>1||!i.children[f])return Fi(`${n.redirectTo}`);i=i.children[f]}}applyRedirectCommands(n,e,r,i,o){return Bi(e,i,o).pipe(v(s=>{if(s instanceof $)throw new ze(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new ze(a);return a}))}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new $(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(n,u,r,i)}),new g(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function Bi(t,n,e){if(typeof t=="string")return h(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,params:c,data:p,title:y}=n;return V(_(e,()=>r({params:c,data:p,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,title:y})))}var Xt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Hi(t,n,e,r,i){let o=In(t,n,e);return o.matched?(r=di(n,r),zi(r,n,e,i).pipe(v(s=>s===!0?o:l({},Xt)))):h(o)}function In(t,n,e){if(n.path==="**")return Vi(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},Xt):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Jr)(e,t,n);if(!i)return l({},Xt);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Vi(t){return{matched:!0,parameters:t.length>0?en(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Kr(t,n,e,r){return e.length>0&&Qi(t,e,r)?{segmentGroup:new g(n,Gi(r,new g(e,t.children))),slicedSegments:[]}:e.length===0&&Ki(t,e,r)?{segmentGroup:new g(t.segments,Wi(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new g(t.segments,t.children),slicedSegments:e}}function Wi(t,n,e,r){let i={};for(let o of e)if(Tt(t,n,o)&&!r[L(o)]){let s=new g([],{});i[L(o)]=s}return l(l({},r),i)}function Gi(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&L(r)!==f){let i=new g([],{});e[L(r)]=i}return e}function Qi(t,n,e){return e.some(r=>Tt(t,n,r)&&L(r)!==f)}function Ki(t,n,e){return e.some(r=>Tt(t,n,r))}function Tt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Yi(t,n,e){return n.length===0&&!t.children[e]}var er=class{};function Zi(t,n,e,r,i,o,s="emptyOnly"){return new tr(t,n,e,r,i,s,o).recognize()}var Ji=31,tr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Jt(this.urlSerializer,this.urlTree)}noMatchError(n){return new C(4002,`'${n.segmentGroup}'`)}recognize(){let n=Kr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(v(({children:e,rootSnapshot:r})=>{let i=new E(r,e),o=new je("",i),s=ln(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new ie([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,f,e).pipe(v(r=>({children:r,rootSnapshot:e})),G(r=>{if(r instanceof ze)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof $e?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(v(s=>s instanceof E?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return w(o).pipe(ee(s=>{let a=r.children[s],u=fi(e,s);return this.processSegmentGroup(n,u,a,s,i)}),mr((s,a)=>(s.push(...a),s)),Ut(null),vr(),I(s=>{if(s===null)return he(r);let a=An(s);return Xi(a),h(a)}))}processSegment(n,e,r,i,o,s,a){return w(e).pipe(ee(u=>this.processSegmentAgainstRoute(u._injector??n,e,u,r,i,o,s,a).pipe(G(c=>{if(c instanceof $e)return h(null);throw c}))),Q(u=>!!u),G(u=>{if(wn(u))return Yi(r,i,o)?h(new er):he(r);throw u}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,u){return L(r)!==s&&(s===f||!Tt(i,o,r))?he(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,u):he(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:u,parameters:c,consumedSegments:p,positionalParamSegments:y,remainingSegments:U}=In(e,i,o);if(!u)return he(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ji&&(this.allowRedirects=!1));let W=new ie(o,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Yr(i),L(i),i.component??i._loadedComponent??null,i,Zr(i)),T=wt(W,a,this.paramsInheritanceStrategy);return W.params=Object.freeze(T.params),W.data=Object.freeze(T.data),this.applyRedirects.applyRedirectCommands(p,i.redirectTo,y,W,n).pipe(A(X=>this.applyRedirects.lineralizeSegments(i,X)),I(X=>this.processSegment(n,r,e,X.concat(U),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=Hi(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(A(u=>u.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(A(({routes:c})=>{let p=r._loadedInjector??n,{parameters:y,consumedSegments:U,remainingSegments:W}=u,T=new ie(U,y,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Yr(r),L(r),r.component??r._loadedComponent??null,r,Zr(r)),ce=wt(T,s,this.paramsInheritanceStrategy);T.params=Object.freeze(ce.params),T.data=Object.freeze(ce.data);let{segmentGroup:X,slicedSegments:Mt}=Kr(e,U,W,c);if(Mt.length===0&&X.hasChildren())return this.processChildren(p,c,X,T).pipe(v(Ge=>new E(T,Ge)));if(c.length===0&&Mt.length===0)return h(new E(T,[]));let $n=L(r)===o;return this.processSegment(p,c,X,Mt,$n?f:o,!0,T).pipe(v(Ge=>new E(T,Ge instanceof E?[Ge]:[])))}))):he(e)))}getChildConfig(n,e,r){return e.children?h({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?h({routes:e._loadedRoutes,injector:e._loadedInjector}):$i(n,e,r,this.urlSerializer).pipe(I(i=>i?this.configLoader.loadChildren(n,e).pipe(S(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):qi(e))):h({routes:[],injector:n})}};function Xi(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function eo(t){let n=t.value.routeConfig;return n&&n.path===""}function An(t){let n=[],e=new Set;for(let r of t){if(!eo(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=An(r.children);n.push(new E(r.value,i))}return n.filter(r=>!e.has(r))}function Yr(t){return t.data||{}}function Zr(t){return t.resolve||{}}function to(t,n,e,r,i,o){return I(s=>Zi(t,n,e,r,s.extractedUrl,i,o).pipe(v(({state:a,tree:u})=>P(l({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function ro(t,n){return I(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return h(e);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of Tn(u))s.add(c);let a=0;return w(s).pipe(ee(u=>o.has(u)?no(u,r,t,n):(u.data=wt(u,u.parent,t).resolve,h(void 0))),S(()=>a++),Pt(1),I(u=>a===s.size?h(e):F))})}function Tn(t){let n=t.children.map(e=>Tn(e)).flat();return[t,...n]}function no(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!mn(i)&&(o[Fe]=i.title),Ke(()=>(t.data=wt(t,t.parent,e).resolve,io(o,t,n,r).pipe(v(s=>(t._resolvedData=s,t.data=l(l({},t.data),s),null)))))}function io(t,n,e,r){let i=Bt(t);if(i.length===0)return h({});let o={};return w(i).pipe(I(s=>oo(t[s],n,e,r).pipe(Q(),S(a=>{if(a instanceof me)throw bt(new se,a);o[s]=a}))),Pt(1),v(()=>o),G(s=>wn(s)?F:be(s)))}function oo(t,n,e,r){let i=ye(n)??r,o=Ce(t,i),s=o.resolve?o.resolve(n,e):_(i,()=>o(n,e));return V(s)}function Ft(t){return A(n=>{let e=t(n);return e?w(e).pipe(v(()=>n)):h(n)})}var ar=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[Fe]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>d(En),providedIn:"root"})}return t})(),En=(()=>{class t extends ar{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(K(Hr))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),we=new D("",{providedIn:"root",factory:()=>({})}),Ve=new D(""),ur=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d($r);loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return h(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=V(_(e,()=>r.loadComponent())).pipe(v(Mn),A(Dn),S(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Ye(()=>{this.componentLoaders.delete(r)})),o=new Nt(i,()=>new z).pipe(Dt());return this.componentLoaders.set(r,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return h({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=On(r,this.compiler,e,this.onLoadEndListener).pipe(Ye(()=>{this.childrenLoaders.delete(r)})),s=new Nt(o,()=>new z).pipe(Dt());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function On(t,n,e,r){return V(_(e,()=>t.loadChildren())).pipe(v(Mn),A(Dn),I(i=>i instanceof Er||Array.isArray(i)?h(i):w(n.compileModuleAsync(i))),v(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Ve,[],{optional:!0,self:!0}).flat()),{routes:s.map(sr),injector:o}}))}function so(t){return t&&typeof t=="object"&&"default"in t}function Mn(t){return so(t)?t.default:t}function Dn(t){return h(t)}var Et=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>d(ao),providedIn:"root"})}return t})(),ao=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nn=new D("");var Un=new D(""),Pn=(()=>{class t{currentNavigation=Je(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=d(ur);environmentInjector=d(te);destroyRef=d(wr);urlSerializer=d(qe);rootContexts=d(Se);location=d(rt);inputBindingEnabled=d(Be,{optional:!0})!==null;titleStrategy=d(ar);options=d(we,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(Et);createViewTransition=d(Nn,{optional:!0});navigationErrorHandler=d(Un,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>h(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new pt(i)),r=i=>this.events.next(new gt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;Y(()=>{this.transitions?.next(P(l({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(e){return this.transitions=new M(null),this.transitions.pipe(q(r=>r!==null),A(r=>{let i=!1;return h(r).pipe(A(o=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),F;this.currentTransition=r,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?P(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new B(o.id,this.urlSerializer.serialize(o.rawUrl),"",Pe.IgnoredSameUrlNavigation)),o.resolve(!1),F;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return h(o).pipe(A(u=>(this.events.next(new ae(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?F:Promise.resolve(u))),to(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),S(u=>{r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation.update(p=>(p.finalUrl=u.urlAfterRedirects,p));let c=new _e(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:u,extractedUrl:c,source:p,restoredState:y,extras:U}=o,W=new ae(u,this.urlSerializer.serialize(c),p,y);this.events.next(W);let T=gn(this.rootComponentType).snapshot;return this.currentTransition=r=P(l({},o),{targetSnapshot:T,urlAfterRedirects:c,extras:P(l({},U),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(ce=>(ce.finalUrl=c,ce)),h(r)}else return this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Pe.IgnoredByUrlHandlingStrategy)),o.resolve(!1),F}),S(o=>{let s=new lt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),v(o=>(this.currentTransition=r=P(l({},o),{guards:Si(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),Ni(this.environmentInjector,o=>this.events.next(o)),S(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw bt(this.urlSerializer,o.guardsResult);let s=new ht(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),q(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",b.GuardRejected),!1)),Ft(o=>{if(o.guards.canActivateChecks.length!==0)return h(o).pipe(S(s=>{let a=new dt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),A(s=>{let a=!1;return h(s).pipe(ro(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",b.NoDataFromResolver)}}))}),S(s=>{let a=new ft(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),Ft(o=>{let s=a=>{let u=[];if(a.routeConfig?.loadComponent){let c=ye(a)??this.environmentInjector;u.push(this.configLoader.loadComponent(c,a.routeConfig).pipe(S(p=>{a.component=p}),v(()=>{})))}for(let c of a.children)u.push(...s(c));return u};return Qe(s(o.targetSnapshot.root)).pipe(Ut(null),le(1))}),Ft(()=>this.afterPreactivation()),A(()=>{let{currentSnapshot:o,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?w(a).pipe(v(()=>r)):h(r)}),v(o=>{let s=gi(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=P(l({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),S(()=>{this.events.next(new xe)}),yi(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),le(1),_t(new dr(o=>{let s=r.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(q(()=>!i&&!r.targetRouterState),S(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",b.Aborted)}))),S({next:o=>{i=!0,this.lastSuccessfulNavigation=Y(this.currentNavigation),this.events.next(new N(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),_t(this.transitionAbortWithErrorSubject.pipe(S(o=>{throw o}))),Ye(()=>{i||this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),G(o=>{if(this.destroyed)return r.resolve(!1),F;if(i=!0,Cn(o))this.events.next(new k(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),Ri(o)?this.events.next(new ve(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let s=new ge(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);try{let a=_(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof me){let{message:u,cancellationCode:c}=bt(this.urlSerializer,a);this.events.next(new k(r.id,this.urlSerializer.serialize(r.extractedUrl),u,c)),this.events.next(new ve(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return F}))}))}cancelNavigationTransition(e,r,i){let o=new k(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Y(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uo(t){return t!==De}var _n=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>d(co),providedIn:"root"})}return t})(),At=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},co=(()=>{class t extends At{static \u0275fac=(()=>{let e;return function(i){return(e||(e=xt(t)))(i||t)}})();static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xn=(()=>{class t{urlSerializer=d(qe);options=d(we,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(rt);urlHandlingStrategy=d(Et);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new $;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof $?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=gn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>d(lo),providedIn:"root"})}return t})(),lo=(()=>{class t extends xn{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof ae?this.updateStateMemento():e instanceof B?this.commitTransition(r):e instanceof _e?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof xe?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof k&&e.code!==b.SupersededByNewNavigation&&e.code!==b.Redirect?this.restoreHistory(r):e instanceof ge?this.restoreHistory(r,!0):e instanceof N&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,u=l(l({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=l(l({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=xt(t)))(i||t)}})();static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cr(t,n){t.events.pipe(q(e=>e instanceof N||e instanceof k||e instanceof ge||e instanceof B),v(e=>e instanceof N||e instanceof B?0:(e instanceof k?e.code===b.Redirect||e.code===b.SupersededByNewNavigation:!1)?2:1),q(e=>e!==2),le(1)).subscribe(()=>{n()})}var ho={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ue=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Mr);stateManager=d(xn);options=d(we,{optional:!0})||{};pendingTasks=d(br);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Pn);urlSerializer=d(qe);location=d(rt);urlHandlingStrategy=d(Et);injector=d(te);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(_n);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Ve,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Be,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new lr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Y(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof k&&r.code!==b.Redirect&&r.code!==b.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof N)this.navigated=!0;else if(r instanceof ve){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||uo(i.source)},s);this.scheduleNavigation(a,De,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}hi(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),De,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=l({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(u=>{this.disposed||this.injector.get(Ze)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Y(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(sr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,p=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":p=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let y;try{let U=i?i.snapshot:this.routerState.snapshot.root;y=hn(U)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),y=this.currentUrlTree.root}return dn(y,e,p,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=J(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,De,null,r)}navigate(e,r={skipLocationChange:!1}){return po(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=l({},ho):r===!1?i=l({},fo):i=r,J(e))return Vr(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Vr(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((y,U)=>{a=y,u=U});let p=this.pendingTasks.add();return cr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(y=>Promise.reject(y))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function po(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new C(4008,!1)}var Ot=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Je(null);get href(){return Y(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=d(Ze);options=d(we,{optional:!0});constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(d(new zr("href"),{optional:!0}));let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area"||!!(typeof customElements=="object"&&customElements.get(u)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,r=i=>i==="merge"||i==="preserve";e||=r(this.queryParamsHandling),e||=!this.queryParamsHandling&&!r(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof N&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:J(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(x(ue),x(H),Ir("tabindex"),x(jt),x(Lt),x(Br))};static \u0275dir=Te({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&xr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Pr("href",i.reactiveHref(),Ar)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",tt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",tt],replaceUrl:[2,"replaceUrl","replaceUrl",tt],routerLink:"routerLink"},features:[Ae]})}return t})(),vo=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new re;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof N&&this.update()})}ngAfterContentInit(){h(this.links.changes,h(null)).pipe(Ie()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=w(e).pipe(Ie()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=mo(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(x(ue),x(Lt),x(jt),x(et),x(Ot,8))};static \u0275dir=Te({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Lr(o,Ot,5),r&2){let s;jr(s=kr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ae]})}return t})();function mo(t){return!!t.paths}var We=class{},Ro=(()=>{class t{preload(e,r){return r().pipe(G(()=>h(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ln=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(q(e=>e instanceof N),ee(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Xe(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return w(i).pipe(Ie())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=h(null);let o=i.pipe(I(s=>s===null?h(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(e,r);return w([o,s]).pipe(Ie())}else return o})}static \u0275fac=function(r){return new(r||t)(K(ue),K(te),K(We),K(ur))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yo=new D("");function So(t,...n){return Sr([{provide:Ve,multi:!0,useValue:t},[],{provide:H,useFactory:Co,deps:[ue]},{provide:Nr,multi:!0,useFactory:wo},n.map(e=>e.\u0275providers)])}function Co(t){return t.routerState.root}function jn(t,n){return{\u0275kind:t,\u0275providers:n}}function wo(){let t=d(Cr);return n=>{let e=t.get(Ur);if(n!==e.components[0])return;let r=t.get(ue),i=t.get(bo);t.get(Io)===1&&r.initialNavigation(),t.get(kn,null,{optional:!0})?.setUpPreloading(),t.get(yo,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var bo=new D("",{factory:()=>new z}),Io=new D("",{providedIn:"root",factory:()=>1});var kn=new D("");function Ao(t){return jn(0,[{provide:kn,useExisting:Ln},{provide:We,useExisting:t}])}function To(){return jn(8,[ir,{provide:Be,useExisting:ir}])}export{N as a,H as b,nr as c,ue as d,Ot as e,vo as f,Ro as g,So as h,Ao as i,To as j};
|
package/chunk-LFRGO2IP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Aa as Ui,a as ti,ea as ji,la as ii}from"./chunk-6DB3NZXR.js";import{$b as M,Ab as $e,Ac as re,Bb as We,Bc as Mt,Cb as pe,Cc as Et,Db as b,Dc as Qt,Eb as E,Fb as ye,Gb as W,Hb as X,Ib as Pe,Kc as Bi,Lb as Fe,Mb as oe,Pc as Zt,Qa as Fi,Qc as Ee,Ra as S,Rc as k,S as yt,Sc as Q,Ta as Dt,U as he,V as He,Va as Me,W as Je,Wa as I,Wc as De,Xa as ki,Xc as V,Y as Se,Yc as ve,Zb as B,Zc as Kt,_ as A,_b as ke,_c as te,a as xi,ac as z,ad as Jt,ba as Ai,bb as U,bc as y,ca as Ii,cb as tt,da as H,db as K,ea as j,ed as Hi,fb as ne,fc as qt,gb as Oe,gc as fe,gd as ei,hc as _e,i as Oi,ia as je,ic as Yt,ja as Ue,jb as Ve,jc as le,ka as xe,kc as $,lb as Wt,lc as Xt,m as Vi,mc as ge,na as $t,nb as Ri,nc as N,oa as T,oc as Ge,pc as me,qb as Gt,qc as bt,r as Ti,ra as et,sa as ze,sc as nt,tb as Te,tc as ot,ua as Y,uc as st,vc as St,wb as R,wc as Ce,x as Ni,xb as L,xc as ee,ya as Pi,yb as it,zb as Li}from"./chunk-FAM42SZT.js";import{a as Z,b as ie,c as wi,d as m,e as x,f as O,g as w}from"./chunk-EUDKD2JW.js";var Zi=(()=>{class i{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}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 \u0275fac=function(n){return new(n||i)(I(Me),I(Y))};static \u0275dir=K({type:i})}return i})(),pt=(()=>{class i extends Zi{static \u0275fac=(()=>{let e;return function(o){return(e||(e=ze(i)))(o||i)}})();static \u0275dir=K({type:i,features:[ne]})}return i})(),Ae=new Se(""),Hn={provide:Ae,useExisting:he(()=>jn),multi:!0},jn=(()=>{class i extends pt{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ze(i)))(o||i)}})();static \u0275dir=K({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,o){n&1&&B("change",function(h){return o.onChange(h.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([Hn]),ne]})}return i})(),Un={provide:Ae,useExisting:he(()=>Ki),multi:!0};function zn(){let i=ti()?ti().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var $n=new Se(""),Ki=(()=>{class i extends Zi{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!zn())}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 \u0275fac=function(n){return new(n||i)(I(Me),I(Y),I($n,8))};static \u0275dir=K({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,o){n&1&&B("input",function(h){return o._handleInput(h.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(h){return o._compositionEnd(h.target.value)})},standalone:!1,features:[re([Un]),ne]})}return i})();function ri(i){return i==null||ai(i)===0}function ai(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var Re=new Se(""),Le=new Se(""),Wn=/^(?=.{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])?)*$/,zi=class{static min(t){return Gn(t)}static max(t){return qn(t)}static required(t){return Yn(t)}static requiredTrue(t){return Xn(t)}static email(t){return Qn(t)}static minLength(t){return Zn(t)}static maxLength(t){return Kn(t)}static pattern(t){return Jn(t)}static nullValidator(t){return Ji()}static compose(t){return rn(t)}static composeAsync(t){return an(t)}};function Gn(i){return t=>{if(t.value==null||i==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e<i?{min:{min:i,actual:t.value}}:null}}function qn(i){return t=>{if(t.value==null||i==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function Yn(i){return ri(i.value)?{required:!0}:null}function Xn(i){return i.value===!0?null:{required:!0}}function Qn(i){return ri(i.value)||Wn.test(i.value)?null:{email:!0}}function Zn(i){return t=>{let e=t.value?.length??ai(t.value);return e===null||e===0?null:e<i?{minlength:{requiredLength:i,actualLength:e}}:null}}function Kn(i){return t=>{let e=t.value?.length??ai(t.value);return e!==null&&e>i?{maxlength:{requiredLength:i,actualLength:e}}:null}}function Jn(i){if(!i)return Ji;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(ri(n.value))return null;let o=n.value;return t.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function Ji(i){return null}function en(i){return i!=null}function tn(i){return Ri(i)?Vi(i):i}function nn(i){let t={};return i.forEach(e=>{t=e!=null?Z(Z({},t),e):t}),Object.keys(t).length===0?null:t}function on(i,t){return t.map(e=>e(i))}function eo(i){return!i.validate}function sn(i){return i.map(t=>eo(t)?t:e=>t.validate(e))}function rn(i){if(!i)return null;let t=i.filter(en);return t.length==0?null:function(e){return nn(on(e,t))}}function li(i){return i!=null?rn(sn(i)):null}function an(i){if(!i)return null;let t=i.filter(en);return t.length==0?null:function(e){let n=on(e,t).map(tn);return Ni(n).pipe(Ti(nn))}}function ci(i){return i!=null?an(sn(i)):null}function $i(i,t){return i===null?[t]:Array.isArray(i)?[...i,t]:[i,t]}function ln(i){return i._rawValidators}function cn(i){return i._rawAsyncValidators}function ni(i){return i?Array.isArray(i)?i:[i]:[]}function xt(i,t){return Array.isArray(i)?i.includes(t):i===t}function Wi(i,t){let e=ni(t);return ni(i).forEach(o=>{xt(e,o)||e.push(o)}),e}function Gi(i,t){return ni(t).filter(e=>!xt(i,e))}var Ot=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=li(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=ci(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_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}},ae=class extends Ot{name;get formDirective(){return null}get path(){return null}},be=class extends Ot{_parent=null;name=null;valueAccessor=null},Vt=class{_cd;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}},to={"[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"},ha=ie(Z({},to),{"[class.ng-submitted]":"isSubmitted"}),pa=(()=>{class i extends Vt{constructor(e){super(e)}static \u0275fac=function(n){return new(n||i)(I(be,2))};static \u0275dir=K({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&$("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ne]})}return i})(),fa=(()=>{class i extends Vt{constructor(e){super(e)}static \u0275fac=function(n){return new(n||i)(I(ae,10))};static \u0275dir=K({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&$("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ne]})}return i})();var rt="VALID",wt="INVALID",qe="PENDING",at="DISABLED",Ne=class{},Tt=class extends Ne{value;source;constructor(t,e){super(),this.value=t,this.source=e}},ct=class extends Ne{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},dt=class extends Ne{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},Ye=class extends Ne{status;source;constructor(t,e){super(),this.status=t,this.source=e}},Nt=class extends Ne{source;constructor(t){super(),this.source=t}},At=class extends Ne{source;constructor(t){super(),this.source=t}};function di(i){return(kt(i)?i.validators:i)||null}function io(i){return Array.isArray(i)?li(i):i||null}function ui(i,t){return(kt(t)?t.asyncValidators:i)||null}function no(i){return Array.isArray(i)?ci(i):i||null}function kt(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function dn(i,t,e){let n=i.controls;if(!(t?Object.keys(n):n).length)throw new yt(1e3,"");if(!n[e])throw new yt(1001,"")}function un(i,t,e){i._forEachChild((n,o)=>{if(e[o]===void 0)throw new yt(1002,"")})}var Xe=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){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 Ee(this.statusReactive)}set status(t){Ee(()=>this.statusReactive.set(t))}_status=k(()=>this.statusReactive());statusReactive=T(void 0);get valid(){return this.status===rt}get invalid(){return this.status===wt}get pending(){return this.status==qe}get disabled(){return this.status===at}get enabled(){return this.status!==at}errors;get pristine(){return Ee(this.pristineReactive)}set pristine(t){Ee(()=>this.pristineReactive.set(t))}_pristine=k(()=>this.pristineReactive());pristineReactive=T(!0);get dirty(){return!this.pristine}get touched(){return Ee(this.touchedReactive)}set touched(t){Ee(()=>this.touchedReactive.set(t))}_touched=k(()=>this.touchedReactive());touchedReactive=T(!1);get untouched(){return!this.touched}_events=new Oi;events=this._events.asObservable();valueChanges;statusChanges;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(Wi(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Wi(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Gi(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Gi(t,this._rawAsyncValidators))}hasValidator(t){return xt(this._rawValidators,t)}hasAsyncValidator(t){return xt(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(ie(Z({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new dt(!0,n))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(t))}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(o=>{o.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 dt(!1,n))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(ie(Z({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new ct(!1,n))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),e&&t.emitEvent!==!1&&this._events.next(new ct(!0,n))}markAsPending(t={}){this.status=qe;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ye(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(ie(Z({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=at,this.errors=null,this._forEachChild(o=>{o.disable(ie(Z({},t),{onlySelf:!0}))}),this._updateValue();let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Tt(this.value,n)),this._events.next(new Ye(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ie(Z({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=rt,this._forEachChild(n=>{n.enable(ie(Z({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(ie(Z({},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===rt||this.status===qe)&&this._runAsyncValidator(n,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Tt(this.value,e)),this._events.next(new Ye(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(ie(Z({},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()?at:rt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=qe,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:t!==!1};let n=tn(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!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,o)=>n&&n._find(o),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 Ye(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,n)}_initObservables(){this.valueChanges=new Ve,this.statusChanges=new Ve}_calculateStatus(){return this._allControlsDisabled()?at:this.errors?wt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(qe)?qe:this._anyControlsHaveStatus(wt)?wt:rt}_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(),o=this.pristine!==n;this.pristine=n,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),o&&this._events.next(new ct(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new dt(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){kt(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=io(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=no(this._rawAsyncValidators)}},Qe=class extends Xe{constructor(t,e,n){super(di(e),ui(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;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={}){un(this,!0,t),Object.keys(t).forEach(n=>{dn(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 o=this.controls[n];o&&o.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,o)=>{n.reset(t?t[o]: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,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((o,s)=>{n=e(n,o,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 oi=class extends Qe{};var Be=new Se("",{providedIn:"root",factory:()=>ft}),ft="always";function Rt(i,t){return[...t.path,i]}function ht(i,t,e=ft){hi(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(i.disabled),so(i,t),ao(i,t),ro(i,t),oo(i,t)}function It(i,t,e=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Ft(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Pt(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function oo(i,t){if(t.valueAccessor.setDisabledState){let e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function hi(i,t){let e=ln(i);t.validator!==null?i.setValidators($i(e,t.validator)):typeof e=="function"&&i.setValidators([e]);let n=cn(i);t.asyncValidator!==null?i.setAsyncValidators($i(n,t.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let o=()=>i.updateValueAndValidity();Pt(t._rawValidators,o),Pt(t._rawAsyncValidators,o)}function Ft(i,t){let e=!1;if(i!==null){if(t.validator!==null){let o=ln(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(h=>h!==t.validator);s.length!==o.length&&(e=!0,i.setValidators(s))}}if(t.asyncValidator!==null){let o=cn(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(h=>h!==t.asyncValidator);s.length!==o.length&&(e=!0,i.setAsyncValidators(s))}}}let n=()=>{};return Pt(t._rawValidators,n),Pt(t._rawAsyncValidators,n),e}function so(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&hn(i,t)})}function ro(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&hn(i,t),i.updateOn!=="submit"&&i.markAsTouched()})}function hn(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function ao(i,t){let e=(n,o)=>{t.valueAccessor.writeValue(n),o&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function pn(i,t){i==null,hi(i,t)}function lo(i,t){return Ft(i,t)}function pi(i,t){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function co(i){return Object.getPrototypeOf(i.constructor)===pt}function fn(i,t){i._syncPendingControls(),t.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function fi(i,t){if(!t)return null;Array.isArray(t);let e,n,o;return t.forEach(s=>{s.constructor===Ki?e=s:co(s)?n=s:o=s}),o||n||e||null}function uo(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}var ho={provide:ae,useExisting:he(()=>po)},lt=Promise.resolve(),po=(()=>{class i extends ae{callSetDisabledState;get submitted(){return Ee(this.submittedReactive)}_submitted=k(()=>this.submittedReactive());submittedReactive=T(!1);_directives=new Set;form;ngSubmit=new Ve;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new Qe({},li(e),ci(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){lt.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ht(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){lt.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){lt.then(()=>{let n=this._findContainer(e.path),o=new Qe({});pn(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){lt.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){lt.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),fn(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Nt(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 At(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||i)(I(Re,10),I(Le,10),I(Be,8))};static \u0275dir=K({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&B("submit",function(h){return o.onSubmit(h)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([ho]),ne]})}return i})();function qi(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Yi(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var ut=class extends Xe{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,n){super(di(e),ui(n,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kt(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Yi(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){qi(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){qi(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){Yi(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 fo=i=>i instanceof ut,go=(()=>{class i extends ae{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Rt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ze(i)))(o||i)}})();static \u0275dir=K({type:i,standalone:!1,features:[ne]})}return i})();var mo={provide:be,useExisting:he(()=>Lt)},Xi=Promise.resolve(),Lt=(()=>{class i extends be{_changeDetectorRef;callSetDisabledState;control=new ut;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Ve;constructor(e,n,o,s,h,C){super(),this._changeDetectorRef=h,this.callSetDisabledState=C,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=fi(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),pi(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){ht(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Xi.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&Hi(n);Xi.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Rt(e,this._parent):[e]}static \u0275fac=function(n){return new(n||i)(I(ae,9),I(Re,10),I(Le,10),I(Ae,10),I(Jt,8),I(Be,8))};static \u0275dir=K({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[re([mo]),ne,et]})}return i})();var ma=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275dir=K({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),vo={provide:Ae,useExisting:he(()=>_o),multi:!0},_o=(()=>{class i extends pt{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ze(i)))(o||i)}})();static \u0275dir=K({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&B("input",function(h){return o.onChange(h.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([vo]),ne]})}return i})(),Co={provide:Ae,useExisting:he(()=>Do),multi:!0};var yo=(()=>{class i{_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 \u0275fac=function(n){return new(n||i)};static \u0275prov=He({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Do=(()=>{class i extends pt{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=A(Be,{optional:!0})??ft;constructor(e,n,o,s){super(e,n),this._registry=o,this._injector=s}ngOnInit(){this._control=this._injector.get(be),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 \u0275fac=function(n){return new(n||i)(I(Me),I(Y),I(yo),I(je))};static \u0275dir=K({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,o){n&1&&B("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[re([Co]),ne]})}return i})(),bo={provide:Ae,useExisting:he(()=>So),multi:!0},So=(()=>{class i extends pt{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ze(i)))(o||i)}})();static \u0275dir=K({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(n,o){n&1&&B("change",function(h){return o.onChange(h.target.value)})("input",function(h){return o.onChange(h.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([bo]),ne]})}return i})(),gi=new Se(""),Mo={provide:be,useExisting:he(()=>Eo)},Eo=(()=>{class i extends be{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new Ve;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,s,h){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=h,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=fi(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&It(n,this,!1),ht(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}pi(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&It(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||i)(I(Re,10),I(Le,10),I(Ae,10),I(gi,8),I(Be,8))};static \u0275dir=K({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[re([Mo]),ne,et]})}return i})(),wo={provide:ae,useExisting:he(()=>gn)},gn=(()=>{class i extends ae{callSetDisabledState;get submitted(){return Ee(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=k(()=>this._submittedReactive());_submittedReactive=T(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Ve;constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ft(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 ht(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){It(e.control||null,e,!1),uo(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),fn(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Nt(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1),n?.emitEvent!==!1&&this.form._events.next(new At(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(It(n||null,e),fo(o)&&(ht(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);pn(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&lo(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){hi(this.form,this),this._oldForm&&Ft(this._oldForm,this)}static \u0275fac=function(n){return new(n||i)(I(Re,10),I(Le,10),I(Be,8))};static \u0275dir=K({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&B("submit",function(h){return o.onSubmit(h)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([wo]),ne,et]})}return i})(),xo={provide:ae,useExisting:he(()=>mn)},mn=(()=>{class i extends go{name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){_n(this._parent)}static \u0275fac=function(n){return new(n||i)(I(ae,13),I(Re,10),I(Le,10))};static \u0275dir=K({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[re([xo]),ne]})}return i})(),Oo={provide:ae,useExisting:he(()=>vn)},vn=(()=>{class i extends ae{_parent;name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){_n(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Rt(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||i)(I(ae,13),I(Re,10),I(Le,10))};static \u0275dir=K({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[re([Oo]),ne]})}return i})();function _n(i){return!(i instanceof mn)&&!(i instanceof gn)&&!(i instanceof vn)}var Vo={provide:be,useExisting:he(()=>To)},To=(()=>{class i extends be{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new Ve;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,s,h){super(),this._ngModelWarningConfig=h,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=fi(this,s)}ngOnChanges(e){this._added||this._setUpControl(),pi(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 Rt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||i)(I(ae,13),I(Re,10),I(Le,10),I(Ae,10),I(gi,8))};static \u0275dir=K({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[re([Vo]),ne,et]})}return i})();var Cn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=tt({type:i});static \u0275inj=Je({})}return i})(),si=class extends Xe{constructor(t,e,n){super(di(e),ui(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){Array.isArray(t)?t.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(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 o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){un(this,!1,t),t.forEach((n,o)=>{dn(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,o)=>{n.reset(t[o],{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 Qi(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var va=(()=>{class i{useNonNullable=!1;get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,n=null){let o=this._reduceControls(e),s={};return Qi(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new Qe(o,s)}record(e,n=null){let o=this._reduceControls(e);return new oi(o,n)}control(e,n,o){let s={};return this.useNonNullable?(Qi(n)?s=n:(s.validators=n,s.asyncValidators=o),new ut(e,ie(Z({},s),{nonNullable:!0}))):new ut(e,n,o)}array(e,n,o){let s=e.map(h=>this._createControl(h));return new si(s,n,o)}_reduceControls(e){let n={};return Object.keys(e).forEach(o=>{n[o]=this._createControl(e[o])}),n}_createControl(e){if(e instanceof ut)return e;if(e instanceof Xe)return e;if(Array.isArray(e)){let n=e[0],o=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(n,o,s)}else return this.control(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=He({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var _a=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Be,useValue:e.callSetDisabledState??ft}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=tt({type:i});static \u0275inj=Je({imports:[Cn]})}return i})(),Ca=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:gi,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Be,useValue:e.callSetDisabledState??ft}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=tt({type:i});static \u0275inj=Je({imports:[Cn]})}return i})();var ue=["*"],No=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["","content",""]],[["p"]]],Ao=["[icon]","sh-icon","[title]","*","[content]","p"];function Io(i,t){i&1&&(b(0,"sh-icon",3),N(1,"info"),E())}function Po(i,t){i&1&&(b(0,"sh-icon",3),N(1,"info"),E())}function Fo(i,t){i&1&&(b(0,"sh-icon",3),N(1,"warning"),E())}function ko(i,t){i&1&&(b(0,"sh-icon",3),N(1,"warning-octagon"),E())}function Ro(i,t){i&1&&(b(0,"sh-icon",3),N(1,"check-circle"),E())}function Lo(i,t){i&1&&(b(0,"sh-icon",3),N(1,"question"),E())}function Bo(i,t){if(i&1){let e=oe();b(0,"sh-icon",7),B("click",function(){H(e);let o=M();return j(o.removeAlert())}),N(1,"plus"),E()}}var Ho=["dialogRef"];function jo(i,t){if(i&1){let e=oe();W(0,"div",5),ke("click",function(){H(e);let o=M(2);return j(o.isOpen.set(!1))}),X()}}function Uo(i,t){if(i&1&&(W(0,"dialog",2,0)(2,"div",3),y(3),X(),R(4,jo,1,0,"div",4),X()),i&2){let e=M(),n=ee(0);ge(n.class),le("width",n.width??"")("max-width",n.maxWidth??"")("max-height",n.maxHeight??"")("height",n.height??""),S(4),L(e.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var zo=["shButton",""];var $o=["daysRef"];function Wo(i,t){if(i&1&&N(0),i&2){let e=M();me(" - ",e.getMonthName(e.getLastVisibleMonth())," ")}}function Go(i,t){if(i&1&&(b(0,"div"),N(1),E()),i&2){let e=t.$implicit;S(),Ge(e)}}function qo(i,t){if(i&1){let e=oe();b(0,"div",2,1),B("click",function(){let o=H(e).$implicit,s=Yt(1),h=M(2);return j(h.setDate(o,s))}),N(2),E()}if(i&2){let e=t.$implicit,n=M().$implicit,o=M();ge(o.isDateSelected(e)),$("out-of-scope",!o.isCurrentMonth(e,n)),S(2),me(" ",e.getDate()," ")}}function Yo(i,t){if(i&1&&(b(0,"article",7),ye(1,"div",9),E()),i&2){let e=M(2);S(),Xt(e.selectedDateStylePosition())}}function Xo(i,t){if(i&1&&(b(0,"div",5)(1,"nav",6),$e(2,Go,2,1,"div",null,it),E(),b(4,"div",7,0),$e(6,qo,3,5,"div",8,it),R(8,Yo,2,2,"article",7),E()()),i&2){let e=t.$implicit,n=M();S(2),We(n.weekdays()),S(4),We(n.getMonthDates(e)),S(2),L(n.asRange()?-1:8)}}var Qo=["triggerRef"],Zo=["popoverRef"],Ko=["popoverContentRef"],Jo=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],es=["[trigger]","button","[shButton]","*"];function ts(i,t){if(i&1){let e=oe();W(0,"div",6,1)(2,"div",7),ke("click",function(o){H(e);let s=M();return j(s.eventClose(o))}),X(),W(3,"div",8,2),y(5,3),X()()}if(i&2){let e=M();Te("id",e.id()+"hello"),S(3),Xt(e.menuStyle()),le("position-anchor",e.id())}}var is=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["","popoverContent",""]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],ns=["label","[prefix]","[textPrefix]","input","[popoverContent]","textarea","[textSuffix]","[suffix]","[error]","[hint]"],yn=()=>({closeOnButton:!1,closeOnEsc:!0}),os=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["","textSuffix",""]],[["","suffix",""]]],ss=["label","[prefix]","[textPrefix]","input","[textSuffix]","[suffix]"];function rs(i,t){if(i&1&&(b(0,"div",3),N(1),E()),i&2){let e=M();S(),me(" ",e._maskedDate()," ")}}function as(i,t){if(i&1){let e=oe();b(0,"sh-datepicker",7),B("dateChange",function(o){H(e);let s=M();return j(s.onDateChange(o))}),E()}if(i&2){let e=M();ge(e.currentClass()),pe("date",e.internalDate())}}function ls(i,t){}var cs=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],ds=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],us=["input"],hs=[[["label"]]],ps=["label"];function fs(i,t){if(i&1&&(b(0,"div",3),N(1),E()),i&2){let e=M();S(),Ge(e.files()[0].name)}}function gs(i,t){if(i&1&&(b(0,"div",3),N(1),E()),i&2){let e=M();S(),me("",e.files().length," files selected")}}function ms(i,t){if(i&1&&(b(0,"div",4),N(1),E()),i&2){let e=M();S(),Ge(e.filesOver()?e.overlayText():e.placeholder())}}var vs=["inputRef"],_s=["optionsRef"],Cs=["*",[["","menu",""]]],ys=["*","[menu]"];function Ds(i,t){i&1&&(b(0,"sh-icon",5),N(1,"caret-down"),E())}var bs=[[["label"]],[["input","type","range"]]],Ss=["label","input[type=range]"],Ms=["optionsWrap"],Es=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],ws=["label","[prefix]","[boxPrefix]","input","textarea"],xs=()=>({closeOnButton:!1,closeOnEsc:!1}),Dn=(i,t)=>({$implicit:i,last:t}),Si=i=>({$implicit:i});function Os(i,t){if(i&1&&N(0),i&2){let e=M();me(" ",e.inputValue()," ")}}function Vs(i,t){i&1&&Fe(0)}function Ts(i,t){if(i&1&&Oe(0,Vs,1,0,"ng-container",13),i&2){let e=M(3),n=e.$implicit,o=e.$index,s=e.$count;M(2);let h=ee(3);pe("ngTemplateOutlet",h)("ngTemplateOutletContext",Qt(2,Dn,n,o===s-1))}}function Ns(i,t){if(i&1&&N(0),i&2){let e=M(3).$implicit,n=M(2);me(" ",n.getLabel(e)," ")}}function As(i,t){if(i&1){let e=oe();b(0,"sh-chip",12),B("click",function(o){H(e);let s=M(2).$index,h=M(2);return j(h.removeSelectedOptionByIndex(o,s))}),R(1,Ts,1,5,"ng-container")(2,Ns,1,1),b(3,"sh-icon"),N(4,"x-bold"),E()()}if(i&2){let e=M(4),n=ee(3);ge(e.selectClasses()),S(),L(n?1:2)}}function Is(i,t){i&1&&Fe(0)}function Ps(i,t){if(i&1&&Oe(0,Is,1,0,"ng-container",13),i&2){let e=M(4),n=e.$implicit,o=e.$index,s=e.$count;M(2);let h=ee(3);pe("ngTemplateOutlet",h)("ngTemplateOutletContext",Qt(2,Dn,n,o===s-1))}}function Fs(i,t){if(i&1&&N(0),i&2){let e=M(4),n=e.$implicit,o=e.$index,s=e.$count,h=M(2);me(" ",o===s-1?h.getLabel(n):h.getLabel(n)+","," ")}}function ks(i,t){if(i&1&&R(0,Ps,1,5,"ng-container")(1,Fs,1,1),i&2){M(5);let e=ee(3);L(e?0:1)}}function Rs(i,t){if(i&1&&R(0,ks,2,1),i&2){M(4);let e=ee(6);L(e?-1:0)}}function Ls(i,t){if(i&1&&R(0,As,5,3,"sh-chip",11)(1,Rs,1,1),i&2){M(3);let e=ee(5);L(e?0:1)}}function Bs(i,t){if(i&1&&R(0,Ls,2,1),i&2){let e=t.$implicit;L(e?0:-1)}}function Hs(i,t){if(i&1&&$e(0,Bs,1,1,null,null,it),i&2){M();let e=ee(2);We(e)}}function js(i,t){i&1&&Fe(0)}function Us(i,t){if(i&1&&Oe(0,js,1,0,"ng-container",14),i&2){M(2);let e=ee(0);pe("ngTemplateOutlet",e)}}function zs(i,t){if(i&1&&N(0),i&2){let e=M(2);me(" ",e.placeholderText()??""," ")}}function $s(i,t){if(i&1&&R(0,Us,1,1,"ng-container")(1,zs,1,1),i&2){M();let e=ee(0);L(e?0:1)}}function Ws(i,t){i&1&&(b(0,"sh-icon",6),N(1,"caret-down"),E())}function Gs(i,t){i&1&&ye(0,"sh-spinner",7)}function qs(i,t){i&1&&(b(0,"sh-icon",6),N(1,"list-magnifying-glass"),E())}function Ys(i,t){i&1&&(b(0,"sh-icon",6),N(1,"magnifying-glass"),E())}function Xs(i,t){if(i&1){let e=oe();b(0,"sh-icon",15),B("click",function(o){H(e);let s=M();return j(s.clear(o))}),N(1,"x-bold"),E()}}function Qs(i,t){i&1&&(b(0,"sh-icon",6),N(1,"caret-down"),E())}function Zs(i,t){i&1&&(b(0,"sh-icon",6),N(1,"caret-up"),E())}function Ks(i,t){if(i&1&&(b(0,"p",9),N(1),E()),i&2){let e=M(3);S(),Ge(e.freeTextTitle())}}function Js(i,t){i&1&&Fe(0)}function er(i,t){if(i&1&&Oe(0,Js,1,0,"ng-container",13),i&2){M(2);let e=ee(0);M();let n=ee(1);pe("ngTemplateOutlet",n)("ngTemplateOutletContext",Et(2,Si,e))}}function tr(i,t){i&1&&Fe(0)}function ir(i,t){if(i&1&&Oe(0,tr,1,0,"ng-container",13),i&2){M(2);let e=ee(0);M();let n=ee(4);pe("ngTemplateOutlet",n)("ngTemplateOutletContext",Et(2,Si,e))}}function nr(i,t){if(i&1&&N(0),i&2){M(2);let e=ee(1);me(" ",e," ")}}function or(i,t){i&1&&ye(0,"sh-divider")}function sr(i,t){if(i&1){let e=oe();R(0,Ks,2,1,"p",9),b(1,"li",16),B("click",function(){H(e);let o=M(2);return j(o.toggleOptionByIndex(-1))}),R(2,er,1,4,"ng-container")(3,ir,1,4,"ng-container")(4,nr,1,1),E(),R(5,or,1,0,"sh-divider")}if(i&2){M();let e=ee(0),n=M(),o=ee(1),s=ee(4);L(n.freeTextTitle()?0:-1),S(),$("selected",n.isSelected(-1))("focused",n.focusedOptionIndex()===-1),pe("id",n.getLabelAsSlug(e)),Te("aria-selected",n.isSelected(-1)),S(),L(o?2:s?3:4),S(3),L(n.freeTextTitle()&&n.filteredOptions().length>0?5:-1)}}function rr(i,t){if(i&1&&(St(0)(1),R(2,sr,6,9)),i&2){let e=M(),n=Ce(e.computedFreeTextOption());S();let o=Ce(e.getValue(n));S(),L(o.length>0?2:-1)}}function ar(i,t){if(i&1&&(b(0,"p",9),N(1),E()),i&2){let e=M();S(),Ge(e.optionTitle())}}function lr(i,t){if(i&1&&ye(0,"sh-checkbox"),i&2){let e=M().$index,n=M();ge(n.selectClasses()),$("active",n.isSelected(e))}}function cr(i,t){i&1&&Fe(0)}function dr(i,t){if(i&1&&Oe(0,cr,1,0,"ng-container",13),i&2){let e=M().$implicit;M();let n=ee(4);pe("ngTemplateOutlet",n)("ngTemplateOutletContext",Et(2,Si,e))}}function ur(i,t){if(i&1&&N(0),i&2){let e=M().$implicit,n=M();me(" ",n.getLabel(e)," ")}}function hr(i,t){if(i&1){let e=oe();b(0,"li",16),B("click",function(){let o=H(e).$index,s=M();return j(s.toggleOptionByIndex(o))}),R(1,lr,1,4,"sh-checkbox",17),R(2,dr,1,4,"ng-container")(3,ur,1,1),E()}if(i&2){let e=t.$implicit,n=t.$index,o=M(),s=ee(4);$("selected",o.isSelected(n))("focused",n===o.focusedOptionIndex()),pe("id",o.getLabelAsSlug(e)),Te("aria-selected",o.isSelected(n)),S(),L(o.selectMultiple()?1:-1),S(),L(s?2:3)}}var pr=["dragImageElement"],fr=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],gr=["[sidenav]","[sidenav-closed-topbar]","*"];function mr(i,t){i&1&&Pe(0,"div",1,0)}function vr(i,t){if(i&1){let e=oe();W(0,"div",7),ke("drop",function(o){H(e);let s=M();return j(s.drop(o))})("dragenter",function(){H(e);let o=M();return j(o.dragEnter())})("dragleave",function(){H(e);let o=M();return j(o.dragLeave())}),X()}}function _r(i,t){if(i&1){let e=oe();W(0,"div",8),ke("dragstart",function(o){H(e);let s=M();return j(s.dragStart(o))})("dragend",function(o){H(e);let s=M();return j(s.dragEnd(o))})("drag",function(o){H(e);let s=M();return j(s.drag(o))})("touchstart",function(o){H(e);let s=M();return j(s.touchStart(o))})("touchmove",function(o){H(e);let s=M();return j(s.touchMove(o))})("touchend",function(o){H(e);let s=M();return j(s.touchEnd(o))})("touchcancel",function(o){H(e);let s=M();return j(s.touchCancel(o))}),X()}}var Cr=["thead"],yr=["tbody"],Dr=[[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],br=["th","[thead]","*","[table-no-rows]"];function Sr(i,t){i&1&&ye(0,"sh-progress-bar",2)}function Mr(i,t){i&1&&(b(0,"div",3),y(1,3),E())}var Er=[[["","title",""]],"*"],wr=["[title]","*"];function xr(i,t){i&1&&N(0,"Title")}function Or(i,t){i&1&&(b(0,"sh-icon",1),N(1,"caret-down"),E())}var Vr=["bold","thin","light","fill","duotone"],Ie=(()=>{var t,e;let n=class n{constructor(){x(this,t,A(Y));x(this,e,A(Me))}ngAfterContentInit(){let s=m(this,t).nativeElement.textContent?.trim();if(!s)return;let h=s.split("-").at(-1);h&&Vr.includes(h)&&m(this,e).addClass(m(this,t).nativeElement,h)}};t=new WeakMap,e=new WeakMap,n.\u0275fac=function(h){return new(h||n)},n.\u0275cmp=U({type:n,selectors:[["sh-icon"]],ngContentSelectors:ue,decls:1,vars:0,template:function(h,C){h&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=n;return i})();function Ke(i=null){let t=i??A(Y).nativeElement;if(!t)return T("");let e=T(t.className);if(typeof MutationObserver>"u")return e.asReadonly();let n=A(xe),o=new MutationObserver(s=>{for(let h of s)if(h.type==="attributes"&&h.attributeName==="class"){let C=h.target;e.set(C.className)}});return o.observe(t,{attributes:!0,attributeFilter:["class"]}),n.onDestroy(()=>o.disconnect()),e.asReadonly()}var Ut=new Se("Ship UI Config"),Tr=["simple","outlined","flat","raised"],$a=(()=>{var t;let e=class e{constructor(){x(this,t);O(this,t,A(Ut,{optional:!0})),this.variant=T(m(this,t)?.alertVariant??""),this._el=A(Y),this.alertService=V(null),this.id=V(null),this.currentClasses=Ke(),this.activeClass=k(()=>{let o=this.variant(),s=`${this.currentClasses()} sh-sheet`;return o?Tr.find(C=>this.currentClasses().includes(C))?s:`${s} ${o}`:s})}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=U({type:e,selectors:[["sh-alert"]],hostVars:2,hostBindings:function(s,h){s&2&&ge(h.activeClass())},inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Ao,decls:19,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(s,h){if(s&1&&(z(No),b(0,"div",1)(1,"div",2,0),y(3),y(4,1),E(),b(5,"div",2),R(6,Io,2,0,"sh-icon",3)(7,Po,2,0,"sh-icon",3)(8,Fo,2,0,"sh-icon",3)(9,ko,2,0,"sh-icon",3)(10,Ro,2,0,"sh-icon",3)(11,Lo,2,0,"sh-icon",3),E(),b(12,"div",4),y(13,2),y(14,3),E(),R(15,Bo,2,0,"sh-icon",5),b(16,"div",6),y(17,4),y(18,5),E()()),s&2){let C=Yt(2);S(),le("display",C.children.length?"block":"none");let f=h.currentClasses();S(5),L(f.includes("primary")?6:f.includes("accent")?7:f.includes("warn")?8:f.includes("error")?9:f.includes("success")?10:11),S(9),L(h.id()?15:-1)}},dependencies:[Ie],encapsulation:2,changeDetection:0});let i=e;return i})();function zt(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Wa=(()=>{let t=class t{constructor(){this.alertHistory=T([]),this.alertHistoryIsOpen=T(!1),this.alertHistoryIsHidden=T(!0)}error(n){this.addAlert({type:"error",title:n??"An error occured"})}success(n){this.addAlert({type:"success",title:n})}question(n){this.addAlert({type:"question",title:n})}warning(n){this.addAlert({type:"warn",title:n})}info(n){this.addAlert({type:"primary",title:n})}addAlert(n){let o=zt();this.alertHistory.update(s=>[ie(Z({},n),{isOpen:!0,animateIn:!0,animateOut:!1,id:o}),...s]),setTimeout(()=>{this.alertHistory.update(s=>s.map(h=>ie(Z({},h),{animateIn:h.id===o?!1:h.animateIn})))},40),setTimeout(()=>{this.hideAlert(o)},2500)}removeAlert(n){this.alertHistory.update(o=>o.map(s=>ie(Z({},s),{animateOut:s.id===n?!1:s.animateOut}))),setTimeout(()=>{this.alertHistory.update(o=>o.filter(s=>s.id!==n))},300)}hideAlert(n){this.alertHistory.update(o=>o.map(s=>ie(Z({},s),{isOpen:s.id===n?!1:s.isOpen})))}setHidden(n){this.alertHistoryIsHidden.set(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=He({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Nr={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},Ar=(()=>{var t,e;let n=class n{constructor(){x(this,t);x(this,e);O(this,t,A(Ue)),O(this,e,A(Ut,{optional:!0})),this.dialogRef=ve("dialogRef"),this.isOpen=te(!1),this.options=V(),this.closed=De(),this.defaultOptionMerge=k(()=>Z(ie(Z({},Nr),{class:m(this,e)?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=Q(()=>{let s=this.dialogRef()?.nativeElement;s&&(this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(s.showModal(),s.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),m(this,t).addEventListener("keydown",h=>{h.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&h.preventDefault(),h.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(s.close(),queueMicrotask(()=>this.closed.emit())))})}ngOnDestroy(){this.abortController?.abort()}};t=new WeakMap,e=new WeakMap,n.\u0275fac=function(h){return new(h||n)},n.\u0275cmp=U({type:n,selectors:[["sh-dialog"]],viewQuery:function(h,C){h&1&&fe(C.dialogRef,Ho,5),h&2&&_e()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ue,decls:2,vars:2,consts:[["dialogRef",""],["shDialog","",3,"class","width","max-width","max-height","height"],["shDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(h,C){h&1&&(z(),St(0),R(1,Uo,5,11,"dialog",1)),h&2&&(Ce(C.defaultOptionMerge()),S(),L(C.isOpen()?1:-1))},encapsulation:2,changeDetection:0});let i=n;return i})(),Ga=(()=>{var t,e,n,o,bn,gt;let C=class C{constructor(){x(this,o);x(this,t);x(this,e);x(this,n);O(this,t,A(Ue)),O(this,e,m(this,t).querySelector("body")),O(this,n,A(Gt)),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}open(l,r){let a=m(this,n).injector,d=w(this,o,bn).call(this),p=!1,G=r||{},{data:_,closed:c}=G,u=wi(G,["data","closed"]);this.compRef&&w(this,o,gt).call(this,!0),this.insertedCompRef=ei(l,{environmentInjector:a}),this.compRef=ei(Ar,{hostElement:d,environmentInjector:a,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let g=this.insertedCompRef.instance,v=g.data,D=g.closed;if(_){if($t(v))this.insertedCompRef.setInput("data",_);else if(!$t(v))throw new Error("data is not an input signal on the passed component")}D instanceof Zt&&(this.closedFieldSub=D.subscribe(F=>{w(this,o,gt).call(this),!p&&(p=!0,c?.(F),(this.compRef?.instance.closed).emit(F))})),m(this,n).attachView(this.insertedCompRef.hostView),m(this,n).attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",u),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>J());let P=this;function J(F=void 0){var q;w(q=P,o,gt).call(q),!p&&(p=!0,D&&D instanceof Zt&&D.emit(F),c?.(F))}return{component:this.insertedCompRef.instance,close:J,closed:this.compRef.instance.closed}}ngOnDestroy(){w(this,o,gt).call(this,!0)}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakSet,bn=function(){let l=m(this,t).createElement("sh-dialog-ref");return l.id="sh-dialog-ref",m(this,t).getElementById("sh-dialog-ref")||m(this,e)?.append(l),m(this,t).getElementById("sh-dialog-ref")},gt=function(l=!1){let r=this;l||queueMicrotask(()=>a());function a(){r.insertedCompRef&&(m(r,n).detachView(r.insertedCompRef.hostView),r.closedFieldSub?.unsubscribe(),r.insertedCompRef.destroy()),r.compRef&&(m(r,n).detachView(r.compRef.hostView),r.compClosedSub?.unsubscribe(),r.compRef.destroy())}},C.\u0275fac=function(r){return new(r||C)},C.\u0275prov=He({token:C,factory:C.\u0275fac,providedIn:"root"});let i=C;return i})();var qa=(()=>{let t=class t{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-button-group"]],hostVars:2,hostBindings:function(o,s){o&2&&le("--btng-id",s.id)},ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),Ya=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],attrs:zo,ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),Xa=(()=>{var t;let e=class e{constructor(){x(this,t);O(this,t,A(Ut,{optional:!0})),this.class=T(m(this,t)?.cardType??"type-a")}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=U({type:e,selectors:[["sh-card"]],hostVars:2,hostBindings:function(s,h){s&2&&ge(h.class())},ngContentSelectors:ue,decls:1,vars:0,template:function(s,h){s&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Ir=(()=>{let t=class t{constructor(){this.currentClassList=Ke()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-checkbox"]],ngContentSelectors:ue,decls:7,vars:2,consts:[[1,"box","sh-sheet"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"],[1,"label"]],template:function(o,s){o&1&&(z(),b(0,"div",0)(1,"sh-icon",1),N(2,"check-bold"),E(),b(3,"sh-icon",2),N(4,"minus-bold"),E()(),b(5,"div",3),y(6),E()),o&2&&ge(s.currentClassList())},dependencies:[Ie],encapsulation:2,changeDetection:0});let i=t;return i})(),Pr=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],ngContentSelectors:ue,decls:2,vars:0,template:function(o,s){o&1&&(z(),W(0,"div"),y(1),X())},encapsulation:2,changeDetection:0});let i=t;return i})();var Fr=(()=>{var t,e,n,mi,mt,Sn,vi;let f=class f{constructor(){x(this,n);x(this,t);x(this,e);O(this,t,w(this,n,vi).call(this,new Date)),this.date=te(null),this.endDate=te(null),this.asRange=V(!1),this.monthsToShow=V(1),this.disabled=V(!1),this.startOfWeek=V(1),this.weekdayLabels=V(["Su","Mo","Tu","We","Th","Fr","Sa"]),this.daysRef=ve("daysRef"),this.currentDate=T(this.date()??m(this,t)),this.monthOffsets=k(()=>Array.from({length:this.monthsToShow()},(r,a)=>a)),this.selectedDateStylePosition=T(null),this.weekdays=k(()=>{let r=this.startOfWeek(),a=this.weekdayLabels();return a.slice(r).concat(a.slice(0,r))}),this.currentClasses=Ke(),this.someEffect=Q(()=>{let r=this.currentClasses();w(this,n,mt).call(this)}),O(this,e,Q(()=>{this.monthsToShow()>1||w(this,n,mi).call(this)}))}getLastVisibleMonth(){let r=this.monthsToShow()-1;return this.getOffsetDate(r)}getOffsetDate(r){let a=new Date(this.currentDate());return a.setMonth(a.getMonth()+r),a}getMonthDates(r){let a=this.getOffsetDate(r);return w(this,n,Sn).call(this,a,this.startOfWeek())}ngOnInit(){this.monthsToShow()!==1&&w(this,n,mi).call(this)}nextMonth(){this.currentDate.update(r=>{let a=new Date(r);return a.setMonth(r.getMonth()+1),a}),w(this,n,mt).call(this)}previousMonth(){this.currentDate.update(r=>{let a=new Date(r);return a.setMonth(r.getMonth()-1),a}),w(this,n,mt).call(this)}setDate(r,a){let d=(p,_)=>{let c=_?.getUTCHours()??0,u=_?.getUTCMinutes()??0,g=_?.getUTCSeconds()??0,v=_?.getUTCMilliseconds()??0;return w(this,n,vi).call(this,new Date(Date.UTC(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate(),c,u,g,v)))};if(!this.asRange())this.date.set(d(r,this.date())),this.endDate.set(null);else{let p=this.date(),_=this.endDate(),c=d(r,null);p?_?(this.date.set(c),this.endDate.set(null)):c<p?(this.date.set(c),this.endDate.set(null)):this.endDate.set(c):this.date.set(c)}this.asRange()||this.setSelectedDateStylePosition(a)}isDateSelected(r){let a=this.date(),d=this.endDate();if(a===null)return null;let p=D=>new Date(Date.UTC(D.getUTCFullYear(),D.getUTCMonth(),D.getUTCDate(),0,0,0,0)),_=D=>new Date(Date.UTC(D.getUTCFullYear(),D.getUTCMonth(),D.getUTCDate(),23,59,59,999)),c=p(r),u=p(a),g=d?_(d):null,v=[];if(this.asRange())if(g===null)c.getTime()===u.getTime()&&v.push("sel first last");else{if(c.getTime()===u.getTime()&&v.push("first"),c.getTime()===p(g).getTime()&&v.push("last"),c>=u&&c<=g){v.push("sel");let F=c.getUTCDay(),q=this.startOfWeek();F===q&&v.push("week-start");let se=(q+6)%7;F===se&&v.push("week-end")}let D=new Date(c);D.setUTCDate(c.getUTCDate()+1),new Date(c).setUTCDate(c.getUTCDate()-1);let J=c.getUTCDate()===1,G=D.getUTCMonth()!==c.getUTCMonth();J&&v.push("month-start"),G&&v.push("month-end")}else c.getTime()===u.getTime()&&v.push("sel");return v.join(" ")||null}setSelectedDateStylePosition(r){this.selectedDateStylePosition.set({transform:`translate(${r.offsetLeft}px, ${r.offsetTop}px)`,opacity:"1"})}getMonthName(r){return r.toLocaleString("default",{month:"long"})}getFullYear(r){return r.getFullYear()}isCurrentMonth(r,a){let d=this.getOffsetDate(a);return r.getMonth()===d.getMonth()}};t=new WeakMap,e=new WeakMap,n=new WeakSet,mi=function(){let r=this.date();r&&this.currentDate.set(r),w(this,n,mt).call(this)},mt=function(){setTimeout(()=>{let r=this.daysRef()?.nativeElement.querySelector(".sel");if(!r)return this.selectedDateStylePosition.update(a=>a?ie(Z({},a),{opacity:"0"}):null);this.setSelectedDateStylePosition(r)})},Sn=function(r,a){let d=r.getUTCFullYear(),p=r.getUTCMonth(),_=new Date(Date.UTC(d,p)).getUTCDay(),c=32-new Date(Date.UTC(d,p,32)).getUTCDate(),u=[],g=_-a;g<0&&(g+=7);let v=new Date(Date.UTC(d,p,0)).getUTCDate();for(let P=g-1;P>=0;P--){let J=new Date(Date.UTC(d,p-1,v-P));u.push(J)}for(let P=1;P<=c;P++)u.push(new Date(Date.UTC(d,p,P)));let D=1;for(;u.length%7!==0;)u.push(new Date(Date.UTC(d,p+1,D++)));return u},vi=function(r){let d=r.getTimezoneOffset()*60*1e3;return new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())+d)},f.\u0275fac=function(a){return new(a||f)},f.\u0275cmp=U({type:f,selectors:[["sh-datepicker"]],viewQuery:function(a,d){a&1&&fe(d.daysRef,$o,5),a&2&&_e()},hostVars:6,hostBindings:function(a,d){a&2&&(ge("columns-"+d.monthsToShow()),$("as-range",d.asRange())("disabled",d.disabled()))},inputs:{date:[1,"date"],endDate:[1,"endDate"],asRange:[1,"asRange"],monthsToShow:[1,"monthsToShow"],disabled:[1,"disabled"],startOfWeek:[1,"startOfWeek"],weekdayLabels:[1,"weekdayLabels"]},outputs:{date:"dateChange",endDate:"endDateChange"},decls:14,vars:3,consts:[["daysRef",""],["elementRef",""],[3,"click"],[1,"title"],[1,"months-container"],[1,"month"],[1,"weekdays"],[1,"days"],[3,"out-of-scope","class"],[1,"sel-el"]],template:function(a,d){a&1&&(b(0,"header")(1,"button",2),B("click",function(){return d.previousMonth()}),b(2,"sh-icon"),N(3,"caret-left"),E()(),b(4,"div",3),N(5),R(6,Wo,1,1),N(7),E(),b(8,"button",2),B("click",function(){return d.nextMonth()}),b(9,"sh-icon"),N(10,"caret-right"),E()()(),b(11,"section",4),$e(12,Xo,9,1,"div",5,Li),E()),a&2&&(S(5),me(" ",d.getMonthName(d.currentDate())," "),S(),L(d.monthsToShow()>1?6:-1),S(),me(" ",d.getFullYear(d.currentDate())," "),S(5),We(d.monthOffsets()))},dependencies:[Ie],encapsulation:2,changeDetection:0});let i=f;return i})(),Bt=4,kr=["scroll","auto"],Rr={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},Mi=(()=>{var t,e,Mn,En,wn,xn,On,Ht;let l=class l{constructor(){x(this,e);x(this,t);O(this,t,A(Ue)),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=V(!1),this.disableOpenByClick=V(!1),this.isOpen=te(!1),this.options=V(),this.closed=De(),this.defaultOptionMerge=k(()=>Z(Z({},Rr),this.options())),this.triggerRef=ve.required("triggerRef"),this.popoverRef=ve("popoverRef"),this.popoverContentRef=ve("popoverContentRef"),this.id=T("--"+zt()),this.menuStyle=T(null),this.openAbort=null,this.openEffect=Q(()=>{let a=this.isOpen();queueMicrotask(()=>{let d=this.popoverRef()?.nativeElement;if(!d){this.openAbort?.abort(),this.openAbort=null;return}a?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,m(this,t).addEventListener("keydown",p=>{p.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&p.preventDefault(),p.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),d.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{w(this,e,Mn).call(this,d).addEventListener("scroll",()=>w(this,e,Ht).call(this),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>w(this,e,Ht).call(this),{signal:this.openAbort?.signal}),w(this,e,Ht).call(this)})):(this.closed.emit(),this.openAbort?.abort(),this.openAbort=null)})})}toggleIsOpen(a){this.disableOpenByClick()||(a.preventDefault(),a.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(a){this.isOpen()&&this.isOpen.set(!1)}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null}};t=new WeakMap,e=new WeakSet,Mn=function(a){let d=a.parentElement;for(;d;){if(kr.indexOf(window?.getComputedStyle(d).overflowY)>-1&&d.scrollHeight>d.clientHeight)return d;d=d.parentElement}return m(this,t).documentElement},En=function(a,d){let p=a.left,_=a.bottom+Bt;return{left:p,top:_}},wn=function(a,d){let p=a.right+Bt,_=a.top;return{left:p,top:_}},xn=function(a,d){let p=a.right+Bt,_=a.bottom;return{left:p,top:_}},On=function(a,d){let p=a.left,_=a.bottom-a.height-d.height-Bt;return{left:p,top:_}},Ht=function(){let a=this.triggerRef()?.nativeElement.getBoundingClientRect(),d=this.popoverContentRef()?.nativeElement.getBoundingClientRect(),p=[w(this,e,wn),w(this,e,xn)],_=[w(this,e,En),w(this,e,On)],c=this.asMultiLayer()?p:_;for(let g=0;g<c.length;g++){let v=c[g](a,d),D=v.left+(d?.width||0)>window.innerWidth,P=v.top+(d?.height||0)>window.innerHeight;if(!D&&!P){this.menuStyle.set({left:v.left+"px",top:v.top+"px"});return}}let u=c[0](a,d);this.menuStyle.set({left:u.left+"px",top:u.top+"px"})},l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=U({type:l,selectors:[["sh-popover"]],viewQuery:function(d,p){d&1&&(fe(p.triggerRef,Qo,5),fe(p.popoverRef,Zo,5),fe(p.popoverContentRef,Ko,5)),d&2&&_e(3)},hostVars:2,hostBindings:function(d,p){d&2&&$("multi-layer",p.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:es,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(d,p){if(d&1){let _=oe();z(Jo),W(0,"div",3,0),ke("click",function(u){return H(_),j(p.toggleIsOpen(u))}),W(2,"div",4),y(3),y(4,1),y(5,2),X(),Pe(6,"div",5),X(),R(7,ts,6,5,"div",6)}d&2&&(Te("popovertarget",p.id()+"hello"),S(6),le("anchor-name",p.id()),S(),L(p.isOpen()?7:-1))},encapsulation:2,changeDetection:0});let i=l;return i})(),Lr=(()=>{var t;let e=class e{constructor(){x(this,t);O(this,t,A(Y)),this.isOpen=te(!1),this.closed=De()}onClick(){m(this,t).nativeElement.querySelector("input")&&m(this,t).nativeElement.querySelector("input").focus(),m(this,t).nativeElement.querySelector("textarea")&&m(this,t).nativeElement.querySelector("textarea").focus()}close(){this.closed.emit()}ngOnInit(){let o=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=m(this,t).nativeElement.querySelector("textarea");if(!o&&s!==null){let l=function(){f.style.height="auto",f.style.height=f.scrollHeight+"px"},r=function(){setTimeout(l,0)};var h=l,C=r;let f=m(this,t).nativeElement.querySelector("textarea");f&&(f.addEventListener("change",l),f.addEventListener("cut",r),f.addEventListener("paste",r),f.addEventListener("drop",r),f.addEventListener("keydown",r),f.focus(),f.select(),l())}}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=U({type:e,selectors:[["sh-form-field-popover"]],hostBindings:function(s,h){s&1&&B("click",function(){return h.onClick()})},inputs:{isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ns,decls:18,vars:3,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[3,"isOpenChange","closed","isOpen","options"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(s,h){s&1&&(z(is),y(0),b(1,"div",0)(2,"div",1),y(3,1),y(4,2),E(),ye(5,"div",2),b(6,"sh-popover",3),st("isOpenChange",function(f){return ot(h.isOpen,f)||(h.isOpen=f),f}),B("closed",function(){return h.close()}),y(7,3,["trigger",""]),y(8,4),E(),y(9,5),y(10,6),ye(11,"div",4),y(12,7),E(),b(13,"div",5)(14,"div",6),y(15,8),E(),b(16,"div",7),y(17,9),E()()),s&2&&(S(6),nt("isOpen",h.isOpen),pe("options",Mt(2,yn)))},dependencies:[Mi],encapsulation:2,changeDetection:0});let i=e;return i})();function Br(i){let t=A(Y).nativeElement,e=A(xe),n=T([]),o=()=>{n.set(Array.from(t.querySelectorAll(i)))};if(o(),typeof MutationObserver>"u")return n.asReadonly();let s=new MutationObserver(h=>{h.some(f=>f.type==="childList")&&o()});return s.observe(t,{childList:!0}),e.onDestroy(()=>s.disconnect()),n.asReadonly()}var Qa=(()=>{var t,e,n,o,s,Vn,_i;let f=class f{constructor(){x(this,s);x(this,t);x(this,e);x(this,n);x(this,o);this.ngModels=Kt(Lt),O(this,t,A(ii)),O(this,e,T(null)),this.masking=V("mediumDate"),this.closed=De(),this._maskedDate=k(()=>{let r=this.internalDate(),a=this.masking();return a?r?m(this,t).transform(r,a):null:r}),this.internalDate=T(null),this.isOpen=te(!1),this.currentClass=Ke(),O(this,n,Br("#input-wrap input")),O(this,o,Q(()=>{let r=m(this,n).call(this);if(!r.length)return;let a=r[0];a&&(w(this,s,Vn).call(this,a),a.addEventListener("inputValueChanged",d=>{this.internalDate.set(d.detail.value?w(this,s,_i).call(this,new Date(d.detail.value)):null)}),a.addEventListener("focus",()=>{this.isOpen.set(!0),a.blur()}),m(this,e).set(a),a.autocomplete="off",typeof a.value=="string"&&this.internalDate.set(a.value?w(this,s,_i).call(this,new Date(a.value)):null))}))}onDateChange(r){this.internalDate.set(r);let a=m(this,e).call(this);a&&(a.value=r?r.toString():"",a.dispatchEvent(new Event("input")))}close(){this.closed.emit(this.internalDate())}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,Vn=function(r){return Object.defineProperty(r,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(a){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,a);let p=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:a}});return this.dispatchEvent(p),a}}),r},_i=function(r){let d=r.getTimezoneOffset()*60*1e3;return new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())+d)},f.\u0275fac=function(a){return new(a||f)},f.\u0275cmp=U({type:f,selectors:[["sh-datepicker-input"]],contentQueries:function(a,d,p){a&1&&qt(p,d.ngModels,Lt,5),a&2&&_e()},inputs:{masking:[1,"masking"],isOpen:[1,"isOpen"]},outputs:{closed:"closed",isOpen:"isOpenChange"},features:[re([ii])],ngContentSelectors:ss,decls:15,vars:3,consts:[["defaultIndicator",""],[3,"closed","isOpenChange","isOpen"],["id","input-wrap","ngProjectAs","input",5,["input"],1,"input"],[1,"masked-value"],["suffix","",1,"default-indicator"],["popoverContent",""],[3,"date","class"],[3,"dateChange","date"]],template:function(a,d){if(a&1){let p=oe();z(os),b(0,"sh-form-field-popover",1),B("closed",function(){return H(p),j(d.close())}),st("isOpenChange",function(c){return H(p),ot(d.isOpen,c)||(d.isOpen=c),j(c)}),y(1,0,["ngProjectAs","label",5,["label"]]),y(2,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),y(3,2,["ngProjectAs","[textPrefix]",5,["","textPrefix",""]]),b(4,"div",2),R(5,rs,2,1,"div",3),y(6,3),E(),y(7,4,["ngProjectAs","[textSuffix]",5,["","textSuffix",""]]),y(8,5,["ngProjectAs","[suffix]",5,["","suffix",""]]),b(9,"sh-icon",4),N(10,"calendar"),E(),b(11,"div",5),R(12,as,1,3,"sh-datepicker",6),E()(),Oe(13,ls,0,0,"ng-template",null,0,Bi)}a&2&&(nt("isOpen",d.isOpen),S(5),L(d.masking()?5:-1),S(7),L(d.isOpen()?12:-1))},dependencies:[Fr,Lr,Ie],encapsulation:2,changeDetection:0});let i=f;return i})();var Hr=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-divider"]],ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})();var Ei=(()=>{var t;let e=class e{constructor(){x(this,t,A(Y));Wt(()=>{let o=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=m(this,t).nativeElement.querySelector("textarea");if(!o&&s!==null){let f=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},l=function(){setTimeout(f,0)};var h=f,C=l;s.addEventListener("change",f),s.addEventListener("cut",l),s.addEventListener("paste",l),s.addEventListener("drop",l),s.addEventListener("keydown",l),s.focus(),s.select(),f()}})}onClick(){m(this,t).nativeElement.querySelector("input")&&m(this,t).nativeElement.querySelector("input").focus(),m(this,t).nativeElement.querySelector("textarea")&&m(this,t).nativeElement.querySelector("textarea").focus()}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=U({type:e,selectors:[["sh-form-field"]],hostBindings:function(s,h){s&1&&B("click",function(){return h.onClick()})},ngContentSelectors:ds,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(s,h){s&1&&(z(cs),y(0),W(1,"div",0)(2,"div",1),y(3,1),y(4,2),y(5,3),X(),y(6,4),y(7,5),W(8,"div",2),y(9,6),y(10,7),y(11,8),X()(),W(12,"div",3)(13,"div",4),y(14,9),X(),W(15,"div",5),y(16,10),X()())},encapsulation:2,changeDetection:0});let i=e;return i})(),Za=(()=>{let t=class t{constructor(){this._el=A(Y),this.inputRef=ve.required("input"),this.filesOver=T(!1),this.multiple=V(),this.accept=V(null),this.placeholder=te("Click or drag files here"),this.overlayText=V("Drop files here"),this.files=te([]),this.fileUploadClasses=k(()=>this._el.nativeElement.classList.toString()),this.inputEffect=Q(()=>{let n=this.inputRef().nativeElement;n&&(n.placeholder&&this.placeholder.set(n.placeholder),n.addEventListener("dragover",o=>{o.preventDefault(),this.filesOver.set(!0)}),n.addEventListener("dragleave",o=>{o.preventDefault(),this.filesOver.set(!1)}),n.addEventListener("drop",o=>{o.preventDefault(),this.filesOver.set(!1);let s=o.dataTransfer?.files;s&&s.length>0&&(this.handleFileUpload(Array.from(s)),n.files=s)}),n.addEventListener("change",o=>{o.preventDefault(),this.handleFileUpload(Array.from(o.target.files))}))})}handleFileUpload(n){this.multiple()?this.files.update(o=>[...o,...n]):this.files.set(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-file-upload"]],viewQuery:function(o,s){o&1&&fe(s.inputRef,us,5),o&2&&_e()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:ps,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(o,s){o&1&&(z(hs),b(0,"sh-form-field"),y(1,0,["ngProjectAs","label",5,["label"]]),b(2,"div",2,0),R(4,fs,2,1,"div",3)(5,gs,2,1,"div",3)(6,ms,2,1,"div",4),ye(7,"input",5,1)(9,"div",6),E(),b(10,"sh-icon",7),N(11,"upload-simple"),E()()),o&2&&(ge(s.fileUploadClasses()),S(4),L(s.files().length===1?4:s.files().length>1?5:6),S(3),Te("multiple",s.multiple())("accept",s.accept()),S(2),$("files-over",s.filesOver()))},dependencies:[Ei,Ie],encapsulation:2,changeDetection:0});let i=t;return i})(),Ka=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-list"]],ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})();function jr(i,t){let e=T(null),n=t.map(f=>f.toUpperCase()),o=A(je),s=o.get(xe);if(Ui(o.get(Pi))||typeof MutationObserver>"u")return e.asReadonly();if(n.find(f=>i.nativeElement.querySelector(f)))return e.set(new Y(i.nativeElement.querySelector(t[0]))),e.asReadonly();let C=new MutationObserver(f=>{for(let l of f)if(l.addedNodes){for(let r of Array.from(l.addedNodes))if(r.nodeType===Node.ELEMENT_NODE&&n.includes(r.nodeName)){e.set(new Y(r)),C.disconnect();return}}});return C.observe(i.nativeElement,{childList:!0,subtree:!0}),s.onDestroy(()=>C.disconnect()),e.asReadonly()}function Tn(i,t){let e=A(je),n=e.get(xe),o=T([]),s=null,h=null,C=(l,r)=>{h&&h.disconnect();let a=Array.from(l.nativeElement.querySelectorAll(r.join(",")));o.set(a),typeof MutationObserver<"u"&&(h=new MutationObserver(d=>{queueMicrotask(()=>{let p=Array.from(l.nativeElement.querySelectorAll(r.join(",")));o.set(p)})}),h.observe(l.nativeElement,{childList:!0,subtree:!0})),n.onDestroy(()=>f())};s=Q(()=>{let l=typeof i=="function"&&i[xi]?i():i,r=typeof t=="function"?t():t;l&&r?.length>0?C(l,r):(o.set([]),h&&(h.disconnect(),h=null))},{injector:e});function f(){s&&s.destroy(),h&&h.disconnect()}return{signal:o.asReadonly(),destroy:f}}function Ur(i,t=["input","textarea"]){let e=i||jr(A(Y),t),n=T(void 0),o=A(je),s=o.get(xe),h=T(null);Q(f=>{let l=e();if(!l)return;let r=l.nativeElement;r&&(zr(r),h.set(r),n.set(r.value??""),f(()=>{h.set(null)}))},{injector:o});let C=null;return Q(()=>{let f=h();if(!f)return;C&&(C(),C=null);let l=a=>{n.set(a.detail.value)},r=a=>{n.set(a.target.value)};f.addEventListener("input",r),f.addEventListener("inputValueChanged",l),n.set(f.value),C=()=>{f.removeEventListener("input",r),f.removeEventListener("inputValueChanged",l)},s.onDestroy(()=>{C&&C()})},{injector:o}),Q(()=>{let f=h();if(!f)return;let l=n();l&&(f.value=l,f.dispatchEvent(new Event("input")))},{injector:o}),n}function zr(i){return Object.defineProperty(i,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").set.call(this,t);let n=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(n),t}}),i}var Ja=(()=>{var t,e,n,Nn,Ci;let h=class h{constructor(){x(this,n);x(this,t);x(this,e);O(this,t,A(Ue)),O(this,e,A(Me)),this.asMultiLayer=V(!1),this.openIndicator=V(!1),this.disabled=V(!1),this.customOptionElementSelectors=V(["button"]),this.keepClickedOptionActive=V(!1),this.closeOnClick=V(!0),this.isOpen=te(!1),this.closed=De(),this.searchable=V(!1),this.activeOptionIndex=T(-1),this.inputRef=ve("inputRef"),this.optionsRef=ve("optionsRef"),this.options=Tn(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=k(()=>this.options.signal().filter(f=>!f.disabled)),this.inputValue=Ur(this.inputRef),this.abortController=null,this.optionsEffect=Q(()=>{if(this.abortController!==null&&(this.abortController.abort(),this.abortController=null),!this.isOpen())return;this.abortController=new AbortController,this.searchable()||m(this,t).documentElement.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal});let l=this.inputRef()?.nativeElement;l&&(queueMicrotask(()=>l.focus()),l.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal}),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",a=>{let d=a.target,p=this.activeElements();if(!p.length){let c=this.optionsEl();this.activeElements.set(c),p=c}let _=p.findIndex(c=>c===d);_>-1&&(this.activeOptionIndex.set(_),l.focus())}))}),this.keyDownEventListener=f=>{let l=this.activeOptionIndex();f.key==="ArrowDown"?(f.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(l))):f.key==="ArrowUp"?(f.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(l))):f.key==="Enter"?(f.preventDefault(),l>-1&&(this.activeElements()[l].click(),queueMicrotask(()=>this.close("active")))):f.key==="Tab"&&(f.preventDefault(),this.close("closed"))},this._lastElementList=[],this.activeElements=T([]),this.lastInputValue="",this.inputValueEffect=Q(()=>{if(!this.searchable())return;let l=(this.inputValue()??"").toLowerCase();if(w(this,n,Ci).call(this),!l||l===""){let a=this.optionsEl();this.activeElements.set(a),this._lastElementList=a;for(let d=0;d<a.length;d++)m(this,e).removeStyle(a[d],"order");return}if(!l||l==="")return;let r=this._lastElementList.length&&l.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=l;for(let a=0;a<r.length;a++){let d=r[a],p=d.textContent?.toLowerCase()||"",_=w(this,n,Nn).call(this,p,l);d.value=_}r=r.filter(a=>a.value>0).sort((a,d)=>d.value-a.value);for(let a=0;a<r.length;a++)m(this,e).setStyle(r[a],"order",a);this.activeElements.set(r),this._lastElementList=r}),this.activeOptionIndexEffect=Q(()=>{let f=this.activeElements(),l=this.activeOptionIndex();for(let r=0;r<f.length;r++)f[r].classList.remove("active");l>-1&&(f[l].scrollIntoView({block:"center"}),f[l].classList.add("active"))})}toggleIsOpen(f){f.preventDefault(),f.stopPropagation(),!this.disabled()&&(this.isOpen.set(!this.isOpen()),this.searchable()&&this.isOpen()&&setTimeout(()=>this.inputRef()?.nativeElement.focus()))}nextActiveIndex(f){let l=this.activeElements();if(!l.length){let a=this.optionsEl();this.activeElements.set(a),l=a}if(f===-1||f===l.length-1)return 0;let r=f+1;return l[r].disabled?this.nextActiveIndex(r):r}prevActiveIndex(f){let l=this.activeElements();if(!l.length){let a=this.optionsEl();this.activeElements.set(a),l=a}if(f===0||f===-1)return l.length-1;let r=f-1;return l[r].disabled?this.prevActiveIndex(r):r}close(f="closed",l){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||f==="closed")&&w(this,n,Ci).call(this),this.isOpen.set(!1),this.closed.emit(f==="active"))}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}};t=new WeakMap,e=new WeakMap,n=new WeakSet,Nn=function(f,l){if(!l)return 0;let r=0,a=-1,d=0,p=!0;for(let _=0;_<l.length;_++){let c=l[_];if(f.length>a+1&&f[a+1]===c)r+=_===0?100:150,a++,d++;else{let u=f.indexOf(c,a+1);if(_>0&&(p=!1),u===-1)return 0;r+=100,a=u,d++}}return p&&l.length===d&&(r+=1e3),r+=d*20,r},Ci=function(){this.activeOptionIndex.set(-1);let f=this.optionsEl();for(let l=0;l<f.length;l++)f[l].classList.remove("active")},h.\u0275fac=function(l){return new(l||h)},h.\u0275cmp=U({type:h,selectors:[["sh-menu"]],viewQuery:function(l,r){l&1&&(fe(r.inputRef,vs,5),fe(r.optionsRef,_s,5)),l&2&&_e(2)},hostVars:6,hostBindings:function(l,r){l&2&&$("disabled",r.disabled())("has-search",r.searchable())("multi-layer",r.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ys,decls:12,vars:12,consts:[["formFieldWrapper",""],["inputRef",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","asMultiLayer","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(l,r){if(l&1){let a=oe();z(Cs),b(0,"sh-popover",3,0),st("isOpenChange",function(p){return H(a),ot(r.isOpen,p)||(r.isOpen=p),j(p)}),B("closed",function(){return H(a),j(r.close("fromPopover"))}),b(2,"div",4),B("click",function(p){return H(a),j(r.toggleIsOpen(p))}),y(3),R(4,Ds,2,0,"sh-icon",5),E(),b(5,"div",6)(6,"sh-form-field",7),ye(7,"input",8,1),E()(),b(9,"div",9,2),B("click",function(){return H(a),j(r.close("active"))}),y(11,1),E()()}l&2&&(nt("isOpen",r.isOpen),pe("disableOpenByClick",!0)("asMultiLayer",r.asMultiLayer())("options",Mt(11,yn)),S(2),$("is-open",r.isOpen()),S(2),L(r.openIndicator()?4:-1),S(2),$("hidden",r.searchable()===!1),S(3),$("searching",r.searchable()&&r.inputValue()!==""))},dependencies:[Mi,Ei,Ie],encapsulation:2,changeDetection:0});let i=h;return i})(),$r=(()=>{let t=class t{constructor(){this.value=V(void 0)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(o,s){o&1&&Pe(0,"div",0),o&2&&le("width",s.value(),"%")},encapsulation:2,changeDetection:0});let i=t;return i})(),el=(()=>{let t=class t{constructor(){this.currentClassList=Ke()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-radio"]],ngContentSelectors:ue,decls:2,vars:2,consts:[[1,"radio","sh-sheet"]],template:function(o,s){o&1&&(z(),Pe(0,"div",0),y(1)),o&2&&ge(s.currentClassList())},encapsulation:2,changeDetection:0});let i=t;return i})(),tl=(()=>{var t,e,n,o,s,yi,An,In,Pn;let r=class r{constructor(){x(this,s);x(this,t);x(this,e);x(this,n);x(this,o);O(this,t,A(Y)),O(this,e,null),O(this,n,null),O(this,o,0),this.unit=V(""),this.value=te(m(this,o)),this.inputState=T({min:0,max:100,step:1}),this.valuePercentage=k(()=>{let{min:d,max:p}=this.inputState(),_=this.value()??d;if(isNaN(_))return 0;let c=p-d;if(c===0)return 0;let u=(_-d)/c*100;return Math.max(0,Math.min(100,u))}),this.trackFilledPercentage=k(()=>this.valuePercentage()),this.thumbPositionPercentage=k(()=>this.valuePercentage()),this.syncModelToInputEffect=Q(()=>{let d=this.value();if(m(this,n)){let p=parseFloat(m(this,n).value);(isNaN(p)||String(p)!==String(d))&&(m(this,n).value=String(d))}})}get hasInputElement(){return!!m(this,n)}ngAfterViewInit(){O(this,n,m(this,t).nativeElement.querySelector('input[type="range"]')),m(this,n)?(w(this,s,Pn).call(this,m(this,n)),m(this,n).oninput=()=>{this.setNewInputValue(m(this,n).value)},m(this,n).addEventListener("inputValueChanged",d=>{this.setNewInputValue(d.detail.value)}),queueMicrotask(()=>w(this,s,yi).call(this,!0)),w(this,s,An).call(this)):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(d){let p=parseFloat(d??"0");if(!isNaN(p)){let{min:_,max:c}=this.inputState();this.value.set(Math.max(_,Math.min(c,p)))}}trackEvent(d){if(!m(this,n)||m(this,n).readOnly||m(this,n).disabled){d.preventDefault(),d.stopPropagation();return}if(d.target===m(this,n)||d.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let _=d.currentTarget.getBoundingClientRect(),c=d.clientX-_.left,u=_.width,{min:g,max:v,step:D}=this.inputState(),P=v-g;if(u>0&&P!==0&&D>0){let G=(c/u*P+g-g)/D,F=g+Math.round(G)*D,q=w(this,s,In).call(this,D);F=parseFloat(F.toFixed(q));let se=Math.max(g,Math.min(v,F));this.value.set(se)}}ngOnDestroy(){m(this,e)&&m(this,e).disconnect(),m(this,n)&&(m(this,n).oninput=null)}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,yi=function(d=!1){if(!m(this,n))return;let p=parseFloat(m(this,n).min??"0")??0,_=parseFloat(m(this,n).max??"100")??100,c=m(this,n).step,u=1;if(c&&c.toLowerCase()!=="any"){let v=parseFloat(c);!isNaN(v)&&v>0&&(u=v)}this.inputState.set({min:p,max:_,step:u});let g=parseFloat(m(this,n).value??String(p))??p;if(d&&this.value()!==m(this,o)){let v=this.value(),D=Math.max(p,Math.min(_,v));g!==D&&(m(this,n).value=String(D)),v!==D&&this.value.set(D)}else{let v=Math.max(p,Math.min(_,g));this.value()!==v&&this.value.set(v)}},An=function(){if(!m(this,n)||typeof MutationObserver>"u")return;let d=["min","max","step","value","readonly","disabled"];O(this,e,new MutationObserver(p=>{let _=!1;for(let c of p)if(c.type==="attributes"&&d.includes(c.attributeName??"")){_=!0;break}_&&w(this,s,yi).call(this,!1)})),m(this,e).observe(m(this,n),{attributes:!0,attributeFilter:d})},In=function(d){if(isNaN(d)||Math.floor(d)===d)return 0;let _=d.toString().split(".")[1];return _?_.length:0},Pn=function(d){Object.defineProperty(d,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(d),"value").get.call(this)},set(p){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(d),"value").set.call(this,p);let c=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:p}});return this.dispatchEvent(c),p}})},r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=U({type:r,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(p,_){p&2&&$("has-input",_.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:Ss,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(p,_){p&1&&(z(bs),W(0,"div",0),y(1),X(),W(2,"div",1)(3,"div",2),N(4),X(),W(5,"div",3),ke("click",function(u){return _.trackEvent(u)}),y(6,1),W(7,"div",4),Pe(8,"div",5),X(),W(9,"div",6)(10,"div",7)(11,"div",8),N(12),X()()()(),W(13,"div",9),N(14),X()()),p&2&&(S(4),bt("",_.inputState().min,"",_.unit()),S(4),le("width",_.trackFilledPercentage(),"%"),S(),le("left",_.thumbPositionPercentage(),"%"),S(3),bt("",_.value(),"",_.unit()),S(2),bt("",_.inputState().max,"",_.unit()))},encapsulation:2,changeDetection:0});let i=r;return i})(),Wr=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-spinner"]],decls:0,vars:0,template:function(o,s){},encapsulation:2,changeDetection:0});let i=t;return i})(),il=(()=>{var t,e,n,o,Di,h,C,bi,de,Fn,kn,Rn;let p=class p{constructor(){x(this,o);x(this,t);x(this,e);x(this,n);x(this,h);x(this,C);O(this,t,A(Y)),this.value=V(),this.label=V(),this.asFreeText=V(!1),this.optionTitle=V(null),this.freeTextTitle=V(null),this.freeTextPlaceholder=V("Type to create a new option"),this.validateFreeText=V(),this.placeholder=V(),this.readonly=te(!1),this.disabled=te(!1),this.lazySearch=V(!1),this.inlineSearch=V(!1),this.asText=V(!1),this.isClearable=V(!0),this.selectMultiple=V(!1),this.optionTemplate=V(null),this.selectedOptionTemplate=V(null),this.placeholderTemplate=V(null),this.freeTextOptionTemplate=V(null),this.isOpen=te(!1),this.isLoading=te(!1),this.options=te([]),this.selectedOptions=te([]),this.cleared=De(),this.onAddNewFreeTextOption=De(),this.computedFreeTextOption=k(()=>{let c=this.inputValue(),u=this.value(),g=u?{}:c;return u&&typeof g=="object"&&(g[u]=c),g}),O(this,e,T(null)),this.inlineTemplate=Kt(Dt),this.optionsWrapRef=ve.required("optionsWrap"),this.inputRefInput=T(null),O(this,n,typeof MutationObserver<"u"&&new MutationObserver(c=>{for(var u of c)u&&(u.target.nodeName==="INPUT"||u.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new Y(u.target)),m(this,n).disconnect())})),this.inputValue=T(""),this.prevInputValue=T(null),this.focusedOptionIndex=T(-1),this._isClearable=k(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=k(()=>m(this,t).nativeElement.classList.toString()),this.stretch=k(()=>this.selectClasses().includes("stretch")),this.small=k(()=>this.selectClasses().includes("small")),this.placeholderText=k(()=>{let c=this.placeholder(),u=this.inputRefEl();return c||u?.placeholder||null}),this.selectedOptionValues=k(()=>{let c=this.selectedOptions(),u=this.value();return u?c.map(g=>w(this,o,de).call(this,g,u)):c}),this.filteredOptions=k(()=>{let c=this.options()||[],u=this.label(),g=this.value(),v=this.inlineSearch(),D=this.inputValue().toLowerCase(),P=w(this,o,kn).call(this,D);if(c.length<=0)return[];if(!v||D==="")return c;let G=c.filter(F=>{let q=u?(w(this,o,de).call(this,F,u)??"").toString().toLowerCase():(F??"").toString().toLowerCase(),se=((g?w(this,o,de).call(this,F,g):F)??"").toString().toLowerCase(),we=P.test(q),_t=P.test(se);return we||_t}).map(F=>{let q=u?(w(this,o,de).call(this,F,u)??"").toString().toLowerCase():(F??"").toString().toLowerCase(),se=((g?w(this,o,de).call(this,F,g):F)??"").toString().toLowerCase(),we=w(this,o,Di).call(this,q,D),_t=w(this,o,Di).call(this,se,D);return{item:F,score:Math.max(we,_t)}});return G.sort((F,q)=>q.score-F.score),G.map(F=>F.item)}),O(this,h,zt()),this.inputRefEl=k(()=>{let c=this.inputRefInput();if(c===null)return;let u=c?c.nativeElement:null;return u?(u.autocomplete="off",u.setAttribute("role","combobox"),u.setAttribute("id",`combobox-${m(this,h)}`),u.setAttribute("aria-haspopup","listbox"),u.setAttribute("aria-owns","optionsWrapId"),w(this,o,Fn).call(this,u),u.addEventListener("focus",()=>{this.readonly()||this.open()}),u.addEventListener("input",g=>{let v=g.target.value,D=this.inputValue();v!==D&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(v),this.updateInputElValue())}),u.addEventListener("inputValueChanged",g=>{let v=g.detail.value,D=this.inputValue();if(v!==D){if(v===""){this.clear();return}this.setSelectedOptionsFromValue(v),this.setInputValueFromOptions(this.selectedOptions()),w(this,o,bi).call(this)}}),u):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=Q(()=>{let c=this.inputRefEl();if(!c)return;let u=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);u?c.setAttribute("aria-activedescendant",u):c.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=Q(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let u=this.inputRefEl(),v=this.asFreeText()?-1:0;if(!u)return;u.setAttribute("aria-expanded",this.isOpen().toString()),u.addEventListener("keydown",D=>{if((D.key==="Escape"||D.key==="Tab")&&(D.preventDefault(),this.close()),D.key==="Enter"&&(D.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex(),void 0,!0)),D.key==="ArrowDown"){D.preventDefault();let P=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(P>this.filteredOptions().length-1?v:P)}if(D.key==="ArrowUp"){D.preventDefault();let P=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(P<v?this.filteredOptions().length-1:P)}},{signal:this.openAbortController?.signal})}else{let u=this.inputRefEl();if(!u)return;u.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=Q(()=>{let c=this.inputValue();this._inputValue=c}),this.inputRefElEffect=Q(()=>{let c=this.inputRefEl();c&&c.value!==this._inputValue&&(this.disabled.set(c.disabled),this.setSelectedOptionsFromValue(c.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=k(()=>{let c=this.selectedOptions();return this.label()?c.map(g=>this.getLabel(g)).join(", "):c.join(", ")}),this.inputState=k(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=k(()=>this.inlineSearch()||this.lazySearch()),O(this,C,Q(()=>{if(this.selectMultiple()&&this.hasSearch())return;let c=this.selectedOptions(),u=this.value(),g=c.map(v=>u?w(this,o,de).call(this,v,u):v).join(",");this.inputValue.set(g)}))}ngOnInit(){this.setInitInput()}setInitInput(){let c=m(this,t).nativeElement.querySelector("input");if(c){this.inputRefInput.set(new Y(c));return}let u=m(this,t).nativeElement.querySelector("textarea");if(u){this.inputRefInput.set(new Y(u));return}typeof MutationObserver<"u"&&m(this,n).observe(m(this,t).nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(c){let u=this.options()||[],g=this.value(),v=this.selectMultiple(),D=c.toString().split(",");if(D.length===0){this.selectedOptions.set([]);return}let P=v?D:[D[0]],J=u.filter(G=>{let F=g?w(this,o,de).call(this,G,g)?.toString():G?.toString();return F&&P.includes(F)});this.selectedOptions.set(v?J:[J[0]])}setInputValueFromOptions(c){let u=this.value();if(c.length===0){this.inputValue.set(""),this.updateInputElValue();return}let g=c.map(v=>u?w(this,o,de).call(this,v,u):v).join(",");g!==this.inputValue()&&(this.inputValue.set(g),this.updateInputElValue())}getValue(c){let u=this.value();return u?w(this,o,de).call(this,c,u):c}getLabel(c){let u=this.label();return u?w(this,o,de).call(this,c,u):c}getLabelAsSlug(c){let u=this.getLabel(c);return!u||typeof u!="string"?"":u.replaceAll(" ","-")}toggleOptionByIndex(c,u,g=!1){let v=this.filteredOptions()[c];if(this.asFreeText()&&c===-1){let q=this.computedFreeTextOption(),se=this.getValue(q);if(!(this.validateFreeText()??(Ct=>!0))(se))return;this.options.update(Ct=>Ct.findIndex(Ln=>this.getValue(Ln)===se)>-1?Ct:(this.onAddNewFreeTextOption.emit(se),[q,...Ct])),c=0,v=q}else if(!v){this.close();return}u&&u.stopPropagation();let D=this.selectMultiple(),P=this._isClearable(),J=this.value(),G=this.selectedOptionValues(),F=J?w(this,o,de).call(this,v,J):v;this.prevInputValue.set(null),m(this,e).set(null),this.selectedOptions.update(q=>{let se=G.indexOf(F);if(se>-1){let we=[...q.slice(0,se),...q.slice(se+1)];return P||we.length>0?we:q}else return this.focusedOptionIndex.set(c),D?[...q,v]:[v]}),D?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),D&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(c,u){c.stopPropagation(),this.selectedOptions.update(g=>[...g.slice(0,u),...g.slice(u+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(c){let u=this.value(),g=this.filteredOptions()[c],v=u?w(this,o,de).call(this,g,u):g;return this.selectedOptionValues().indexOf(v)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):m(this,e).set(this.selectedOptions()),this.selectMultiple()||w(this,o,bi).call(this))}close(){this.isOpen.set(!1);let c=this.prevInputValue(),u=m(this,e).call(this);if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&c&&(this.inputValue.set(c),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&u!==null&&this.setInputValueFromOptions(u),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(c){c?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let c=this.inputRefEl(),u=this.inputValue();c&&(c.value=u,c.dispatchEvent(new Event("input")))}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&m(this,n).disconnect()}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakSet,Di=function(c,u){if(!u)return 0;let g=0,v=-1,D=0,P=!0;for(let J=0;J<u.length;J++){let G=u[J];if(c.length>v+1&&c[v+1]===G)g+=J===0?100:150,v++,D++;else{let F=c.indexOf(G,v+1);if(J>0&&(P=!1),F===-1)return 0;g+=100,v=F,D++}}return P&&u.length===D&&(g+=1e3),g+=D*20,g},h=new WeakMap,C=new WeakMap,bi=function(){let c=this.selectedOptionValues()[0],u=this.value();if(c){let g=this.filteredOptions().findIndex(v=>u?w(this,o,de).call(this,v,u)===c:v===c);this.focusedOptionIndex.set(g)}else this.focusedOptionIndex.set(-1)},de=function(c,u){return u.split(".").reduce((g,v)=>g?.[v],c)},Fn=function(c){Object.defineProperty(c,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(c),"value").get.call(this)},set(u){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(c),"value").set.call(this,u);let v=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:u}});return this.dispatchEvent(v),u}})},kn=function(c){let u=(c??"").toLowerCase(),g="^";for(let v of u)g+=".*"+w(this,o,Rn).call(this,v);return g+=".*$",new RegExp(g,"i")},Rn=function(c){return c.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")},p.\u0275fac=function(u){return new(u||p)},p.\u0275cmp=U({type:p,selectors:[["sh-select"]],contentQueries:function(u,g,v){u&1&&qt(v,g.inlineTemplate,Dt,5),u&2&&_e()},viewQuery:function(u,g){u&1&&fe(g.optionsWrapRef,Ms,5),u&2&&_e()},hostVars:2,hostBindings:function(u,g){u&2&&$("multiple",g.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],optionTitle:[1,"optionTitle"],freeTextTitle:[1,"freeTextTitle"],freeTextPlaceholder:[1,"freeTextPlaceholder"],validateFreeText:[1,"validateFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],freeTextOptionTemplate:[1,"freeTextOptionTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared",onAddNewFreeTextOption:"onAddNewFreeTextOption"},ngContentSelectors:ws,decls:33,vars:25,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],["id","optionsWrapId","role","listbox",1,"ship-options"],["title",""],[1,"option",3,"id","selected","focused"],[1,"small",3,"class"],[1,"small",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click","id"],[3,"class","active"]],template:function(u,g){if(u&1){let v=oe();z(Es),St(0)(1)(2)(3)(4)(5)(6),b(7,"sh-popover",2,0),st("isOpenChange",function(P){return H(v),ot(g.isOpen,P)||(g.isOpen=P),j(P)}),B("closed",function(){return H(v),j(g.close())}),b(9,"sh-form-field",3),B("click",function(){return H(v),j(g.open())}),y(10,0,["ngProjectAs","label",5,["label"]]),y(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),y(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),b(13,"div",4)(14,"div",5),R(15,Os,1,1)(16,Hs,2,0)(17,$s,2,1),y(18,3),y(19,4),E()(),R(20,Ws,2,0,"sh-icon",6)(21,Gs,1,0,"sh-spinner",7)(22,qs,2,0,"sh-icon",6)(23,Ys,2,0,"sh-icon",6)(24,Xs,2,0,"sh-icon",6)(25,Qs,2,0,"sh-icon",6)(26,Zs,2,0,"sh-icon",6),E(),b(27,"div",8,1),R(29,rr,3,3),R(30,ar,2,1,"p",9),$e(31,hr,4,8,"li",10,it),E()()}if(u&2){Ce(g.placeholderTemplate());let v=g.optionTemplate();S(),Ce(g.freeTextOptionTemplate());let D=g.selectedOptionTemplate(),P=g.inlineTemplate();S();let J=Ce(g.selectedOptions()),G=g.inputState();S(),Ce(D||v||P),S(),Ce(v||P),S();let F=Ce(!g.asText()&&g.selectMultiple());S();let q=Ce(g.isOpen()&&g.hasSearch()&&(F||g.inputValue().length>-1));S(),nt("isOpen",g.isOpen),pe("disableOpenByClick",!0)("options",Mt(24,xs)),S(2),$("stretch",g.stretch())("small",g.small())("readonly",g.readonly()||g.disabled()),S(4),$("show-search-text",q),S(),$("is-selected",G==="selected"),S(),L(g.asFreeText()&&g.inputValue().length>0&&!g.isOpen()?15:J.length>0?16:q?-1:17),S(5),L(G==="closed"?20:G==="loading"?21:G==="open-searching"?22:G==="searching"?23:G==="selected"&&g._isClearable()?24:G==="selected"&&!g._isClearable()?25:26),S(9),L(g.asFreeText()?29:-1),S(),L(g.optionTitle()&&g.filteredOptions().length>0?30:-1),S(),We(g.filteredOptions())}},dependencies:[ji,Mi,Ei,Ie,Ir,Wr,Pr,Hr],encapsulation:2,changeDetection:0});let i=p;return i})();function Gr(i){let t=A(Y),e=A(xe),n=T(!1),o=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(h=>{h.type==="attributes"&&h.attributeName==="class"&&n.set(t.nativeElement.classList.contains(i))})});return Ii(t.nativeElement,()=>{o&&o.observe(t.nativeElement,{attributes:!0}),n.set(t.nativeElement.classList.contains(i))}),e.onDestroy(()=>{o&&o.disconnect()}),n}var nl=(()=>{var t,e,n,o,s,vt;let C=class C{constructor(){x(this,s);x(this,t);x(this,e);x(this,n);x(this,o);O(this,t,A(Ue)),O(this,e,A(Y)),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=V(!1),this.isOpen=te(!1),this.isOverlay=Gr("overlay"),O(this,n,m(this,e).nativeElement.parentElement),O(this,o,m(this,n).getBoundingClientRect&&m(this,n).getBoundingClientRect()),this.dragImageElement=ve.required("dragImageElement"),this.dragIsEnding=T(!1),this.dragIsOnScreen=T(!0),this.isDragging=T(!1),this.dragPositionX=T(0),this.dragActualPositionX=k(()=>{let l=this.dragPositionX(),r=280,a=100,d=.008,p=r/2,_=p-a/2,c=p+a/2;if(l>c){let u=l-c,v=(r-c)*(1-Math.exp(-d*u));return c+v}else if(l<_){let u=_-l,v=_*(1-Math.exp(-d*u));return _-v}return l}),this.draggingStyle=k(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=Q(()=>{this.disableDrag()||(this.isDragging()?m(this,t).body.classList.add("dragging"):m(this,t).body.classList.remove("dragging"))})}drop(l){l.stopPropagation(),w(this,s,vt).call(this,l.clientX-m(this,o).left)}dragEnd(l){l.clientX-m(this,o).left<0&&w(this,s,vt).call(this,0),l.clientX-m(this,o).left>this.openWidthTreshold&&w(this,s,vt).call(this,this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(l){l.stopPropagation(),O(this,o,m(this,n).getBoundingClientRect()),this.isDragging.set(!0)}drag(l){l.stopPropagation(),this.isDragging()&&(l.clientX!==0||l.clientY!==0)&&this.dragPositionX.set(l.clientX-m(this,o).left)}touchStart(l){l.stopPropagation(),this.isDragging.set(!0),O(this,o,m(this,n).getBoundingClientRect()),this.dragPositionX.set(0)}touchMove(l){l.stopPropagation(),this.isDragging()&&this.dragPositionX.set(l.touches[0].clientX-m(this,o).left)}touchEnd(l){l.stopPropagation(),w(this,s,vt).call(this,l.changedTouches[0].clientX-m(this,o).left)}touchCancel(l){l.stopPropagation(),this.isDragging.set(!1)}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,vt=function(l){this.isDragging.set(!1),l>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)},C.\u0275fac=function(r){return new(r||C)},C.\u0275cmp=U({type:C,selectors:[["sh-sidenav"]],viewQuery:function(r,a){r&1&&fe(a.dragImageElement,pr,5),r&2&&_e()},hostVars:6,hostBindings:function(r,a){r&2&&$("open",a.isOpen())("closed",!a.isOpen())("is-dragging",a.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:gr,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(r,a){r&1&&(z(fr),R(0,mr,2,0,"div",1),R(1,vr,1,0,"div",2),W(2,"div",3),y(3),X(),W(4,"div",4),R(5,_r,1,0,"div",5),W(6,"div",6),y(7,1),X(),W(8,"main"),y(9,2),X()()),r&2&&(L(a.isOverlay()&&!a.disableDrag()?0:-1),S(),L(a.isOverlay()&&a.isDragging()?1:-1),S(3),le("transform",!a.disableDrag()&&a.draggingStyle()),S(),L(a.isOverlay()&&!a.disableDrag()?5:-1))},encapsulation:2,changeDetection:0});let i=C;return i})();var ol=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-stepper"]],ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})();var sl=(()=>{var t;let e=class e{constructor(){x(this,t);O(this,t,A(qr)),this.shSort=V(),this.sortAsc=k(()=>{let o=m(this,t).sortByColumn(),s=this.shSort();return!o||!s?!1:o===s}),this.sortDesc=k(()=>{let o=m(this,t).sortByColumn(),s=this.shSort();return!o||!s?!1:o===`-${s}`})}toggleSort(){let o=this.shSort();o&&m(this,t).toggleSort(o)}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275dir=K({type:e,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(s,h){s&1&&B("mousedown",function(){return h.toggleSort()}),s&2&&$("sort-asc",h.sortAsc())("sort-desc",h.sortDesc())},inputs:{shSort:[1,"shSort"]}});let i=e;return i})();var Ze=1.5,qr=(()=>{var t,e,n,o,s,jt;let C=class C{constructor(){x(this,s);x(this,t);x(this,e);x(this,n);x(this,o);O(this,t,A(Y)),O(this,e,A(Ut,{optional:!0})),this.loading=V(!1),this.data=V([]),this.dataChange=De(),this.sortByColumn=te(null),this.currentClass=Ke(),this.thead=ve("thead"),this.tbody=ve("tbody"),this.columns=Tn(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=k(()=>{let l=this.currentClass();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=Q(()=>{let l=this.tbody()?.nativeElement,r=this.thead()?.nativeElement;if(!l||!r)return;let a=this.stickyHeaderHeight();queueMicrotask(()=>{let d=r.querySelectorAll("tr.sticky").length>0,p=l.querySelectorAll("tr.sticky");if(p.length>0&&d)for(let c=0;c<p.length;c++)p[c].style.top=`${a}px`})}),this.class=T(m(this,e)?.tableType??"default"),this.resizing=T(!1),this.sizeTrigger=T(!0),O(this,n,null),O(this,o,T(!1)),this.scrollXState=T(-1),this.scrollYState=T(-1),this.canScrollX=T(!1),this.canScrollY=T(!1),this.columnSizes=k(()=>{this.sizeTrigger();let l=this.columns.signal();return l.reduce((r,a,d)=>{let p=a,_=p.getAttribute("size"),c=d===l.length-1;return _?`${r} ${_}`:p.classList.contains("sticky")||p.classList.contains("sticky-end")?`${r} min-content`:c?`${r} 1fr`:`${r} 1fr`},"")}),this.e=Q(()=>{let l=this.sortByColumn();if(l===null)return m(this,o).call(this)||(O(this,n,this.data()),m(this,o).set(!0)),this.dataChange.emit(structuredClone(m(this,n)));let r=l.startsWith("-")?l.slice(1):l,a=l.startsWith("-"),d=this.data().sort((p,_)=>{let c=p[r],u=_[r],g=0;return typeof c=="number"&&typeof u=="number"&&(g=c-u),c instanceof Date&&u instanceof Date&&(g=c.getTime()-u.getTime()),typeof c=="string"&&typeof u=="string"&&(g=c.localeCompare(u,void 0,{sensitivity:"base"})),a?-g:g});this.dataChange.emit(d)})}updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){w(this,s,jt).call(this)}onResize(l){w(this,s,jt).call(this)}ngAfterViewInit(){queueMicrotask(()=>w(this,s,jt).call(this))}toggleSort(l){let r=this.sortByColumn(),a=r===l?`-${l}`:r===`-${l}`?null:l;this.sortByColumn.set(a)}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,jt=function(){let l=m(this,t).nativeElement,r=-1,a=-1,d=l.scrollWidth>l.clientWidth+Ze;if(d){let _=l.scrollLeft<=Ze;l.scrollWidth-(l.scrollLeft+l.clientWidth)<Ze?r=1:_||(r=0)}this.scrollXState.set(r),this.canScrollX.set(d);let p=l.scrollHeight>l.clientHeight+Ze;if(p){let _=l.scrollTop<=Ze;l.scrollHeight-(l.scrollTop+l.clientHeight)<Ze?a=1:_||(a=0)}this.scrollYState.set(a),this.canScrollY.set(p)},C.\u0275fac=function(r){return new(r||C)},C.\u0275cmp=U({type:C,selectors:[["sh-table"]],viewQuery:function(r,a){r&1&&(fe(a.thead,Cr,5),fe(a.tbody,yr,5)),r&2&&_e(2)},hostVars:18,hostBindings:function(r,a){r&1&&B("scroll",function(){return a.onScroll()})("resize",function(p){return a.onResize(p)},Fi),r&2&&(ge(a.class()),le("grid-template-columns",a.columnSizes()),$("resizing",a.resizing())("can-scroll-x",a.canScrollX())("can-scroll-y",a.canScrollY())("scrolled-x",a.scrollXState()>=0)("scrolled-x-end",a.scrollXState()===1)("scrolled-y",a.scrollYState()>=0)("scrolled-y-end",a.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:br,decls:9,vars:2,consts:[["thead",""],["tbody",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(r,a){r&1&&(z(Dr),R(0,Sr,1,0,"sh-progress-bar",2),b(1,"thead",null,0),y(3),y(4,1),E(),b(5,"tbody",null,1),y(7,2),E(),R(8,Mr,2,0,"div",3)),r&2&&(L(a.loading()?0:-1),S(8),L(a.loading()?-1:8))},dependencies:[$r],encapsulation:2,changeDetection:0});let i=C;return i})(),rl=(()=>{let t=class t{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-tabs"]],hostVars:2,hostBindings:function(o,s){o&2&&le("--tabs-id",s.id)},ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),al=(()=>{let t=class t{constructor(){this.isActive=te(!1),this.disallowToggle=V(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-toggle-card"]],hostVars:2,hostBindings:function(o,s){o&2&&$("active",s.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:wr,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(o,s){o&1&&(z(Er),b(0,"h3",0),B("click",function(){return s.disallowToggle()||s.toggle()}),y(1,0,null,xr,1,0),R(3,Or,2,0,"sh-icon",1),E(),b(4,"div",2)(5,"div",3),y(6,1),E()()),o&2&&(S(3),L(s.disallowToggle()?-1:3))},dependencies:[Ie],encapsulation:2,changeDetection:0});let i=t;return i})(),ll=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-toggle"]],ngContentSelectors:ue,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(o,s){o&1&&(z(),W(0,"div",0),Pe(1,"div",1),X(),y(2))},encapsulation:2,changeDetection:0});let i=t;return i})();var cl=(()=>{let t=class t{constructor(){this.filesOver=T(!1),this.filesDropped=De()}onDragOver(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!0)}onDragLeave(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1)}ondrop(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1);let o=n.dataTransfer?.files;o&&o.length>0&&this.filesDropped.emit(o)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=K({type:t,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(o,s){o&1&&B("dragover",function(C){return s.onDragOver(C)})("dragleave",function(C){return s.onDragLeave(C)})("drop",function(C){return s.ondrop(C)}),o&2&&$("filesover",s.filesOver())},outputs:{filesDropped:"filesDropped"}});let i=t;return i})();var Yr=(()=>{var t,e,n;let o=class o{constructor(){x(this,t);x(this,e);x(this,n);this.positionAnchorName=V.required(),this.anchorEl=V.required(),this.isOpen=V(!1),O(this,t,A(Y)),O(this,e,A(Me)),O(this,n,null),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc"),this.isBelow=T(!1),this.openEffect=Q(()=>{this.isOpen()?setTimeout(()=>{m(this,t).nativeElement.showPopover(),this.calculateTooltipPosition()}):m(this,t).nativeElement.hidePopover()}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let h=this.anchorEl().nativeElement.getBoundingClientRect(),C=m(this,t).nativeElement,f=C.getBoundingClientRect();if(f.width===0&&f.height===0)return;let l=h.top-f.height<0;if(this.isBelow.set(l),!this.SUPPORTS_ANCHOR){let r=C.getBoundingClientRect(),a=h.top-r.height,d=h.left+h.width/2-r.width/2;l&&(a=h.top+h.height),d+r.width>window?.innerWidth&&(d=h.right-r.width/2),d<0&&(d=-(r.width/2)),m(this,e).setStyle(C,"left",`${d}px`),m(this,e).setStyle(C,"top",`${a}px`),m(this,e).setStyle(C,"position","fixed")}}}ngAfterViewInit(){O(this,n,new AbortController);let h={signal:m(this,n).signal,capture:!0};window?.addEventListener("scroll",this.calculateTooltipPosition,h),window?.addEventListener("resize",this.calculateTooltipPosition,{signal:m(this,n).signal}),setTimeout(()=>this.calculateTooltipPosition())}ngOnDestroy(){m(this,n)?.abort()}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o.\u0275fac=function(C){return new(C||o)},o.\u0275cmp=U({type:o,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(C,f){C&2&&(Te("popover","manual"),le("position-anchor",f.positionAnchorName()),$("below",f.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"]},ngContentSelectors:ue,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(C,f){C&1&&(z(),W(0,"div",0),y(1),X())},encapsulation:2});let i=o;return i})(),ce=null,dl=(()=>{var t,e,n,o,s;let h=class h{constructor(){x(this,t);x(this,e);x(this,n);x(this,o);x(this,s);this.shTooltip=V.required(),O(this,t,A(Y)),O(this,e,A(ki)),O(this,n,A(Ai)),O(this,o,A(Me)),O(this,s,null),this.DEBOUNCE_DELAY=500,this.anchorName=`--${zt()}`,this.isOpen=T(!1)}onMouseEnter(){ce?.component.anchorName!==this.anchorName&&this.cleanupTooltip(),this.cancelCleanupTimer(),queueMicrotask(()=>this.showTooltip())}onMouseLeave(){this.startCleanupTimer()}ngOnDestroy(){this.cancelCleanupTimer(),this.cleanupTooltip()}startCleanupTimer(){this.cancelCleanupTimer(),this.debounceTimer=setTimeout(()=>{this.cleanupTooltip()},this.DEBOUNCE_DELAY)}cancelCleanupTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}showTooltip(){if(ce?.wrapperComponentRef||!this.shTooltip())return;let f,l=this.shTooltip();if(typeof l=="string")f=[[m(this,o).createText(l)]];else if(l instanceof Dt)O(this,s,l.createEmbeddedView({})),m(this,s).detectChanges(),f=[m(this,s).rootNodes];else return;ce={wrapperComponentRef:m(this,e).createComponent(Yr,{environmentInjector:m(this,n),projectableNodes:f}),component:this},ce.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),ce.wrapperComponentRef.setInput("anchorEl",m(this,t)),ce.wrapperComponentRef?.setInput("isOpen",this.isOpen),ce.wrapperComponentRef.changeDetectorRef.detectChanges(),ce.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",()=>{this.cancelCleanupTimer()}),ce.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",()=>{this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){ce?.wrapperComponentRef&&(ce.component.cancelCleanupTimer(),ce.wrapperComponentRef.destroy(),ce.component.isOpen.set(!1),ce=null),m(this,s)&&(m(this,s).destroy(),O(this,s,null))}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakMap,h.\u0275fac=function(l){return new(l||h)},h.\u0275dir=K({type:h,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(l,r){l&1&&B("mouseenter",function(){return r.onMouseEnter()})("mouseleave",function(){return r.onMouseLeave()}),l&2&&(le("anchor-name",r.anchorName),$("active",r.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}});let i=h;return i})();export{Ae as a,jn as b,Ki as c,zi as d,pa as e,fa as f,po as g,ut as h,Lt as i,ma as j,_o as k,Do as l,So as m,Eo as n,gn as o,mn as p,To as q,va as r,_a as s,Ca as t,Ie as u,Ut as v,$a as w,Wa as x,Ar as y,Ga as z,qa as A,Ya as B,Xa as C,Ir as D,Pr as E,Qa as F,Hr as G,Ei as H,Za as I,Ka as J,Ja as K,$r as L,el as M,tl as N,Wr as O,il as P,nl as Q,ol as R,sl as S,qr as T,rl as U,al as V,ll as W,cl as X,dl as Y};
|
package/chunk-LFVCKT5O.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as F}from"./chunk-66KMXCBD.js";import{a as Z}from"./chunk-F2QQDU4N.js";import{b as Q}from"./chunk-KBGIIJMM.js";import{B as q,L as Y,w as H,x as K,z as W}from"./chunk-LFRGO2IP.js";import{b as U,d as j}from"./chunk-LEZL7BSL.js";import{$b as s,Ab as b,Bb as k,Cb as O,Db as a,Eb as l,Fb as m,Jb as y,Kb as D,Mb as f,Oa as M,Ra as r,Rc as P,Tb as G,Ub as V,Vb as _,Xc as S,Zb as u,_ as T,bb as E,da as p,ea as I,mc as z,nc as A,oa as v,oc as x,pc as J,vc as X,wb as d,wc as B,xb as N,xc as g}from"./chunk-FAM42SZT.js";function ne(n,t){if(n&1&&(a(0,"div",11),A(1),l()),n&2){s();let e=g(0);r(),J(" ",e.Message," ")}}function oe(n,t){if(n&1&&(a(0,"div"),G(1,1),m(2,"a",15),V(),l()),n&2){let e=s();r(2),O("href",e.downloadLink(),M)}}function ae(n,t){if(n&1){let e=f();a(0,"button",14),u("click",function(){p(e);let i=s(),c=g(0);return I(i.doRepair(c.BackupID))}),_(1,2),l()}}function re(n,t){if(n&1){let e=f();a(0,"button",14),u("click",function(){p(e);let i=s(),c=g(0);return I(i.doDownloadBugreport(c))}),_(1,3),l()}}function le(n,t){if(n&1&&m(0,"sh-progress-bar",17),n&2){let e,o=s(2);O("value",(e=o.serverState())==null?null:e.UpdateDownloadProgress)}}function ce(n,t){if(n&1){let e=f();a(0,"div",11),y(1),_(2,4),D(),a(3,"a",16),A(4),l(),d(5,le,1,1,"sh-progress-bar",17),a(6,"button",14),u("click",function(){p(e);let i=s();return I(i.doShowUpdate())}),_(7,5),l()()}if(n&2){let e,o,i=s(),c=g(0);r(3),O("href",(e=i.serverState())==null?null:e.UpdateDownloadLink,M),r(),x(c.Message),r(),N(((o=i.serverState())==null?null:o.UpdaterState)==="Downloading"?5:-1)}}function _e(n,t){if(n&1){let e=f();a(0,"button",14),u("click",function(){p(e);let i=s(),c=g(0);return I(i.doShowLog(c.BackupID))}),_(1,6),l()}}function se(n,t){if(n&1){let e=f();a(0,"button",14),u("click",function(){p(e);let i=s();return I(i.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),_(1,7),l()}}function de(n,t){if(n&1){let e=f();a(0,"button",14),u("click",function(){p(e);let i=s();return I(i.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),_(1,8),l()}}var Ne={Error:"error",Warning:"warn",Information:"primary"},h=class n{#e=T(j);#a=T(U);#r=T(W);#t=T(K);#i=T(F);#n=T(Q);#o=v(null);serverState=this.#i.serverState;index=S.required();notification=S.required();downloadLink=P(()=>this.#o()||this.notification().DownloadLink||"");deleteNotificationByIndex(){this.#i.deleteNotification(this.index())}deleteAllNotifications(){this.#i.deleteAllNotifications()}getAlertType(t){return t&&Ne[t]||"primary"}doShowLog(t){this.#n.getApiV1BackupByIdIsactive({id:t}).subscribe({next:e=>{this.#e.navigate(["/backup/"+t+"/log"])},error:e=>{if(e.status===404){let o={title:$localize`Error`,message:$localize`The backup is missing, has it been deleted?`,confirmText:$localize`OK`,cancelText:null};parseInt(t)+""!=t&&(o={title:$localize`Error`,message:$localize`The backup was temporary and does not exist anymore, so the log data is lost`,confirmText:$localize`OK`,cancelText:null}),this.#r.open(Z,{maxWidth:"550px",width:"100%",data:o})}else this.#t.error($localize`Failed to find backup: `+e.message)}})}doRepair(t){this.#n.postApiV1BackupByIdRepair({id:t}).subscribe({next:()=>{this.#t.success($localize`Backup repaired`),this.#e.navigate(["./"],{onSameUrlNavigation:"reload",relativeTo:this.#a})},error:e=>{this.#t.error($localize`Failed to repair backup: `+e.message)}})}doShowUpdate(){this.#e.navigate(["/about/changelog"])}doShowLink(t){window.open(t,"_blank")}doDownloadBugreport(t){let e=t.Action.slice(19);this.#n.postApiV1AuthIssuetokenByOperation({operation:"bugreport"}).subscribe({next:o=>{if(!o.Token){this.#t.error("Failed to get bug report URL: No token generated");return}let i=`${location.origin}/api/v1/bugreport/${e}?token=${o.Token}`;t.DownloadLink=i,this.#o.set(i),this.triggerDownload(i)},error:o=>{this.#t.error(`Failed to get bug report URL: ${o.message}`)}})}triggerDownload(t){let e=document.createElement("a");e.href=t,e.download="",e.style.display="none",document.body.appendChild(e);try{e.click()}catch{}document.body.removeChild(e)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=E({type:n,selectors:[["app-notification"]],inputs:{index:[1,"index"],notification:[1,"notification"]},decls:16,vars:12,consts:()=>{let t;t=$localize`Dismiss`;let e;e=$localize` If the backup file was not downloaded automatically, ${"\uFFFD#2\uFFFD"}:START_LINK:right click and choose "Save as …"${"\uFFFD/#2\uFFFD"}:CLOSE_LINK:`;let o;o=$localize`Repair`;let i;i=$localize`Download`;let c;c=$localize`New update found:`;let L;L=$localize`Show Update`;let w;w=$localize`Show Log`;let R;R=$localize` Show Help `;let $;return $=$localize` Show Help `,[t,e,o,i,c,L,w,R,$,["ship-alert-title",""],["ship-alert-content","",1,"content"],[1,"message"],[1,"actions"],["shButton","",1,"small","outlined"],["shButton","",1,"small","outlined",3,"click"],["target","_blank",3,"href"],[3,"href"],[3,"value"]]},template:function(e,o){if(e&1){let i=f();X(0),a(1,"sh-alert")(2,"div",9),A(3),l(),a(4,"div",10),d(5,ne,2,1,"div",11),d(6,oe,3,1,"div"),a(7,"div",12),d(8,ae,2,0,"button",13),d(9,re,2,0,"button",13),d(10,ce,8,3,"div",11),d(11,_e,2,0,"button",13),d(12,se,2,0,"button",13),d(13,de,2,0,"button",13),a(14,"button",14),u("click",function(){return p(i),I(o.deleteNotificationByIndex())}),_(15,0),l()()()()}if(e&2){let i=B(o.notification());r(),z(o.getAlertType(i.Type)),r(2),x(i.Title),r(2),N(i.Action!=="update:new"&&i.Action!=="update:manual"?5:-1),r(),N(o.downloadLink()?6:-1),r(2),N(i.Message!=null&&i.Message.includes("please run repair")?8:-1),r(),N(i.Action!=null&&i.Action.startsWith("bug-report:created:")&&!o.downloadLink()?9:-1),r(),N(i.Action==="update:new"?10:-1),r(),N(i.Action==="backup:show-log"?11:-1),r(),N(i.Action==="config:issue:unencrypted-database"?12:-1),r(),N(i.Action==="config:issue:windows-folder-used"?13:-1)}},dependencies:[Y,q,H],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.message[_ngcontent-%COMP%]{max-height:12.5rem;overflow:auto}"],changeDetection:0})};var Te=(n,t)=>t.ID;function Ce(n,t){if(n&1&&m(0,"app-notification",1),n&2){let e=t.$implicit,o=t.$index;O("index",o)("notification",e)}}function pe(n,t){n&1&&(a(0,"div",2)(1,"p"),_(2,0),l()())}var ee=class n{#e=T(F);notificationFilterPredicate=S();notifications=P(()=>{let t=this.notificationFilterPredicate()?.predicate,e=this.#e.notifications();return typeof t!="function"?e:e.filter(t)});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=E({type:n,selectors:[["app-notifications"]],inputs:{notificationFilterPredicate:[1,"notificationFilterPredicate"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`No more notifications`,[t,[3,"index","notification"],[1,"notification-list"]]},template:function(e,o){e&1&&b(0,Ce,1,2,"app-notification",1,Te,!1,pe,3,0,"div",2),e&2&&k(o.notifications())},dependencies:[h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;justify-content:flex-end}.notification-list[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"],changeDetection:0})};export{h as a,ee as b};
|
package/chunk-MP7JKTLP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as w}from"./chunk-PJAWWLYW.js";import{b as y}from"./chunk-I2RHQQ3J.js";import{a as b}from"./chunk-XE5OMGTJ.js";import"./chunk-TJ3WIU6Q.js";import{b as x}from"./chunk-KBGIIJMM.js";import{B as U,L as $,u as k}from"./chunk-LFRGO2IP.js";import"./chunk-LEZL7BSL.js";import"./chunk-4MEL5WTX.js";import"./chunk-5K64UNNB.js";import"./chunk-6DB3NZXR.js";import"./chunk-FPPZ4BUR.js";import{$b as c,Cb as L,Db as a,Eb as r,Fb as d,H as g,Mb as E,Oa as O,Ra as l,Rc as I,Tb as M,Ub as R,Vb as T,Wb as f,Xb as F,Zb as N,_ as p,bb as P,da as m,ea as C,kc as v,nc as u,oa as S,oc as D,r as G,wb as s,xb as _}from"./chunk-FAM42SZT.js";import"./chunk-EUDKD2JW.js";function V(n,o){n&1&&d(0,"sh-progress-bar",3)}function B(n,o){if(n&1&&(a(0,"a",7),M(1,2),d(2,"sh-icon"),R(),r()),n&2){let e,t,i=c(2);L("href",(e=i.serverState())==null?null:e.UpdateDownloadLink,O),l(2),f((t=i.serverState())==null?null:t.UpdatedVersion),F(1)}}function J(n,o){if(n&1){let e=E();a(0,"button",6),N("click",function(){m(e);let i=c();return C(i.checkForUpdates())}),u(1,"Check for updates"),r(),s(2,B,3,2,"a",7)}if(n&2){let e,t=c();v("loader",t.checkingForUpdates()),l(2),_((e=t.serverState())!=null&&e.UpdateDownloadLink?2:-1)}}function X(n,o){if(n&1){let e=E();a(0,"button",6),N("click",function(){m(e);let i=c();return C(i.checkForUpdates())}),u(1,"Checking for updates \u2026"),r()}}function z(n,o){n&1&&d(0,"sh-progress-bar",3)}var h=class n{#e=p(x);#t=p(w);#n=p(b);isLoading=S(!0);checkingForUpdates=S(!1);serverState=this.#t.serverState;duplicatiVersion=I(()=>this.#n.systemInfo()?.ServerVersionName??"Unknown");generalInfo=y(this.#e.getApiV1Acknowledgements().pipe(G(o=>o.Acknowledgements),g(()=>this.isLoading.set(!1))));checkForUpdates(){this.checkingForUpdates.set(!0),this.#e.postApiV1UpdatesCheck().pipe(g(()=>this.checkingForUpdates.set(!1))).subscribe()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=P({type:n,selectors:[["app-general"]],decls:12,vars:5,consts:()=>{let o;o=$localize`General`;let e;e=$localize`You're running Duplicati with - ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let t;return t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:download${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Download update - ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[o,e,t,[1,"indeterminate","primary"],[1,"actions"],["shButton",""],["shButton","",3,"click"],["shButton","","target","_blank",1,"primary","raised",3,"href"]]},template:function(e,t){if(e&1&&(s(0,V,1,0,"sh-progress-bar",3),a(1,"section")(2,"h3"),T(3,0),r(),a(4,"p"),T(5,1),r(),a(6,"div",4),s(7,J,3,3)(8,X,2,0,"button",5),s(9,z,1,0,"sh-progress-bar",3),r(),a(10,"div"),u(11),r()()),e&2){let i,A;_(t.isLoading()?0:-1),l(5),f(t.duplicatiVersion()),F(5),l(2),_(((i=t.serverState())==null?null:i.UpdaterState)==="Waiting"?7:((i=t.serverState())==null?null:i.UpdaterState)==="Checking"?8:-1),l(2),_(((A=t.serverState())==null?null:A.UpdaterState)==="Downloading"?9:-1),l(2),D(t.generalInfo())}},dependencies:[$,U,k],styles:["[_nghost-%COMP%]{display:block;position:relative;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{h as default};
|
package/chunk-NHRDYV7W.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Y}from"./chunk-ZV7VPSMZ.js";import{a as W}from"./chunk-T6C2OUI5.js";import{d as U}from"./chunk-TJ3WIU6Q.js";import"./chunk-KBGIIJMM.js";import{B as j,D as B,H as Q,b as $,c as A,d as v,e as k,f as x,j as J,o as X,q as V,r as q,t as z,u as H,w as K}from"./chunk-LFRGO2IP.js";import{d as R}from"./chunk-LEZL7BSL.js";import"./chunk-4MEL5WTX.js";import"./chunk-5K64UNNB.js";import"./chunk-6DB3NZXR.js";import"./chunk-FPPZ4BUR.js";import{Cb as h,Db as o,Eb as i,Fb as r,H as S,Mb as E,Ra as l,Sc as D,Tb as g,Ub as d,Vb as M,Yc as y,Zb as C,_ as p,bb as T,da as F,ea as f,gc as O,hc as P,kc as w,nc as b,oa as a,oc as G,wb as L,xb as I}from"./chunk-FAM42SZT.js";import"./chunk-EUDKD2JW.js";var Z=["passwordInput"];function ee(m,t){m&1&&(o(0,"sh-alert",6),M(1,4),i())}var _=new q,N=class m{#e=p(R);#n=p(U);rememberMe=W("rememberMe",!1,!0);failedLogin=a(!1);successLogin=a(!1);isLoading=a(!1);loginForm=_.group({user:_.control(""),pass:_.control("",v.required),rememberMe:_.control(this.rememberMe())});showPassword=a(!1);passwordInput=y("passwordInput");passwordEffect=D(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){this.loginForm.controls.rememberMe.valueChanges.subscribe(t=>this.rememberMe.set(t??!1)),queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let t=this.loginForm.value.pass,n=this.loginForm.value.user;this.rememberMe.set(this.loginForm.value.rememberMe??!1),!n&&t&&(this.isLoading.set(!0),this.#n.login(t,this.rememberMe()).pipe(S(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>{this.successLogin.set(!0),this.#e.navigate(["/"])}}))}static \u0275fac=function(n){return new(n||m)};static \u0275cmp=T({type:m,selectors:[["app-login"]],viewQuery:function(n,e){n&1&&O(e.passwordInput,Z,5),n&2&&P()},decls:24,vars:6,consts:()=>{let t;t=$localize`Enter your password`;let n;n=$localize` Password ${"\uFFFD#10\uFFFD"}:START_LINK:${"\uFFFD#11\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#10\uFFFD"}:CLOSE_LINK:`;let e;e=$localize` Login ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`;let s;s=$localize` Keep me logged in ${"\uFFFD#21\uFFFD\uFFFD/#21\uFFFD"}:TAG_INPUT:`;let c;return c=$localize` Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. `,[["passwordInput",""],n,e,s,c,[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"inner"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["name","password","autocomplete","current-password","placeholder",t,"tabindex","1","formControlName","pass",3,"type"],["suffix","",3,"click"],["shButton","","type","submit",1,"raised","primary","login-button"],[1,"raised","primary"],["type","checkbox","id","rememberMe","tabindex","2","formControlName","rememberMe"],[1,"login-row","checkbox"],["for","rememberMe",1,"remember-me"]]},template:function(n,e){if(n&1){let s=E();o(0,"form",5),C("submit",function(){return F(s),f(e.submit())}),L(1,ee,2,0,"sh-alert",6),o(2,"div",7),r(3,"app-logo"),i(),o(4,"div",8)(5,"div",9),r(6,"input",10),o(7,"sh-form-field")(8,"label",11),g(9,1),o(10,"a",12),r(11,"sh-icon"),i(),d(),i(),r(12,"input",13,0),o(14,"sh-icon",14),C("click",function(){return F(s),f(e.showPassword.set(!e.showPassword()))}),b(15),i()(),o(16,"button",15),g(17,2),r(18,"sh-icon"),d(),i()(),o(19,"sh-checkbox",16),g(20,3),r(21,"input",17),d(),i(),o(22,"div",18),r(23,"label",19),i()()()}n&2&&(h("formGroup",e.loginForm),l(),I(e.failedLogin()&&!e.successLogin()?1:-1),l(11),h("type",e.showPassword()?"text":"password"),l(3),G(e.showPassword()?"eye":"eye-slash"),l(),w("loader",e.isLoading()))},dependencies:[z,J,A,$,k,x,X,V,Y,Q,H,j,K,B],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{align-self:flex-start}sh-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}.login-button[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:1.5rem}"],changeDetection:0})};export{N as default};
|